]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
ensure the postgresql *.in files get processed
[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_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-readline      disable readline support enabled
867
868   --disable-largefile     omit support for large files
869
870 Optional Packages:
871   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
872   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
873   --with-gnome-includes   Specify location of GNOME headers
874   --with-gnome-libs       Specify location of GNOME libs
875   --with-gnome            Specify prefix for GNOME files
876  --with-readline=DIR             specify readline library directory
877   --with-tcp-wrappers=DIR        enable tcpwrappers support
878   --with-working-dir=PATH        specify path of Bacula working directory
879   --with-scriptdir=PATH    specify path of Bacula scripts directory
880   --with-dump-email=EMAIL        dump email address
881   --with-job-email=EMAIL         job output email address
882   --with-smtp-host=HOST          SMTP mail host address
883   --with-pid-dir=PATH            specify location of Bacula pid files
884   --with-subsys-dir=PATH         specify location of Bacula subsys file
885   --with-baseport=PORT           specify base port address for daemons
886   --with-dir-password=PASSWORD   specify Director's password
887   --with-fd-password=PASSWORD    specify Client's password
888   --with-sd-password=PASSWORD    specify Storage daemon's password
889   --with-dir-user=USER           specify user for Director daemon
890   --with-dir-group=GROUP                 specify group for Director daemon
891   --with-sd-user=USER            specify user for Storage daemon
892   --with-sd-group=GROUP          specify group for Storage daemon
893   --with-fd-user=USER            specify user for File daemon
894   --with-fd-group=GROUP          specify group for File daemon
895
896 Which DBMS do you want to use (please select only one):
897   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
898                           install directory, default is to search through
899                           a number of common places for the MySQL files.
900
901 Which DBMS do you want to use (please select only one):
902   --with-postgresql=DIR Include PostgreSQL support.  DIR is the PostgreSQL base
903                           install directory, default is to search through
904                           a number of common places for the PostgreSQL files.
905
906 Which DBMS do you want to use (please select only one):
907   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
908                           install directory, default is to search through
909                           a number of common places for the MySQL files.
910
911 Which DBMS do you want to use (please select only one):
912   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
913                           install directory, default is to search through
914                           a number of common places for the SQLite files.
915   --with-x                use the X Window System
916
917 Some influential environment variables:
918   CC          C compiler command
919   CFLAGS      C compiler flags
920   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
921               nonstandard directory <lib dir>
922   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
923               headers in a nonstandard directory <include dir>
924   CXX         C++ compiler command
925   CXXFLAGS    C++ compiler flags
926   CPP         C preprocessor
927
928 Use these variables to override the choices made by `configure' or to help
929 it to find libraries and programs with nonstandard names/locations.
930
931 _ACEOF
932 fi
933
934 if test "$ac_init_help" = "recursive"; then
935   # If there are subdirs, report their specific --help.
936   ac_popdir=`pwd`
937   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
938     test -d $ac_dir || continue
939     ac_builddir=.
940
941 if test "$ac_dir" != .; then
942   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
943   # A "../" for each directory in $ac_dir_suffix.
944   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
945 else
946   ac_dir_suffix= ac_top_builddir=
947 fi
948
949 case $srcdir in
950   .)  # No --srcdir option.  We are building in place.
951     ac_srcdir=.
952     if test -z "$ac_top_builddir"; then
953        ac_top_srcdir=.
954     else
955        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
956     fi ;;
957   [\\/]* | ?:[\\/]* )  # Absolute path.
958     ac_srcdir=$srcdir$ac_dir_suffix;
959     ac_top_srcdir=$srcdir ;;
960   *) # Relative path.
961     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
962     ac_top_srcdir=$ac_top_builddir$srcdir ;;
963 esac
964 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
965 # absolute.
966 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
967 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
968 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
969 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
970
971     cd $ac_dir
972     # Check for guested configure; otherwise get Cygnus style configure.
973     if test -f $ac_srcdir/configure.gnu; then
974       echo
975       $SHELL $ac_srcdir/configure.gnu  --help=recursive
976     elif test -f $ac_srcdir/configure; then
977       echo
978       $SHELL $ac_srcdir/configure  --help=recursive
979     elif test -f $ac_srcdir/configure.ac ||
980            test -f $ac_srcdir/configure.in; then
981       echo
982       $ac_configure --help
983     else
984       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985     fi
986     cd $ac_popdir
987   done
988 fi
989
990 test -n "$ac_init_help" && exit 0
991 if $ac_init_version; then
992   cat <<\_ACEOF
993
994 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
995 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
998 _ACEOF
999   exit 0
1000 fi
1001 exec 5>config.log
1002 cat >&5 <<_ACEOF
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1005
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.57.  Invocation command line was
1008
1009   $ $0 $@
1010
1011 _ACEOF
1012 {
1013 cat <<_ASUNAME
1014 ## --------- ##
1015 ## Platform. ##
1016 ## --------- ##
1017
1018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023
1024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1026
1027 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1028 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1031 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1032 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1033 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1034
1035 _ASUNAME
1036
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 for as_dir in $PATH
1039 do
1040   IFS=$as_save_IFS
1041   test -z "$as_dir" && as_dir=.
1042   echo "PATH: $as_dir"
1043 done
1044
1045 } >&5
1046
1047 cat >&5 <<_ACEOF
1048
1049
1050 ## ----------- ##
1051 ## Core tests. ##
1052 ## ----------- ##
1053
1054 _ACEOF
1055
1056
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_configure_args=
1063 ac_configure_args0=
1064 ac_configure_args1=
1065 ac_sep=
1066 ac_must_keep_next=false
1067 for ac_pass in 1 2
1068 do
1069   for ac_arg
1070   do
1071     case $ac_arg in
1072     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074     | -silent | --silent | --silen | --sile | --sil)
1075       continue ;;
1076     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078     esac
1079     case $ac_pass in
1080     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081     2)
1082       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083       if test $ac_must_keep_next = true; then
1084         ac_must_keep_next=false # Got value, back to normal.
1085       else
1086         case $ac_arg in
1087           *=* | --config-cache | -C | -disable-* | --disable-* \
1088           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090           | -with-* | --with-* | -without-* | --without-* | --x)
1091             case "$ac_configure_args0 " in
1092               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093             esac
1094             ;;
1095           -* ) ac_must_keep_next=true ;;
1096         esac
1097       fi
1098       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099       # Get rid of the leading space.
1100       ac_sep=" "
1101       ;;
1102     esac
1103   done
1104 done
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log.  We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close' the trap.
1113 trap 'exit_status=$?
1114   # Save into config.log some information that might help in debugging.
1115   {
1116     echo
1117
1118     cat <<\_ASBOX
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1122 _ASBOX
1123     echo
1124     # The following way of writing the cache mishandles newlines in values,
1125 {
1126   (set) 2>&1 |
1127     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128     *ac_space=\ *)
1129       sed -n \
1130         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132       ;;
1133     *)
1134       sed -n \
1135         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1136       ;;
1137     esac;
1138 }
1139     echo
1140
1141     cat <<\_ASBOX
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1145 _ASBOX
1146     echo
1147     for ac_var in $ac_subst_vars
1148     do
1149       eval ac_val=$`echo $ac_var`
1150       echo "$ac_var='"'"'$ac_val'"'"'"
1151     done | sort
1152     echo
1153
1154     if test -n "$ac_subst_files"; then
1155       cat <<\_ASBOX
1156 ## ------------- ##
1157 ## Output files. ##
1158 ## ------------- ##
1159 _ASBOX
1160       echo
1161       for ac_var in $ac_subst_files
1162       do
1163         eval ac_val=$`echo $ac_var`
1164         echo "$ac_var='"'"'$ac_val'"'"'"
1165       done | sort
1166       echo
1167     fi
1168
1169     if test -s confdefs.h; then
1170       cat <<\_ASBOX
1171 ## ----------- ##
1172 ## confdefs.h. ##
1173 ## ----------- ##
1174 _ASBOX
1175       echo
1176       sed "/^$/d" confdefs.h | sort
1177       echo
1178     fi
1179     test "$ac_signal" != 0 &&
1180       echo "$as_me: caught signal $ac_signal"
1181     echo "$as_me: exit $exit_status"
1182   } >&5
1183   rm -f core core.* *.core &&
1184   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185     exit $exit_status
1186      ' 0
1187 for ac_signal in 1 2 13 15; do
1188   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 done
1190 ac_signal=0
1191
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 echo >confdefs.h
1196
1197 # Predefined preprocessor variables.
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 _ACEOF
1217
1218
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 _ACEOF
1222
1223
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227   if test "x$prefix" != xNONE; then
1228     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229   else
1230     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231   fi
1232 fi
1233 for ac_site_file in $CONFIG_SITE; do
1234   if test -r "$ac_site_file"; then
1235     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237     sed 's/^/| /' "$ac_site_file" >&5
1238     . "$ac_site_file"
1239   fi
1240 done
1241
1242 if test -r "$cache_file"; then
1243   # Some versions of bash will fail to source /dev/null (special
1244   # files actually), so we avoid doing that.
1245   if test -f "$cache_file"; then
1246     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1248     case $cache_file in
1249       [\\/]* | ?:[\\/]* ) . $cache_file;;
1250       *)                      . ./$cache_file;;
1251     esac
1252   fi
1253 else
1254   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1256   >$cache_file
1257 fi
1258
1259 # Check that the precious variables saved in the cache have kept the same
1260 # value.
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1264   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265   eval ac_new_set=\$ac_env_${ac_var}_set
1266   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267   eval ac_new_val="\$ac_env_${ac_var}_value"
1268   case $ac_old_set,$ac_new_set in
1269     set,)
1270       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1272       ac_cache_corrupted=: ;;
1273     ,set)
1274       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276       ac_cache_corrupted=: ;;
1277     ,);;
1278     *)
1279       if test "x$ac_old_val" != "x$ac_new_val"; then
1280         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1281 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1282         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1283 echo "$as_me:   former value:  $ac_old_val" >&2;}
1284         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1285 echo "$as_me:   current value: $ac_new_val" >&2;}
1286         ac_cache_corrupted=:
1287       fi;;
1288   esac
1289   # Pass precious variables to config.status.
1290   if test "$ac_new_set" = set; then
1291     case $ac_new_val in
1292     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1294     *) ac_arg=$ac_var=$ac_new_val ;;
1295     esac
1296     case " $ac_configure_args " in
1297       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1298       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299     esac
1300   fi
1301 done
1302 if $ac_cache_corrupted; then
1303   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1306 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307    { (exit 1); exit 1; }; }
1308 fi
1309
1310 ac_ext=c
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334 BUILD_DIR=`pwd`
1335 cd ..
1336 TOP_DIR=`pwd`
1337 cd ${BUILD_DIR}
1338
1339 ac_aux_dir=
1340 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1341   if test -f $ac_dir/install-sh; then
1342     ac_aux_dir=$ac_dir
1343     ac_install_sh="$ac_aux_dir/install-sh -c"
1344     break
1345   elif test -f $ac_dir/install.sh; then
1346     ac_aux_dir=$ac_dir
1347     ac_install_sh="$ac_aux_dir/install.sh -c"
1348     break
1349   elif test -f $ac_dir/shtool; then
1350     ac_aux_dir=$ac_dir
1351     ac_install_sh="$ac_aux_dir/shtool install -c"
1352     break
1353   fi
1354 done
1355 if test -z "$ac_aux_dir"; then
1356   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1357 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1358    { (exit 1); exit 1; }; }
1359 fi
1360 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1361 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1362 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1363
1364           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1365
1366
1367
1368
1369
1370 for ac_prog in true
1371 do
1372   # Extract the first word of "$ac_prog", so it can be a program name with args.
1373 set dummy $ac_prog; ac_word=$2
1374 echo "$as_me:$LINENO: checking for $ac_word" >&5
1375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1376 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1377   echo $ECHO_N "(cached) $ECHO_C" >&6
1378 else
1379   case $TRUEPRG in
1380   [\\/]* | ?:[\\/]*)
1381   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1382   ;;
1383   *)
1384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385 for as_dir in $PATH
1386 do
1387   IFS=$as_save_IFS
1388   test -z "$as_dir" && as_dir=.
1389   for ac_exec_ext in '' $ac_executable_extensions; do
1390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393     break 2
1394   fi
1395 done
1396 done
1397
1398   ;;
1399 esac
1400 fi
1401 TRUEPRG=$ac_cv_path_TRUEPRG
1402
1403 if test -n "$TRUEPRG"; then
1404   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1405 echo "${ECHO_T}$TRUEPRG" >&6
1406 else
1407   echo "$as_me:$LINENO: result: no" >&5
1408 echo "${ECHO_T}no" >&6
1409 fi
1410
1411   test -n "$TRUEPRG" && break
1412 done
1413 test -n "$TRUEPRG" || TRUEPRG=":"
1414
1415 for ac_prog in false
1416 do
1417   # Extract the first word of "$ac_prog", so it can be a program name with args.
1418 set dummy $ac_prog; ac_word=$2
1419 echo "$as_me:$LINENO: checking for $ac_word" >&5
1420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1422   echo $ECHO_N "(cached) $ECHO_C" >&6
1423 else
1424   case $FALSEPRG in
1425   [\\/]* | ?:[\\/]*)
1426   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1427   ;;
1428   *)
1429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 for as_dir in $PATH
1431 do
1432   IFS=$as_save_IFS
1433   test -z "$as_dir" && as_dir=.
1434   for ac_exec_ext in '' $ac_executable_extensions; do
1435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1436     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1438     break 2
1439   fi
1440 done
1441 done
1442
1443   ;;
1444 esac
1445 fi
1446 FALSEPRG=$ac_cv_path_FALSEPRG
1447
1448 if test -n "$FALSEPRG"; then
1449   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1450 echo "${ECHO_T}$FALSEPRG" >&6
1451 else
1452   echo "$as_me:$LINENO: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1454 fi
1455
1456   test -n "$FALSEPRG" && break
1457 done
1458 test -n "$FALSEPRG" || FALSEPRG=":"
1459
1460
1461 # Make sure we can run config.sub.
1462 $ac_config_sub sun4 >/dev/null 2>&1 ||
1463   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1464 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1465    { (exit 1); exit 1; }; }
1466
1467 echo "$as_me:$LINENO: checking build system type" >&5
1468 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1469 if test "${ac_cv_build+set}" = set; then
1470   echo $ECHO_N "(cached) $ECHO_C" >&6
1471 else
1472   ac_cv_build_alias=$build_alias
1473 test -z "$ac_cv_build_alias" &&
1474   ac_cv_build_alias=`$ac_config_guess`
1475 test -z "$ac_cv_build_alias" &&
1476   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1477 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1478    { (exit 1); exit 1; }; }
1479 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1480   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1481 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1482    { (exit 1); exit 1; }; }
1483
1484 fi
1485 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1486 echo "${ECHO_T}$ac_cv_build" >&6
1487 build=$ac_cv_build
1488 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1489 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1490 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1491
1492
1493 echo "$as_me:$LINENO: checking host system type" >&5
1494 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1495 if test "${ac_cv_host+set}" = set; then
1496   echo $ECHO_N "(cached) $ECHO_C" >&6
1497 else
1498   ac_cv_host_alias=$host_alias
1499 test -z "$ac_cv_host_alias" &&
1500   ac_cv_host_alias=$ac_cv_build_alias
1501 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1502   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1503 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1504    { (exit 1); exit 1; }; }
1505
1506 fi
1507 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1508 echo "${ECHO_T}$ac_cv_host" >&6
1509 host=$ac_cv_host
1510 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1511 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1512 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1513
1514
1515
1516 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1517 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1518 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1519 echo "configuring for bacula $VERSION ($DATE)"
1520
1521
1522
1523 ac_ext=c
1524 ac_cpp='$CPP $CPPFLAGS'
1525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528 if test -n "$ac_tool_prefix"; then
1529   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_CC+set}" = set; then
1534   echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536   if test -n "$CC"; then
1537   ac_cv_prog_CC="$CC" # Let the user override the test.
1538 else
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 for as_dir in $PATH
1541 do
1542   IFS=$as_save_IFS
1543   test -z "$as_dir" && as_dir=.
1544   for ac_exec_ext in '' $ac_executable_extensions; do
1545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548     break 2
1549   fi
1550 done
1551 done
1552
1553 fi
1554 fi
1555 CC=$ac_cv_prog_CC
1556 if test -n "$CC"; then
1557   echo "$as_me:$LINENO: result: $CC" >&5
1558 echo "${ECHO_T}$CC" >&6
1559 else
1560   echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1562 fi
1563
1564 fi
1565 if test -z "$ac_cv_prog_CC"; then
1566   ac_ct_CC=$CC
1567   # Extract the first word of "gcc", so it can be a program name with args.
1568 set dummy gcc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1572   echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574   if test -n "$ac_ct_CC"; then
1575   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1576 else
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1579 do
1580   IFS=$as_save_IFS
1581   test -z "$as_dir" && as_dir=.
1582   for ac_exec_ext in '' $ac_executable_extensions; do
1583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584     ac_cv_prog_ac_ct_CC="gcc"
1585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586     break 2
1587   fi
1588 done
1589 done
1590
1591 fi
1592 fi
1593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1594 if test -n "$ac_ct_CC"; then
1595   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1596 echo "${ECHO_T}$ac_ct_CC" >&6
1597 else
1598   echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1600 fi
1601
1602   CC=$ac_ct_CC
1603 else
1604   CC="$ac_cv_prog_CC"
1605 fi
1606
1607 if test -z "$CC"; then
1608   if test -n "$ac_tool_prefix"; then
1609   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}cc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   if test -n "$CC"; then
1617   ac_cv_prog_CC="$CC" # Let the user override the test.
1618 else
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1621 do
1622   IFS=$as_save_IFS
1623   test -z "$as_dir" && as_dir=.
1624   for ac_exec_ext in '' $ac_executable_extensions; do
1625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626     ac_cv_prog_CC="${ac_tool_prefix}cc"
1627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628     break 2
1629   fi
1630 done
1631 done
1632
1633 fi
1634 fi
1635 CC=$ac_cv_prog_CC
1636 if test -n "$CC"; then
1637   echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1639 else
1640   echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1642 fi
1643
1644 fi
1645 if test -z "$ac_cv_prog_CC"; then
1646   ac_ct_CC=$CC
1647   # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   if test -n "$ac_ct_CC"; then
1655   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1659 do
1660   IFS=$as_save_IFS
1661   test -z "$as_dir" && as_dir=.
1662   for ac_exec_ext in '' $ac_executable_extensions; do
1663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664     ac_cv_prog_ac_ct_CC="cc"
1665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666     break 2
1667   fi
1668 done
1669 done
1670
1671 fi
1672 fi
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1677 else
1678   echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1680 fi
1681
1682   CC=$ac_ct_CC
1683 else
1684   CC="$ac_cv_prog_CC"
1685 fi
1686
1687 fi
1688 if test -z "$CC"; then
1689   # Extract the first word of "cc", so it can be a program name with args.
1690 set dummy cc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   if test -n "$CC"; then
1697   ac_cv_prog_CC="$CC" # Let the user override the test.
1698 else
1699   ac_prog_rejected=no
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   for ac_exec_ext in '' $ac_executable_extensions; do
1706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1708        ac_prog_rejected=yes
1709        continue
1710      fi
1711     ac_cv_prog_CC="cc"
1712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713     break 2
1714   fi
1715 done
1716 done
1717
1718 if test $ac_prog_rejected = yes; then
1719   # We found a bogon in the path, so make sure we never use it.
1720   set dummy $ac_cv_prog_CC
1721   shift
1722   if test $# != 0; then
1723     # We chose a different compiler from the bogus one.
1724     # However, it has the same basename, so the bogon will be chosen
1725     # first if we set CC to just the basename; use the full file name.
1726     shift
1727     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1728   fi
1729 fi
1730 fi
1731 fi
1732 CC=$ac_cv_prog_CC
1733 if test -n "$CC"; then
1734   echo "$as_me:$LINENO: result: $CC" >&5
1735 echo "${ECHO_T}$CC" >&6
1736 else
1737   echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1739 fi
1740
1741 fi
1742 if test -z "$CC"; then
1743   if test -n "$ac_tool_prefix"; then
1744   for ac_prog in cl
1745   do
1746     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_CC+set}" = set; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   if test -n "$CC"; then
1754   ac_cv_prog_CC="$CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759   IFS=$as_save_IFS
1760   test -z "$as_dir" && as_dir=.
1761   for ac_exec_ext in '' $ac_executable_extensions; do
1762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765     break 2
1766   fi
1767 done
1768 done
1769
1770 fi
1771 fi
1772 CC=$ac_cv_prog_CC
1773 if test -n "$CC"; then
1774   echo "$as_me:$LINENO: result: $CC" >&5
1775 echo "${ECHO_T}$CC" >&6
1776 else
1777   echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 fi
1780
1781     test -n "$CC" && break
1782   done
1783 fi
1784 if test -z "$CC"; then
1785   ac_ct_CC=$CC
1786   for ac_prog in cl
1787 do
1788   # Extract the first word of "$ac_prog", so it can be a program name with args.
1789 set dummy $ac_prog; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   if test -n "$ac_ct_CC"; then
1796   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801   IFS=$as_save_IFS
1802   test -z "$as_dir" && as_dir=.
1803   for ac_exec_ext in '' $ac_executable_extensions; do
1804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805     ac_cv_prog_ac_ct_CC="$ac_prog"
1806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807     break 2
1808   fi
1809 done
1810 done
1811
1812 fi
1813 fi
1814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815 if test -n "$ac_ct_CC"; then
1816   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817 echo "${ECHO_T}$ac_ct_CC" >&6
1818 else
1819   echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1821 fi
1822
1823   test -n "$ac_ct_CC" && break
1824 done
1825
1826   CC=$ac_ct_CC
1827 fi
1828
1829 fi
1830
1831
1832 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: no acceptable C compiler found in \$PATH
1835 See \`config.log' for more details." >&2;}
1836    { (exit 1); exit 1; }; }
1837
1838 # Provide some information about the compiler.
1839 echo "$as_me:$LINENO:" \
1840      "checking for C compiler version" >&5
1841 ac_compiler=`set X $ac_compile; echo $2`
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1843   (eval $ac_compiler --version </dev/null >&5) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1848   (eval $ac_compiler -v </dev/null >&5) 2>&5
1849   ac_status=$?
1850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851   (exit $ac_status); }
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1853   (eval $ac_compiler -V </dev/null >&5) 2>&5
1854   ac_status=$?
1855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856   (exit $ac_status); }
1857
1858 cat >conftest.$ac_ext <<_ACEOF
1859 #line $LINENO "configure"
1860 /* confdefs.h.  */
1861 _ACEOF
1862 cat confdefs.h >>conftest.$ac_ext
1863 cat >>conftest.$ac_ext <<_ACEOF
1864 /* end confdefs.h.  */
1865
1866 int
1867 main ()
1868 {
1869
1870   ;
1871   return 0;
1872 }
1873 _ACEOF
1874 ac_clean_files_save=$ac_clean_files
1875 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1876 # Try to create an executable without -o first, disregard a.out.
1877 # It will help us diagnose broken compilers, and finding out an intuition
1878 # of exeext.
1879 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1880 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1881 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1882 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1883   (eval $ac_link_default) 2>&5
1884   ac_status=$?
1885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886   (exit $ac_status); }; then
1887   # Find the output, starting from the most likely.  This scheme is
1888 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1889 # resort.
1890
1891 # Be careful to initialize this variable, since it used to be cached.
1892 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1893 ac_cv_exeext=
1894 # b.out is created by i960 compilers.
1895 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1896 do
1897   test -f "$ac_file" || continue
1898   case $ac_file in
1899     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1900         ;;
1901     conftest.$ac_ext )
1902         # This is the source file.
1903         ;;
1904     [ab].out )
1905         # We found the default executable, but exeext='' is most
1906         # certainly right.
1907         break;;
1908     *.* )
1909         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1910         # FIXME: I believe we export ac_cv_exeext for Libtool,
1911         # but it would be cool to find out if it's true.  Does anybody
1912         # maintain Libtool? --akim.
1913         export ac_cv_exeext
1914         break;;
1915     * )
1916         break;;
1917   esac
1918 done
1919 else
1920   echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1922
1923 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1924 See \`config.log' for more details." >&5
1925 echo "$as_me: error: C compiler cannot create executables
1926 See \`config.log' for more details." >&2;}
1927    { (exit 77); exit 77; }; }
1928 fi
1929
1930 ac_exeext=$ac_cv_exeext
1931 echo "$as_me:$LINENO: result: $ac_file" >&5
1932 echo "${ECHO_T}$ac_file" >&6
1933
1934 # Check the compiler produces executables we can run.  If not, either
1935 # the compiler is broken, or we cross compile.
1936 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1937 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1938 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1939 # If not cross compiling, check that we can run a simple program.
1940 if test "$cross_compiling" != yes; then
1941   if { ac_try='./$ac_file'
1942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943   (eval $ac_try) 2>&5
1944   ac_status=$?
1945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946   (exit $ac_status); }; }; then
1947     cross_compiling=no
1948   else
1949     if test "$cross_compiling" = maybe; then
1950         cross_compiling=yes
1951     else
1952         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1953 If you meant to cross compile, use \`--host'.
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: cannot run C compiled programs.
1956 If you meant to cross compile, use \`--host'.
1957 See \`config.log' for more details." >&2;}
1958    { (exit 1); exit 1; }; }
1959     fi
1960   fi
1961 fi
1962 echo "$as_me:$LINENO: result: yes" >&5
1963 echo "${ECHO_T}yes" >&6
1964
1965 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1966 ac_clean_files=$ac_clean_files_save
1967 # Check the compiler produces executables we can run.  If not, either
1968 # the compiler is broken, or we cross compile.
1969 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1970 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1971 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1972 echo "${ECHO_T}$cross_compiling" >&6
1973
1974 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1975 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1977   (eval $ac_link) 2>&5
1978   ac_status=$?
1979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980   (exit $ac_status); }; then
1981   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1982 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1983 # work properly (i.e., refer to `conftest.exe'), while it won't with
1984 # `rm'.
1985 for ac_file in conftest.exe conftest conftest.*; do
1986   test -f "$ac_file" || continue
1987   case $ac_file in
1988     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1989     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1990           export ac_cv_exeext
1991           break;;
1992     * ) break;;
1993   esac
1994 done
1995 else
1996   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1997 See \`config.log' for more details." >&5
1998 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1999 See \`config.log' for more details." >&2;}
2000    { (exit 1); exit 1; }; }
2001 fi
2002
2003 rm -f conftest$ac_cv_exeext
2004 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2005 echo "${ECHO_T}$ac_cv_exeext" >&6
2006
2007 rm -f conftest.$ac_ext
2008 EXEEXT=$ac_cv_exeext
2009 ac_exeext=$EXEEXT
2010 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2011 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2012 if test "${ac_cv_objext+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   cat >conftest.$ac_ext <<_ACEOF
2016 #line $LINENO "configure"
2017 /* confdefs.h.  */
2018 _ACEOF
2019 cat confdefs.h >>conftest.$ac_ext
2020 cat >>conftest.$ac_ext <<_ACEOF
2021 /* end confdefs.h.  */
2022
2023 int
2024 main ()
2025 {
2026
2027   ;
2028   return 0;
2029 }
2030 _ACEOF
2031 rm -f conftest.o conftest.obj
2032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033   (eval $ac_compile) 2>&5
2034   ac_status=$?
2035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036   (exit $ac_status); }; then
2037   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2038   case $ac_file in
2039     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2040     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2041        break;;
2042   esac
2043 done
2044 else
2045   echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2047
2048 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2049 See \`config.log' for more details." >&5
2050 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2051 See \`config.log' for more details." >&2;}
2052    { (exit 1); exit 1; }; }
2053 fi
2054
2055 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2056 fi
2057 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2058 echo "${ECHO_T}$ac_cv_objext" >&6
2059 OBJEXT=$ac_cv_objext
2060 ac_objext=$OBJEXT
2061 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2062 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2063 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2064   echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066   cat >conftest.$ac_ext <<_ACEOF
2067 #line $LINENO "configure"
2068 /* confdefs.h.  */
2069 _ACEOF
2070 cat confdefs.h >>conftest.$ac_ext
2071 cat >>conftest.$ac_ext <<_ACEOF
2072 /* end confdefs.h.  */
2073
2074 int
2075 main ()
2076 {
2077 #ifndef __GNUC__
2078        choke me
2079 #endif
2080
2081   ;
2082   return 0;
2083 }
2084 _ACEOF
2085 rm -f conftest.$ac_objext
2086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2087   (eval $ac_compile) 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); } &&
2091          { ac_try='test -s conftest.$ac_objext'
2092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093   (eval $ac_try) 2>&5
2094   ac_status=$?
2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096   (exit $ac_status); }; }; then
2097   ac_compiler_gnu=yes
2098 else
2099   echo "$as_me: failed program was:" >&5
2100 sed 's/^/| /' conftest.$ac_ext >&5
2101
2102 ac_compiler_gnu=no
2103 fi
2104 rm -f conftest.$ac_objext conftest.$ac_ext
2105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2106
2107 fi
2108 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2109 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2110 GCC=`test $ac_compiler_gnu = yes && echo yes`
2111 ac_test_CFLAGS=${CFLAGS+set}
2112 ac_save_CFLAGS=$CFLAGS
2113 CFLAGS="-g"
2114 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2115 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2116 if test "${ac_cv_prog_cc_g+set}" = set; then
2117   echo $ECHO_N "(cached) $ECHO_C" >&6
2118 else
2119   cat >conftest.$ac_ext <<_ACEOF
2120 #line $LINENO "configure"
2121 /* confdefs.h.  */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h.  */
2126
2127 int
2128 main ()
2129 {
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137   (eval $ac_compile) 2>&5
2138   ac_status=$?
2139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140   (exit $ac_status); } &&
2141          { ac_try='test -s conftest.$ac_objext'
2142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143   (eval $ac_try) 2>&5
2144   ac_status=$?
2145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146   (exit $ac_status); }; }; then
2147   ac_cv_prog_cc_g=yes
2148 else
2149   echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2151
2152 ac_cv_prog_cc_g=no
2153 fi
2154 rm -f conftest.$ac_objext conftest.$ac_ext
2155 fi
2156 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2157 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2158 if test "$ac_test_CFLAGS" = set; then
2159   CFLAGS=$ac_save_CFLAGS
2160 elif test $ac_cv_prog_cc_g = yes; then
2161   if test "$GCC" = yes; then
2162     CFLAGS="-g -O2"
2163   else
2164     CFLAGS="-g"
2165   fi
2166 else
2167   if test "$GCC" = yes; then
2168     CFLAGS="-O2"
2169   else
2170     CFLAGS=
2171   fi
2172 fi
2173 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2174 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2175 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2176   echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178   ac_cv_prog_cc_stdc=no
2179 ac_save_CC=$CC
2180 cat >conftest.$ac_ext <<_ACEOF
2181 #line $LINENO "configure"
2182 /* confdefs.h.  */
2183 _ACEOF
2184 cat confdefs.h >>conftest.$ac_ext
2185 cat >>conftest.$ac_ext <<_ACEOF
2186 /* end confdefs.h.  */
2187 #include <stdarg.h>
2188 #include <stdio.h>
2189 #include <sys/types.h>
2190 #include <sys/stat.h>
2191 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2192 struct buf { int x; };
2193 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2194 static char *e (p, i)
2195      char **p;
2196      int i;
2197 {
2198   return p[i];
2199 }
2200 static char *f (char * (*g) (char **, int), char **p, ...)
2201 {
2202   char *s;
2203   va_list v;
2204   va_start (v,p);
2205   s = g (p, va_arg (v,int));
2206   va_end (v);
2207   return s;
2208 }
2209 int test (int i, double x);
2210 struct s1 {int (*f) (int a);};
2211 struct s2 {int (*f) (double a);};
2212 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2213 int argc;
2214 char **argv;
2215 int
2216 main ()
2217 {
2218 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2219   ;
2220   return 0;
2221 }
2222 _ACEOF
2223 # Don't try gcc -ansi; that turns off useful extensions and
2224 # breaks some systems' header files.
2225 # AIX                   -qlanglvl=ansi
2226 # Ultrix and OSF/1      -std1
2227 # HP-UX 10.20 and later -Ae
2228 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2229 # SVR4                  -Xc -D__EXTENSIONS__
2230 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2231 do
2232   CC="$ac_save_CC $ac_arg"
2233   rm -f conftest.$ac_objext
2234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235   (eval $ac_compile) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); } &&
2239          { ac_try='test -s conftest.$ac_objext'
2240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241   (eval $ac_try) 2>&5
2242   ac_status=$?
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); }; }; then
2245   ac_cv_prog_cc_stdc=$ac_arg
2246 break
2247 else
2248   echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2250
2251 fi
2252 rm -f conftest.$ac_objext
2253 done
2254 rm -f conftest.$ac_ext conftest.$ac_objext
2255 CC=$ac_save_CC
2256
2257 fi
2258
2259 case "x$ac_cv_prog_cc_stdc" in
2260   x|xno)
2261     echo "$as_me:$LINENO: result: none needed" >&5
2262 echo "${ECHO_T}none needed" >&6 ;;
2263   *)
2264     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2265 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2266     CC="$CC $ac_cv_prog_cc_stdc" ;;
2267 esac
2268
2269 # Some people use a C++ compiler to compile C.  Since we use `exit',
2270 # in C++ we need to declare it.  In case someone uses the same compiler
2271 # for both compiling C and C++ we need to have the C++ compiler decide
2272 # the declaration of exit, since it's the most demanding environment.
2273 cat >conftest.$ac_ext <<_ACEOF
2274 #ifndef __cplusplus
2275   choke me
2276 #endif
2277 _ACEOF
2278 rm -f conftest.$ac_objext
2279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2280   (eval $ac_compile) 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); } &&
2284          { ac_try='test -s conftest.$ac_objext'
2285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286   (eval $ac_try) 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }; }; then
2290   for ac_declaration in \
2291    ''\
2292    '#include <stdlib.h>' \
2293    'extern "C" void std::exit (int) throw (); using std::exit;' \
2294    'extern "C" void std::exit (int); using std::exit;' \
2295    'extern "C" void exit (int) throw ();' \
2296    'extern "C" void exit (int);' \
2297    'void exit (int);'
2298 do
2299   cat >conftest.$ac_ext <<_ACEOF
2300 #line $LINENO "configure"
2301 /* confdefs.h.  */
2302 _ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h.  */
2306 #include <stdlib.h>
2307 $ac_declaration
2308 int
2309 main ()
2310 {
2311 exit (42);
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 rm -f conftest.$ac_objext
2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318   (eval $ac_compile) 2>&5
2319   ac_status=$?
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); } &&
2322          { ac_try='test -s conftest.$ac_objext'
2323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324   (eval $ac_try) 2>&5
2325   ac_status=$?
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); }; }; then
2328   :
2329 else
2330   echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2332
2333 continue
2334 fi
2335 rm -f conftest.$ac_objext conftest.$ac_ext
2336   cat >conftest.$ac_ext <<_ACEOF
2337 #line $LINENO "configure"
2338 /* confdefs.h.  */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h.  */
2343 $ac_declaration
2344 int
2345 main ()
2346 {
2347 exit (42);
2348   ;
2349   return 0;
2350 }
2351 _ACEOF
2352 rm -f conftest.$ac_objext
2353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354   (eval $ac_compile) 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); } &&
2358          { ac_try='test -s conftest.$ac_objext'
2359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360   (eval $ac_try) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }; }; then
2364   break
2365 else
2366   echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 fi
2370 rm -f conftest.$ac_objext conftest.$ac_ext
2371 done
2372 rm -f conftest*
2373 if test -n "$ac_declaration"; then
2374   echo '#ifdef __cplusplus' >>confdefs.h
2375   echo $ac_declaration      >>confdefs.h
2376   echo '#endif'             >>confdefs.h
2377 fi
2378
2379 else
2380   echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 fi
2384 rm -f conftest.$ac_objext conftest.$ac_ext
2385 ac_ext=c
2386 ac_cpp='$CPP $CPPFLAGS'
2387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390
2391 ac_ext=cc
2392 ac_cpp='$CXXCPP $CPPFLAGS'
2393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2396 if test -n "$ac_tool_prefix"; then
2397   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2398   do
2399     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2401 echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2403 if test "${ac_cv_prog_CXX+set}" = set; then
2404   echo $ECHO_N "(cached) $ECHO_C" >&6
2405 else
2406   if test -n "$CXX"; then
2407   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412   IFS=$as_save_IFS
2413   test -z "$as_dir" && as_dir=.
2414   for ac_exec_ext in '' $ac_executable_extensions; do
2415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418     break 2
2419   fi
2420 done
2421 done
2422
2423 fi
2424 fi
2425 CXX=$ac_cv_prog_CXX
2426 if test -n "$CXX"; then
2427   echo "$as_me:$LINENO: result: $CXX" >&5
2428 echo "${ECHO_T}$CXX" >&6
2429 else
2430   echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6
2432 fi
2433
2434     test -n "$CXX" && break
2435   done
2436 fi
2437 if test -z "$CXX"; then
2438   ac_ct_CXX=$CXX
2439   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2440 do
2441   # Extract the first word of "$ac_prog", so it can be a program name with args.
2442 set dummy $ac_prog; ac_word=$2
2443 echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2445 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2446   echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448   if test -n "$ac_ct_CXX"; then
2449   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2453 do
2454   IFS=$as_save_IFS
2455   test -z "$as_dir" && as_dir=.
2456   for ac_exec_ext in '' $ac_executable_extensions; do
2457   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458     ac_cv_prog_ac_ct_CXX="$ac_prog"
2459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460     break 2
2461   fi
2462 done
2463 done
2464
2465 fi
2466 fi
2467 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2468 if test -n "$ac_ct_CXX"; then
2469   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2470 echo "${ECHO_T}$ac_ct_CXX" >&6
2471 else
2472   echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6
2474 fi
2475
2476   test -n "$ac_ct_CXX" && break
2477 done
2478 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2479
2480   CXX=$ac_ct_CXX
2481 fi
2482
2483
2484 # Provide some information about the compiler.
2485 echo "$as_me:$LINENO:" \
2486      "checking for C++ compiler version" >&5
2487 ac_compiler=`set X $ac_compile; echo $2`
2488 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2489   (eval $ac_compiler --version </dev/null >&5) 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }
2493 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2494   (eval $ac_compiler -v </dev/null >&5) 2>&5
2495   ac_status=$?
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); }
2498 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2499   (eval $ac_compiler -V </dev/null >&5) 2>&5
2500   ac_status=$?
2501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); }
2503
2504 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2505 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2506 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   cat >conftest.$ac_ext <<_ACEOF
2510 #line $LINENO "configure"
2511 /* confdefs.h.  */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h.  */
2516
2517 int
2518 main ()
2519 {
2520 #ifndef __GNUC__
2521        choke me
2522 #endif
2523
2524   ;
2525   return 0;
2526 }
2527 _ACEOF
2528 rm -f conftest.$ac_objext
2529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2530   (eval $ac_compile) 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); } &&
2534          { ac_try='test -s conftest.$ac_objext'
2535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536   (eval $ac_try) 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; }; then
2540   ac_compiler_gnu=yes
2541 else
2542   echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 ac_compiler_gnu=no
2546 fi
2547 rm -f conftest.$ac_objext conftest.$ac_ext
2548 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2549
2550 fi
2551 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2552 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2553 GXX=`test $ac_compiler_gnu = yes && echo yes`
2554 ac_test_CXXFLAGS=${CXXFLAGS+set}
2555 ac_save_CXXFLAGS=$CXXFLAGS
2556 CXXFLAGS="-g"
2557 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2558 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2559 if test "${ac_cv_prog_cxx_g+set}" = set; then
2560   echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562   cat >conftest.$ac_ext <<_ACEOF
2563 #line $LINENO "configure"
2564 /* confdefs.h.  */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h.  */
2569
2570 int
2571 main ()
2572 {
2573
2574   ;
2575   return 0;
2576 }
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580   (eval $ac_compile) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); } &&
2584          { ac_try='test -s conftest.$ac_objext'
2585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586   (eval $ac_try) 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; }; then
2590   ac_cv_prog_cxx_g=yes
2591 else
2592   echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2594
2595 ac_cv_prog_cxx_g=no
2596 fi
2597 rm -f conftest.$ac_objext conftest.$ac_ext
2598 fi
2599 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2600 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2601 if test "$ac_test_CXXFLAGS" = set; then
2602   CXXFLAGS=$ac_save_CXXFLAGS
2603 elif test $ac_cv_prog_cxx_g = yes; then
2604   if test "$GXX" = yes; then
2605     CXXFLAGS="-g -O2"
2606   else
2607     CXXFLAGS="-g"
2608   fi
2609 else
2610   if test "$GXX" = yes; then
2611     CXXFLAGS="-O2"
2612   else
2613     CXXFLAGS=
2614   fi
2615 fi
2616 for ac_declaration in \
2617    ''\
2618    '#include <stdlib.h>' \
2619    'extern "C" void std::exit (int) throw (); using std::exit;' \
2620    'extern "C" void std::exit (int); using std::exit;' \
2621    'extern "C" void exit (int) throw ();' \
2622    'extern "C" void exit (int);' \
2623    'void exit (int);'
2624 do
2625   cat >conftest.$ac_ext <<_ACEOF
2626 #line $LINENO "configure"
2627 /* confdefs.h.  */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h.  */
2632 #include <stdlib.h>
2633 $ac_declaration
2634 int
2635 main ()
2636 {
2637 exit (42);
2638   ;
2639   return 0;
2640 }
2641 _ACEOF
2642 rm -f conftest.$ac_objext
2643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644   (eval $ac_compile) 2>&5
2645   ac_status=$?
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); } &&
2648          { ac_try='test -s conftest.$ac_objext'
2649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650   (eval $ac_try) 2>&5
2651   ac_status=$?
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); }; }; then
2654   :
2655 else
2656   echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2658
2659 continue
2660 fi
2661 rm -f conftest.$ac_objext conftest.$ac_ext
2662   cat >conftest.$ac_ext <<_ACEOF
2663 #line $LINENO "configure"
2664 /* confdefs.h.  */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h.  */
2669 $ac_declaration
2670 int
2671 main ()
2672 {
2673 exit (42);
2674   ;
2675   return 0;
2676 }
2677 _ACEOF
2678 rm -f conftest.$ac_objext
2679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680   (eval $ac_compile) 2>&5
2681   ac_status=$?
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); } &&
2684          { ac_try='test -s conftest.$ac_objext'
2685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686   (eval $ac_try) 2>&5
2687   ac_status=$?
2688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689   (exit $ac_status); }; }; then
2690   break
2691 else
2692   echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2694
2695 fi
2696 rm -f conftest.$ac_objext conftest.$ac_ext
2697 done
2698 rm -f conftest*
2699 if test -n "$ac_declaration"; then
2700   echo '#ifdef __cplusplus' >>confdefs.h
2701   echo $ac_declaration      >>confdefs.h
2702   echo '#endif'             >>confdefs.h
2703 fi
2704
2705 ac_ext=c
2706 ac_cpp='$CPP $CPPFLAGS'
2707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710
2711 if test "x$CC" != xcc; then
2712   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2713 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2714 else
2715   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2716 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2717 fi
2718 set dummy $CC; ac_cc=`echo $2 |
2719                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2720 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2721   echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723   cat >conftest.$ac_ext <<_ACEOF
2724 #line $LINENO "configure"
2725 /* confdefs.h.  */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h.  */
2730
2731 int
2732 main ()
2733 {
2734
2735   ;
2736   return 0;
2737 }
2738 _ACEOF
2739 # Make sure it works both with $CC and with simple cc.
2740 # We do the test twice because some compilers refuse to overwrite an
2741 # existing .o file with -o, though they will create one.
2742 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2743 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744   (eval $ac_try) 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); } &&
2748    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749   (eval $ac_try) 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); };
2753 then
2754   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2755   if test "x$CC" != xcc; then
2756     # Test first that cc exists at all.
2757     if { ac_try='cc -c conftest.$ac_ext >&5'
2758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759   (eval $ac_try) 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; }; then
2763       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2764       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765   (eval $ac_try) 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); } &&
2769          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770   (eval $ac_try) 2>&5
2771   ac_status=$?
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); };
2774       then
2775         # cc works too.
2776         :
2777       else
2778         # cc exists but doesn't like -o.
2779         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2780       fi
2781     fi
2782   fi
2783 else
2784   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2785 fi
2786 rm -f conftest*
2787
2788 fi
2789 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2790   echo "$as_me:$LINENO: result: yes" >&5
2791 echo "${ECHO_T}yes" >&6
2792 else
2793   echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2795
2796 cat >>confdefs.h <<\_ACEOF
2797 #define NO_MINUS_C_MINUS_O 1
2798 _ACEOF
2799
2800 fi
2801
2802 ac_ext=c
2803 ac_cpp='$CPP $CPPFLAGS'
2804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2808 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2809 # On Suns, sometimes $CPP names a directory.
2810 if test -n "$CPP" && test -d "$CPP"; then
2811   CPP=
2812 fi
2813 if test -z "$CPP"; then
2814   if test "${ac_cv_prog_CPP+set}" = set; then
2815   echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817       # Double quotes because CPP needs to be expanded
2818     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2819     do
2820       ac_preproc_ok=false
2821 for ac_c_preproc_warn_flag in '' yes
2822 do
2823   # Use a header file that comes with gcc, so configuring glibc
2824   # with a fresh cross-compiler works.
2825   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2826   # <limits.h> exists even on freestanding compilers.
2827   # On the NeXT, cc -E runs the code through the compiler's parser,
2828   # not just through cpp. "Syntax error" is here to catch this case.
2829   cat >conftest.$ac_ext <<_ACEOF
2830 #line $LINENO "configure"
2831 /* confdefs.h.  */
2832 _ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h.  */
2836 #ifdef __STDC__
2837 # include <limits.h>
2838 #else
2839 # include <assert.h>
2840 #endif
2841                      Syntax error
2842 _ACEOF
2843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2844   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2845   ac_status=$?
2846   grep -v '^ *+' conftest.er1 >conftest.err
2847   rm -f conftest.er1
2848   cat conftest.err >&5
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); } >/dev/null; then
2851   if test -s conftest.err; then
2852     ac_cpp_err=$ac_c_preproc_warn_flag
2853   else
2854     ac_cpp_err=
2855   fi
2856 else
2857   ac_cpp_err=yes
2858 fi
2859 if test -z "$ac_cpp_err"; then
2860   :
2861 else
2862   echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2864
2865   # Broken: fails on valid input.
2866 continue
2867 fi
2868 rm -f conftest.err conftest.$ac_ext
2869
2870   # OK, works on sane cases.  Now check whether non-existent headers
2871   # can be detected and how.
2872   cat >conftest.$ac_ext <<_ACEOF
2873 #line $LINENO "configure"
2874 /* confdefs.h.  */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h.  */
2879 #include <ac_nonexistent.h>
2880 _ACEOF
2881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2882   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2883   ac_status=$?
2884   grep -v '^ *+' conftest.er1 >conftest.err
2885   rm -f conftest.er1
2886   cat conftest.err >&5
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); } >/dev/null; then
2889   if test -s conftest.err; then
2890     ac_cpp_err=$ac_c_preproc_warn_flag
2891   else
2892     ac_cpp_err=
2893   fi
2894 else
2895   ac_cpp_err=yes
2896 fi
2897 if test -z "$ac_cpp_err"; then
2898   # Broken: success on invalid input.
2899 continue
2900 else
2901   echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2903
2904   # Passes both tests.
2905 ac_preproc_ok=:
2906 break
2907 fi
2908 rm -f conftest.err conftest.$ac_ext
2909
2910 done
2911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2912 rm -f conftest.err conftest.$ac_ext
2913 if $ac_preproc_ok; then
2914   break
2915 fi
2916
2917     done
2918     ac_cv_prog_CPP=$CPP
2919
2920 fi
2921   CPP=$ac_cv_prog_CPP
2922 else
2923   ac_cv_prog_CPP=$CPP
2924 fi
2925 echo "$as_me:$LINENO: result: $CPP" >&5
2926 echo "${ECHO_T}$CPP" >&6
2927 ac_preproc_ok=false
2928 for ac_c_preproc_warn_flag in '' yes
2929 do
2930   # Use a header file that comes with gcc, so configuring glibc
2931   # with a fresh cross-compiler works.
2932   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2933   # <limits.h> exists even on freestanding compilers.
2934   # On the NeXT, cc -E runs the code through the compiler's parser,
2935   # not just through cpp. "Syntax error" is here to catch this case.
2936   cat >conftest.$ac_ext <<_ACEOF
2937 #line $LINENO "configure"
2938 /* confdefs.h.  */
2939 _ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h.  */
2943 #ifdef __STDC__
2944 # include <limits.h>
2945 #else
2946 # include <assert.h>
2947 #endif
2948                      Syntax error
2949 _ACEOF
2950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2952   ac_status=$?
2953   grep -v '^ *+' conftest.er1 >conftest.err
2954   rm -f conftest.er1
2955   cat conftest.err >&5
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); } >/dev/null; then
2958   if test -s conftest.err; then
2959     ac_cpp_err=$ac_c_preproc_warn_flag
2960   else
2961     ac_cpp_err=
2962   fi
2963 else
2964   ac_cpp_err=yes
2965 fi
2966 if test -z "$ac_cpp_err"; then
2967   :
2968 else
2969   echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972   # Broken: fails on valid input.
2973 continue
2974 fi
2975 rm -f conftest.err conftest.$ac_ext
2976
2977   # OK, works on sane cases.  Now check whether non-existent headers
2978   # can be detected and how.
2979   cat >conftest.$ac_ext <<_ACEOF
2980 #line $LINENO "configure"
2981 /* confdefs.h.  */
2982 _ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h.  */
2986 #include <ac_nonexistent.h>
2987 _ACEOF
2988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2989   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2990   ac_status=$?
2991   grep -v '^ *+' conftest.er1 >conftest.err
2992   rm -f conftest.er1
2993   cat conftest.err >&5
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); } >/dev/null; then
2996   if test -s conftest.err; then
2997     ac_cpp_err=$ac_c_preproc_warn_flag
2998   else
2999     ac_cpp_err=
3000   fi
3001 else
3002   ac_cpp_err=yes
3003 fi
3004 if test -z "$ac_cpp_err"; then
3005   # Broken: success on invalid input.
3006 continue
3007 else
3008   echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3010
3011   # Passes both tests.
3012 ac_preproc_ok=:
3013 break
3014 fi
3015 rm -f conftest.err conftest.$ac_ext
3016
3017 done
3018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3019 rm -f conftest.err conftest.$ac_ext
3020 if $ac_preproc_ok; then
3021   :
3022 else
3023   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3026 See \`config.log' for more details." >&2;}
3027    { (exit 1); exit 1; }; }
3028 fi
3029
3030 ac_ext=c
3031 ac_cpp='$CPP $CPPFLAGS'
3032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035
3036
3037 echo "$as_me:$LINENO: checking for egrep" >&5
3038 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3039 if test "${ac_cv_prog_egrep+set}" = set; then
3040   echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3043     then ac_cv_prog_egrep='grep -E'
3044     else ac_cv_prog_egrep='egrep'
3045     fi
3046 fi
3047 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3048 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3049  EGREP=$ac_cv_prog_egrep
3050
3051
3052 if test $ac_cv_c_compiler_gnu = yes; then
3053     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3054 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3055 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3056   echo $ECHO_N "(cached) $ECHO_C" >&6
3057 else
3058     ac_pattern="Autoconf.*'x'"
3059   cat >conftest.$ac_ext <<_ACEOF
3060 #line $LINENO "configure"
3061 /* confdefs.h.  */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h.  */
3066 #include <sgtty.h>
3067 Autoconf TIOCGETP
3068 _ACEOF
3069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3070   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3071   ac_cv_prog_gcc_traditional=yes
3072 else
3073   ac_cv_prog_gcc_traditional=no
3074 fi
3075 rm -f conftest*
3076
3077
3078   if test $ac_cv_prog_gcc_traditional = no; then
3079     cat >conftest.$ac_ext <<_ACEOF
3080 #line $LINENO "configure"
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086 #include <termio.h>
3087 Autoconf TCGETA
3088 _ACEOF
3089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3090   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3091   ac_cv_prog_gcc_traditional=yes
3092 fi
3093 rm -f conftest*
3094
3095   fi
3096 fi
3097 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3098 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3099   if test $ac_cv_prog_gcc_traditional = yes; then
3100     CC="$CC -traditional"
3101   fi
3102 fi
3103
3104 if test x$CC = xgcc
3105 then
3106    cat >>confdefs.h <<\_ACEOF
3107 #define HAVE_GCC 1
3108 _ACEOF
3109
3110 fi
3111
3112 # Find a good install program.  We prefer a C program (faster),
3113 # so one script is as good as another.  But avoid the broken or
3114 # incompatible versions:
3115 # SysV /etc/install, /usr/sbin/install
3116 # SunOS /usr/etc/install
3117 # IRIX /sbin/install
3118 # AIX /bin/install
3119 # AmigaOS /C/install, which installs bootblocks on floppy discs
3120 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3121 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3122 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3123 # ./install, which can be erroneously created by make from ./install.sh.
3124 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3125 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3126 if test -z "$INSTALL"; then
3127 if test "${ac_cv_path_install+set}" = set; then
3128   echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133   IFS=$as_save_IFS
3134   test -z "$as_dir" && as_dir=.
3135   # Account for people who put trailing slashes in PATH elements.
3136 case $as_dir/ in
3137   ./ | .// | /cC/* | \
3138   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3139   /usr/ucb/* ) ;;
3140   *)
3141     # OSF1 and SCO ODT 3.0 have their own names for install.
3142     # Don't use installbsd from OSF since it installs stuff as root
3143     # by default.
3144     for ac_prog in ginstall scoinst install; do
3145       for ac_exec_ext in '' $ac_executable_extensions; do
3146         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3147           if test $ac_prog = install &&
3148             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3149             # AIX install.  It has an incompatible calling convention.
3150             :
3151           elif test $ac_prog = install &&
3152             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3153             # program-specific install script used by HP pwplus--don't use.
3154             :
3155           else
3156             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3157             break 3
3158           fi
3159         fi
3160       done
3161     done
3162     ;;
3163 esac
3164 done
3165
3166
3167 fi
3168   if test "${ac_cv_path_install+set}" = set; then
3169     INSTALL=$ac_cv_path_install
3170   else
3171     # As a last resort, use the slow shell script.  We don't cache a
3172     # path for INSTALL within a source directory, because that will
3173     # break other packages using the cache if that directory is
3174     # removed, or if the path is relative.
3175     INSTALL=$ac_install_sh
3176   fi
3177 fi
3178 echo "$as_me:$LINENO: result: $INSTALL" >&5
3179 echo "${ECHO_T}$INSTALL" >&6
3180
3181 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3182 # It thinks the first close brace ends the variable substitution.
3183 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3184
3185 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3186
3187 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3188
3189 if test -n "$ac_tool_prefix"; then
3190   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3191 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3192 echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3194 if test "${ac_cv_prog_RANLIB+set}" = set; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197   if test -n "$RANLIB"; then
3198   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205   for ac_exec_ext in '' $ac_executable_extensions; do
3206   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209     break 2
3210   fi
3211 done
3212 done
3213
3214 fi
3215 fi
3216 RANLIB=$ac_cv_prog_RANLIB
3217 if test -n "$RANLIB"; then
3218   echo "$as_me:$LINENO: result: $RANLIB" >&5
3219 echo "${ECHO_T}$RANLIB" >&6
3220 else
3221   echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3223 fi
3224
3225 fi
3226 if test -z "$ac_cv_prog_RANLIB"; then
3227   ac_ct_RANLIB=$RANLIB
3228   # Extract the first word of "ranlib", so it can be a program name with args.
3229 set dummy ranlib; ac_word=$2
3230 echo "$as_me:$LINENO: checking for $ac_word" >&5
3231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3232 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3233   echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235   if test -n "$ac_ct_RANLIB"; then
3236   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3237 else
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH
3240 do
3241   IFS=$as_save_IFS
3242   test -z "$as_dir" && as_dir=.
3243   for ac_exec_ext in '' $ac_executable_extensions; do
3244   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245     ac_cv_prog_ac_ct_RANLIB="ranlib"
3246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247     break 2
3248   fi
3249 done
3250 done
3251
3252   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3253 fi
3254 fi
3255 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3256 if test -n "$ac_ct_RANLIB"; then
3257   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3258 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3259 else
3260   echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3262 fi
3263
3264   RANLIB=$ac_ct_RANLIB
3265 else
3266   RANLIB="$ac_cv_prog_RANLIB"
3267 fi
3268
3269 # Extract the first word of "mv", so it can be a program name with args.
3270 set dummy mv; ac_word=$2
3271 echo "$as_me:$LINENO: checking for $ac_word" >&5
3272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3273 if test "${ac_cv_path_MV+set}" = set; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276   case $MV in
3277   [\\/]* | ?:[\\/]*)
3278   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3279   ;;
3280   *)
3281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284   IFS=$as_save_IFS
3285   test -z "$as_dir" && as_dir=.
3286   for ac_exec_ext in '' $ac_executable_extensions; do
3287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290     break 2
3291   fi
3292 done
3293 done
3294
3295   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3296   ;;
3297 esac
3298 fi
3299 MV=$ac_cv_path_MV
3300
3301 if test -n "$MV"; then
3302   echo "$as_me:$LINENO: result: $MV" >&5
3303 echo "${ECHO_T}$MV" >&6
3304 else
3305   echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3307 fi
3308
3309 # Extract the first word of "rm", so it can be a program name with args.
3310 set dummy rm; ac_word=$2
3311 echo "$as_me:$LINENO: checking for $ac_word" >&5
3312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3313 if test "${ac_cv_path_RM+set}" = set; then
3314   echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316   case $RM in
3317   [\\/]* | ?:[\\/]*)
3318   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3319   ;;
3320   *)
3321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324   IFS=$as_save_IFS
3325   test -z "$as_dir" && as_dir=.
3326   for ac_exec_ext in '' $ac_executable_extensions; do
3327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330     break 2
3331   fi
3332 done
3333 done
3334
3335   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3336   ;;
3337 esac
3338 fi
3339 RM=$ac_cv_path_RM
3340
3341 if test -n "$RM"; then
3342   echo "$as_me:$LINENO: result: $RM" >&5
3343 echo "${ECHO_T}$RM" >&6
3344 else
3345   echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3347 fi
3348
3349 # Extract the first word of "cp", so it can be a program name with args.
3350 set dummy cp; ac_word=$2
3351 echo "$as_me:$LINENO: checking for $ac_word" >&5
3352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3353 if test "${ac_cv_path_CP+set}" = set; then
3354   echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356   case $CP in
3357   [\\/]* | ?:[\\/]*)
3358   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3359   ;;
3360   *)
3361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364   IFS=$as_save_IFS
3365   test -z "$as_dir" && as_dir=.
3366   for ac_exec_ext in '' $ac_executable_extensions; do
3367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370     break 2
3371   fi
3372 done
3373 done
3374
3375   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3376   ;;
3377 esac
3378 fi
3379 CP=$ac_cv_path_CP
3380
3381 if test -n "$CP"; then
3382   echo "$as_me:$LINENO: result: $CP" >&5
3383 echo "${ECHO_T}$CP" >&6
3384 else
3385   echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6
3387 fi
3388
3389 # Extract the first word of "sed", so it can be a program name with args.
3390 set dummy sed; ac_word=$2
3391 echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3393 if test "${ac_cv_path_SED+set}" = set; then
3394   echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396   case $SED in
3397   [\\/]* | ?:[\\/]*)
3398   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3399   ;;
3400   *)
3401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404   IFS=$as_save_IFS
3405   test -z "$as_dir" && as_dir=.
3406   for ac_exec_ext in '' $ac_executable_extensions; do
3407   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410     break 2
3411   fi
3412 done
3413 done
3414
3415   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3416   ;;
3417 esac
3418 fi
3419 SED=$ac_cv_path_SED
3420
3421 if test -n "$SED"; then
3422   echo "$as_me:$LINENO: result: $SED" >&5
3423 echo "${ECHO_T}$SED" >&6
3424 else
3425   echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6
3427 fi
3428
3429 # Extract the first word of "awk", so it can be a program name with args.
3430 set dummy awk; ac_word=$2
3431 echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3433 if test "${ac_cv_path_AWK+set}" = set; then
3434   echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436   case $AWK in
3437   [\\/]* | ?:[\\/]*)
3438   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3439   ;;
3440   *)
3441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444   IFS=$as_save_IFS
3445   test -z "$as_dir" && as_dir=.
3446   for ac_exec_ext in '' $ac_executable_extensions; do
3447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450     break 2
3451   fi
3452 done
3453 done
3454
3455   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3456   ;;
3457 esac
3458 fi
3459 AWK=$ac_cv_path_AWK
3460
3461 if test -n "$AWK"; then
3462   echo "$as_me:$LINENO: result: $AWK" >&5
3463 echo "${ECHO_T}$AWK" >&6
3464 else
3465   echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6
3467 fi
3468
3469 # Extract the first word of "echo", so it can be a program name with args.
3470 set dummy echo; ac_word=$2
3471 echo "$as_me:$LINENO: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473 if test "${ac_cv_path_ECHO+set}" = set; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476   case $ECHO in
3477   [\\/]* | ?:[\\/]*)
3478   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3479   ;;
3480   *)
3481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3483 do
3484   IFS=$as_save_IFS
3485   test -z "$as_dir" && as_dir=.
3486   for ac_exec_ext in '' $ac_executable_extensions; do
3487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490     break 2
3491   fi
3492 done
3493 done
3494
3495   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3496   ;;
3497 esac
3498 fi
3499 ECHO=$ac_cv_path_ECHO
3500
3501 if test -n "$ECHO"; then
3502   echo "$as_me:$LINENO: result: $ECHO" >&5
3503 echo "${ECHO_T}$ECHO" >&6
3504 else
3505   echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6
3507 fi
3508
3509 # Extract the first word of "cmp", so it can be a program name with args.
3510 set dummy cmp; ac_word=$2
3511 echo "$as_me:$LINENO: checking for $ac_word" >&5
3512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3513 if test "${ac_cv_path_CMP+set}" = set; then
3514   echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516   case $CMP in
3517   [\\/]* | ?:[\\/]*)
3518   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3519   ;;
3520   *)
3521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3523 do
3524   IFS=$as_save_IFS
3525   test -z "$as_dir" && as_dir=.
3526   for ac_exec_ext in '' $ac_executable_extensions; do
3527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530     break 2
3531   fi
3532 done
3533 done
3534
3535   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3536   ;;
3537 esac
3538 fi
3539 CMP=$ac_cv_path_CMP
3540
3541 if test -n "$CMP"; then
3542   echo "$as_me:$LINENO: result: $CMP" >&5
3543 echo "${ECHO_T}$CMP" >&6
3544 else
3545   echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6
3547 fi
3548
3549 # Extract the first word of "tbl", so it can be a program name with args.
3550 set dummy tbl; ac_word=$2
3551 echo "$as_me:$LINENO: checking for $ac_word" >&5
3552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3553 if test "${ac_cv_path_TBL+set}" = set; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556   case $TBL in
3557   [\\/]* | ?:[\\/]*)
3558   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3559   ;;
3560   *)
3561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564   IFS=$as_save_IFS
3565   test -z "$as_dir" && as_dir=.
3566   for ac_exec_ext in '' $ac_executable_extensions; do
3567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573 done
3574
3575   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3576   ;;
3577 esac
3578 fi
3579 TBL=$ac_cv_path_TBL
3580
3581 if test -n "$TBL"; then
3582   echo "$as_me:$LINENO: result: $TBL" >&5
3583 echo "${ECHO_T}$TBL" >&6
3584 else
3585   echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3587 fi
3588
3589 # Extract the first word of "ar", so it can be a program name with args.
3590 set dummy ar; ac_word=$2
3591 echo "$as_me:$LINENO: checking for $ac_word" >&5
3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3593 if test "${ac_cv_path_AR+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596   case $AR in
3597   [\\/]* | ?:[\\/]*)
3598   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3599   ;;
3600   *)
3601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3603 do
3604   IFS=$as_save_IFS
3605   test -z "$as_dir" && as_dir=.
3606   for ac_exec_ext in '' $ac_executable_extensions; do
3607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610     break 2
3611   fi
3612 done
3613 done
3614
3615   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3616   ;;
3617 esac
3618 fi
3619 AR=$ac_cv_path_AR
3620
3621 if test -n "$AR"; then
3622   echo "$as_me:$LINENO: result: $AR" >&5
3623 echo "${ECHO_T}$AR" >&6
3624 else
3625   echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6
3627 fi
3628
3629 # Extract the first word of "ranlib", so it can be a program name with args.
3630 set dummy ranlib; ac_word=$2
3631 echo "$as_me:$LINENO: checking for $ac_word" >&5
3632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3633 if test "${ac_cv_path_RANLIB+set}" = set; then
3634   echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636   case $RANLIB in
3637   [\\/]* | ?:[\\/]*)
3638   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3639   ;;
3640   *)
3641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644   IFS=$as_save_IFS
3645   test -z "$as_dir" && as_dir=.
3646   for ac_exec_ext in '' $ac_executable_extensions; do
3647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650     break 2
3651   fi
3652 done
3653 done
3654
3655   test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3656   ;;
3657 esac
3658 fi
3659 RANLIB=$ac_cv_path_RANLIB
3660
3661 if test -n "$RANLIB"; then
3662   echo "$as_me:$LINENO: result: $RANLIB" >&5
3663 echo "${ECHO_T}$RANLIB" >&6
3664 else
3665   echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6
3667 fi
3668
3669 # Extract the first word of "openssl", so it can be a program name with args.
3670 set dummy openssl; ac_word=$2
3671 echo "$as_me:$LINENO: checking for $ac_word" >&5
3672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3673 if test "${ac_cv_path_OPENSSL+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   case $OPENSSL in
3677   [\\/]* | ?:[\\/]*)
3678   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3679   ;;
3680   *)
3681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH
3683 do
3684   IFS=$as_save_IFS
3685   test -z "$as_dir" && as_dir=.
3686   for ac_exec_ext in '' $ac_executable_extensions; do
3687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3690     break 2
3691   fi
3692 done
3693 done
3694
3695   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3696   ;;
3697 esac
3698 fi
3699 OPENSSL=$ac_cv_path_OPENSSL
3700
3701 if test -n "$OPENSSL"; then
3702   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3703 echo "${ECHO_T}$OPENSSL" >&6
3704 else
3705   echo "$as_me:$LINENO: result: no" >&5
3706 echo "${ECHO_T}no" >&6
3707 fi
3708
3709 # Extract the first word of "mtx", so it can be a program name with args.
3710 set dummy mtx; ac_word=$2
3711 echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3713 if test "${ac_cv_path_MTX+set}" = set; then
3714   echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716   case $MTX in
3717   [\\/]* | ?:[\\/]*)
3718   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3719   ;;
3720   *)
3721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3723 do
3724   IFS=$as_save_IFS
3725   test -z "$as_dir" && as_dir=.
3726   for ac_exec_ext in '' $ac_executable_extensions; do
3727   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3728     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3730     break 2
3731   fi
3732 done
3733 done
3734
3735   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3736   ;;
3737 esac
3738 fi
3739 MTX=$ac_cv_path_MTX
3740
3741 if test -n "$MTX"; then
3742   echo "$as_me:$LINENO: result: $MTX" >&5
3743 echo "${ECHO_T}$MTX" >&6
3744 else
3745   echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3747 fi
3748
3749 # Extract the first word of "pkg-config", so it can be a program name with args.
3750 set dummy pkg-config; ac_word=$2
3751 echo "$as_me:$LINENO: checking for $ac_word" >&5
3752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3753 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756   case $PKGCONFIG in
3757   [\\/]* | ?:[\\/]*)
3758   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3759   ;;
3760   *)
3761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764   IFS=$as_save_IFS
3765   test -z "$as_dir" && as_dir=.
3766   for ac_exec_ext in '' $ac_executable_extensions; do
3767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770     break 2
3771   fi
3772 done
3773 done
3774
3775   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3776   ;;
3777 esac
3778 fi
3779 PKGCONFIG=$ac_cv_path_PKGCONFIG
3780
3781 if test -n "$PKGCONFIG"; then
3782   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3783 echo "${ECHO_T}$PKGCONFIG" >&6
3784 else
3785   echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6
3787 fi
3788
3789
3790 test -n "$ARFLAG" || ARFLAGS="cr"
3791
3792
3793 MAKE_SHELL=/bin/sh
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803 echo "$as_me:$LINENO: checking for Operating System" >&5
3804 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3805
3806 case $host_os in
3807   *cygwin* ) CYGWIN=yes;;
3808          * ) CYGWIN=no;;
3809 esac
3810
3811 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3812 then
3813
3814
3815 if $TRUEPRG; then
3816   HAVE_SUN_OS_TRUE=
3817   HAVE_SUN_OS_FALSE='#'
3818 else
3819   HAVE_SUN_OS_TRUE='#'
3820   HAVE_SUN_OS_FALSE=
3821 fi
3822         cat >>confdefs.h <<\_ACEOF
3823 #define HAVE_SUN_OS 1
3824 _ACEOF
3825
3826 else
3827
3828
3829 if $FALSEPRG; then
3830   HAVE_SUN_OS_TRUE=
3831   HAVE_SUN_OS_FALSE='#'
3832 else
3833   HAVE_SUN_OS_TRUE='#'
3834   HAVE_SUN_OS_FALSE=
3835 fi
3836 fi
3837
3838 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3839 then
3840
3841
3842 if $TRUEPRG; then
3843   HAVE_OSF1_OS_TRUE=
3844   HAVE_OSF1_OS_FALSE='#'
3845 else
3846   HAVE_OSF1_OS_TRUE='#'
3847   HAVE_OSF1_OS_FALSE=
3848 fi
3849         cat >>confdefs.h <<\_ACEOF
3850 #define HAVE_OSF1_OS 1
3851 _ACEOF
3852
3853 else
3854
3855
3856 if $FALSEPRG; then
3857   HAVE_OSF1_OS_TRUE=
3858   HAVE_OSF1_OS_FALSE='#'
3859 else
3860   HAVE_OSF1_OS_TRUE='#'
3861   HAVE_OSF1_OS_FALSE=
3862 fi
3863 fi
3864
3865 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3866 then
3867
3868
3869 if $TRUEPRG; then
3870   HAVE_AIX_OS_TRUE=
3871   HAVE_AIX_OS_FALSE='#'
3872 else
3873   HAVE_AIX_OS_TRUE='#'
3874   HAVE_AIX_OS_FALSE=
3875 fi
3876         cat >>confdefs.h <<\_ACEOF
3877 #define HAVE_AIX_OS 1
3878 _ACEOF
3879
3880 else
3881
3882
3883 if $FALSEPRG; then
3884   HAVE_AIX_OS_TRUE=
3885   HAVE_AIX_OS_FALSE='#'
3886 else
3887   HAVE_AIX_OS_TRUE='#'
3888   HAVE_AIX_OS_FALSE=
3889 fi
3890 fi
3891
3892 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3893 then
3894
3895
3896 if $TRUEPRG; then
3897   HAVE_HPUX_OS_TRUE=
3898   HAVE_HPUX_OS_FALSE='#'
3899 else
3900   HAVE_HPUX_OS_TRUE='#'
3901   HAVE_HPUX_OS_FALSE=
3902 fi
3903         cat >>confdefs.h <<\_ACEOF
3904 #define HAVE_HPUX_OS 1
3905 _ACEOF
3906
3907 else
3908
3909
3910 if $FALSEPRG; then
3911   HAVE_HPUX_OS_TRUE=
3912   HAVE_HPUX_OS_FALSE='#'
3913 else
3914   HAVE_HPUX_OS_TRUE='#'
3915   HAVE_HPUX_OS_FALSE=
3916 fi
3917 fi
3918
3919 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3920 then
3921
3922
3923 if $TRUEPRG; then
3924   HAVE_LINUX_OS_TRUE=
3925   HAVE_LINUX_OS_FALSE='#'
3926 else
3927   HAVE_LINUX_OS_TRUE='#'
3928   HAVE_LINUX_OS_FALSE=
3929 fi
3930         cat >>confdefs.h <<\_ACEOF
3931 #define HAVE_LINUX_OS 1
3932 _ACEOF
3933
3934 else
3935
3936
3937 if $FALSEPRG; then
3938   HAVE_LINUX_OS_TRUE=
3939   HAVE_LINUX_OS_FALSE='#'
3940 else
3941   HAVE_LINUX_OS_TRUE='#'
3942   HAVE_LINUX_OS_FALSE=
3943 fi
3944 fi
3945
3946 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3947 then
3948
3949
3950 if $TRUEPRG; then
3951   HAVE_FREEBSD_OS_TRUE=
3952   HAVE_FREEBSD_OS_FALSE='#'
3953 else
3954   HAVE_FREEBSD_OS_TRUE='#'
3955   HAVE_FREEBSD_OS_FALSE=
3956 fi
3957         cat >>confdefs.h <<\_ACEOF
3958 #define HAVE_FREEBSD_OS 1
3959 _ACEOF
3960
3961 else
3962
3963
3964 if $FALSEPRG; then
3965   HAVE_FREEBSD_OS_TRUE=
3966   HAVE_FREEBSD_OS_FALSE='#'
3967 else
3968   HAVE_FREEBSD_OS_TRUE='#'
3969   HAVE_FREEBSD_OS_FALSE=
3970 fi
3971 fi
3972
3973 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3974 then
3975
3976
3977 if $TRUEPRG; then
3978   HAVE_NETBSD_OS_TRUE=
3979   HAVE_NETBSD_OS_FALSE='#'
3980 else
3981   HAVE_NETBSD_OS_TRUE='#'
3982   HAVE_NETBSD_OS_FALSE=
3983 fi
3984         cat >>confdefs.h <<\_ACEOF
3985 #define HAVE_NETBSD_OS 1
3986 _ACEOF
3987
3988 else
3989
3990
3991 if $FALSEPRG; then
3992   HAVE_NETBSD_OS_TRUE=
3993   HAVE_NETBSD_OS_FALSE='#'
3994 else
3995   HAVE_NETBSD_OS_TRUE='#'
3996   HAVE_NETBSD_OS_FALSE=
3997 fi
3998 fi
3999
4000 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4001 then
4002
4003
4004 if $TRUEPRG; then
4005   HAVE_OPENBSD_OS_TRUE=
4006   HAVE_OPENBSD_OS_FALSE='#'
4007 else
4008   HAVE_OPENBSD_OS_TRUE='#'
4009   HAVE_OPENBSD_OS_FALSE=
4010 fi
4011         cat >>confdefs.h <<\_ACEOF
4012 #define HAVE_OPENBSD_OS 1
4013 _ACEOF
4014
4015 else
4016
4017
4018 if $FALSEPRG; then
4019   HAVE_OPENBSD_OS_TRUE=
4020   HAVE_OPENBSD_OS_FALSE='#'
4021 else
4022   HAVE_OPENBSD_OS_TRUE='#'
4023   HAVE_OPENBSD_OS_FALSE=
4024 fi
4025 fi
4026
4027 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4028 then
4029
4030
4031 if $TRUEPRG; then
4032   HAVE_BSDI_OS_TRUE=
4033   HAVE_BSDI_OS_FALSE='#'
4034 else
4035   HAVE_BSDI_OS_TRUE='#'
4036   HAVE_BSDI_OS_FALSE=
4037 fi
4038         cat >>confdefs.h <<\_ACEOF
4039 #define HAVE_BSDI_OS 1
4040 _ACEOF
4041
4042 else
4043
4044
4045 if $FALSEPRG; then
4046   HAVE_BSDI_OS_TRUE=
4047   HAVE_BSDI_OS_FALSE='#'
4048 else
4049   HAVE_BSDI_OS_TRUE='#'
4050   HAVE_BSDI_OS_FALSE=
4051 fi
4052 fi
4053
4054 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4055 then
4056
4057
4058 if $TRUEPRG; then
4059   HAVE_SGI_OS_TRUE=
4060   HAVE_SGI_OS_FALSE='#'
4061 else
4062   HAVE_SGI_OS_TRUE='#'
4063   HAVE_SGI_OS_FALSE=
4064 fi
4065         cat >>confdefs.h <<\_ACEOF
4066 #define HAVE_SGI_OS 1
4067 _ACEOF
4068
4069 else
4070
4071
4072 if $FALSEPRG; then
4073   HAVE_SGI_OS_TRUE=
4074   HAVE_SGI_OS_FALSE='#'
4075 else
4076   HAVE_SGI_OS_TRUE='#'
4077   HAVE_SGI_OS_FALSE=
4078 fi
4079 fi
4080
4081 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4082 then
4083
4084
4085 if $TRUEPRG; then
4086   HAVE_IRIX_OS_TRUE=
4087   HAVE_IRIX_OS_FALSE='#'
4088 else
4089   HAVE_IRIX_OS_TRUE='#'
4090   HAVE_IRIX_OS_FALSE=
4091 fi
4092         cat >>confdefs.h <<\_ACEOF
4093 #define HAVE_IRIX_OS 1
4094 _ACEOF
4095
4096 else
4097
4098
4099 if $FALSEPRG; then
4100   HAVE_IRIX_OS_TRUE=
4101   HAVE_IRIX_OS_FALSE='#'
4102 else
4103   HAVE_IRIX_OS_TRUE='#'
4104   HAVE_IRIX_OS_FALSE=
4105 fi
4106 fi
4107
4108 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4109 then
4110
4111
4112 if $TRUEPRG; then
4113   HAVE_DARWIN_OS_TRUE=
4114   HAVE_DARWIN_OS_FALSE='#'
4115 else
4116   HAVE_DARWIN_OS_TRUE='#'
4117   HAVE_DARWIN_OS_FALSE=
4118 fi
4119     cat >>confdefs.h <<\_ACEOF
4120 #define HAVE_DARWIN_OS 1
4121 _ACEOF
4122
4123 else
4124
4125
4126 if $FALSEPRG; then
4127   HAVE_DARWIN_OS_TRUE=
4128   HAVE_DARWIN_OS_FALSE='#'
4129 else
4130   HAVE_DARWIN_OS_TRUE='#'
4131   HAVE_DARWIN_OS_FALSE=
4132 fi
4133 fi
4134
4135 echo "$as_me:$LINENO: result: \" \"" >&5
4136 echo "${ECHO_T}\" \"" >&6
4137
4138
4139 # -----------------------------------------------------------
4140 # ----------------------------------------------------------
4141 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4142 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4143 if test "x$DISTNAME" != "x"
4144 then
4145         echo "distname set to $DISTNAME"
4146 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4147 then
4148         DISTNAME=alpha
4149 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4150 then
4151         DISTNAME=aix
4152 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4153 then
4154         DISTNAME=hpux
4155 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4156 then
4157         DISTNAME=solaris
4158 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4159 then
4160         DISTNAME=freebsd
4161 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4162 then
4163         DISTNAME=netbsd
4164 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4165 then
4166         DISTNAME=openbsd
4167 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4168 then
4169         DISTNAME=irix
4170 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4171 then
4172         DISTNAME=bsdi
4173 elif test -f /etc/SuSE-release
4174 then
4175         DISTNAME=suse
4176 elif test -d /etc/SuSEconfig
4177 then
4178         DISTNAME=suse5
4179 elif test -f /etc/mandrake-release
4180 then
4181         DISTNAME=mandrake
4182 elif test -f /etc/redhat-release
4183 then
4184         DISTNAME=redhat
4185 elif test -f /etc/gentoo-release
4186 then
4187         DISTNAME=gentoo
4188 elif test -f /etc/debian_version
4189 then
4190         DISTNAME=debian
4191 elif test -f /etc/slackware-version
4192 then
4193         DISTNAME=slackware
4194 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4195 then
4196     DISTNAME=darwin
4197 elif test -f /etc/engarde-version
4198 then
4199         DISTNAME=engarde
4200 elif test "$CYGWIN" = yes
4201 then
4202         DISTNAME=cygwin
4203         cat >>confdefs.h <<\_ACEOF
4204 #define HAVE_CYGWIN 1
4205 _ACEOF
4206
4207 else
4208         DISTNAME=unknown
4209 fi
4210 echo "$as_me:$LINENO: result: \" \"" >&5
4211 echo "${ECHO_T}\" \"" >&6
4212
4213
4214 # -----------------------------------------------------------
4215 # ----------------------------------------------------------
4216
4217
4218
4219 if false; then
4220   INSIDE_GNOME_COMMON_TRUE=
4221   INSIDE_GNOME_COMMON_FALSE='#'
4222 else
4223   INSIDE_GNOME_COMMON_TRUE='#'
4224   INSIDE_GNOME_COMMON_FALSE=
4225 fi
4226
4227         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4228
4229         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4230
4231
4232 # ------------------------------------------------------------------
4233 #  If the user has not set --prefix, we set our default to nothing.
4234 #  In this case, if the user has not set --sysconfdir, we set it
4235 #  to the package default of /etc/bacula.  If either --prefix or
4236 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4237 # ------------------------------------------------------------------
4238 if test x${prefix} = xNONE ; then
4239     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4240         sysconfdir=/etc/bacula
4241     fi
4242     prefix=
4243 fi
4244 sysconfdir=`eval echo ${sysconfdir}`
4245
4246 # -------------------------------------------------------------------------
4247 #  If the user has not set --exec-prefix, we default to ${prefix}
4248 # -------------------------------------------------------------------------
4249 if test x${exec_prefix} = xNONE ; then
4250     exec_prefix=${prefix}
4251 fi
4252
4253 # ------------------------------------------------------------------
4254 # If the user has not set --sbindir, we set our default as /sbin
4255 # ------------------------------------------------------------------
4256 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4257     sbindir=${exec_prefix}/sbin
4258 fi
4259 sbindir=`eval echo ${sbindir}`
4260
4261 # ------------------------------------------------------------------
4262 # All list of languages for which a translation exist. Each
4263 #  language is separated by a space.
4264 # ------------------------------------------------------------------
4265 ALL_LINGUAS=""
4266
4267 for ac_prog in msgfmt
4268 do
4269   # Extract the first word of "$ac_prog", so it can be a program name with args.
4270 set dummy $ac_prog; ac_word=$2
4271 echo "$as_me:$LINENO: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4273 if test "${ac_cv_path_MSGFMT+set}" = set; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   case $MSGFMT in
4277   [\\/]* | ?:[\\/]*)
4278   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4279   ;;
4280   *)
4281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4283 do
4284   IFS=$as_save_IFS
4285   test -z "$as_dir" && as_dir=.
4286   for ac_exec_ext in '' $ac_executable_extensions; do
4287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4288     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290     break 2
4291   fi
4292 done
4293 done
4294
4295   ;;
4296 esac
4297 fi
4298 MSGFMT=$ac_cv_path_MSGFMT
4299
4300 if test -n "$MSGFMT"; then
4301   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4302 echo "${ECHO_T}$MSGFMT" >&6
4303 else
4304   echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6
4306 fi
4307
4308   test -n "$MSGFMT" && break
4309 done
4310 test -n "$MSGFMT" || MSGFMT="no"
4311
4312 if test "$MSGFMT" = "no"
4313 then
4314    echo 'msgfmt program not found, disabling NLS !'
4315    USE_NLS=no
4316    USE_INCLUDED_LIBINTL=no
4317 #else
4318 #   AM_GNU_GETTEXT
4319 fi
4320
4321
4322 support_mysql=no
4323 support_sqlite=no
4324 support_postgresql=no
4325 support_smartalloc=yes
4326 support_readline=yes
4327 support_gnome=no
4328 support_static_tools=no
4329 support_static_fd=no
4330 support_static_sd=no
4331 support_static_dir=no
4332 support_static_cons=no
4333 build_client_only=no
4334 cats=
4335 db_name=Internal
4336 DB_NAME=bdb
4337
4338
4339 # -------------------------------------------
4340 # gnome (default off)
4341 # -------------------------------------------
4342 # Check whether --enable-gnome or --disable-gnome was given.
4343 if test "${enable_gnome+set}" = set; then
4344   enableval="$enable_gnome"
4345   if test x$enableval = xyes; then
4346     support_gnome=yes
4347   fi
4348 fi;
4349
4350 GNOME_DIR=
4351 if test x$support_gnome = xyes; then
4352   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4353   pkg=$?
4354   if test $pkg = 0; then
4355      GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4356      GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4357      GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4358      GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4359
4360
4361
4362
4363      GNOME_DIR=src/gnome2-console
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   fi
4706 fi
4707
4708
4709
4710 # -------------------------------------------
4711 # smartalloc (default off)
4712 # -------------------------------------------
4713 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4714 if test "${enable_smartalloc+set}" = set; then
4715   enableval="$enable_smartalloc"
4716   if test x$enableval = xno; then
4717     support_smartalloc=no
4718   fi
4719 fi;
4720
4721 if test x$support_smartalloc = xyes; then
4722    cat >>confdefs.h <<\_ACEOF
4723 #define SMARTALLOC 1
4724 _ACEOF
4725
4726 fi
4727
4728 # -------------------------------------------
4729 # static-tools (default off)
4730 # -------------------------------------------
4731 # Check whether --enable-static-tools or --disable-static-tools was given.
4732 if test "${enable_static_tools+set}" = set; then
4733   enableval="$enable_static_tools"
4734   if test x$enableval = xyes; then
4735      support_static_tools=yes
4736    fi
4737 fi;
4738
4739 TTOOL_LDFLAGS=
4740 if test x$support_static_tools = xyes; then
4741    TTOOL_LDFLAGS="-static"
4742 fi
4743
4744
4745 # -------------------------------------------
4746 # static-fd    (default off)
4747 # -------------------------------------------
4748 # Check whether --enable-static-fd or --disable-static-fd was given.
4749 if test "${enable_static_fd+set}" = set; then
4750   enableval="$enable_static_fd"
4751   if test x$enableval = xyes; then
4752      support_static_fd=yes
4753    fi
4754 fi;
4755
4756 STATIC_FD=
4757 if test x$support_static_fd = xyes; then
4758    STATIC_FD="static-bacula-fd"
4759 fi
4760
4761
4762 # -------------------------------------------
4763 # static-sd    (default off)
4764 # -------------------------------------------
4765 # Check whether --enable-static-sd or --disable-static-sd was given.
4766 if test "${enable_static_sd+set}" = set; then
4767   enableval="$enable_static_sd"
4768   if test x$enableval = xyes; then
4769      support_static_sd=yes
4770    fi
4771 fi;
4772
4773 STATIC_SD=
4774 if test x$support_static_sd = xyes; then
4775    STATIC_SD="static-bacula-sd"
4776 fi
4777
4778
4779 # -------------------------------------------
4780 # static-dir   (default off)
4781 # -------------------------------------------
4782 # Check whether --enable-static-dir or --disable-static-dir was given.
4783 if test "${enable_static_dir+set}" = set; then
4784   enableval="$enable_static_dir"
4785   if test x$enableval = xyes; then
4786      support_static_dir=yes
4787    fi
4788 fi;
4789
4790 STATIC_DIR=
4791 if test x$support_static_dir = xyes; then
4792    STATIC_DIR="static-bacula-dir"
4793 fi
4794
4795
4796 # -------------------------------------------
4797 # static-cons  (default off)
4798 # -------------------------------------------
4799 # Check whether --enable-static-cons or --disable-static-cons was given.
4800 if test "${enable_static_cons+set}" = set; then
4801   enableval="$enable_static_cons"
4802   if test x$enableval = xyes; then
4803      support_static_cons=yes
4804    fi
4805 fi;
4806
4807 STATIC_CONS=
4808 if test x$support_static_cons = xyes; then
4809    STATIC_CONS="static-bconsole"
4810 fi
4811
4812
4813 # -------------------------------------------
4814 # client_only  (default off)
4815 # -------------------------------------------
4816 # Check whether --enable-client-only or --disable-client-only was given.
4817 if test "${enable_client_only+set}" = set; then
4818   enableval="$enable_client_only"
4819   if test x$enableval = xyes; then
4820      build_client_only=yes
4821    fi
4822 fi;
4823 if test x$build_client_only = xno; then
4824    ALL_DIRS="subdirs"
4825 else
4826    ALL_DIRS=""
4827 fi
4828
4829
4830 # ---------------------------------------------------
4831 # Check for readline support/directory (default on)
4832 # ---------------------------------------------------
4833 # this allows you to turn it completely off
4834 # Check whether --enable-readline or --disable-readline was given.
4835 if test "${enable_readline+set}" = set; then
4836   enableval="$enable_readline"
4837   if test x$enableval = xno; then
4838     support_readline=no
4839   fi
4840 fi;
4841
4842 got_readline="no"
4843 READLINE_SRC=
4844 if test x$support_readline = xyes; then
4845    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4846 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4847 if test "${ac_cv_header_stdc+set}" = set; then
4848   echo $ECHO_N "(cached) $ECHO_C" >&6
4849 else
4850   cat >conftest.$ac_ext <<_ACEOF
4851 #line $LINENO "configure"
4852 /* confdefs.h.  */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h.  */
4857 #include <stdlib.h>
4858 #include <stdarg.h>
4859 #include <string.h>
4860 #include <float.h>
4861
4862 int
4863 main ()
4864 {
4865
4866   ;
4867   return 0;
4868 }
4869 _ACEOF
4870 rm -f conftest.$ac_objext
4871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4872   (eval $ac_compile) 2>&5
4873   ac_status=$?
4874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875   (exit $ac_status); } &&
4876          { ac_try='test -s conftest.$ac_objext'
4877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878   (eval $ac_try) 2>&5
4879   ac_status=$?
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); }; }; then
4882   ac_cv_header_stdc=yes
4883 else
4884   echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4886
4887 ac_cv_header_stdc=no
4888 fi
4889 rm -f conftest.$ac_objext conftest.$ac_ext
4890
4891 if test $ac_cv_header_stdc = yes; then
4892   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4893   cat >conftest.$ac_ext <<_ACEOF
4894 #line $LINENO "configure"
4895 /* confdefs.h.  */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h.  */
4900 #include <string.h>
4901
4902 _ACEOF
4903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4904   $EGREP "memchr" >/dev/null 2>&1; then
4905   :
4906 else
4907   ac_cv_header_stdc=no
4908 fi
4909 rm -f conftest*
4910
4911 fi
4912
4913 if test $ac_cv_header_stdc = yes; then
4914   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4915   cat >conftest.$ac_ext <<_ACEOF
4916 #line $LINENO "configure"
4917 /* confdefs.h.  */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h.  */
4922 #include <stdlib.h>
4923
4924 _ACEOF
4925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4926   $EGREP "free" >/dev/null 2>&1; then
4927   :
4928 else
4929   ac_cv_header_stdc=no
4930 fi
4931 rm -f conftest*
4932
4933 fi
4934
4935 if test $ac_cv_header_stdc = yes; then
4936   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4937   if test "$cross_compiling" = yes; then
4938   :
4939 else
4940   cat >conftest.$ac_ext <<_ACEOF
4941 #line $LINENO "configure"
4942 /* confdefs.h.  */
4943 _ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h.  */
4947 #include <ctype.h>
4948 #if ((' ' & 0x0FF) == 0x020)
4949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4951 #else
4952 # define ISLOWER(c) \
4953                    (('a' <= (c) && (c) <= 'i') \
4954                      || ('j' <= (c) && (c) <= 'r') \
4955                      || ('s' <= (c) && (c) <= 'z'))
4956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4957 #endif
4958
4959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4960 int
4961 main ()
4962 {
4963   int i;
4964   for (i = 0; i < 256; i++)
4965     if (XOR (islower (i), ISLOWER (i))
4966         || toupper (i) != TOUPPER (i))
4967       exit(2);
4968   exit (0);
4969 }
4970 _ACEOF
4971 rm -f conftest$ac_exeext
4972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4973   (eval $ac_link) 2>&5
4974   ac_status=$?
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978   (eval $ac_try) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); }; }; then
4982   :
4983 else
4984   echo "$as_me: program exited with status $ac_status" >&5
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988 ( exit $ac_status )
4989 ac_cv_header_stdc=no
4990 fi
4991 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4992 fi
4993 fi
4994 fi
4995 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4996 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4997 if test $ac_cv_header_stdc = yes; then
4998
4999 cat >>confdefs.h <<\_ACEOF
5000 #define STDC_HEADERS 1
5001 _ACEOF
5002
5003 fi
5004
5005 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5016                   inttypes.h stdint.h unistd.h
5017 do
5018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5019 echo "$as_me:$LINENO: checking for $ac_header" >&5
5020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024   cat >conftest.$ac_ext <<_ACEOF
5025 #line $LINENO "configure"
5026 /* confdefs.h.  */
5027 _ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h.  */
5031 $ac_includes_default
5032
5033 #include <$ac_header>
5034 _ACEOF
5035 rm -f conftest.$ac_objext
5036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037   (eval $ac_compile) 2>&5
5038   ac_status=$?
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); } &&
5041          { ac_try='test -s conftest.$ac_objext'
5042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043   (eval $ac_try) 2>&5
5044   ac_status=$?
5045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046   (exit $ac_status); }; }; then
5047   eval "$as_ac_Header=yes"
5048 else
5049   echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5051
5052 eval "$as_ac_Header=no"
5053 fi
5054 rm -f conftest.$ac_objext conftest.$ac_ext
5055 fi
5056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5059   cat >>confdefs.h <<_ACEOF
5060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5061 _ACEOF
5062
5063 fi
5064
5065 done
5066
5067
5068
5069 # Check whether --with-readline or --without-readline was given.
5070 if test "${with_readline+set}" = set; then
5071   withval="$with_readline"
5072
5073         case "$with_readline" in
5074         no) : ;;
5075         yes|*)
5076           if test "$with_readline" != "yes"; then
5077             CONS_INC="-I${with_readline}"
5078             CONS_LDFLAGS="-L$with_readline"
5079           else
5080              with_readline="/usr/include/readline"
5081           fi
5082           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5084   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5085 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5087   echo $ECHO_N "(cached) $ECHO_C" >&6
5088 fi
5089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5091 else
5092   # Is the header compilable?
5093 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5094 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5095 cat >conftest.$ac_ext <<_ACEOF
5096 #line $LINENO "configure"
5097 /* confdefs.h.  */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h.  */
5102 $ac_includes_default
5103 #include <${with_readline}/readline.h>
5104 _ACEOF
5105 rm -f conftest.$ac_objext
5106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5107   (eval $ac_compile) 2>&5
5108   ac_status=$?
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); } &&
5111          { ac_try='test -s conftest.$ac_objext'
5112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113   (eval $ac_try) 2>&5
5114   ac_status=$?
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); }; }; then
5117   ac_header_compiler=yes
5118 else
5119   echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5121
5122 ac_header_compiler=no
5123 fi
5124 rm -f conftest.$ac_objext conftest.$ac_ext
5125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5126 echo "${ECHO_T}$ac_header_compiler" >&6
5127
5128 # Is the header present?
5129 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5130 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5131 cat >conftest.$ac_ext <<_ACEOF
5132 #line $LINENO "configure"
5133 /* confdefs.h.  */
5134 _ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h.  */
5138 #include <${with_readline}/readline.h>
5139 _ACEOF
5140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5141   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5142   ac_status=$?
5143   grep -v '^ *+' conftest.er1 >conftest.err
5144   rm -f conftest.er1
5145   cat conftest.err >&5
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); } >/dev/null; then
5148   if test -s conftest.err; then
5149     ac_cpp_err=$ac_c_preproc_warn_flag
5150   else
5151     ac_cpp_err=
5152   fi
5153 else
5154   ac_cpp_err=yes
5155 fi
5156 if test -z "$ac_cpp_err"; then
5157   ac_header_preproc=yes
5158 else
5159   echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5161
5162   ac_header_preproc=no
5163 fi
5164 rm -f conftest.err conftest.$ac_ext
5165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5166 echo "${ECHO_T}$ac_header_preproc" >&6
5167
5168 # So?  What about this header?
5169 case $ac_header_compiler:$ac_header_preproc in
5170   yes:no )
5171     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5172 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5173     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5174 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5175     (
5176       cat <<\_ASBOX
5177 ## ------------------------------------ ##
5178 ## Report this to bug-autoconf@gnu.org. ##
5179 ## ------------------------------------ ##
5180 _ASBOX
5181     ) |
5182       sed "s/^/$as_me: WARNING:     /" >&2
5183     ;;
5184   no:yes )
5185     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5186 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5187     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5188 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5189     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5190 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5191     (
5192       cat <<\_ASBOX
5193 ## ------------------------------------ ##
5194 ## Report this to bug-autoconf@gnu.org. ##
5195 ## ------------------------------------ ##
5196 _ASBOX
5197     ) |
5198       sed "s/^/$as_me: WARNING:     /" >&2
5199     ;;
5200 esac
5201 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5202 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5204   echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206   eval "$as_ac_Header=$ac_header_preproc"
5207 fi
5208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5210
5211 fi
5212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5213    cat >>confdefs.h <<\_ACEOF
5214 #define HAVE_READLINE 1
5215 _ACEOF
5216
5217                CONS_LIBS="-lreadline -ltermcap"
5218                got_readline="yes"
5219
5220 else
5221    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5222 echo "$as_me: error: *** readline library missing" >&2;}
5223    { (exit 1); exit 1; }; }
5224
5225
5226 fi
5227
5228
5229           ;;
5230         esac
5231
5232 else
5233
5234        # check for standard readline library
5235        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5236   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5237 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5238 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5239   echo $ECHO_N "(cached) $ECHO_C" >&6
5240 fi
5241 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5242 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5243 else
5244   # Is the header compilable?
5245 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5246 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5247 cat >conftest.$ac_ext <<_ACEOF
5248 #line $LINENO "configure"
5249 /* confdefs.h.  */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h.  */
5254 $ac_includes_default
5255 #include </usr/include/readline/readline.h>
5256 _ACEOF
5257 rm -f conftest.$ac_objext
5258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5259   (eval $ac_compile) 2>&5
5260   ac_status=$?
5261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262   (exit $ac_status); } &&
5263          { ac_try='test -s conftest.$ac_objext'
5264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265   (eval $ac_try) 2>&5
5266   ac_status=$?
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); }; }; then
5269   ac_header_compiler=yes
5270 else
5271   echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5273
5274 ac_header_compiler=no
5275 fi
5276 rm -f conftest.$ac_objext conftest.$ac_ext
5277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5278 echo "${ECHO_T}$ac_header_compiler" >&6
5279
5280 # Is the header present?
5281 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5282 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5283 cat >conftest.$ac_ext <<_ACEOF
5284 #line $LINENO "configure"
5285 /* confdefs.h.  */
5286 _ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h.  */
5290 #include </usr/include/readline/readline.h>
5291 _ACEOF
5292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5293   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5294   ac_status=$?
5295   grep -v '^ *+' conftest.er1 >conftest.err
5296   rm -f conftest.er1
5297   cat conftest.err >&5
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); } >/dev/null; then
5300   if test -s conftest.err; then
5301     ac_cpp_err=$ac_c_preproc_warn_flag
5302   else
5303     ac_cpp_err=
5304   fi
5305 else
5306   ac_cpp_err=yes
5307 fi
5308 if test -z "$ac_cpp_err"; then
5309   ac_header_preproc=yes
5310 else
5311   echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5313
5314   ac_header_preproc=no
5315 fi
5316 rm -f conftest.err conftest.$ac_ext
5317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5318 echo "${ECHO_T}$ac_header_preproc" >&6
5319
5320 # So?  What about this header?
5321 case $ac_header_compiler:$ac_header_preproc in
5322   yes:no )
5323     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5324 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5325     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5326 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5327     (
5328       cat <<\_ASBOX
5329 ## ------------------------------------ ##
5330 ## Report this to bug-autoconf@gnu.org. ##
5331 ## ------------------------------------ ##
5332 _ASBOX
5333     ) |
5334       sed "s/^/$as_me: WARNING:     /" >&2
5335     ;;
5336   no:yes )
5337     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5338 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5339     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5340 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5341     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5342 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5343     (
5344       cat <<\_ASBOX
5345 ## ------------------------------------ ##
5346 ## Report this to bug-autoconf@gnu.org. ##
5347 ## ------------------------------------ ##
5348 _ASBOX
5349     ) |
5350       sed "s/^/$as_me: WARNING:     /" >&2
5351     ;;
5352 esac
5353 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5354 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5355 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5356   echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5359 fi
5360 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5361 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5362
5363 fi
5364 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5365    cat >>confdefs.h <<\_ACEOF
5366 #define HAVE_READLINE 1
5367 _ACEOF
5368
5369            got_readline="yes"
5370            CONS_INC="-I/usr/include/readline"
5371            CONS_LIBS="-lreadline -ltermcap"
5372
5373 else
5374
5375            # Did not find standard library, so try Bacula's default
5376             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5378   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5379 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5381   echo $ECHO_N "(cached) $ECHO_C" >&6
5382 fi
5383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5385 else
5386   # Is the header compilable?
5387 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5388 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5389 cat >conftest.$ac_ext <<_ACEOF
5390 #line $LINENO "configure"
5391 /* confdefs.h.  */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h.  */
5396 $ac_includes_default
5397 #include <${TOP_DIR}/depkgs/readline/readline.h>
5398 _ACEOF
5399 rm -f conftest.$ac_objext
5400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5401   (eval $ac_compile) 2>&5
5402   ac_status=$?
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); } &&
5405          { ac_try='test -s conftest.$ac_objext'
5406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407   (eval $ac_try) 2>&5
5408   ac_status=$?
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); }; }; then
5411   ac_header_compiler=yes
5412 else
5413   echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5415
5416 ac_header_compiler=no
5417 fi
5418 rm -f conftest.$ac_objext conftest.$ac_ext
5419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5420 echo "${ECHO_T}$ac_header_compiler" >&6
5421
5422 # Is the header present?
5423 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5424 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5425 cat >conftest.$ac_ext <<_ACEOF
5426 #line $LINENO "configure"
5427 /* confdefs.h.  */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h.  */
5432 #include <${TOP_DIR}/depkgs/readline/readline.h>
5433 _ACEOF
5434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5436   ac_status=$?
5437   grep -v '^ *+' conftest.er1 >conftest.err
5438   rm -f conftest.er1
5439   cat conftest.err >&5
5440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441   (exit $ac_status); } >/dev/null; then
5442   if test -s conftest.err; then
5443     ac_cpp_err=$ac_c_preproc_warn_flag
5444   else
5445     ac_cpp_err=
5446   fi
5447 else
5448   ac_cpp_err=yes
5449 fi
5450 if test -z "$ac_cpp_err"; then
5451   ac_header_preproc=yes
5452 else
5453   echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5455
5456   ac_header_preproc=no
5457 fi
5458 rm -f conftest.err conftest.$ac_ext
5459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5460 echo "${ECHO_T}$ac_header_preproc" >&6
5461
5462 # So?  What about this header?
5463 case $ac_header_compiler:$ac_header_preproc in
5464   yes:no )
5465     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5466 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5467     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5468 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5469     (
5470       cat <<\_ASBOX
5471 ## ------------------------------------ ##
5472 ## Report this to bug-autoconf@gnu.org. ##
5473 ## ------------------------------------ ##
5474 _ASBOX
5475     ) |
5476       sed "s/^/$as_me: WARNING:     /" >&2
5477     ;;
5478   no:yes )
5479     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5480 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5481     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5482 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5483     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5484 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5485     (
5486       cat <<\_ASBOX
5487 ## ------------------------------------ ##
5488 ## Report this to bug-autoconf@gnu.org. ##
5489 ## ------------------------------------ ##
5490 _ASBOX
5491     ) |
5492       sed "s/^/$as_me: WARNING:     /" >&2
5493     ;;
5494 esac
5495 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5496 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5498   echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500   eval "$as_ac_Header=$ac_header_preproc"
5501 fi
5502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5504
5505 fi
5506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5507    cat >>confdefs.h <<\_ACEOF
5508 #define HAVE_READLINE 1
5509 _ACEOF
5510
5511                  got_readline="yes"
5512                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5513                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5514                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5515                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5516
5517 else
5518    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5519 echo "$as_me: error: *** readline library missing" >&2;}
5520    { (exit 1); exit 1; }; }
5521
5522
5523 fi
5524
5525
5526
5527
5528 fi
5529
5530
5531
5532
5533 fi;
5534 fi
5535
5536
5537
5538
5539
5540 # Minimal stuff for readline Makefile configuration
5541 MAKE_SHELL=/bin/sh
5542
5543
5544 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5545 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5546 if test "${ac_cv_header_stat_broken+set}" = set; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   cat >conftest.$ac_ext <<_ACEOF
5550 #line $LINENO "configure"
5551 /* confdefs.h.  */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h.  */
5556 #include <sys/types.h>
5557 #include <sys/stat.h>
5558
5559 #if defined(S_ISBLK) && defined(S_IFDIR)
5560 # if S_ISBLK (S_IFDIR)
5561 You lose.
5562 # endif
5563 #endif
5564
5565 #if defined(S_ISBLK) && defined(S_IFCHR)
5566 # if S_ISBLK (S_IFCHR)
5567 You lose.
5568 # endif
5569 #endif
5570
5571 #if defined(S_ISLNK) && defined(S_IFREG)
5572 # if S_ISLNK (S_IFREG)
5573 You lose.
5574 # endif
5575 #endif
5576
5577 #if defined(S_ISSOCK) && defined(S_IFREG)
5578 # if S_ISSOCK (S_IFREG)
5579 You lose.
5580 # endif
5581 #endif
5582
5583 _ACEOF
5584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5585   $EGREP "You lose" >/dev/null 2>&1; then
5586   ac_cv_header_stat_broken=yes
5587 else
5588   ac_cv_header_stat_broken=no
5589 fi
5590 rm -f conftest*
5591
5592 fi
5593 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5594 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5595 if test $ac_cv_header_stat_broken = yes; then
5596
5597 cat >>confdefs.h <<\_ACEOF
5598 #define STAT_MACROS_BROKEN 1
5599 _ACEOF
5600
5601 fi
5602
5603
5604
5605
5606
5607
5608 ac_header_dirent=no
5609 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5610   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5611 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5612 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5614   echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
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 #include <sys/types.h>
5624 #include <$ac_hdr>
5625
5626 int
5627 main ()
5628 {
5629 if ((DIR *) 0)
5630 return 0;
5631   ;
5632   return 0;
5633 }
5634 _ACEOF
5635 rm -f conftest.$ac_objext
5636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637   (eval $ac_compile) 2>&5
5638   ac_status=$?
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); } &&
5641          { ac_try='test -s conftest.$ac_objext'
5642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643   (eval $ac_try) 2>&5
5644   ac_status=$?
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); }; }; then
5647   eval "$as_ac_Header=yes"
5648 else
5649   echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5651
5652 eval "$as_ac_Header=no"
5653 fi
5654 rm -f conftest.$ac_objext conftest.$ac_ext
5655 fi
5656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5659   cat >>confdefs.h <<_ACEOF
5660 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5661 _ACEOF
5662
5663 ac_header_dirent=$ac_hdr; break
5664 fi
5665
5666 done
5667 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5668 if test $ac_header_dirent = dirent.h; then
5669   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5670 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5671 if test "${ac_cv_search_opendir+set}" = set; then
5672   echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674   ac_func_search_save_LIBS=$LIBS
5675 ac_cv_search_opendir=no
5676 cat >conftest.$ac_ext <<_ACEOF
5677 #line $LINENO "configure"
5678 /* confdefs.h.  */
5679 _ACEOF
5680 cat confdefs.h >>conftest.$ac_ext
5681 cat >>conftest.$ac_ext <<_ACEOF
5682 /* end confdefs.h.  */
5683
5684 /* Override any gcc2 internal prototype to avoid an error.  */
5685 #ifdef __cplusplus
5686 extern "C"
5687 #endif
5688 /* We use char because int might match the return type of a gcc2
5689    builtin and then its argument prototype would still apply.  */
5690 char opendir ();
5691 int
5692 main ()
5693 {
5694 opendir ();
5695   ;
5696   return 0;
5697 }
5698 _ACEOF
5699 rm -f conftest.$ac_objext conftest$ac_exeext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5701   (eval $ac_link) 2>&5
5702   ac_status=$?
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); } &&
5705          { ac_try='test -s conftest$ac_exeext'
5706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707   (eval $ac_try) 2>&5
5708   ac_status=$?
5709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710   (exit $ac_status); }; }; then
5711   ac_cv_search_opendir="none required"
5712 else
5713   echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5715
5716 fi
5717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5718 if test "$ac_cv_search_opendir" = no; then
5719   for ac_lib in dir; do
5720     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5721     cat >conftest.$ac_ext <<_ACEOF
5722 #line $LINENO "configure"
5723 /* confdefs.h.  */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h.  */
5728
5729 /* Override any gcc2 internal prototype to avoid an error.  */
5730 #ifdef __cplusplus
5731 extern "C"
5732 #endif
5733 /* We use char because int might match the return type of a gcc2
5734    builtin and then its argument prototype would still apply.  */
5735 char opendir ();
5736 int
5737 main ()
5738 {
5739 opendir ();
5740   ;
5741   return 0;
5742 }
5743 _ACEOF
5744 rm -f conftest.$ac_objext conftest$ac_exeext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5746   (eval $ac_link) 2>&5
5747   ac_status=$?
5748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749   (exit $ac_status); } &&
5750          { ac_try='test -s conftest$ac_exeext'
5751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752   (eval $ac_try) 2>&5
5753   ac_status=$?
5754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755   (exit $ac_status); }; }; then
5756   ac_cv_search_opendir="-l$ac_lib"
5757 break
5758 else
5759   echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5761
5762 fi
5763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5764   done
5765 fi
5766 LIBS=$ac_func_search_save_LIBS
5767 fi
5768 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5769 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5770 if test "$ac_cv_search_opendir" != no; then
5771   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5772
5773 fi
5774
5775 else
5776   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5777 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5778 if test "${ac_cv_search_opendir+set}" = set; then
5779   echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781   ac_func_search_save_LIBS=$LIBS
5782 ac_cv_search_opendir=no
5783 cat >conftest.$ac_ext <<_ACEOF
5784 #line $LINENO "configure"
5785 /* confdefs.h.  */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h.  */
5790
5791 /* Override any gcc2 internal prototype to avoid an error.  */
5792 #ifdef __cplusplus
5793 extern "C"
5794 #endif
5795 /* We use char because int might match the return type of a gcc2
5796    builtin and then its argument prototype would still apply.  */
5797 char opendir ();
5798 int
5799 main ()
5800 {
5801 opendir ();
5802   ;
5803   return 0;
5804 }
5805 _ACEOF
5806 rm -f conftest.$ac_objext conftest$ac_exeext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5808   (eval $ac_link) 2>&5
5809   ac_status=$?
5810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); } &&
5812          { ac_try='test -s conftest$ac_exeext'
5813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814   (eval $ac_try) 2>&5
5815   ac_status=$?
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); }; }; then
5818   ac_cv_search_opendir="none required"
5819 else
5820   echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5822
5823 fi
5824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5825 if test "$ac_cv_search_opendir" = no; then
5826   for ac_lib in x; do
5827     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5828     cat >conftest.$ac_ext <<_ACEOF
5829 #line $LINENO "configure"
5830 /* confdefs.h.  */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h.  */
5835
5836 /* Override any gcc2 internal prototype to avoid an error.  */
5837 #ifdef __cplusplus
5838 extern "C"
5839 #endif
5840 /* We use char because int might match the return type of a gcc2
5841    builtin and then its argument prototype would still apply.  */
5842 char opendir ();
5843 int
5844 main ()
5845 {
5846 opendir ();
5847   ;
5848   return 0;
5849 }
5850 _ACEOF
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853   (eval $ac_link) 2>&5
5854   ac_status=$?
5855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856   (exit $ac_status); } &&
5857          { ac_try='test -s conftest$ac_exeext'
5858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859   (eval $ac_try) 2>&5
5860   ac_status=$?
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); }; }; then
5863   ac_cv_search_opendir="-l$ac_lib"
5864 break
5865 else
5866   echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5868
5869 fi
5870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5871   done
5872 fi
5873 LIBS=$ac_func_search_save_LIBS
5874 fi
5875 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5876 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5877 if test "$ac_cv_search_opendir" != no; then
5878   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5879
5880 fi
5881
5882 fi
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
5894 do
5895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5896 echo "$as_me:$LINENO: checking for $ac_func" >&5
5897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5898 if eval "test \"\${$as_ac_var+set}\" = set"; then
5899   echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901   cat >conftest.$ac_ext <<_ACEOF
5902 #line $LINENO "configure"
5903 /* confdefs.h.  */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h.  */
5908 /* System header to define __stub macros and hopefully few prototypes,
5909     which can conflict with char $ac_func (); below.
5910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5911     <limits.h> exists even on freestanding compilers.  */
5912 #ifdef __STDC__
5913 # include <limits.h>
5914 #else
5915 # include <assert.h>
5916 #endif
5917 /* Override any gcc2 internal prototype to avoid an error.  */
5918 #ifdef __cplusplus
5919 extern "C"
5920 {
5921 #endif
5922 /* We use char because int might match the return type of a gcc2
5923    builtin and then its argument prototype would still apply.  */
5924 char $ac_func ();
5925 /* The GNU C library defines this for functions which it implements
5926     to always fail with ENOSYS.  Some functions are actually named
5927     something starting with __ and the normal name is an alias.  */
5928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5929 choke me
5930 #else
5931 char (*f) () = $ac_func;
5932 #endif
5933 #ifdef __cplusplus
5934 }
5935 #endif
5936
5937 int
5938 main ()
5939 {
5940 return f != $ac_func;
5941   ;
5942   return 0;
5943 }
5944 _ACEOF
5945 rm -f conftest.$ac_objext conftest$ac_exeext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5947   (eval $ac_link) 2>&5
5948   ac_status=$?
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); } &&
5951          { ac_try='test -s conftest$ac_exeext'
5952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953   (eval $ac_try) 2>&5
5954   ac_status=$?
5955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956   (exit $ac_status); }; }; then
5957   eval "$as_ac_var=yes"
5958 else
5959   echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5961
5962 eval "$as_ac_var=no"
5963 fi
5964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5965 fi
5966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5968 if test `eval echo '${'$as_ac_var'}'` = yes; then
5969   cat >>confdefs.h <<_ACEOF
5970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5971 _ACEOF
5972
5973 fi
5974 done
5975
5976
5977 for ac_func in nanosleep
5978 do
5979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5980 echo "$as_me:$LINENO: checking for $ac_func" >&5
5981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5982 if eval "test \"\${$as_ac_var+set}\" = set"; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   cat >conftest.$ac_ext <<_ACEOF
5986 #line $LINENO "configure"
5987 /* confdefs.h.  */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h.  */
5992 /* System header to define __stub macros and hopefully few prototypes,
5993     which can conflict with char $ac_func (); below.
5994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5995     <limits.h> exists even on freestanding compilers.  */
5996 #ifdef __STDC__
5997 # include <limits.h>
5998 #else
5999 # include <assert.h>
6000 #endif
6001 /* Override any gcc2 internal prototype to avoid an error.  */
6002 #ifdef __cplusplus
6003 extern "C"
6004 {
6005 #endif
6006 /* We use char because int might match the return type of a gcc2
6007    builtin and then its argument prototype would still apply.  */
6008 char $ac_func ();
6009 /* The GNU C library defines this for functions which it implements
6010     to always fail with ENOSYS.  Some functions are actually named
6011     something starting with __ and the normal name is an alias.  */
6012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6013 choke me
6014 #else
6015 char (*f) () = $ac_func;
6016 #endif
6017 #ifdef __cplusplus
6018 }
6019 #endif
6020
6021 int
6022 main ()
6023 {
6024 return f != $ac_func;
6025   ;
6026   return 0;
6027 }
6028 _ACEOF
6029 rm -f conftest.$ac_objext conftest$ac_exeext
6030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6031   (eval $ac_link) 2>&5
6032   ac_status=$?
6033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034   (exit $ac_status); } &&
6035          { ac_try='test -s conftest$ac_exeext'
6036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037   (eval $ac_try) 2>&5
6038   ac_status=$?
6039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040   (exit $ac_status); }; }; then
6041   eval "$as_ac_var=yes"
6042 else
6043   echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6045
6046 eval "$as_ac_var=no"
6047 fi
6048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6049 fi
6050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6052 if test `eval echo '${'$as_ac_var'}'` = yes; then
6053   cat >>confdefs.h <<_ACEOF
6054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6055 _ACEOF
6056
6057 fi
6058 done
6059
6060
6061
6062 for ac_header in varargs.h
6063 do
6064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6066   echo "$as_me:$LINENO: checking for $ac_header" >&5
6067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 fi
6071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6073 else
6074   # Is the header compilable?
6075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6077 cat >conftest.$ac_ext <<_ACEOF
6078 #line $LINENO "configure"
6079 /* confdefs.h.  */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h.  */
6084 $ac_includes_default
6085 #include <$ac_header>
6086 _ACEOF
6087 rm -f conftest.$ac_objext
6088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6089   (eval $ac_compile) 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); } &&
6093          { ac_try='test -s conftest.$ac_objext'
6094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095   (eval $ac_try) 2>&5
6096   ac_status=$?
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); }; }; then
6099   ac_header_compiler=yes
6100 else
6101   echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.$ac_ext >&5
6103
6104 ac_header_compiler=no
6105 fi
6106 rm -f conftest.$ac_objext conftest.$ac_ext
6107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6108 echo "${ECHO_T}$ac_header_compiler" >&6
6109
6110 # Is the header present?
6111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6113 cat >conftest.$ac_ext <<_ACEOF
6114 #line $LINENO "configure"
6115 /* confdefs.h.  */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h.  */
6120 #include <$ac_header>
6121 _ACEOF
6122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6123   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6124   ac_status=$?
6125   grep -v '^ *+' conftest.er1 >conftest.err
6126   rm -f conftest.er1
6127   cat conftest.err >&5
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); } >/dev/null; then
6130   if test -s conftest.err; then
6131     ac_cpp_err=$ac_c_preproc_warn_flag
6132   else
6133     ac_cpp_err=
6134   fi
6135 else
6136   ac_cpp_err=yes
6137 fi
6138 if test -z "$ac_cpp_err"; then
6139   ac_header_preproc=yes
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144   ac_header_preproc=no
6145 fi
6146 rm -f conftest.err conftest.$ac_ext
6147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6148 echo "${ECHO_T}$ac_header_preproc" >&6
6149
6150 # So?  What about this header?
6151 case $ac_header_compiler:$ac_header_preproc in
6152   yes:no )
6153     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6157     (
6158       cat <<\_ASBOX
6159 ## ------------------------------------ ##
6160 ## Report this to bug-autoconf@gnu.org. ##
6161 ## ------------------------------------ ##
6162 _ASBOX
6163     ) |
6164       sed "s/^/$as_me: WARNING:     /" >&2
6165     ;;
6166   no:yes )
6167     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6168 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6169     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6170 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6173     (
6174       cat <<\_ASBOX
6175 ## ------------------------------------ ##
6176 ## Report this to bug-autoconf@gnu.org. ##
6177 ## ------------------------------------ ##
6178 _ASBOX
6179     ) |
6180       sed "s/^/$as_me: WARNING:     /" >&2
6181     ;;
6182 esac
6183 echo "$as_me:$LINENO: checking for $ac_header" >&5
6184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6186   echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188   eval "$as_ac_Header=$ac_header_preproc"
6189 fi
6190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6192
6193 fi
6194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6195   cat >>confdefs.h <<_ACEOF
6196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6197 _ACEOF
6198
6199 fi
6200
6201 done
6202
6203
6204 # End of readline stuff
6205 # -----------------------------------------------------------------------
6206
6207
6208 # ---------------------------------------------------
6209 # Check for GMP support/directory
6210 # ---------------------------------------------------
6211 #GMP_SRC=
6212 #local_gmp="no"
6213 #AC_ARG_WITH(gmp,
6214 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6215 #  [
6216 #     case "$with_gmp" in
6217 #     no) : ;;
6218 #     yes|*)
6219 #       if test "$with_gmp" != "yes"; then
6220 #         GMP_INC="-I$with_gmp"
6221 #         GMP_LIBS="-lgmp"
6222 #         GMP_LDFLAGS="-L$with_gmp"
6223 #       else
6224 #          with_gmp="/usr/include"
6225 #       fi
6226 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6227 #          [ AC_MSG_RESULT(yes)
6228 #            AC_DEFINE(HAVE_GMP)
6229 #            GMP_LIBS="-lgmp"
6230 #            got_gmp="yes"
6231 #          ],
6232 #          [ AC_MSG_ERROR([*** gmp library missing])
6233 #          ]
6234 #       )
6235 #       ;;
6236 #     esac
6237 #  ],[
6238 #    # check for standard gmp library
6239 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6240 #    [ AC_MSG_RESULT(yes)
6241 #      AC_DEFINE(HAVE_GMP)
6242 #      got_gmp="yes"
6243 #      GMP_INC=
6244 #      GMP_LIBS="-lgmp"
6245 #    ], [
6246 #      # Did not find standard library, so use our own
6247 #      AC_MSG_RESULT(yes)
6248 #      AC_DEFINE(HAVE_GMP)
6249 #      got_gmp="yes"
6250 #      local_gmp="yes"
6251 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6252 #      GMP_LIBS="-lgmp"
6253 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6254 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6255 #    ])
6256 #  ]
6257 #)
6258 #AC_SUBST(GMP_INC)
6259 #AC_SUBST(GMP_LIBS)
6260 #AC_SUBST(GMP_LDFLAGS)
6261 #AC_SUBST(GMP_SRC)
6262
6263 # End of GMP stuff
6264 # -----------------------------------------------------------------------
6265
6266
6267 # ---------------------------------------------------
6268 # Check for CWEB support/directory
6269 # ---------------------------------------------------
6270 #CWEB_SRC=
6271 #CWEB=/bin
6272 #local_cweb="no"
6273 #AC_ARG_WITH(cweb,
6274 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6275 #  [
6276 #     case "$with_cweb" in
6277 #     no) : ;;
6278 #     yes|*)
6279 #       if test "$with_cweb" != "yes"; then
6280 #         CWEB_INC="-I$with_cweb"
6281 #         CWEB_LIBS="-lcweb"
6282 #         CWEB_LDFLAGS="-L$with_cweb"
6283 #       else
6284 #          with_cweb="/usr/include"
6285 #       fi
6286 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6287 #          [ AC_MSG_RESULT(yes)
6288 #            AC_DEFINE(HAVE_CWEB)
6289 #            CWEB_LIBS="-lcweb"
6290 #            got_cweb="yes"
6291 #          ],
6292 #          [ AC_MSG_ERROR([*** cweb library missing])
6293 #          ]
6294 #       )
6295 #       ;;
6296 #     esac
6297 #  ],[
6298 #    # check for standard cweb library
6299 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6300 #    [ AC_MSG_RESULT(yes)
6301 #      AC_DEFINE(HAVE_CWEB)
6302 #      got_cweb="yes"
6303 #      CWEB_INC=
6304 #      CWEB_LIBS="-lcweb"
6305 #    ], [
6306 #      # Did not find starndard library, so use our own
6307 #      AC_MSG_RESULT(yes)
6308 #      AC_DEFINE(HAVE_CWEB)
6309 #      got_cweb="yes"
6310 #      local_cweb="yes"
6311 #      CWEB=${TOP_DIR}/depkgs/cweb
6312 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6313 #      CWEB_LIBS="-lcweb"
6314 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6315 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6316 #    ])
6317 #  ]
6318 #)
6319 #AC_SUBST(CWEB)
6320 #AC_SUBST(CWEB_INC)
6321 #AC_SUBST(CWEB_LIBS)
6322 #AC_SUBST(CWEB_LDFLAGS)
6323 #AC_SUBST(CWEB_SRC)
6324
6325 # End of CWEB stuff
6326 # -----------------------------------------------------------------------
6327
6328
6329
6330 # -----------------------------------------------------------
6331 # Check whether user wants TCP wrappers support (default off)
6332 # -----------------------------------------------------------
6333 TCPW_MSG="no"
6334
6335 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6336 if test "${with_tcp_wrappers+set}" = set; then
6337   withval="$with_tcp_wrappers"
6338
6339     if test "x$withval" != "xno" ; then
6340        saved_LIBS="$LIBS"
6341        LIBS="$saved_LIBS -lwrap"
6342        echo "$as_me:$LINENO: checking for libwrap" >&5
6343 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6344        cat >conftest.$ac_ext <<_ACEOF
6345 #line $LINENO "configure"
6346 /* confdefs.h.  */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h.  */
6351  #include <tcpd.h>
6352              int deny_severity = 0;
6353              int allow_severity = 0;
6354              struct request_info *req;
6355 int
6356 main ()
6357 {
6358  hosts_access(req);
6359   ;
6360   return 0;
6361 }
6362 _ACEOF
6363 rm -f conftest.$ac_objext conftest$ac_exeext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6365   (eval $ac_link) 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); } &&
6369          { ac_try='test -s conftest$ac_exeext'
6370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371   (eval $ac_try) 2>&5
6372   ac_status=$?
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); }; }; then
6375
6376             echo "$as_me:$LINENO: result: yes" >&5
6377 echo "${ECHO_T}yes" >&6
6378             cat >>confdefs.h <<\_ACEOF
6379 #define HAVE_LIBWRAP 1
6380 _ACEOF
6381
6382             TCPW_MSG="yes"
6383
6384 else
6385   echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6387
6388
6389             LIBS="$saved_LIBS -lwrap -lnsl"
6390             cat >conftest.$ac_ext <<_ACEOF
6391 #line $LINENO "configure"
6392 /* confdefs.h.  */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h.  */
6397  #include <tcpd.h>
6398                  int deny_severity = 0;
6399                  int allow_severity = 0;
6400                  struct request_info *req;
6401 int
6402 main ()
6403 {
6404  hosts_access(req);
6405   ;
6406   return 0;
6407 }
6408 _ACEOF
6409 rm -f conftest.$ac_objext conftest$ac_exeext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6411   (eval $ac_link) 2>&5
6412   ac_status=$?
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); } &&
6415          { ac_try='test -s conftest$ac_exeext'
6416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417   (eval $ac_try) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); }; }; then
6421
6422                  echo "$as_me:$LINENO: result: yes" >&5
6423 echo "${ECHO_T}yes" >&6
6424                  cat >>confdefs.h <<\_ACEOF
6425 #define HAVE_LIBWRAP 1
6426 _ACEOF
6427
6428                  TCPW_MSG="yes"
6429
6430 else
6431   echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6435 echo "$as_me: error: *** libwrap missing" >&2;}
6436    { (exit 1); exit 1; }; }
6437
6438 fi
6439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6440
6441 fi
6442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6443     fi
6444
6445
6446 fi;
6447
6448 # ------------------------------------------
6449 # Where to place working dir
6450 # ------------------------------------------
6451 working_dir=`eval echo ${sysconfdir}/working`
6452
6453 # Check whether --with-working-dir or --without-working-dir was given.
6454 if test "${with_working_dir+set}" = set; then
6455   withval="$with_working_dir"
6456
6457        if test "x$withval" != "xno" ; then
6458               working_dir=$withval
6459        fi
6460
6461
6462 fi;
6463
6464
6465
6466
6467 # ------------------------------------------
6468 # Where to place scriptdir (script files)
6469 # ------------------------------------------
6470 scriptdir=`eval echo ${sysconfdir}`
6471
6472 # Check whether --with-scriptdir or --without-scriptdir was given.
6473 if test "${with_scriptdir+set}" = set; then
6474   withval="$with_scriptdir"
6475
6476        if test "x$withval" != "xno" ; then
6477               scriptdir=$withval
6478        fi
6479
6480
6481 fi;
6482
6483
6484
6485
6486 # ------------------------------------------
6487 # Where to send dump email
6488 # ------------------------------------------
6489 dump_email=root@localhost
6490
6491 # Check whether --with-dump-email or --without-dump-email was given.
6492 if test "${with_dump_email+set}" = set; then
6493   withval="$with_dump_email"
6494
6495        if test "x$withval" != "xno" ; then
6496               dump_email=$withval
6497        fi
6498
6499
6500 fi;
6501
6502
6503
6504 # ------------------------------------------
6505 # Where to send job email
6506 # ------------------------------------------
6507 job_email=root@localhost
6508
6509 # Check whether --with-job-email or --without-job-email was given.
6510 if test "${with_job_email+set}" = set; then
6511   withval="$with_job_email"
6512
6513        if test "x$withval" != "xno" ; then
6514               job_email=$withval
6515        fi
6516
6517
6518 fi;
6519
6520
6521
6522 # ------------------------------------------
6523 # Where to find smtp host
6524 # ------------------------------------------
6525 smtp_host=localhost
6526
6527 # Check whether --with-smtp_host or --without-smtp_host was given.
6528 if test "${with_smtp_host+set}" = set; then
6529   withval="$with_smtp_host"
6530
6531        if test "x$withval" != "xno" ; then
6532               smtp_host=$withval
6533        fi
6534
6535
6536 fi;
6537
6538
6539
6540
6541 # ------------------------------------
6542 # Where to place pid files
6543 # ------------------------------------
6544 piddir=/var/run
6545
6546 # Check whether --with-pid-dir or --without-pid-dir was given.
6547 if test "${with_pid_dir+set}" = set; then
6548   withval="$with_pid_dir"
6549
6550         if test "x$withval" != "xno" ; then
6551             piddir=$withval
6552         fi
6553
6554
6555 fi;
6556
6557 cat >>confdefs.h <<_ACEOF
6558 #define _PATH_BACULA_PIDDIR "$piddir"
6559 _ACEOF
6560
6561
6562
6563
6564 # ------------------------------------
6565 # Where to place subsys "lock file"
6566 # ------------------------------------
6567 subsysdir=/var/run/subsys
6568
6569 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6570 if test "${with_subsys_dir+set}" = set; then
6571   withval="$with_subsys_dir"
6572
6573         if test "x$withval" != "xno" ; then
6574             subsysdir=$withval
6575         fi
6576
6577
6578 fi;
6579
6580
6581
6582
6583
6584 # ------------------------------------
6585 # Where to start assigning ports
6586 # ------------------------------------
6587 baseport=9101
6588
6589 # Check whether --with-baseport or --without-baseport was given.
6590 if test "${with_baseport+set}" = set; then
6591   withval="$with_baseport"
6592
6593         if test "x$withval" != "xno" ; then
6594              baseport=$withval
6595         fi
6596
6597
6598 fi;
6599
6600
6601 dir_port=`expr $baseport`
6602 fd_port=`expr $baseport + 1`
6603 sd_port=`expr $fd_port + 1`
6604
6605
6606
6607
6608
6609
6610 # ------------------------------------------
6611 # Generate passwords
6612 # ------------------------------------------
6613 dir_password=
6614
6615 # Check whether --with-dir-password or --without-dir-password was given.
6616 if test "${with_dir_password+set}" = set; then
6617   withval="$with_dir_password"
6618
6619        if test "x$withval" != "xno" ; then
6620            dir_password=$withval
6621        fi
6622
6623
6624 fi;
6625
6626 if test "x$dir_password" = "x" ; then
6627    if test "x$OPENSSL" = "xnone" ; then
6628 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6629       key=`autoconf/randpass 33`
6630    else
6631       key=`openssl rand -base64 33`
6632    fi
6633    dir_password=$key
6634 fi
6635
6636 fd_password=
6637
6638 # Check whether --with-fd-password or --without-fd-password was given.
6639 if test "${with_fd_password+set}" = set; then
6640   withval="$with_fd_password"
6641
6642        if test "x$withval" != "xno" ; then
6643            fd_password=$withval
6644        fi
6645
6646
6647 fi;
6648
6649 if test "x$fd_password" = "x" ; then
6650    if test "x$OPENSSL" = "xnone" ; then
6651 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6652       key=`autoconf/randpass 37`
6653    else
6654       key=`openssl rand -base64 33`
6655    fi
6656    fd_password=$key
6657 fi
6658
6659 sd_password=
6660
6661 # Check whether --with-sd-password or --without-sd-password was given.
6662 if test "${with_sd_password+set}" = set; then
6663   withval="$with_sd_password"
6664
6665        if test "x$withval" != "xno" ; then
6666            sd_password=$withval
6667        fi
6668
6669
6670 fi;
6671
6672 if test "x$sd_password" = "x" ; then
6673    if test "x$OPENSSL" = "xnone" ; then
6674 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6675       key=`autoconf/randpass 41`
6676    else
6677       key=`openssl rand -base64 33`
6678    fi
6679    sd_password=$key
6680 fi
6681
6682
6683
6684
6685
6686
6687
6688 #
6689 # Handle users and groups for each daemon
6690 #
6691 dir_user=
6692
6693 # Check whether --with-dir_user or --without-dir_user was given.
6694 if test "${with_dir_user+set}" = set; then
6695   withval="$with_dir_user"
6696
6697         if test "x$withval" != "x" ; then
6698              dir_user=$withval
6699         fi
6700
6701
6702 fi;
6703
6704 dir_group=
6705
6706 # Check whether --with-dir_group or --without-dir_group was given.
6707 if test "${with_dir_group+set}" = set; then
6708   withval="$with_dir_group"
6709
6710         if test "x$withval" != "x" ; then
6711              dir_group=$withval
6712         fi
6713
6714
6715 fi;
6716
6717 sd_user=
6718
6719 # Check whether --with-sd_user or --without-sd_user was given.
6720 if test "${with_sd_user+set}" = set; then
6721   withval="$with_sd_user"
6722
6723         if test "x$withval" != "x" ; then
6724              sd_user=$withval
6725         fi
6726
6727
6728 fi;
6729
6730 sd_group=
6731
6732 # Check whether --with-sd_group or --without-sd_group was given.
6733 if test "${with_sd_group+set}" = set; then
6734   withval="$with_sd_group"
6735
6736         if test "x$withval" != "x" ; then
6737              sd_group=$withval
6738         fi
6739
6740
6741 fi;
6742
6743 fd_user=
6744
6745 # Check whether --with-fd_user or --without-fd_user was given.
6746 if test "${with_fd_user+set}" = set; then
6747   withval="$with_fd_user"
6748
6749         if test "x$withval" != "x" ; then
6750              fd_user=$withval
6751         fi
6752
6753
6754 fi;
6755
6756 fd_group=
6757
6758 # Check whether --with-fd_group or --without-fd_group was given.
6759 if test "${with_fd_group+set}" = set; then
6760   withval="$with_fd_group"
6761
6762         if test "x$withval" != "x" ; then
6763              fd_group=$withval
6764         fi
6765
6766
6767 fi;
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779 # ------------------------------------------------
6780 # Bacula check for various SQL database engines
6781 # ------------------------------------------------
6782
6783 db_found=no
6784 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
6785 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
6786
6787 # Check whether --with-postgresql was given.
6788 if test "${with_postgresql+set}" = set; then
6789   withval="$with_postgresql"
6790
6791   if test "$withval" != "no"; then
6792         if test "$withval" = "yes"; then
6793                 if test -f /usr/local/postgresql/include/postgresql/libpq-fe.h; then
6794                         POSTGRESQL_INCDIR=/usr/local/postgresql/include/postgresql
6795                         POSTGRESQL_LIBDIR=/usr/local/postgresql/lib/postgresql
6796                         POSTGRESQL_BINDIR=/usr/local/postgresql/bin
6797                 elif test -f /usr/include/postgresql/libpq-fe.h; then
6798                         POSTGRESQL_INCDIR=/usr/include/postgresql
6799                         POSTGRESQL_LIBDIR=/usr/lib/postgresql
6800                         POSTGRESQL_BINDIR=/usr/bin
6801                 elif test -f /usr/include/libpq-fe.h; then
6802                         POSTGRESQL_INCDIR=/usr/include
6803                         POSTGRESQL_LIBDIR=/usr/lib
6804                         POSTGRESQL_BINDIR=/usr/bin
6805                 elif test -f /usr/local/include/postgresql/libpq-fe.h; then
6806                         POSTGRESQL_INCDIR=/usr/local/include/postgresql
6807                         POSTGRESQL_LIBDIR=/usr/local/lib/postgresql
6808                         POSTGRESQL_BINDIR=/usr/local/bin
6809                 elif test -f /usr/local/include/libpq-fe.h; then
6810                         POSTGRESQL_INCDIR=/usr/local/include
6811                         POSTGRESQL_LIBDIR=/usr/local/lib
6812                         POSTGRESQL_BINDIR=/usr/local/bin
6813                 else
6814                    echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6
6816                    { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
6817 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
6818    { (exit 1); exit 1; }; }
6819                 fi
6820         else
6821                 if test -f $withval/include/postgresql/libpq-fe.h; then
6822                         POSTGRESQL_INCDIR=$withval/include/postgresql
6823                         POSTGRESQL_LIBDIR=$withval/lib/postgresql
6824                         POSTGRESQL_BINDIR=$withval/bin
6825                 elif test -f $withval/include/libpq-fe.h; then
6826                         POSTGRESQL_INCDIR=$withval/include
6827                         POSTGRESQL_LIBDIR=$withval/lib
6828                         POSTGRESQL_BINDIR=$withval/bin
6829                 else
6830                    echo "$as_me:$LINENO: result: no" >&5
6831 echo "${ECHO_T}no" >&6
6832                    { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
6833 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
6834    { (exit 1); exit 1; }; }
6835                 fi
6836         fi
6837     SQL_INCLUDE=-I$POSTGRESQL_INCDIR
6838     SQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq -lz"
6839     SQL_BINDIR=$POSTGRESQL_BINDIR
6840
6841     cat >>confdefs.h <<\_ACEOF
6842 #define HAVE_POSTGRESQL 1
6843 _ACEOF
6844
6845     echo "$as_me:$LINENO: result: yes" >&5
6846 echo "${ECHO_T}yes" >&6
6847     db_found=yes
6848     support_postgresql=yes
6849     db_name=PostgreSQL
6850     DB_NAME=postgresql
6851
6852   else
6853         echo "$as_me:$LINENO: result: no" >&5
6854 echo "${ECHO_T}no" >&6
6855   fi
6856
6857 else
6858
6859     echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6
6861
6862 fi;
6863
6864
6865 echo "$as_me:$LINENO: checking for MySQL support" >&5
6866 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
6867
6868 # Check whether --with-mysql or --without-mysql was given.
6869 if test "${with_mysql+set}" = set; then
6870   withval="$with_mysql"
6871
6872   if test "$withval" != "no"; then
6873         if test "$withval" = "yes"; then
6874                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6875                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
6876                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6877                         MYSQL_BINDIR=/usr/local/mysql/bin
6878                 elif test -f /usr/include/mysql/mysql.h; then
6879                         MYSQL_INCDIR=/usr/include/mysql
6880                         MYSQL_LIBDIR=/usr/lib/mysql
6881                         MYSQL_BINDIR=/usr/bin
6882                 elif test -f /usr/include/mysql.h; then
6883                         MYSQL_INCDIR=/usr/include
6884                         MYSQL_LIBDIR=/usr/lib
6885                         MYSQL_BINDIR=/usr/bin
6886                 elif test -f /usr/local/include/mysql/mysql.h; then
6887                         MYSQL_INCDIR=/usr/local/include/mysql
6888                         MYSQL_LIBDIR=/usr/local/lib/mysql
6889                         MYSQL_BINDIR=/usr/local/bin
6890                 elif test -f /usr/local/include/mysql.h; then
6891                         MYSQL_INCDIR=/usr/local/include
6892                         MYSQL_LIBDIR=/usr/local/lib
6893                         MYSQL_BINDIR=/usr/local/bin
6894                 else
6895                    echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6
6897                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6898 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6899    { (exit 1); exit 1; }; }
6900                 fi
6901         else
6902                 if test -f $withval/include/mysql/mysql.h; then
6903                         MYSQL_INCDIR=$withval/include/mysql
6904                         MYSQL_LIBDIR=$withval/lib/mysql
6905                         MYSQL_BINDIR=$withval/bin
6906                 elif test -f $withval/include/mysql.h; then
6907                         MYSQL_INCDIR=$withval/include
6908                         MYSQL_LIBDIR=$withval/lib
6909                         MYSQL_BINDIR=$withval/bin
6910                 else
6911                    echo "$as_me:$LINENO: result: no" >&5
6912 echo "${ECHO_T}no" >&6
6913                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6914 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6915    { (exit 1); exit 1; }; }
6916                 fi
6917         fi
6918     SQL_INCLUDE=-I$MYSQL_INCDIR
6919     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
6920        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
6921        cat >>confdefs.h <<\_ACEOF
6922 #define HAVE_THREAD_SAFE_MYSQL 1
6923 _ACEOF
6924
6925     else
6926        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
6927     fi
6928     SQL_BINDIR=$MYSQL_BINDIR
6929
6930     cat >>confdefs.h <<\_ACEOF
6931 #define HAVE_MYSQL 1
6932 _ACEOF
6933
6934     echo "$as_me:$LINENO: result: yes" >&5
6935 echo "${ECHO_T}yes" >&6
6936     db_found=yes
6937     support_mysql=yes
6938     db_name=MySQL
6939     DB_NAME=mysql
6940
6941   else
6942         echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6
6944   fi
6945
6946 else
6947
6948     echo "$as_me:$LINENO: result: no" >&5
6949 echo "${ECHO_T}no" >&6
6950
6951 fi;
6952
6953
6954 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
6955 if test "${with_embedded_mysql+set}" = set; then
6956   withval="$with_embedded_mysql"
6957
6958   if test "$withval" != "no"; then
6959         if test "$withval" = "yes"; then
6960                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6961                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
6962                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6963                         MYSQL_BINDIR=/usr/local/mysql/bin
6964                 elif test -f /usr/include/mysql/mysql.h; then
6965                         MYSQL_INCDIR=/usr/include/mysql
6966                         MYSQL_LIBDIR=/usr/lib/mysql
6967                         MYSQL_BINDIR=/usr/bin
6968                 elif test -f /usr/include/mysql.h; then
6969                         MYSQL_INCDIR=/usr/include
6970                         MYSQL_LIBDIR=/usr/lib
6971                         MYSQL_BINDIR=/usr/bin
6972                 elif test -f /usr/local/include/mysql/mysql.h; then
6973                         MYSQL_INCDIR=/usr/local/include/mysql
6974                         MYSQL_LIBDIR=/usr/local/lib/mysql
6975                         MYSQL_BINDIR=/usr/local/bin
6976                 elif test -f /usr/local/include/mysql.h; then
6977                         MYSQL_INCDIR=/usr/local/include
6978                         MYSQL_LIBDIR=/usr/local/lib
6979                         MYSQL_BINDIR=/usr/local/bin
6980                 else
6981                    echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6
6983                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6984 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6985    { (exit 1); exit 1; }; }
6986                 fi
6987         else
6988                 if test -f $withval/include/mysql/mysql.h; then
6989                         MYSQL_INCDIR=$withval/include/mysql
6990                         MYSQL_LIBDIR=$withval/lib/mysql
6991                         MYSQL_BINDIR=$withval/bin
6992                 elif test -f $withval/include/mysql.h; then
6993                         MYSQL_INCDIR=$withval/include
6994                         MYSQL_LIBDIR=$withval/lib
6995                         MYSQL_BINDIR=$withval/bin
6996                 else
6997                    echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6
6999                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7000 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7001    { (exit 1); exit 1; }; }
7002                 fi
7003         fi
7004     SQL_INCLUDE=-I$MYSQL_INCDIR
7005     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7006     SQL_BINDIR=$MYSQL_BINDIR
7007
7008     cat >>confdefs.h <<\_ACEOF
7009 #define HAVE_MYSQL 1
7010 _ACEOF
7011
7012     cat >>confdefs.h <<\_ACEOF
7013 #define HAVE_EMBEDDED_MYSQL 1
7014 _ACEOF
7015
7016     echo "$as_me:$LINENO: result: yes" >&5
7017 echo "${ECHO_T}yes" >&6
7018     db_found=yes
7019     support_mysql=yes
7020     db_name=MySQL
7021     DB_NAME=mysql
7022
7023   else
7024         echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6
7026   fi
7027
7028 else
7029
7030   echo "$as_me:$LINENO: result: no" >&5
7031 echo "${ECHO_T}no" >&6
7032
7033 fi;
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043 # ------------------------------------------------
7044 # Bacula check for various SQL database engines
7045 # ------------------------------------------------
7046
7047 db_found=no
7048 echo "$as_me:$LINENO: checking for SQLite support" >&5
7049 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7050
7051 # Check whether --with-sqlite or --without-sqlite was given.
7052 if test "${with_sqlite+set}" = set; then
7053   withval="$with_sqlite"
7054
7055   if test "$withval" != "no"; then
7056         if test "$withval" = "yes"; then
7057                 if test -f /usr/local/include/sqlite.h; then
7058                         SQLITE_INCDIR=/usr/local/include
7059                         SQLITE_LIBDIR=/usr/local/lib
7060                         SQLITE_BINDIR=/usr/local/bin
7061                 elif test -f /usr/include/sqlite.h; then
7062                         SQLITE_INCDIR=/usr/include
7063                         SQLITE_LIBDIR=/usr/lib
7064                         SQLITE_BINDIR=/usr/bin
7065                 else
7066                    echo "$as_me:$LINENO: result: no" >&5
7067 echo "${ECHO_T}no" >&6
7068                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7069 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7070    { (exit 1); exit 1; }; }
7071                 fi
7072         else
7073                 if test -f $withval/sqlite.h; then
7074                         SQLITE_INCDIR=$withval
7075                         SQLITE_LIBDIR=$withval
7076                         SQLITE_BINDIR=$withval
7077                 else
7078                    echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6
7080                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7081 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7082    { (exit 1); exit 1; }; }
7083                 fi
7084         fi
7085     SQL_INCLUDE=-I$SQLITE_INCDIR
7086     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7087     SQL_BINDIR=$SQLITE_BINDIR
7088
7089     cat >>confdefs.h <<\_ACEOF
7090 #define HAVE_SQLITE 1
7091 _ACEOF
7092
7093     echo "$as_me:$LINENO: result: yes" >&5
7094 echo "${ECHO_T}yes" >&6
7095     db_found=yes
7096     support_sqlite=yes
7097     db_name=SQLite
7098     DB_NAME=sqlite
7099
7100   else
7101         echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6
7103   fi
7104
7105 else
7106
7107   echo "$as_me:$LINENO: result: no" >&5
7108 echo "${ECHO_T}no" >&6
7109
7110 fi;
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120 cat >>confdefs.h <<\_ACEOF
7121 #define PROTOTYPES 1
7122 _ACEOF
7123
7124
7125 if test -z "$CFLAGS"; then
7126     if test -z "$CCOPTS"; then
7127         CCOPTS='-g -O2'
7128     fi
7129     CFLAGS="$CCOPTS"
7130 fi
7131
7132
7133
7134
7135 largefile_support="no"
7136
7137    # Check whether --enable-largefile or --disable-largefile was given.
7138 if test "${enable_largefile+set}" = set; then
7139   enableval="$enable_largefile"
7140
7141 fi;
7142    if test "$enable_largefile" != no; then
7143      if test -n "$ac_tool_prefix"; then
7144   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7145 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7146 echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7148 if test "${ac_cv_prog_GETCONF+set}" = set; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151   if test -n "$GETCONF"; then
7152   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7153 else
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7156 do
7157   IFS=$as_save_IFS
7158   test -z "$as_dir" && as_dir=.
7159   for ac_exec_ext in '' $ac_executable_extensions; do
7160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163     break 2
7164   fi
7165 done
7166 done
7167
7168 fi
7169 fi
7170 GETCONF=$ac_cv_prog_GETCONF
7171 if test -n "$GETCONF"; then
7172   echo "$as_me:$LINENO: result: $GETCONF" >&5
7173 echo "${ECHO_T}$GETCONF" >&6
7174 else
7175   echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6
7177 fi
7178
7179 fi
7180 if test -z "$ac_cv_prog_GETCONF"; then
7181   ac_ct_GETCONF=$GETCONF
7182   # Extract the first word of "getconf", so it can be a program name with args.
7183 set dummy getconf; ac_word=$2
7184 echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7186 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7187   echo $ECHO_N "(cached) $ECHO_C" >&6
7188 else
7189   if test -n "$ac_ct_GETCONF"; then
7190   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7191 else
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 for as_dir in $PATH
7194 do
7195   IFS=$as_save_IFS
7196   test -z "$as_dir" && as_dir=.
7197   for ac_exec_ext in '' $ac_executable_extensions; do
7198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199     ac_cv_prog_ac_ct_GETCONF="getconf"
7200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201     break 2
7202   fi
7203 done
7204 done
7205
7206 fi
7207 fi
7208 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7209 if test -n "$ac_ct_GETCONF"; then
7210   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7211 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7212 else
7213   echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6
7215 fi
7216
7217   GETCONF=$ac_ct_GETCONF
7218 else
7219   GETCONF="$ac_cv_prog_GETCONF"
7220 fi
7221
7222      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7223 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7224 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7225   echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7228         ac_cv_sys_largefile_CFLAGS=no
7229         case "$host_os" in
7230            # IRIX 6.2 and later require cc -n32.
7231            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7232              if test "$GCC" != yes; then
7233                ac_cv_sys_largefile_CFLAGS=-n32
7234              fi
7235              ac_save_CC="$CC"
7236              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7237              cat >conftest.$ac_ext <<_ACEOF
7238 #line $LINENO "configure"
7239 /* confdefs.h.  */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h.  */
7244
7245 int
7246 main ()
7247 {
7248
7249   ;
7250   return 0;
7251 }
7252 _ACEOF
7253 rm -f conftest.$ac_objext conftest$ac_exeext
7254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7255   (eval $ac_link) 2>&5
7256   ac_status=$?
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); } &&
7259          { ac_try='test -s conftest$ac_exeext'
7260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261   (eval $ac_try) 2>&5
7262   ac_status=$?
7263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264   (exit $ac_status); }; }; then
7265   :
7266 else
7267   echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7269
7270 ac_cv_sys_largefile_CFLAGS=no
7271 fi
7272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7273              CC="$ac_save_CC"
7274            esac
7275       }
7276 fi
7277 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7278 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7279      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7280 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7281 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7282   echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7285         ac_cv_sys_largefile_LDFLAGS=no
7286
7287       }
7288 fi
7289 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7290 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7291      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7292 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7293 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7294   echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7297         ac_cv_sys_largefile_LIBS=no
7298
7299       }
7300 fi
7301 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7302 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7303
7304      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7305        case "$ac_flag" in
7306        no) ;;
7307        -D_FILE_OFFSET_BITS=*) ;;
7308        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7309        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7310        -D?* | -I?*)
7311          case "$ac_flag" in
7312    no) ;;
7313    ?*)
7314      case "$CPPFLAGS" in
7315      '') CPPFLAGS="$ac_flag" ;;
7316      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7317      esac ;;
7318    esac ;;
7319        *)
7320          case "$ac_flag" in
7321    no) ;;
7322    ?*)
7323      case "$CFLAGS" in
7324      '') CFLAGS="$ac_flag" ;;
7325      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7326      esac ;;
7327    esac ;;
7328        esac
7329      done
7330      case "$ac_cv_sys_largefile_LDFLAGS" in
7331    no) ;;
7332    ?*)
7333      case "$LDFLAGS" in
7334      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7335      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7336      esac ;;
7337    esac
7338      case "$ac_cv_sys_largefile_LIBS" in
7339    no) ;;
7340    ?*)
7341      case "$LIBS" in
7342      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7343      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7344      esac ;;
7345    esac
7346      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7347 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7348 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7349   echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351   ac_cv_sys_file_offset_bits=no
7352       case "$host_os" in
7353         # HP-UX 10.20 and later
7354         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7355           ac_cv_sys_file_offset_bits=64 ;;
7356         esac
7357       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7358         case "$ac_flag" in
7359         -D_FILE_OFFSET_BITS)
7360           ac_cv_sys_file_offset_bits=1 ;;
7361         -D_FILE_OFFSET_BITS=*)
7362           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7363         esac
7364       done
7365
7366 fi
7367 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7368 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7369    if test "$ac_cv_sys_file_offset_bits" != no; then
7370
7371 cat >>confdefs.h <<_ACEOF
7372 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7373 _ACEOF
7374
7375    fi
7376      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7377 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7378 if test "${ac_cv_sys_largefile_source+set}" = set; then
7379   echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381   ac_cv_sys_largefile_source=no
7382       case "$host_os" in
7383         # HP-UX 10.20 and later
7384         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7385           ac_cv_sys_largefile_source=1 ;;
7386         esac
7387       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7388         case "$ac_flag" in
7389         -D_LARGEFILE_SOURCE)
7390           ac_cv_sys_largefile_source=1 ;;
7391         -D_LARGEFILE_SOURCE=*)
7392           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7393         esac
7394       done
7395
7396 fi
7397 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7398 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7399    if test "$ac_cv_sys_largefile_source" != no; then
7400
7401 cat >>confdefs.h <<_ACEOF
7402 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7403 _ACEOF
7404
7405    fi
7406      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7407 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7408 if test "${ac_cv_sys_large_files+set}" = set; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411   ac_cv_sys_large_files=no
7412       case "$host_os" in
7413         # AIX 4.2 and later
7414         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7415           ac_cv_sys_large_files=1 ;;
7416         esac
7417       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7418         case "$ac_flag" in
7419         -D_LARGE_FILES)
7420           ac_cv_sys_large_files=1 ;;
7421         -D_LARGE_FILES=*)
7422           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7423         esac
7424       done
7425
7426 fi
7427 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7428 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7429    if test "$ac_cv_sys_large_files" != no; then
7430
7431 cat >>confdefs.h <<_ACEOF
7432 #define _LARGE_FILES $ac_cv_sys_large_files
7433 _ACEOF
7434
7435    fi
7436    fi
7437
7438
7439
7440 echo "$as_me:$LINENO: checking for X" >&5
7441 echo $ECHO_N "checking for X... $ECHO_C" >&6
7442
7443
7444 # Check whether --with-x or --without-x was given.
7445 if test "${with_x+set}" = set; then
7446   withval="$with_x"
7447
7448 fi;
7449 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7450 if test "x$with_x" = xno; then
7451   # The user explicitly disabled X.
7452   have_x=disabled
7453 else
7454   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7455     # Both variables are already set.
7456     have_x=yes
7457   else
7458     if test "${ac_cv_have_x+set}" = set; then
7459   echo $ECHO_N "(cached) $ECHO_C" >&6
7460 else
7461   # One or both of the vars are not set, and there is no cached value.
7462 ac_x_includes=no ac_x_libraries=no
7463 rm -fr conftest.dir
7464 if mkdir conftest.dir; then
7465   cd conftest.dir
7466   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7467   cat >Imakefile <<'_ACEOF'
7468 acfindx:
7469         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7470 _ACEOF
7471   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7472     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7473     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7474     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7475     for ac_extension in a so sl; do
7476       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7477          test -f $ac_im_libdir/libX11.$ac_extension; then
7478         ac_im_usrlibdir=$ac_im_libdir; break
7479       fi
7480     done
7481     # Screen out bogus values from the imake configuration.  They are
7482     # bogus both because they are the default anyway, and because
7483     # using them would break gcc on systems where it needs fixed includes.
7484     case $ac_im_incroot in
7485         /usr/include) ;;
7486         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7487     esac
7488     case $ac_im_usrlibdir in
7489         /usr/lib | /lib) ;;
7490         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7491     esac
7492   fi
7493   cd ..
7494   rm -fr conftest.dir
7495 fi
7496
7497 # Standard set of common directories for X headers.
7498 # Check X11 before X11Rn because it is often a symlink to the current release.
7499 ac_x_header_dirs='
7500 /usr/X11/include
7501 /usr/X11R6/include
7502 /usr/X11R5/include
7503 /usr/X11R4/include
7504
7505 /usr/include/X11
7506 /usr/include/X11R6
7507 /usr/include/X11R5
7508 /usr/include/X11R4
7509
7510 /usr/local/X11/include
7511 /usr/local/X11R6/include
7512 /usr/local/X11R5/include
7513 /usr/local/X11R4/include
7514
7515 /usr/local/include/X11
7516 /usr/local/include/X11R6
7517 /usr/local/include/X11R5
7518 /usr/local/include/X11R4
7519
7520 /usr/X386/include
7521 /usr/x386/include
7522 /usr/XFree86/include/X11
7523
7524 /usr/include
7525 /usr/local/include
7526 /usr/unsupported/include
7527 /usr/athena/include
7528 /usr/local/x11r5/include
7529 /usr/lpp/Xamples/include
7530
7531 /usr/openwin/include
7532 /usr/openwin/share/include'
7533
7534 if test "$ac_x_includes" = no; then
7535   # Guess where to find include files, by looking for Intrinsic.h.
7536   # First, try using that file with no special directory specified.
7537   cat >conftest.$ac_ext <<_ACEOF
7538 #line $LINENO "configure"
7539 /* confdefs.h.  */
7540 _ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h.  */
7544 #include <X11/Intrinsic.h>
7545 _ACEOF
7546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7547   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7548   ac_status=$?
7549   grep -v '^ *+' conftest.er1 >conftest.err
7550   rm -f conftest.er1
7551   cat conftest.err >&5
7552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553   (exit $ac_status); } >/dev/null; then
7554   if test -s conftest.err; then
7555     ac_cpp_err=$ac_c_preproc_warn_flag
7556   else
7557     ac_cpp_err=
7558   fi
7559 else
7560   ac_cpp_err=yes
7561 fi
7562 if test -z "$ac_cpp_err"; then
7563   # We can compile using X headers with no special include directory.
7564 ac_x_includes=
7565 else
7566   echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7568
7569   for ac_dir in $ac_x_header_dirs; do
7570   if test -r "$ac_dir/X11/Intrinsic.h"; then
7571     ac_x_includes=$ac_dir
7572     break
7573   fi
7574 done
7575 fi
7576 rm -f conftest.err conftest.$ac_ext
7577 fi # $ac_x_includes = no
7578
7579 if test "$ac_x_libraries" = no; then
7580   # Check for the libraries.
7581   # See if we find them without any special options.
7582   # Don't add to $LIBS permanently.
7583   ac_save_LIBS=$LIBS
7584   LIBS="-lXt $LIBS"
7585   cat >conftest.$ac_ext <<_ACEOF
7586 #line $LINENO "configure"
7587 /* confdefs.h.  */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h.  */
7592 #include <X11/Intrinsic.h>
7593 int
7594 main ()
7595 {
7596 XtMalloc (0)
7597   ;
7598   return 0;
7599 }
7600 _ACEOF
7601 rm -f conftest.$ac_objext conftest$ac_exeext
7602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7603   (eval $ac_link) 2>&5
7604   ac_status=$?
7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606   (exit $ac_status); } &&
7607          { ac_try='test -s conftest$ac_exeext'
7608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609   (eval $ac_try) 2>&5
7610   ac_status=$?
7611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); }; }; then
7613   LIBS=$ac_save_LIBS
7614 # We can link X programs with no special library path.
7615 ac_x_libraries=
7616 else
7617   echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7619
7620 LIBS=$ac_save_LIBS
7621 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7622 do
7623   # Don't even attempt the hair of trying to link an X program!
7624   for ac_extension in a so sl; do
7625     if test -r $ac_dir/libXt.$ac_extension; then
7626       ac_x_libraries=$ac_dir
7627       break 2
7628     fi
7629   done
7630 done
7631 fi
7632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7633 fi # $ac_x_libraries = no
7634
7635 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7636   # Didn't find X anywhere.  Cache the known absence of X.
7637   ac_cv_have_x="have_x=no"
7638 else
7639   # Record where we found X for the cache.
7640   ac_cv_have_x="have_x=yes \
7641                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7642 fi
7643 fi
7644
7645   fi
7646   eval "$ac_cv_have_x"
7647 fi # $with_x != no
7648
7649 if test "$have_x" != yes; then
7650   echo "$as_me:$LINENO: result: $have_x" >&5
7651 echo "${ECHO_T}$have_x" >&6
7652   no_x=yes
7653 else
7654   # If each of the values was on the command line, it overrides each guess.
7655   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7656   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7657   # Update the cache value to reflect the command line values.
7658   ac_cv_have_x="have_x=yes \
7659                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7660   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7661 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7662 fi
7663
7664 if test "$no_x" = yes; then
7665   # Not all programs may use this symbol, but it does not hurt to define it.
7666
7667 cat >>confdefs.h <<\_ACEOF
7668 #define X_DISPLAY_MISSING 1
7669 _ACEOF
7670
7671   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7672 else
7673   if test -n "$x_includes"; then
7674     X_CFLAGS="$X_CFLAGS -I$x_includes"
7675   fi
7676
7677   # It would also be nice to do this for all -L options, not just this one.
7678   if test -n "$x_libraries"; then
7679     X_LIBS="$X_LIBS -L$x_libraries"
7680     # For Solaris; some versions of Sun CC require a space after -R and
7681     # others require no space.  Words are not sufficient . . . .
7682     case `(uname -sr) 2>/dev/null` in
7683     "SunOS 5"*)
7684       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7685 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7686       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7687       cat >conftest.$ac_ext <<_ACEOF
7688 #line $LINENO "configure"
7689 /* confdefs.h.  */
7690 _ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h.  */
7694
7695 int
7696 main ()
7697 {
7698
7699   ;
7700   return 0;
7701 }
7702 _ACEOF
7703 rm -f conftest.$ac_objext conftest$ac_exeext
7704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7705   (eval $ac_link) 2>&5
7706   ac_status=$?
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); } &&
7709          { ac_try='test -s conftest$ac_exeext'
7710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711   (eval $ac_try) 2>&5
7712   ac_status=$?
7713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714   (exit $ac_status); }; }; then
7715   ac_R_nospace=yes
7716 else
7717   echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7719
7720 ac_R_nospace=no
7721 fi
7722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7723       if test $ac_R_nospace = yes; then
7724         echo "$as_me:$LINENO: result: no" >&5
7725 echo "${ECHO_T}no" >&6
7726         X_LIBS="$X_LIBS -R$x_libraries"
7727       else
7728         LIBS="$ac_xsave_LIBS -R $x_libraries"
7729         cat >conftest.$ac_ext <<_ACEOF
7730 #line $LINENO "configure"
7731 /* confdefs.h.  */
7732 _ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h.  */
7736
7737 int
7738 main ()
7739 {
7740
7741   ;
7742   return 0;
7743 }
7744 _ACEOF
7745 rm -f conftest.$ac_objext conftest$ac_exeext
7746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7747   (eval $ac_link) 2>&5
7748   ac_status=$?
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); } &&
7751          { ac_try='test -s conftest$ac_exeext'
7752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753   (eval $ac_try) 2>&5
7754   ac_status=$?
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); }; }; then
7757   ac_R_space=yes
7758 else
7759   echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7761
7762 ac_R_space=no
7763 fi
7764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7765         if test $ac_R_space = yes; then
7766           echo "$as_me:$LINENO: result: yes" >&5
7767 echo "${ECHO_T}yes" >&6
7768           X_LIBS="$X_LIBS -R $x_libraries"
7769         else
7770           echo "$as_me:$LINENO: result: neither works" >&5
7771 echo "${ECHO_T}neither works" >&6
7772         fi
7773       fi
7774       LIBS=$ac_xsave_LIBS
7775     esac
7776   fi
7777
7778   # Check for system-dependent libraries X programs must link with.
7779   # Do this before checking for the system-independent R6 libraries
7780   # (-lICE), since we may need -lsocket or whatever for X linking.
7781
7782   if test "$ISC" = yes; then
7783     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7784   else
7785     # Martyn Johnson says this is needed for Ultrix, if the X
7786     # libraries were built with DECnet support.  And Karl Berry says
7787     # the Alpha needs dnet_stub (dnet does not exist).
7788     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7789     cat >conftest.$ac_ext <<_ACEOF
7790 #line $LINENO "configure"
7791 /* confdefs.h.  */
7792 _ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h.  */
7796
7797 /* Override any gcc2 internal prototype to avoid an error.  */
7798 #ifdef __cplusplus
7799 extern "C"
7800 #endif
7801 /* We use char because int might match the return type of a gcc2
7802    builtin and then its argument prototype would still apply.  */
7803 char XOpenDisplay ();
7804 int
7805 main ()
7806 {
7807 XOpenDisplay ();
7808   ;
7809   return 0;
7810 }
7811 _ACEOF
7812 rm -f conftest.$ac_objext conftest$ac_exeext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7814   (eval $ac_link) 2>&5
7815   ac_status=$?
7816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817   (exit $ac_status); } &&
7818          { ac_try='test -s conftest$ac_exeext'
7819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820   (eval $ac_try) 2>&5
7821   ac_status=$?
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); }; }; then
7824   :
7825 else
7826   echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7828
7829 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7830 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7831 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7832   echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834   ac_check_lib_save_LIBS=$LIBS
7835 LIBS="-ldnet  $LIBS"
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 /* Override any gcc2 internal prototype to avoid an error.  */
7845 #ifdef __cplusplus
7846 extern "C"
7847 #endif
7848 /* We use char because int might match the return type of a gcc2
7849    builtin and then its argument prototype would still apply.  */
7850 char dnet_ntoa ();
7851 int
7852 main ()
7853 {
7854 dnet_ntoa ();
7855   ;
7856   return 0;
7857 }
7858 _ACEOF
7859 rm -f conftest.$ac_objext conftest$ac_exeext
7860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7861   (eval $ac_link) 2>&5
7862   ac_status=$?
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); } &&
7865          { ac_try='test -s conftest$ac_exeext'
7866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867   (eval $ac_try) 2>&5
7868   ac_status=$?
7869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870   (exit $ac_status); }; }; then
7871   ac_cv_lib_dnet_dnet_ntoa=yes
7872 else
7873   echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7875
7876 ac_cv_lib_dnet_dnet_ntoa=no
7877 fi
7878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7879 LIBS=$ac_check_lib_save_LIBS
7880 fi
7881 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7882 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7883 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7884   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7885 fi
7886
7887     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7888       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7889 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7890 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7891   echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893   ac_check_lib_save_LIBS=$LIBS
7894 LIBS="-ldnet_stub  $LIBS"
7895 cat >conftest.$ac_ext <<_ACEOF
7896 #line $LINENO "configure"
7897 /* confdefs.h.  */
7898 _ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h.  */
7902
7903 /* Override any gcc2 internal prototype to avoid an error.  */
7904 #ifdef __cplusplus
7905 extern "C"
7906 #endif
7907 /* We use char because int might match the return type of a gcc2
7908    builtin and then its argument prototype would still apply.  */
7909 char dnet_ntoa ();
7910 int
7911 main ()
7912 {
7913 dnet_ntoa ();
7914   ;
7915   return 0;
7916 }
7917 _ACEOF
7918 rm -f conftest.$ac_objext conftest$ac_exeext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7920   (eval $ac_link) 2>&5
7921   ac_status=$?
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); } &&
7924          { ac_try='test -s conftest$ac_exeext'
7925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926   (eval $ac_try) 2>&5
7927   ac_status=$?
7928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929   (exit $ac_status); }; }; then
7930   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7931 else
7932   echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7934
7935 ac_cv_lib_dnet_stub_dnet_ntoa=no
7936 fi
7937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7938 LIBS=$ac_check_lib_save_LIBS
7939 fi
7940 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7941 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7942 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7943   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7944 fi
7945
7946     fi
7947 fi
7948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7949     LIBS="$ac_xsave_LIBS"
7950
7951     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7952     # to get the SysV transport functions.
7953     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7954     # needs -lnsl.
7955     # The nsl library prevents programs from opening the X display
7956     # on Irix 5.2, according to T.E. Dickey.
7957     # The functions gethostbyname, getservbyname, and inet_addr are
7958     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7959     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7960 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7961 if test "${ac_cv_func_gethostbyname+set}" = set; then
7962   echo $ECHO_N "(cached) $ECHO_C" >&6
7963 else
7964   cat >conftest.$ac_ext <<_ACEOF
7965 #line $LINENO "configure"
7966 /* confdefs.h.  */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h.  */
7971 /* System header to define __stub macros and hopefully few prototypes,
7972     which can conflict with char gethostbyname (); below.
7973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7974     <limits.h> exists even on freestanding compilers.  */
7975 #ifdef __STDC__
7976 # include <limits.h>
7977 #else
7978 # include <assert.h>
7979 #endif
7980 /* Override any gcc2 internal prototype to avoid an error.  */
7981 #ifdef __cplusplus
7982 extern "C"
7983 {
7984 #endif
7985 /* We use char because int might match the return type of a gcc2
7986    builtin and then its argument prototype would still apply.  */
7987 char gethostbyname ();
7988 /* The GNU C library defines this for functions which it implements
7989     to always fail with ENOSYS.  Some functions are actually named
7990     something starting with __ and the normal name is an alias.  */
7991 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7992 choke me
7993 #else
7994 char (*f) () = gethostbyname;
7995 #endif
7996 #ifdef __cplusplus
7997 }
7998 #endif
7999
8000 int
8001 main ()
8002 {
8003 return f != gethostbyname;
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_func_gethostbyname=yes
8021 else
8022   echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025 ac_cv_func_gethostbyname=no
8026 fi
8027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8028 fi
8029 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8030 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8031
8032     if test $ac_cv_func_gethostbyname = no; then
8033       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8034 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8035 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8036   echo $ECHO_N "(cached) $ECHO_C" >&6
8037 else
8038   ac_check_lib_save_LIBS=$LIBS
8039 LIBS="-lnsl  $LIBS"
8040 cat >conftest.$ac_ext <<_ACEOF
8041 #line $LINENO "configure"
8042 /* confdefs.h.  */
8043 _ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h.  */
8047
8048 /* Override any gcc2 internal prototype to avoid an error.  */
8049 #ifdef __cplusplus
8050 extern "C"
8051 #endif
8052 /* We use char because int might match the return type of a gcc2
8053    builtin and then its argument prototype would still apply.  */
8054 char gethostbyname ();
8055 int
8056 main ()
8057 {
8058 gethostbyname ();
8059   ;
8060   return 0;
8061 }
8062 _ACEOF
8063 rm -f conftest.$ac_objext conftest$ac_exeext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065   (eval $ac_link) 2>&5
8066   ac_status=$?
8067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068   (exit $ac_status); } &&
8069          { ac_try='test -s conftest$ac_exeext'
8070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071   (eval $ac_try) 2>&5
8072   ac_status=$?
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); }; }; then
8075   ac_cv_lib_nsl_gethostbyname=yes
8076 else
8077   echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8079
8080 ac_cv_lib_nsl_gethostbyname=no
8081 fi
8082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8083 LIBS=$ac_check_lib_save_LIBS
8084 fi
8085 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8086 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8087 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8088   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8089 fi
8090
8091       if test $ac_cv_lib_nsl_gethostbyname = no; then
8092         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8093 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8094 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   ac_check_lib_save_LIBS=$LIBS
8098 LIBS="-lbsd  $LIBS"
8099 cat >conftest.$ac_ext <<_ACEOF
8100 #line $LINENO "configure"
8101 /* confdefs.h.  */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h.  */
8106
8107 /* Override any gcc2 internal prototype to avoid an error.  */
8108 #ifdef __cplusplus
8109 extern "C"
8110 #endif
8111 /* We use char because int might match the return type of a gcc2
8112    builtin and then its argument prototype would still apply.  */
8113 char gethostbyname ();
8114 int
8115 main ()
8116 {
8117 gethostbyname ();
8118   ;
8119   return 0;
8120 }
8121 _ACEOF
8122 rm -f conftest.$ac_objext conftest$ac_exeext
8123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124   (eval $ac_link) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } &&
8128          { ac_try='test -s conftest$ac_exeext'
8129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130   (eval $ac_try) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); }; }; then
8134   ac_cv_lib_bsd_gethostbyname=yes
8135 else
8136   echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139 ac_cv_lib_bsd_gethostbyname=no
8140 fi
8141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8142 LIBS=$ac_check_lib_save_LIBS
8143 fi
8144 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8145 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8146 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8147   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8148 fi
8149
8150       fi
8151     fi
8152
8153     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8154     # socket/setsockopt and other routines are undefined under SCO ODT
8155     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8156     # on later versions), says Simon Leinen: it contains gethostby*
8157     # variants that don't use the name server (or something).  -lsocket
8158     # must be given before -lnsl if both are needed.  We assume that
8159     # if connect needs -lnsl, so does gethostbyname.
8160     echo "$as_me:$LINENO: checking for connect" >&5
8161 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8162 if test "${ac_cv_func_connect+set}" = set; then
8163   echo $ECHO_N "(cached) $ECHO_C" >&6
8164 else
8165   cat >conftest.$ac_ext <<_ACEOF
8166 #line $LINENO "configure"
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172 /* System header to define __stub macros and hopefully few prototypes,
8173     which can conflict with char connect (); below.
8174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8175     <limits.h> exists even on freestanding compilers.  */
8176 #ifdef __STDC__
8177 # include <limits.h>
8178 #else
8179 # include <assert.h>
8180 #endif
8181 /* Override any gcc2 internal prototype to avoid an error.  */
8182 #ifdef __cplusplus
8183 extern "C"
8184 {
8185 #endif
8186 /* We use char because int might match the return type of a gcc2
8187    builtin and then its argument prototype would still apply.  */
8188 char connect ();
8189 /* The GNU C library defines this for functions which it implements
8190     to always fail with ENOSYS.  Some functions are actually named
8191     something starting with __ and the normal name is an alias.  */
8192 #if defined (__stub_connect) || defined (__stub___connect)
8193 choke me
8194 #else
8195 char (*f) () = connect;
8196 #endif
8197 #ifdef __cplusplus
8198 }
8199 #endif
8200
8201 int
8202 main ()
8203 {
8204 return f != connect;
8205   ;
8206   return 0;
8207 }
8208 _ACEOF
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8211   (eval $ac_link) 2>&5
8212   ac_status=$?
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); } &&
8215          { ac_try='test -s conftest$ac_exeext'
8216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217   (eval $ac_try) 2>&5
8218   ac_status=$?
8219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); }; }; then
8221   ac_cv_func_connect=yes
8222 else
8223   echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8225
8226 ac_cv_func_connect=no
8227 fi
8228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8229 fi
8230 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8231 echo "${ECHO_T}$ac_cv_func_connect" >&6
8232
8233     if test $ac_cv_func_connect = no; then
8234       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8235 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8236 if test "${ac_cv_lib_socket_connect+set}" = set; then
8237   echo $ECHO_N "(cached) $ECHO_C" >&6
8238 else
8239   ac_check_lib_save_LIBS=$LIBS
8240 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8241 cat >conftest.$ac_ext <<_ACEOF
8242 #line $LINENO "configure"
8243 /* confdefs.h.  */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h.  */
8248
8249 /* Override any gcc2 internal prototype to avoid an error.  */
8250 #ifdef __cplusplus
8251 extern "C"
8252 #endif
8253 /* We use char because int might match the return type of a gcc2
8254    builtin and then its argument prototype would still apply.  */
8255 char connect ();
8256 int
8257 main ()
8258 {
8259 connect ();
8260   ;
8261   return 0;
8262 }
8263 _ACEOF
8264 rm -f conftest.$ac_objext conftest$ac_exeext
8265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266   (eval $ac_link) 2>&5
8267   ac_status=$?
8268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269   (exit $ac_status); } &&
8270          { ac_try='test -s conftest$ac_exeext'
8271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272   (eval $ac_try) 2>&5
8273   ac_status=$?
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); }; }; then
8276   ac_cv_lib_socket_connect=yes
8277 else
8278   echo "$as_me: failed program was:" >&5
8279 sed 's/^/| /' conftest.$ac_ext >&5
8280
8281 ac_cv_lib_socket_connect=no
8282 fi
8283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8284 LIBS=$ac_check_lib_save_LIBS
8285 fi
8286 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8287 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8288 if test $ac_cv_lib_socket_connect = yes; then
8289   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8290 fi
8291
8292     fi
8293
8294     # Guillermo Gomez says -lposix is necessary on A/UX.
8295     echo "$as_me:$LINENO: checking for remove" >&5
8296 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8297 if test "${ac_cv_func_remove+set}" = set; then
8298   echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300   cat >conftest.$ac_ext <<_ACEOF
8301 #line $LINENO "configure"
8302 /* confdefs.h.  */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h.  */
8307 /* System header to define __stub macros and hopefully few prototypes,
8308     which can conflict with char remove (); below.
8309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8310     <limits.h> exists even on freestanding compilers.  */
8311 #ifdef __STDC__
8312 # include <limits.h>
8313 #else
8314 # include <assert.h>
8315 #endif
8316 /* Override any gcc2 internal prototype to avoid an error.  */
8317 #ifdef __cplusplus
8318 extern "C"
8319 {
8320 #endif
8321 /* We use char because int might match the return type of a gcc2
8322    builtin and then its argument prototype would still apply.  */
8323 char remove ();
8324 /* The GNU C library defines this for functions which it implements
8325     to always fail with ENOSYS.  Some functions are actually named
8326     something starting with __ and the normal name is an alias.  */
8327 #if defined (__stub_remove) || defined (__stub___remove)
8328 choke me
8329 #else
8330 char (*f) () = remove;
8331 #endif
8332 #ifdef __cplusplus
8333 }
8334 #endif
8335
8336 int
8337 main ()
8338 {
8339 return f != remove;
8340   ;
8341   return 0;
8342 }
8343 _ACEOF
8344 rm -f conftest.$ac_objext conftest$ac_exeext
8345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8346   (eval $ac_link) 2>&5
8347   ac_status=$?
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); } &&
8350          { ac_try='test -s conftest$ac_exeext'
8351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352   (eval $ac_try) 2>&5
8353   ac_status=$?
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); }; }; then
8356   ac_cv_func_remove=yes
8357 else
8358   echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8360
8361 ac_cv_func_remove=no
8362 fi
8363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8364 fi
8365 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8366 echo "${ECHO_T}$ac_cv_func_remove" >&6
8367
8368     if test $ac_cv_func_remove = no; then
8369       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8370 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8371 if test "${ac_cv_lib_posix_remove+set}" = set; then
8372   echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374   ac_check_lib_save_LIBS=$LIBS
8375 LIBS="-lposix  $LIBS"
8376 cat >conftest.$ac_ext <<_ACEOF
8377 #line $LINENO "configure"
8378 /* confdefs.h.  */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h.  */
8383
8384 /* Override any gcc2 internal prototype to avoid an error.  */
8385 #ifdef __cplusplus
8386 extern "C"
8387 #endif
8388 /* We use char because int might match the return type of a gcc2
8389    builtin and then its argument prototype would still apply.  */
8390 char remove ();
8391 int
8392 main ()
8393 {
8394 remove ();
8395   ;
8396   return 0;
8397 }
8398 _ACEOF
8399 rm -f conftest.$ac_objext conftest$ac_exeext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401   (eval $ac_link) 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); } &&
8405          { ac_try='test -s conftest$ac_exeext'
8406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407   (eval $ac_try) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; }; then
8411   ac_cv_lib_posix_remove=yes
8412 else
8413   echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416 ac_cv_lib_posix_remove=no
8417 fi
8418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8419 LIBS=$ac_check_lib_save_LIBS
8420 fi
8421 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8422 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8423 if test $ac_cv_lib_posix_remove = yes; then
8424   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8425 fi
8426
8427     fi
8428
8429     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8430     echo "$as_me:$LINENO: checking for shmat" >&5
8431 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8432 if test "${ac_cv_func_shmat+set}" = set; then
8433   echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435   cat >conftest.$ac_ext <<_ACEOF
8436 #line $LINENO "configure"
8437 /* confdefs.h.  */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h.  */
8442 /* System header to define __stub macros and hopefully few prototypes,
8443     which can conflict with char shmat (); below.
8444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8445     <limits.h> exists even on freestanding compilers.  */
8446 #ifdef __STDC__
8447 # include <limits.h>
8448 #else
8449 # include <assert.h>
8450 #endif
8451 /* Override any gcc2 internal prototype to avoid an error.  */
8452 #ifdef __cplusplus
8453 extern "C"
8454 {
8455 #endif
8456 /* We use char because int might match the return type of a gcc2
8457    builtin and then its argument prototype would still apply.  */
8458 char shmat ();
8459 /* The GNU C library defines this for functions which it implements
8460     to always fail with ENOSYS.  Some functions are actually named
8461     something starting with __ and the normal name is an alias.  */
8462 #if defined (__stub_shmat) || defined (__stub___shmat)
8463 choke me
8464 #else
8465 char (*f) () = shmat;
8466 #endif
8467 #ifdef __cplusplus
8468 }
8469 #endif
8470
8471 int
8472 main ()
8473 {
8474 return f != shmat;
8475   ;
8476   return 0;
8477 }
8478 _ACEOF
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481   (eval $ac_link) 2>&5
8482   ac_status=$?
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); } &&
8485          { ac_try='test -s conftest$ac_exeext'
8486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487   (eval $ac_try) 2>&5
8488   ac_status=$?
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); }; }; then
8491   ac_cv_func_shmat=yes
8492 else
8493   echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8495
8496 ac_cv_func_shmat=no
8497 fi
8498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8499 fi
8500 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8501 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8502
8503     if test $ac_cv_func_shmat = no; then
8504       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8505 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8506 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8507   echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509   ac_check_lib_save_LIBS=$LIBS
8510 LIBS="-lipc  $LIBS"
8511 cat >conftest.$ac_ext <<_ACEOF
8512 #line $LINENO "configure"
8513 /* confdefs.h.  */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h.  */
8518
8519 /* Override any gcc2 internal prototype to avoid an error.  */
8520 #ifdef __cplusplus
8521 extern "C"
8522 #endif
8523 /* We use char because int might match the return type of a gcc2
8524    builtin and then its argument prototype would still apply.  */
8525 char shmat ();
8526 int
8527 main ()
8528 {
8529 shmat ();
8530   ;
8531   return 0;
8532 }
8533 _ACEOF
8534 rm -f conftest.$ac_objext conftest$ac_exeext
8535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8536   (eval $ac_link) 2>&5
8537   ac_status=$?
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); } &&
8540          { ac_try='test -s conftest$ac_exeext'
8541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542   (eval $ac_try) 2>&5
8543   ac_status=$?
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); }; }; then
8546   ac_cv_lib_ipc_shmat=yes
8547 else
8548   echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8550
8551 ac_cv_lib_ipc_shmat=no
8552 fi
8553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8554 LIBS=$ac_check_lib_save_LIBS
8555 fi
8556 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8557 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8558 if test $ac_cv_lib_ipc_shmat = yes; then
8559   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8560 fi
8561
8562     fi
8563   fi
8564
8565   # Check for libraries that X11R6 Xt/Xaw programs need.
8566   ac_save_LDFLAGS=$LDFLAGS
8567   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8568   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8569   # check for ICE first), but we must link in the order -lSM -lICE or
8570   # we get undefined symbols.  So assume we have SM if we have ICE.
8571   # These have to be linked with before -lX11, unlike the other
8572   # libraries we check for below, so use a different variable.
8573   # John Interrante, Karl Berry
8574   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8575 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8576 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8577   echo $ECHO_N "(cached) $ECHO_C" >&6
8578 else
8579   ac_check_lib_save_LIBS=$LIBS
8580 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8581 cat >conftest.$ac_ext <<_ACEOF
8582 #line $LINENO "configure"
8583 /* confdefs.h.  */
8584 _ACEOF
8585 cat confdefs.h >>conftest.$ac_ext
8586 cat >>conftest.$ac_ext <<_ACEOF
8587 /* end confdefs.h.  */
8588
8589 /* Override any gcc2 internal prototype to avoid an error.  */
8590 #ifdef __cplusplus
8591 extern "C"
8592 #endif
8593 /* We use char because int might match the return type of a gcc2
8594    builtin and then its argument prototype would still apply.  */
8595 char IceConnectionNumber ();
8596 int
8597 main ()
8598 {
8599 IceConnectionNumber ();
8600   ;
8601   return 0;
8602 }
8603 _ACEOF
8604 rm -f conftest.$ac_objext conftest$ac_exeext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8606   (eval $ac_link) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } &&
8610          { ac_try='test -s conftest$ac_exeext'
8611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612   (eval $ac_try) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }; }; then
8616   ac_cv_lib_ICE_IceConnectionNumber=yes
8617 else
8618   echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8620
8621 ac_cv_lib_ICE_IceConnectionNumber=no
8622 fi
8623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8624 LIBS=$ac_check_lib_save_LIBS
8625 fi
8626 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8627 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8628 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8629   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8630 fi
8631
8632   LDFLAGS=$ac_save_LDFLAGS
8633
8634 fi
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659 for ac_header in \
8660         assert.h \
8661         fcntl.h \
8662         grp.h \
8663         pwd.h \
8664         libc.h \
8665         limits.h \
8666         stdarg.h \
8667         stdlib.h \
8668         stdint.h \
8669         string.h \
8670         termios.h \
8671         unistd.h \
8672         sys/byteorder.h \
8673         sys/ioctl.h \
8674         sys/select.h \
8675         sys/sockio.h \
8676         sys/time.h \
8677         sys/socket.h \
8678         arpa/nameser.h \
8679         resolv.h \
8680         mtio.h \
8681         sys/mtio.h \
8682
8683 do
8684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8686   echo "$as_me:$LINENO: checking for $ac_header" >&5
8687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8689   echo $ECHO_N "(cached) $ECHO_C" >&6
8690 fi
8691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8693 else
8694   # Is the header compilable?
8695 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8697 cat >conftest.$ac_ext <<_ACEOF
8698 #line $LINENO "configure"
8699 /* confdefs.h.  */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h.  */
8704 $ac_includes_default
8705 #include <$ac_header>
8706 _ACEOF
8707 rm -f conftest.$ac_objext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8709   (eval $ac_compile) 2>&5
8710   ac_status=$?
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); } &&
8713          { ac_try='test -s conftest.$ac_objext'
8714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715   (eval $ac_try) 2>&5
8716   ac_status=$?
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); }; }; then
8719   ac_header_compiler=yes
8720 else
8721   echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8723
8724 ac_header_compiler=no
8725 fi
8726 rm -f conftest.$ac_objext conftest.$ac_ext
8727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8728 echo "${ECHO_T}$ac_header_compiler" >&6
8729
8730 # Is the header present?
8731 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8733 cat >conftest.$ac_ext <<_ACEOF
8734 #line $LINENO "configure"
8735 /* confdefs.h.  */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h.  */
8740 #include <$ac_header>
8741 _ACEOF
8742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8743   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8744   ac_status=$?
8745   grep -v '^ *+' conftest.er1 >conftest.err
8746   rm -f conftest.er1
8747   cat conftest.err >&5
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); } >/dev/null; then
8750   if test -s conftest.err; then
8751     ac_cpp_err=$ac_c_preproc_warn_flag
8752   else
8753     ac_cpp_err=
8754   fi
8755 else
8756   ac_cpp_err=yes
8757 fi
8758 if test -z "$ac_cpp_err"; then
8759   ac_header_preproc=yes
8760 else
8761   echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.$ac_ext >&5
8763
8764   ac_header_preproc=no
8765 fi
8766 rm -f conftest.err conftest.$ac_ext
8767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8768 echo "${ECHO_T}$ac_header_preproc" >&6
8769
8770 # So?  What about this header?
8771 case $ac_header_compiler:$ac_header_preproc in
8772   yes:no )
8773     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8777     (
8778       cat <<\_ASBOX
8779 ## ------------------------------------ ##
8780 ## Report this to bug-autoconf@gnu.org. ##
8781 ## ------------------------------------ ##
8782 _ASBOX
8783     ) |
8784       sed "s/^/$as_me: WARNING:     /" >&2
8785     ;;
8786   no:yes )
8787     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8789     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8793     (
8794       cat <<\_ASBOX
8795 ## ------------------------------------ ##
8796 ## Report this to bug-autoconf@gnu.org. ##
8797 ## ------------------------------------ ##
8798 _ASBOX
8799     ) |
8800       sed "s/^/$as_me: WARNING:     /" >&2
8801     ;;
8802 esac
8803 echo "$as_me:$LINENO: checking for $ac_header" >&5
8804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8806   echo $ECHO_N "(cached) $ECHO_C" >&6
8807 else
8808   eval "$as_ac_Header=$ac_header_preproc"
8809 fi
8810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8812
8813 fi
8814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8815   cat >>confdefs.h <<_ACEOF
8816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8817 _ACEOF
8818
8819 fi
8820
8821 done
8822
8823 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8824 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8825 if test "${ac_cv_header_stdc+set}" = set; then
8826   echo $ECHO_N "(cached) $ECHO_C" >&6
8827 else
8828   cat >conftest.$ac_ext <<_ACEOF
8829 #line $LINENO "configure"
8830 /* confdefs.h.  */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h.  */
8835 #include <stdlib.h>
8836 #include <stdarg.h>
8837 #include <string.h>
8838 #include <float.h>
8839
8840 int
8841 main ()
8842 {
8843
8844   ;
8845   return 0;
8846 }
8847 _ACEOF
8848 rm -f conftest.$ac_objext
8849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8850   (eval $ac_compile) 2>&5
8851   ac_status=$?
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); } &&
8854          { ac_try='test -s conftest.$ac_objext'
8855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856   (eval $ac_try) 2>&5
8857   ac_status=$?
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); }; }; then
8860   ac_cv_header_stdc=yes
8861 else
8862   echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8864
8865 ac_cv_header_stdc=no
8866 fi
8867 rm -f conftest.$ac_objext conftest.$ac_ext
8868
8869 if test $ac_cv_header_stdc = yes; then
8870   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8871   cat >conftest.$ac_ext <<_ACEOF
8872 #line $LINENO "configure"
8873 /* confdefs.h.  */
8874 _ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h.  */
8878 #include <string.h>
8879
8880 _ACEOF
8881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8882   $EGREP "memchr" >/dev/null 2>&1; then
8883   :
8884 else
8885   ac_cv_header_stdc=no
8886 fi
8887 rm -f conftest*
8888
8889 fi
8890
8891 if test $ac_cv_header_stdc = yes; then
8892   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8893   cat >conftest.$ac_ext <<_ACEOF
8894 #line $LINENO "configure"
8895 /* confdefs.h.  */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h.  */
8900 #include <stdlib.h>
8901
8902 _ACEOF
8903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8904   $EGREP "free" >/dev/null 2>&1; then
8905   :
8906 else
8907   ac_cv_header_stdc=no
8908 fi
8909 rm -f conftest*
8910
8911 fi
8912
8913 if test $ac_cv_header_stdc = yes; then
8914   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8915   if test "$cross_compiling" = yes; then
8916   :
8917 else
8918   cat >conftest.$ac_ext <<_ACEOF
8919 #line $LINENO "configure"
8920 /* confdefs.h.  */
8921 _ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h.  */
8925 #include <ctype.h>
8926 #if ((' ' & 0x0FF) == 0x020)
8927 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8928 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8929 #else
8930 # define ISLOWER(c) \
8931                    (('a' <= (c) && (c) <= 'i') \
8932                      || ('j' <= (c) && (c) <= 'r') \
8933                      || ('s' <= (c) && (c) <= 'z'))
8934 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8935 #endif
8936
8937 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8938 int
8939 main ()
8940 {
8941   int i;
8942   for (i = 0; i < 256; i++)
8943     if (XOR (islower (i), ISLOWER (i))
8944         || toupper (i) != TOUPPER (i))
8945       exit(2);
8946   exit (0);
8947 }
8948 _ACEOF
8949 rm -f conftest$ac_exeext
8950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8951   (eval $ac_link) 2>&5
8952   ac_status=$?
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956   (eval $ac_try) 2>&5
8957   ac_status=$?
8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959   (exit $ac_status); }; }; then
8960   :
8961 else
8962   echo "$as_me: program exited with status $ac_status" >&5
8963 echo "$as_me: failed program was:" >&5
8964 sed 's/^/| /' conftest.$ac_ext >&5
8965
8966 ( exit $ac_status )
8967 ac_cv_header_stdc=no
8968 fi
8969 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8970 fi
8971 fi
8972 fi
8973 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8974 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8975 if test $ac_cv_header_stdc = yes; then
8976
8977 cat >>confdefs.h <<\_ACEOF
8978 #define STDC_HEADERS 1
8979 _ACEOF
8980
8981 fi
8982
8983 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8984 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
8985 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8986   echo $ECHO_N "(cached) $ECHO_C" >&6
8987 else
8988   cat >conftest.$ac_ext <<_ACEOF
8989 #line $LINENO "configure"
8990 /* confdefs.h.  */
8991 _ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h.  */
8995 #include <sys/types.h>
8996 int
8997 main ()
8998 {
8999 return makedev(0, 0);
9000   ;
9001   return 0;
9002 }
9003 _ACEOF
9004 rm -f conftest.$ac_objext conftest$ac_exeext
9005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9006   (eval $ac_link) 2>&5
9007   ac_status=$?
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); } &&
9010          { ac_try='test -s conftest$ac_exeext'
9011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012   (eval $ac_try) 2>&5
9013   ac_status=$?
9014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015   (exit $ac_status); }; }; then
9016   ac_cv_header_sys_types_h_makedev=yes
9017 else
9018   echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9020
9021 ac_cv_header_sys_types_h_makedev=no
9022 fi
9023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9024
9025 fi
9026 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9027 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9028
9029 if test $ac_cv_header_sys_types_h_makedev = no; then
9030 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9031   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9032 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9033 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9034   echo $ECHO_N "(cached) $ECHO_C" >&6
9035 fi
9036 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9037 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9038 else
9039   # Is the header compilable?
9040 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9041 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
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 $ac_includes_default
9050 #include <sys/mkdev.h>
9051 _ACEOF
9052 rm -f conftest.$ac_objext
9053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9054   (eval $ac_compile) 2>&5
9055   ac_status=$?
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); } &&
9058          { ac_try='test -s conftest.$ac_objext'
9059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060   (eval $ac_try) 2>&5
9061   ac_status=$?
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); }; }; then
9064   ac_header_compiler=yes
9065 else
9066   echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9068
9069 ac_header_compiler=no
9070 fi
9071 rm -f conftest.$ac_objext conftest.$ac_ext
9072 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9073 echo "${ECHO_T}$ac_header_compiler" >&6
9074
9075 # Is the header present?
9076 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9077 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9078 cat >conftest.$ac_ext <<_ACEOF
9079 #line $LINENO "configure"
9080 /* confdefs.h.  */
9081 _ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h.  */
9085 #include <sys/mkdev.h>
9086 _ACEOF
9087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9088   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9089   ac_status=$?
9090   grep -v '^ *+' conftest.er1 >conftest.err
9091   rm -f conftest.er1
9092   cat conftest.err >&5
9093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094   (exit $ac_status); } >/dev/null; then
9095   if test -s conftest.err; then
9096     ac_cpp_err=$ac_c_preproc_warn_flag
9097   else
9098     ac_cpp_err=
9099   fi
9100 else
9101   ac_cpp_err=yes
9102 fi
9103 if test -z "$ac_cpp_err"; then
9104   ac_header_preproc=yes
9105 else
9106   echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9108
9109   ac_header_preproc=no
9110 fi
9111 rm -f conftest.err conftest.$ac_ext
9112 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9113 echo "${ECHO_T}$ac_header_preproc" >&6
9114
9115 # So?  What about this header?
9116 case $ac_header_compiler:$ac_header_preproc in
9117   yes:no )
9118     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9119 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9120     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9121 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9122     (
9123       cat <<\_ASBOX
9124 ## ------------------------------------ ##
9125 ## Report this to bug-autoconf@gnu.org. ##
9126 ## ------------------------------------ ##
9127 _ASBOX
9128     ) |
9129       sed "s/^/$as_me: WARNING:     /" >&2
9130     ;;
9131   no:yes )
9132     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9133 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9134     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9135 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9136     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9137 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9138     (
9139       cat <<\_ASBOX
9140 ## ------------------------------------ ##
9141 ## Report this to bug-autoconf@gnu.org. ##
9142 ## ------------------------------------ ##
9143 _ASBOX
9144     ) |
9145       sed "s/^/$as_me: WARNING:     /" >&2
9146     ;;
9147 esac
9148 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9149 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9150 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9151   echo $ECHO_N "(cached) $ECHO_C" >&6
9152 else
9153   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9154 fi
9155 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9156 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9157
9158 fi
9159 if test $ac_cv_header_sys_mkdev_h = yes; then
9160
9161 cat >>confdefs.h <<\_ACEOF
9162 #define MAJOR_IN_MKDEV 1
9163 _ACEOF
9164
9165 fi
9166
9167
9168
9169   if test $ac_cv_header_sys_mkdev_h = no; then
9170     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9171   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9172 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9173 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9174   echo $ECHO_N "(cached) $ECHO_C" >&6
9175 fi
9176 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9177 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9178 else
9179   # Is the header compilable?
9180 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9181 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9182 cat >conftest.$ac_ext <<_ACEOF
9183 #line $LINENO "configure"
9184 /* confdefs.h.  */
9185 _ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h.  */
9189 $ac_includes_default
9190 #include <sys/sysmacros.h>
9191 _ACEOF
9192 rm -f conftest.$ac_objext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9194   (eval $ac_compile) 2>&5
9195   ac_status=$?
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); } &&
9198          { ac_try='test -s conftest.$ac_objext'
9199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200   (eval $ac_try) 2>&5
9201   ac_status=$?
9202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203   (exit $ac_status); }; }; then
9204   ac_header_compiler=yes
9205 else
9206   echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9208
9209 ac_header_compiler=no
9210 fi
9211 rm -f conftest.$ac_objext conftest.$ac_ext
9212 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9213 echo "${ECHO_T}$ac_header_compiler" >&6
9214
9215 # Is the header present?
9216 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9217 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9218 cat >conftest.$ac_ext <<_ACEOF
9219 #line $LINENO "configure"
9220 /* confdefs.h.  */
9221 _ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h.  */
9225 #include <sys/sysmacros.h>
9226 _ACEOF
9227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9229   ac_status=$?
9230   grep -v '^ *+' conftest.er1 >conftest.err
9231   rm -f conftest.er1
9232   cat conftest.err >&5
9233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234   (exit $ac_status); } >/dev/null; then
9235   if test -s conftest.err; then
9236     ac_cpp_err=$ac_c_preproc_warn_flag
9237   else
9238     ac_cpp_err=
9239   fi
9240 else
9241   ac_cpp_err=yes
9242 fi
9243 if test -z "$ac_cpp_err"; then
9244   ac_header_preproc=yes
9245 else
9246   echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9248
9249   ac_header_preproc=no
9250 fi
9251 rm -f conftest.err conftest.$ac_ext
9252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9253 echo "${ECHO_T}$ac_header_preproc" >&6
9254
9255 # So?  What about this header?
9256 case $ac_header_compiler:$ac_header_preproc in
9257   yes:no )
9258     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9259 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9260     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9261 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9262     (
9263       cat <<\_ASBOX
9264 ## ------------------------------------ ##
9265 ## Report this to bug-autoconf@gnu.org. ##
9266 ## ------------------------------------ ##
9267 _ASBOX
9268     ) |
9269       sed "s/^/$as_me: WARNING:     /" >&2
9270     ;;
9271   no:yes )
9272     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9273 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9274     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9275 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9276     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9277 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9278     (
9279       cat <<\_ASBOX
9280 ## ------------------------------------ ##
9281 ## Report this to bug-autoconf@gnu.org. ##
9282 ## ------------------------------------ ##
9283 _ASBOX
9284     ) |
9285       sed "s/^/$as_me: WARNING:     /" >&2
9286     ;;
9287 esac
9288 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9289 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9290 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9291   echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9294 fi
9295 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9296 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9297
9298 fi
9299 if test $ac_cv_header_sys_sysmacros_h = yes; then
9300
9301 cat >>confdefs.h <<\_ACEOF
9302 #define MAJOR_IN_SYSMACROS 1
9303 _ACEOF
9304
9305 fi
9306
9307
9308   fi
9309 fi
9310
9311
9312
9313
9314
9315
9316 ac_header_dirent=no
9317 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9318   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9319 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9320 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9322   echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324   cat >conftest.$ac_ext <<_ACEOF
9325 #line $LINENO "configure"
9326 /* confdefs.h.  */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h.  */
9331 #include <sys/types.h>
9332 #include <$ac_hdr>
9333
9334 int
9335 main ()
9336 {
9337 if ((DIR *) 0)
9338 return 0;
9339   ;
9340   return 0;
9341 }
9342 _ACEOF
9343 rm -f conftest.$ac_objext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345   (eval $ac_compile) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); } &&
9349          { ac_try='test -s conftest.$ac_objext'
9350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351   (eval $ac_try) 2>&5
9352   ac_status=$?
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); }; }; then
9355   eval "$as_ac_Header=yes"
9356 else
9357   echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9359
9360 eval "$as_ac_Header=no"
9361 fi
9362 rm -f conftest.$ac_objext conftest.$ac_ext
9363 fi
9364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9367   cat >>confdefs.h <<_ACEOF
9368 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9369 _ACEOF
9370
9371 ac_header_dirent=$ac_hdr; break
9372 fi
9373
9374 done
9375 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9376 if test $ac_header_dirent = dirent.h; then
9377   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9378 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9379 if test "${ac_cv_search_opendir+set}" = set; then
9380   echo $ECHO_N "(cached) $ECHO_C" >&6
9381 else
9382   ac_func_search_save_LIBS=$LIBS
9383 ac_cv_search_opendir=no
9384 cat >conftest.$ac_ext <<_ACEOF
9385 #line $LINENO "configure"
9386 /* confdefs.h.  */
9387 _ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h.  */
9391
9392 /* Override any gcc2 internal prototype to avoid an error.  */
9393 #ifdef __cplusplus
9394 extern "C"
9395 #endif
9396 /* We use char because int might match the return type of a gcc2
9397    builtin and then its argument prototype would still apply.  */
9398 char opendir ();
9399 int
9400 main ()
9401 {
9402 opendir ();
9403   ;
9404   return 0;
9405 }
9406 _ACEOF
9407 rm -f conftest.$ac_objext conftest$ac_exeext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409   (eval $ac_link) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); } &&
9413          { ac_try='test -s conftest$ac_exeext'
9414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415   (eval $ac_try) 2>&5
9416   ac_status=$?
9417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418   (exit $ac_status); }; }; then
9419   ac_cv_search_opendir="none required"
9420 else
9421   echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9423
9424 fi
9425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9426 if test "$ac_cv_search_opendir" = no; then
9427   for ac_lib in dir; do
9428     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9429     cat >conftest.$ac_ext <<_ACEOF
9430 #line $LINENO "configure"
9431 /* confdefs.h.  */
9432 _ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h.  */
9436
9437 /* Override any gcc2 internal prototype to avoid an error.  */
9438 #ifdef __cplusplus
9439 extern "C"
9440 #endif
9441 /* We use char because int might match the return type of a gcc2
9442    builtin and then its argument prototype would still apply.  */
9443 char opendir ();
9444 int
9445 main ()
9446 {
9447 opendir ();
9448   ;
9449   return 0;
9450 }
9451 _ACEOF
9452 rm -f conftest.$ac_objext conftest$ac_exeext
9453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9454   (eval $ac_link) 2>&5
9455   ac_status=$?
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); } &&
9458          { ac_try='test -s conftest$ac_exeext'
9459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460   (eval $ac_try) 2>&5
9461   ac_status=$?
9462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); }; }; then
9464   ac_cv_search_opendir="-l$ac_lib"
9465 break
9466 else
9467   echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9469
9470 fi
9471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9472   done
9473 fi
9474 LIBS=$ac_func_search_save_LIBS
9475 fi
9476 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9477 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9478 if test "$ac_cv_search_opendir" != no; then
9479   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9480
9481 fi
9482
9483 else
9484   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9485 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9486 if test "${ac_cv_search_opendir+set}" = set; then
9487   echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489   ac_func_search_save_LIBS=$LIBS
9490 ac_cv_search_opendir=no
9491 cat >conftest.$ac_ext <<_ACEOF
9492 #line $LINENO "configure"
9493 /* confdefs.h.  */
9494 _ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h.  */
9498
9499 /* Override any gcc2 internal prototype to avoid an error.  */
9500 #ifdef __cplusplus
9501 extern "C"
9502 #endif
9503 /* We use char because int might match the return type of a gcc2
9504    builtin and then its argument prototype would still apply.  */
9505 char opendir ();
9506 int
9507 main ()
9508 {
9509 opendir ();
9510   ;
9511   return 0;
9512 }
9513 _ACEOF
9514 rm -f conftest.$ac_objext conftest$ac_exeext
9515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9516   (eval $ac_link) 2>&5
9517   ac_status=$?
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); } &&
9520          { ac_try='test -s conftest$ac_exeext'
9521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522   (eval $ac_try) 2>&5
9523   ac_status=$?
9524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525   (exit $ac_status); }; }; then
9526   ac_cv_search_opendir="none required"
9527 else
9528   echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9530
9531 fi
9532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9533 if test "$ac_cv_search_opendir" = no; then
9534   for ac_lib in x; do
9535     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9536     cat >conftest.$ac_ext <<_ACEOF
9537 #line $LINENO "configure"
9538 /* confdefs.h.  */
9539 _ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h.  */
9543
9544 /* Override any gcc2 internal prototype to avoid an error.  */
9545 #ifdef __cplusplus
9546 extern "C"
9547 #endif
9548 /* We use char because int might match the return type of a gcc2
9549    builtin and then its argument prototype would still apply.  */
9550 char opendir ();
9551 int
9552 main ()
9553 {
9554 opendir ();
9555   ;
9556   return 0;
9557 }
9558 _ACEOF
9559 rm -f conftest.$ac_objext conftest$ac_exeext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561   (eval $ac_link) 2>&5
9562   ac_status=$?
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); } &&
9565          { ac_try='test -s conftest$ac_exeext'
9566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567   (eval $ac_try) 2>&5
9568   ac_status=$?
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); }; }; then
9571   ac_cv_search_opendir="-l$ac_lib"
9572 break
9573 else
9574   echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9576
9577 fi
9578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9579   done
9580 fi
9581 LIBS=$ac_func_search_save_LIBS
9582 fi
9583 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9584 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9585 if test "$ac_cv_search_opendir" != no; then
9586   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9587
9588 fi
9589
9590 fi
9591
9592 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9593 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9594 if test "${ac_cv_header_stat_broken+set}" = set; then
9595   echo $ECHO_N "(cached) $ECHO_C" >&6
9596 else
9597   cat >conftest.$ac_ext <<_ACEOF
9598 #line $LINENO "configure"
9599 /* confdefs.h.  */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h.  */
9604 #include <sys/types.h>
9605 #include <sys/stat.h>
9606
9607 #if defined(S_ISBLK) && defined(S_IFDIR)
9608 # if S_ISBLK (S_IFDIR)
9609 You lose.
9610 # endif
9611 #endif
9612
9613 #if defined(S_ISBLK) && defined(S_IFCHR)
9614 # if S_ISBLK (S_IFCHR)
9615 You lose.
9616 # endif
9617 #endif
9618
9619 #if defined(S_ISLNK) && defined(S_IFREG)
9620 # if S_ISLNK (S_IFREG)
9621 You lose.
9622 # endif
9623 #endif
9624
9625 #if defined(S_ISSOCK) && defined(S_IFREG)
9626 # if S_ISSOCK (S_IFREG)
9627 You lose.
9628 # endif
9629 #endif
9630
9631 _ACEOF
9632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9633   $EGREP "You lose" >/dev/null 2>&1; then
9634   ac_cv_header_stat_broken=yes
9635 else
9636   ac_cv_header_stat_broken=no
9637 fi
9638 rm -f conftest*
9639
9640 fi
9641 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9642 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9643 if test $ac_cv_header_stat_broken = yes; then
9644
9645 cat >>confdefs.h <<\_ACEOF
9646 #define STAT_MACROS_BROKEN 1
9647 _ACEOF
9648
9649 fi
9650
9651 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9652 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9653 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9654   echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656   cat >conftest.$ac_ext <<_ACEOF
9657 #line $LINENO "configure"
9658 /* confdefs.h.  */
9659 _ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h.  */
9663 #include <sys/types.h>
9664 #include <sys/wait.h>
9665 #ifndef WEXITSTATUS
9666 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9667 #endif
9668 #ifndef WIFEXITED
9669 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9670 #endif
9671
9672 int
9673 main ()
9674 {
9675   int s;
9676   wait (&s);
9677   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9678   ;
9679   return 0;
9680 }
9681 _ACEOF
9682 rm -f conftest.$ac_objext
9683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9684   (eval $ac_compile) 2>&5
9685   ac_status=$?
9686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687   (exit $ac_status); } &&
9688          { ac_try='test -s conftest.$ac_objext'
9689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690   (eval $ac_try) 2>&5
9691   ac_status=$?
9692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693   (exit $ac_status); }; }; then
9694   ac_cv_header_sys_wait_h=yes
9695 else
9696   echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9698
9699 ac_cv_header_sys_wait_h=no
9700 fi
9701 rm -f conftest.$ac_objext conftest.$ac_ext
9702 fi
9703 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9704 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9705 if test $ac_cv_header_sys_wait_h = yes; then
9706
9707 cat >>confdefs.h <<\_ACEOF
9708 #define HAVE_SYS_WAIT_H 1
9709 _ACEOF
9710
9711 fi
9712
9713 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9714 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9715 if test "${ac_cv_header_time+set}" = set; then
9716   echo $ECHO_N "(cached) $ECHO_C" >&6
9717 else
9718   cat >conftest.$ac_ext <<_ACEOF
9719 #line $LINENO "configure"
9720 /* confdefs.h.  */
9721 _ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h.  */
9725 #include <sys/types.h>
9726 #include <sys/time.h>
9727 #include <time.h>
9728
9729 int
9730 main ()
9731 {
9732 if ((struct tm *) 0)
9733 return 0;
9734   ;
9735   return 0;
9736 }
9737 _ACEOF
9738 rm -f conftest.$ac_objext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9740   (eval $ac_compile) 2>&5
9741   ac_status=$?
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); } &&
9744          { ac_try='test -s conftest.$ac_objext'
9745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746   (eval $ac_try) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); }; }; then
9750   ac_cv_header_time=yes
9751 else
9752   echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9754
9755 ac_cv_header_time=no
9756 fi
9757 rm -f conftest.$ac_objext conftest.$ac_ext
9758 fi
9759 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9760 echo "${ECHO_T}$ac_cv_header_time" >&6
9761 if test $ac_cv_header_time = yes; then
9762
9763 cat >>confdefs.h <<\_ACEOF
9764 #define TIME_WITH_SYS_TIME 1
9765 _ACEOF
9766
9767 fi
9768
9769
9770 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9771 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
9772 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9773   echo $ECHO_N "(cached) $ECHO_C" >&6
9774 else
9775   cat >conftest.$ac_ext <<_ACEOF
9776 #line $LINENO "configure"
9777 /* confdefs.h.  */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h.  */
9782 $ac_includes_default
9783 int
9784 main ()
9785 {
9786 static struct stat ac_aggr;
9787 if (ac_aggr.st_blksize)
9788 return 0;
9789   ;
9790   return 0;
9791 }
9792 _ACEOF
9793 rm -f conftest.$ac_objext
9794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9795   (eval $ac_compile) 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); } &&
9799          { ac_try='test -s conftest.$ac_objext'
9800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801   (eval $ac_try) 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); }; }; then
9805   ac_cv_member_struct_stat_st_blksize=yes
9806 else
9807   echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9809
9810 cat >conftest.$ac_ext <<_ACEOF
9811 #line $LINENO "configure"
9812 /* confdefs.h.  */
9813 _ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h.  */
9817 $ac_includes_default
9818 int
9819 main ()
9820 {
9821 static struct stat ac_aggr;
9822 if (sizeof ac_aggr.st_blksize)
9823 return 0;
9824   ;
9825   return 0;
9826 }
9827 _ACEOF
9828 rm -f conftest.$ac_objext
9829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9830   (eval $ac_compile) 2>&5
9831   ac_status=$?
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); } &&
9834          { ac_try='test -s conftest.$ac_objext'
9835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836   (eval $ac_try) 2>&5
9837   ac_status=$?
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); }; }; then
9840   ac_cv_member_struct_stat_st_blksize=yes
9841 else
9842   echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9844
9845 ac_cv_member_struct_stat_st_blksize=no
9846 fi
9847 rm -f conftest.$ac_objext conftest.$ac_ext
9848 fi
9849 rm -f conftest.$ac_objext conftest.$ac_ext
9850 fi
9851 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9852 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
9853 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9854
9855 cat >>confdefs.h <<_ACEOF
9856 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9857 _ACEOF
9858
9859
9860 cat >>confdefs.h <<\_ACEOF
9861 #define HAVE_ST_BLKSIZE 1
9862 _ACEOF
9863
9864 fi
9865
9866
9867 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
9868 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
9869 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
9870   echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872   cat >conftest.$ac_ext <<_ACEOF
9873 #line $LINENO "configure"
9874 /* confdefs.h.  */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h.  */
9879 $ac_includes_default
9880 int
9881 main ()
9882 {
9883 static struct stat ac_aggr;
9884 if (ac_aggr.st_blocks)
9885 return 0;
9886   ;
9887   return 0;
9888 }
9889 _ACEOF
9890 rm -f conftest.$ac_objext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9892   (eval $ac_compile) 2>&5
9893   ac_status=$?
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); } &&
9896          { ac_try='test -s conftest.$ac_objext'
9897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898   (eval $ac_try) 2>&5
9899   ac_status=$?
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); }; }; then
9902   ac_cv_member_struct_stat_st_blocks=yes
9903 else
9904   echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9906
9907 cat >conftest.$ac_ext <<_ACEOF
9908 #line $LINENO "configure"
9909 /* confdefs.h.  */
9910 _ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h.  */
9914 $ac_includes_default
9915 int
9916 main ()
9917 {
9918 static struct stat ac_aggr;
9919 if (sizeof ac_aggr.st_blocks)
9920 return 0;
9921   ;
9922   return 0;
9923 }
9924 _ACEOF
9925 rm -f conftest.$ac_objext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9927   (eval $ac_compile) 2>&5
9928   ac_status=$?
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); } &&
9931          { ac_try='test -s conftest.$ac_objext'
9932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933   (eval $ac_try) 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; }; then
9937   ac_cv_member_struct_stat_st_blocks=yes
9938 else
9939   echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942 ac_cv_member_struct_stat_st_blocks=no
9943 fi
9944 rm -f conftest.$ac_objext conftest.$ac_ext
9945 fi
9946 rm -f conftest.$ac_objext conftest.$ac_ext
9947 fi
9948 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
9949 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
9950 if test $ac_cv_member_struct_stat_st_blocks = yes; then
9951
9952 cat >>confdefs.h <<_ACEOF
9953 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9954 _ACEOF
9955
9956
9957 cat >>confdefs.h <<\_ACEOF
9958 #define HAVE_ST_BLOCKS 1
9959 _ACEOF
9960
9961 else
9962   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
9963 fi
9964
9965
9966 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9967 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9968 if test "${ac_cv_struct_tm+set}" = set; then
9969   echo $ECHO_N "(cached) $ECHO_C" >&6
9970 else
9971   cat >conftest.$ac_ext <<_ACEOF
9972 #line $LINENO "configure"
9973 /* confdefs.h.  */
9974 _ACEOF
9975 cat confdefs.h >>conftest.$ac_ext
9976 cat >>conftest.$ac_ext <<_ACEOF
9977 /* end confdefs.h.  */
9978 #include <sys/types.h>
9979 #include <time.h>
9980
9981 int
9982 main ()
9983 {
9984 struct tm *tp; tp->tm_sec;
9985   ;
9986   return 0;
9987 }
9988 _ACEOF
9989 rm -f conftest.$ac_objext
9990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9991   (eval $ac_compile) 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); } &&
9995          { ac_try='test -s conftest.$ac_objext'
9996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997   (eval $ac_try) 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; }; then
10001   ac_cv_struct_tm=time.h
10002 else
10003   echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10005
10006 ac_cv_struct_tm=sys/time.h
10007 fi
10008 rm -f conftest.$ac_objext conftest.$ac_ext
10009 fi
10010 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10011 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10012 if test $ac_cv_struct_tm = sys/time.h; then
10013
10014 cat >>confdefs.h <<\_ACEOF
10015 #define TM_IN_SYS_TIME 1
10016 _ACEOF
10017
10018 fi
10019
10020 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10021 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10022 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10023   echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025   cat >conftest.$ac_ext <<_ACEOF
10026 #line $LINENO "configure"
10027 /* confdefs.h.  */
10028 _ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h.  */
10032 #include <sys/types.h>
10033 #include <$ac_cv_struct_tm>
10034
10035
10036 int
10037 main ()
10038 {
10039 static struct tm ac_aggr;
10040 if (ac_aggr.tm_zone)
10041 return 0;
10042   ;
10043   return 0;
10044 }
10045 _ACEOF
10046 rm -f conftest.$ac_objext
10047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10048   (eval $ac_compile) 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); } &&
10052          { ac_try='test -s conftest.$ac_objext'
10053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054   (eval $ac_try) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); }; }; then
10058   ac_cv_member_struct_tm_tm_zone=yes
10059 else
10060   echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10062
10063 cat >conftest.$ac_ext <<_ACEOF
10064 #line $LINENO "configure"
10065 /* confdefs.h.  */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h.  */
10070 #include <sys/types.h>
10071 #include <$ac_cv_struct_tm>
10072
10073
10074 int
10075 main ()
10076 {
10077 static struct tm ac_aggr;
10078 if (sizeof ac_aggr.tm_zone)
10079 return 0;
10080   ;
10081   return 0;
10082 }
10083 _ACEOF
10084 rm -f conftest.$ac_objext
10085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10086   (eval $ac_compile) 2>&5
10087   ac_status=$?
10088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089   (exit $ac_status); } &&
10090          { ac_try='test -s conftest.$ac_objext'
10091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092   (eval $ac_try) 2>&5
10093   ac_status=$?
10094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095   (exit $ac_status); }; }; then
10096   ac_cv_member_struct_tm_tm_zone=yes
10097 else
10098   echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10100
10101 ac_cv_member_struct_tm_tm_zone=no
10102 fi
10103 rm -f conftest.$ac_objext conftest.$ac_ext
10104 fi
10105 rm -f conftest.$ac_objext conftest.$ac_ext
10106 fi
10107 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10108 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10109 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10110
10111 cat >>confdefs.h <<_ACEOF
10112 #define HAVE_STRUCT_TM_TM_ZONE 1
10113 _ACEOF
10114
10115
10116 fi
10117
10118 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10119
10120 cat >>confdefs.h <<\_ACEOF
10121 #define HAVE_TM_ZONE 1
10122 _ACEOF
10123
10124 else
10125   echo "$as_me:$LINENO: checking for tzname" >&5
10126 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10127 if test "${ac_cv_var_tzname+set}" = set; then
10128   echo $ECHO_N "(cached) $ECHO_C" >&6
10129 else
10130   cat >conftest.$ac_ext <<_ACEOF
10131 #line $LINENO "configure"
10132 /* confdefs.h.  */
10133 _ACEOF
10134 cat confdefs.h >>conftest.$ac_ext
10135 cat >>conftest.$ac_ext <<_ACEOF
10136 /* end confdefs.h.  */
10137 #include <time.h>
10138 #ifndef tzname /* For SGI.  */
10139 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10140 #endif
10141
10142 int
10143 main ()
10144 {
10145 atoi(*tzname);
10146   ;
10147   return 0;
10148 }
10149 _ACEOF
10150 rm -f conftest.$ac_objext conftest$ac_exeext
10151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10152   (eval $ac_link) 2>&5
10153   ac_status=$?
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); } &&
10156          { ac_try='test -s conftest$ac_exeext'
10157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158   (eval $ac_try) 2>&5
10159   ac_status=$?
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); }; }; then
10162   ac_cv_var_tzname=yes
10163 else
10164   echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10166
10167 ac_cv_var_tzname=no
10168 fi
10169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10170 fi
10171 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10172 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10173   if test $ac_cv_var_tzname = yes; then
10174
10175 cat >>confdefs.h <<\_ACEOF
10176 #define HAVE_TZNAME 1
10177 _ACEOF
10178
10179   fi
10180 fi
10181
10182
10183 echo "$as_me:$LINENO: checking for utime.h" >&5
10184 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10185 if test "${ba_cv_header_utime_h+set}" = set; then
10186   echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188   cat >conftest.$ac_ext <<_ACEOF
10189 #line $LINENO "configure"
10190 /* confdefs.h.  */
10191 _ACEOF
10192 cat confdefs.h >>conftest.$ac_ext
10193 cat >>conftest.$ac_ext <<_ACEOF
10194 /* end confdefs.h.  */
10195
10196 #include <sys/types.h>
10197 #include <utime.h>
10198 int
10199 main ()
10200 {
10201 struct utimbuf foo
10202   ;
10203   return 0;
10204 }
10205 _ACEOF
10206 rm -f conftest.$ac_objext
10207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10208   (eval $ac_compile) 2>&5
10209   ac_status=$?
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); } &&
10212          { ac_try='test -s conftest.$ac_objext'
10213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214   (eval $ac_try) 2>&5
10215   ac_status=$?
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); }; }; then
10218   ba_cv_header_utime_h=yes
10219 else
10220   echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10222
10223 ba_cv_header_utime_h=no
10224 fi
10225 rm -f conftest.$ac_objext conftest.$ac_ext
10226 fi
10227 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10228 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10229 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10230 #define HAVE_UTIME_H 1
10231 _ACEOF
10232
10233
10234 echo "$as_me:$LINENO: checking for socklen_t" >&5
10235 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10236 if test "${ba_cv_header_socklen_t+set}" = set; then
10237   echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10239   cat >conftest.$ac_ext <<_ACEOF
10240 #line $LINENO "configure"
10241 /* confdefs.h.  */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h.  */
10246
10247 #include <sys/types.h>
10248 #include <sys/socket.h>
10249 int
10250 main ()
10251 {
10252 socklen_t x
10253   ;
10254   return 0;
10255 }
10256 _ACEOF
10257 rm -f conftest.$ac_objext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259   (eval $ac_compile) 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); } &&
10263          { ac_try='test -s conftest.$ac_objext'
10264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265   (eval $ac_try) 2>&5
10266   ac_status=$?
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); }; }; then
10269   ba_cv_header_socklen_t=yes
10270 else
10271   echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10273
10274 ba_cv_header_socklen_t=no
10275 fi
10276 rm -f conftest.$ac_objext conftest.$ac_ext
10277 fi
10278 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10279 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10280 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_SOCKLEN_T 1
10282 _ACEOF
10283
10284
10285 echo "$as_me:$LINENO: checking for bigendian" >&5
10286 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10287 if test "${ba_cv_bigendian+set}" = set; then
10288   echo $ECHO_N "(cached) $ECHO_C" >&6
10289 else
10290   if test "$cross_compiling" = yes; then
10291   ba_cv_bigendian=no
10292 else
10293   cat >conftest.$ac_ext <<_ACEOF
10294 #line $LINENO "configure"
10295 /* confdefs.h.  */
10296 _ACEOF
10297 cat confdefs.h >>conftest.$ac_ext
10298 cat >>conftest.$ac_ext <<_ACEOF
10299 /* end confdefs.h.  */
10300 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10301 _ACEOF
10302 rm -f conftest$ac_exeext
10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304   (eval $ac_link) 2>&5
10305   ac_status=$?
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309   (eval $ac_try) 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); }; }; then
10313   ba_cv_bigendian=yes
10314 else
10315   echo "$as_me: program exited with status $ac_status" >&5
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10318
10319 ( exit $ac_status )
10320 ba_cv_bigendian=no
10321 fi
10322 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10323 fi
10324 fi
10325 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10326 echo "${ECHO_T}$ba_cv_bigendian" >&6
10327 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10328 #define HAVE_BIGENDIAN 1
10329 _ACEOF
10330
10331
10332
10333 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10334 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10335 if test "${ac_cv_c_const+set}" = set; then
10336   echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338   cat >conftest.$ac_ext <<_ACEOF
10339 #line $LINENO "configure"
10340 /* confdefs.h.  */
10341 _ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h.  */
10345
10346 int
10347 main ()
10348 {
10349 /* FIXME: Include the comments suggested by Paul. */
10350 #ifndef __cplusplus
10351   /* Ultrix mips cc rejects this.  */
10352   typedef int charset[2];
10353   const charset x;
10354   /* SunOS 4.1.1 cc rejects this.  */
10355   char const *const *ccp;
10356   char **p;
10357   /* NEC SVR4.0.2 mips cc rejects this.  */
10358   struct point {int x, y;};
10359   static struct point const zero = {0,0};
10360   /* AIX XL C 1.02.0.0 rejects this.
10361      It does not let you subtract one const X* pointer from another in
10362      an arm of an if-expression whose if-part is not a constant
10363      expression */
10364   const char *g = "string";
10365   ccp = &g + (g ? g-g : 0);
10366   /* HPUX 7.0 cc rejects these. */
10367   ++ccp;
10368   p = (char**) ccp;
10369   ccp = (char const *const *) p;
10370   { /* SCO 3.2v4 cc rejects this.  */
10371     char *t;
10372     char const *s = 0 ? (char *) 0 : (char const *) 0;
10373
10374     *t++ = 0;
10375   }
10376   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10377     int x[] = {25, 17};
10378     const int *foo = &x[0];
10379     ++foo;
10380   }
10381   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10382     typedef const int *iptr;
10383     iptr p = 0;
10384     ++p;
10385   }
10386   { /* AIX XL C 1.02.0.0 rejects this saying
10387        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10388     struct s { int j; const int *ap[3]; };
10389     struct s *b; b->j = 5;
10390   }
10391   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10392     const int foo = 10;
10393   }
10394 #endif
10395
10396   ;
10397   return 0;
10398 }
10399 _ACEOF
10400 rm -f conftest.$ac_objext
10401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10402   (eval $ac_compile) 2>&5
10403   ac_status=$?
10404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405   (exit $ac_status); } &&
10406          { ac_try='test -s conftest.$ac_objext'
10407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408   (eval $ac_try) 2>&5
10409   ac_status=$?
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); }; }; then
10412   ac_cv_c_const=yes
10413 else
10414   echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10416
10417 ac_cv_c_const=no
10418 fi
10419 rm -f conftest.$ac_objext conftest.$ac_ext
10420 fi
10421 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10422 echo "${ECHO_T}$ac_cv_c_const" >&6
10423 if test $ac_cv_c_const = no; then
10424
10425 cat >>confdefs.h <<\_ACEOF
10426 #define const
10427 _ACEOF
10428
10429 fi
10430
10431
10432
10433 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10434 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10435 fstype=no
10436 # The order of these tests is important.
10437 cat >conftest.$ac_ext <<_ACEOF
10438 #line $LINENO "configure"
10439 /* confdefs.h.  */
10440 _ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h.  */
10444 #include <sys/statvfs.h>
10445 #include <sys/fstyp.h>
10446 _ACEOF
10447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10448   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10449   ac_status=$?
10450   grep -v '^ *+' conftest.er1 >conftest.err
10451   rm -f conftest.er1
10452   cat conftest.err >&5
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); } >/dev/null; then
10455   if test -s conftest.err; then
10456     ac_cpp_err=$ac_c_preproc_warn_flag
10457   else
10458     ac_cpp_err=
10459   fi
10460 else
10461   ac_cpp_err=yes
10462 fi
10463 if test -z "$ac_cpp_err"; then
10464   cat >>confdefs.h <<\_ACEOF
10465 #define FSTYPE_STATVFS 1
10466 _ACEOF
10467  fstype=SVR4
10468 else
10469   echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10471
10472
10473 fi
10474 rm -f conftest.err conftest.$ac_ext
10475 if test $fstype = no; then
10476 cat >conftest.$ac_ext <<_ACEOF
10477 #line $LINENO "configure"
10478 /* confdefs.h.  */
10479 _ACEOF
10480 cat confdefs.h >>conftest.$ac_ext
10481 cat >>conftest.$ac_ext <<_ACEOF
10482 /* end confdefs.h.  */
10483 #include <sys/statfs.h>
10484 #include <sys/fstyp.h>
10485 _ACEOF
10486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10487   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10488   ac_status=$?
10489   grep -v '^ *+' conftest.er1 >conftest.err
10490   rm -f conftest.er1
10491   cat conftest.err >&5
10492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493   (exit $ac_status); } >/dev/null; then
10494   if test -s conftest.err; then
10495     ac_cpp_err=$ac_c_preproc_warn_flag
10496   else
10497     ac_cpp_err=
10498   fi
10499 else
10500   ac_cpp_err=yes
10501 fi
10502 if test -z "$ac_cpp_err"; then
10503   cat >>confdefs.h <<\_ACEOF
10504 #define FSTYPE_USG_STATFS 1
10505 _ACEOF
10506  fstype=SVR3
10507 else
10508   echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10510
10511
10512 fi
10513 rm -f conftest.err conftest.$ac_ext
10514 fi
10515 if test $fstype = no; then
10516 cat >conftest.$ac_ext <<_ACEOF
10517 #line $LINENO "configure"
10518 /* confdefs.h.  */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h.  */
10523 #include <sys/statfs.h>
10524 #include <sys/vmount.h>
10525 _ACEOF
10526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10527   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10528   ac_status=$?
10529   grep -v '^ *+' conftest.er1 >conftest.err
10530   rm -f conftest.er1
10531   cat conftest.err >&5
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); } >/dev/null; then
10534   if test -s conftest.err; then
10535     ac_cpp_err=$ac_c_preproc_warn_flag
10536   else
10537     ac_cpp_err=
10538   fi
10539 else
10540   ac_cpp_err=yes
10541 fi
10542 if test -z "$ac_cpp_err"; then
10543   cat >>confdefs.h <<\_ACEOF
10544 #define FSTYPE_AIX_STATFS 1
10545 _ACEOF
10546  fstype=AIX
10547 else
10548   echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.$ac_ext >&5
10550
10551
10552 fi
10553 rm -f conftest.err conftest.$ac_ext
10554 fi
10555 if test $fstype = no; then
10556 cat >conftest.$ac_ext <<_ACEOF
10557 #line $LINENO "configure"
10558 /* confdefs.h.  */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h.  */
10563 #include <mntent.h>
10564 _ACEOF
10565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10566   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10567   ac_status=$?
10568   grep -v '^ *+' conftest.er1 >conftest.err
10569   rm -f conftest.er1
10570   cat conftest.err >&5
10571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572   (exit $ac_status); } >/dev/null; then
10573   if test -s conftest.err; then
10574     ac_cpp_err=$ac_c_preproc_warn_flag
10575   else
10576     ac_cpp_err=
10577   fi
10578 else
10579   ac_cpp_err=yes
10580 fi
10581 if test -z "$ac_cpp_err"; then
10582   cat >>confdefs.h <<\_ACEOF
10583 #define FSTYPE_MNTENT 1
10584 _ACEOF
10585  fstype=4.3BSD
10586 else
10587   echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10589
10590
10591 fi
10592 rm -f conftest.err conftest.$ac_ext
10593 fi
10594 if test $fstype = no; then
10595 cat >conftest.$ac_ext <<_ACEOF
10596 #line $LINENO "configure"
10597 /* confdefs.h.  */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h.  */
10602 #include <sys/mount.h>
10603
10604 _ACEOF
10605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10606   $EGREP "f_type;" >/dev/null 2>&1; then
10607   cat >>confdefs.h <<\_ACEOF
10608 #define FSTYPE_STATFS 1
10609 _ACEOF
10610  fstype=4.4BSD/OSF1
10611 fi
10612 rm -f conftest*
10613
10614 fi
10615 if test $fstype = no; then
10616 cat >conftest.$ac_ext <<_ACEOF
10617 #line $LINENO "configure"
10618 /* confdefs.h.  */
10619 _ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h.  */
10623 #include <sys/mount.h>
10624 #include <sys/fs_types.h>
10625 _ACEOF
10626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10628   ac_status=$?
10629   grep -v '^ *+' conftest.er1 >conftest.err
10630   rm -f conftest.er1
10631   cat conftest.err >&5
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); } >/dev/null; then
10634   if test -s conftest.err; then
10635     ac_cpp_err=$ac_c_preproc_warn_flag
10636   else
10637     ac_cpp_err=
10638   fi
10639 else
10640   ac_cpp_err=yes
10641 fi
10642 if test -z "$ac_cpp_err"; then
10643   cat >>confdefs.h <<\_ACEOF
10644 #define FSTYPE_GETMNT 1
10645 _ACEOF
10646  fstype=Ultrix
10647 else
10648   echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10650
10651
10652 fi
10653 rm -f conftest.err conftest.$ac_ext
10654 fi
10655 echo "$as_me:$LINENO: result: $fstype" >&5
10656 echo "${ECHO_T}$fstype" >&6
10657
10658 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10659 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10660 if test "${ac_cv_type_signal+set}" = set; then
10661   echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663   cat >conftest.$ac_ext <<_ACEOF
10664 #line $LINENO "configure"
10665 /* confdefs.h.  */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h.  */
10670 #include <sys/types.h>
10671 #include <signal.h>
10672 #ifdef signal
10673 # undef signal
10674 #endif
10675 #ifdef __cplusplus
10676 extern "C" void (*signal (int, void (*)(int)))(int);
10677 #else
10678 void (*signal ()) ();
10679 #endif
10680
10681 int
10682 main ()
10683 {
10684 int i;
10685   ;
10686   return 0;
10687 }
10688 _ACEOF
10689 rm -f conftest.$ac_objext
10690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10691   (eval $ac_compile) 2>&5
10692   ac_status=$?
10693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); } &&
10695          { ac_try='test -s conftest.$ac_objext'
10696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697   (eval $ac_try) 2>&5
10698   ac_status=$?
10699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700   (exit $ac_status); }; }; then
10701   ac_cv_type_signal=void
10702 else
10703   echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10705
10706 ac_cv_type_signal=int
10707 fi
10708 rm -f conftest.$ac_objext conftest.$ac_ext
10709 fi
10710 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10711 echo "${ECHO_T}$ac_cv_type_signal" >&6
10712
10713 cat >>confdefs.h <<_ACEOF
10714 #define RETSIGTYPE $ac_cv_type_signal
10715 _ACEOF
10716
10717
10718
10719 echo "$as_me:$LINENO: checking for type of signal functions" >&5
10720 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
10721 if test "${bash_cv_signal_vintage+set}" = set; then
10722   echo $ECHO_N "(cached) $ECHO_C" >&6
10723 else
10724
10725   cat >conftest.$ac_ext <<_ACEOF
10726 #line $LINENO "configure"
10727 /* confdefs.h.  */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h.  */
10732 #include <signal.h>
10733 int
10734 main ()
10735 {
10736
10737     sigset_t ss;
10738     struct sigaction sa;
10739     sigemptyset(&ss); sigsuspend(&ss);
10740     sigaction(SIGINT, &sa, (struct sigaction *) 0);
10741     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
10742
10743   ;
10744   return 0;
10745 }
10746 _ACEOF
10747 rm -f conftest.$ac_objext conftest$ac_exeext
10748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10749   (eval $ac_link) 2>&5
10750   ac_status=$?
10751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752   (exit $ac_status); } &&
10753          { ac_try='test -s conftest$ac_exeext'
10754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755   (eval $ac_try) 2>&5
10756   ac_status=$?
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); }; }; then
10759   bash_cv_signal_vintage=posix
10760 else
10761   echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764
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 <signal.h>
10773 int
10774 main ()
10775 {
10776
10777         int mask = sigmask(SIGINT);
10778         sigsetmask(mask); sigblock(mask); sigpause(mask);
10779
10780   ;
10781   return 0;
10782 }
10783 _ACEOF
10784 rm -f conftest.$ac_objext conftest$ac_exeext
10785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10786   (eval $ac_link) 2>&5
10787   ac_status=$?
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); } &&
10790          { ac_try='test -s conftest$ac_exeext'
10791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792   (eval $ac_try) 2>&5
10793   ac_status=$?
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); }; }; then
10796   bash_cv_signal_vintage=4.2bsd
10797 else
10798   echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801
10802       cat >conftest.$ac_ext <<_ACEOF
10803 #line $LINENO "configure"
10804 /* confdefs.h.  */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h.  */
10809
10810         #include <signal.h>
10811         RETSIGTYPE foo() { }
10812 int
10813 main ()
10814 {
10815
10816                 int mask = sigmask(SIGINT);
10817                 sigset(SIGINT, foo); sigrelse(SIGINT);
10818                 sighold(SIGINT); sigpause(SIGINT);
10819
10820   ;
10821   return 0;
10822 }
10823 _ACEOF
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10826   (eval $ac_link) 2>&5
10827   ac_status=$?
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); } &&
10830          { ac_try='test -s conftest$ac_exeext'
10831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832   (eval $ac_try) 2>&5
10833   ac_status=$?
10834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835   (exit $ac_status); }; }; then
10836   bash_cv_signal_vintage=svr3
10837 else
10838   echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10840
10841 bash_cv_signal_vintage=v7
10842
10843 fi
10844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10845
10846 fi
10847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10848
10849 fi
10850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10851
10852 fi
10853
10854 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
10855 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
10856 if test "$bash_cv_signal_vintage" = posix; then
10857 cat >>confdefs.h <<\_ACEOF
10858 #define HAVE_POSIX_SIGNALS 1
10859 _ACEOF
10860
10861 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
10862 cat >>confdefs.h <<\_ACEOF
10863 #define HAVE_BSD_SIGNALS 1
10864 _ACEOF
10865
10866 elif test "$bash_cv_signal_vintage" = svr3; then
10867 cat >>confdefs.h <<\_ACEOF
10868 #define HAVE_USG_SIGHOLD 1
10869 _ACEOF
10870
10871 fi
10872
10873 echo "$as_me:$LINENO: checking for mode_t" >&5
10874 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10875 if test "${ac_cv_type_mode_t+set}" = set; then
10876   echo $ECHO_N "(cached) $ECHO_C" >&6
10877 else
10878   cat >conftest.$ac_ext <<_ACEOF
10879 #line $LINENO "configure"
10880 /* confdefs.h.  */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h.  */
10885 $ac_includes_default
10886 int
10887 main ()
10888 {
10889 if ((mode_t *) 0)
10890   return 0;
10891 if (sizeof (mode_t))
10892   return 0;
10893   ;
10894   return 0;
10895 }
10896 _ACEOF
10897 rm -f conftest.$ac_objext
10898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10899   (eval $ac_compile) 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); } &&
10903          { ac_try='test -s conftest.$ac_objext'
10904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905   (eval $ac_try) 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); }; }; then
10909   ac_cv_type_mode_t=yes
10910 else
10911   echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914 ac_cv_type_mode_t=no
10915 fi
10916 rm -f conftest.$ac_objext conftest.$ac_ext
10917 fi
10918 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10919 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10920 if test $ac_cv_type_mode_t = yes; then
10921   :
10922 else
10923
10924 cat >>confdefs.h <<_ACEOF
10925 #define mode_t int
10926 _ACEOF
10927
10928 fi
10929
10930 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10931 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10932 if test "${ac_cv_type_uid_t+set}" = set; then
10933   echo $ECHO_N "(cached) $ECHO_C" >&6
10934 else
10935   cat >conftest.$ac_ext <<_ACEOF
10936 #line $LINENO "configure"
10937 /* confdefs.h.  */
10938 _ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h.  */
10942 #include <sys/types.h>
10943
10944 _ACEOF
10945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10946   $EGREP "uid_t" >/dev/null 2>&1; then
10947   ac_cv_type_uid_t=yes
10948 else
10949   ac_cv_type_uid_t=no
10950 fi
10951 rm -f conftest*
10952
10953 fi
10954 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10955 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10956 if test $ac_cv_type_uid_t = no; then
10957
10958 cat >>confdefs.h <<\_ACEOF
10959 #define uid_t int
10960 _ACEOF
10961
10962
10963 cat >>confdefs.h <<\_ACEOF
10964 #define gid_t int
10965 _ACEOF
10966
10967 fi
10968
10969 echo "$as_me:$LINENO: checking for size_t" >&5
10970 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10971 if test "${ac_cv_type_size_t+set}" = set; then
10972   echo $ECHO_N "(cached) $ECHO_C" >&6
10973 else
10974   cat >conftest.$ac_ext <<_ACEOF
10975 #line $LINENO "configure"
10976 /* confdefs.h.  */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h.  */
10981 $ac_includes_default
10982 int
10983 main ()
10984 {
10985 if ((size_t *) 0)
10986   return 0;
10987 if (sizeof (size_t))
10988   return 0;
10989   ;
10990   return 0;
10991 }
10992 _ACEOF
10993 rm -f conftest.$ac_objext
10994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10995   (eval $ac_compile) 2>&5
10996   ac_status=$?
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); } &&
10999          { ac_try='test -s conftest.$ac_objext'
11000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001   (eval $ac_try) 2>&5
11002   ac_status=$?
11003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); }; }; then
11005   ac_cv_type_size_t=yes
11006 else
11007   echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11009
11010 ac_cv_type_size_t=no
11011 fi
11012 rm -f conftest.$ac_objext conftest.$ac_ext
11013 fi
11014 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11015 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11016 if test $ac_cv_type_size_t = yes; then
11017   :
11018 else
11019
11020 cat >>confdefs.h <<_ACEOF
11021 #define size_t unsigned
11022 _ACEOF
11023
11024 fi
11025
11026 echo "$as_me:$LINENO: checking for pid_t" >&5
11027 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11028 if test "${ac_cv_type_pid_t+set}" = set; then
11029   echo $ECHO_N "(cached) $ECHO_C" >&6
11030 else
11031   cat >conftest.$ac_ext <<_ACEOF
11032 #line $LINENO "configure"
11033 /* confdefs.h.  */
11034 _ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h.  */
11038 $ac_includes_default
11039 int
11040 main ()
11041 {
11042 if ((pid_t *) 0)
11043   return 0;
11044 if (sizeof (pid_t))
11045   return 0;
11046   ;
11047   return 0;
11048 }
11049 _ACEOF
11050 rm -f conftest.$ac_objext
11051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11052   (eval $ac_compile) 2>&5
11053   ac_status=$?
11054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055   (exit $ac_status); } &&
11056          { ac_try='test -s conftest.$ac_objext'
11057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058   (eval $ac_try) 2>&5
11059   ac_status=$?
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); }; }; then
11062   ac_cv_type_pid_t=yes
11063 else
11064   echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067 ac_cv_type_pid_t=no
11068 fi
11069 rm -f conftest.$ac_objext conftest.$ac_ext
11070 fi
11071 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11072 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11073 if test $ac_cv_type_pid_t = yes; then
11074   :
11075 else
11076
11077 cat >>confdefs.h <<_ACEOF
11078 #define pid_t int
11079 _ACEOF
11080
11081 fi
11082
11083 echo "$as_me:$LINENO: checking for off_t" >&5
11084 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11085 if test "${ac_cv_type_off_t+set}" = set; then
11086   echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088   cat >conftest.$ac_ext <<_ACEOF
11089 #line $LINENO "configure"
11090 /* confdefs.h.  */
11091 _ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h.  */
11095 $ac_includes_default
11096 int
11097 main ()
11098 {
11099 if ((off_t *) 0)
11100   return 0;
11101 if (sizeof (off_t))
11102   return 0;
11103   ;
11104   return 0;
11105 }
11106 _ACEOF
11107 rm -f conftest.$ac_objext
11108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11109   (eval $ac_compile) 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); } &&
11113          { ac_try='test -s conftest.$ac_objext'
11114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115   (eval $ac_try) 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); }; }; then
11119   ac_cv_type_off_t=yes
11120 else
11121   echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11123
11124 ac_cv_type_off_t=no
11125 fi
11126 rm -f conftest.$ac_objext conftest.$ac_ext
11127 fi
11128 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11129 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11130 if test $ac_cv_type_off_t = yes; then
11131   :
11132 else
11133
11134 cat >>confdefs.h <<_ACEOF
11135 #define off_t long
11136 _ACEOF
11137
11138 fi
11139
11140 echo "$as_me:$LINENO: checking for ino_t" >&5
11141 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11142 if test "${ac_cv_type_ino_t+set}" = set; then
11143   echo $ECHO_N "(cached) $ECHO_C" >&6
11144 else
11145   cat >conftest.$ac_ext <<_ACEOF
11146 #line $LINENO "configure"
11147 /* confdefs.h.  */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h.  */
11152 $ac_includes_default
11153 int
11154 main ()
11155 {
11156 if ((ino_t *) 0)
11157   return 0;
11158 if (sizeof (ino_t))
11159   return 0;
11160   ;
11161   return 0;
11162 }
11163 _ACEOF
11164 rm -f conftest.$ac_objext
11165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11166   (eval $ac_compile) 2>&5
11167   ac_status=$?
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); } &&
11170          { ac_try='test -s conftest.$ac_objext'
11171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172   (eval $ac_try) 2>&5
11173   ac_status=$?
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); }; }; then
11176   ac_cv_type_ino_t=yes
11177 else
11178   echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11180
11181 ac_cv_type_ino_t=no
11182 fi
11183 rm -f conftest.$ac_objext conftest.$ac_ext
11184 fi
11185 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11186 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11187 if test $ac_cv_type_ino_t = yes; then
11188   :
11189 else
11190
11191 cat >>confdefs.h <<_ACEOF
11192 #define ino_t unsigned long
11193 _ACEOF
11194
11195 fi
11196
11197 echo "$as_me:$LINENO: checking for dev_t" >&5
11198 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11199 if test "${ac_cv_type_dev_t+set}" = set; then
11200   echo $ECHO_N "(cached) $ECHO_C" >&6
11201 else
11202   cat >conftest.$ac_ext <<_ACEOF
11203 #line $LINENO "configure"
11204 /* confdefs.h.  */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h.  */
11209 $ac_includes_default
11210 int
11211 main ()
11212 {
11213 if ((dev_t *) 0)
11214   return 0;
11215 if (sizeof (dev_t))
11216   return 0;
11217   ;
11218   return 0;
11219 }
11220 _ACEOF
11221 rm -f conftest.$ac_objext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223   (eval $ac_compile) 2>&5
11224   ac_status=$?
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); } &&
11227          { ac_try='test -s conftest.$ac_objext'
11228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229   (eval $ac_try) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); }; }; then
11233   ac_cv_type_dev_t=yes
11234 else
11235   echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11237
11238 ac_cv_type_dev_t=no
11239 fi
11240 rm -f conftest.$ac_objext conftest.$ac_ext
11241 fi
11242 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11243 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11244 if test $ac_cv_type_dev_t = yes; then
11245   :
11246 else
11247
11248 cat >>confdefs.h <<_ACEOF
11249 #define dev_t unsigned long
11250 _ACEOF
11251
11252 fi
11253
11254 echo "$as_me:$LINENO: checking for daddr_t" >&5
11255 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11256 if test "${ac_cv_type_daddr_t+set}" = set; then
11257   echo $ECHO_N "(cached) $ECHO_C" >&6
11258 else
11259   cat >conftest.$ac_ext <<_ACEOF
11260 #line $LINENO "configure"
11261 /* confdefs.h.  */
11262 _ACEOF
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h.  */
11266 $ac_includes_default
11267 int
11268 main ()
11269 {
11270 if ((daddr_t *) 0)
11271   return 0;
11272 if (sizeof (daddr_t))
11273   return 0;
11274   ;
11275   return 0;
11276 }
11277 _ACEOF
11278 rm -f conftest.$ac_objext
11279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11280   (eval $ac_compile) 2>&5
11281   ac_status=$?
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); } &&
11284          { ac_try='test -s conftest.$ac_objext'
11285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286   (eval $ac_try) 2>&5
11287   ac_status=$?
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); }; }; then
11290   ac_cv_type_daddr_t=yes
11291 else
11292   echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11294
11295 ac_cv_type_daddr_t=no
11296 fi
11297 rm -f conftest.$ac_objext conftest.$ac_ext
11298 fi
11299 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11300 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11301 if test $ac_cv_type_daddr_t = yes; then
11302   :
11303 else
11304
11305 cat >>confdefs.h <<_ACEOF
11306 #define daddr_t long
11307 _ACEOF
11308
11309 fi
11310
11311 echo "$as_me:$LINENO: checking for major_t" >&5
11312 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11313 if test "${ac_cv_type_major_t+set}" = set; then
11314   echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316   cat >conftest.$ac_ext <<_ACEOF
11317 #line $LINENO "configure"
11318 /* confdefs.h.  */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h.  */
11323 $ac_includes_default
11324 int
11325 main ()
11326 {
11327 if ((major_t *) 0)
11328   return 0;
11329 if (sizeof (major_t))
11330   return 0;
11331   ;
11332   return 0;
11333 }
11334 _ACEOF
11335 rm -f conftest.$ac_objext
11336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11337   (eval $ac_compile) 2>&5
11338   ac_status=$?
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); } &&
11341          { ac_try='test -s conftest.$ac_objext'
11342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343   (eval $ac_try) 2>&5
11344   ac_status=$?
11345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346   (exit $ac_status); }; }; then
11347   ac_cv_type_major_t=yes
11348 else
11349   echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11351
11352 ac_cv_type_major_t=no
11353 fi
11354 rm -f conftest.$ac_objext conftest.$ac_ext
11355 fi
11356 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11357 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11358 if test $ac_cv_type_major_t = yes; then
11359   :
11360 else
11361
11362 cat >>confdefs.h <<_ACEOF
11363 #define major_t int
11364 _ACEOF
11365
11366 fi
11367
11368 echo "$as_me:$LINENO: checking for minor_t" >&5
11369 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11370 if test "${ac_cv_type_minor_t+set}" = set; then
11371   echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373   cat >conftest.$ac_ext <<_ACEOF
11374 #line $LINENO "configure"
11375 /* confdefs.h.  */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h.  */
11380 $ac_includes_default
11381 int
11382 main ()
11383 {
11384 if ((minor_t *) 0)
11385   return 0;
11386 if (sizeof (minor_t))
11387   return 0;
11388   ;
11389   return 0;
11390 }
11391 _ACEOF
11392 rm -f conftest.$ac_objext
11393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11394   (eval $ac_compile) 2>&5
11395   ac_status=$?
11396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397   (exit $ac_status); } &&
11398          { ac_try='test -s conftest.$ac_objext'
11399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400   (eval $ac_try) 2>&5
11401   ac_status=$?
11402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403   (exit $ac_status); }; }; then
11404   ac_cv_type_minor_t=yes
11405 else
11406   echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11408
11409 ac_cv_type_minor_t=no
11410 fi
11411 rm -f conftest.$ac_objext conftest.$ac_ext
11412 fi
11413 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11414 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11415 if test $ac_cv_type_minor_t = yes; then
11416   :
11417 else
11418
11419 cat >>confdefs.h <<_ACEOF
11420 #define minor_t int
11421 _ACEOF
11422
11423 fi
11424
11425 echo "$as_me:$LINENO: checking for ssize_t" >&5
11426 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11427 if test "${ac_cv_type_ssize_t+set}" = set; then
11428   echo $ECHO_N "(cached) $ECHO_C" >&6
11429 else
11430   cat >conftest.$ac_ext <<_ACEOF
11431 #line $LINENO "configure"
11432 /* confdefs.h.  */
11433 _ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h.  */
11437 $ac_includes_default
11438 int
11439 main ()
11440 {
11441 if ((ssize_t *) 0)
11442   return 0;
11443 if (sizeof (ssize_t))
11444   return 0;
11445   ;
11446   return 0;
11447 }
11448 _ACEOF
11449 rm -f conftest.$ac_objext
11450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11451   (eval $ac_compile) 2>&5
11452   ac_status=$?
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); } &&
11455          { ac_try='test -s conftest.$ac_objext'
11456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457   (eval $ac_try) 2>&5
11458   ac_status=$?
11459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460   (exit $ac_status); }; }; then
11461   ac_cv_type_ssize_t=yes
11462 else
11463   echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11465
11466 ac_cv_type_ssize_t=no
11467 fi
11468 rm -f conftest.$ac_objext conftest.$ac_ext
11469 fi
11470 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11471 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11472 if test $ac_cv_type_ssize_t = yes; then
11473   :
11474 else
11475
11476 cat >>confdefs.h <<_ACEOF
11477 #define ssize_t int
11478 _ACEOF
11479
11480 fi
11481
11482 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11483 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11484 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11485   echo $ECHO_N "(cached) $ECHO_C" >&6
11486 else
11487   cat >conftest.$ac_ext <<_ACEOF
11488 #line $LINENO "configure"
11489 /* confdefs.h.  */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h.  */
11494 $ac_includes_default
11495 int
11496 main ()
11497 {
11498 static struct stat ac_aggr;
11499 if (ac_aggr.st_blocks)
11500 return 0;
11501   ;
11502   return 0;
11503 }
11504 _ACEOF
11505 rm -f conftest.$ac_objext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11507   (eval $ac_compile) 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); } &&
11511          { ac_try='test -s conftest.$ac_objext'
11512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513   (eval $ac_try) 2>&5
11514   ac_status=$?
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); }; }; then
11517   ac_cv_member_struct_stat_st_blocks=yes
11518 else
11519   echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11521
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 static struct stat ac_aggr;
11534 if (sizeof ac_aggr.st_blocks)
11535 return 0;
11536   ;
11537   return 0;
11538 }
11539 _ACEOF
11540 rm -f conftest.$ac_objext
11541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11542   (eval $ac_compile) 2>&5
11543   ac_status=$?
11544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545   (exit $ac_status); } &&
11546          { ac_try='test -s conftest.$ac_objext'
11547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548   (eval $ac_try) 2>&5
11549   ac_status=$?
11550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551   (exit $ac_status); }; }; then
11552   ac_cv_member_struct_stat_st_blocks=yes
11553 else
11554   echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11556
11557 ac_cv_member_struct_stat_st_blocks=no
11558 fi
11559 rm -f conftest.$ac_objext conftest.$ac_ext
11560 fi
11561 rm -f conftest.$ac_objext conftest.$ac_ext
11562 fi
11563 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11564 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11565 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11566
11567 cat >>confdefs.h <<_ACEOF
11568 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11569 _ACEOF
11570
11571
11572 cat >>confdefs.h <<\_ACEOF
11573 #define HAVE_ST_BLOCKS 1
11574 _ACEOF
11575
11576 else
11577   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11578 fi
11579
11580
11581
11582 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11583 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11584 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11585   echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587   cat >conftest.$ac_ext <<_ACEOF
11588 #line $LINENO "configure"
11589 /* confdefs.h.  */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h.  */
11594 $ac_includes_default
11595 int
11596 main ()
11597 {
11598 static struct stat ac_aggr;
11599 if (ac_aggr.st_rdev)
11600 return 0;
11601   ;
11602   return 0;
11603 }
11604 _ACEOF
11605 rm -f conftest.$ac_objext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11607   (eval $ac_compile) 2>&5
11608   ac_status=$?
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); } &&
11611          { ac_try='test -s conftest.$ac_objext'
11612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613   (eval $ac_try) 2>&5
11614   ac_status=$?
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); }; }; then
11617   ac_cv_member_struct_stat_st_rdev=yes
11618 else
11619   echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11621
11622 cat >conftest.$ac_ext <<_ACEOF
11623 #line $LINENO "configure"
11624 /* confdefs.h.  */
11625 _ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h.  */
11629 $ac_includes_default
11630 int
11631 main ()
11632 {
11633 static struct stat ac_aggr;
11634 if (sizeof ac_aggr.st_rdev)
11635 return 0;
11636   ;
11637   return 0;
11638 }
11639 _ACEOF
11640 rm -f conftest.$ac_objext
11641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11642   (eval $ac_compile) 2>&5
11643   ac_status=$?
11644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645   (exit $ac_status); } &&
11646          { ac_try='test -s conftest.$ac_objext'
11647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648   (eval $ac_try) 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); }; }; then
11652   ac_cv_member_struct_stat_st_rdev=yes
11653 else
11654   echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11656
11657 ac_cv_member_struct_stat_st_rdev=no
11658 fi
11659 rm -f conftest.$ac_objext conftest.$ac_ext
11660 fi
11661 rm -f conftest.$ac_objext conftest.$ac_ext
11662 fi
11663 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11664 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11665 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11666
11667 cat >>confdefs.h <<_ACEOF
11668 #define HAVE_STRUCT_STAT_ST_RDEV 1
11669 _ACEOF
11670
11671
11672 cat >>confdefs.h <<\_ACEOF
11673 #define HAVE_ST_RDEV 1
11674 _ACEOF
11675
11676 fi
11677
11678
11679 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11680 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11681 if test "${ac_cv_struct_tm+set}" = set; then
11682   echo $ECHO_N "(cached) $ECHO_C" >&6
11683 else
11684   cat >conftest.$ac_ext <<_ACEOF
11685 #line $LINENO "configure"
11686 /* confdefs.h.  */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h.  */
11691 #include <sys/types.h>
11692 #include <time.h>
11693
11694 int
11695 main ()
11696 {
11697 struct tm *tp; tp->tm_sec;
11698   ;
11699   return 0;
11700 }
11701 _ACEOF
11702 rm -f conftest.$ac_objext
11703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11704   (eval $ac_compile) 2>&5
11705   ac_status=$?
11706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707   (exit $ac_status); } &&
11708          { ac_try='test -s conftest.$ac_objext'
11709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710   (eval $ac_try) 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; }; then
11714   ac_cv_struct_tm=time.h
11715 else
11716   echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11718
11719 ac_cv_struct_tm=sys/time.h
11720 fi
11721 rm -f conftest.$ac_objext conftest.$ac_ext
11722 fi
11723 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11724 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11725 if test $ac_cv_struct_tm = sys/time.h; then
11726
11727 cat >>confdefs.h <<\_ACEOF
11728 #define TM_IN_SYS_TIME 1
11729 _ACEOF
11730
11731 fi
11732
11733 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11734 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11735 if test "${ac_cv_c_const+set}" = set; then
11736   echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738   cat >conftest.$ac_ext <<_ACEOF
11739 #line $LINENO "configure"
11740 /* confdefs.h.  */
11741 _ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h.  */
11745
11746 int
11747 main ()
11748 {
11749 /* FIXME: Include the comments suggested by Paul. */
11750 #ifndef __cplusplus
11751   /* Ultrix mips cc rejects this.  */
11752   typedef int charset[2];
11753   const charset x;
11754   /* SunOS 4.1.1 cc rejects this.  */
11755   char const *const *ccp;
11756   char **p;
11757   /* NEC SVR4.0.2 mips cc rejects this.  */
11758   struct point {int x, y;};
11759   static struct point const zero = {0,0};
11760   /* AIX XL C 1.02.0.0 rejects this.
11761      It does not let you subtract one const X* pointer from another in
11762      an arm of an if-expression whose if-part is not a constant
11763      expression */
11764   const char *g = "string";
11765   ccp = &g + (g ? g-g : 0);
11766   /* HPUX 7.0 cc rejects these. */
11767   ++ccp;
11768   p = (char**) ccp;
11769   ccp = (char const *const *) p;
11770   { /* SCO 3.2v4 cc rejects this.  */
11771     char *t;
11772     char const *s = 0 ? (char *) 0 : (char const *) 0;
11773
11774     *t++ = 0;
11775   }
11776   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11777     int x[] = {25, 17};
11778     const int *foo = &x[0];
11779     ++foo;
11780   }
11781   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11782     typedef const int *iptr;
11783     iptr p = 0;
11784     ++p;
11785   }
11786   { /* AIX XL C 1.02.0.0 rejects this saying
11787        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11788     struct s { int j; const int *ap[3]; };
11789     struct s *b; b->j = 5;
11790   }
11791   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11792     const int foo = 10;
11793   }
11794 #endif
11795
11796   ;
11797   return 0;
11798 }
11799 _ACEOF
11800 rm -f conftest.$ac_objext
11801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11802   (eval $ac_compile) 2>&5
11803   ac_status=$?
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); } &&
11806          { ac_try='test -s conftest.$ac_objext'
11807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808   (eval $ac_try) 2>&5
11809   ac_status=$?
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); }; }; then
11812   ac_cv_c_const=yes
11813 else
11814   echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11816
11817 ac_cv_c_const=no
11818 fi
11819 rm -f conftest.$ac_objext conftest.$ac_ext
11820 fi
11821 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11822 echo "${ECHO_T}$ac_cv_c_const" >&6
11823 if test $ac_cv_c_const = no; then
11824
11825 cat >>confdefs.h <<\_ACEOF
11826 #define const
11827 _ACEOF
11828
11829 fi
11830
11831
11832
11833 echo "$as_me:$LINENO: checking for char" >&5
11834 echo $ECHO_N "checking for char... $ECHO_C" >&6
11835 if test "${ac_cv_type_char+set}" = set; then
11836   echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838   cat >conftest.$ac_ext <<_ACEOF
11839 #line $LINENO "configure"
11840 /* confdefs.h.  */
11841 _ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h.  */
11845 $ac_includes_default
11846 int
11847 main ()
11848 {
11849 if ((char *) 0)
11850   return 0;
11851 if (sizeof (char))
11852   return 0;
11853   ;
11854   return 0;
11855 }
11856 _ACEOF
11857 rm -f conftest.$ac_objext
11858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11859   (eval $ac_compile) 2>&5
11860   ac_status=$?
11861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862   (exit $ac_status); } &&
11863          { ac_try='test -s conftest.$ac_objext'
11864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865   (eval $ac_try) 2>&5
11866   ac_status=$?
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); }; }; then
11869   ac_cv_type_char=yes
11870 else
11871   echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11873
11874 ac_cv_type_char=no
11875 fi
11876 rm -f conftest.$ac_objext conftest.$ac_ext
11877 fi
11878 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11879 echo "${ECHO_T}$ac_cv_type_char" >&6
11880
11881 echo "$as_me:$LINENO: checking size of char" >&5
11882 echo $ECHO_N "checking size of char... $ECHO_C" >&6
11883 if test "${ac_cv_sizeof_char+set}" = set; then
11884   echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886   if test "$ac_cv_type_char" = yes; then
11887   # The cast to unsigned long works around a bug in the HP C Compiler
11888   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11889   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11890   # This bug is HP SR number 8606223364.
11891   if test "$cross_compiling" = yes; then
11892   # Depending upon the size, compute the lo and hi bounds.
11893 cat >conftest.$ac_ext <<_ACEOF
11894 #line $LINENO "configure"
11895 /* confdefs.h.  */
11896 _ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h.  */
11900 $ac_includes_default
11901 int
11902 main ()
11903 {
11904 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11905 test_array [0] = 0
11906
11907   ;
11908   return 0;
11909 }
11910 _ACEOF
11911 rm -f conftest.$ac_objext
11912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11913   (eval $ac_compile) 2>&5
11914   ac_status=$?
11915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916   (exit $ac_status); } &&
11917          { ac_try='test -s conftest.$ac_objext'
11918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919   (eval $ac_try) 2>&5
11920   ac_status=$?
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); }; }; then
11923   ac_lo=0 ac_mid=0
11924   while :; do
11925     cat >conftest.$ac_ext <<_ACEOF
11926 #line $LINENO "configure"
11927 /* confdefs.h.  */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h.  */
11932 $ac_includes_default
11933 int
11934 main ()
11935 {
11936 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11937 test_array [0] = 0
11938
11939   ;
11940   return 0;
11941 }
11942 _ACEOF
11943 rm -f conftest.$ac_objext
11944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11945   (eval $ac_compile) 2>&5
11946   ac_status=$?
11947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948   (exit $ac_status); } &&
11949          { ac_try='test -s conftest.$ac_objext'
11950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951   (eval $ac_try) 2>&5
11952   ac_status=$?
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); }; }; then
11955   ac_hi=$ac_mid; break
11956 else
11957   echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11959
11960 ac_lo=`expr $ac_mid + 1`
11961                     if test $ac_lo -le $ac_mid; then
11962                       ac_lo= ac_hi=
11963                       break
11964                     fi
11965                     ac_mid=`expr 2 '*' $ac_mid + 1`
11966 fi
11967 rm -f conftest.$ac_objext conftest.$ac_ext
11968   done
11969 else
11970   echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11972
11973 cat >conftest.$ac_ext <<_ACEOF
11974 #line $LINENO "configure"
11975 /* confdefs.h.  */
11976 _ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h.  */
11980 $ac_includes_default
11981 int
11982 main ()
11983 {
11984 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11985 test_array [0] = 0
11986
11987   ;
11988   return 0;
11989 }
11990 _ACEOF
11991 rm -f conftest.$ac_objext
11992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11993   (eval $ac_compile) 2>&5
11994   ac_status=$?
11995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996   (exit $ac_status); } &&
11997          { ac_try='test -s conftest.$ac_objext'
11998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999   (eval $ac_try) 2>&5
12000   ac_status=$?
12001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002   (exit $ac_status); }; }; then
12003   ac_hi=-1 ac_mid=-1
12004   while :; do
12005     cat >conftest.$ac_ext <<_ACEOF
12006 #line $LINENO "configure"
12007 /* confdefs.h.  */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h.  */
12012 $ac_includes_default
12013 int
12014 main ()
12015 {
12016 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12017 test_array [0] = 0
12018
12019   ;
12020   return 0;
12021 }
12022 _ACEOF
12023 rm -f conftest.$ac_objext
12024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12025   (eval $ac_compile) 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); } &&
12029          { ac_try='test -s conftest.$ac_objext'
12030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031   (eval $ac_try) 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); }; }; then
12035   ac_lo=$ac_mid; break
12036 else
12037   echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12039
12040 ac_hi=`expr '(' $ac_mid ')' - 1`
12041                        if test $ac_mid -le $ac_hi; then
12042                          ac_lo= ac_hi=
12043                          break
12044                        fi
12045                        ac_mid=`expr 2 '*' $ac_mid`
12046 fi
12047 rm -f conftest.$ac_objext conftest.$ac_ext
12048   done
12049 else
12050   echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12052
12053 ac_lo= ac_hi=
12054 fi
12055 rm -f conftest.$ac_objext conftest.$ac_ext
12056 fi
12057 rm -f conftest.$ac_objext conftest.$ac_ext
12058 # Binary search between lo and hi bounds.
12059 while test "x$ac_lo" != "x$ac_hi"; do
12060   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12061   cat >conftest.$ac_ext <<_ACEOF
12062 #line $LINENO "configure"
12063 /* confdefs.h.  */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h.  */
12068 $ac_includes_default
12069 int
12070 main ()
12071 {
12072 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12073 test_array [0] = 0
12074
12075   ;
12076   return 0;
12077 }
12078 _ACEOF
12079 rm -f conftest.$ac_objext
12080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12081   (eval $ac_compile) 2>&5
12082   ac_status=$?
12083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084   (exit $ac_status); } &&
12085          { ac_try='test -s conftest.$ac_objext'
12086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12087   (eval $ac_try) 2>&5
12088   ac_status=$?
12089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090   (exit $ac_status); }; }; then
12091   ac_hi=$ac_mid
12092 else
12093   echo "$as_me: failed program was:" >&5
12094 sed 's/^/| /' conftest.$ac_ext >&5
12095
12096 ac_lo=`expr '(' $ac_mid ')' + 1`
12097 fi
12098 rm -f conftest.$ac_objext conftest.$ac_ext
12099 done
12100 case $ac_lo in
12101 ?*) ac_cv_sizeof_char=$ac_lo;;
12102 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12103 See \`config.log' for more details." >&5
12104 echo "$as_me: error: cannot compute sizeof (char), 77
12105 See \`config.log' for more details." >&2;}
12106    { (exit 1); exit 1; }; } ;;
12107 esac
12108 else
12109   if test "$cross_compiling" = yes; then
12110   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12111 See \`config.log' for more details." >&5
12112 echo "$as_me: error: cannot run test program while cross compiling
12113 See \`config.log' for more details." >&2;}
12114    { (exit 1); exit 1; }; }
12115 else
12116   cat >conftest.$ac_ext <<_ACEOF
12117 #line $LINENO "configure"
12118 /* confdefs.h.  */
12119 _ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h.  */
12123 $ac_includes_default
12124 long longval () { return (long) (sizeof (char)); }
12125 unsigned long ulongval () { return (long) (sizeof (char)); }
12126 #include <stdio.h>
12127 #include <stdlib.h>
12128 int
12129 main ()
12130 {
12131
12132   FILE *f = fopen ("conftest.val", "w");
12133   if (! f)
12134     exit (1);
12135   if (((long) (sizeof (char))) < 0)
12136     {
12137       long i = longval ();
12138       if (i != ((long) (sizeof (char))))
12139         exit (1);
12140       fprintf (f, "%ld\n", i);
12141     }
12142   else
12143     {
12144       unsigned long i = ulongval ();
12145       if (i != ((long) (sizeof (char))))
12146         exit (1);
12147       fprintf (f, "%lu\n", i);
12148     }
12149   exit (ferror (f) || fclose (f) != 0);
12150
12151   ;
12152   return 0;
12153 }
12154 _ACEOF
12155 rm -f conftest$ac_exeext
12156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12157   (eval $ac_link) 2>&5
12158   ac_status=$?
12159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162   (eval $ac_try) 2>&5
12163   ac_status=$?
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); }; }; then
12166   ac_cv_sizeof_char=`cat conftest.val`
12167 else
12168   echo "$as_me: program exited with status $ac_status" >&5
12169 echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12171
12172 ( exit $ac_status )
12173 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12174 See \`config.log' for more details." >&5
12175 echo "$as_me: error: cannot compute sizeof (char), 77
12176 See \`config.log' for more details." >&2;}
12177    { (exit 1); exit 1; }; }
12178 fi
12179 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12180 fi
12181 fi
12182 rm -f conftest.val
12183 else
12184   ac_cv_sizeof_char=0
12185 fi
12186 fi
12187 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12188 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12189 cat >>confdefs.h <<_ACEOF
12190 #define SIZEOF_CHAR $ac_cv_sizeof_char
12191 _ACEOF
12192
12193
12194 echo "$as_me:$LINENO: checking for short int" >&5
12195 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12196 if test "${ac_cv_type_short_int+set}" = set; then
12197   echo $ECHO_N "(cached) $ECHO_C" >&6
12198 else
12199   cat >conftest.$ac_ext <<_ACEOF
12200 #line $LINENO "configure"
12201 /* confdefs.h.  */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h.  */
12206 $ac_includes_default
12207 int
12208 main ()
12209 {
12210 if ((short int *) 0)
12211   return 0;
12212 if (sizeof (short int))
12213   return 0;
12214   ;
12215   return 0;
12216 }
12217 _ACEOF
12218 rm -f conftest.$ac_objext
12219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12220   (eval $ac_compile) 2>&5
12221   ac_status=$?
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); } &&
12224          { ac_try='test -s conftest.$ac_objext'
12225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226   (eval $ac_try) 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); }; }; then
12230   ac_cv_type_short_int=yes
12231 else
12232   echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12234
12235 ac_cv_type_short_int=no
12236 fi
12237 rm -f conftest.$ac_objext conftest.$ac_ext
12238 fi
12239 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12240 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12241
12242 echo "$as_me:$LINENO: checking size of short int" >&5
12243 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12244 if test "${ac_cv_sizeof_short_int+set}" = set; then
12245   echo $ECHO_N "(cached) $ECHO_C" >&6
12246 else
12247   if test "$ac_cv_type_short_int" = yes; then
12248   # The cast to unsigned long works around a bug in the HP C Compiler
12249   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12250   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12251   # This bug is HP SR number 8606223364.
12252   if test "$cross_compiling" = yes; then
12253   # Depending upon the size, compute the lo and hi bounds.
12254 cat >conftest.$ac_ext <<_ACEOF
12255 #line $LINENO "configure"
12256 /* confdefs.h.  */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h.  */
12261 $ac_includes_default
12262 int
12263 main ()
12264 {
12265 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12266 test_array [0] = 0
12267
12268   ;
12269   return 0;
12270 }
12271 _ACEOF
12272 rm -f conftest.$ac_objext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12274   (eval $ac_compile) 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); } &&
12278          { ac_try='test -s conftest.$ac_objext'
12279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280   (eval $ac_try) 2>&5
12281   ac_status=$?
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); }; }; then
12284   ac_lo=0 ac_mid=0
12285   while :; do
12286     cat >conftest.$ac_ext <<_ACEOF
12287 #line $LINENO "configure"
12288 /* confdefs.h.  */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h.  */
12293 $ac_includes_default
12294 int
12295 main ()
12296 {
12297 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12298 test_array [0] = 0
12299
12300   ;
12301   return 0;
12302 }
12303 _ACEOF
12304 rm -f conftest.$ac_objext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12306   (eval $ac_compile) 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); } &&
12310          { ac_try='test -s conftest.$ac_objext'
12311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312   (eval $ac_try) 2>&5
12313   ac_status=$?
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); }; }; then
12316   ac_hi=$ac_mid; break
12317 else
12318   echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12320
12321 ac_lo=`expr $ac_mid + 1`
12322                     if test $ac_lo -le $ac_mid; then
12323                       ac_lo= ac_hi=
12324                       break
12325                     fi
12326                     ac_mid=`expr 2 '*' $ac_mid + 1`
12327 fi
12328 rm -f conftest.$ac_objext conftest.$ac_ext
12329   done
12330 else
12331   echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12333
12334 cat >conftest.$ac_ext <<_ACEOF
12335 #line $LINENO "configure"
12336 /* confdefs.h.  */
12337 _ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h.  */
12341 $ac_includes_default
12342 int
12343 main ()
12344 {
12345 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12346 test_array [0] = 0
12347
12348   ;
12349   return 0;
12350 }
12351 _ACEOF
12352 rm -f conftest.$ac_objext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12354   (eval $ac_compile) 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); } &&
12358          { ac_try='test -s conftest.$ac_objext'
12359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360   (eval $ac_try) 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); }; }; then
12364   ac_hi=-1 ac_mid=-1
12365   while :; do
12366     cat >conftest.$ac_ext <<_ACEOF
12367 #line $LINENO "configure"
12368 /* confdefs.h.  */
12369 _ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h.  */
12373 $ac_includes_default
12374 int
12375 main ()
12376 {
12377 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12378 test_array [0] = 0
12379
12380   ;
12381   return 0;
12382 }
12383 _ACEOF
12384 rm -f conftest.$ac_objext
12385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12386   (eval $ac_compile) 2>&5
12387   ac_status=$?
12388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389   (exit $ac_status); } &&
12390          { ac_try='test -s conftest.$ac_objext'
12391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392   (eval $ac_try) 2>&5
12393   ac_status=$?
12394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395   (exit $ac_status); }; }; then
12396   ac_lo=$ac_mid; break
12397 else
12398   echo "$as_me: failed program was:" >&5
12399 sed 's/^/| /' conftest.$ac_ext >&5
12400
12401 ac_hi=`expr '(' $ac_mid ')' - 1`
12402                        if test $ac_mid -le $ac_hi; then
12403                          ac_lo= ac_hi=
12404                          break
12405                        fi
12406                        ac_mid=`expr 2 '*' $ac_mid`
12407 fi
12408 rm -f conftest.$ac_objext conftest.$ac_ext
12409   done
12410 else
12411   echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12413
12414 ac_lo= ac_hi=
12415 fi
12416 rm -f conftest.$ac_objext conftest.$ac_ext
12417 fi
12418 rm -f conftest.$ac_objext conftest.$ac_ext
12419 # Binary search between lo and hi bounds.
12420 while test "x$ac_lo" != "x$ac_hi"; do
12421   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12422   cat >conftest.$ac_ext <<_ACEOF
12423 #line $LINENO "configure"
12424 /* confdefs.h.  */
12425 _ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h.  */
12429 $ac_includes_default
12430 int
12431 main ()
12432 {
12433 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12434 test_array [0] = 0
12435
12436   ;
12437   return 0;
12438 }
12439 _ACEOF
12440 rm -f conftest.$ac_objext
12441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12442   (eval $ac_compile) 2>&5
12443   ac_status=$?
12444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); } &&
12446          { ac_try='test -s conftest.$ac_objext'
12447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448   (eval $ac_try) 2>&5
12449   ac_status=$?
12450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451   (exit $ac_status); }; }; then
12452   ac_hi=$ac_mid
12453 else
12454   echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12456
12457 ac_lo=`expr '(' $ac_mid ')' + 1`
12458 fi
12459 rm -f conftest.$ac_objext conftest.$ac_ext
12460 done
12461 case $ac_lo in
12462 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12463 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12464 See \`config.log' for more details." >&5
12465 echo "$as_me: error: cannot compute sizeof (short int), 77
12466 See \`config.log' for more details." >&2;}
12467    { (exit 1); exit 1; }; } ;;
12468 esac
12469 else
12470   if test "$cross_compiling" = yes; then
12471   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12472 See \`config.log' for more details." >&5
12473 echo "$as_me: error: cannot run test program while cross compiling
12474 See \`config.log' for more details." >&2;}
12475    { (exit 1); exit 1; }; }
12476 else
12477   cat >conftest.$ac_ext <<_ACEOF
12478 #line $LINENO "configure"
12479 /* confdefs.h.  */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h.  */
12484 $ac_includes_default
12485 long longval () { return (long) (sizeof (short int)); }
12486 unsigned long ulongval () { return (long) (sizeof (short int)); }
12487 #include <stdio.h>
12488 #include <stdlib.h>
12489 int
12490 main ()
12491 {
12492
12493   FILE *f = fopen ("conftest.val", "w");
12494   if (! f)
12495     exit (1);
12496   if (((long) (sizeof (short int))) < 0)
12497     {
12498       long i = longval ();
12499       if (i != ((long) (sizeof (short int))))
12500         exit (1);
12501       fprintf (f, "%ld\n", i);
12502     }
12503   else
12504     {
12505       unsigned long i = ulongval ();
12506       if (i != ((long) (sizeof (short int))))
12507         exit (1);
12508       fprintf (f, "%lu\n", i);
12509     }
12510   exit (ferror (f) || fclose (f) != 0);
12511
12512   ;
12513   return 0;
12514 }
12515 _ACEOF
12516 rm -f conftest$ac_exeext
12517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12518   (eval $ac_link) 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523   (eval $ac_try) 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; }; then
12527   ac_cv_sizeof_short_int=`cat conftest.val`
12528 else
12529   echo "$as_me: program exited with status $ac_status" >&5
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12532
12533 ( exit $ac_status )
12534 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12535 See \`config.log' for more details." >&5
12536 echo "$as_me: error: cannot compute sizeof (short int), 77
12537 See \`config.log' for more details." >&2;}
12538    { (exit 1); exit 1; }; }
12539 fi
12540 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12541 fi
12542 fi
12543 rm -f conftest.val
12544 else
12545   ac_cv_sizeof_short_int=0
12546 fi
12547 fi
12548 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12549 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12550 cat >>confdefs.h <<_ACEOF
12551 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12552 _ACEOF
12553
12554
12555 echo "$as_me:$LINENO: checking for int" >&5
12556 echo $ECHO_N "checking for int... $ECHO_C" >&6
12557 if test "${ac_cv_type_int+set}" = set; then
12558   echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560   cat >conftest.$ac_ext <<_ACEOF
12561 #line $LINENO "configure"
12562 /* confdefs.h.  */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h.  */
12567 $ac_includes_default
12568 int
12569 main ()
12570 {
12571 if ((int *) 0)
12572   return 0;
12573 if (sizeof (int))
12574   return 0;
12575   ;
12576   return 0;
12577 }
12578 _ACEOF
12579 rm -f conftest.$ac_objext
12580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12581   (eval $ac_compile) 2>&5
12582   ac_status=$?
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); } &&
12585          { ac_try='test -s conftest.$ac_objext'
12586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587   (eval $ac_try) 2>&5
12588   ac_status=$?
12589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); }; }; then
12591   ac_cv_type_int=yes
12592 else
12593   echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12595
12596 ac_cv_type_int=no
12597 fi
12598 rm -f conftest.$ac_objext conftest.$ac_ext
12599 fi
12600 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12601 echo "${ECHO_T}$ac_cv_type_int" >&6
12602
12603 echo "$as_me:$LINENO: checking size of int" >&5
12604 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12605 if test "${ac_cv_sizeof_int+set}" = set; then
12606   echo $ECHO_N "(cached) $ECHO_C" >&6
12607 else
12608   if test "$ac_cv_type_int" = yes; then
12609   # The cast to unsigned long works around a bug in the HP C Compiler
12610   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12611   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12612   # This bug is HP SR number 8606223364.
12613   if test "$cross_compiling" = yes; then
12614   # Depending upon the size, compute the lo and hi bounds.
12615 cat >conftest.$ac_ext <<_ACEOF
12616 #line $LINENO "configure"
12617 /* confdefs.h.  */
12618 _ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h.  */
12622 $ac_includes_default
12623 int
12624 main ()
12625 {
12626 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12627 test_array [0] = 0
12628
12629   ;
12630   return 0;
12631 }
12632 _ACEOF
12633 rm -f conftest.$ac_objext
12634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12635   (eval $ac_compile) 2>&5
12636   ac_status=$?
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); } &&
12639          { ac_try='test -s conftest.$ac_objext'
12640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641   (eval $ac_try) 2>&5
12642   ac_status=$?
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); }; }; then
12645   ac_lo=0 ac_mid=0
12646   while :; do
12647     cat >conftest.$ac_ext <<_ACEOF
12648 #line $LINENO "configure"
12649 /* confdefs.h.  */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h.  */
12654 $ac_includes_default
12655 int
12656 main ()
12657 {
12658 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12659 test_array [0] = 0
12660
12661   ;
12662   return 0;
12663 }
12664 _ACEOF
12665 rm -f conftest.$ac_objext
12666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667   (eval $ac_compile) 2>&5
12668   ac_status=$?
12669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); } &&
12671          { ac_try='test -s conftest.$ac_objext'
12672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673   (eval $ac_try) 2>&5
12674   ac_status=$?
12675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676   (exit $ac_status); }; }; then
12677   ac_hi=$ac_mid; break
12678 else
12679   echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12681
12682 ac_lo=`expr $ac_mid + 1`
12683                     if test $ac_lo -le $ac_mid; then
12684                       ac_lo= ac_hi=
12685                       break
12686                     fi
12687                     ac_mid=`expr 2 '*' $ac_mid + 1`
12688 fi
12689 rm -f conftest.$ac_objext conftest.$ac_ext
12690   done
12691 else
12692   echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695 cat >conftest.$ac_ext <<_ACEOF
12696 #line $LINENO "configure"
12697 /* confdefs.h.  */
12698 _ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h.  */
12702 $ac_includes_default
12703 int
12704 main ()
12705 {
12706 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12707 test_array [0] = 0
12708
12709   ;
12710   return 0;
12711 }
12712 _ACEOF
12713 rm -f conftest.$ac_objext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12715   (eval $ac_compile) 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); } &&
12719          { ac_try='test -s conftest.$ac_objext'
12720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721   (eval $ac_try) 2>&5
12722   ac_status=$?
12723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724   (exit $ac_status); }; }; then
12725   ac_hi=-1 ac_mid=-1
12726   while :; do
12727     cat >conftest.$ac_ext <<_ACEOF
12728 #line $LINENO "configure"
12729 /* confdefs.h.  */
12730 _ACEOF
12731 cat confdefs.h >>conftest.$ac_ext
12732 cat >>conftest.$ac_ext <<_ACEOF
12733 /* end confdefs.h.  */
12734 $ac_includes_default
12735 int
12736 main ()
12737 {
12738 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12739 test_array [0] = 0
12740
12741   ;
12742   return 0;
12743 }
12744 _ACEOF
12745 rm -f conftest.$ac_objext
12746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12747   (eval $ac_compile) 2>&5
12748   ac_status=$?
12749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); } &&
12751          { ac_try='test -s conftest.$ac_objext'
12752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753   (eval $ac_try) 2>&5
12754   ac_status=$?
12755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756   (exit $ac_status); }; }; then
12757   ac_lo=$ac_mid; break
12758 else
12759   echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12761
12762 ac_hi=`expr '(' $ac_mid ')' - 1`
12763                        if test $ac_mid -le $ac_hi; then
12764                          ac_lo= ac_hi=
12765                          break
12766                        fi
12767                        ac_mid=`expr 2 '*' $ac_mid`
12768 fi
12769 rm -f conftest.$ac_objext conftest.$ac_ext
12770   done
12771 else
12772   echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12774
12775 ac_lo= ac_hi=
12776 fi
12777 rm -f conftest.$ac_objext conftest.$ac_ext
12778 fi
12779 rm -f conftest.$ac_objext conftest.$ac_ext
12780 # Binary search between lo and hi bounds.
12781 while test "x$ac_lo" != "x$ac_hi"; do
12782   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12783   cat >conftest.$ac_ext <<_ACEOF
12784 #line $LINENO "configure"
12785 /* confdefs.h.  */
12786 _ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h.  */
12790 $ac_includes_default
12791 int
12792 main ()
12793 {
12794 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12795 test_array [0] = 0
12796
12797   ;
12798   return 0;
12799 }
12800 _ACEOF
12801 rm -f conftest.$ac_objext
12802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12803   (eval $ac_compile) 2>&5
12804   ac_status=$?
12805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806   (exit $ac_status); } &&
12807          { ac_try='test -s conftest.$ac_objext'
12808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809   (eval $ac_try) 2>&5
12810   ac_status=$?
12811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812   (exit $ac_status); }; }; then
12813   ac_hi=$ac_mid
12814 else
12815   echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12817
12818 ac_lo=`expr '(' $ac_mid ')' + 1`
12819 fi
12820 rm -f conftest.$ac_objext conftest.$ac_ext
12821 done
12822 case $ac_lo in
12823 ?*) ac_cv_sizeof_int=$ac_lo;;
12824 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12825 See \`config.log' for more details." >&5
12826 echo "$as_me: error: cannot compute sizeof (int), 77
12827 See \`config.log' for more details." >&2;}
12828    { (exit 1); exit 1; }; } ;;
12829 esac
12830 else
12831   if test "$cross_compiling" = yes; then
12832   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12833 See \`config.log' for more details." >&5
12834 echo "$as_me: error: cannot run test program while cross compiling
12835 See \`config.log' for more details." >&2;}
12836    { (exit 1); exit 1; }; }
12837 else
12838   cat >conftest.$ac_ext <<_ACEOF
12839 #line $LINENO "configure"
12840 /* confdefs.h.  */
12841 _ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h.  */
12845 $ac_includes_default
12846 long longval () { return (long) (sizeof (int)); }
12847 unsigned long ulongval () { return (long) (sizeof (int)); }
12848 #include <stdio.h>
12849 #include <stdlib.h>
12850 int
12851 main ()
12852 {
12853
12854   FILE *f = fopen ("conftest.val", "w");
12855   if (! f)
12856     exit (1);
12857   if (((long) (sizeof (int))) < 0)
12858     {
12859       long i = longval ();
12860       if (i != ((long) (sizeof (int))))
12861         exit (1);
12862       fprintf (f, "%ld\n", i);
12863     }
12864   else
12865     {
12866       unsigned long i = ulongval ();
12867       if (i != ((long) (sizeof (int))))
12868         exit (1);
12869       fprintf (f, "%lu\n", i);
12870     }
12871   exit (ferror (f) || fclose (f) != 0);
12872
12873   ;
12874   return 0;
12875 }
12876 _ACEOF
12877 rm -f conftest$ac_exeext
12878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12879   (eval $ac_link) 2>&5
12880   ac_status=$?
12881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884   (eval $ac_try) 2>&5
12885   ac_status=$?
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); }; }; then
12888   ac_cv_sizeof_int=`cat conftest.val`
12889 else
12890   echo "$as_me: program exited with status $ac_status" >&5
12891 echo "$as_me: failed program was:" >&5
12892 sed 's/^/| /' conftest.$ac_ext >&5
12893
12894 ( exit $ac_status )
12895 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12896 See \`config.log' for more details." >&5
12897 echo "$as_me: error: cannot compute sizeof (int), 77
12898 See \`config.log' for more details." >&2;}
12899    { (exit 1); exit 1; }; }
12900 fi
12901 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12902 fi
12903 fi
12904 rm -f conftest.val
12905 else
12906   ac_cv_sizeof_int=0
12907 fi
12908 fi
12909 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12910 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12911 cat >>confdefs.h <<_ACEOF
12912 #define SIZEOF_INT $ac_cv_sizeof_int
12913 _ACEOF
12914
12915
12916 echo "$as_me:$LINENO: checking for long int" >&5
12917 echo $ECHO_N "checking for long int... $ECHO_C" >&6
12918 if test "${ac_cv_type_long_int+set}" = set; then
12919   echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921   cat >conftest.$ac_ext <<_ACEOF
12922 #line $LINENO "configure"
12923 /* confdefs.h.  */
12924 _ACEOF
12925 cat confdefs.h >>conftest.$ac_ext
12926 cat >>conftest.$ac_ext <<_ACEOF
12927 /* end confdefs.h.  */
12928 $ac_includes_default
12929 int
12930 main ()
12931 {
12932 if ((long int *) 0)
12933   return 0;
12934 if (sizeof (long int))
12935   return 0;
12936   ;
12937   return 0;
12938 }
12939 _ACEOF
12940 rm -f conftest.$ac_objext
12941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12942   (eval $ac_compile) 2>&5
12943   ac_status=$?
12944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945   (exit $ac_status); } &&
12946          { ac_try='test -s conftest.$ac_objext'
12947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948   (eval $ac_try) 2>&5
12949   ac_status=$?
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); }; }; then
12952   ac_cv_type_long_int=yes
12953 else
12954   echo "$as_me: failed program was:" >&5
12955 sed 's/^/| /' conftest.$ac_ext >&5
12956
12957 ac_cv_type_long_int=no
12958 fi
12959 rm -f conftest.$ac_objext conftest.$ac_ext
12960 fi
12961 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
12962 echo "${ECHO_T}$ac_cv_type_long_int" >&6
12963
12964 echo "$as_me:$LINENO: checking size of long int" >&5
12965 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
12966 if test "${ac_cv_sizeof_long_int+set}" = set; then
12967   echo $ECHO_N "(cached) $ECHO_C" >&6
12968 else
12969   if test "$ac_cv_type_long_int" = yes; then
12970   # The cast to unsigned long works around a bug in the HP C Compiler
12971   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12972   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12973   # This bug is HP SR number 8606223364.
12974   if test "$cross_compiling" = yes; then
12975   # Depending upon the size, compute the lo and hi bounds.
12976 cat >conftest.$ac_ext <<_ACEOF
12977 #line $LINENO "configure"
12978 /* confdefs.h.  */
12979 _ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h.  */
12983 $ac_includes_default
12984 int
12985 main ()
12986 {
12987 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
12988 test_array [0] = 0
12989
12990   ;
12991   return 0;
12992 }
12993 _ACEOF
12994 rm -f conftest.$ac_objext
12995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12996   (eval $ac_compile) 2>&5
12997   ac_status=$?
12998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999   (exit $ac_status); } &&
13000          { ac_try='test -s conftest.$ac_objext'
13001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13002   (eval $ac_try) 2>&5
13003   ac_status=$?
13004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005   (exit $ac_status); }; }; then
13006   ac_lo=0 ac_mid=0
13007   while :; do
13008     cat >conftest.$ac_ext <<_ACEOF
13009 #line $LINENO "configure"
13010 /* confdefs.h.  */
13011 _ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h.  */
13015 $ac_includes_default
13016 int
13017 main ()
13018 {
13019 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13020 test_array [0] = 0
13021
13022   ;
13023   return 0;
13024 }
13025 _ACEOF
13026 rm -f conftest.$ac_objext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13028   (eval $ac_compile) 2>&5
13029   ac_status=$?
13030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031   (exit $ac_status); } &&
13032          { ac_try='test -s conftest.$ac_objext'
13033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034   (eval $ac_try) 2>&5
13035   ac_status=$?
13036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037   (exit $ac_status); }; }; then
13038   ac_hi=$ac_mid; break
13039 else
13040   echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13042
13043 ac_lo=`expr $ac_mid + 1`
13044                     if test $ac_lo -le $ac_mid; then
13045                       ac_lo= ac_hi=
13046                       break
13047                     fi
13048                     ac_mid=`expr 2 '*' $ac_mid + 1`
13049 fi
13050 rm -f conftest.$ac_objext conftest.$ac_ext
13051   done
13052 else
13053   echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13055
13056 cat >conftest.$ac_ext <<_ACEOF
13057 #line $LINENO "configure"
13058 /* confdefs.h.  */
13059 _ACEOF
13060 cat confdefs.h >>conftest.$ac_ext
13061 cat >>conftest.$ac_ext <<_ACEOF
13062 /* end confdefs.h.  */
13063 $ac_includes_default
13064 int
13065 main ()
13066 {
13067 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13068 test_array [0] = 0
13069
13070   ;
13071   return 0;
13072 }
13073 _ACEOF
13074 rm -f conftest.$ac_objext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13076   (eval $ac_compile) 2>&5
13077   ac_status=$?
13078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079   (exit $ac_status); } &&
13080          { ac_try='test -s conftest.$ac_objext'
13081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082   (eval $ac_try) 2>&5
13083   ac_status=$?
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); }; }; then
13086   ac_hi=-1 ac_mid=-1
13087   while :; do
13088     cat >conftest.$ac_ext <<_ACEOF
13089 #line $LINENO "configure"
13090 /* confdefs.h.  */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h.  */
13095 $ac_includes_default
13096 int
13097 main ()
13098 {
13099 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13100 test_array [0] = 0
13101
13102   ;
13103   return 0;
13104 }
13105 _ACEOF
13106 rm -f conftest.$ac_objext
13107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13108   (eval $ac_compile) 2>&5
13109   ac_status=$?
13110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111   (exit $ac_status); } &&
13112          { ac_try='test -s conftest.$ac_objext'
13113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114   (eval $ac_try) 2>&5
13115   ac_status=$?
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); }; }; then
13118   ac_lo=$ac_mid; break
13119 else
13120   echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.$ac_ext >&5
13122
13123 ac_hi=`expr '(' $ac_mid ')' - 1`
13124                        if test $ac_mid -le $ac_hi; then
13125                          ac_lo= ac_hi=
13126                          break
13127                        fi
13128                        ac_mid=`expr 2 '*' $ac_mid`
13129 fi
13130 rm -f conftest.$ac_objext conftest.$ac_ext
13131   done
13132 else
13133   echo "$as_me: failed program was:" >&5
13134 sed 's/^/| /' conftest.$ac_ext >&5
13135
13136 ac_lo= ac_hi=
13137 fi
13138 rm -f conftest.$ac_objext conftest.$ac_ext
13139 fi
13140 rm -f conftest.$ac_objext conftest.$ac_ext
13141 # Binary search between lo and hi bounds.
13142 while test "x$ac_lo" != "x$ac_hi"; do
13143   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13144   cat >conftest.$ac_ext <<_ACEOF
13145 #line $LINENO "configure"
13146 /* confdefs.h.  */
13147 _ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h.  */
13151 $ac_includes_default
13152 int
13153 main ()
13154 {
13155 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13156 test_array [0] = 0
13157
13158   ;
13159   return 0;
13160 }
13161 _ACEOF
13162 rm -f conftest.$ac_objext
13163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13164   (eval $ac_compile) 2>&5
13165   ac_status=$?
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); } &&
13168          { ac_try='test -s conftest.$ac_objext'
13169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170   (eval $ac_try) 2>&5
13171   ac_status=$?
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); }; }; then
13174   ac_hi=$ac_mid
13175 else
13176   echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13178
13179 ac_lo=`expr '(' $ac_mid ')' + 1`
13180 fi
13181 rm -f conftest.$ac_objext conftest.$ac_ext
13182 done
13183 case $ac_lo in
13184 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13185 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13186 See \`config.log' for more details." >&5
13187 echo "$as_me: error: cannot compute sizeof (long int), 77
13188 See \`config.log' for more details." >&2;}
13189    { (exit 1); exit 1; }; } ;;
13190 esac
13191 else
13192   if test "$cross_compiling" = yes; then
13193   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13194 See \`config.log' for more details." >&5
13195 echo "$as_me: error: cannot run test program while cross compiling
13196 See \`config.log' for more details." >&2;}
13197    { (exit 1); exit 1; }; }
13198 else
13199   cat >conftest.$ac_ext <<_ACEOF
13200 #line $LINENO "configure"
13201 /* confdefs.h.  */
13202 _ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h.  */
13206 $ac_includes_default
13207 long longval () { return (long) (sizeof (long int)); }
13208 unsigned long ulongval () { return (long) (sizeof (long int)); }
13209 #include <stdio.h>
13210 #include <stdlib.h>
13211 int
13212 main ()
13213 {
13214
13215   FILE *f = fopen ("conftest.val", "w");
13216   if (! f)
13217     exit (1);
13218   if (((long) (sizeof (long int))) < 0)
13219     {
13220       long i = longval ();
13221       if (i != ((long) (sizeof (long int))))
13222         exit (1);
13223       fprintf (f, "%ld\n", i);
13224     }
13225   else
13226     {
13227       unsigned long i = ulongval ();
13228       if (i != ((long) (sizeof (long int))))
13229         exit (1);
13230       fprintf (f, "%lu\n", i);
13231     }
13232   exit (ferror (f) || fclose (f) != 0);
13233
13234   ;
13235   return 0;
13236 }
13237 _ACEOF
13238 rm -f conftest$ac_exeext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13240   (eval $ac_link) 2>&5
13241   ac_status=$?
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245   (eval $ac_try) 2>&5
13246   ac_status=$?
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); }; }; then
13249   ac_cv_sizeof_long_int=`cat conftest.val`
13250 else
13251   echo "$as_me: program exited with status $ac_status" >&5
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13254
13255 ( exit $ac_status )
13256 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13257 See \`config.log' for more details." >&5
13258 echo "$as_me: error: cannot compute sizeof (long int), 77
13259 See \`config.log' for more details." >&2;}
13260    { (exit 1); exit 1; }; }
13261 fi
13262 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13263 fi
13264 fi
13265 rm -f conftest.val
13266 else
13267   ac_cv_sizeof_long_int=0
13268 fi
13269 fi
13270 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13271 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13272 cat >>confdefs.h <<_ACEOF
13273 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13274 _ACEOF
13275
13276
13277 echo "$as_me:$LINENO: checking for long long int" >&5
13278 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13279 if test "${ac_cv_type_long_long_int+set}" = set; then
13280   echo $ECHO_N "(cached) $ECHO_C" >&6
13281 else
13282   cat >conftest.$ac_ext <<_ACEOF
13283 #line $LINENO "configure"
13284 /* confdefs.h.  */
13285 _ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h.  */
13289 $ac_includes_default
13290 int
13291 main ()
13292 {
13293 if ((long long int *) 0)
13294   return 0;
13295 if (sizeof (long long int))
13296   return 0;
13297   ;
13298   return 0;
13299 }
13300 _ACEOF
13301 rm -f conftest.$ac_objext
13302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13303   (eval $ac_compile) 2>&5
13304   ac_status=$?
13305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306   (exit $ac_status); } &&
13307          { ac_try='test -s conftest.$ac_objext'
13308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309   (eval $ac_try) 2>&5
13310   ac_status=$?
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); }; }; then
13313   ac_cv_type_long_long_int=yes
13314 else
13315   echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13317
13318 ac_cv_type_long_long_int=no
13319 fi
13320 rm -f conftest.$ac_objext conftest.$ac_ext
13321 fi
13322 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13323 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13324
13325 echo "$as_me:$LINENO: checking size of long long int" >&5
13326 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13327 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13328   echo $ECHO_N "(cached) $ECHO_C" >&6
13329 else
13330   if test "$ac_cv_type_long_long_int" = yes; then
13331   # The cast to unsigned long works around a bug in the HP C Compiler
13332   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13333   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13334   # This bug is HP SR number 8606223364.
13335   if test "$cross_compiling" = yes; then
13336   # Depending upon the size, compute the lo and hi bounds.
13337 cat >conftest.$ac_ext <<_ACEOF
13338 #line $LINENO "configure"
13339 /* confdefs.h.  */
13340 _ACEOF
13341 cat confdefs.h >>conftest.$ac_ext
13342 cat >>conftest.$ac_ext <<_ACEOF
13343 /* end confdefs.h.  */
13344 $ac_includes_default
13345 int
13346 main ()
13347 {
13348 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13349 test_array [0] = 0
13350
13351   ;
13352   return 0;
13353 }
13354 _ACEOF
13355 rm -f conftest.$ac_objext
13356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13357   (eval $ac_compile) 2>&5
13358   ac_status=$?
13359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); } &&
13361          { ac_try='test -s conftest.$ac_objext'
13362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363   (eval $ac_try) 2>&5
13364   ac_status=$?
13365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366   (exit $ac_status); }; }; then
13367   ac_lo=0 ac_mid=0
13368   while :; do
13369     cat >conftest.$ac_ext <<_ACEOF
13370 #line $LINENO "configure"
13371 /* confdefs.h.  */
13372 _ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h.  */
13376 $ac_includes_default
13377 int
13378 main ()
13379 {
13380 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13381 test_array [0] = 0
13382
13383   ;
13384   return 0;
13385 }
13386 _ACEOF
13387 rm -f conftest.$ac_objext
13388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13389   (eval $ac_compile) 2>&5
13390   ac_status=$?
13391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392   (exit $ac_status); } &&
13393          { ac_try='test -s conftest.$ac_objext'
13394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395   (eval $ac_try) 2>&5
13396   ac_status=$?
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); }; }; then
13399   ac_hi=$ac_mid; break
13400 else
13401   echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13403
13404 ac_lo=`expr $ac_mid + 1`
13405                     if test $ac_lo -le $ac_mid; then
13406                       ac_lo= ac_hi=
13407                       break
13408                     fi
13409                     ac_mid=`expr 2 '*' $ac_mid + 1`
13410 fi
13411 rm -f conftest.$ac_objext conftest.$ac_ext
13412   done
13413 else
13414   echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13416
13417 cat >conftest.$ac_ext <<_ACEOF
13418 #line $LINENO "configure"
13419 /* confdefs.h.  */
13420 _ACEOF
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h.  */
13424 $ac_includes_default
13425 int
13426 main ()
13427 {
13428 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13429 test_array [0] = 0
13430
13431   ;
13432   return 0;
13433 }
13434 _ACEOF
13435 rm -f conftest.$ac_objext
13436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13437   (eval $ac_compile) 2>&5
13438   ac_status=$?
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); } &&
13441          { ac_try='test -s conftest.$ac_objext'
13442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443   (eval $ac_try) 2>&5
13444   ac_status=$?
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); }; }; then
13447   ac_hi=-1 ac_mid=-1
13448   while :; do
13449     cat >conftest.$ac_ext <<_ACEOF
13450 #line $LINENO "configure"
13451 /* confdefs.h.  */
13452 _ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h.  */
13456 $ac_includes_default
13457 int
13458 main ()
13459 {
13460 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13461 test_array [0] = 0
13462
13463   ;
13464   return 0;
13465 }
13466 _ACEOF
13467 rm -f conftest.$ac_objext
13468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13469   (eval $ac_compile) 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); } &&
13473          { ac_try='test -s conftest.$ac_objext'
13474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475   (eval $ac_try) 2>&5
13476   ac_status=$?
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); }; }; then
13479   ac_lo=$ac_mid; break
13480 else
13481   echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13483
13484 ac_hi=`expr '(' $ac_mid ')' - 1`
13485                        if test $ac_mid -le $ac_hi; then
13486                          ac_lo= ac_hi=
13487                          break
13488                        fi
13489                        ac_mid=`expr 2 '*' $ac_mid`
13490 fi
13491 rm -f conftest.$ac_objext conftest.$ac_ext
13492   done
13493 else
13494   echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497 ac_lo= ac_hi=
13498 fi
13499 rm -f conftest.$ac_objext conftest.$ac_ext
13500 fi
13501 rm -f conftest.$ac_objext conftest.$ac_ext
13502 # Binary search between lo and hi bounds.
13503 while test "x$ac_lo" != "x$ac_hi"; do
13504   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13505   cat >conftest.$ac_ext <<_ACEOF
13506 #line $LINENO "configure"
13507 /* confdefs.h.  */
13508 _ACEOF
13509 cat confdefs.h >>conftest.$ac_ext
13510 cat >>conftest.$ac_ext <<_ACEOF
13511 /* end confdefs.h.  */
13512 $ac_includes_default
13513 int
13514 main ()
13515 {
13516 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13517 test_array [0] = 0
13518
13519   ;
13520   return 0;
13521 }
13522 _ACEOF
13523 rm -f conftest.$ac_objext
13524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13525   (eval $ac_compile) 2>&5
13526   ac_status=$?
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); } &&
13529          { ac_try='test -s conftest.$ac_objext'
13530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531   (eval $ac_try) 2>&5
13532   ac_status=$?
13533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); }; }; then
13535   ac_hi=$ac_mid
13536 else
13537   echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540 ac_lo=`expr '(' $ac_mid ')' + 1`
13541 fi
13542 rm -f conftest.$ac_objext conftest.$ac_ext
13543 done
13544 case $ac_lo in
13545 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13546 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13547 See \`config.log' for more details." >&5
13548 echo "$as_me: error: cannot compute sizeof (long long int), 77
13549 See \`config.log' for more details." >&2;}
13550    { (exit 1); exit 1; }; } ;;
13551 esac
13552 else
13553   if test "$cross_compiling" = yes; then
13554   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13555 See \`config.log' for more details." >&5
13556 echo "$as_me: error: cannot run test program while cross compiling
13557 See \`config.log' for more details." >&2;}
13558    { (exit 1); exit 1; }; }
13559 else
13560   cat >conftest.$ac_ext <<_ACEOF
13561 #line $LINENO "configure"
13562 /* confdefs.h.  */
13563 _ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h.  */
13567 $ac_includes_default
13568 long longval () { return (long) (sizeof (long long int)); }
13569 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13570 #include <stdio.h>
13571 #include <stdlib.h>
13572 int
13573 main ()
13574 {
13575
13576   FILE *f = fopen ("conftest.val", "w");
13577   if (! f)
13578     exit (1);
13579   if (((long) (sizeof (long long int))) < 0)
13580     {
13581       long i = longval ();
13582       if (i != ((long) (sizeof (long long int))))
13583         exit (1);
13584       fprintf (f, "%ld\n", i);
13585     }
13586   else
13587     {
13588       unsigned long i = ulongval ();
13589       if (i != ((long) (sizeof (long long int))))
13590         exit (1);
13591       fprintf (f, "%lu\n", i);
13592     }
13593   exit (ferror (f) || fclose (f) != 0);
13594
13595   ;
13596   return 0;
13597 }
13598 _ACEOF
13599 rm -f conftest$ac_exeext
13600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13601   (eval $ac_link) 2>&5
13602   ac_status=$?
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606   (eval $ac_try) 2>&5
13607   ac_status=$?
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); }; }; then
13610   ac_cv_sizeof_long_long_int=`cat conftest.val`
13611 else
13612   echo "$as_me: program exited with status $ac_status" >&5
13613 echo "$as_me: failed program was:" >&5
13614 sed 's/^/| /' conftest.$ac_ext >&5
13615
13616 ( exit $ac_status )
13617 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13618 See \`config.log' for more details." >&5
13619 echo "$as_me: error: cannot compute sizeof (long long int), 77
13620 See \`config.log' for more details." >&2;}
13621    { (exit 1); exit 1; }; }
13622 fi
13623 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13624 fi
13625 fi
13626 rm -f conftest.val
13627 else
13628   ac_cv_sizeof_long_long_int=0
13629 fi
13630 fi
13631 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13632 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13633 cat >>confdefs.h <<_ACEOF
13634 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13635 _ACEOF
13636
13637
13638 echo "$as_me:$LINENO: checking for int *" >&5
13639 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13640 if test "${ac_cv_type_int_p+set}" = set; then
13641   echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643   cat >conftest.$ac_ext <<_ACEOF
13644 #line $LINENO "configure"
13645 /* confdefs.h.  */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h.  */
13650 $ac_includes_default
13651 int
13652 main ()
13653 {
13654 if ((int * *) 0)
13655   return 0;
13656 if (sizeof (int *))
13657   return 0;
13658   ;
13659   return 0;
13660 }
13661 _ACEOF
13662 rm -f conftest.$ac_objext
13663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13664   (eval $ac_compile) 2>&5
13665   ac_status=$?
13666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667   (exit $ac_status); } &&
13668          { ac_try='test -s conftest.$ac_objext'
13669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670   (eval $ac_try) 2>&5
13671   ac_status=$?
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); }; }; then
13674   ac_cv_type_int_p=yes
13675 else
13676   echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13678
13679 ac_cv_type_int_p=no
13680 fi
13681 rm -f conftest.$ac_objext conftest.$ac_ext
13682 fi
13683 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13684 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13685
13686 echo "$as_me:$LINENO: checking size of int *" >&5
13687 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13688 if test "${ac_cv_sizeof_int_p+set}" = set; then
13689   echo $ECHO_N "(cached) $ECHO_C" >&6
13690 else
13691   if test "$ac_cv_type_int_p" = yes; then
13692   # The cast to unsigned long works around a bug in the HP C Compiler
13693   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13694   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13695   # This bug is HP SR number 8606223364.
13696   if test "$cross_compiling" = yes; then
13697   # Depending upon the size, compute the lo and hi bounds.
13698 cat >conftest.$ac_ext <<_ACEOF
13699 #line $LINENO "configure"
13700 /* confdefs.h.  */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h.  */
13705 $ac_includes_default
13706 int
13707 main ()
13708 {
13709 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13710 test_array [0] = 0
13711
13712   ;
13713   return 0;
13714 }
13715 _ACEOF
13716 rm -f conftest.$ac_objext
13717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13718   (eval $ac_compile) 2>&5
13719   ac_status=$?
13720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721   (exit $ac_status); } &&
13722          { ac_try='test -s conftest.$ac_objext'
13723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724   (eval $ac_try) 2>&5
13725   ac_status=$?
13726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727   (exit $ac_status); }; }; then
13728   ac_lo=0 ac_mid=0
13729   while :; do
13730     cat >conftest.$ac_ext <<_ACEOF
13731 #line $LINENO "configure"
13732 /* confdefs.h.  */
13733 _ACEOF
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h.  */
13737 $ac_includes_default
13738 int
13739 main ()
13740 {
13741 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13742 test_array [0] = 0
13743
13744   ;
13745   return 0;
13746 }
13747 _ACEOF
13748 rm -f conftest.$ac_objext
13749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13750   (eval $ac_compile) 2>&5
13751   ac_status=$?
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); } &&
13754          { ac_try='test -s conftest.$ac_objext'
13755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756   (eval $ac_try) 2>&5
13757   ac_status=$?
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); }; }; then
13760   ac_hi=$ac_mid; break
13761 else
13762   echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.$ac_ext >&5
13764
13765 ac_lo=`expr $ac_mid + 1`
13766                     if test $ac_lo -le $ac_mid; then
13767                       ac_lo= ac_hi=
13768                       break
13769                     fi
13770                     ac_mid=`expr 2 '*' $ac_mid + 1`
13771 fi
13772 rm -f conftest.$ac_objext conftest.$ac_ext
13773   done
13774 else
13775   echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13777
13778 cat >conftest.$ac_ext <<_ACEOF
13779 #line $LINENO "configure"
13780 /* confdefs.h.  */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h.  */
13785 $ac_includes_default
13786 int
13787 main ()
13788 {
13789 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13790 test_array [0] = 0
13791
13792   ;
13793   return 0;
13794 }
13795 _ACEOF
13796 rm -f conftest.$ac_objext
13797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13798   (eval $ac_compile) 2>&5
13799   ac_status=$?
13800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801   (exit $ac_status); } &&
13802          { ac_try='test -s conftest.$ac_objext'
13803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804   (eval $ac_try) 2>&5
13805   ac_status=$?
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); }; }; then
13808   ac_hi=-1 ac_mid=-1
13809   while :; do
13810     cat >conftest.$ac_ext <<_ACEOF
13811 #line $LINENO "configure"
13812 /* confdefs.h.  */
13813 _ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h.  */
13817 $ac_includes_default
13818 int
13819 main ()
13820 {
13821 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13822 test_array [0] = 0
13823
13824   ;
13825   return 0;
13826 }
13827 _ACEOF
13828 rm -f conftest.$ac_objext
13829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13830   (eval $ac_compile) 2>&5
13831   ac_status=$?
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); } &&
13834          { ac_try='test -s conftest.$ac_objext'
13835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836   (eval $ac_try) 2>&5
13837   ac_status=$?
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); }; }; then
13840   ac_lo=$ac_mid; break
13841 else
13842   echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13844
13845 ac_hi=`expr '(' $ac_mid ')' - 1`
13846                        if test $ac_mid -le $ac_hi; then
13847                          ac_lo= ac_hi=
13848                          break
13849                        fi
13850                        ac_mid=`expr 2 '*' $ac_mid`
13851 fi
13852 rm -f conftest.$ac_objext conftest.$ac_ext
13853   done
13854 else
13855   echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13857
13858 ac_lo= ac_hi=
13859 fi
13860 rm -f conftest.$ac_objext conftest.$ac_ext
13861 fi
13862 rm -f conftest.$ac_objext conftest.$ac_ext
13863 # Binary search between lo and hi bounds.
13864 while test "x$ac_lo" != "x$ac_hi"; do
13865   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13866   cat >conftest.$ac_ext <<_ACEOF
13867 #line $LINENO "configure"
13868 /* confdefs.h.  */
13869 _ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h.  */
13873 $ac_includes_default
13874 int
13875 main ()
13876 {
13877 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13878 test_array [0] = 0
13879
13880   ;
13881   return 0;
13882 }
13883 _ACEOF
13884 rm -f conftest.$ac_objext
13885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13886   (eval $ac_compile) 2>&5
13887   ac_status=$?
13888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889   (exit $ac_status); } &&
13890          { ac_try='test -s conftest.$ac_objext'
13891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892   (eval $ac_try) 2>&5
13893   ac_status=$?
13894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); }; }; then
13896   ac_hi=$ac_mid
13897 else
13898   echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13900
13901 ac_lo=`expr '(' $ac_mid ')' + 1`
13902 fi
13903 rm -f conftest.$ac_objext conftest.$ac_ext
13904 done
13905 case $ac_lo in
13906 ?*) ac_cv_sizeof_int_p=$ac_lo;;
13907 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13908 See \`config.log' for more details." >&5
13909 echo "$as_me: error: cannot compute sizeof (int *), 77
13910 See \`config.log' for more details." >&2;}
13911    { (exit 1); exit 1; }; } ;;
13912 esac
13913 else
13914   if test "$cross_compiling" = yes; then
13915   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13916 See \`config.log' for more details." >&5
13917 echo "$as_me: error: cannot run test program while cross compiling
13918 See \`config.log' for more details." >&2;}
13919    { (exit 1); exit 1; }; }
13920 else
13921   cat >conftest.$ac_ext <<_ACEOF
13922 #line $LINENO "configure"
13923 /* confdefs.h.  */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h.  */
13928 $ac_includes_default
13929 long longval () { return (long) (sizeof (int *)); }
13930 unsigned long ulongval () { return (long) (sizeof (int *)); }
13931 #include <stdio.h>
13932 #include <stdlib.h>
13933 int
13934 main ()
13935 {
13936
13937   FILE *f = fopen ("conftest.val", "w");
13938   if (! f)
13939     exit (1);
13940   if (((long) (sizeof (int *))) < 0)
13941     {
13942       long i = longval ();
13943       if (i != ((long) (sizeof (int *))))
13944         exit (1);
13945       fprintf (f, "%ld\n", i);
13946     }
13947   else
13948     {
13949       unsigned long i = ulongval ();
13950       if (i != ((long) (sizeof (int *))))
13951         exit (1);
13952       fprintf (f, "%lu\n", i);
13953     }
13954   exit (ferror (f) || fclose (f) != 0);
13955
13956   ;
13957   return 0;
13958 }
13959 _ACEOF
13960 rm -f conftest$ac_exeext
13961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13962   (eval $ac_link) 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967   (eval $ac_try) 2>&5
13968   ac_status=$?
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); }; }; then
13971   ac_cv_sizeof_int_p=`cat conftest.val`
13972 else
13973   echo "$as_me: program exited with status $ac_status" >&5
13974 echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13976
13977 ( exit $ac_status )
13978 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13979 See \`config.log' for more details." >&5
13980 echo "$as_me: error: cannot compute sizeof (int *), 77
13981 See \`config.log' for more details." >&2;}
13982    { (exit 1); exit 1; }; }
13983 fi
13984 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13985 fi
13986 fi
13987 rm -f conftest.val
13988 else
13989   ac_cv_sizeof_int_p=0
13990 fi
13991 fi
13992 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13993 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
13994 cat >>confdefs.h <<_ACEOF
13995 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13996 _ACEOF
13997
13998
13999
14000 # Check for sys/types.h types
14001 echo "$as_me:$LINENO: checking for u_int type" >&5
14002 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14003 if test "${ac_cv_have_u_int+set}" = set; then
14004   echo $ECHO_N "(cached) $ECHO_C" >&6
14005 else
14006
14007     cat >conftest.$ac_ext <<_ACEOF
14008 #line $LINENO "configure"
14009 /* confdefs.h.  */
14010 _ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h.  */
14014  #include <sys/types.h>
14015 int
14016 main ()
14017 {
14018  u_int a; a = 1;
14019   ;
14020   return 0;
14021 }
14022 _ACEOF
14023 rm -f conftest.$ac_objext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025   (eval $ac_compile) 2>&5
14026   ac_status=$?
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); } &&
14029          { ac_try='test -s conftest.$ac_objext'
14030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031   (eval $ac_try) 2>&5
14032   ac_status=$?
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); }; }; then
14035    ac_cv_have_u_int="yes"
14036 else
14037   echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14039
14040  ac_cv_have_u_int="no"
14041
14042 fi
14043 rm -f conftest.$ac_objext conftest.$ac_ext
14044
14045 fi
14046 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14047 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14048 if test "x$ac_cv_have_u_int" = "xyes" ; then
14049    cat >>confdefs.h <<\_ACEOF
14050 #define HAVE_U_INT 1
14051 _ACEOF
14052
14053    have_u_int=1
14054 fi
14055
14056 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14057 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14058 if test "${ac_cv_have_intmax_t+set}" = set; then
14059   echo $ECHO_N "(cached) $ECHO_C" >&6
14060 else
14061
14062    cat >conftest.$ac_ext <<_ACEOF
14063 #line $LINENO "configure"
14064 /* confdefs.h.  */
14065 _ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h.  */
14069  #include <sys/types.h>
14070 int
14071 main ()
14072 {
14073  intmax_t a; a = 1;
14074   ;
14075   return 0;
14076 }
14077 _ACEOF
14078 rm -f conftest.$ac_objext
14079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14080   (eval $ac_compile) 2>&5
14081   ac_status=$?
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); } &&
14084          { ac_try='test -s conftest.$ac_objext'
14085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086   (eval $ac_try) 2>&5
14087   ac_status=$?
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); }; }; then
14090    ac_cv_have_intmax_t="yes"
14091 else
14092   echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14094
14095
14096          cat >conftest.$ac_ext <<_ACEOF
14097 #line $LINENO "configure"
14098 /* confdefs.h.  */
14099 _ACEOF
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h.  */
14103  #include <stdint.h>
14104 int
14105 main ()
14106 {
14107  intmax_t a; a = 1;
14108   ;
14109   return 0;
14110 }
14111 _ACEOF
14112 rm -f conftest.$ac_objext
14113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14114   (eval $ac_compile) 2>&5
14115   ac_status=$?
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); } &&
14118          { ac_try='test -s conftest.$ac_objext'
14119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120   (eval $ac_try) 2>&5
14121   ac_status=$?
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); }; }; then
14124    ac_cv_have_intmax_t="yes"
14125 else
14126   echo "$as_me: failed program was:" >&5
14127 sed 's/^/| /' conftest.$ac_ext >&5
14128
14129  ac_cv_have_intmax_t="no"
14130
14131 fi
14132 rm -f conftest.$ac_objext conftest.$ac_ext
14133
14134
14135 fi
14136 rm -f conftest.$ac_objext conftest.$ac_ext
14137
14138
14139 fi
14140 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14141 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14142 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14143    cat >>confdefs.h <<\_ACEOF
14144 #define HAVE_INTMAX_T 1
14145 _ACEOF
14146
14147    have_intmax_t=1
14148 fi
14149
14150
14151 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14152 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14153 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14154   echo $ECHO_N "(cached) $ECHO_C" >&6
14155 else
14156
14157    cat >conftest.$ac_ext <<_ACEOF
14158 #line $LINENO "configure"
14159 /* confdefs.h.  */
14160 _ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h.  */
14164  #include <sys/types.h>
14165 int
14166 main ()
14167 {
14168  u_intmax_t a; a = 1;
14169   ;
14170   return 0;
14171 }
14172 _ACEOF
14173 rm -f conftest.$ac_objext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14175   (eval $ac_compile) 2>&5
14176   ac_status=$?
14177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); } &&
14179          { ac_try='test -s conftest.$ac_objext'
14180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181   (eval $ac_try) 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); }; }; then
14185    ac_cv_have_u_intmax_t="yes"
14186 else
14187   echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14189
14190
14191          cat >conftest.$ac_ext <<_ACEOF
14192 #line $LINENO "configure"
14193 /* confdefs.h.  */
14194 _ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h.  */
14198  #include <stdint.h>
14199 int
14200 main ()
14201 {
14202  u_intmax_t a; a = 1;
14203   ;
14204   return 0;
14205 }
14206 _ACEOF
14207 rm -f conftest.$ac_objext
14208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14209   (eval $ac_compile) 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); } &&
14213          { ac_try='test -s conftest.$ac_objext'
14214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215   (eval $ac_try) 2>&5
14216   ac_status=$?
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); }; }; then
14219    ac_cv_have_u_intmax_t="yes"
14220 else
14221   echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14223
14224  ac_cv_have_u_intmax_t="no"
14225
14226 fi
14227 rm -f conftest.$ac_objext conftest.$ac_ext
14228
14229
14230 fi
14231 rm -f conftest.$ac_objext conftest.$ac_ext
14232
14233 fi
14234 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14235 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14236 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14237    cat >>confdefs.h <<\_ACEOF
14238 #define HAVE_U_INTMAX_T 1
14239 _ACEOF
14240
14241    have_u_intmax_t=1
14242 fi
14243
14244
14245 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14246 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14247 if test "${ac_cv_have_intxx_t+set}" = set; then
14248   echo $ECHO_N "(cached) $ECHO_C" >&6
14249 else
14250
14251    cat >conftest.$ac_ext <<_ACEOF
14252 #line $LINENO "configure"
14253 /* confdefs.h.  */
14254 _ACEOF
14255 cat confdefs.h >>conftest.$ac_ext
14256 cat >>conftest.$ac_ext <<_ACEOF
14257 /* end confdefs.h.  */
14258  #include <sys/types.h>
14259 int
14260 main ()
14261 {
14262  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14263   ;
14264   return 0;
14265 }
14266 _ACEOF
14267 rm -f conftest.$ac_objext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14269   (eval $ac_compile) 2>&5
14270   ac_status=$?
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); } &&
14273          { ac_try='test -s conftest.$ac_objext'
14274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275   (eval $ac_try) 2>&5
14276   ac_status=$?
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); }; }; then
14279    ac_cv_have_intxx_t="yes"
14280 else
14281   echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14283
14284  ac_cv_have_intxx_t="no"
14285
14286 fi
14287 rm -f conftest.$ac_objext conftest.$ac_ext
14288
14289 fi
14290 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14291 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14292 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14293    cat >>confdefs.h <<\_ACEOF
14294 #define HAVE_INTXX_T 1
14295 _ACEOF
14296
14297    have_intxx_t=1
14298 fi
14299
14300 echo "$as_me:$LINENO: checking for int64_t type" >&5
14301 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14302 if test "${ac_cv_have_int64_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  int64_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_int64_t="yes"
14335 else
14336   echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14338
14339  ac_cv_have_int64_t="no"
14340
14341 fi
14342 rm -f conftest.$ac_objext conftest.$ac_ext
14343
14344 fi
14345 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14346 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14347 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14348    cat >>confdefs.h <<\_ACEOF
14349 #define HAVE_INT64_T 1
14350 _ACEOF
14351
14352    have_int64_t=1
14353 fi
14354
14355 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14356 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14357 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14358   echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360
14361    cat >conftest.$ac_ext <<_ACEOF
14362 #line $LINENO "configure"
14363 /* confdefs.h.  */
14364 _ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h.  */
14368  #include <sys/types.h>
14369 int
14370 main ()
14371 {
14372  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14373   ;
14374   return 0;
14375 }
14376 _ACEOF
14377 rm -f conftest.$ac_objext
14378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14379   (eval $ac_compile) 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); } &&
14383          { ac_try='test -s conftest.$ac_objext'
14384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385   (eval $ac_try) 2>&5
14386   ac_status=$?
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); }; }; then
14389    ac_cv_have_u_intxx_t="yes"
14390 else
14391   echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394  ac_cv_have_u_intxx_t="no"
14395
14396 fi
14397 rm -f conftest.$ac_objext conftest.$ac_ext
14398
14399 fi
14400 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14401 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14402 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14403    cat >>confdefs.h <<\_ACEOF
14404 #define HAVE_U_INTXX_T 1
14405 _ACEOF
14406
14407    have_u_intxx_t=1
14408 fi
14409
14410 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14411 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14412 if test "${ac_cv_have_u_int64_t+set}" = set; then
14413   echo $ECHO_N "(cached) $ECHO_C" >&6
14414 else
14415
14416    cat >conftest.$ac_ext <<_ACEOF
14417 #line $LINENO "configure"
14418 /* confdefs.h.  */
14419 _ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h.  */
14423  #include <sys/types.h>
14424 int
14425 main ()
14426 {
14427  u_int64_t a; a = 1;
14428   ;
14429   return 0;
14430 }
14431 _ACEOF
14432 rm -f conftest.$ac_objext
14433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14434   (eval $ac_compile) 2>&5
14435   ac_status=$?
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); } &&
14438          { ac_try='test -s conftest.$ac_objext'
14439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440   (eval $ac_try) 2>&5
14441   ac_status=$?
14442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443   (exit $ac_status); }; }; then
14444    ac_cv_have_u_int64_t="yes"
14445 else
14446   echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14448
14449  ac_cv_have_u_int64_t="no"
14450
14451 fi
14452 rm -f conftest.$ac_objext conftest.$ac_ext
14453
14454 fi
14455 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14456 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14457 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14458    cat >>confdefs.h <<\_ACEOF
14459 #define HAVE_U_INT64_T 1
14460 _ACEOF
14461
14462    have_u_int64_t=1
14463 fi
14464
14465 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14466            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14467 then
14468    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14469 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14470    cat >conftest.$ac_ext <<_ACEOF
14471 #line $LINENO "configure"
14472 /* confdefs.h.  */
14473 _ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h.  */
14477  #include <sys/bitypes.h>
14478 int
14479 main ()
14480 {
14481  int8_t a; int16_t b; int32_t c;
14482         u_int8_t e; u_int16_t f; u_int32_t g;
14483         a = b = c = e = f = g = 1;
14484   ;
14485   return 0;
14486 }
14487 _ACEOF
14488 rm -f conftest.$ac_objext
14489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14490   (eval $ac_compile) 2>&5
14491   ac_status=$?
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); } &&
14494          { ac_try='test -s conftest.$ac_objext'
14495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496   (eval $ac_try) 2>&5
14497   ac_status=$?
14498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499   (exit $ac_status); }; }; then
14500    cat >>confdefs.h <<\_ACEOF
14501 #define HAVE_U_INTXX_T 1
14502 _ACEOF
14503
14504         cat >>confdefs.h <<\_ACEOF
14505 #define HAVE_INTXX_T 1
14506 _ACEOF
14507
14508         cat >>confdefs.h <<\_ACEOF
14509 #define HAVE_SYS_BITYPES_H 1
14510 _ACEOF
14511
14512         echo "$as_me:$LINENO: result: yes" >&5
14513 echo "${ECHO_T}yes" >&6
14514 else
14515   echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14517
14518  echo "$as_me:$LINENO: result: no" >&5
14519 echo "${ECHO_T}no" >&6
14520
14521 fi
14522 rm -f conftest.$ac_objext conftest.$ac_ext
14523 fi
14524
14525 if test -z "$have_u_intxx_t" ; then
14526    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14527 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14528 if test "${ac_cv_have_uintxx_t+set}" = set; then
14529   echo $ECHO_N "(cached) $ECHO_C" >&6
14530 else
14531
14532       cat >conftest.$ac_ext <<_ACEOF
14533 #line $LINENO "configure"
14534 /* confdefs.h.  */
14535 _ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h.  */
14539  #include <sys/types.h>
14540 int
14541 main ()
14542 {
14543  uint8_t a; uint16_t b;
14544            uint32_t c; a = b = c = 1;
14545   ;
14546   return 0;
14547 }
14548 _ACEOF
14549 rm -f conftest.$ac_objext
14550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14551   (eval $ac_compile) 2>&5
14552   ac_status=$?
14553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554   (exit $ac_status); } &&
14555          { ac_try='test -s conftest.$ac_objext'
14556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557   (eval $ac_try) 2>&5
14558   ac_status=$?
14559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560   (exit $ac_status); }; }; then
14561    ac_cv_have_uintxx_t="yes"
14562 else
14563   echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14565
14566  ac_cv_have_uintxx_t="no"
14567
14568 fi
14569 rm -f conftest.$ac_objext conftest.$ac_ext
14570
14571 fi
14572 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14573 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14574    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14575       cat >>confdefs.h <<\_ACEOF
14576 #define HAVE_UINTXX_T 1
14577 _ACEOF
14578
14579    fi
14580 fi
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596 for ac_func in \
14597         fork \
14598         getcwd \
14599         gethostname \
14600         getpid \
14601         gettimeofday \
14602         setpgid \
14603         setpgrp \
14604         setsid \
14605         signal \
14606         strerror \
14607         strncmp \
14608         strncpy \
14609         vfprintf \
14610
14611 do
14612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14613 echo "$as_me:$LINENO: checking for $ac_func" >&5
14614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14615 if eval "test \"\${$as_ac_var+set}\" = set"; then
14616   echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618   cat >conftest.$ac_ext <<_ACEOF
14619 #line $LINENO "configure"
14620 /* confdefs.h.  */
14621 _ACEOF
14622 cat confdefs.h >>conftest.$ac_ext
14623 cat >>conftest.$ac_ext <<_ACEOF
14624 /* end confdefs.h.  */
14625 /* System header to define __stub macros and hopefully few prototypes,
14626     which can conflict with char $ac_func (); below.
14627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14628     <limits.h> exists even on freestanding compilers.  */
14629 #ifdef __STDC__
14630 # include <limits.h>
14631 #else
14632 # include <assert.h>
14633 #endif
14634 /* Override any gcc2 internal prototype to avoid an error.  */
14635 #ifdef __cplusplus
14636 extern "C"
14637 {
14638 #endif
14639 /* We use char because int might match the return type of a gcc2
14640    builtin and then its argument prototype would still apply.  */
14641 char $ac_func ();
14642 /* The GNU C library defines this for functions which it implements
14643     to always fail with ENOSYS.  Some functions are actually named
14644     something starting with __ and the normal name is an alias.  */
14645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14646 choke me
14647 #else
14648 char (*f) () = $ac_func;
14649 #endif
14650 #ifdef __cplusplus
14651 }
14652 #endif
14653
14654 int
14655 main ()
14656 {
14657 return f != $ac_func;
14658   ;
14659   return 0;
14660 }
14661 _ACEOF
14662 rm -f conftest.$ac_objext conftest$ac_exeext
14663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14664   (eval $ac_link) 2>&5
14665   ac_status=$?
14666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); } &&
14668          { ac_try='test -s conftest$ac_exeext'
14669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670   (eval $ac_try) 2>&5
14671   ac_status=$?
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); }; }; then
14674   eval "$as_ac_var=yes"
14675 else
14676   echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14678
14679 eval "$as_ac_var=no"
14680 fi
14681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14682 fi
14683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14685 if test `eval echo '${'$as_ac_var'}'` = yes; then
14686   cat >>confdefs.h <<_ACEOF
14687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14688 _ACEOF
14689
14690 else
14691   echo 'configure: cannot find needed function.'; exit 1
14692
14693 fi
14694 done
14695
14696
14697
14698 for ac_func in fchdir
14699 do
14700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14701 echo "$as_me:$LINENO: checking for $ac_func" >&5
14702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14703 if eval "test \"\${$as_ac_var+set}\" = set"; then
14704   echo $ECHO_N "(cached) $ECHO_C" >&6
14705 else
14706   cat >conftest.$ac_ext <<_ACEOF
14707 #line $LINENO "configure"
14708 /* confdefs.h.  */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h.  */
14713 /* System header to define __stub macros and hopefully few prototypes,
14714     which can conflict with char $ac_func (); below.
14715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14716     <limits.h> exists even on freestanding compilers.  */
14717 #ifdef __STDC__
14718 # include <limits.h>
14719 #else
14720 # include <assert.h>
14721 #endif
14722 /* Override any gcc2 internal prototype to avoid an error.  */
14723 #ifdef __cplusplus
14724 extern "C"
14725 {
14726 #endif
14727 /* We use char because int might match the return type of a gcc2
14728    builtin and then its argument prototype would still apply.  */
14729 char $ac_func ();
14730 /* The GNU C library defines this for functions which it implements
14731     to always fail with ENOSYS.  Some functions are actually named
14732     something starting with __ and the normal name is an alias.  */
14733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14734 choke me
14735 #else
14736 char (*f) () = $ac_func;
14737 #endif
14738 #ifdef __cplusplus
14739 }
14740 #endif
14741
14742 int
14743 main ()
14744 {
14745 return f != $ac_func;
14746   ;
14747   return 0;
14748 }
14749 _ACEOF
14750 rm -f conftest.$ac_objext conftest$ac_exeext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14752   (eval $ac_link) 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); } &&
14756          { ac_try='test -s conftest$ac_exeext'
14757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758   (eval $ac_try) 2>&5
14759   ac_status=$?
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); }; }; then
14762   eval "$as_ac_var=yes"
14763 else
14764   echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14766
14767 eval "$as_ac_var=no"
14768 fi
14769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14770 fi
14771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14773 if test `eval echo '${'$as_ac_var'}'` = yes; then
14774   cat >>confdefs.h <<_ACEOF
14775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14776 _ACEOF
14777  cat >>confdefs.h <<\_ACEOF
14778 #define HAVE_FCHDIR 1
14779 _ACEOF
14780
14781 fi
14782 done
14783
14784
14785 for ac_func in strtoll
14786 do
14787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14788 echo "$as_me:$LINENO: checking for $ac_func" >&5
14789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14790 if eval "test \"\${$as_ac_var+set}\" = set"; then
14791   echo $ECHO_N "(cached) $ECHO_C" >&6
14792 else
14793   cat >conftest.$ac_ext <<_ACEOF
14794 #line $LINENO "configure"
14795 /* confdefs.h.  */
14796 _ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h.  */
14800 /* System header to define __stub macros and hopefully few prototypes,
14801     which can conflict with char $ac_func (); below.
14802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14803     <limits.h> exists even on freestanding compilers.  */
14804 #ifdef __STDC__
14805 # include <limits.h>
14806 #else
14807 # include <assert.h>
14808 #endif
14809 /* Override any gcc2 internal prototype to avoid an error.  */
14810 #ifdef __cplusplus
14811 extern "C"
14812 {
14813 #endif
14814 /* We use char because int might match the return type of a gcc2
14815    builtin and then its argument prototype would still apply.  */
14816 char $ac_func ();
14817 /* The GNU C library defines this for functions which it implements
14818     to always fail with ENOSYS.  Some functions are actually named
14819     something starting with __ and the normal name is an alias.  */
14820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14821 choke me
14822 #else
14823 char (*f) () = $ac_func;
14824 #endif
14825 #ifdef __cplusplus
14826 }
14827 #endif
14828
14829 int
14830 main ()
14831 {
14832 return f != $ac_func;
14833   ;
14834   return 0;
14835 }
14836 _ACEOF
14837 rm -f conftest.$ac_objext conftest$ac_exeext
14838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14839   (eval $ac_link) 2>&5
14840   ac_status=$?
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); } &&
14843          { ac_try='test -s conftest$ac_exeext'
14844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845   (eval $ac_try) 2>&5
14846   ac_status=$?
14847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848   (exit $ac_status); }; }; then
14849   eval "$as_ac_var=yes"
14850 else
14851   echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14853
14854 eval "$as_ac_var=no"
14855 fi
14856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14857 fi
14858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14860 if test `eval echo '${'$as_ac_var'}'` = yes; then
14861   cat >>confdefs.h <<_ACEOF
14862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14863 _ACEOF
14864  cat >>confdefs.h <<\_ACEOF
14865 #define HAVE_STRTOLL 1
14866 _ACEOF
14867
14868 fi
14869 done
14870
14871
14872
14873 for ac_func in chflags
14874 do
14875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14876 echo "$as_me:$LINENO: checking for $ac_func" >&5
14877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14878 if eval "test \"\${$as_ac_var+set}\" = set"; then
14879   echo $ECHO_N "(cached) $ECHO_C" >&6
14880 else
14881   cat >conftest.$ac_ext <<_ACEOF
14882 #line $LINENO "configure"
14883 /* confdefs.h.  */
14884 _ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h.  */
14888 /* System header to define __stub macros and hopefully few prototypes,
14889     which can conflict with char $ac_func (); below.
14890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14891     <limits.h> exists even on freestanding compilers.  */
14892 #ifdef __STDC__
14893 # include <limits.h>
14894 #else
14895 # include <assert.h>
14896 #endif
14897 /* Override any gcc2 internal prototype to avoid an error.  */
14898 #ifdef __cplusplus
14899 extern "C"
14900 {
14901 #endif
14902 /* We use char because int might match the return type of a gcc2
14903    builtin and then its argument prototype would still apply.  */
14904 char $ac_func ();
14905 /* The GNU C library defines this for functions which it implements
14906     to always fail with ENOSYS.  Some functions are actually named
14907     something starting with __ and the normal name is an alias.  */
14908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14909 choke me
14910 #else
14911 char (*f) () = $ac_func;
14912 #endif
14913 #ifdef __cplusplus
14914 }
14915 #endif
14916
14917 int
14918 main ()
14919 {
14920 return f != $ac_func;
14921   ;
14922   return 0;
14923 }
14924 _ACEOF
14925 rm -f conftest.$ac_objext conftest$ac_exeext
14926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14927   (eval $ac_link) 2>&5
14928   ac_status=$?
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); } &&
14931          { ac_try='test -s conftest$ac_exeext'
14932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933   (eval $ac_try) 2>&5
14934   ac_status=$?
14935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936   (exit $ac_status); }; }; then
14937   eval "$as_ac_var=yes"
14938 else
14939   echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14941
14942 eval "$as_ac_var=no"
14943 fi
14944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14945 fi
14946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14948 if test `eval echo '${'$as_ac_var'}'` = yes; then
14949   cat >>confdefs.h <<_ACEOF
14950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14951 _ACEOF
14952
14953 fi
14954 done
14955
14956
14957
14958
14959
14960
14961 for ac_func in snprintf vsnprintf gethostid getdomainname
14962 do
14963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14964 echo "$as_me:$LINENO: checking for $ac_func" >&5
14965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14966 if eval "test \"\${$as_ac_var+set}\" = set"; then
14967   echo $ECHO_N "(cached) $ECHO_C" >&6
14968 else
14969   cat >conftest.$ac_ext <<_ACEOF
14970 #line $LINENO "configure"
14971 /* confdefs.h.  */
14972 _ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h.  */
14976 /* System header to define __stub macros and hopefully few prototypes,
14977     which can conflict with char $ac_func (); below.
14978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14979     <limits.h> exists even on freestanding compilers.  */
14980 #ifdef __STDC__
14981 # include <limits.h>
14982 #else
14983 # include <assert.h>
14984 #endif
14985 /* Override any gcc2 internal prototype to avoid an error.  */
14986 #ifdef __cplusplus
14987 extern "C"
14988 {
14989 #endif
14990 /* We use char because int might match the return type of a gcc2
14991    builtin and then its argument prototype would still apply.  */
14992 char $ac_func ();
14993 /* The GNU C library defines this for functions which it implements
14994     to always fail with ENOSYS.  Some functions are actually named
14995     something starting with __ and the normal name is an alias.  */
14996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14997 choke me
14998 #else
14999 char (*f) () = $ac_func;
15000 #endif
15001 #ifdef __cplusplus
15002 }
15003 #endif
15004
15005 int
15006 main ()
15007 {
15008 return f != $ac_func;
15009   ;
15010   return 0;
15011 }
15012 _ACEOF
15013 rm -f conftest.$ac_objext conftest$ac_exeext
15014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15015   (eval $ac_link) 2>&5
15016   ac_status=$?
15017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018   (exit $ac_status); } &&
15019          { ac_try='test -s conftest$ac_exeext'
15020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021   (eval $ac_try) 2>&5
15022   ac_status=$?
15023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024   (exit $ac_status); }; }; then
15025   eval "$as_ac_var=yes"
15026 else
15027   echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030 eval "$as_ac_var=no"
15031 fi
15032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15033 fi
15034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15036 if test `eval echo '${'$as_ac_var'}'` = yes; then
15037   cat >>confdefs.h <<_ACEOF
15038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15039 _ACEOF
15040
15041 fi
15042 done
15043
15044
15045
15046
15047
15048
15049 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15050 do
15051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15052 echo "$as_me:$LINENO: checking for $ac_func" >&5
15053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15054 if eval "test \"\${$as_ac_var+set}\" = set"; then
15055   echo $ECHO_N "(cached) $ECHO_C" >&6
15056 else
15057   cat >conftest.$ac_ext <<_ACEOF
15058 #line $LINENO "configure"
15059 /* confdefs.h.  */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h.  */
15064 /* System header to define __stub macros and hopefully few prototypes,
15065     which can conflict with char $ac_func (); below.
15066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15067     <limits.h> exists even on freestanding compilers.  */
15068 #ifdef __STDC__
15069 # include <limits.h>
15070 #else
15071 # include <assert.h>
15072 #endif
15073 /* Override any gcc2 internal prototype to avoid an error.  */
15074 #ifdef __cplusplus
15075 extern "C"
15076 {
15077 #endif
15078 /* We use char because int might match the return type of a gcc2
15079    builtin and then its argument prototype would still apply.  */
15080 char $ac_func ();
15081 /* The GNU C library defines this for functions which it implements
15082     to always fail with ENOSYS.  Some functions are actually named
15083     something starting with __ and the normal name is an alias.  */
15084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15085 choke me
15086 #else
15087 char (*f) () = $ac_func;
15088 #endif
15089 #ifdef __cplusplus
15090 }
15091 #endif
15092
15093 int
15094 main ()
15095 {
15096 return f != $ac_func;
15097   ;
15098   return 0;
15099 }
15100 _ACEOF
15101 rm -f conftest.$ac_objext conftest$ac_exeext
15102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15103   (eval $ac_link) 2>&5
15104   ac_status=$?
15105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106   (exit $ac_status); } &&
15107          { ac_try='test -s conftest$ac_exeext'
15108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109   (eval $ac_try) 2>&5
15110   ac_status=$?
15111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112   (exit $ac_status); }; }; then
15113   eval "$as_ac_var=yes"
15114 else
15115   echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15117
15118 eval "$as_ac_var=no"
15119 fi
15120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15121 fi
15122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15124 if test `eval echo '${'$as_ac_var'}'` = yes; then
15125   cat >>confdefs.h <<_ACEOF
15126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15127 _ACEOF
15128
15129 fi
15130 done
15131
15132
15133 # If resolver functions are not in libc check for -lnsl or -lresolv.
15134 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15135 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15136 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15137   echo $ECHO_N "(cached) $ECHO_C" >&6
15138 else
15139   cat >conftest.$ac_ext <<_ACEOF
15140 #line $LINENO "configure"
15141 /* confdefs.h.  */
15142 _ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h.  */
15146 /* System header to define __stub macros and hopefully few prototypes,
15147     which can conflict with char gethostbyname_r (); below.
15148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15149     <limits.h> exists even on freestanding compilers.  */
15150 #ifdef __STDC__
15151 # include <limits.h>
15152 #else
15153 # include <assert.h>
15154 #endif
15155 /* Override any gcc2 internal prototype to avoid an error.  */
15156 #ifdef __cplusplus
15157 extern "C"
15158 {
15159 #endif
15160 /* We use char because int might match the return type of a gcc2
15161    builtin and then its argument prototype would still apply.  */
15162 char gethostbyname_r ();
15163 /* The GNU C library defines this for functions which it implements
15164     to always fail with ENOSYS.  Some functions are actually named
15165     something starting with __ and the normal name is an alias.  */
15166 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15167 choke me
15168 #else
15169 char (*f) () = gethostbyname_r;
15170 #endif
15171 #ifdef __cplusplus
15172 }
15173 #endif
15174
15175 int
15176 main ()
15177 {
15178 return f != gethostbyname_r;
15179   ;
15180   return 0;
15181 }
15182 _ACEOF
15183 rm -f conftest.$ac_objext conftest$ac_exeext
15184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15185   (eval $ac_link) 2>&5
15186   ac_status=$?
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); } &&
15189          { ac_try='test -s conftest$ac_exeext'
15190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191   (eval $ac_try) 2>&5
15192   ac_status=$?
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); }; }; then
15195   ac_cv_func_gethostbyname_r=yes
15196 else
15197   echo "$as_me: failed program was:" >&5
15198 sed 's/^/| /' conftest.$ac_ext >&5
15199
15200 ac_cv_func_gethostbyname_r=no
15201 fi
15202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15203 fi
15204 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15205 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15206 if test $ac_cv_func_gethostbyname_r = yes; then
15207   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15208 echo "${ECHO_T}using libc's resolver" >&6
15209 else
15210
15211 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15212 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15213 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15214   echo $ECHO_N "(cached) $ECHO_C" >&6
15215 else
15216   ac_check_lib_save_LIBS=$LIBS
15217 LIBS="-lnsl  $LIBS"
15218 cat >conftest.$ac_ext <<_ACEOF
15219 #line $LINENO "configure"
15220 /* confdefs.h.  */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h.  */
15225
15226 /* Override any gcc2 internal prototype to avoid an error.  */
15227 #ifdef __cplusplus
15228 extern "C"
15229 #endif
15230 /* We use char because int might match the return type of a gcc2
15231    builtin and then its argument prototype would still apply.  */
15232 char gethostbyname_r ();
15233 int
15234 main ()
15235 {
15236 gethostbyname_r ();
15237   ;
15238   return 0;
15239 }
15240 _ACEOF
15241 rm -f conftest.$ac_objext conftest$ac_exeext
15242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15243   (eval $ac_link) 2>&5
15244   ac_status=$?
15245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); } &&
15247          { ac_try='test -s conftest$ac_exeext'
15248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249   (eval $ac_try) 2>&5
15250   ac_status=$?
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); }; }; then
15253   ac_cv_lib_nsl_gethostbyname_r=yes
15254 else
15255   echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15257
15258 ac_cv_lib_nsl_gethostbyname_r=no
15259 fi
15260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15261 LIBS=$ac_check_lib_save_LIBS
15262 fi
15263 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15264 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15265 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15266   cat >>confdefs.h <<_ACEOF
15267 #define HAVE_LIBNSL 1
15268 _ACEOF
15269
15270   LIBS="-lnsl $LIBS"
15271
15272 fi
15273
15274
15275 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15276 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15277 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15278   echo $ECHO_N "(cached) $ECHO_C" >&6
15279 else
15280   ac_check_lib_save_LIBS=$LIBS
15281 LIBS="-lresolv  $LIBS"
15282 cat >conftest.$ac_ext <<_ACEOF
15283 #line $LINENO "configure"
15284 /* confdefs.h.  */
15285 _ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h.  */
15289
15290 /* Override any gcc2 internal prototype to avoid an error.  */
15291 #ifdef __cplusplus
15292 extern "C"
15293 #endif
15294 /* We use char because int might match the return type of a gcc2
15295    builtin and then its argument prototype would still apply.  */
15296 char gethostbyname_r ();
15297 int
15298 main ()
15299 {
15300 gethostbyname_r ();
15301   ;
15302   return 0;
15303 }
15304 _ACEOF
15305 rm -f conftest.$ac_objext conftest$ac_exeext
15306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15307   (eval $ac_link) 2>&5
15308   ac_status=$?
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); } &&
15311          { ac_try='test -s conftest$ac_exeext'
15312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313   (eval $ac_try) 2>&5
15314   ac_status=$?
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); }; }; then
15317   ac_cv_lib_resolv_gethostbyname_r=yes
15318 else
15319   echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15321
15322 ac_cv_lib_resolv_gethostbyname_r=no
15323 fi
15324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15325 LIBS=$ac_check_lib_save_LIBS
15326 fi
15327 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15328 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15329 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15330   cat >>confdefs.h <<_ACEOF
15331 #define HAVE_LIBRESOLV 1
15332 _ACEOF
15333
15334   LIBS="-lresolv $LIBS"
15335
15336 fi
15337
15338 fi
15339
15340
15341
15342 # Find where sockets are (especially for Solaris)
15343 echo "$as_me:$LINENO: checking for socket" >&5
15344 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15345 if test "${ac_cv_func_socket+set}" = set; then
15346   echo $ECHO_N "(cached) $ECHO_C" >&6
15347 else
15348   cat >conftest.$ac_ext <<_ACEOF
15349 #line $LINENO "configure"
15350 /* confdefs.h.  */
15351 _ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h.  */
15355 /* System header to define __stub macros and hopefully few prototypes,
15356     which can conflict with char socket (); below.
15357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15358     <limits.h> exists even on freestanding compilers.  */
15359 #ifdef __STDC__
15360 # include <limits.h>
15361 #else
15362 # include <assert.h>
15363 #endif
15364 /* Override any gcc2 internal prototype to avoid an error.  */
15365 #ifdef __cplusplus
15366 extern "C"
15367 {
15368 #endif
15369 /* We use char because int might match the return type of a gcc2
15370    builtin and then its argument prototype would still apply.  */
15371 char socket ();
15372 /* The GNU C library defines this for functions which it implements
15373     to always fail with ENOSYS.  Some functions are actually named
15374     something starting with __ and the normal name is an alias.  */
15375 #if defined (__stub_socket) || defined (__stub___socket)
15376 choke me
15377 #else
15378 char (*f) () = socket;
15379 #endif
15380 #ifdef __cplusplus
15381 }
15382 #endif
15383
15384 int
15385 main ()
15386 {
15387 return f != socket;
15388   ;
15389   return 0;
15390 }
15391 _ACEOF
15392 rm -f conftest.$ac_objext conftest$ac_exeext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15394   (eval $ac_link) 2>&5
15395   ac_status=$?
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); } &&
15398          { ac_try='test -s conftest$ac_exeext'
15399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400   (eval $ac_try) 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); }; }; then
15404   ac_cv_func_socket=yes
15405 else
15406   echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15408
15409 ac_cv_func_socket=no
15410 fi
15411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15412 fi
15413 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15414 echo "${ECHO_T}$ac_cv_func_socket" >&6
15415 if test $ac_cv_func_socket = yes; then
15416   echo "$as_me:$LINENO: result: using libc's socket" >&5
15417 echo "${ECHO_T}using libc's socket" >&6
15418 else
15419
15420 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15421 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15422 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15423   echo $ECHO_N "(cached) $ECHO_C" >&6
15424 else
15425   ac_check_lib_save_LIBS=$LIBS
15426 LIBS="-lxnet  $LIBS"
15427 cat >conftest.$ac_ext <<_ACEOF
15428 #line $LINENO "configure"
15429 /* confdefs.h.  */
15430 _ACEOF
15431 cat confdefs.h >>conftest.$ac_ext
15432 cat >>conftest.$ac_ext <<_ACEOF
15433 /* end confdefs.h.  */
15434
15435 /* Override any gcc2 internal prototype to avoid an error.  */
15436 #ifdef __cplusplus
15437 extern "C"
15438 #endif
15439 /* We use char because int might match the return type of a gcc2
15440    builtin and then its argument prototype would still apply.  */
15441 char socket ();
15442 int
15443 main ()
15444 {
15445 socket ();
15446   ;
15447   return 0;
15448 }
15449 _ACEOF
15450 rm -f conftest.$ac_objext conftest$ac_exeext
15451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15452   (eval $ac_link) 2>&5
15453   ac_status=$?
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); } &&
15456          { ac_try='test -s conftest$ac_exeext'
15457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458   (eval $ac_try) 2>&5
15459   ac_status=$?
15460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461   (exit $ac_status); }; }; then
15462   ac_cv_lib_xnet_socket=yes
15463 else
15464   echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15466
15467 ac_cv_lib_xnet_socket=no
15468 fi
15469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15470 LIBS=$ac_check_lib_save_LIBS
15471 fi
15472 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15473 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15474 if test $ac_cv_lib_xnet_socket = yes; then
15475   cat >>confdefs.h <<_ACEOF
15476 #define HAVE_LIBXNET 1
15477 _ACEOF
15478
15479   LIBS="-lxnet $LIBS"
15480
15481 fi
15482
15483
15484 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15485 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15486 if test "${ac_cv_lib_socket_socket+set}" = set; then
15487   echo $ECHO_N "(cached) $ECHO_C" >&6
15488 else
15489   ac_check_lib_save_LIBS=$LIBS
15490 LIBS="-lsocket  $LIBS"
15491 cat >conftest.$ac_ext <<_ACEOF
15492 #line $LINENO "configure"
15493 /* confdefs.h.  */
15494 _ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h.  */
15498
15499 /* Override any gcc2 internal prototype to avoid an error.  */
15500 #ifdef __cplusplus
15501 extern "C"
15502 #endif
15503 /* We use char because int might match the return type of a gcc2
15504    builtin and then its argument prototype would still apply.  */
15505 char socket ();
15506 int
15507 main ()
15508 {
15509 socket ();
15510   ;
15511   return 0;
15512 }
15513 _ACEOF
15514 rm -f conftest.$ac_objext conftest$ac_exeext
15515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15516   (eval $ac_link) 2>&5
15517   ac_status=$?
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); } &&
15520          { ac_try='test -s conftest$ac_exeext'
15521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522   (eval $ac_try) 2>&5
15523   ac_status=$?
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); }; }; then
15526   ac_cv_lib_socket_socket=yes
15527 else
15528   echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15530
15531 ac_cv_lib_socket_socket=no
15532 fi
15533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15534 LIBS=$ac_check_lib_save_LIBS
15535 fi
15536 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15537 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15538 if test $ac_cv_lib_socket_socket = yes; then
15539   cat >>confdefs.h <<_ACEOF
15540 #define HAVE_LIBSOCKET 1
15541 _ACEOF
15542
15543   LIBS="-lsocket $LIBS"
15544
15545 fi
15546
15547
15548 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15549 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15550 if test "${ac_cv_lib_inet_socket+set}" = set; then
15551   echo $ECHO_N "(cached) $ECHO_C" >&6
15552 else
15553   ac_check_lib_save_LIBS=$LIBS
15554 LIBS="-linet  $LIBS"
15555 cat >conftest.$ac_ext <<_ACEOF
15556 #line $LINENO "configure"
15557 /* confdefs.h.  */
15558 _ACEOF
15559 cat confdefs.h >>conftest.$ac_ext
15560 cat >>conftest.$ac_ext <<_ACEOF
15561 /* end confdefs.h.  */
15562
15563 /* Override any gcc2 internal prototype to avoid an error.  */
15564 #ifdef __cplusplus
15565 extern "C"
15566 #endif
15567 /* We use char because int might match the return type of a gcc2
15568    builtin and then its argument prototype would still apply.  */
15569 char socket ();
15570 int
15571 main ()
15572 {
15573 socket ();
15574   ;
15575   return 0;
15576 }
15577 _ACEOF
15578 rm -f conftest.$ac_objext conftest$ac_exeext
15579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15580   (eval $ac_link) 2>&5
15581   ac_status=$?
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); } &&
15584          { ac_try='test -s conftest$ac_exeext'
15585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586   (eval $ac_try) 2>&5
15587   ac_status=$?
15588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589   (exit $ac_status); }; }; then
15590   ac_cv_lib_inet_socket=yes
15591 else
15592   echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15594
15595 ac_cv_lib_inet_socket=no
15596 fi
15597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15598 LIBS=$ac_check_lib_save_LIBS
15599 fi
15600 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15601 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15602 if test $ac_cv_lib_inet_socket = yes; then
15603   cat >>confdefs.h <<_ACEOF
15604 #define HAVE_LIBINET 1
15605 _ACEOF
15606
15607   LIBS="-linet $LIBS"
15608
15609 fi
15610
15611 fi
15612
15613
15614
15615 for ac_func in inet_pton
15616 do
15617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15618 echo "$as_me:$LINENO: checking for $ac_func" >&5
15619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15620 if eval "test \"\${$as_ac_var+set}\" = set"; then
15621   echo $ECHO_N "(cached) $ECHO_C" >&6
15622 else
15623   cat >conftest.$ac_ext <<_ACEOF
15624 #line $LINENO "configure"
15625 /* confdefs.h.  */
15626 _ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h.  */
15630 /* System header to define __stub macros and hopefully few prototypes,
15631     which can conflict with char $ac_func (); below.
15632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15633     <limits.h> exists even on freestanding compilers.  */
15634 #ifdef __STDC__
15635 # include <limits.h>
15636 #else
15637 # include <assert.h>
15638 #endif
15639 /* Override any gcc2 internal prototype to avoid an error.  */
15640 #ifdef __cplusplus
15641 extern "C"
15642 {
15643 #endif
15644 /* We use char because int might match the return type of a gcc2
15645    builtin and then its argument prototype would still apply.  */
15646 char $ac_func ();
15647 /* The GNU C library defines this for functions which it implements
15648     to always fail with ENOSYS.  Some functions are actually named
15649     something starting with __ and the normal name is an alias.  */
15650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15651 choke me
15652 #else
15653 char (*f) () = $ac_func;
15654 #endif
15655 #ifdef __cplusplus
15656 }
15657 #endif
15658
15659 int
15660 main ()
15661 {
15662 return f != $ac_func;
15663   ;
15664   return 0;
15665 }
15666 _ACEOF
15667 rm -f conftest.$ac_objext conftest$ac_exeext
15668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15669   (eval $ac_link) 2>&5
15670   ac_status=$?
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); } &&
15673          { ac_try='test -s conftest$ac_exeext'
15674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675   (eval $ac_try) 2>&5
15676   ac_status=$?
15677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); }; }; then
15679   eval "$as_ac_var=yes"
15680 else
15681   echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684 eval "$as_ac_var=no"
15685 fi
15686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15687 fi
15688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15689 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15690 if test `eval echo '${'$as_ac_var'}'` = yes; then
15691   cat >>confdefs.h <<_ACEOF
15692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15693 _ACEOF
15694  cat >>confdefs.h <<\_ACEOF
15695 #define HAVE_INET_PTON 1
15696 _ACEOF
15697
15698 fi
15699 done
15700
15701
15702
15703 for ac_func in strftime
15704 do
15705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15706 echo "$as_me:$LINENO: checking for $ac_func" >&5
15707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15708 if eval "test \"\${$as_ac_var+set}\" = set"; then
15709   echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711   cat >conftest.$ac_ext <<_ACEOF
15712 #line $LINENO "configure"
15713 /* confdefs.h.  */
15714 _ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h.  */
15718 /* System header to define __stub macros and hopefully few prototypes,
15719     which can conflict with char $ac_func (); below.
15720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15721     <limits.h> exists even on freestanding compilers.  */
15722 #ifdef __STDC__
15723 # include <limits.h>
15724 #else
15725 # include <assert.h>
15726 #endif
15727 /* Override any gcc2 internal prototype to avoid an error.  */
15728 #ifdef __cplusplus
15729 extern "C"
15730 {
15731 #endif
15732 /* We use char because int might match the return type of a gcc2
15733    builtin and then its argument prototype would still apply.  */
15734 char $ac_func ();
15735 /* The GNU C library defines this for functions which it implements
15736     to always fail with ENOSYS.  Some functions are actually named
15737     something starting with __ and the normal name is an alias.  */
15738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15739 choke me
15740 #else
15741 char (*f) () = $ac_func;
15742 #endif
15743 #ifdef __cplusplus
15744 }
15745 #endif
15746
15747 int
15748 main ()
15749 {
15750 return f != $ac_func;
15751   ;
15752   return 0;
15753 }
15754 _ACEOF
15755 rm -f conftest.$ac_objext conftest$ac_exeext
15756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15757   (eval $ac_link) 2>&5
15758   ac_status=$?
15759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760   (exit $ac_status); } &&
15761          { ac_try='test -s conftest$ac_exeext'
15762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763   (eval $ac_try) 2>&5
15764   ac_status=$?
15765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766   (exit $ac_status); }; }; then
15767   eval "$as_ac_var=yes"
15768 else
15769   echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15771
15772 eval "$as_ac_var=no"
15773 fi
15774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15775 fi
15776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15778 if test `eval echo '${'$as_ac_var'}'` = yes; then
15779   cat >>confdefs.h <<_ACEOF
15780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15781 _ACEOF
15782
15783 else
15784   # strftime is in -lintl on SCO UNIX.
15785 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15786 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15787 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15788   echo $ECHO_N "(cached) $ECHO_C" >&6
15789 else
15790   ac_check_lib_save_LIBS=$LIBS
15791 LIBS="-lintl  $LIBS"
15792 cat >conftest.$ac_ext <<_ACEOF
15793 #line $LINENO "configure"
15794 /* confdefs.h.  */
15795 _ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h.  */
15799
15800 /* Override any gcc2 internal prototype to avoid an error.  */
15801 #ifdef __cplusplus
15802 extern "C"
15803 #endif
15804 /* We use char because int might match the return type of a gcc2
15805    builtin and then its argument prototype would still apply.  */
15806 char strftime ();
15807 int
15808 main ()
15809 {
15810 strftime ();
15811   ;
15812   return 0;
15813 }
15814 _ACEOF
15815 rm -f conftest.$ac_objext conftest$ac_exeext
15816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15817   (eval $ac_link) 2>&5
15818   ac_status=$?
15819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820   (exit $ac_status); } &&
15821          { ac_try='test -s conftest$ac_exeext'
15822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823   (eval $ac_try) 2>&5
15824   ac_status=$?
15825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826   (exit $ac_status); }; }; then
15827   ac_cv_lib_intl_strftime=yes
15828 else
15829   echo "$as_me: failed program was:" >&5
15830 sed 's/^/| /' conftest.$ac_ext >&5
15831
15832 ac_cv_lib_intl_strftime=no
15833 fi
15834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15835 LIBS=$ac_check_lib_save_LIBS
15836 fi
15837 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15838 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15839 if test $ac_cv_lib_intl_strftime = yes; then
15840   cat >>confdefs.h <<\_ACEOF
15841 #define HAVE_STRFTIME 1
15842 _ACEOF
15843
15844 LIBS="-lintl $LIBS"
15845 fi
15846
15847 fi
15848 done
15849
15850
15851 for ac_func in vprintf
15852 do
15853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15854 echo "$as_me:$LINENO: checking for $ac_func" >&5
15855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15856 if eval "test \"\${$as_ac_var+set}\" = set"; then
15857   echo $ECHO_N "(cached) $ECHO_C" >&6
15858 else
15859   cat >conftest.$ac_ext <<_ACEOF
15860 #line $LINENO "configure"
15861 /* confdefs.h.  */
15862 _ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h.  */
15866 /* System header to define __stub macros and hopefully few prototypes,
15867     which can conflict with char $ac_func (); below.
15868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15869     <limits.h> exists even on freestanding compilers.  */
15870 #ifdef __STDC__
15871 # include <limits.h>
15872 #else
15873 # include <assert.h>
15874 #endif
15875 /* Override any gcc2 internal prototype to avoid an error.  */
15876 #ifdef __cplusplus
15877 extern "C"
15878 {
15879 #endif
15880 /* We use char because int might match the return type of a gcc2
15881    builtin and then its argument prototype would still apply.  */
15882 char $ac_func ();
15883 /* The GNU C library defines this for functions which it implements
15884     to always fail with ENOSYS.  Some functions are actually named
15885     something starting with __ and the normal name is an alias.  */
15886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15887 choke me
15888 #else
15889 char (*f) () = $ac_func;
15890 #endif
15891 #ifdef __cplusplus
15892 }
15893 #endif
15894
15895 int
15896 main ()
15897 {
15898 return f != $ac_func;
15899   ;
15900   return 0;
15901 }
15902 _ACEOF
15903 rm -f conftest.$ac_objext conftest$ac_exeext
15904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15905   (eval $ac_link) 2>&5
15906   ac_status=$?
15907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908   (exit $ac_status); } &&
15909          { ac_try='test -s conftest$ac_exeext'
15910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911   (eval $ac_try) 2>&5
15912   ac_status=$?
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); }; }; then
15915   eval "$as_ac_var=yes"
15916 else
15917   echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15919
15920 eval "$as_ac_var=no"
15921 fi
15922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15923 fi
15924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15926 if test `eval echo '${'$as_ac_var'}'` = yes; then
15927   cat >>confdefs.h <<_ACEOF
15928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15929 _ACEOF
15930
15931 echo "$as_me:$LINENO: checking for _doprnt" >&5
15932 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15933 if test "${ac_cv_func__doprnt+set}" = set; then
15934   echo $ECHO_N "(cached) $ECHO_C" >&6
15935 else
15936   cat >conftest.$ac_ext <<_ACEOF
15937 #line $LINENO "configure"
15938 /* confdefs.h.  */
15939 _ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h.  */
15943 /* System header to define __stub macros and hopefully few prototypes,
15944     which can conflict with char _doprnt (); below.
15945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15946     <limits.h> exists even on freestanding compilers.  */
15947 #ifdef __STDC__
15948 # include <limits.h>
15949 #else
15950 # include <assert.h>
15951 #endif
15952 /* Override any gcc2 internal prototype to avoid an error.  */
15953 #ifdef __cplusplus
15954 extern "C"
15955 {
15956 #endif
15957 /* We use char because int might match the return type of a gcc2
15958    builtin and then its argument prototype would still apply.  */
15959 char _doprnt ();
15960 /* The GNU C library defines this for functions which it implements
15961     to always fail with ENOSYS.  Some functions are actually named
15962     something starting with __ and the normal name is an alias.  */
15963 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15964 choke me
15965 #else
15966 char (*f) () = _doprnt;
15967 #endif
15968 #ifdef __cplusplus
15969 }
15970 #endif
15971
15972 int
15973 main ()
15974 {
15975 return f != _doprnt;
15976   ;
15977   return 0;
15978 }
15979 _ACEOF
15980 rm -f conftest.$ac_objext conftest$ac_exeext
15981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15982   (eval $ac_link) 2>&5
15983   ac_status=$?
15984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985   (exit $ac_status); } &&
15986          { ac_try='test -s conftest$ac_exeext'
15987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988   (eval $ac_try) 2>&5
15989   ac_status=$?
15990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991   (exit $ac_status); }; }; then
15992   ac_cv_func__doprnt=yes
15993 else
15994   echo "$as_me: failed program was:" >&5
15995 sed 's/^/| /' conftest.$ac_ext >&5
15996
15997 ac_cv_func__doprnt=no
15998 fi
15999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16000 fi
16001 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16002 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16003 if test $ac_cv_func__doprnt = yes; then
16004
16005 cat >>confdefs.h <<\_ACEOF
16006 #define HAVE_DOPRNT 1
16007 _ACEOF
16008
16009 fi
16010
16011 fi
16012 done
16013
16014
16015 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16016 # for constant arguments.  Useless!
16017 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16018 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16019 if test "${ac_cv_working_alloca_h+set}" = set; then
16020   echo $ECHO_N "(cached) $ECHO_C" >&6
16021 else
16022   cat >conftest.$ac_ext <<_ACEOF
16023 #line $LINENO "configure"
16024 /* confdefs.h.  */
16025 _ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h.  */
16029 #include <alloca.h>
16030 int
16031 main ()
16032 {
16033 char *p = (char *) alloca (2 * sizeof (int));
16034   ;
16035   return 0;
16036 }
16037 _ACEOF
16038 rm -f conftest.$ac_objext conftest$ac_exeext
16039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16040   (eval $ac_link) 2>&5
16041   ac_status=$?
16042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); } &&
16044          { ac_try='test -s conftest$ac_exeext'
16045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046   (eval $ac_try) 2>&5
16047   ac_status=$?
16048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049   (exit $ac_status); }; }; then
16050   ac_cv_working_alloca_h=yes
16051 else
16052   echo "$as_me: failed program was:" >&5
16053 sed 's/^/| /' conftest.$ac_ext >&5
16054
16055 ac_cv_working_alloca_h=no
16056 fi
16057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16058 fi
16059 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16060 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16061 if test $ac_cv_working_alloca_h = yes; then
16062
16063 cat >>confdefs.h <<\_ACEOF
16064 #define HAVE_ALLOCA_H 1
16065 _ACEOF
16066
16067 fi
16068
16069 echo "$as_me:$LINENO: checking for alloca" >&5
16070 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16071 if test "${ac_cv_func_alloca_works+set}" = set; then
16072   echo $ECHO_N "(cached) $ECHO_C" >&6
16073 else
16074   cat >conftest.$ac_ext <<_ACEOF
16075 #line $LINENO "configure"
16076 /* confdefs.h.  */
16077 _ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h.  */
16081 #ifdef __GNUC__
16082 # define alloca __builtin_alloca
16083 #else
16084 # ifdef _MSC_VER
16085 #  include <malloc.h>
16086 #  define alloca _alloca
16087 # else
16088 #  if HAVE_ALLOCA_H
16089 #   include <alloca.h>
16090 #  else
16091 #   ifdef _AIX
16092  #pragma alloca
16093 #   else
16094 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16095 char *alloca ();
16096 #    endif
16097 #   endif
16098 #  endif
16099 # endif
16100 #endif
16101
16102 int
16103 main ()
16104 {
16105 char *p = (char *) alloca (1);
16106   ;
16107   return 0;
16108 }
16109 _ACEOF
16110 rm -f conftest.$ac_objext conftest$ac_exeext
16111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16112   (eval $ac_link) 2>&5
16113   ac_status=$?
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); } &&
16116          { ac_try='test -s conftest$ac_exeext'
16117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118   (eval $ac_try) 2>&5
16119   ac_status=$?
16120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121   (exit $ac_status); }; }; then
16122   ac_cv_func_alloca_works=yes
16123 else
16124   echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16126
16127 ac_cv_func_alloca_works=no
16128 fi
16129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16130 fi
16131 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16132 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16133
16134 if test $ac_cv_func_alloca_works = yes; then
16135
16136 cat >>confdefs.h <<\_ACEOF
16137 #define HAVE_ALLOCA 1
16138 _ACEOF
16139
16140 else
16141   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16142 # that cause trouble.  Some versions do not even contain alloca or
16143 # contain a buggy version.  If you still want to use their alloca,
16144 # use ar to extract alloca.o from them instead of compiling alloca.c.
16145
16146 ALLOCA=alloca.$ac_objext
16147
16148 cat >>confdefs.h <<\_ACEOF
16149 #define C_ALLOCA 1
16150 _ACEOF
16151
16152
16153 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16154 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16155 if test "${ac_cv_os_cray+set}" = set; then
16156   echo $ECHO_N "(cached) $ECHO_C" >&6
16157 else
16158   cat >conftest.$ac_ext <<_ACEOF
16159 #line $LINENO "configure"
16160 /* confdefs.h.  */
16161 _ACEOF
16162 cat confdefs.h >>conftest.$ac_ext
16163 cat >>conftest.$ac_ext <<_ACEOF
16164 /* end confdefs.h.  */
16165 #if defined(CRAY) && ! defined(CRAY2)
16166 webecray
16167 #else
16168 wenotbecray
16169 #endif
16170
16171 _ACEOF
16172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16173   $EGREP "webecray" >/dev/null 2>&1; then
16174   ac_cv_os_cray=yes
16175 else
16176   ac_cv_os_cray=no
16177 fi
16178 rm -f conftest*
16179
16180 fi
16181 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16182 echo "${ECHO_T}$ac_cv_os_cray" >&6
16183 if test $ac_cv_os_cray = yes; then
16184   for ac_func in _getb67 GETB67 getb67; do
16185     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16186 echo "$as_me:$LINENO: checking for $ac_func" >&5
16187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16188 if eval "test \"\${$as_ac_var+set}\" = set"; then
16189   echo $ECHO_N "(cached) $ECHO_C" >&6
16190 else
16191   cat >conftest.$ac_ext <<_ACEOF
16192 #line $LINENO "configure"
16193 /* confdefs.h.  */
16194 _ACEOF
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h.  */
16198 /* System header to define __stub macros and hopefully few prototypes,
16199     which can conflict with char $ac_func (); below.
16200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16201     <limits.h> exists even on freestanding compilers.  */
16202 #ifdef __STDC__
16203 # include <limits.h>
16204 #else
16205 # include <assert.h>
16206 #endif
16207 /* Override any gcc2 internal prototype to avoid an error.  */
16208 #ifdef __cplusplus
16209 extern "C"
16210 {
16211 #endif
16212 /* We use char because int might match the return type of a gcc2
16213    builtin and then its argument prototype would still apply.  */
16214 char $ac_func ();
16215 /* The GNU C library defines this for functions which it implements
16216     to always fail with ENOSYS.  Some functions are actually named
16217     something starting with __ and the normal name is an alias.  */
16218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16219 choke me
16220 #else
16221 char (*f) () = $ac_func;
16222 #endif
16223 #ifdef __cplusplus
16224 }
16225 #endif
16226
16227 int
16228 main ()
16229 {
16230 return f != $ac_func;
16231   ;
16232   return 0;
16233 }
16234 _ACEOF
16235 rm -f conftest.$ac_objext conftest$ac_exeext
16236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16237   (eval $ac_link) 2>&5
16238   ac_status=$?
16239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240   (exit $ac_status); } &&
16241          { ac_try='test -s conftest$ac_exeext'
16242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16243   (eval $ac_try) 2>&5
16244   ac_status=$?
16245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246   (exit $ac_status); }; }; then
16247   eval "$as_ac_var=yes"
16248 else
16249   echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16251
16252 eval "$as_ac_var=no"
16253 fi
16254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16255 fi
16256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16258 if test `eval echo '${'$as_ac_var'}'` = yes; then
16259
16260 cat >>confdefs.h <<_ACEOF
16261 #define CRAY_STACKSEG_END $ac_func
16262 _ACEOF
16263
16264     break
16265 fi
16266
16267   done
16268 fi
16269
16270 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16271 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16272 if test "${ac_cv_c_stack_direction+set}" = set; then
16273   echo $ECHO_N "(cached) $ECHO_C" >&6
16274 else
16275   if test "$cross_compiling" = yes; then
16276   ac_cv_c_stack_direction=0
16277 else
16278   cat >conftest.$ac_ext <<_ACEOF
16279 #line $LINENO "configure"
16280 /* confdefs.h.  */
16281 _ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h.  */
16285 int
16286 find_stack_direction ()
16287 {
16288   static char *addr = 0;
16289   auto char dummy;
16290   if (addr == 0)
16291     {
16292       addr = &dummy;
16293       return find_stack_direction ();
16294     }
16295   else
16296     return (&dummy > addr) ? 1 : -1;
16297 }
16298
16299 int
16300 main ()
16301 {
16302   exit (find_stack_direction () < 0);
16303 }
16304 _ACEOF
16305 rm -f conftest$ac_exeext
16306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16307   (eval $ac_link) 2>&5
16308   ac_status=$?
16309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312   (eval $ac_try) 2>&5
16313   ac_status=$?
16314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315   (exit $ac_status); }; }; then
16316   ac_cv_c_stack_direction=1
16317 else
16318   echo "$as_me: program exited with status $ac_status" >&5
16319 echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16321
16322 ( exit $ac_status )
16323 ac_cv_c_stack_direction=-1
16324 fi
16325 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16326 fi
16327 fi
16328 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16329 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16330
16331 cat >>confdefs.h <<_ACEOF
16332 #define STACK_DIRECTION $ac_cv_c_stack_direction
16333 _ACEOF
16334
16335
16336 fi
16337
16338 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16339 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16340 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16341 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16342   echo $ECHO_N "(cached) $ECHO_C" >&6
16343 else
16344   ac_check_lib_save_LIBS=$LIBS
16345 LIBS="-lsun  $LIBS"
16346 cat >conftest.$ac_ext <<_ACEOF
16347 #line $LINENO "configure"
16348 /* confdefs.h.  */
16349 _ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h.  */
16353
16354 /* Override any gcc2 internal prototype to avoid an error.  */
16355 #ifdef __cplusplus
16356 extern "C"
16357 #endif
16358 /* We use char because int might match the return type of a gcc2
16359    builtin and then its argument prototype would still apply.  */
16360 char getmntent ();
16361 int
16362 main ()
16363 {
16364 getmntent ();
16365   ;
16366   return 0;
16367 }
16368 _ACEOF
16369 rm -f conftest.$ac_objext conftest$ac_exeext
16370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16371   (eval $ac_link) 2>&5
16372   ac_status=$?
16373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374   (exit $ac_status); } &&
16375          { ac_try='test -s conftest$ac_exeext'
16376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377   (eval $ac_try) 2>&5
16378   ac_status=$?
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); }; }; then
16381   ac_cv_lib_sun_getmntent=yes
16382 else
16383   echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16385
16386 ac_cv_lib_sun_getmntent=no
16387 fi
16388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16389 LIBS=$ac_check_lib_save_LIBS
16390 fi
16391 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16392 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16393 if test $ac_cv_lib_sun_getmntent = yes; then
16394   LIBS="-lsun $LIBS"
16395 else
16396   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16397 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16398 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16399   echo $ECHO_N "(cached) $ECHO_C" >&6
16400 else
16401   ac_check_lib_save_LIBS=$LIBS
16402 LIBS="-lseq  $LIBS"
16403 cat >conftest.$ac_ext <<_ACEOF
16404 #line $LINENO "configure"
16405 /* confdefs.h.  */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h.  */
16410
16411 /* Override any gcc2 internal prototype to avoid an error.  */
16412 #ifdef __cplusplus
16413 extern "C"
16414 #endif
16415 /* We use char because int might match the return type of a gcc2
16416    builtin and then its argument prototype would still apply.  */
16417 char getmntent ();
16418 int
16419 main ()
16420 {
16421 getmntent ();
16422   ;
16423   return 0;
16424 }
16425 _ACEOF
16426 rm -f conftest.$ac_objext conftest$ac_exeext
16427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16428   (eval $ac_link) 2>&5
16429   ac_status=$?
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); } &&
16432          { ac_try='test -s conftest$ac_exeext'
16433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434   (eval $ac_try) 2>&5
16435   ac_status=$?
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); }; }; then
16438   ac_cv_lib_seq_getmntent=yes
16439 else
16440   echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16442
16443 ac_cv_lib_seq_getmntent=no
16444 fi
16445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16446 LIBS=$ac_check_lib_save_LIBS
16447 fi
16448 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16449 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16450 if test $ac_cv_lib_seq_getmntent = yes; then
16451   LIBS="-lseq $LIBS"
16452 else
16453   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16454 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16455 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16456   echo $ECHO_N "(cached) $ECHO_C" >&6
16457 else
16458   ac_check_lib_save_LIBS=$LIBS
16459 LIBS="-lgen  $LIBS"
16460 cat >conftest.$ac_ext <<_ACEOF
16461 #line $LINENO "configure"
16462 /* confdefs.h.  */
16463 _ACEOF
16464 cat confdefs.h >>conftest.$ac_ext
16465 cat >>conftest.$ac_ext <<_ACEOF
16466 /* end confdefs.h.  */
16467
16468 /* Override any gcc2 internal prototype to avoid an error.  */
16469 #ifdef __cplusplus
16470 extern "C"
16471 #endif
16472 /* We use char because int might match the return type of a gcc2
16473    builtin and then its argument prototype would still apply.  */
16474 char getmntent ();
16475 int
16476 main ()
16477 {
16478 getmntent ();
16479   ;
16480   return 0;
16481 }
16482 _ACEOF
16483 rm -f conftest.$ac_objext conftest$ac_exeext
16484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16485   (eval $ac_link) 2>&5
16486   ac_status=$?
16487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488   (exit $ac_status); } &&
16489          { ac_try='test -s conftest$ac_exeext'
16490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491   (eval $ac_try) 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); }; }; then
16495   ac_cv_lib_gen_getmntent=yes
16496 else
16497   echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16499
16500 ac_cv_lib_gen_getmntent=no
16501 fi
16502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16503 LIBS=$ac_check_lib_save_LIBS
16504 fi
16505 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16506 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16507 if test $ac_cv_lib_gen_getmntent = yes; then
16508   LIBS="-lgen $LIBS"
16509 fi
16510
16511 fi
16512
16513 fi
16514
16515
16516 for ac_func in getmntent
16517 do
16518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16519 echo "$as_me:$LINENO: checking for $ac_func" >&5
16520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16521 if eval "test \"\${$as_ac_var+set}\" = set"; then
16522   echo $ECHO_N "(cached) $ECHO_C" >&6
16523 else
16524   cat >conftest.$ac_ext <<_ACEOF
16525 #line $LINENO "configure"
16526 /* confdefs.h.  */
16527 _ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h.  */
16531 /* System header to define __stub macros and hopefully few prototypes,
16532     which can conflict with char $ac_func (); below.
16533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16534     <limits.h> exists even on freestanding compilers.  */
16535 #ifdef __STDC__
16536 # include <limits.h>
16537 #else
16538 # include <assert.h>
16539 #endif
16540 /* Override any gcc2 internal prototype to avoid an error.  */
16541 #ifdef __cplusplus
16542 extern "C"
16543 {
16544 #endif
16545 /* We use char because int might match the return type of a gcc2
16546    builtin and then its argument prototype would still apply.  */
16547 char $ac_func ();
16548 /* The GNU C library defines this for functions which it implements
16549     to always fail with ENOSYS.  Some functions are actually named
16550     something starting with __ and the normal name is an alias.  */
16551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16552 choke me
16553 #else
16554 char (*f) () = $ac_func;
16555 #endif
16556 #ifdef __cplusplus
16557 }
16558 #endif
16559
16560 int
16561 main ()
16562 {
16563 return f != $ac_func;
16564   ;
16565   return 0;
16566 }
16567 _ACEOF
16568 rm -f conftest.$ac_objext conftest$ac_exeext
16569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16570   (eval $ac_link) 2>&5
16571   ac_status=$?
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); } &&
16574          { ac_try='test -s conftest$ac_exeext'
16575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576   (eval $ac_try) 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); }; }; then
16580   eval "$as_ac_var=yes"
16581 else
16582   echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16584
16585 eval "$as_ac_var=no"
16586 fi
16587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16588 fi
16589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16591 if test `eval echo '${'$as_ac_var'}'` = yes; then
16592   cat >>confdefs.h <<_ACEOF
16593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16594 _ACEOF
16595
16596 fi
16597 done
16598
16599
16600 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16601 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16602 if test "${ac_cv_func_closedir_void+set}" = set; then
16603   echo $ECHO_N "(cached) $ECHO_C" >&6
16604 else
16605   if test "$cross_compiling" = yes; then
16606   ac_cv_func_closedir_void=yes
16607 else
16608   cat >conftest.$ac_ext <<_ACEOF
16609 #line $LINENO "configure"
16610 /* confdefs.h.  */
16611 _ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h.  */
16615 $ac_includes_default
16616 #include <$ac_header_dirent>
16617 #ifndef __cplusplus
16618 int closedir ();
16619 #endif
16620
16621 int
16622 main ()
16623 {
16624 exit (closedir (opendir (".")) != 0);
16625   ;
16626   return 0;
16627 }
16628 _ACEOF
16629 rm -f conftest$ac_exeext
16630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16631   (eval $ac_link) 2>&5
16632   ac_status=$?
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636   (eval $ac_try) 2>&5
16637   ac_status=$?
16638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639   (exit $ac_status); }; }; then
16640   ac_cv_func_closedir_void=no
16641 else
16642   echo "$as_me: program exited with status $ac_status" >&5
16643 echo "$as_me: failed program was:" >&5
16644 sed 's/^/| /' conftest.$ac_ext >&5
16645
16646 ( exit $ac_status )
16647 ac_cv_func_closedir_void=yes
16648 fi
16649 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16650 fi
16651 fi
16652 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16653 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16654 if test $ac_cv_func_closedir_void = yes; then
16655
16656 cat >>confdefs.h <<\_ACEOF
16657 #define CLOSEDIR_VOID 1
16658 _ACEOF
16659
16660 fi
16661
16662 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16663 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16664 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16665   echo $ECHO_N "(cached) $ECHO_C" >&6
16666 else
16667   if test "$cross_compiling" = yes; then
16668   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16669 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16670    { (exit 1); exit 1; }; }
16671 else
16672   cat >conftest.$ac_ext <<_ACEOF
16673 #line $LINENO "configure"
16674 /* confdefs.h.  */
16675 _ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h.  */
16679 #if HAVE_UNISTD_H
16680 # include <unistd.h>
16681 #endif
16682
16683 int
16684 main ()
16685 {
16686 /* If this system has a BSD-style setpgrp which takes arguments,
16687   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16688   exit successfully. */
16689   exit (setpgrp (1,1) == -1 ? 0 : 1);
16690   ;
16691   return 0;
16692 }
16693 _ACEOF
16694 rm -f conftest$ac_exeext
16695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16696   (eval $ac_link) 2>&5
16697   ac_status=$?
16698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701   (eval $ac_try) 2>&5
16702   ac_status=$?
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); }; }; then
16705   ac_cv_func_setpgrp_void=no
16706 else
16707   echo "$as_me: program exited with status $ac_status" >&5
16708 echo "$as_me: failed program was:" >&5
16709 sed 's/^/| /' conftest.$ac_ext >&5
16710
16711 ( exit $ac_status )
16712 ac_cv_func_setpgrp_void=yes
16713 fi
16714 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16715 fi
16716 fi
16717 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16718 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16719 if test $ac_cv_func_setpgrp_void = yes; then
16720
16721 cat >>confdefs.h <<\_ACEOF
16722 #define SETPGRP_VOID 1
16723 _ACEOF
16724
16725 fi
16726                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16727 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16728 if test "${ac_cv_func_fnmatch_works+set}" = set; then
16729   echo $ECHO_N "(cached) $ECHO_C" >&6
16730 else
16731   # Some versions of Solaris, SCO, and the GNU C Library
16732    # have a broken or incompatible fnmatch.
16733    # So we run a test program.  If we are cross-compiling, take no chance.
16734    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
16735    if test "$cross_compiling" = yes; then
16736   ac_cv_func_fnmatch_works=cross
16737 else
16738   cat >conftest.$ac_ext <<_ACEOF
16739 #line $LINENO "configure"
16740 /* confdefs.h.  */
16741 _ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h.  */
16745 #include <fnmatch.h>
16746 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
16747 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16748
16749 int
16750 main ()
16751 {
16752 exit
16753            (!(y ("a*", "abc", 0)
16754               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16755               && y ("a\\\\bc", "abc", 0)
16756               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16757               && y ("*x", ".x", 0)
16758               && n ("*x", ".x", FNM_PERIOD)
16759               && 1));
16760   ;
16761   return 0;
16762 }
16763 _ACEOF
16764 rm -f conftest$ac_exeext
16765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16766   (eval $ac_link) 2>&5
16767   ac_status=$?
16768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771   (eval $ac_try) 2>&5
16772   ac_status=$?
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); }; }; then
16775   ac_cv_func_fnmatch_works=yes
16776 else
16777   echo "$as_me: program exited with status $ac_status" >&5
16778 echo "$as_me: failed program was:" >&5
16779 sed 's/^/| /' conftest.$ac_ext >&5
16780
16781 ( exit $ac_status )
16782 ac_cv_func_fnmatch_works=no
16783 fi
16784 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16785 fi
16786 fi
16787 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
16788 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
16789 if test $ac_cv_func_fnmatch_works = yes; then
16790
16791 cat >>confdefs.h <<\_ACEOF
16792 #define HAVE_FNMATCH 1
16793 _ACEOF
16794
16795 fi
16796
16797
16798
16799
16800
16801 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16802 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16803 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16804   echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806   ac_check_lib_save_LIBS=$LIBS
16807 LIBS="-lxpg4  $LIBS"
16808 cat >conftest.$ac_ext <<_ACEOF
16809 #line $LINENO "configure"
16810 /* confdefs.h.  */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h.  */
16815
16816 /* Override any gcc2 internal prototype to avoid an error.  */
16817 #ifdef __cplusplus
16818 extern "C"
16819 #endif
16820 /* We use char because int might match the return type of a gcc2
16821    builtin and then its argument prototype would still apply.  */
16822 char setlocale ();
16823 int
16824 main ()
16825 {
16826 setlocale ();
16827   ;
16828   return 0;
16829 }
16830 _ACEOF
16831 rm -f conftest.$ac_objext conftest$ac_exeext
16832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16833   (eval $ac_link) 2>&5
16834   ac_status=$?
16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); } &&
16837          { ac_try='test -s conftest$ac_exeext'
16838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839   (eval $ac_try) 2>&5
16840   ac_status=$?
16841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842   (exit $ac_status); }; }; then
16843   ac_cv_lib_xpg4_setlocale=yes
16844 else
16845   echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16847
16848 ac_cv_lib_xpg4_setlocale=no
16849 fi
16850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16851 LIBS=$ac_check_lib_save_LIBS
16852 fi
16853 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16854 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16855 if test $ac_cv_lib_xpg4_setlocale = yes; then
16856   LIBS="$LIBS -lxpg4"
16857 fi
16858
16859
16860
16861
16862 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
16863 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
16864 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
16865   echo $ECHO_N "(cached) $ECHO_C" >&6
16866 else
16867   ac_check_lib_save_LIBS=$LIBS
16868 LIBS="-lsun  $LIBS"
16869 cat >conftest.$ac_ext <<_ACEOF
16870 #line $LINENO "configure"
16871 /* confdefs.h.  */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h.  */
16876
16877 /* Override any gcc2 internal prototype to avoid an error.  */
16878 #ifdef __cplusplus
16879 extern "C"
16880 #endif
16881 /* We use char because int might match the return type of a gcc2
16882    builtin and then its argument prototype would still apply.  */
16883 char getpwnam ();
16884 int
16885 main ()
16886 {
16887 getpwnam ();
16888   ;
16889   return 0;
16890 }
16891 _ACEOF
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16894   (eval $ac_link) 2>&5
16895   ac_status=$?
16896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897   (exit $ac_status); } &&
16898          { ac_try='test -s conftest$ac_exeext'
16899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900   (eval $ac_try) 2>&5
16901   ac_status=$?
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); }; }; then
16904   ac_cv_lib_sun_getpwnam=yes
16905 else
16906   echo "$as_me: failed program was:" >&5
16907 sed 's/^/| /' conftest.$ac_ext >&5
16908
16909 ac_cv_lib_sun_getpwnam=no
16910 fi
16911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16912 LIBS=$ac_check_lib_save_LIBS
16913 fi
16914 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
16915 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
16916 if test $ac_cv_lib_sun_getpwnam = yes; then
16917   cat >>confdefs.h <<_ACEOF
16918 #define HAVE_LIBSUN 1
16919 _ACEOF
16920
16921   LIBS="-lsun $LIBS"
16922
16923 fi
16924
16925
16926
16927 for ac_header in zlib.h
16928 do
16929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16931   echo "$as_me:$LINENO: checking for $ac_header" >&5
16932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16934   echo $ECHO_N "(cached) $ECHO_C" >&6
16935 fi
16936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16938 else
16939   # Is the header compilable?
16940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16942 cat >conftest.$ac_ext <<_ACEOF
16943 #line $LINENO "configure"
16944 /* confdefs.h.  */
16945 _ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h.  */
16949 $ac_includes_default
16950 #include <$ac_header>
16951 _ACEOF
16952 rm -f conftest.$ac_objext
16953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16954   (eval $ac_compile) 2>&5
16955   ac_status=$?
16956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957   (exit $ac_status); } &&
16958          { ac_try='test -s conftest.$ac_objext'
16959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960   (eval $ac_try) 2>&5
16961   ac_status=$?
16962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963   (exit $ac_status); }; }; then
16964   ac_header_compiler=yes
16965 else
16966   echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16968
16969 ac_header_compiler=no
16970 fi
16971 rm -f conftest.$ac_objext conftest.$ac_ext
16972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16973 echo "${ECHO_T}$ac_header_compiler" >&6
16974
16975 # Is the header present?
16976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16978 cat >conftest.$ac_ext <<_ACEOF
16979 #line $LINENO "configure"
16980 /* confdefs.h.  */
16981 _ACEOF
16982 cat confdefs.h >>conftest.$ac_ext
16983 cat >>conftest.$ac_ext <<_ACEOF
16984 /* end confdefs.h.  */
16985 #include <$ac_header>
16986 _ACEOF
16987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16989   ac_status=$?
16990   grep -v '^ *+' conftest.er1 >conftest.err
16991   rm -f conftest.er1
16992   cat conftest.err >&5
16993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); } >/dev/null; then
16995   if test -s conftest.err; then
16996     ac_cpp_err=$ac_c_preproc_warn_flag
16997   else
16998     ac_cpp_err=
16999   fi
17000 else
17001   ac_cpp_err=yes
17002 fi
17003 if test -z "$ac_cpp_err"; then
17004   ac_header_preproc=yes
17005 else
17006   echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17008
17009   ac_header_preproc=no
17010 fi
17011 rm -f conftest.err conftest.$ac_ext
17012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17013 echo "${ECHO_T}$ac_header_preproc" >&6
17014
17015 # So?  What about this header?
17016 case $ac_header_compiler:$ac_header_preproc in
17017   yes:no )
17018     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17022     (
17023       cat <<\_ASBOX
17024 ## ------------------------------------ ##
17025 ## Report this to bug-autoconf@gnu.org. ##
17026 ## ------------------------------------ ##
17027 _ASBOX
17028     ) |
17029       sed "s/^/$as_me: WARNING:     /" >&2
17030     ;;
17031   no:yes )
17032     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17034     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17038     (
17039       cat <<\_ASBOX
17040 ## ------------------------------------ ##
17041 ## Report this to bug-autoconf@gnu.org. ##
17042 ## ------------------------------------ ##
17043 _ASBOX
17044     ) |
17045       sed "s/^/$as_me: WARNING:     /" >&2
17046     ;;
17047 esac
17048 echo "$as_me:$LINENO: checking for $ac_header" >&5
17049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17051   echo $ECHO_N "(cached) $ECHO_C" >&6
17052 else
17053   eval "$as_ac_Header=$ac_header_preproc"
17054 fi
17055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17057
17058 fi
17059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17060   cat >>confdefs.h <<_ACEOF
17061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17062 _ACEOF
17063
17064 fi
17065
17066 done
17067
17068 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17069 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17070 if test "${ac_cv_lib_z_deflate+set}" = set; then
17071   echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073   ac_check_lib_save_LIBS=$LIBS
17074 LIBS="-lz  $LIBS"
17075 cat >conftest.$ac_ext <<_ACEOF
17076 #line $LINENO "configure"
17077 /* confdefs.h.  */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h.  */
17082
17083 /* Override any gcc2 internal prototype to avoid an error.  */
17084 #ifdef __cplusplus
17085 extern "C"
17086 #endif
17087 /* We use char because int might match the return type of a gcc2
17088    builtin and then its argument prototype would still apply.  */
17089 char deflate ();
17090 int
17091 main ()
17092 {
17093 deflate ();
17094   ;
17095   return 0;
17096 }
17097 _ACEOF
17098 rm -f conftest.$ac_objext conftest$ac_exeext
17099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17100   (eval $ac_link) 2>&5
17101   ac_status=$?
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); } &&
17104          { ac_try='test -s conftest$ac_exeext'
17105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106   (eval $ac_try) 2>&5
17107   ac_status=$?
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); }; }; then
17110   ac_cv_lib_z_deflate=yes
17111 else
17112   echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17114
17115 ac_cv_lib_z_deflate=no
17116 fi
17117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17118 LIBS=$ac_check_lib_save_LIBS
17119 fi
17120 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17121 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17122 if test $ac_cv_lib_z_deflate = yes; then
17123   FDLIBS="-lz"
17124 fi
17125
17126 have_zlib=no
17127 if test x$FDLIBS = x-lz; then
17128   cat >>confdefs.h <<\_ACEOF
17129 #define HAVE_LIBZ 1
17130 _ACEOF
17131
17132   have_zlib=yes
17133 fi
17134
17135 PTHREAD_LIB=""
17136 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17137 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17138 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17139   echo $ECHO_N "(cached) $ECHO_C" >&6
17140 else
17141   ac_check_lib_save_LIBS=$LIBS
17142 LIBS="-lpthread  $LIBS"
17143 cat >conftest.$ac_ext <<_ACEOF
17144 #line $LINENO "configure"
17145 /* confdefs.h.  */
17146 _ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h.  */
17150
17151 /* Override any gcc2 internal prototype to avoid an error.  */
17152 #ifdef __cplusplus
17153 extern "C"
17154 #endif
17155 /* We use char because int might match the return type of a gcc2
17156    builtin and then its argument prototype would still apply.  */
17157 char pthread_create ();
17158 int
17159 main ()
17160 {
17161 pthread_create ();
17162   ;
17163   return 0;
17164 }
17165 _ACEOF
17166 rm -f conftest.$ac_objext conftest$ac_exeext
17167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17168   (eval $ac_link) 2>&5
17169   ac_status=$?
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); } &&
17172          { ac_try='test -s conftest$ac_exeext'
17173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174   (eval $ac_try) 2>&5
17175   ac_status=$?
17176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   (exit $ac_status); }; }; then
17178   ac_cv_lib_pthread_pthread_create=yes
17179 else
17180   echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17182
17183 ac_cv_lib_pthread_pthread_create=no
17184 fi
17185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17186 LIBS=$ac_check_lib_save_LIBS
17187 fi
17188 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17189 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17190 if test $ac_cv_lib_pthread_pthread_create = yes; then
17191   PTHREAD_LIB="-lpthread"
17192 else
17193   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17194 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17195 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17196   echo $ECHO_N "(cached) $ECHO_C" >&6
17197 else
17198   ac_check_lib_save_LIBS=$LIBS
17199 LIBS="-lpthreads  $LIBS"
17200 cat >conftest.$ac_ext <<_ACEOF
17201 #line $LINENO "configure"
17202 /* confdefs.h.  */
17203 _ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h.  */
17207
17208 /* Override any gcc2 internal prototype to avoid an error.  */
17209 #ifdef __cplusplus
17210 extern "C"
17211 #endif
17212 /* We use char because int might match the return type of a gcc2
17213    builtin and then its argument prototype would still apply.  */
17214 char pthread_create ();
17215 int
17216 main ()
17217 {
17218 pthread_create ();
17219   ;
17220   return 0;
17221 }
17222 _ACEOF
17223 rm -f conftest.$ac_objext conftest$ac_exeext
17224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17225   (eval $ac_link) 2>&5
17226   ac_status=$?
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); } &&
17229          { ac_try='test -s conftest$ac_exeext'
17230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231   (eval $ac_try) 2>&5
17232   ac_status=$?
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); }; }; then
17235   ac_cv_lib_pthreads_pthread_create=yes
17236 else
17237   echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17239
17240 ac_cv_lib_pthreads_pthread_create=no
17241 fi
17242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17243 LIBS=$ac_check_lib_save_LIBS
17244 fi
17245 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17246 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17247 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17248   PTHREAD_LIB="-lpthreads"
17249 else
17250   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17251 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17252 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17253   echo $ECHO_N "(cached) $ECHO_C" >&6
17254 else
17255   ac_check_lib_save_LIBS=$LIBS
17256 LIBS="-lc_r  $LIBS"
17257 cat >conftest.$ac_ext <<_ACEOF
17258 #line $LINENO "configure"
17259 /* confdefs.h.  */
17260 _ACEOF
17261 cat confdefs.h >>conftest.$ac_ext
17262 cat >>conftest.$ac_ext <<_ACEOF
17263 /* end confdefs.h.  */
17264
17265 /* Override any gcc2 internal prototype to avoid an error.  */
17266 #ifdef __cplusplus
17267 extern "C"
17268 #endif
17269 /* We use char because int might match the return type of a gcc2
17270    builtin and then its argument prototype would still apply.  */
17271 char pthread_create ();
17272 int
17273 main ()
17274 {
17275 pthread_create ();
17276   ;
17277   return 0;
17278 }
17279 _ACEOF
17280 rm -f conftest.$ac_objext conftest$ac_exeext
17281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17282   (eval $ac_link) 2>&5
17283   ac_status=$?
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); } &&
17286          { ac_try='test -s conftest$ac_exeext'
17287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288   (eval $ac_try) 2>&5
17289   ac_status=$?
17290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291   (exit $ac_status); }; }; then
17292   ac_cv_lib_c_r_pthread_create=yes
17293 else
17294   echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17296
17297 ac_cv_lib_c_r_pthread_create=no
17298 fi
17299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17300 LIBS=$ac_check_lib_save_LIBS
17301 fi
17302 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17303 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17304 if test $ac_cv_lib_c_r_pthread_create = yes; then
17305   PTHREAD_LIB="-lc_r"
17306 else
17307   echo "$as_me:$LINENO: checking for pthread_create" >&5
17308 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17309 if test "${ac_cv_func_pthread_create+set}" = set; then
17310   echo $ECHO_N "(cached) $ECHO_C" >&6
17311 else
17312   cat >conftest.$ac_ext <<_ACEOF
17313 #line $LINENO "configure"
17314 /* confdefs.h.  */
17315 _ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h.  */
17319 /* System header to define __stub macros and hopefully few prototypes,
17320     which can conflict with char pthread_create (); below.
17321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17322     <limits.h> exists even on freestanding compilers.  */
17323 #ifdef __STDC__
17324 # include <limits.h>
17325 #else
17326 # include <assert.h>
17327 #endif
17328 /* Override any gcc2 internal prototype to avoid an error.  */
17329 #ifdef __cplusplus
17330 extern "C"
17331 {
17332 #endif
17333 /* We use char because int might match the return type of a gcc2
17334    builtin and then its argument prototype would still apply.  */
17335 char pthread_create ();
17336 /* The GNU C library defines this for functions which it implements
17337     to always fail with ENOSYS.  Some functions are actually named
17338     something starting with __ and the normal name is an alias.  */
17339 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17340 choke me
17341 #else
17342 char (*f) () = pthread_create;
17343 #endif
17344 #ifdef __cplusplus
17345 }
17346 #endif
17347
17348 int
17349 main ()
17350 {
17351 return f != pthread_create;
17352   ;
17353   return 0;
17354 }
17355 _ACEOF
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17358   (eval $ac_link) 2>&5
17359   ac_status=$?
17360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361   (exit $ac_status); } &&
17362          { ac_try='test -s conftest$ac_exeext'
17363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364   (eval $ac_try) 2>&5
17365   ac_status=$?
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); }; }; then
17368   ac_cv_func_pthread_create=yes
17369 else
17370   echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17372
17373 ac_cv_func_pthread_create=no
17374 fi
17375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17376 fi
17377 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17378 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17379
17380
17381 fi
17382
17383
17384 fi
17385
17386
17387 fi
17388
17389
17390
17391 cat >>confdefs.h <<\_ACEOF
17392 #define FDLIBS 1
17393 _ACEOF
17394
17395
17396
17397 CFLAGS=${CFLAGS--O}
17398 LDFLAGS=${LDFLAGS--O}
17399 DB_LIBS="${SQL_LFLAGS}"
17400
17401 CPPFLAGS="$CPPFLAGS"
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416 OBJLIST=
17417
17418
17419 lld="lld"
17420 llu="llu"
17421
17422 WCFLAGS=
17423 WLDFLAGS=
17424
17425 #
17426 # Finally we set appropriate distribution specific
17427 #  variables and defaults
17428 #
17429 # PFILES are platform specific files
17430 PFILES="platforms/Makefile"
17431 PSCMD="ps -e"
17432 WIN32=
17433 hostname=`uname -n`
17434 case "$DISTNAME" in
17435 aix)
17436         DISTVER=`uname -r`
17437         PSCMD="ps -e -o pid,comm"
17438         PFILES="${PFILES} \
17439            platforms/aix/Makefile"
17440         TAPEDRIVE="/dev/rmt0.1"
17441   ;;
17442 alpha)
17443         DISTVER=`uname -r`
17444         PTHREAD_LIB="-lpthread -lexc"
17445         if test "${CC}" = "gcc" ; then
17446            lld="lld"
17447            llu="llu"
17448         else
17449            lld="ld"
17450            llu="lu"
17451         fi
17452         TAPEDRIVE="/dev/nrmt0"
17453   ;;
17454 bsdi)
17455         DISTVER=`uname -a |awk '{print $3}'`
17456         TAPEDRIVE="/dev/nrmt0"
17457         PTHREAD_LIB="-pthread"
17458         CFLAGS="${CFLAGS} -pthread"
17459         PSCMD="ps -x -o pid,command"
17460         lld="qd"
17461         llu="qu"
17462         PFILES="${PFILES} \
17463             platforms/bsdi/Makefile \
17464             platforms/bsdi/bacula-fd \
17465             platforms/bsdi/bacula-sd \
17466             platforms/bsdi/bacula-dir"
17467         hostname=`hostname -s`
17468         largefile_support="yes"
17469   ;;
17470 cygwin)
17471         DISTVER=`uname -a |awk '{print $3}'`
17472         TAPEDRIVE="/dev/nrst0"
17473         WIN32=win32
17474         WCFLAGS="-mwindows"
17475         WLDFLAGS="-mwindows"
17476   ;;
17477 darwin)
17478         DISTVER=`uname -r`
17479         TAPEDRIVE="/dev/nst0"
17480         PSCMD="ps -e -o pid,command"
17481         hostname=`hostname -s`
17482         PFILES="${PFILES} \
17483            platforms/darwin/Makefile"
17484   ;;
17485 debian)
17486         DISTVER=`cat /etc/debian_version`
17487         TAPEDRIVE="/dev/nrst0"
17488         PSCMD="ps -e -o pid,command"
17489         hostname=`hostname -s`
17490   ;;
17491 freebsd)
17492         DISTVER=`uname -a |awk '{print $3}'`
17493         VER=`echo $DISTVER | cut -c 1`
17494         if test x$VER = x4 ; then
17495            PTHREAD_LIB="-pthread"
17496            CFLAGS="${CFLAGS} -pthread"
17497         fi
17498         lld="qd"
17499         llu="qu"
17500         TAPEDRIVE="/dev/nrsa0"
17501         PSCMD="ps -x -o pid,command"
17502         PFILES="${PFILES} \
17503             platforms/freebsd/Makefile \
17504             platforms/freebsd/bacula-fd \
17505             platforms/freebsd/bacula-sd \
17506             platforms/freebsd/bacula-dir"
17507         hostname=`hostname -s`
17508         largefile_support="yes"
17509   ;;
17510 hpux)
17511         DISTVER=`uname -r`
17512         TAPEDRIVE="/dev/rmt/0hnb"
17513   ;;
17514 irix)
17515         DISTVER=`uname -r`
17516         TAPEDRIVE="/dev/rmt/0cbn"
17517         PSCMD="ps -e -o pid,comm"
17518         PFILES="${PFILES} \
17519             platforms/irix/Makefile \
17520             platforms/irix/bacula-fd \
17521             platforms/irix/bacula-sd \
17522             platforms/irix/bacula-dir"
17523   ;;
17524 netbsd)
17525         DISTVER=`uname -a |awk '{print $3}'`
17526         lld="qd"
17527         llu="qu"
17528         TAPEDRIVE="/dev/nrst0"
17529         PSCMD="ps -a -o pid,command"
17530         PTHREAD_LIB="-pthread"
17531         CFLAGS="${CFLAGS} -pthread"
17532   ;;
17533 openbsd)
17534         DISTVER=`uname -a |awk '{print $3}'`
17535         lld="qd"
17536         llu="qu"
17537         TAPEDRIVE="/dev/nrst0"
17538         PSCMD="ps -a -o pid,command"
17539         PTHREAD_LIB="-pthread"
17540         CFLAGS="${CFLAGS} -pthread"
17541         PFILES="${PFILES} \
17542             platforms/openbsd/Makefile \
17543             platforms/openbsd/bacula-fd \
17544             platforms/openbsd/bacula-sd \
17545             platforms/openbsd/bacula-dir"
17546   ;;
17547 redhat)
17548         DISTVER=`cat /etc/redhat-release | grep release |\
17549            cut -f 5 -d ' '`
17550         TAPEDRIVE="/dev/nst0"
17551         PSCMD="ps -e -o pid,command"
17552         PFILES="${PFILES} \
17553             platforms/redhat/Makefile \
17554             platforms/redhat/bacula-fd \
17555             platforms/redhat/bacula-sd \
17556             platforms/redhat/bacula-dir \
17557             platforms/redhat/bacula.spec \
17558             "
17559         hostname=`hostname -s`
17560   ;;
17561 mandrake)
17562         DISTVER=`cat /etc/mandrake-release | grep release |\
17563            cut -f 5 -d ' '`
17564         TAPEDRIVE="/dev/nst0"
17565         PSCMD="ps -e -o pid,command"
17566         PFILES="${PFILES} \
17567             platforms/mandrake/Makefile \
17568             platforms/mandrake/bacula-fd \
17569             platforms/mandrake/bacula-sd \
17570             platforms/mandrake/bacula-dir \
17571             platforms/mandrake/bacula.spec \
17572             "
17573         hostname=`hostname -s`
17574   ;;
17575 gentoo)
17576         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17577         TAPEDRIVE="/dev/nst0"
17578         PSCMD="ps -e -o pid,command"
17579         PFILES="${PFILES} \
17580             platforms/gentoo/Makefile \
17581             platforms/gentoo/bacula-fd \
17582             platforms/gentoo/bacula-sd \
17583             platforms/gentoo/bacula-dir"
17584         hostname=`hostname -s`
17585   ;;
17586
17587 slackware)
17588         DISTVER=`cat /etc/slackware-version`
17589         TAPEDRIVE="/dev/nst0"
17590         PSCMD="ps -e -o pid,command"
17591         hostname=`hostname -s`
17592   ;;
17593 solaris)
17594         DISTVER=`uname -r`
17595         TAPEDRIVE="/dev/rmt/0cbn"
17596         PSCMD="ps -e -o pid,comm"
17597         PFILES="${PFILES} \
17598             platforms/solaris/Makefile \
17599             platforms/solaris/bacula-fd \
17600             platforms/solaris/bacula-sd \
17601             platforms/solaris/bacula-dir"
17602         if test x$DISTVER = x5.6 ; then
17603             cat >>confdefs.h <<\_ACEOF
17604 #define HAVE_OLD_SOCKOPT 1
17605 _ACEOF
17606
17607         fi
17608   ;;
17609 suse)
17610         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17611             cut -f 3 -d ' '`
17612         TAPEDRIVE="/dev/nst0"
17613         PSCMD="ps -e -o pid,command"
17614         hostname=`hostname -s`
17615   ;;
17616 suse5)
17617         DISTNAME=suse
17618         DISTVER=5.x
17619         TAPEDRIVE="/dev/nst0"
17620         PSCMD="ps -e -o pid,command"
17621         hostname=`hostname -s`
17622   ;;
17623 unknown)
17624         DISTVER=unknown
17625         TAPEDRIVE="/dev/nst0"
17626   ;;
17627 *)
17628   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17629   ;;
17630 esac
17631
17632
17633
17634 LIBS="$PTHREAD_LIB $LIBS"
17635
17636 cat >>confdefs.h <<_ACEOF
17637 #define lld "$lld"
17638 _ACEOF
17639
17640 cat >>confdefs.h <<_ACEOF
17641 #define llu "$llu"
17642 _ACEOF
17643
17644
17645
17646
17647
17648
17649
17650 MCOMMON=./autoconf/Make.common
17651
17652
17653 if test "x${subsysdir}" = "x${sbindir}" ; then
17654    echo " "
17655    echo " "
17656    echo "You have set both --sbindir and --with-subsys-dir"
17657    echo "  equal to: ${subsysdir} "
17658    echo "This is not permitted. Please reconfigure."
17659    echo " "
17660    echo "Aborting configuration ..."
17661    echo " "
17662    echo " "
17663    exit 1
17664 fi
17665
17666                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   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_mysql_tables src/cats/make_postgresql_tables src/cats/drop_mysql_tables src/cats/drop_postgresql_tables src/cats/update_mysql_tables src/cats/create_mysql_database src/cats/create_postgresql_database src/cats/grant_mysql_privileges src/cats/grant_postgresql_privileges src/cats/make_sqlite_tables src/cats/drop_sqlite_tables src/cats/update_sqlite_tables src/cats/create_sqlite_database 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"
17667           ac_config_commands="$ac_config_commands default"
17668 cat >confcache <<\_ACEOF
17669 # This file is a shell script that caches the results of configure
17670 # tests run on this system so they can be shared between configure
17671 # scripts and configure runs, see configure's option --config-cache.
17672 # It is not useful on other systems.  If it contains results you don't
17673 # want to keep, you may remove or edit it.
17674 #
17675 # config.status only pays attention to the cache file if you give it
17676 # the --recheck option to rerun configure.
17677 #
17678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17680 # following values.
17681
17682 _ACEOF
17683
17684 # The following way of writing the cache mishandles newlines in values,
17685 # but we know of no workaround that is simple, portable, and efficient.
17686 # So, don't put newlines in cache variables' values.
17687 # Ultrix sh set writes to stderr and can't be redirected directly,
17688 # and sets the high bit in the cache file unless we assign to the vars.
17689 {
17690   (set) 2>&1 |
17691     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17692     *ac_space=\ *)
17693       # `set' does not quote correctly, so add quotes (double-quote
17694       # substitution turns \\\\ into \\, and sed turns \\ into \).
17695       sed -n \
17696         "s/'/'\\\\''/g;
17697           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17698       ;;
17699     *)
17700       # `set' quotes correctly as required by POSIX, so do not add quotes.
17701       sed -n \
17702         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17703       ;;
17704     esac;
17705 } |
17706   sed '
17707      t clear
17708      : clear
17709      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17710      t end
17711      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17712      : end' >>confcache
17713 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17714   if test -w $cache_file; then
17715     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17716     cat confcache >$cache_file
17717   else
17718     echo "not updating unwritable cache $cache_file"
17719   fi
17720 fi
17721 rm -f confcache
17722
17723 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17724 # Let make expand exec_prefix.
17725 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17726
17727 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17728 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17729 # trailing colons and then remove the whole line if VPATH becomes empty
17730 # (actually we leave an empty line to preserve line numbers).
17731 if test "x$srcdir" = x.; then
17732   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17733 s/:*\$(srcdir):*/:/;
17734 s/:*\${srcdir}:*/:/;
17735 s/:*@srcdir@:*/:/;
17736 s/^\([^=]*=[    ]*\):*/\1/;
17737 s/:*$//;
17738 s/^[^=]*=[      ]*$//;
17739 }'
17740 fi
17741
17742 DEFS=-DHAVE_CONFIG_H
17743
17744 ac_libobjs=
17745 ac_ltlibobjs=
17746 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17747   # 1. Remove the extension, and $U if already installed.
17748   ac_i=`echo "$ac_i" |
17749          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17750   # 2. Add them.
17751   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17752   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17753 done
17754 LIBOBJS=$ac_libobjs
17755
17756 LTLIBOBJS=$ac_ltlibobjs
17757
17758
17759
17760 : ${CONFIG_STATUS=./config.status}
17761 ac_clean_files_save=$ac_clean_files
17762 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17763 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17764 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17765 cat >$CONFIG_STATUS <<_ACEOF
17766 #! $SHELL
17767 # Generated by $as_me.
17768 # Run this file to recreate the current configuration.
17769 # Compiler output produced by configure, useful for debugging
17770 # configure, is in config.log if it exists.
17771
17772 debug=false
17773 ac_cs_recheck=false
17774 ac_cs_silent=false
17775 SHELL=\${CONFIG_SHELL-$SHELL}
17776 _ACEOF
17777
17778 cat >>$CONFIG_STATUS <<\_ACEOF
17779 ## --------------------- ##
17780 ## M4sh Initialization.  ##
17781 ## --------------------- ##
17782
17783 # Be Bourne compatible
17784 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17785   emulate sh
17786   NULLCMD=:
17787   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17788   # is contrary to our usage.  Disable this feature.
17789   alias -g '${1+"$@"}'='"$@"'
17790 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17791   set -o posix
17792 fi
17793
17794 # Support unset when possible.
17795 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17796   as_unset=unset
17797 else
17798   as_unset=false
17799 fi
17800
17801
17802 # Work around bugs in pre-3.0 UWIN ksh.
17803 $as_unset ENV MAIL MAILPATH
17804 PS1='$ '
17805 PS2='> '
17806 PS4='+ '
17807
17808 # NLS nuisances.
17809 for as_var in \
17810   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17811   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17812   LC_TELEPHONE LC_TIME
17813 do
17814   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17815     eval $as_var=C; export $as_var
17816   else
17817     $as_unset $as_var
17818   fi
17819 done
17820
17821 # Required to use basename.
17822 if expr a : '\(a\)' >/dev/null 2>&1; then
17823   as_expr=expr
17824 else
17825   as_expr=false
17826 fi
17827
17828 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17829   as_basename=basename
17830 else
17831   as_basename=false
17832 fi
17833
17834
17835 # Name of the executable.
17836 as_me=`$as_basename "$0" ||
17837 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17838          X"$0" : 'X\(//\)$' \| \
17839          X"$0" : 'X\(/\)$' \| \
17840          .     : '\(.\)' 2>/dev/null ||
17841 echo X/"$0" |
17842     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17843           /^X\/\(\/\/\)$/{ s//\1/; q; }
17844           /^X\/\(\/\).*/{ s//\1/; q; }
17845           s/.*/./; q'`
17846
17847
17848 # PATH needs CR, and LINENO needs CR and PATH.
17849 # Avoid depending upon Character Ranges.
17850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17853 as_cr_digits='0123456789'
17854 as_cr_alnum=$as_cr_Letters$as_cr_digits
17855
17856 # The user is always right.
17857 if test "${PATH_SEPARATOR+set}" != set; then
17858   echo "#! /bin/sh" >conf$$.sh
17859   echo  "exit 0"   >>conf$$.sh
17860   chmod +x conf$$.sh
17861   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17862     PATH_SEPARATOR=';'
17863   else
17864     PATH_SEPARATOR=:
17865   fi
17866   rm -f conf$$.sh
17867 fi
17868
17869
17870   as_lineno_1=$LINENO
17871   as_lineno_2=$LINENO
17872   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17873   test "x$as_lineno_1" != "x$as_lineno_2" &&
17874   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17875   # Find who we are.  Look in the path if we contain no path at all
17876   # relative or not.
17877   case $0 in
17878     *[\\/]* ) as_myself=$0 ;;
17879     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17880 for as_dir in $PATH
17881 do
17882   IFS=$as_save_IFS
17883   test -z "$as_dir" && as_dir=.
17884   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17885 done
17886
17887        ;;
17888   esac
17889   # We did not find ourselves, most probably we were run as `sh COMMAND'
17890   # in which case we are not to be found in the path.
17891   if test "x$as_myself" = x; then
17892     as_myself=$0
17893   fi
17894   if test ! -f "$as_myself"; then
17895     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17896 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17897    { (exit 1); exit 1; }; }
17898   fi
17899   case $CONFIG_SHELL in
17900   '')
17901     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17902 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17903 do
17904   IFS=$as_save_IFS
17905   test -z "$as_dir" && as_dir=.
17906   for as_base in sh bash ksh sh5; do
17907          case $as_dir in
17908          /*)
17909            if ("$as_dir/$as_base" -c '
17910   as_lineno_1=$LINENO
17911   as_lineno_2=$LINENO
17912   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17913   test "x$as_lineno_1" != "x$as_lineno_2" &&
17914   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17915              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17916              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17917              CONFIG_SHELL=$as_dir/$as_base
17918              export CONFIG_SHELL
17919              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17920            fi;;
17921          esac
17922        done
17923 done
17924 ;;
17925   esac
17926
17927   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17928   # uniformly replaced by the line number.  The first 'sed' inserts a
17929   # line-number line before each line; the second 'sed' does the real
17930   # work.  The second script uses 'N' to pair each line-number line
17931   # with the numbered line, and appends trailing '-' during
17932   # substitution so that $LINENO is not a special case at line end.
17933   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17934   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17935   sed '=' <$as_myself |
17936     sed '
17937       N
17938       s,$,-,
17939       : loop
17940       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17941       t loop
17942       s,-$,,
17943       s,^['$as_cr_digits']*\n,,
17944     ' >$as_me.lineno &&
17945   chmod +x $as_me.lineno ||
17946     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17947 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17948    { (exit 1); exit 1; }; }
17949
17950   # Don't try to exec as it changes $[0], causing all sort of problems
17951   # (the dirname of $[0] is not the place where we might find the
17952   # original and so on.  Autoconf is especially sensible to this).
17953   . ./$as_me.lineno
17954   # Exit status is that of the last command.
17955   exit
17956 }
17957
17958
17959 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17960   *c*,-n*) ECHO_N= ECHO_C='
17961 ' ECHO_T='      ' ;;
17962   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17963   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17964 esac
17965
17966 if expr a : '\(a\)' >/dev/null 2>&1; then
17967   as_expr=expr
17968 else
17969   as_expr=false
17970 fi
17971
17972 rm -f conf$$ conf$$.exe conf$$.file
17973 echo >conf$$.file
17974 if ln -s conf$$.file conf$$ 2>/dev/null; then
17975   # We could just check for DJGPP; but this test a) works b) is more generic
17976   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17977   if test -f conf$$.exe; then
17978     # Don't use ln at all; we don't have any links
17979     as_ln_s='cp -p'
17980   else
17981     as_ln_s='ln -s'
17982   fi
17983 elif ln conf$$.file conf$$ 2>/dev/null; then
17984   as_ln_s=ln
17985 else
17986   as_ln_s='cp -p'
17987 fi
17988 rm -f conf$$ conf$$.exe conf$$.file
17989
17990 if mkdir -p . 2>/dev/null; then
17991   as_mkdir_p=:
17992 else
17993   as_mkdir_p=false
17994 fi
17995
17996 as_executable_p="test -f"
17997
17998 # Sed expression to map a string onto a valid CPP name.
17999 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18000
18001 # Sed expression to map a string onto a valid variable name.
18002 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18003
18004
18005 # IFS
18006 # We need space, tab and new line, in precisely that order.
18007 as_nl='
18008 '
18009 IFS="   $as_nl"
18010
18011 # CDPATH.
18012 $as_unset CDPATH
18013
18014 exec 6>&1
18015
18016 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18017 # report actual input values of CONFIG_FILES etc. instead of their
18018 # values after options handling.  Logging --version etc. is OK.
18019 exec 5>>config.log
18020 {
18021   echo
18022   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18023 ## Running $as_me. ##
18024 _ASBOX
18025 } >&5
18026 cat >&5 <<_CSEOF
18027
18028 This file was extended by $as_me, which was
18029 generated by GNU Autoconf 2.57.  Invocation command line was
18030
18031   CONFIG_FILES    = $CONFIG_FILES
18032   CONFIG_HEADERS  = $CONFIG_HEADERS
18033   CONFIG_LINKS    = $CONFIG_LINKS
18034   CONFIG_COMMANDS = $CONFIG_COMMANDS
18035   $ $0 $@
18036
18037 _CSEOF
18038 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18039 echo >&5
18040 _ACEOF
18041
18042 # Files that config.status was made for.
18043 if test -n "$ac_config_files"; then
18044   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18045 fi
18046
18047 if test -n "$ac_config_headers"; then
18048   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18049 fi
18050
18051 if test -n "$ac_config_links"; then
18052   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18053 fi
18054
18055 if test -n "$ac_config_commands"; then
18056   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18057 fi
18058
18059 cat >>$CONFIG_STATUS <<\_ACEOF
18060
18061 ac_cs_usage="\
18062 \`$as_me' instantiates files from templates according to the
18063 current configuration.
18064
18065 Usage: $0 [OPTIONS] [FILE]...
18066
18067   -h, --help       print this help, then exit
18068   -V, --version    print version number, then exit
18069   -q, --quiet      do not print progress messages
18070   -d, --debug      don't remove temporary files
18071       --recheck    update $as_me by reconfiguring in the same conditions
18072   --file=FILE[:TEMPLATE]
18073                    instantiate the configuration file FILE
18074   --header=FILE[:TEMPLATE]
18075                    instantiate the configuration header FILE
18076
18077 Configuration files:
18078 $config_files
18079
18080 Configuration headers:
18081 $config_headers
18082
18083 Configuration commands:
18084 $config_commands
18085
18086 Report bugs to <bug-autoconf@gnu.org>."
18087 _ACEOF
18088
18089 cat >>$CONFIG_STATUS <<_ACEOF
18090 ac_cs_version="\\
18091 config.status
18092 configured by $0, generated by GNU Autoconf 2.57,
18093   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18094
18095 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18096 Free Software Foundation, Inc.
18097 This config.status script is free software; the Free Software Foundation
18098 gives unlimited permission to copy, distribute and modify it."
18099 srcdir=$srcdir
18100 INSTALL="$INSTALL"
18101 _ACEOF
18102
18103 cat >>$CONFIG_STATUS <<\_ACEOF
18104 # If no file are specified by the user, then we need to provide default
18105 # value.  By we need to know if files were specified by the user.
18106 ac_need_defaults=:
18107 while test $# != 0
18108 do
18109   case $1 in
18110   --*=*)
18111     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18112     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18113     ac_shift=:
18114     ;;
18115   -*)
18116     ac_option=$1
18117     ac_optarg=$2
18118     ac_shift=shift
18119     ;;
18120   *) # This is not an option, so the user has probably given explicit
18121      # arguments.
18122      ac_option=$1
18123      ac_need_defaults=false;;
18124   esac
18125
18126   case $ac_option in
18127   # Handling of the options.
18128 _ACEOF
18129 cat >>$CONFIG_STATUS <<\_ACEOF
18130   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18131     ac_cs_recheck=: ;;
18132   --version | --vers* | -V )
18133     echo "$ac_cs_version"; exit 0 ;;
18134   --he | --h)
18135     # Conflict between --help and --header
18136     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18137 Try \`$0 --help' for more information." >&5
18138 echo "$as_me: error: ambiguous option: $1
18139 Try \`$0 --help' for more information." >&2;}
18140    { (exit 1); exit 1; }; };;
18141   --help | --hel | -h )
18142     echo "$ac_cs_usage"; exit 0 ;;
18143   --debug | --d* | -d )
18144     debug=: ;;
18145   --file | --fil | --fi | --f )
18146     $ac_shift
18147     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18148     ac_need_defaults=false;;
18149   --header | --heade | --head | --hea )
18150     $ac_shift
18151     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18152     ac_need_defaults=false;;
18153   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18154   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18155     ac_cs_silent=: ;;
18156
18157   # This is an error.
18158   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18159 Try \`$0 --help' for more information." >&5
18160 echo "$as_me: error: unrecognized option: $1
18161 Try \`$0 --help' for more information." >&2;}
18162    { (exit 1); exit 1; }; } ;;
18163
18164   *) ac_config_targets="$ac_config_targets $1" ;;
18165
18166   esac
18167   shift
18168 done
18169
18170 ac_configure_extra_args=
18171
18172 if $ac_cs_silent; then
18173   exec 6>/dev/null
18174   ac_configure_extra_args="$ac_configure_extra_args --silent"
18175 fi
18176
18177 _ACEOF
18178 cat >>$CONFIG_STATUS <<_ACEOF
18179 if \$ac_cs_recheck; then
18180   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18181   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18182 fi
18183
18184 _ACEOF
18185
18186
18187
18188
18189
18190 cat >>$CONFIG_STATUS <<\_ACEOF
18191 for ac_config_target in $ac_config_targets
18192 do
18193   case "$ac_config_target" in
18194   # Handling of arguments.
18195   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18196   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18197   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18198   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18199   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18200   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18201   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18202   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18203   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18204   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18205   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18206   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18207   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18208   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18209   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18210   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18211   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18212   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18213   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18214   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18215   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18216   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18217   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18218   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18219   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18220   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18221   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18222   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18223   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18224   "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18225   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18226   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18227   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18228   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18229   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18230   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18231   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18232   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18233   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18234   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18235   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18236   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18237   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18238   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18239   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18240   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18241   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18242   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18243   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18244   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18245   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18246   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18247   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18248   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18249   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18250   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18251   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18252   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18253   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18254   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18255   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18256   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18257   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18258   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18259 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18260    { (exit 1); exit 1; }; };;
18261   esac
18262 done
18263
18264 # If the user did not use the arguments to specify the items to instantiate,
18265 # then the envvar interface is used.  Set only those that are not.
18266 # We use the long form for the default assignment because of an extremely
18267 # bizarre bug on SunOS 4.1.3.
18268 if $ac_need_defaults; then
18269   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18270   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18271   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18272 fi
18273
18274 # Have a temporary directory for convenience.  Make it in the build tree
18275 # simply because there is no reason to put it here, and in addition,
18276 # creating and moving files from /tmp can sometimes cause problems.
18277 # Create a temporary directory, and hook for its removal unless debugging.
18278 $debug ||
18279 {
18280   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18281   trap '{ (exit 1); exit 1; }' 1 2 13 15
18282 }
18283
18284 # Create a (secure) tmp directory for tmp files.
18285
18286 {
18287   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18288   test -n "$tmp" && test -d "$tmp"
18289 }  ||
18290 {
18291   tmp=./confstat$$-$RANDOM
18292   (umask 077 && mkdir $tmp)
18293 } ||
18294 {
18295    echo "$me: cannot create a temporary directory in ." >&2
18296    { (exit 1); exit 1; }
18297 }
18298
18299 _ACEOF
18300
18301 cat >>$CONFIG_STATUS <<_ACEOF
18302
18303 #
18304 # CONFIG_FILES section.
18305 #
18306
18307 # No need to generate the scripts if there are no CONFIG_FILES.
18308 # This happens for instance when ./config.status config.h
18309 if test -n "\$CONFIG_FILES"; then
18310   # Protect against being on the right side of a sed subst in config.status.
18311   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18312    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18313 s,@SHELL@,$SHELL,;t t
18314 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18315 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18316 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18317 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18318 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18319 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18320 s,@exec_prefix@,$exec_prefix,;t t
18321 s,@prefix@,$prefix,;t t
18322 s,@program_transform_name@,$program_transform_name,;t t
18323 s,@bindir@,$bindir,;t t
18324 s,@sbindir@,$sbindir,;t t
18325 s,@libexecdir@,$libexecdir,;t t
18326 s,@datadir@,$datadir,;t t
18327 s,@sysconfdir@,$sysconfdir,;t t
18328 s,@sharedstatedir@,$sharedstatedir,;t t
18329 s,@localstatedir@,$localstatedir,;t t
18330 s,@libdir@,$libdir,;t t
18331 s,@includedir@,$includedir,;t t
18332 s,@oldincludedir@,$oldincludedir,;t t
18333 s,@infodir@,$infodir,;t t
18334 s,@mandir@,$mandir,;t t
18335 s,@build_alias@,$build_alias,;t t
18336 s,@host_alias@,$host_alias,;t t
18337 s,@target_alias@,$target_alias,;t t
18338 s,@DEFS@,$DEFS,;t t
18339 s,@ECHO_C@,$ECHO_C,;t t
18340 s,@ECHO_N@,$ECHO_N,;t t
18341 s,@ECHO_T@,$ECHO_T,;t t
18342 s,@LIBS@,$LIBS,;t t
18343 s,@BUILD_DIR@,$BUILD_DIR,;t t
18344 s,@TRUEPRG@,$TRUEPRG,;t t
18345 s,@FALSEPRG@,$FALSEPRG,;t t
18346 s,@build@,$build,;t t
18347 s,@build_cpu@,$build_cpu,;t t
18348 s,@build_vendor@,$build_vendor,;t t
18349 s,@build_os@,$build_os,;t t
18350 s,@host@,$host,;t t
18351 s,@host_cpu@,$host_cpu,;t t
18352 s,@host_vendor@,$host_vendor,;t t
18353 s,@host_os@,$host_os,;t t
18354 s,@VERSION@,$VERSION,;t t
18355 s,@DATE@,$DATE,;t t
18356 s,@LSMDATE@,$LSMDATE,;t t
18357 s,@CC@,$CC,;t t
18358 s,@CFLAGS@,$CFLAGS,;t t
18359 s,@LDFLAGS@,$LDFLAGS,;t t
18360 s,@CPPFLAGS@,$CPPFLAGS,;t t
18361 s,@ac_ct_CC@,$ac_ct_CC,;t t
18362 s,@EXEEXT@,$EXEEXT,;t t
18363 s,@OBJEXT@,$OBJEXT,;t t
18364 s,@CXX@,$CXX,;t t
18365 s,@CXXFLAGS@,$CXXFLAGS,;t t
18366 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18367 s,@CPP@,$CPP,;t t
18368 s,@EGREP@,$EGREP,;t t
18369 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18370 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18371 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18372 s,@RANLIB@,$RANLIB,;t t
18373 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18374 s,@MV@,$MV,;t t
18375 s,@RM@,$RM,;t t
18376 s,@CP@,$CP,;t t
18377 s,@SED@,$SED,;t t
18378 s,@AWK@,$AWK,;t t
18379 s,@ECHO@,$ECHO,;t t
18380 s,@CMP@,$CMP,;t t
18381 s,@TBL@,$TBL,;t t
18382 s,@AR@,$AR,;t t
18383 s,@OPENSSL@,$OPENSSL,;t t
18384 s,@MTX@,$MTX,;t t
18385 s,@PKGCONFIG@,$PKGCONFIG,;t t
18386 s,@ARFLAGS@,$ARFLAGS,;t t
18387 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18388 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18389 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18390 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18391 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18392 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18393 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18394 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18395 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18396 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18397 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18398 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18399 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18400 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18401 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18402 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18403 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18404 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18405 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18406 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18407 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18408 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18409 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18410 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18411 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18412 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18413 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18414 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18415 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18416 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18417 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18418 s,@MSGFMT@,$MSGFMT,;t t
18419 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18420 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18421 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18422 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18423 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18424 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18425 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18426 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18427 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18428 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18429 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18430 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18431 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18432 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18433 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18434 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18435 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18436 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18437 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18438 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18439 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18440 s,@GNOME_DIR@,$GNOME_DIR,;t t
18441 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18442 s,@STATIC_FD@,$STATIC_FD,;t t
18443 s,@STATIC_SD@,$STATIC_SD,;t t
18444 s,@STATIC_DIR@,$STATIC_DIR,;t t
18445 s,@STATIC_CONS@,$STATIC_CONS,;t t
18446 s,@ALL_DIRS@,$ALL_DIRS,;t t
18447 s,@CONS_INC@,$CONS_INC,;t t
18448 s,@CONS_LIBS@,$CONS_LIBS,;t t
18449 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18450 s,@READLINE_SRC@,$READLINE_SRC,;t t
18451 s,@working_dir@,$working_dir,;t t
18452 s,@scriptdir@,$scriptdir,;t t
18453 s,@dump_email@,$dump_email,;t t
18454 s,@job_email@,$job_email,;t t
18455 s,@smtp_host@,$smtp_host,;t t
18456 s,@piddir@,$piddir,;t t
18457 s,@subsysdir@,$subsysdir,;t t
18458 s,@baseport@,$baseport,;t t
18459 s,@dir_port@,$dir_port,;t t
18460 s,@fd_port@,$fd_port,;t t
18461 s,@sd_port@,$sd_port,;t t
18462 s,@dir_password@,$dir_password,;t t
18463 s,@fd_password@,$fd_password,;t t
18464 s,@sd_password@,$sd_password,;t t
18465 s,@dir_user@,$dir_user,;t t
18466 s,@dir_group@,$dir_group,;t t
18467 s,@sd_user@,$sd_user,;t t
18468 s,@sd_group@,$sd_group,;t t
18469 s,@fd_user@,$fd_user,;t t
18470 s,@fd_group@,$fd_group,;t t
18471 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18472 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18473 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18474 s,@cats@,$cats,;t t
18475 s,@DB_NAME@,$DB_NAME,;t t
18476 s,@GETCONF@,$GETCONF,;t t
18477 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18478 s,@X_CFLAGS@,$X_CFLAGS,;t t
18479 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18480 s,@X_LIBS@,$X_LIBS,;t t
18481 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18482 s,@LIBOBJS@,$LIBOBJS,;t t
18483 s,@ALLOCA@,$ALLOCA,;t t
18484 s,@FDLIBS@,$FDLIBS,;t t
18485 s,@DEBUG@,$DEBUG,;t t
18486 s,@DINCLUDE@,$DINCLUDE,;t t
18487 s,@DLIB@,$DLIB,;t t
18488 s,@DB_LIBS@,$DB_LIBS,;t t
18489 s,@WCFLAGS@,$WCFLAGS,;t t
18490 s,@WLDFLAGS@,$WLDFLAGS,;t t
18491 s,@OBJLIST@,$OBJLIST,;t t
18492 s,@hostname@,$hostname,;t t
18493 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18494 s,@PSCMD@,$PSCMD,;t t
18495 s,@WIN32@,$WIN32,;t t
18496 s,@DISTNAME@,$DISTNAME,;t t
18497 s,@DISTVER@,$DISTVER,;t t
18498 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18499 /@MCOMMON@/r $MCOMMON
18500 s,@MCOMMON@,,;t t
18501 CEOF
18502
18503 _ACEOF
18504
18505   cat >>$CONFIG_STATUS <<\_ACEOF
18506   # Split the substitutions into bite-sized pieces for seds with
18507   # small command number limits, like on Digital OSF/1 and HP-UX.
18508   ac_max_sed_lines=48
18509   ac_sed_frag=1 # Number of current file.
18510   ac_beg=1 # First line for current file.
18511   ac_end=$ac_max_sed_lines # Line after last line for current file.
18512   ac_more_lines=:
18513   ac_sed_cmds=
18514   while $ac_more_lines; do
18515     if test $ac_beg -gt 1; then
18516       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18517     else
18518       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18519     fi
18520     if test ! -s $tmp/subs.frag; then
18521       ac_more_lines=false
18522     else
18523       # The purpose of the label and of the branching condition is to
18524       # speed up the sed processing (if there are no `@' at all, there
18525       # is no need to browse any of the substitutions).
18526       # These are the two extra sed commands mentioned above.
18527       (echo ':t
18528   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18529       if test -z "$ac_sed_cmds"; then
18530         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18531       else
18532         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18533       fi
18534       ac_sed_frag=`expr $ac_sed_frag + 1`
18535       ac_beg=$ac_end
18536       ac_end=`expr $ac_end + $ac_max_sed_lines`
18537     fi
18538   done
18539   if test -z "$ac_sed_cmds"; then
18540     ac_sed_cmds=cat
18541   fi
18542 fi # test -n "$CONFIG_FILES"
18543
18544 _ACEOF
18545 cat >>$CONFIG_STATUS <<\_ACEOF
18546 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18547   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18548   case $ac_file in
18549   - | *:- | *:-:* ) # input from stdin
18550         cat >$tmp/stdin
18551         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18552         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18553   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18554         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18555   * )   ac_file_in=$ac_file.in ;;
18556   esac
18557
18558   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18559   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18560 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18561          X"$ac_file" : 'X\(//\)[^/]' \| \
18562          X"$ac_file" : 'X\(//\)$' \| \
18563          X"$ac_file" : 'X\(/\)' \| \
18564          .     : '\(.\)' 2>/dev/null ||
18565 echo X"$ac_file" |
18566     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18567           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18568           /^X\(\/\/\)$/{ s//\1/; q; }
18569           /^X\(\/\).*/{ s//\1/; q; }
18570           s/.*/./; q'`
18571   { if $as_mkdir_p; then
18572     mkdir -p "$ac_dir"
18573   else
18574     as_dir="$ac_dir"
18575     as_dirs=
18576     while test ! -d "$as_dir"; do
18577       as_dirs="$as_dir $as_dirs"
18578       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18580          X"$as_dir" : 'X\(//\)[^/]' \| \
18581          X"$as_dir" : 'X\(//\)$' \| \
18582          X"$as_dir" : 'X\(/\)' \| \
18583          .     : '\(.\)' 2>/dev/null ||
18584 echo X"$as_dir" |
18585     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18586           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18587           /^X\(\/\/\)$/{ s//\1/; q; }
18588           /^X\(\/\).*/{ s//\1/; q; }
18589           s/.*/./; q'`
18590     done
18591     test ! -n "$as_dirs" || mkdir $as_dirs
18592   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18593 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18594    { (exit 1); exit 1; }; }; }
18595
18596   ac_builddir=.
18597
18598 if test "$ac_dir" != .; then
18599   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18600   # A "../" for each directory in $ac_dir_suffix.
18601   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18602 else
18603   ac_dir_suffix= ac_top_builddir=
18604 fi
18605
18606 case $srcdir in
18607   .)  # No --srcdir option.  We are building in place.
18608     ac_srcdir=.
18609     if test -z "$ac_top_builddir"; then
18610        ac_top_srcdir=.
18611     else
18612        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18613     fi ;;
18614   [\\/]* | ?:[\\/]* )  # Absolute path.
18615     ac_srcdir=$srcdir$ac_dir_suffix;
18616     ac_top_srcdir=$srcdir ;;
18617   *) # Relative path.
18618     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18619     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18620 esac
18621 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18622 # absolute.
18623 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18624 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18625 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18626 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18627
18628
18629   case $INSTALL in
18630   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18631   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18632   esac
18633
18634   if test x"$ac_file" != x-; then
18635     { echo "$as_me:$LINENO: creating $ac_file" >&5
18636 echo "$as_me: creating $ac_file" >&6;}
18637     rm -f "$ac_file"
18638   fi
18639   # Let's still pretend it is `configure' which instantiates (i.e., don't
18640   # use $as_me), people would be surprised to read:
18641   #    /* config.h.  Generated by config.status.  */
18642   if test x"$ac_file" = x-; then
18643     configure_input=
18644   else
18645     configure_input="$ac_file.  "
18646   fi
18647   configure_input=$configure_input"Generated from `echo $ac_file_in |
18648                                      sed 's,.*/,,'` by configure."
18649
18650   # First look for the input files in the build tree, otherwise in the
18651   # src tree.
18652   ac_file_inputs=`IFS=:
18653     for f in $ac_file_in; do
18654       case $f in
18655       -) echo $tmp/stdin ;;
18656       [\\/$]*)
18657          # Absolute (can't be DOS-style, as IFS=:)
18658          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18659 echo "$as_me: error: cannot find input file: $f" >&2;}
18660    { (exit 1); exit 1; }; }
18661          echo $f;;
18662       *) # Relative
18663          if test -f "$f"; then
18664            # Build tree
18665            echo $f
18666          elif test -f "$srcdir/$f"; then
18667            # Source tree
18668            echo $srcdir/$f
18669          else
18670            # /dev/null tree
18671            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18672 echo "$as_me: error: cannot find input file: $f" >&2;}
18673    { (exit 1); exit 1; }; }
18674          fi;;
18675       esac
18676     done` || { (exit 1); exit 1; }
18677 _ACEOF
18678 cat >>$CONFIG_STATUS <<_ACEOF
18679   sed "$ac_vpsub
18680 $extrasub
18681 _ACEOF
18682 cat >>$CONFIG_STATUS <<\_ACEOF
18683 :t
18684 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18685 s,@configure_input@,$configure_input,;t t
18686 s,@srcdir@,$ac_srcdir,;t t
18687 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18688 s,@top_srcdir@,$ac_top_srcdir,;t t
18689 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18690 s,@builddir@,$ac_builddir,;t t
18691 s,@abs_builddir@,$ac_abs_builddir,;t t
18692 s,@top_builddir@,$ac_top_builddir,;t t
18693 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18694 s,@INSTALL@,$ac_INSTALL,;t t
18695 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18696   rm -f $tmp/stdin
18697   if test x"$ac_file" != x-; then
18698     mv $tmp/out $ac_file
18699   else
18700     cat $tmp/out
18701     rm -f $tmp/out
18702   fi
18703
18704 done
18705 _ACEOF
18706 cat >>$CONFIG_STATUS <<\_ACEOF
18707
18708 #
18709 # CONFIG_HEADER section.
18710 #
18711
18712 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18713 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18714 #
18715 # ac_d sets the value in "#define NAME VALUE" lines.
18716 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18717 ac_dB='[        ].*$,\1#\2'
18718 ac_dC=' '
18719 ac_dD=',;t'
18720 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18721 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18722 ac_uB='$,\1#\2define\3'
18723 ac_uC=' '
18724 ac_uD=',;t'
18725
18726 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18727   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18728   case $ac_file in
18729   - | *:- | *:-:* ) # input from stdin
18730         cat >$tmp/stdin
18731         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18732         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18733   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18734         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18735   * )   ac_file_in=$ac_file.in ;;
18736   esac
18737
18738   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18739 echo "$as_me: creating $ac_file" >&6;}
18740
18741   # First look for the input files in the build tree, otherwise in the
18742   # src tree.
18743   ac_file_inputs=`IFS=:
18744     for f in $ac_file_in; do
18745       case $f in
18746       -) echo $tmp/stdin ;;
18747       [\\/$]*)
18748          # Absolute (can't be DOS-style, as IFS=:)
18749          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18750 echo "$as_me: error: cannot find input file: $f" >&2;}
18751    { (exit 1); exit 1; }; }
18752          echo $f;;
18753       *) # Relative
18754          if test -f "$f"; then
18755            # Build tree
18756            echo $f
18757          elif test -f "$srcdir/$f"; then
18758            # Source tree
18759            echo $srcdir/$f
18760          else
18761            # /dev/null tree
18762            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18763 echo "$as_me: error: cannot find input file: $f" >&2;}
18764    { (exit 1); exit 1; }; }
18765          fi;;
18766       esac
18767     done` || { (exit 1); exit 1; }
18768   # Remove the trailing spaces.
18769   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18770
18771 _ACEOF
18772
18773 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18774 # `conftest.undefs', that substitutes the proper values into
18775 # config.h.in to produce config.h.  The first handles `#define'
18776 # templates, and the second `#undef' templates.
18777 # And first: Protect against being on the right side of a sed subst in
18778 # config.status.  Protect against being in an unquoted here document
18779 # in config.status.
18780 rm -f conftest.defines conftest.undefs
18781 # Using a here document instead of a string reduces the quoting nightmare.
18782 # Putting comments in sed scripts is not portable.
18783 #
18784 # `end' is used to avoid that the second main sed command (meant for
18785 # 0-ary CPP macros) applies to n-ary macro definitions.
18786 # See the Autoconf documentation for `clear'.
18787 cat >confdef2sed.sed <<\_ACEOF
18788 s/[\\&,]/\\&/g
18789 s,[\\$`],\\&,g
18790 t clear
18791 : clear
18792 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18793 t end
18794 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18795 : end
18796 _ACEOF
18797 # If some macros were called several times there might be several times
18798 # the same #defines, which is useless.  Nevertheless, we may not want to
18799 # sort them, since we want the *last* AC-DEFINE to be honored.
18800 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18801 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18802 rm -f confdef2sed.sed
18803
18804 # This sed command replaces #undef with comments.  This is necessary, for
18805 # example, in the case of _POSIX_SOURCE, which is predefined and required
18806 # on some systems where configure will not decide to define it.
18807 cat >>conftest.undefs <<\_ACEOF
18808 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18809 _ACEOF
18810
18811 # Break up conftest.defines because some shells have a limit on the size
18812 # of here documents, and old seds have small limits too (100 cmds).
18813 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18814 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18815 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18816 echo '  :' >>$CONFIG_STATUS
18817 rm -f conftest.tail
18818 while grep . conftest.defines >/dev/null
18819 do
18820   # Write a limited-size here document to $tmp/defines.sed.
18821   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18822   # Speed up: don't consider the non `#define' lines.
18823   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18824   # Work around the forget-to-reset-the-flag bug.
18825   echo 't clr' >>$CONFIG_STATUS
18826   echo ': clr' >>$CONFIG_STATUS
18827   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18828   echo 'CEOF
18829   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18830   rm -f $tmp/in
18831   mv $tmp/out $tmp/in
18832 ' >>$CONFIG_STATUS
18833   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18834   rm -f conftest.defines
18835   mv conftest.tail conftest.defines
18836 done
18837 rm -f conftest.defines
18838 echo '  fi # grep' >>$CONFIG_STATUS
18839 echo >>$CONFIG_STATUS
18840
18841 # Break up conftest.undefs because some shells have a limit on the size
18842 # of here documents, and old seds have small limits too (100 cmds).
18843 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18844 rm -f conftest.tail
18845 while grep . conftest.undefs >/dev/null
18846 do
18847   # Write a limited-size here document to $tmp/undefs.sed.
18848   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18849   # Speed up: don't consider the non `#undef'
18850   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18851   # Work around the forget-to-reset-the-flag bug.
18852   echo 't clr' >>$CONFIG_STATUS
18853   echo ': clr' >>$CONFIG_STATUS
18854   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18855   echo 'CEOF
18856   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18857   rm -f $tmp/in
18858   mv $tmp/out $tmp/in
18859 ' >>$CONFIG_STATUS
18860   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18861   rm -f conftest.undefs
18862   mv conftest.tail conftest.undefs
18863 done
18864 rm -f conftest.undefs
18865
18866 cat >>$CONFIG_STATUS <<\_ACEOF
18867   # Let's still pretend it is `configure' which instantiates (i.e., don't
18868   # use $as_me), people would be surprised to read:
18869   #    /* config.h.  Generated by config.status.  */
18870   if test x"$ac_file" = x-; then
18871     echo "/* Generated by configure.  */" >$tmp/config.h
18872   else
18873     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18874   fi
18875   cat $tmp/in >>$tmp/config.h
18876   rm -f $tmp/in
18877   if test x"$ac_file" != x-; then
18878     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18879       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18880 echo "$as_me: $ac_file is unchanged" >&6;}
18881     else
18882       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18883 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18884          X"$ac_file" : 'X\(//\)[^/]' \| \
18885          X"$ac_file" : 'X\(//\)$' \| \
18886          X"$ac_file" : 'X\(/\)' \| \
18887          .     : '\(.\)' 2>/dev/null ||
18888 echo X"$ac_file" |
18889     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18890           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18891           /^X\(\/\/\)$/{ s//\1/; q; }
18892           /^X\(\/\).*/{ s//\1/; q; }
18893           s/.*/./; q'`
18894       { if $as_mkdir_p; then
18895     mkdir -p "$ac_dir"
18896   else
18897     as_dir="$ac_dir"
18898     as_dirs=
18899     while test ! -d "$as_dir"; do
18900       as_dirs="$as_dir $as_dirs"
18901       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18903          X"$as_dir" : 'X\(//\)[^/]' \| \
18904          X"$as_dir" : 'X\(//\)$' \| \
18905          X"$as_dir" : 'X\(/\)' \| \
18906          .     : '\(.\)' 2>/dev/null ||
18907 echo X"$as_dir" |
18908     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18909           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18910           /^X\(\/\/\)$/{ s//\1/; q; }
18911           /^X\(\/\).*/{ s//\1/; q; }
18912           s/.*/./; q'`
18913     done
18914     test ! -n "$as_dirs" || mkdir $as_dirs
18915   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18916 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18917    { (exit 1); exit 1; }; }; }
18918
18919       rm -f $ac_file
18920       mv $tmp/config.h $ac_file
18921     fi
18922   else
18923     cat $tmp/config.h
18924     rm -f $tmp/config.h
18925   fi
18926 done
18927 _ACEOF
18928 cat >>$CONFIG_STATUS <<\_ACEOF
18929
18930 #
18931 # CONFIG_COMMANDS section.
18932 #
18933 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18934   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18935   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18936   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18937 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18938          X"$ac_dest" : 'X\(//\)[^/]' \| \
18939          X"$ac_dest" : 'X\(//\)$' \| \
18940          X"$ac_dest" : 'X\(/\)' \| \
18941          .     : '\(.\)' 2>/dev/null ||
18942 echo X"$ac_dest" |
18943     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18944           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18945           /^X\(\/\/\)$/{ s//\1/; q; }
18946           /^X\(\/\).*/{ s//\1/; q; }
18947           s/.*/./; q'`
18948   ac_builddir=.
18949
18950 if test "$ac_dir" != .; then
18951   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18952   # A "../" for each directory in $ac_dir_suffix.
18953   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18954 else
18955   ac_dir_suffix= ac_top_builddir=
18956 fi
18957
18958 case $srcdir in
18959   .)  # No --srcdir option.  We are building in place.
18960     ac_srcdir=.
18961     if test -z "$ac_top_builddir"; then
18962        ac_top_srcdir=.
18963     else
18964        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18965     fi ;;
18966   [\\/]* | ?:[\\/]* )  # Absolute path.
18967     ac_srcdir=$srcdir$ac_dir_suffix;
18968     ac_top_srcdir=$srcdir ;;
18969   *) # Relative path.
18970     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18971     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18972 esac
18973 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18974 # absolute.
18975 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18976 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18977 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18978 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18979
18980
18981   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18982 echo "$as_me: executing $ac_dest commands" >&6;}
18983   case $ac_dest in
18984     default ) (echo "Doing make of dependencies"; make depend;)
18985  ;;
18986   esac
18987 done
18988 _ACEOF
18989
18990 cat >>$CONFIG_STATUS <<\_ACEOF
18991
18992 { (exit 0); exit 0; }
18993 _ACEOF
18994 chmod +x $CONFIG_STATUS
18995 ac_clean_files=$ac_clean_files_save
18996
18997
18998 # configure is writing to config.log, and then calls config.status.
18999 # config.status does its own redirection, appending to config.log.
19000 # Unfortunately, on DOS this fails, as config.log is still kept open
19001 # by configure, so config.status won't be able to write to it; its
19002 # output is simply discarded.  So we exec the FD to /dev/null,
19003 # effectively closing config.log, so it can be properly (re)opened and
19004 # appended to by config.status.  When coming back to configure, we
19005 # need to make the FD available again.
19006 if test "$no_create" != yes; then
19007   ac_cs_success=:
19008   ac_config_status_args=
19009   test "$silent" = yes &&
19010     ac_config_status_args="$ac_config_status_args --quiet"
19011   exec 5>/dev/null
19012   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19013   exec 5>>config.log
19014   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19015   # would make configure fail if this is the last instruction.
19016   $ac_cs_success || { (exit 1); exit 1; }
19017 fi
19018
19019
19020 cd scripts
19021 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19022 chmod 755 bconsole gconsole mtx-changer
19023 cd ..
19024 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
19025 chmod 755 src/cats/make_postgresql_tables src/cats/drop_postgresql_tables
19026 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
19027 chmod 755 src/cats/create_postgresql_database 
19028 chmod 755 src/cats/create_mysql_database
19029 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
19030 chmod 755 src/cats/grant_postgresql_privileges
19031 chmod 755 src/cats/grant_mysql_privileges
19032 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
19033 chmod 755 src/cats/update_sqlite_tables
19034 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
19035 chmod 755 src/cats/update_mysql_tables
19036 chmod 755 src/cats/update_bacula_tables src/cats/update_mysql_tables
19037 chmod 755 src/cats/create_sqlite_database
19038 chmod 755 src/cats/sqlite
19039 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
19040 chmod 755 src/cats/create_bdb_database
19041
19042 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19043    largefile_support="yes"
19044 fi
19045
19046 #
19047 # A whole lot of hand springs to get the compiler version.
19048 #  This is because gcc changed the output in version 3.0
19049 #
19050 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19051 if test "x${CCVERSION}" = "x" ; then
19052   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19053 fi
19054 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19055 if test x"${CXXVERSION}" = x ; then
19056   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19057 fi
19058
19059 if test "x${subsysdir}" = "x${sbindir}" ; then
19060    echo " "
19061    echo " "
19062    echo "You have set --sbindir and --with-subsys-dir"
19063    echo "  both equal to: ${subsysdir} "
19064    echo "  This is not permitted. Please reconfigure."
19065    echo "Aborting configuration ..."
19066    echo " "
19067    echo " "
19068    exit 1
19069 fi
19070
19071 echo "
19072 Configuration on `date`:
19073
19074   Host:                       $host -- ${DISTNAME} ${DISTVER}
19075   Bacula version:             ${VERSION} (${DATE})
19076   Source code location:       ${srcdir}
19077   Install binaries:           ${sbindir}
19078   Install config files:       ${sysconfdir}
19079   Scripts directory:          ${scriptdir}
19080   Working directory:          ${working_dir}
19081   PID directory:              ${piddir}
19082   Subsys directory:           ${subsysdir}
19083   C Compiler:                 ${CC} ${CCVERSION}
19084   C++ Compiler:               ${CXX} ${CXXVERSION}
19085   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19086   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19087   Libraries:                  ${LIBS}
19088   Statically Linked Tools:    ${support_static_tools}
19089   Statically Linked FD:       ${support_static_fd}
19090   Statically Linked SD:       ${support_static_sd}
19091   Statically Linked DIR:      ${support_static_dir}
19092   Statically Linked CONS:     ${support_static_cons}
19093   Database type:              ${db_name}
19094   Database lib:               ${DB_LIBS}
19095
19096   Job Output Email:           ${job_email}
19097   Traceback Email:            ${dump_email}
19098   SMTP Host Address:          ${smtp_host}
19099
19100   Director Port:              ${dir_port}
19101   File daemon Port:           ${fd_port}
19102   Storage daemon Port:        ${sd_port}
19103
19104   Director User:            ${dir_user}
19105   Director Group:           ${dir_group}
19106   Storage Daemon User:      ${dir_user}
19107   Storage Daemon Group:     ${dir_group}
19108   File Daemon User:         ${dir_user}
19109   File Daemon Group:        ${dir_group}
19110
19111   SQL binaries Directory      ${SQL_BINDIR}
19112
19113   Large file support:         $largefile_support
19114   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19115   TCP Wrappers support:       ${TCPW_MSG}
19116   ZLIB support:               ${have_zlib}
19117   enable-smartalloc:          ${support_smartalloc}
19118   enable-gnome:               ${support_gnome}
19119   client-only:                ${build_client_only}
19120
19121   " > config.out
19122
19123 cat config.out
19124
19125 # old stuff
19126 # cweb support:               ${got_cweb} ${CWEB_SRC}
19127 # gmp support:                ${got_gmp} ${GMP_SRC}