]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
- Implement partial error messages for src/filed/acl.c
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TOP_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX DD MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO DVDRWFORMAT PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GLIBC2 ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS DIRD_DIR DIR_TOOLS STORED_DIR CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS WRAPLIBS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures this package to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861
862   cat <<\_ACEOF
863
864 Optional Features:
865   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
866   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
867   --disable-nls           do not use Native Language Support
868   --disable-rpath         do not hardcode runtime library paths
869   --enable-gnome          enable build of gnome-console GUI disabled
870   --enable-wx-console     enable build of wxWidgets console disabled
871   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
872   --enable-smartalloc     enable smartalloc debugging support disabled
873   --enable-static-tools   enable static tape tools disabled
874   --enable-static-fd      enable static File daemon disabled
875   --enable-static-sd      enable static Storage daemon disabled
876   --enable-static-dir     enable static Director disabled
877   --enable-static-cons    enable static Console disabled
878   --enable-client-only    build client (File daemon) only disabled
879   --enable-build-dird     enable building of dird (Director) enabled
880   --enable-build-stored   enable building of stored (Storage daemon) enabled
881   --disable-conio            disable conio support enabled
882
883   --disable-readline      disable readline support disable
884
885   --disable-largefile     omit support for large files
886
887 Optional Packages:
888   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
889   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
892   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
893   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
894   --without-libintl-prefix     don't search for libintl in includedir and libdir
895   --with-included-gettext use the GNU gettext library included here
896  --with-readline=DIR             specify readline library directory
897
898   --with-python=DIR       Include Python support.  DIR is the Python base
899                           install directory, default is to search through
900                           a number of common places for the Python files.
901   --with-tcp-wrappers=DIR        enable tcpwrappers support
902   --with-openssl[=DIR]
903                           Include OpenSSL support. DIR is the OpenSSL base
904   --with-working-dir=PATH        specify path of Bacula working directory
905   --with-scriptdir=PATH    specify path of Bacula scripts directory
906   --with-dump-email=EMAIL        dump email address
907   --with-job-email=EMAIL         job output email address
908   --with-smtp-host=HOST          SMTP mail host address
909   --with-pid-dir=PATH            specify location of Bacula pid files
910   --with-subsys-dir=PATH         specify location of Bacula subsys file
911   --with-baseport=PORT           specify base port address for daemons
912   --with-dir-password=PASSWORD   specify Director's password
913   --with-fd-password=PASSWORD    specify Client's password
914   --with-sd-password=PASSWORD    specify Storage daemon's password
915   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
916   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
917   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
918   --with-dir-user=USER           specify user for Director daemon
919   --with-dir-group=GROUP                 specify group for Director daemon
920   --with-sd-user=USER            specify user for Storage daemon
921   --with-sd-group=GROUP          specify group for Storage daemon
922   --with-fd-user=USER            specify user for File daemon
923   --with-fd-group=GROUP          specify group for File daemon
924   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
925   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
926                           base install directory, defaults to /usr/local/pgsql
927
928   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
929                           install directory, default is to search through
930                           a number of common places for the MySQL files.
931
932   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
933                           install directory, default is to search through
934                           a number of common places for the MySQL files.
935
936   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
937                           install directory, default is to search through
938                           a number of common places for the SQLite3 files.
939
940   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
941                           install directory, default is to search through
942                           a number of common places for the SQLite files.
943   --with-x                use the X Window System
944
945 Some influential environment variables:
946   CC          C compiler command
947   CFLAGS      C compiler flags
948   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
949               nonstandard directory <lib dir>
950   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
951               headers in a nonstandard directory <include dir>
952   CXX         C++ compiler command
953   CXXFLAGS    C++ compiler flags
954   CPP         C preprocessor
955   WXCONFIG    wx-config command. On some systems, you must set it to
956               wx-config-2.6 to use wxWidgets 2.6.
957   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
958
959 Use these variables to override the choices made by `configure' or to help
960 it to find libraries and programs with nonstandard names/locations.
961
962 _ACEOF
963 fi
964
965 if test "$ac_init_help" = "recursive"; then
966   # If there are subdirs, report their specific --help.
967   ac_popdir=`pwd`
968   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
969     test -d $ac_dir || continue
970     ac_builddir=.
971
972 if test "$ac_dir" != .; then
973   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
974   # A "../" for each directory in $ac_dir_suffix.
975   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
976 else
977   ac_dir_suffix= ac_top_builddir=
978 fi
979
980 case $srcdir in
981   .)  # No --srcdir option.  We are building in place.
982     ac_srcdir=.
983     if test -z "$ac_top_builddir"; then
984        ac_top_srcdir=.
985     else
986        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
987     fi ;;
988   [\\/]* | ?:[\\/]* )  # Absolute path.
989     ac_srcdir=$srcdir$ac_dir_suffix;
990     ac_top_srcdir=$srcdir ;;
991   *) # Relative path.
992     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
993     ac_top_srcdir=$ac_top_builddir$srcdir ;;
994 esac
995
996 # Do not use `cd foo && pwd` to compute absolute paths, because
997 # the directories may not exist.
998 case `pwd` in
999 .) ac_abs_builddir="$ac_dir";;
1000 *)
1001   case "$ac_dir" in
1002   .) ac_abs_builddir=`pwd`;;
1003   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1004   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1005   esac;;
1006 esac
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 *)
1010   case ${ac_top_builddir}. in
1011   .) ac_abs_top_builddir=$ac_abs_builddir;;
1012   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1013   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1014   esac;;
1015 esac
1016 case $ac_abs_builddir in
1017 .) ac_abs_srcdir=$ac_srcdir;;
1018 *)
1019   case $ac_srcdir in
1020   .) ac_abs_srcdir=$ac_abs_builddir;;
1021   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1022   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1023   esac;;
1024 esac
1025 case $ac_abs_builddir in
1026 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 *)
1028   case $ac_top_srcdir in
1029   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1030   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1031   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1032   esac;;
1033 esac
1034
1035     cd $ac_dir
1036     # Check for guested configure; otherwise get Cygnus style configure.
1037     if test -f $ac_srcdir/configure.gnu; then
1038       echo
1039       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1040     elif test -f $ac_srcdir/configure; then
1041       echo
1042       $SHELL $ac_srcdir/configure  --help=recursive
1043     elif test -f $ac_srcdir/configure.ac ||
1044            test -f $ac_srcdir/configure.in; then
1045       echo
1046       $ac_configure --help
1047     else
1048       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1049     fi
1050     cd $ac_popdir
1051   done
1052 fi
1053
1054 test -n "$ac_init_help" && exit 0
1055 if $ac_init_version; then
1056   cat <<\_ACEOF
1057
1058 Copyright (C) 2003 Free Software Foundation, Inc.
1059 This configure script is free software; the Free Software Foundation
1060 gives unlimited permission to copy, distribute and modify it.
1061 _ACEOF
1062   exit 0
1063 fi
1064 exec 5>config.log
1065 cat >&5 <<_ACEOF
1066 This file contains any messages produced by compilers while
1067 running configure, to aid debugging if configure makes a mistake.
1068
1069 It was created by $as_me, which was
1070 generated by GNU Autoconf 2.59.  Invocation command line was
1071
1072   $ $0 $@
1073
1074 _ACEOF
1075 {
1076 cat <<_ASUNAME
1077 ## --------- ##
1078 ## Platform. ##
1079 ## --------- ##
1080
1081 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1082 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1083 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1084 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1085 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1086
1087 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1088 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1089
1090 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1091 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1092 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1093 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1094 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1095 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1096 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1097
1098 _ASUNAME
1099
1100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1101 for as_dir in $PATH
1102 do
1103   IFS=$as_save_IFS
1104   test -z "$as_dir" && as_dir=.
1105   echo "PATH: $as_dir"
1106 done
1107
1108 } >&5
1109
1110 cat >&5 <<_ACEOF
1111
1112
1113 ## ----------- ##
1114 ## Core tests. ##
1115 ## ----------- ##
1116
1117 _ACEOF
1118
1119
1120 # Keep a trace of the command line.
1121 # Strip out --no-create and --no-recursion so they do not pile up.
1122 # Strip out --silent because we don't want to record it for future runs.
1123 # Also quote any args containing shell meta-characters.
1124 # Make two passes to allow for proper duplicate-argument suppression.
1125 ac_configure_args=
1126 ac_configure_args0=
1127 ac_configure_args1=
1128 ac_sep=
1129 ac_must_keep_next=false
1130 for ac_pass in 1 2
1131 do
1132   for ac_arg
1133   do
1134     case $ac_arg in
1135     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1136     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137     | -silent | --silent | --silen | --sile | --sil)
1138       continue ;;
1139     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1140       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1141     esac
1142     case $ac_pass in
1143     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1144     2)
1145       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1146       if test $ac_must_keep_next = true; then
1147         ac_must_keep_next=false # Got value, back to normal.
1148       else
1149         case $ac_arg in
1150           *=* | --config-cache | -C | -disable-* | --disable-* \
1151           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1152           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1153           | -with-* | --with-* | -without-* | --without-* | --x)
1154             case "$ac_configure_args0 " in
1155               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1156             esac
1157             ;;
1158           -* ) ac_must_keep_next=true ;;
1159         esac
1160       fi
1161       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1162       # Get rid of the leading space.
1163       ac_sep=" "
1164       ;;
1165     esac
1166   done
1167 done
1168 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1169 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1170
1171 # When interrupted or exit'd, cleanup temporary files, and complete
1172 # config.log.  We remove comments because anyway the quotes in there
1173 # would cause problems or look ugly.
1174 # WARNING: Be sure not to use single quotes in there, as some shells,
1175 # such as our DU 5.0 friend, will then `close' the trap.
1176 trap 'exit_status=$?
1177   # Save into config.log some information that might help in debugging.
1178   {
1179     echo
1180
1181     cat <<\_ASBOX
1182 ## ---------------- ##
1183 ## Cache variables. ##
1184 ## ---------------- ##
1185 _ASBOX
1186     echo
1187     # The following way of writing the cache mishandles newlines in values,
1188 {
1189   (set) 2>&1 |
1190     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1191     *ac_space=\ *)
1192       sed -n \
1193         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1194           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1195       ;;
1196     *)
1197       sed -n \
1198         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1199       ;;
1200     esac;
1201 }
1202     echo
1203
1204     cat <<\_ASBOX
1205 ## ----------------- ##
1206 ## Output variables. ##
1207 ## ----------------- ##
1208 _ASBOX
1209     echo
1210     for ac_var in $ac_subst_vars
1211     do
1212       eval ac_val=$`echo $ac_var`
1213       echo "$ac_var='"'"'$ac_val'"'"'"
1214     done | sort
1215     echo
1216
1217     if test -n "$ac_subst_files"; then
1218       cat <<\_ASBOX
1219 ## ------------- ##
1220 ## Output files. ##
1221 ## ------------- ##
1222 _ASBOX
1223       echo
1224       for ac_var in $ac_subst_files
1225       do
1226         eval ac_val=$`echo $ac_var`
1227         echo "$ac_var='"'"'$ac_val'"'"'"
1228       done | sort
1229       echo
1230     fi
1231
1232     if test -s confdefs.h; then
1233       cat <<\_ASBOX
1234 ## ----------- ##
1235 ## confdefs.h. ##
1236 ## ----------- ##
1237 _ASBOX
1238       echo
1239       sed "/^$/d" confdefs.h | sort
1240       echo
1241     fi
1242     test "$ac_signal" != 0 &&
1243       echo "$as_me: caught signal $ac_signal"
1244     echo "$as_me: exit $exit_status"
1245   } >&5
1246   rm -f core *.core &&
1247   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1248     exit $exit_status
1249      ' 0
1250 for ac_signal in 1 2 13 15; do
1251   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1252 done
1253 ac_signal=0
1254
1255 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1256 rm -rf conftest* confdefs.h
1257 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1258 echo >confdefs.h
1259
1260 # Predefined preprocessor variables.
1261
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_NAME "$PACKAGE_NAME"
1264 _ACEOF
1265
1266
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1269 _ACEOF
1270
1271
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1274 _ACEOF
1275
1276
1277 cat >>confdefs.h <<_ACEOF
1278 #define PACKAGE_STRING "$PACKAGE_STRING"
1279 _ACEOF
1280
1281
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1284 _ACEOF
1285
1286
1287 # Let the site file select an alternate cache file if it wants to.
1288 # Prefer explicitly selected file to automatically selected ones.
1289 if test -z "$CONFIG_SITE"; then
1290   if test "x$prefix" != xNONE; then
1291     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1292   else
1293     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1294   fi
1295 fi
1296 for ac_site_file in $CONFIG_SITE; do
1297   if test -r "$ac_site_file"; then
1298     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1299 echo "$as_me: loading site script $ac_site_file" >&6;}
1300     sed 's/^/| /' "$ac_site_file" >&5
1301     . "$ac_site_file"
1302   fi
1303 done
1304
1305 if test -r "$cache_file"; then
1306   # Some versions of bash will fail to source /dev/null (special
1307   # files actually), so we avoid doing that.
1308   if test -f "$cache_file"; then
1309     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1310 echo "$as_me: loading cache $cache_file" >&6;}
1311     case $cache_file in
1312       [\\/]* | ?:[\\/]* ) . $cache_file;;
1313       *)                      . ./$cache_file;;
1314     esac
1315   fi
1316 else
1317   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1318 echo "$as_me: creating cache $cache_file" >&6;}
1319   >$cache_file
1320 fi
1321
1322 # Check that the precious variables saved in the cache have kept the same
1323 # value.
1324 ac_cache_corrupted=false
1325 for ac_var in `(set) 2>&1 |
1326                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1327   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1328   eval ac_new_set=\$ac_env_${ac_var}_set
1329   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1330   eval ac_new_val="\$ac_env_${ac_var}_value"
1331   case $ac_old_set,$ac_new_set in
1332     set,)
1333       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1335       ac_cache_corrupted=: ;;
1336     ,set)
1337       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1338 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1339       ac_cache_corrupted=: ;;
1340     ,);;
1341     *)
1342       if test "x$ac_old_val" != "x$ac_new_val"; then
1343         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1344 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1345         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1346 echo "$as_me:   former value:  $ac_old_val" >&2;}
1347         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1348 echo "$as_me:   current value: $ac_new_val" >&2;}
1349         ac_cache_corrupted=:
1350       fi;;
1351   esac
1352   # Pass precious variables to config.status.
1353   if test "$ac_new_set" = set; then
1354     case $ac_new_val in
1355     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1356       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1357     *) ac_arg=$ac_var=$ac_new_val ;;
1358     esac
1359     case " $ac_configure_args " in
1360       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1361       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1362     esac
1363   fi
1364 done
1365 if $ac_cache_corrupted; then
1366   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1367 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1368   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1369 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1370    { (exit 1); exit 1; }; }
1371 fi
1372
1373 ac_ext=c
1374 ac_cpp='$CPP $CPPFLAGS'
1375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397 BUILD_DIR=`pwd`
1398 cd ..
1399 TOP_DIR=`pwd`
1400 cd ${BUILD_DIR}
1401
1402
1403 ac_aux_dir=
1404 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1405   if test -f $ac_dir/install-sh; then
1406     ac_aux_dir=$ac_dir
1407     ac_install_sh="$ac_aux_dir/install-sh -c"
1408     break
1409   elif test -f $ac_dir/install.sh; then
1410     ac_aux_dir=$ac_dir
1411     ac_install_sh="$ac_aux_dir/install.sh -c"
1412     break
1413   elif test -f $ac_dir/shtool; then
1414     ac_aux_dir=$ac_dir
1415     ac_install_sh="$ac_aux_dir/shtool install -c"
1416     break
1417   fi
1418 done
1419 if test -z "$ac_aux_dir"; then
1420   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1422    { (exit 1); exit 1; }; }
1423 fi
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1427
1428           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1429
1430
1431
1432
1433
1434 for ac_prog in true
1435 do
1436   # Extract the first word of "$ac_prog", so it can be a program name with args.
1437 set dummy $ac_prog; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1441   echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443   case $TRUEPRG in
1444   [\\/]* | ?:[\\/]*)
1445   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1446   ;;
1447   *)
1448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1450 do
1451   IFS=$as_save_IFS
1452   test -z "$as_dir" && as_dir=.
1453   for ac_exec_ext in '' $ac_executable_extensions; do
1454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457     break 2
1458   fi
1459 done
1460 done
1461
1462   ;;
1463 esac
1464 fi
1465 TRUEPRG=$ac_cv_path_TRUEPRG
1466
1467 if test -n "$TRUEPRG"; then
1468   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1469 echo "${ECHO_T}$TRUEPRG" >&6
1470 else
1471   echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1473 fi
1474
1475   test -n "$TRUEPRG" && break
1476 done
1477 test -n "$TRUEPRG" || TRUEPRG=":"
1478
1479 for ac_prog in false
1480 do
1481   # Extract the first word of "$ac_prog", so it can be a program name with args.
1482 set dummy $ac_prog; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1486   echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488   case $FALSEPRG in
1489   [\\/]* | ?:[\\/]*)
1490   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1491   ;;
1492   *)
1493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 for as_dir in $PATH
1495 do
1496   IFS=$as_save_IFS
1497   test -z "$as_dir" && as_dir=.
1498   for ac_exec_ext in '' $ac_executable_extensions; do
1499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502     break 2
1503   fi
1504 done
1505 done
1506
1507   ;;
1508 esac
1509 fi
1510 FALSEPRG=$ac_cv_path_FALSEPRG
1511
1512 if test -n "$FALSEPRG"; then
1513   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1514 echo "${ECHO_T}$FALSEPRG" >&6
1515 else
1516   echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1518 fi
1519
1520   test -n "$FALSEPRG" && break
1521 done
1522 test -n "$FALSEPRG" || FALSEPRG=":"
1523
1524
1525 #AC_CANONICAL_HOST
1526
1527 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1529 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1530 echo "configuring for bacula $VERSION ($DATE)"
1531
1532
1533
1534 ac_ext=c
1535 ac_cpp='$CPP $CPPFLAGS'
1536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1539 if test -n "$ac_tool_prefix"; then
1540   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_CC+set}" = set; then
1545   echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547   if test -n "$CC"; then
1548   ac_cv_prog_CC="$CC" # Let the user override the test.
1549 else
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1552 do
1553   IFS=$as_save_IFS
1554   test -z "$as_dir" && as_dir=.
1555   for ac_exec_ext in '' $ac_executable_extensions; do
1556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559     break 2
1560   fi
1561 done
1562 done
1563
1564 fi
1565 fi
1566 CC=$ac_cv_prog_CC
1567 if test -n "$CC"; then
1568   echo "$as_me:$LINENO: result: $CC" >&5
1569 echo "${ECHO_T}$CC" >&6
1570 else
1571   echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1573 fi
1574
1575 fi
1576 if test -z "$ac_cv_prog_CC"; then
1577   ac_ct_CC=$CC
1578   # Extract the first word of "gcc", so it can be a program name with args.
1579 set dummy gcc; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1583   echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585   if test -n "$ac_ct_CC"; then
1586   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1587 else
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 for as_dir in $PATH
1590 do
1591   IFS=$as_save_IFS
1592   test -z "$as_dir" && as_dir=.
1593   for ac_exec_ext in '' $ac_executable_extensions; do
1594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595     ac_cv_prog_ac_ct_CC="gcc"
1596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1597     break 2
1598   fi
1599 done
1600 done
1601
1602 fi
1603 fi
1604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1605 if test -n "$ac_ct_CC"; then
1606   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1607 echo "${ECHO_T}$ac_ct_CC" >&6
1608 else
1609   echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1611 fi
1612
1613   CC=$ac_ct_CC
1614 else
1615   CC="$ac_cv_prog_CC"
1616 fi
1617
1618 if test -z "$CC"; then
1619   if test -n "$ac_tool_prefix"; then
1620   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1621 set dummy ${ac_tool_prefix}cc; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   if test -n "$CC"; then
1628   ac_cv_prog_CC="$CC" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1632 do
1633   IFS=$as_save_IFS
1634   test -z "$as_dir" && as_dir=.
1635   for ac_exec_ext in '' $ac_executable_extensions; do
1636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637     ac_cv_prog_CC="${ac_tool_prefix}cc"
1638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639     break 2
1640   fi
1641 done
1642 done
1643
1644 fi
1645 fi
1646 CC=$ac_cv_prog_CC
1647 if test -n "$CC"; then
1648   echo "$as_me:$LINENO: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1650 else
1651   echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1653 fi
1654
1655 fi
1656 if test -z "$ac_cv_prog_CC"; then
1657   ac_ct_CC=$CC
1658   # Extract the first word of "cc", so it can be a program name with args.
1659 set dummy cc; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1663   echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665   if test -n "$ac_ct_CC"; then
1666   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1667 else
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1670 do
1671   IFS=$as_save_IFS
1672   test -z "$as_dir" && as_dir=.
1673   for ac_exec_ext in '' $ac_executable_extensions; do
1674   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675     ac_cv_prog_ac_ct_CC="cc"
1676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677     break 2
1678   fi
1679 done
1680 done
1681
1682 fi
1683 fi
1684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1685 if test -n "$ac_ct_CC"; then
1686   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1687 echo "${ECHO_T}$ac_ct_CC" >&6
1688 else
1689   echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1691 fi
1692
1693   CC=$ac_ct_CC
1694 else
1695   CC="$ac_cv_prog_CC"
1696 fi
1697
1698 fi
1699 if test -z "$CC"; then
1700   # Extract the first word of "cc", so it can be a program name with args.
1701 set dummy cc; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_CC+set}" = set; then
1705   echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707   if test -n "$CC"; then
1708   ac_cv_prog_CC="$CC" # Let the user override the test.
1709 else
1710   ac_prog_rejected=no
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   for ac_exec_ext in '' $ac_executable_extensions; do
1717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1719        ac_prog_rejected=yes
1720        continue
1721      fi
1722     ac_cv_prog_CC="cc"
1723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724     break 2
1725   fi
1726 done
1727 done
1728
1729 if test $ac_prog_rejected = yes; then
1730   # We found a bogon in the path, so make sure we never use it.
1731   set dummy $ac_cv_prog_CC
1732   shift
1733   if test $# != 0; then
1734     # We chose a different compiler from the bogus one.
1735     # However, it has the same basename, so the bogon will be chosen
1736     # first if we set CC to just the basename; use the full file name.
1737     shift
1738     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1739   fi
1740 fi
1741 fi
1742 fi
1743 CC=$ac_cv_prog_CC
1744 if test -n "$CC"; then
1745   echo "$as_me:$LINENO: result: $CC" >&5
1746 echo "${ECHO_T}$CC" >&6
1747 else
1748   echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1750 fi
1751
1752 fi
1753 if test -z "$CC"; then
1754   if test -n "$ac_tool_prefix"; then
1755   for ac_prog in cl
1756   do
1757     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1759 echo "$as_me:$LINENO: checking for $ac_word" >&5
1760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1761 if test "${ac_cv_prog_CC+set}" = set; then
1762   echo $ECHO_N "(cached) $ECHO_C" >&6
1763 else
1764   if test -n "$CC"; then
1765   ac_cv_prog_CC="$CC" # Let the user override the test.
1766 else
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 for as_dir in $PATH
1769 do
1770   IFS=$as_save_IFS
1771   test -z "$as_dir" && as_dir=.
1772   for ac_exec_ext in '' $ac_executable_extensions; do
1773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1774     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1776     break 2
1777   fi
1778 done
1779 done
1780
1781 fi
1782 fi
1783 CC=$ac_cv_prog_CC
1784 if test -n "$CC"; then
1785   echo "$as_me:$LINENO: result: $CC" >&5
1786 echo "${ECHO_T}$CC" >&6
1787 else
1788   echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1790 fi
1791
1792     test -n "$CC" && break
1793   done
1794 fi
1795 if test -z "$CC"; then
1796   ac_ct_CC=$CC
1797   for ac_prog in cl
1798 do
1799   # Extract the first word of "$ac_prog", so it can be a program name with args.
1800 set dummy $ac_prog; ac_word=$2
1801 echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1804   echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806   if test -n "$ac_ct_CC"; then
1807   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1808 else
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 for as_dir in $PATH
1811 do
1812   IFS=$as_save_IFS
1813   test -z "$as_dir" && as_dir=.
1814   for ac_exec_ext in '' $ac_executable_extensions; do
1815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816     ac_cv_prog_ac_ct_CC="$ac_prog"
1817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818     break 2
1819   fi
1820 done
1821 done
1822
1823 fi
1824 fi
1825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1826 if test -n "$ac_ct_CC"; then
1827   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1828 echo "${ECHO_T}$ac_ct_CC" >&6
1829 else
1830   echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1832 fi
1833
1834   test -n "$ac_ct_CC" && break
1835 done
1836
1837   CC=$ac_ct_CC
1838 fi
1839
1840 fi
1841
1842
1843 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1844 See \`config.log' for more details." >&5
1845 echo "$as_me: error: no acceptable C compiler found in \$PATH
1846 See \`config.log' for more details." >&2;}
1847    { (exit 1); exit 1; }; }
1848
1849 # Provide some information about the compiler.
1850 echo "$as_me:$LINENO:" \
1851      "checking for C compiler version" >&5
1852 ac_compiler=`set X $ac_compile; echo $2`
1853 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1854   (eval $ac_compiler --version </dev/null >&5) 2>&5
1855   ac_status=$?
1856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857   (exit $ac_status); }
1858 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1859   (eval $ac_compiler -v </dev/null >&5) 2>&5
1860   ac_status=$?
1861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862   (exit $ac_status); }
1863 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1864   (eval $ac_compiler -V </dev/null >&5) 2>&5
1865   ac_status=$?
1866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867   (exit $ac_status); }
1868
1869 cat >conftest.$ac_ext <<_ACEOF
1870 /* confdefs.h.  */
1871 _ACEOF
1872 cat confdefs.h >>conftest.$ac_ext
1873 cat >>conftest.$ac_ext <<_ACEOF
1874 /* end confdefs.h.  */
1875
1876 int
1877 main ()
1878 {
1879
1880   ;
1881   return 0;
1882 }
1883 _ACEOF
1884 ac_clean_files_save=$ac_clean_files
1885 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1886 # Try to create an executable without -o first, disregard a.out.
1887 # It will help us diagnose broken compilers, and finding out an intuition
1888 # of exeext.
1889 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1890 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1891 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1892 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1893   (eval $ac_link_default) 2>&5
1894   ac_status=$?
1895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896   (exit $ac_status); }; then
1897   # Find the output, starting from the most likely.  This scheme is
1898 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1899 # resort.
1900
1901 # Be careful to initialize this variable, since it used to be cached.
1902 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1903 ac_cv_exeext=
1904 # b.out is created by i960 compilers.
1905 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1906 do
1907   test -f "$ac_file" || continue
1908   case $ac_file in
1909     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1910         ;;
1911     conftest.$ac_ext )
1912         # This is the source file.
1913         ;;
1914     [ab].out )
1915         # We found the default executable, but exeext='' is most
1916         # certainly right.
1917         break;;
1918     *.* )
1919         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1920         # FIXME: I believe we export ac_cv_exeext for Libtool,
1921         # but it would be cool to find out if it's true.  Does anybody
1922         # maintain Libtool? --akim.
1923         export ac_cv_exeext
1924         break;;
1925     * )
1926         break;;
1927   esac
1928 done
1929 else
1930   echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1934 See \`config.log' for more details." >&5
1935 echo "$as_me: error: C compiler cannot create executables
1936 See \`config.log' for more details." >&2;}
1937    { (exit 77); exit 77; }; }
1938 fi
1939
1940 ac_exeext=$ac_cv_exeext
1941 echo "$as_me:$LINENO: result: $ac_file" >&5
1942 echo "${ECHO_T}$ac_file" >&6
1943
1944 # Check the compiler produces executables we can run.  If not, either
1945 # the compiler is broken, or we cross compile.
1946 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1947 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1948 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1949 # If not cross compiling, check that we can run a simple program.
1950 if test "$cross_compiling" != yes; then
1951   if { ac_try='./$ac_file'
1952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953   (eval $ac_try) 2>&5
1954   ac_status=$?
1955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956   (exit $ac_status); }; }; then
1957     cross_compiling=no
1958   else
1959     if test "$cross_compiling" = maybe; then
1960         cross_compiling=yes
1961     else
1962         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1963 If you meant to cross compile, use \`--host'.
1964 See \`config.log' for more details." >&5
1965 echo "$as_me: error: cannot run C compiled programs.
1966 If you meant to cross compile, use \`--host'.
1967 See \`config.log' for more details." >&2;}
1968    { (exit 1); exit 1; }; }
1969     fi
1970   fi
1971 fi
1972 echo "$as_me:$LINENO: result: yes" >&5
1973 echo "${ECHO_T}yes" >&6
1974
1975 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1976 ac_clean_files=$ac_clean_files_save
1977 # Check the compiler produces executables we can run.  If not, either
1978 # the compiler is broken, or we cross compile.
1979 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1980 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1981 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1982 echo "${ECHO_T}$cross_compiling" >&6
1983
1984 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1985 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1987   (eval $ac_link) 2>&5
1988   ac_status=$?
1989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990   (exit $ac_status); }; then
1991   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1992 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1993 # work properly (i.e., refer to `conftest.exe'), while it won't with
1994 # `rm'.
1995 for ac_file in conftest.exe conftest conftest.*; do
1996   test -f "$ac_file" || continue
1997   case $ac_file in
1998     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1999     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2000           export ac_cv_exeext
2001           break;;
2002     * ) break;;
2003   esac
2004 done
2005 else
2006   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2007 See \`config.log' for more details." >&5
2008 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2009 See \`config.log' for more details." >&2;}
2010    { (exit 1); exit 1; }; }
2011 fi
2012
2013 rm -f conftest$ac_cv_exeext
2014 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2015 echo "${ECHO_T}$ac_cv_exeext" >&6
2016
2017 rm -f conftest.$ac_ext
2018 EXEEXT=$ac_cv_exeext
2019 ac_exeext=$EXEEXT
2020 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2021 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2022 if test "${ac_cv_objext+set}" = set; then
2023   echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025   cat >conftest.$ac_ext <<_ACEOF
2026 /* confdefs.h.  */
2027 _ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h.  */
2031
2032 int
2033 main ()
2034 {
2035
2036   ;
2037   return 0;
2038 }
2039 _ACEOF
2040 rm -f conftest.o conftest.obj
2041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042   (eval $ac_compile) 2>&5
2043   ac_status=$?
2044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045   (exit $ac_status); }; then
2046   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2047   case $ac_file in
2048     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2049     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2050        break;;
2051   esac
2052 done
2053 else
2054   echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2056
2057 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2058 See \`config.log' for more details." >&5
2059 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2060 See \`config.log' for more details." >&2;}
2061    { (exit 1); exit 1; }; }
2062 fi
2063
2064 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2065 fi
2066 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2067 echo "${ECHO_T}$ac_cv_objext" >&6
2068 OBJEXT=$ac_cv_objext
2069 ac_objext=$OBJEXT
2070 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2071 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2072 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   cat >conftest.$ac_ext <<_ACEOF
2076 /* confdefs.h.  */
2077 _ACEOF
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h.  */
2081
2082 int
2083 main ()
2084 {
2085 #ifndef __GNUC__
2086        choke me
2087 #endif
2088
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095   (eval $ac_compile) 2>conftest.er1
2096   ac_status=$?
2097   grep -v '^ *+' conftest.er1 >conftest.err
2098   rm -f conftest.er1
2099   cat conftest.err >&5
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); } &&
2102          { ac_try='test -z "$ac_c_werror_flag"
2103                          || test ! -s conftest.err'
2104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105   (eval $ac_try) 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }; } &&
2109          { ac_try='test -s conftest.$ac_objext'
2110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111   (eval $ac_try) 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }; }; then
2115   ac_compiler_gnu=yes
2116 else
2117   echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2119
2120 ac_compiler_gnu=no
2121 fi
2122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2123 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2124
2125 fi
2126 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2127 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2128 GCC=`test $ac_compiler_gnu = yes && echo yes`
2129 ac_test_CFLAGS=${CFLAGS+set}
2130 ac_save_CFLAGS=$CFLAGS
2131 CFLAGS="-g"
2132 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2133 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2134 if test "${ac_cv_prog_cc_g+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   cat >conftest.$ac_ext <<_ACEOF
2138 /* confdefs.h.  */
2139 _ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h.  */
2143
2144 int
2145 main ()
2146 {
2147
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154   (eval $ac_compile) 2>conftest.er1
2155   ac_status=$?
2156   grep -v '^ *+' conftest.er1 >conftest.err
2157   rm -f conftest.er1
2158   cat conftest.err >&5
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); } &&
2161          { ac_try='test -z "$ac_c_werror_flag"
2162                          || test ! -s conftest.err'
2163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164   (eval $ac_try) 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); }; } &&
2168          { ac_try='test -s conftest.$ac_objext'
2169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170   (eval $ac_try) 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }; }; then
2174   ac_cv_prog_cc_g=yes
2175 else
2176   echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2178
2179 ac_cv_prog_cc_g=no
2180 fi
2181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2182 fi
2183 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2184 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2185 if test "$ac_test_CFLAGS" = set; then
2186   CFLAGS=$ac_save_CFLAGS
2187 elif test $ac_cv_prog_cc_g = yes; then
2188   if test "$GCC" = yes; then
2189     CFLAGS="-g -O2"
2190   else
2191     CFLAGS="-g"
2192   fi
2193 else
2194   if test "$GCC" = yes; then
2195     CFLAGS="-O2"
2196   else
2197     CFLAGS=
2198   fi
2199 fi
2200 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2201 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2202 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   ac_cv_prog_cc_stdc=no
2206 ac_save_CC=$CC
2207 cat >conftest.$ac_ext <<_ACEOF
2208 /* confdefs.h.  */
2209 _ACEOF
2210 cat confdefs.h >>conftest.$ac_ext
2211 cat >>conftest.$ac_ext <<_ACEOF
2212 /* end confdefs.h.  */
2213 #include <stdarg.h>
2214 #include <stdio.h>
2215 #include <sys/types.h>
2216 #include <sys/stat.h>
2217 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2218 struct buf { int x; };
2219 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2220 static char *e (p, i)
2221      char **p;
2222      int i;
2223 {
2224   return p[i];
2225 }
2226 static char *f (char * (*g) (char **, int), char **p, ...)
2227 {
2228   char *s;
2229   va_list v;
2230   va_start (v,p);
2231   s = g (p, va_arg (v,int));
2232   va_end (v);
2233   return s;
2234 }
2235
2236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2237    function prototypes and stuff, but not '\xHH' hex character constants.
2238    These don't provoke an error unfortunately, instead are silently treated
2239    as 'x'.  The following induces an error, until -std1 is added to get
2240    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2241    array size at least.  It's necessary to write '\x00'==0 to get something
2242    that's true only with -std1.  */
2243 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2244
2245 int test (int i, double x);
2246 struct s1 {int (*f) (int a);};
2247 struct s2 {int (*f) (double a);};
2248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2249 int argc;
2250 char **argv;
2251 int
2252 main ()
2253 {
2254 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2255   ;
2256   return 0;
2257 }
2258 _ACEOF
2259 # Don't try gcc -ansi; that turns off useful extensions and
2260 # breaks some systems' header files.
2261 # AIX                   -qlanglvl=ansi
2262 # Ultrix and OSF/1      -std1
2263 # HP-UX 10.20 and later -Ae
2264 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2265 # SVR4                  -Xc -D__EXTENSIONS__
2266 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2267 do
2268   CC="$ac_save_CC $ac_arg"
2269   rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271   (eval $ac_compile) 2>conftest.er1
2272   ac_status=$?
2273   grep -v '^ *+' conftest.er1 >conftest.err
2274   rm -f conftest.er1
2275   cat conftest.err >&5
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); } &&
2278          { ac_try='test -z "$ac_c_werror_flag"
2279                          || test ! -s conftest.err'
2280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281   (eval $ac_try) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }; } &&
2285          { ac_try='test -s conftest.$ac_objext'
2286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287   (eval $ac_try) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }; }; then
2291   ac_cv_prog_cc_stdc=$ac_arg
2292 break
2293 else
2294   echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2296
2297 fi
2298 rm -f conftest.err conftest.$ac_objext
2299 done
2300 rm -f conftest.$ac_ext conftest.$ac_objext
2301 CC=$ac_save_CC
2302
2303 fi
2304
2305 case "x$ac_cv_prog_cc_stdc" in
2306   x|xno)
2307     echo "$as_me:$LINENO: result: none needed" >&5
2308 echo "${ECHO_T}none needed" >&6 ;;
2309   *)
2310     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2311 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2312     CC="$CC $ac_cv_prog_cc_stdc" ;;
2313 esac
2314
2315 # Some people use a C++ compiler to compile C.  Since we use `exit',
2316 # in C++ we need to declare it.  In case someone uses the same compiler
2317 # for both compiling C and C++ we need to have the C++ compiler decide
2318 # the declaration of exit, since it's the most demanding environment.
2319 cat >conftest.$ac_ext <<_ACEOF
2320 #ifndef __cplusplus
2321   choke me
2322 #endif
2323 _ACEOF
2324 rm -f conftest.$ac_objext
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326   (eval $ac_compile) 2>conftest.er1
2327   ac_status=$?
2328   grep -v '^ *+' conftest.er1 >conftest.err
2329   rm -f conftest.er1
2330   cat conftest.err >&5
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); } &&
2333          { ac_try='test -z "$ac_c_werror_flag"
2334                          || test ! -s conftest.err'
2335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336   (eval $ac_try) 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); }; } &&
2340          { ac_try='test -s conftest.$ac_objext'
2341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342   (eval $ac_try) 2>&5
2343   ac_status=$?
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); }; }; then
2346   for ac_declaration in \
2347    '' \
2348    'extern "C" void std::exit (int) throw (); using std::exit;' \
2349    'extern "C" void std::exit (int); using std::exit;' \
2350    'extern "C" void exit (int) throw ();' \
2351    'extern "C" void exit (int);' \
2352    'void exit (int);'
2353 do
2354   cat >conftest.$ac_ext <<_ACEOF
2355 /* confdefs.h.  */
2356 _ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h.  */
2360 $ac_declaration
2361 #include <stdlib.h>
2362 int
2363 main ()
2364 {
2365 exit (42);
2366   ;
2367   return 0;
2368 }
2369 _ACEOF
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372   (eval $ac_compile) 2>conftest.er1
2373   ac_status=$?
2374   grep -v '^ *+' conftest.er1 >conftest.err
2375   rm -f conftest.er1
2376   cat conftest.err >&5
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); } &&
2379          { ac_try='test -z "$ac_c_werror_flag"
2380                          || test ! -s conftest.err'
2381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382   (eval $ac_try) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }; } &&
2386          { ac_try='test -s conftest.$ac_objext'
2387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388   (eval $ac_try) 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); }; }; then
2392   :
2393 else
2394   echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2396
2397 continue
2398 fi
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400   cat >conftest.$ac_ext <<_ACEOF
2401 /* confdefs.h.  */
2402 _ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h.  */
2406 $ac_declaration
2407 int
2408 main ()
2409 {
2410 exit (42);
2411   ;
2412   return 0;
2413 }
2414 _ACEOF
2415 rm -f conftest.$ac_objext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417   (eval $ac_compile) 2>conftest.er1
2418   ac_status=$?
2419   grep -v '^ *+' conftest.er1 >conftest.err
2420   rm -f conftest.er1
2421   cat conftest.err >&5
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); } &&
2424          { ac_try='test -z "$ac_c_werror_flag"
2425                          || test ! -s conftest.err'
2426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427   (eval $ac_try) 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }; } &&
2431          { ac_try='test -s conftest.$ac_objext'
2432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433   (eval $ac_try) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }; }; then
2437   break
2438 else
2439   echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 fi
2443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444 done
2445 rm -f conftest*
2446 if test -n "$ac_declaration"; then
2447   echo '#ifdef __cplusplus' >>confdefs.h
2448   echo $ac_declaration      >>confdefs.h
2449   echo '#endif'             >>confdefs.h
2450 fi
2451
2452 else
2453   echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2455
2456 fi
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 ac_ext=c
2459 ac_cpp='$CPP $CPPFLAGS'
2460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463
2464 ac_ext=cc
2465 ac_cpp='$CXXCPP $CPPFLAGS'
2466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2469 if test -n "$ac_tool_prefix"; then
2470   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2471   do
2472     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2474 echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476 if test "${ac_cv_prog_CXX+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   if test -n "$CXX"; then
2480   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485   IFS=$as_save_IFS
2486   test -z "$as_dir" && as_dir=.
2487   for ac_exec_ext in '' $ac_executable_extensions; do
2488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491     break 2
2492   fi
2493 done
2494 done
2495
2496 fi
2497 fi
2498 CXX=$ac_cv_prog_CXX
2499 if test -n "$CXX"; then
2500   echo "$as_me:$LINENO: result: $CXX" >&5
2501 echo "${ECHO_T}$CXX" >&6
2502 else
2503   echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6
2505 fi
2506
2507     test -n "$CXX" && break
2508   done
2509 fi
2510 if test -z "$CXX"; then
2511   ac_ct_CXX=$CXX
2512   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2513 do
2514   # Extract the first word of "$ac_prog", so it can be a program name with args.
2515 set dummy $ac_prog; ac_word=$2
2516 echo "$as_me:$LINENO: checking for $ac_word" >&5
2517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2518 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2519   echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521   if test -n "$ac_ct_CXX"; then
2522   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527   IFS=$as_save_IFS
2528   test -z "$as_dir" && as_dir=.
2529   for ac_exec_ext in '' $ac_executable_extensions; do
2530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531     ac_cv_prog_ac_ct_CXX="$ac_prog"
2532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533     break 2
2534   fi
2535 done
2536 done
2537
2538 fi
2539 fi
2540 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2541 if test -n "$ac_ct_CXX"; then
2542   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2543 echo "${ECHO_T}$ac_ct_CXX" >&6
2544 else
2545   echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6
2547 fi
2548
2549   test -n "$ac_ct_CXX" && break
2550 done
2551 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2552
2553   CXX=$ac_ct_CXX
2554 fi
2555
2556
2557 # Provide some information about the compiler.
2558 echo "$as_me:$LINENO:" \
2559      "checking for C++ compiler version" >&5
2560 ac_compiler=`set X $ac_compile; echo $2`
2561 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2562   (eval $ac_compiler --version </dev/null >&5) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }
2566 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2567   (eval $ac_compiler -v </dev/null >&5) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }
2571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2572   (eval $ac_compiler -V </dev/null >&5) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }
2576
2577 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2578 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2579 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2580   echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582   cat >conftest.$ac_ext <<_ACEOF
2583 /* confdefs.h.  */
2584 _ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h.  */
2588
2589 int
2590 main ()
2591 {
2592 #ifndef __GNUC__
2593        choke me
2594 #endif
2595
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602   (eval $ac_compile) 2>conftest.er1
2603   ac_status=$?
2604   grep -v '^ *+' conftest.er1 >conftest.err
2605   rm -f conftest.er1
2606   cat conftest.err >&5
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); } &&
2609          { ac_try='test -z "$ac_cxx_werror_flag"
2610                          || test ! -s conftest.err'
2611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; } &&
2616          { ac_try='test -s conftest.$ac_objext'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; }; then
2622   ac_compiler_gnu=yes
2623 else
2624   echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2626
2627 ac_compiler_gnu=no
2628 fi
2629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2630 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2631
2632 fi
2633 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2634 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2635 GXX=`test $ac_compiler_gnu = yes && echo yes`
2636 ac_test_CXXFLAGS=${CXXFLAGS+set}
2637 ac_save_CXXFLAGS=$CXXFLAGS
2638 CXXFLAGS="-g"
2639 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2640 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2641 if test "${ac_cv_prog_cxx_g+set}" = set; then
2642   echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644   cat >conftest.$ac_ext <<_ACEOF
2645 /* confdefs.h.  */
2646 _ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h.  */
2650
2651 int
2652 main ()
2653 {
2654
2655   ;
2656   return 0;
2657 }
2658 _ACEOF
2659 rm -f conftest.$ac_objext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661   (eval $ac_compile) 2>conftest.er1
2662   ac_status=$?
2663   grep -v '^ *+' conftest.er1 >conftest.err
2664   rm -f conftest.er1
2665   cat conftest.err >&5
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); } &&
2668          { ac_try='test -z "$ac_cxx_werror_flag"
2669                          || test ! -s conftest.err'
2670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671   (eval $ac_try) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; } &&
2675          { ac_try='test -s conftest.$ac_objext'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; }; then
2681   ac_cv_prog_cxx_g=yes
2682 else
2683   echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2685
2686 ac_cv_prog_cxx_g=no
2687 fi
2688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2689 fi
2690 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2691 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2692 if test "$ac_test_CXXFLAGS" = set; then
2693   CXXFLAGS=$ac_save_CXXFLAGS
2694 elif test $ac_cv_prog_cxx_g = yes; then
2695   if test "$GXX" = yes; then
2696     CXXFLAGS="-g -O2"
2697   else
2698     CXXFLAGS="-g"
2699   fi
2700 else
2701   if test "$GXX" = yes; then
2702     CXXFLAGS="-O2"
2703   else
2704     CXXFLAGS=
2705   fi
2706 fi
2707 for ac_declaration in \
2708    '' \
2709    'extern "C" void std::exit (int) throw (); using std::exit;' \
2710    'extern "C" void std::exit (int); using std::exit;' \
2711    'extern "C" void exit (int) throw ();' \
2712    'extern "C" void exit (int);' \
2713    'void exit (int);'
2714 do
2715   cat >conftest.$ac_ext <<_ACEOF
2716 /* confdefs.h.  */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h.  */
2721 $ac_declaration
2722 #include <stdlib.h>
2723 int
2724 main ()
2725 {
2726 exit (42);
2727   ;
2728   return 0;
2729 }
2730 _ACEOF
2731 rm -f conftest.$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733   (eval $ac_compile) 2>conftest.er1
2734   ac_status=$?
2735   grep -v '^ *+' conftest.er1 >conftest.err
2736   rm -f conftest.er1
2737   cat conftest.err >&5
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); } &&
2740          { ac_try='test -z "$ac_cxx_werror_flag"
2741                          || test ! -s conftest.err'
2742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743   (eval $ac_try) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }; } &&
2747          { ac_try='test -s conftest.$ac_objext'
2748   { (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); }; }; then
2753   :
2754 else
2755   echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2757
2758 continue
2759 fi
2760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2761   cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h.  */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h.  */
2767 $ac_declaration
2768 int
2769 main ()
2770 {
2771 exit (42);
2772   ;
2773   return 0;
2774 }
2775 _ACEOF
2776 rm -f conftest.$ac_objext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778   (eval $ac_compile) 2>conftest.er1
2779   ac_status=$?
2780   grep -v '^ *+' conftest.er1 >conftest.err
2781   rm -f conftest.er1
2782   cat conftest.err >&5
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); } &&
2785          { ac_try='test -z "$ac_cxx_werror_flag"
2786                          || test ! -s conftest.err'
2787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788   (eval $ac_try) 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); }; } &&
2792          { ac_try='test -s conftest.$ac_objext'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; }; then
2798   break
2799 else
2800   echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2802
2803 fi
2804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2805 done
2806 rm -f conftest*
2807 if test -n "$ac_declaration"; then
2808   echo '#ifdef __cplusplus' >>confdefs.h
2809   echo $ac_declaration      >>confdefs.h
2810   echo '#endif'             >>confdefs.h
2811 fi
2812
2813 ac_ext=c
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818
2819 if test "x$CC" != xcc; then
2820   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2821 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2822 else
2823   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2824 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2825 fi
2826 set dummy $CC; ac_cc=`echo $2 |
2827                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2828 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h.  */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h.  */
2837
2838 int
2839 main ()
2840 {
2841
2842   ;
2843   return 0;
2844 }
2845 _ACEOF
2846 # Make sure it works both with $CC and with simple cc.
2847 # We do the test twice because some compilers refuse to overwrite an
2848 # existing .o file with -o, though they will create one.
2849 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2850 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851   (eval $ac_try) 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); } &&
2855    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856   (eval $ac_try) 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); };
2860 then
2861   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2862   if test "x$CC" != xcc; then
2863     # Test first that cc exists at all.
2864     if { ac_try='cc -c conftest.$ac_ext >&5'
2865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866   (eval $ac_try) 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); }; }; then
2870       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2871       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); } &&
2876          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877   (eval $ac_try) 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); };
2881       then
2882         # cc works too.
2883         :
2884       else
2885         # cc exists but doesn't like -o.
2886         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2887       fi
2888     fi
2889   fi
2890 else
2891   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2892 fi
2893 rm -f conftest*
2894
2895 fi
2896 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2897   echo "$as_me:$LINENO: result: yes" >&5
2898 echo "${ECHO_T}yes" >&6
2899 else
2900   echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2902
2903 cat >>confdefs.h <<\_ACEOF
2904 #define NO_MINUS_C_MINUS_O 1
2905 _ACEOF
2906
2907 fi
2908
2909 ac_ext=c
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2916 # On Suns, sometimes $CPP names a directory.
2917 if test -n "$CPP" && test -d "$CPP"; then
2918   CPP=
2919 fi
2920 if test -z "$CPP"; then
2921   if test "${ac_cv_prog_CPP+set}" = set; then
2922   echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924       # Double quotes because CPP needs to be expanded
2925     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2926     do
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 /* confdefs.h.  */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h.  */
2942 #ifdef __STDC__
2943 # include <limits.h>
2944 #else
2945 # include <assert.h>
2946 #endif
2947                      Syntax error
2948 _ACEOF
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951   ac_status=$?
2952   grep -v '^ *+' conftest.er1 >conftest.err
2953   rm -f conftest.er1
2954   cat conftest.err >&5
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } >/dev/null; then
2957   if test -s conftest.err; then
2958     ac_cpp_err=$ac_c_preproc_warn_flag
2959     ac_cpp_err=$ac_cpp_err$ac_c_werror_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 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985 #include <ac_nonexistent.h>
2986 _ACEOF
2987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2989   ac_status=$?
2990   grep -v '^ *+' conftest.er1 >conftest.err
2991   rm -f conftest.er1
2992   cat conftest.err >&5
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); } >/dev/null; then
2995   if test -s conftest.err; then
2996     ac_cpp_err=$ac_c_preproc_warn_flag
2997     ac_cpp_err=$ac_cpp_err$ac_c_werror_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   break
3022 fi
3023
3024     done
3025     ac_cv_prog_CPP=$CPP
3026
3027 fi
3028   CPP=$ac_cv_prog_CPP
3029 else
3030   ac_cv_prog_CPP=$CPP
3031 fi
3032 echo "$as_me:$LINENO: result: $CPP" >&5
3033 echo "${ECHO_T}$CPP" >&6
3034 ac_preproc_ok=false
3035 for ac_c_preproc_warn_flag in '' yes
3036 do
3037   # Use a header file that comes with gcc, so configuring glibc
3038   # with a fresh cross-compiler works.
3039   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3040   # <limits.h> exists even on freestanding compilers.
3041   # On the NeXT, cc -E runs the code through the compiler's parser,
3042   # not just through cpp. "Syntax error" is here to catch this case.
3043   cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h.  */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h.  */
3049 #ifdef __STDC__
3050 # include <limits.h>
3051 #else
3052 # include <assert.h>
3053 #endif
3054                      Syntax error
3055 _ACEOF
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058   ac_status=$?
3059   grep -v '^ *+' conftest.er1 >conftest.err
3060   rm -f conftest.er1
3061   cat conftest.err >&5
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); } >/dev/null; then
3064   if test -s conftest.err; then
3065     ac_cpp_err=$ac_c_preproc_warn_flag
3066     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3067   else
3068     ac_cpp_err=
3069   fi
3070 else
3071   ac_cpp_err=yes
3072 fi
3073 if test -z "$ac_cpp_err"; then
3074   :
3075 else
3076   echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079   # Broken: fails on valid input.
3080 continue
3081 fi
3082 rm -f conftest.err conftest.$ac_ext
3083
3084   # OK, works on sane cases.  Now check whether non-existent headers
3085   # can be detected and how.
3086   cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h.  */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h.  */
3092 #include <ac_nonexistent.h>
3093 _ACEOF
3094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3096   ac_status=$?
3097   grep -v '^ *+' conftest.er1 >conftest.err
3098   rm -f conftest.er1
3099   cat conftest.err >&5
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); } >/dev/null; then
3102   if test -s conftest.err; then
3103     ac_cpp_err=$ac_c_preproc_warn_flag
3104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3105   else
3106     ac_cpp_err=
3107   fi
3108 else
3109   ac_cpp_err=yes
3110 fi
3111 if test -z "$ac_cpp_err"; then
3112   # Broken: success on invalid input.
3113 continue
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118   # Passes both tests.
3119 ac_preproc_ok=:
3120 break
3121 fi
3122 rm -f conftest.err conftest.$ac_ext
3123
3124 done
3125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3126 rm -f conftest.err conftest.$ac_ext
3127 if $ac_preproc_ok; then
3128   :
3129 else
3130   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&5
3132 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3133 See \`config.log' for more details." >&2;}
3134    { (exit 1); exit 1; }; }
3135 fi
3136
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
3143
3144 echo "$as_me:$LINENO: checking for egrep" >&5
3145 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3146 if test "${ac_cv_prog_egrep+set}" = set; then
3147   echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3150     then ac_cv_prog_egrep='grep -E'
3151     else ac_cv_prog_egrep='egrep'
3152     fi
3153 fi
3154 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3155 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3156  EGREP=$ac_cv_prog_egrep
3157
3158
3159 if test $ac_cv_c_compiler_gnu = yes; then
3160     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3161 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3162 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3163   echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165     ac_pattern="Autoconf.*'x'"
3166   cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h.  */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h.  */
3172 #include <sgtty.h>
3173 Autoconf TIOCGETP
3174 _ACEOF
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3177   ac_cv_prog_gcc_traditional=yes
3178 else
3179   ac_cv_prog_gcc_traditional=no
3180 fi
3181 rm -f conftest*
3182
3183
3184   if test $ac_cv_prog_gcc_traditional = no; then
3185     cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h.  */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h.  */
3191 #include <termio.h>
3192 Autoconf TCGETA
3193 _ACEOF
3194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3195   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3196   ac_cv_prog_gcc_traditional=yes
3197 fi
3198 rm -f conftest*
3199
3200   fi
3201 fi
3202 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3203 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3204   if test $ac_cv_prog_gcc_traditional = yes; then
3205     CC="$CC -traditional"
3206   fi
3207 fi
3208
3209 if test "x$CC" = xgcc; then
3210    cat >>confdefs.h <<\_ACEOF
3211 #define HAVE_GCC 1
3212 _ACEOF
3213
3214 fi
3215 # Extract the first word of "$CXX", so it can be a program name with args.
3216 set dummy $CXX; ac_word=$2
3217 echo "$as_me:$LINENO: checking for $ac_word" >&5
3218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3219 if test "${ac_cv_path_CXX+set}" = set; then
3220   echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222   case $CXX in
3223   [\\/]* | ?:[\\/]*)
3224   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3225   ;;
3226   *)
3227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230   IFS=$as_save_IFS
3231   test -z "$as_dir" && as_dir=.
3232   for ac_exec_ext in '' $ac_executable_extensions; do
3233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236     break 2
3237   fi
3238 done
3239 done
3240
3241   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3242   ;;
3243 esac
3244 fi
3245 CXX=$ac_cv_path_CXX
3246
3247 if test -n "$CXX"; then
3248   echo "$as_me:$LINENO: result: $CXX" >&5
3249 echo "${ECHO_T}$CXX" >&6
3250 else
3251   echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3253 fi
3254
3255 if test ! -e $CXX; then
3256    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3257 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3258    { (exit 1); exit 1; }; }
3259 fi
3260
3261 # Find a good install program.  We prefer a C program (faster),
3262 # so one script is as good as another.  But avoid the broken or
3263 # incompatible versions:
3264 # SysV /etc/install, /usr/sbin/install
3265 # SunOS /usr/etc/install
3266 # IRIX /sbin/install
3267 # AIX /bin/install
3268 # AmigaOS /C/install, which installs bootblocks on floppy discs
3269 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3272 # OS/2's system install, which has a completely different semantic
3273 # ./install, which can be erroneously created by make from ./install.sh.
3274 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3275 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3276 if test -z "$INSTALL"; then
3277 if test "${ac_cv_path_install+set}" = set; then
3278   echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3282 do
3283   IFS=$as_save_IFS
3284   test -z "$as_dir" && as_dir=.
3285   # Account for people who put trailing slashes in PATH elements.
3286 case $as_dir/ in
3287   ./ | .// | /cC/* | \
3288   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3289   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3290   /usr/ucb/* ) ;;
3291   *)
3292     # OSF1 and SCO ODT 3.0 have their own names for install.
3293     # Don't use installbsd from OSF since it installs stuff as root
3294     # by default.
3295     for ac_prog in ginstall scoinst install; do
3296       for ac_exec_ext in '' $ac_executable_extensions; do
3297         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3298           if test $ac_prog = install &&
3299             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3300             # AIX install.  It has an incompatible calling convention.
3301             :
3302           elif test $ac_prog = install &&
3303             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3304             # program-specific install script used by HP pwplus--don't use.
3305             :
3306           else
3307             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3308             break 3
3309           fi
3310         fi
3311       done
3312     done
3313     ;;
3314 esac
3315 done
3316
3317
3318 fi
3319   if test "${ac_cv_path_install+set}" = set; then
3320     INSTALL=$ac_cv_path_install
3321   else
3322     # As a last resort, use the slow shell script.  We don't cache a
3323     # path for INSTALL within a source directory, because that will
3324     # break other packages using the cache if that directory is
3325     # removed, or if the path is relative.
3326     INSTALL=$ac_install_sh
3327   fi
3328 fi
3329 echo "$as_me:$LINENO: result: $INSTALL" >&5
3330 echo "${ECHO_T}$INSTALL" >&6
3331
3332 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3333 # It thinks the first close brace ends the variable substitution.
3334 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3335
3336 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3337
3338 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3339
3340 if test -n "$ac_tool_prefix"; then
3341   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3342 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3343 echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3345 if test "${ac_cv_prog_RANLIB+set}" = set; then
3346   echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348   if test -n "$RANLIB"; then
3349   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354   IFS=$as_save_IFS
3355   test -z "$as_dir" && as_dir=.
3356   for ac_exec_ext in '' $ac_executable_extensions; do
3357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3358     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360     break 2
3361   fi
3362 done
3363 done
3364
3365 fi
3366 fi
3367 RANLIB=$ac_cv_prog_RANLIB
3368 if test -n "$RANLIB"; then
3369   echo "$as_me:$LINENO: result: $RANLIB" >&5
3370 echo "${ECHO_T}$RANLIB" >&6
3371 else
3372   echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6
3374 fi
3375
3376 fi
3377 if test -z "$ac_cv_prog_RANLIB"; then
3378   ac_ct_RANLIB=$RANLIB
3379   # Extract the first word of "ranlib", so it can be a program name with args.
3380 set dummy ranlib; ac_word=$2
3381 echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3383 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386   if test -n "$ac_ct_RANLIB"; then
3387   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3391 do
3392   IFS=$as_save_IFS
3393   test -z "$as_dir" && as_dir=.
3394   for ac_exec_ext in '' $ac_executable_extensions; do
3395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396     ac_cv_prog_ac_ct_RANLIB="ranlib"
3397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398     break 2
3399   fi
3400 done
3401 done
3402
3403   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3404 fi
3405 fi
3406 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3407 if test -n "$ac_ct_RANLIB"; then
3408   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3409 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3410 else
3411   echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3413 fi
3414
3415   RANLIB=$ac_ct_RANLIB
3416 else
3417   RANLIB="$ac_cv_prog_RANLIB"
3418 fi
3419
3420 # Extract the first word of "mv", so it can be a program name with args.
3421 set dummy mv; ac_word=$2
3422 echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3424 if test "${ac_cv_path_MV+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   case $MV in
3428   [\\/]* | ?:[\\/]*)
3429   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3430   ;;
3431   *)
3432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3434 do
3435   IFS=$as_save_IFS
3436   test -z "$as_dir" && as_dir=.
3437   for ac_exec_ext in '' $ac_executable_extensions; do
3438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441     break 2
3442   fi
3443 done
3444 done
3445
3446   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3447   ;;
3448 esac
3449 fi
3450 MV=$ac_cv_path_MV
3451
3452 if test -n "$MV"; then
3453   echo "$as_me:$LINENO: result: $MV" >&5
3454 echo "${ECHO_T}$MV" >&6
3455 else
3456   echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6
3458 fi
3459
3460 # Extract the first word of "rm", so it can be a program name with args.
3461 set dummy rm; ac_word=$2
3462 echo "$as_me:$LINENO: checking for $ac_word" >&5
3463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3464 if test "${ac_cv_path_RM+set}" = set; then
3465   echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467   case $RM in
3468   [\\/]* | ?:[\\/]*)
3469   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3470   ;;
3471   *)
3472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475   IFS=$as_save_IFS
3476   test -z "$as_dir" && as_dir=.
3477   for ac_exec_ext in '' $ac_executable_extensions; do
3478   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481     break 2
3482   fi
3483 done
3484 done
3485
3486   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3487   ;;
3488 esac
3489 fi
3490 RM=$ac_cv_path_RM
3491
3492 if test -n "$RM"; then
3493   echo "$as_me:$LINENO: result: $RM" >&5
3494 echo "${ECHO_T}$RM" >&6
3495 else
3496   echo "$as_me:$LINENO: result: no" >&5
3497 echo "${ECHO_T}no" >&6
3498 fi
3499
3500 # Extract the first word of "cp", so it can be a program name with args.
3501 set dummy cp; ac_word=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_path_CP+set}" = set; then
3505   echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507   case $CP in
3508   [\\/]* | ?:[\\/]*)
3509   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3510   ;;
3511   *)
3512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515   IFS=$as_save_IFS
3516   test -z "$as_dir" && as_dir=.
3517   for ac_exec_ext in '' $ac_executable_extensions; do
3518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521     break 2
3522   fi
3523 done
3524 done
3525
3526   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3527   ;;
3528 esac
3529 fi
3530 CP=$ac_cv_path_CP
3531
3532 if test -n "$CP"; then
3533   echo "$as_me:$LINENO: result: $CP" >&5
3534 echo "${ECHO_T}$CP" >&6
3535 else
3536   echo "$as_me:$LINENO: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3538 fi
3539
3540 # Extract the first word of "sed", so it can be a program name with args.
3541 set dummy sed; ac_word=$2
3542 echo "$as_me:$LINENO: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544 if test "${ac_cv_path_SED+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547   case $SED in
3548   [\\/]* | ?:[\\/]*)
3549   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3550   ;;
3551   *)
3552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3554 do
3555   IFS=$as_save_IFS
3556   test -z "$as_dir" && as_dir=.
3557   for ac_exec_ext in '' $ac_executable_extensions; do
3558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3561     break 2
3562   fi
3563 done
3564 done
3565
3566   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3567   ;;
3568 esac
3569 fi
3570 SED=$ac_cv_path_SED
3571
3572 if test -n "$SED"; then
3573   echo "$as_me:$LINENO: result: $SED" >&5
3574 echo "${ECHO_T}$SED" >&6
3575 else
3576   echo "$as_me:$LINENO: result: no" >&5
3577 echo "${ECHO_T}no" >&6
3578 fi
3579
3580 # Extract the first word of "echo", so it can be a program name with args.
3581 set dummy echo; ac_word=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_path_ECHO+set}" = set; then
3585   echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587   case $ECHO in
3588   [\\/]* | ?:[\\/]*)
3589   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3590   ;;
3591   *)
3592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595   IFS=$as_save_IFS
3596   test -z "$as_dir" && as_dir=.
3597   for ac_exec_ext in '' $ac_executable_extensions; do
3598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601     break 2
3602   fi
3603 done
3604 done
3605
3606   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3607   ;;
3608 esac
3609 fi
3610 ECHO=$ac_cv_path_ECHO
3611
3612 if test -n "$ECHO"; then
3613   echo "$as_me:$LINENO: result: $ECHO" >&5
3614 echo "${ECHO_T}$ECHO" >&6
3615 else
3616   echo "$as_me:$LINENO: result: no" >&5
3617 echo "${ECHO_T}no" >&6
3618 fi
3619
3620 # Extract the first word of "cmp", so it can be a program name with args.
3621 set dummy cmp; ac_word=$2
3622 echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3624 if test "${ac_cv_path_CMP+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   case $CMP in
3628   [\\/]* | ?:[\\/]*)
3629   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3630   ;;
3631   *)
3632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635   IFS=$as_save_IFS
3636   test -z "$as_dir" && as_dir=.
3637   for ac_exec_ext in '' $ac_executable_extensions; do
3638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641     break 2
3642   fi
3643 done
3644 done
3645
3646   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3647   ;;
3648 esac
3649 fi
3650 CMP=$ac_cv_path_CMP
3651
3652 if test -n "$CMP"; then
3653   echo "$as_me:$LINENO: result: $CMP" >&5
3654 echo "${ECHO_T}$CMP" >&6
3655 else
3656   echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6
3658 fi
3659
3660 # Extract the first word of "tbl", so it can be a program name with args.
3661 set dummy tbl; ac_word=$2
3662 echo "$as_me:$LINENO: checking for $ac_word" >&5
3663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3664 if test "${ac_cv_path_TBL+set}" = set; then
3665   echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667   case $TBL in
3668   [\\/]* | ?:[\\/]*)
3669   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3670   ;;
3671   *)
3672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3674 do
3675   IFS=$as_save_IFS
3676   test -z "$as_dir" && as_dir=.
3677   for ac_exec_ext in '' $ac_executable_extensions; do
3678   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3679     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3681     break 2
3682   fi
3683 done
3684 done
3685
3686   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3687   ;;
3688 esac
3689 fi
3690 TBL=$ac_cv_path_TBL
3691
3692 if test -n "$TBL"; then
3693   echo "$as_me:$LINENO: result: $TBL" >&5
3694 echo "${ECHO_T}$TBL" >&6
3695 else
3696   echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6
3698 fi
3699
3700 # Extract the first word of "ar", so it can be a program name with args.
3701 set dummy ar; ac_word=$2
3702 echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704 if test "${ac_cv_path_AR+set}" = set; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707   case $AR in
3708   [\\/]* | ?:[\\/]*)
3709   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3710   ;;
3711   *)
3712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH
3714 do
3715   IFS=$as_save_IFS
3716   test -z "$as_dir" && as_dir=.
3717   for ac_exec_ext in '' $ac_executable_extensions; do
3718   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3719     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3721     break 2
3722   fi
3723 done
3724 done
3725
3726   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3727   ;;
3728 esac
3729 fi
3730 AR=$ac_cv_path_AR
3731
3732 if test -n "$AR"; then
3733   echo "$as_me:$LINENO: result: $AR" >&5
3734 echo "${ECHO_T}$AR" >&6
3735 else
3736   echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6
3738 fi
3739
3740 # Extract the first word of "openssl", so it can be a program name with args.
3741 set dummy openssl; ac_word=$2
3742 echo "$as_me:$LINENO: checking for $ac_word" >&5
3743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3744 if test "${ac_cv_path_OPENSSL+set}" = set; then
3745   echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747   case $OPENSSL in
3748   [\\/]* | ?:[\\/]*)
3749   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3750   ;;
3751   *)
3752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755   IFS=$as_save_IFS
3756   test -z "$as_dir" && as_dir=.
3757   for ac_exec_ext in '' $ac_executable_extensions; do
3758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761     break 2
3762   fi
3763 done
3764 done
3765
3766   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3767   ;;
3768 esac
3769 fi
3770 OPENSSL=$ac_cv_path_OPENSSL
3771
3772 if test -n "$OPENSSL"; then
3773   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3774 echo "${ECHO_T}$OPENSSL" >&6
3775 else
3776   echo "$as_me:$LINENO: result: no" >&5
3777 echo "${ECHO_T}no" >&6
3778 fi
3779
3780 # Extract the first word of "mtx", so it can be a program name with args.
3781 set dummy mtx; ac_word=$2
3782 echo "$as_me:$LINENO: checking for $ac_word" >&5
3783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784 if test "${ac_cv_path_MTX+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   case $MTX in
3788   [\\/]* | ?:[\\/]*)
3789   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3790   ;;
3791   *)
3792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH
3794 do
3795   IFS=$as_save_IFS
3796   test -z "$as_dir" && as_dir=.
3797   for ac_exec_ext in '' $ac_executable_extensions; do
3798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801     break 2
3802   fi
3803 done
3804 done
3805
3806   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3807   ;;
3808 esac
3809 fi
3810 MTX=$ac_cv_path_MTX
3811
3812 if test -n "$MTX"; then
3813   echo "$as_me:$LINENO: result: $MTX" >&5
3814 echo "${ECHO_T}$MTX" >&6
3815 else
3816   echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3818 fi
3819
3820 # Extract the first word of "dd", so it can be a program name with args.
3821 set dummy dd; ac_word=$2
3822 echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3824 if test "${ac_cv_path_DD+set}" = set; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827   case $DD in
3828   [\\/]* | ?:[\\/]*)
3829   ac_cv_path_DD="$DD" # Let the user override the test with a path.
3830   ;;
3831   *)
3832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835   IFS=$as_save_IFS
3836   test -z "$as_dir" && as_dir=.
3837   for ac_exec_ext in '' $ac_executable_extensions; do
3838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841     break 2
3842   fi
3843 done
3844 done
3845
3846   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3847   ;;
3848 esac
3849 fi
3850 DD=$ac_cv_path_DD
3851
3852 if test -n "$DD"; then
3853   echo "$as_me:$LINENO: result: $DD" >&5
3854 echo "${ECHO_T}$DD" >&6
3855 else
3856   echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3858 fi
3859
3860 # Extract the first word of "mkisofs", so it can be a program name with args.
3861 set dummy mkisofs; ac_word=$2
3862 echo "$as_me:$LINENO: checking for $ac_word" >&5
3863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3864 if test "${ac_cv_path_MKISOFS+set}" = set; then
3865   echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867   case $MKISOFS in
3868   [\\/]* | ?:[\\/]*)
3869   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3870   ;;
3871   *)
3872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3874 do
3875   IFS=$as_save_IFS
3876   test -z "$as_dir" && as_dir=.
3877   for ac_exec_ext in '' $ac_executable_extensions; do
3878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881     break 2
3882   fi
3883 done
3884 done
3885
3886   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3887   ;;
3888 esac
3889 fi
3890 MKISOFS=$ac_cv_path_MKISOFS
3891
3892 if test -n "$MKISOFS"; then
3893   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3894 echo "${ECHO_T}$MKISOFS" >&6
3895 else
3896   echo "$as_me:$LINENO: result: no" >&5
3897 echo "${ECHO_T}no" >&6
3898 fi
3899
3900 # Extract the first word of "python", so it can be a program name with args.
3901 set dummy python; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_path_PYTHON+set}" = set; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   case $PYTHON in
3908   [\\/]* | ?:[\\/]*)
3909   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3910   ;;
3911   *)
3912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3914 do
3915   IFS=$as_save_IFS
3916   test -z "$as_dir" && as_dir=.
3917   for ac_exec_ext in '' $ac_executable_extensions; do
3918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921     break 2
3922   fi
3923 done
3924 done
3925
3926   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3927   ;;
3928 esac
3929 fi
3930 PYTHON=$ac_cv_path_PYTHON
3931
3932 if test -n "$PYTHON"; then
3933   echo "$as_me:$LINENO: result: $PYTHON" >&5
3934 echo "${ECHO_T}$PYTHON" >&6
3935 else
3936   echo "$as_me:$LINENO: result: no" >&5
3937 echo "${ECHO_T}no" >&6
3938 fi
3939
3940 # Extract the first word of "growisofs", so it can be a program name with args.
3941 set dummy growisofs; ac_word=$2
3942 echo "$as_me:$LINENO: checking for $ac_word" >&5
3943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3944 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3945   echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947   case $GROWISOFS in
3948   [\\/]* | ?:[\\/]*)
3949   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3950   ;;
3951   *)
3952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3954 do
3955   IFS=$as_save_IFS
3956   test -z "$as_dir" && as_dir=.
3957   for ac_exec_ext in '' $ac_executable_extensions; do
3958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3961     break 2
3962   fi
3963 done
3964 done
3965
3966   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3967   ;;
3968 esac
3969 fi
3970 GROWISOFS=$ac_cv_path_GROWISOFS
3971
3972 if test -n "$GROWISOFS"; then
3973   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3974 echo "${ECHO_T}$GROWISOFS" >&6
3975 else
3976   echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3978 fi
3979
3980 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3981 set dummy dvd+rw-mediainfo; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   case $DVDRWMEDIAINFO in
3988   [\\/]* | ?:[\\/]*)
3989   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3990   ;;
3991   *)
3992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3994 do
3995   IFS=$as_save_IFS
3996   test -z "$as_dir" && as_dir=.
3997   for ac_exec_ext in '' $ac_executable_extensions; do
3998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3999     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001     break 2
4002   fi
4003 done
4004 done
4005
4006   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4007   ;;
4008 esac
4009 fi
4010 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4011
4012 if test -n "$DVDRWMEDIAINFO"; then
4013   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4014 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4015 else
4016   echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4018 fi
4019
4020 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4021 set dummy dvd+rw-format; ac_word=$2
4022 echo "$as_me:$LINENO: checking for $ac_word" >&5
4023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4024 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4025   echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027   case $DVDRWFORMAT in
4028   [\\/]* | ?:[\\/]*)
4029   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4030   ;;
4031   *)
4032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4034 do
4035   IFS=$as_save_IFS
4036   test -z "$as_dir" && as_dir=.
4037   for ac_exec_ext in '' $ac_executable_extensions; do
4038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4041     break 2
4042   fi
4043 done
4044 done
4045
4046   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4047   ;;
4048 esac
4049 fi
4050 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4051
4052 if test -n "$DVDRWFORMAT"; then
4053   echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4054 echo "${ECHO_T}$DVDRWFORMAT" >&6
4055 else
4056   echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4058 fi
4059
4060 # Extract the first word of "pkg-config", so it can be a program name with args.
4061 set dummy pkg-config; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   case $PKGCONFIG in
4068   [\\/]* | ?:[\\/]*)
4069   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4070   ;;
4071   *)
4072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4074 do
4075   IFS=$as_save_IFS
4076   test -z "$as_dir" && as_dir=.
4077   for ac_exec_ext in '' $ac_executable_extensions; do
4078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081     break 2
4082   fi
4083 done
4084 done
4085
4086   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4087   ;;
4088 esac
4089 fi
4090 PKGCONFIG=$ac_cv_path_PKGCONFIG
4091
4092 if test -n "$PKGCONFIG"; then
4093   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4094 echo "${ECHO_T}$PKGCONFIG" >&6
4095 else
4096   echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4098 fi
4099
4100
4101 if test "x$WXCONFIG" = x; then
4102   WXCONFIG=wx-config
4103 fi
4104 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4105 set dummy ${WXCONFIG}; ac_word=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4109   echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111   case $WXCONFIG in
4112   [\\/]* | ?:[\\/]*)
4113   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4114   ;;
4115   *)
4116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4118 do
4119   IFS=$as_save_IFS
4120   test -z "$as_dir" && as_dir=.
4121   for ac_exec_ext in '' $ac_executable_extensions; do
4122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125     break 2
4126   fi
4127 done
4128 done
4129
4130   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4131   ;;
4132 esac
4133 fi
4134 WXCONFIG=$ac_cv_path_WXCONFIG
4135
4136 if test -n "$WXCONFIG"; then
4137   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4138 echo "${ECHO_T}$WXCONFIG" >&6
4139 else
4140   echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4142 fi
4143
4144
4145 # Extract the first word of "cdrecord", so it can be a program name with args.
4146 set dummy cdrecord; ac_word=$2
4147 echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149 if test "${ac_cv_path_CDRECORD+set}" = set; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152   case $CDRECORD in
4153   [\\/]* | ?:[\\/]*)
4154   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4155   ;;
4156   *)
4157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160   IFS=$as_save_IFS
4161   test -z "$as_dir" && as_dir=.
4162   for ac_exec_ext in '' $ac_executable_extensions; do
4163   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166     break 2
4167   fi
4168 done
4169 done
4170
4171   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4172   ;;
4173 esac
4174 fi
4175 CDRECORD=$ac_cv_path_CDRECORD
4176
4177 if test -n "$CDRECORD"; then
4178   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4179 echo "${ECHO_T}$CDRECORD" >&6
4180 else
4181   echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6
4183 fi
4184
4185 # Extract the first word of "pidof", so it can be a program name with args.
4186 set dummy pidof; ac_word=$2
4187 echo "$as_me:$LINENO: checking for $ac_word" >&5
4188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4189 if test "${ac_cv_path_PIDOF+set}" = set; then
4190   echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192   case $PIDOF in
4193   [\\/]* | ?:[\\/]*)
4194   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4195   ;;
4196   *)
4197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200   IFS=$as_save_IFS
4201   test -z "$as_dir" && as_dir=.
4202   for ac_exec_ext in '' $ac_executable_extensions; do
4203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206     break 2
4207   fi
4208 done
4209 done
4210
4211   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4212   ;;
4213 esac
4214 fi
4215 PIDOF=$ac_cv_path_PIDOF
4216
4217 if test -n "$PIDOF"; then
4218   echo "$as_me:$LINENO: result: $PIDOF" >&5
4219 echo "${ECHO_T}$PIDOF" >&6
4220 else
4221   echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4223 fi
4224
4225 for ac_prog in gawk mawk nawk awk
4226 do
4227   # Extract the first word of "$ac_prog", so it can be a program name with args.
4228 set dummy $ac_prog; ac_word=$2
4229 echo "$as_me:$LINENO: checking for $ac_word" >&5
4230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4231 if test "${ac_cv_prog_AWK+set}" = set; then
4232   echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234   if test -n "$AWK"; then
4235   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4236 else
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4239 do
4240   IFS=$as_save_IFS
4241   test -z "$as_dir" && as_dir=.
4242   for ac_exec_ext in '' $ac_executable_extensions; do
4243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244     ac_cv_prog_AWK="$ac_prog"
4245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246     break 2
4247   fi
4248 done
4249 done
4250
4251 fi
4252 fi
4253 AWK=$ac_cv_prog_AWK
4254 if test -n "$AWK"; then
4255   echo "$as_me:$LINENO: result: $AWK" >&5
4256 echo "${ECHO_T}$AWK" >&6
4257 else
4258   echo "$as_me:$LINENO: result: no" >&5
4259 echo "${ECHO_T}no" >&6
4260 fi
4261
4262   test -n "$AWK" && break
4263 done
4264
4265 # Some AWK programs fail, so test it and warn the user
4266 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4267       { if ((prog == $2) || (("(" prog ")") == $2) ||
4268            (("" prog "") == $2) ||
4269            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4270 else
4271   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4272    The regex engine of $AWK is too broken to be used you
4273    might want to install GNU AWK.
4274    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4275 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4276    The regex engine of $AWK is too broken to be used you
4277    might want to install GNU AWK.
4278    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4279    { (exit 1); exit 1; }; }
4280 fi
4281 THE_AWK=$AWK
4282 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4283 set dummy $THE_AWK; ac_word=$2
4284 echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4286 if test "${ac_cv_path_AWK+set}" = set; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289   case $AWK in
4290   [\\/]* | ?:[\\/]*)
4291   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4292   ;;
4293   *)
4294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4296 do
4297   IFS=$as_save_IFS
4298   test -z "$as_dir" && as_dir=.
4299   for ac_exec_ext in '' $ac_executable_extensions; do
4300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303     break 2
4304   fi
4305 done
4306 done
4307
4308   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4309   ;;
4310 esac
4311 fi
4312 AWK=$ac_cv_path_AWK
4313
4314 if test -n "$AWK"; then
4315   echo "$as_me:$LINENO: result: $AWK" >&5
4316 echo "${ECHO_T}$AWK" >&6
4317 else
4318   echo "$as_me:$LINENO: result: no" >&5
4319 echo "${ECHO_T}no" >&6
4320 fi
4321
4322
4323 test -n "$ARFLAG" || ARFLAGS="cr"
4324
4325
4326 MAKE_SHELL=/bin/sh
4327
4328
4329
4330
4331
4332
4333
4334 # Make sure we can run config.sub.
4335 $ac_config_sub sun4 >/dev/null 2>&1 ||
4336   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4337 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4338    { (exit 1); exit 1; }; }
4339
4340 echo "$as_me:$LINENO: checking build system type" >&5
4341 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4342 if test "${ac_cv_build+set}" = set; then
4343   echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345   ac_cv_build_alias=$build_alias
4346 test -z "$ac_cv_build_alias" &&
4347   ac_cv_build_alias=`$ac_config_guess`
4348 test -z "$ac_cv_build_alias" &&
4349   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4350 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4351    { (exit 1); exit 1; }; }
4352 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4353   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4354 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4355    { (exit 1); exit 1; }; }
4356
4357 fi
4358 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4359 echo "${ECHO_T}$ac_cv_build" >&6
4360 build=$ac_cv_build
4361 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4362 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4363 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4364
4365
4366
4367 echo "$as_me:$LINENO: checking host system type" >&5
4368 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4369 if test "${ac_cv_host+set}" = set; then
4370   echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372   ac_cv_host_alias=$host_alias
4373 test -z "$ac_cv_host_alias" &&
4374   ac_cv_host_alias=$ac_cv_build_alias
4375 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4376   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4377 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4378    { (exit 1); exit 1; }; }
4379
4380 fi
4381 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4382 echo "${ECHO_T}$ac_cv_host" >&6
4383 host=$ac_cv_host
4384 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4385 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4386 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4387
4388
4389 case $host_os in
4390   *cygwin* ) CYGWIN=yes;;
4391          * ) CYGWIN=no;;
4392 esac
4393
4394 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4395 then
4396
4397
4398 if $TRUEPRG; then
4399   HAVE_SUN_OS_TRUE=
4400   HAVE_SUN_OS_FALSE='#'
4401 else
4402   HAVE_SUN_OS_TRUE='#'
4403   HAVE_SUN_OS_FALSE=
4404 fi
4405         cat >>confdefs.h <<\_ACEOF
4406 #define HAVE_SUN_OS 1
4407 _ACEOF
4408
4409 else
4410
4411
4412 if $FALSEPRG; then
4413   HAVE_SUN_OS_TRUE=
4414   HAVE_SUN_OS_FALSE='#'
4415 else
4416   HAVE_SUN_OS_TRUE='#'
4417   HAVE_SUN_OS_FALSE=
4418 fi
4419 fi
4420
4421 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4422 then
4423
4424
4425 if $TRUEPRG; then
4426   HAVE_OSF1_OS_TRUE=
4427   HAVE_OSF1_OS_FALSE='#'
4428 else
4429   HAVE_OSF1_OS_TRUE='#'
4430   HAVE_OSF1_OS_FALSE=
4431 fi
4432         cat >>confdefs.h <<\_ACEOF
4433 #define HAVE_OSF1_OS 1
4434 _ACEOF
4435
4436 else
4437
4438
4439 if $FALSEPRG; then
4440   HAVE_OSF1_OS_TRUE=
4441   HAVE_OSF1_OS_FALSE='#'
4442 else
4443   HAVE_OSF1_OS_TRUE='#'
4444   HAVE_OSF1_OS_FALSE=
4445 fi
4446 fi
4447
4448 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4449 then
4450
4451
4452 if $TRUEPRG; then
4453   HAVE_AIX_OS_TRUE=
4454   HAVE_AIX_OS_FALSE='#'
4455 else
4456   HAVE_AIX_OS_TRUE='#'
4457   HAVE_AIX_OS_FALSE=
4458 fi
4459         cat >>confdefs.h <<\_ACEOF
4460 #define HAVE_AIX_OS 1
4461 _ACEOF
4462
4463 else
4464
4465
4466 if $FALSEPRG; then
4467   HAVE_AIX_OS_TRUE=
4468   HAVE_AIX_OS_FALSE='#'
4469 else
4470   HAVE_AIX_OS_TRUE='#'
4471   HAVE_AIX_OS_FALSE=
4472 fi
4473 fi
4474
4475 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4476 then
4477
4478
4479 if $TRUEPRG; then
4480   HAVE_HPUX_OS_TRUE=
4481   HAVE_HPUX_OS_FALSE='#'
4482 else
4483   HAVE_HPUX_OS_TRUE='#'
4484   HAVE_HPUX_OS_FALSE=
4485 fi
4486         cat >>confdefs.h <<\_ACEOF
4487 #define HAVE_HPUX_OS 1
4488 _ACEOF
4489
4490 else
4491
4492
4493 if $FALSEPRG; then
4494   HAVE_HPUX_OS_TRUE=
4495   HAVE_HPUX_OS_FALSE='#'
4496 else
4497   HAVE_HPUX_OS_TRUE='#'
4498   HAVE_HPUX_OS_FALSE=
4499 fi
4500 fi
4501
4502 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4503 then
4504
4505
4506 if $TRUEPRG; then
4507   HAVE_LINUX_OS_TRUE=
4508   HAVE_LINUX_OS_FALSE='#'
4509 else
4510   HAVE_LINUX_OS_TRUE='#'
4511   HAVE_LINUX_OS_FALSE=
4512 fi
4513         cat >>confdefs.h <<\_ACEOF
4514 #define HAVE_LINUX_OS 1
4515 _ACEOF
4516
4517 else
4518
4519
4520 if $FALSEPRG; then
4521   HAVE_LINUX_OS_TRUE=
4522   HAVE_LINUX_OS_FALSE='#'
4523 else
4524   HAVE_LINUX_OS_TRUE='#'
4525   HAVE_LINUX_OS_FALSE=
4526 fi
4527 fi
4528
4529 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4530 then
4531
4532
4533 if $TRUEPRG; then
4534   HAVE_FREEBSD_OS_TRUE=
4535   HAVE_FREEBSD_OS_FALSE='#'
4536 else
4537   HAVE_FREEBSD_OS_TRUE='#'
4538   HAVE_FREEBSD_OS_FALSE=
4539 fi
4540         cat >>confdefs.h <<\_ACEOF
4541 #define HAVE_FREEBSD_OS 1
4542 _ACEOF
4543
4544 else
4545
4546
4547 if $FALSEPRG; then
4548   HAVE_FREEBSD_OS_TRUE=
4549   HAVE_FREEBSD_OS_FALSE='#'
4550 else
4551   HAVE_FREEBSD_OS_TRUE='#'
4552   HAVE_FREEBSD_OS_FALSE=
4553 fi
4554 fi
4555
4556 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4557 then
4558
4559
4560 if $TRUEPRG; then
4561   HAVE_NETBSD_OS_TRUE=
4562   HAVE_NETBSD_OS_FALSE='#'
4563 else
4564   HAVE_NETBSD_OS_TRUE='#'
4565   HAVE_NETBSD_OS_FALSE=
4566 fi
4567         cat >>confdefs.h <<\_ACEOF
4568 #define HAVE_NETBSD_OS 1
4569 _ACEOF
4570
4571 else
4572
4573
4574 if $FALSEPRG; then
4575   HAVE_NETBSD_OS_TRUE=
4576   HAVE_NETBSD_OS_FALSE='#'
4577 else
4578   HAVE_NETBSD_OS_TRUE='#'
4579   HAVE_NETBSD_OS_FALSE=
4580 fi
4581 fi
4582
4583 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4584 then
4585
4586
4587 if $TRUEPRG; then
4588   HAVE_OPENBSD_OS_TRUE=
4589   HAVE_OPENBSD_OS_FALSE='#'
4590 else
4591   HAVE_OPENBSD_OS_TRUE='#'
4592   HAVE_OPENBSD_OS_FALSE=
4593 fi
4594         cat >>confdefs.h <<\_ACEOF
4595 #define HAVE_OPENBSD_OS 1
4596 _ACEOF
4597
4598 else
4599
4600
4601 if $FALSEPRG; then
4602   HAVE_OPENBSD_OS_TRUE=
4603   HAVE_OPENBSD_OS_FALSE='#'
4604 else
4605   HAVE_OPENBSD_OS_TRUE='#'
4606   HAVE_OPENBSD_OS_FALSE=
4607 fi
4608 fi
4609
4610 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4611 then
4612
4613
4614 if $TRUEPRG; then
4615   HAVE_BSDI_OS_TRUE=
4616   HAVE_BSDI_OS_FALSE='#'
4617 else
4618   HAVE_BSDI_OS_TRUE='#'
4619   HAVE_BSDI_OS_FALSE=
4620 fi
4621         cat >>confdefs.h <<\_ACEOF
4622 #define HAVE_BSDI_OS 1
4623 _ACEOF
4624
4625 else
4626
4627
4628 if $FALSEPRG; then
4629   HAVE_BSDI_OS_TRUE=
4630   HAVE_BSDI_OS_FALSE='#'
4631 else
4632   HAVE_BSDI_OS_TRUE='#'
4633   HAVE_BSDI_OS_FALSE=
4634 fi
4635 fi
4636
4637 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4638 then
4639
4640
4641 if $TRUEPRG; then
4642   HAVE_SGI_OS_TRUE=
4643   HAVE_SGI_OS_FALSE='#'
4644 else
4645   HAVE_SGI_OS_TRUE='#'
4646   HAVE_SGI_OS_FALSE=
4647 fi
4648         cat >>confdefs.h <<\_ACEOF
4649 #define HAVE_SGI_OS 1
4650 _ACEOF
4651
4652 else
4653
4654
4655 if $FALSEPRG; then
4656   HAVE_SGI_OS_TRUE=
4657   HAVE_SGI_OS_FALSE='#'
4658 else
4659   HAVE_SGI_OS_TRUE='#'
4660   HAVE_SGI_OS_FALSE=
4661 fi
4662 fi
4663
4664 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4665 then
4666
4667
4668 if $TRUEPRG; then
4669   HAVE_IRIX_OS_TRUE=
4670   HAVE_IRIX_OS_FALSE='#'
4671 else
4672   HAVE_IRIX_OS_TRUE='#'
4673   HAVE_IRIX_OS_FALSE=
4674 fi
4675         cat >>confdefs.h <<\_ACEOF
4676 #define HAVE_IRIX_OS 1
4677 _ACEOF
4678
4679 else
4680
4681
4682 if $FALSEPRG; then
4683   HAVE_IRIX_OS_TRUE=
4684   HAVE_IRIX_OS_FALSE='#'
4685 else
4686   HAVE_IRIX_OS_TRUE='#'
4687   HAVE_IRIX_OS_FALSE=
4688 fi
4689 fi
4690
4691 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4692 then
4693
4694
4695 if $TRUEPRG; then
4696   HAVE_DARWIN_OS_TRUE=
4697   HAVE_DARWIN_OS_FALSE='#'
4698 else
4699   HAVE_DARWIN_OS_TRUE='#'
4700   HAVE_DARWIN_OS_FALSE=
4701 fi
4702     cat >>confdefs.h <<\_ACEOF
4703 #define HAVE_DARWIN_OS 1
4704 _ACEOF
4705
4706 else
4707
4708
4709 if $FALSEPRG; then
4710   HAVE_DARWIN_OS_TRUE=
4711   HAVE_DARWIN_OS_FALSE='#'
4712 else
4713   HAVE_DARWIN_OS_TRUE='#'
4714   HAVE_DARWIN_OS_FALSE=
4715 fi
4716 fi
4717
4718
4719 # -----------------------------------------------------------
4720 # ----------------------------------------------------------
4721 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4722 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4723 if test "x$DISTNAME" != "x"
4724 then
4725         echo "distname set to $DISTNAME"
4726 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4727 then
4728         DISTNAME=alpha
4729 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4730 then
4731         DISTNAME=aix
4732 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4733 then
4734         DISTNAME=hpux
4735 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4736 then
4737         DISTNAME=solaris
4738 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4739 then
4740         DISTNAME=freebsd
4741 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4742 then
4743         DISTNAME=netbsd
4744 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4745 then
4746         DISTNAME=openbsd
4747 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4748 then
4749         DISTNAME=irix
4750 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4751 then
4752         DISTNAME=bsdi
4753 elif test -f /etc/SuSE-release
4754 then
4755         DISTNAME=suse
4756 elif test -d /etc/SuSEconfig
4757 then
4758         DISTNAME=suse5
4759 elif test -f /etc/mandrake-release
4760 then
4761         DISTNAME=mandrake
4762 elif test -f /etc/whitebox-release
4763 then
4764        DISTNAME=redhat
4765 elif test -f /etc/redhat-release
4766 then
4767         DISTNAME=redhat
4768 elif test -f /etc/gentoo-release
4769 then
4770         DISTNAME=gentoo
4771 elif test -f /etc/debian_version
4772 then
4773         DISTNAME=debian
4774 elif test -f /etc/slackware-version
4775 then
4776         DISTNAME=slackware
4777 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4778 then
4779     DISTNAME=darwin
4780 elif test -f /etc/engarde-version
4781 then
4782         DISTNAME=engarde
4783 elif test "$CYGWIN" = yes
4784 then
4785         DISTNAME=cygwin
4786         cat >>confdefs.h <<\_ACEOF
4787 #define HAVE_CYGWIN 1
4788 _ACEOF
4789
4790 else
4791         DISTNAME=unknown
4792 fi
4793 echo "$as_me:$LINENO: result: done" >&5
4794 echo "${ECHO_T}done" >&6
4795
4796
4797 # --------------------------------------------------
4798 # Suppport for gettext (translations)
4799 # By default, $datadir is ${prefix}/share
4800 # --------------------------------------------------
4801 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4802 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4803 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4804 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4805   echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807   cat >conftest.make <<\_ACEOF
4808 all:
4809         @echo 'ac_maketemp="$(MAKE)"'
4810 _ACEOF
4811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4812 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4813 if test -n "$ac_maketemp"; then
4814   eval ac_cv_prog_make_${ac_make}_set=yes
4815 else
4816   eval ac_cv_prog_make_${ac_make}_set=no
4817 fi
4818 rm -f conftest.make
4819 fi
4820 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4821   echo "$as_me:$LINENO: result: yes" >&5
4822 echo "${ECHO_T}yes" >&6
4823   SET_MAKE=
4824 else
4825   echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6
4827   SET_MAKE="MAKE=${MAKE-make}"
4828 fi
4829
4830
4831
4832         MKINSTALLDIRS=
4833   if test -n "$ac_aux_dir"; then
4834     case "$ac_aux_dir" in
4835       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4836       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4837     esac
4838   fi
4839   if test -z "$MKINSTALLDIRS"; then
4840     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4841   fi
4842
4843
4844
4845   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4846 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4847     # Check whether --enable-nls or --disable-nls was given.
4848 if test "${enable_nls+set}" = set; then
4849   enableval="$enable_nls"
4850   USE_NLS=$enableval
4851 else
4852   USE_NLS=yes
4853 fi;
4854   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4855 echo "${ECHO_T}$USE_NLS" >&6
4856
4857
4858
4859
4860
4861
4862 # Prepare PATH_SEPARATOR.
4863 # The user is always right.
4864 if test "${PATH_SEPARATOR+set}" != set; then
4865   echo "#! /bin/sh" >conf$$.sh
4866   echo  "exit 0"   >>conf$$.sh
4867   chmod +x conf$$.sh
4868   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4869     PATH_SEPARATOR=';'
4870   else
4871     PATH_SEPARATOR=:
4872   fi
4873   rm -f conf$$.sh
4874 fi
4875
4876 # Find out how to test for executable files. Don't use a zero-byte file,
4877 # as systems may use methods other than mode bits to determine executability.
4878 cat >conf$$.file <<_ASEOF
4879 #! /bin/sh
4880 exit 0
4881 _ASEOF
4882 chmod +x conf$$.file
4883 if test -x conf$$.file >/dev/null 2>&1; then
4884   ac_executable_p="test -x"
4885 else
4886   ac_executable_p="test -f"
4887 fi
4888 rm -f conf$$.file
4889
4890 # Extract the first word of "msgfmt", so it can be a program name with args.
4891 set dummy msgfmt; ac_word=$2
4892 echo "$as_me:$LINENO: checking for $ac_word" >&5
4893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4894 if test "${ac_cv_path_MSGFMT+set}" = set; then
4895   echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897   case "$MSGFMT" in
4898   [\\/]* | ?:[\\/]*)
4899     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4900     ;;
4901   *)
4902     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4903     for ac_dir in $PATH; do
4904       IFS="$ac_save_IFS"
4905       test -z "$ac_dir" && ac_dir=.
4906       for ac_exec_ext in '' $ac_executable_extensions; do
4907         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4908           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4909           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4910      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4911             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4912             break 2
4913           fi
4914         fi
4915       done
4916     done
4917     IFS="$ac_save_IFS"
4918   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4919     ;;
4920 esac
4921 fi
4922 MSGFMT="$ac_cv_path_MSGFMT"
4923 if test "$MSGFMT" != ":"; then
4924   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4925 echo "${ECHO_T}$MSGFMT" >&6
4926 else
4927   echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6
4929 fi
4930
4931   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4932 set dummy gmsgfmt; ac_word=$2
4933 echo "$as_me:$LINENO: checking for $ac_word" >&5
4934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4935 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4936   echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938   case $GMSGFMT in
4939   [\\/]* | ?:[\\/]*)
4940   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4941   ;;
4942   *)
4943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946   IFS=$as_save_IFS
4947   test -z "$as_dir" && as_dir=.
4948   for ac_exec_ext in '' $ac_executable_extensions; do
4949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952     break 2
4953   fi
4954 done
4955 done
4956
4957   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4958   ;;
4959 esac
4960 fi
4961 GMSGFMT=$ac_cv_path_GMSGFMT
4962
4963 if test -n "$GMSGFMT"; then
4964   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4965 echo "${ECHO_T}$GMSGFMT" >&6
4966 else
4967   echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6
4969 fi
4970
4971
4972
4973 # Prepare PATH_SEPARATOR.
4974 # The user is always right.
4975 if test "${PATH_SEPARATOR+set}" != set; then
4976   echo "#! /bin/sh" >conf$$.sh
4977   echo  "exit 0"   >>conf$$.sh
4978   chmod +x conf$$.sh
4979   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4980     PATH_SEPARATOR=';'
4981   else
4982     PATH_SEPARATOR=:
4983   fi
4984   rm -f conf$$.sh
4985 fi
4986
4987 # Find out how to test for executable files. Don't use a zero-byte file,
4988 # as systems may use methods other than mode bits to determine executability.
4989 cat >conf$$.file <<_ASEOF
4990 #! /bin/sh
4991 exit 0
4992 _ASEOF
4993 chmod +x conf$$.file
4994 if test -x conf$$.file >/dev/null 2>&1; then
4995   ac_executable_p="test -x"
4996 else
4997   ac_executable_p="test -f"
4998 fi
4999 rm -f conf$$.file
5000
5001 # Extract the first word of "xgettext", so it can be a program name with args.
5002 set dummy xgettext; ac_word=$2
5003 echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5005 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5006   echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008   case "$XGETTEXT" in
5009   [\\/]* | ?:[\\/]*)
5010     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5011     ;;
5012   *)
5013     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5014     for ac_dir in $PATH; do
5015       IFS="$ac_save_IFS"
5016       test -z "$ac_dir" && ac_dir=.
5017       for ac_exec_ext in '' $ac_executable_extensions; do
5018         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5019           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5020           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5021      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5022             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5023             break 2
5024           fi
5025         fi
5026       done
5027     done
5028     IFS="$ac_save_IFS"
5029   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5030     ;;
5031 esac
5032 fi
5033 XGETTEXT="$ac_cv_path_XGETTEXT"
5034 if test "$XGETTEXT" != ":"; then
5035   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5036 echo "${ECHO_T}$XGETTEXT" >&6
5037 else
5038   echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6
5040 fi
5041
5042     rm -f messages.po
5043
5044
5045 # Prepare PATH_SEPARATOR.
5046 # The user is always right.
5047 if test "${PATH_SEPARATOR+set}" != set; then
5048   echo "#! /bin/sh" >conf$$.sh
5049   echo  "exit 0"   >>conf$$.sh
5050   chmod +x conf$$.sh
5051   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5052     PATH_SEPARATOR=';'
5053   else
5054     PATH_SEPARATOR=:
5055   fi
5056   rm -f conf$$.sh
5057 fi
5058
5059 # Find out how to test for executable files. Don't use a zero-byte file,
5060 # as systems may use methods other than mode bits to determine executability.
5061 cat >conf$$.file <<_ASEOF
5062 #! /bin/sh
5063 exit 0
5064 _ASEOF
5065 chmod +x conf$$.file
5066 if test -x conf$$.file >/dev/null 2>&1; then
5067   ac_executable_p="test -x"
5068 else
5069   ac_executable_p="test -f"
5070 fi
5071 rm -f conf$$.file
5072
5073 # Extract the first word of "msgmerge", so it can be a program name with args.
5074 set dummy msgmerge; ac_word=$2
5075 echo "$as_me:$LINENO: checking for $ac_word" >&5
5076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5077 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5078   echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080   case "$MSGMERGE" in
5081   [\\/]* | ?:[\\/]*)
5082     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5083     ;;
5084   *)
5085     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5086     for ac_dir in $PATH; do
5087       IFS="$ac_save_IFS"
5088       test -z "$ac_dir" && ac_dir=.
5089       for ac_exec_ext in '' $ac_executable_extensions; do
5090         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5091           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5092           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5093             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5094             break 2
5095           fi
5096         fi
5097       done
5098     done
5099     IFS="$ac_save_IFS"
5100   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5101     ;;
5102 esac
5103 fi
5104 MSGMERGE="$ac_cv_path_MSGMERGE"
5105 if test "$MSGMERGE" != ":"; then
5106   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5107 echo "${ECHO_T}$MSGMERGE" >&6
5108 else
5109   echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6
5111 fi
5112
5113
5114       if test "$GMSGFMT" != ":"; then
5115             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5116        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5117       : ;
5118     else
5119       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5120       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5121 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5122       GMSGFMT=":"
5123     fi
5124   fi
5125
5126       if test "$XGETTEXT" != ":"; then
5127             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5128        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5129       : ;
5130     else
5131       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5132 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5133       XGETTEXT=":"
5134     fi
5135         rm -f messages.po
5136   fi
5137
5138             ac_config_commands="$ac_config_commands default-1"
5139
5140
5141
5142       if test "X$prefix" = "XNONE"; then
5143     acl_final_prefix="$ac_default_prefix"
5144   else
5145     acl_final_prefix="$prefix"
5146   fi
5147   if test "X$exec_prefix" = "XNONE"; then
5148     acl_final_exec_prefix='${prefix}'
5149   else
5150     acl_final_exec_prefix="$exec_prefix"
5151   fi
5152   acl_save_prefix="$prefix"
5153   prefix="$acl_final_prefix"
5154   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5155   prefix="$acl_save_prefix"
5156
5157
5158 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5159 if test "${with_gnu_ld+set}" = set; then
5160   withval="$with_gnu_ld"
5161   test "$withval" = no || with_gnu_ld=yes
5162 else
5163   with_gnu_ld=no
5164 fi;
5165 # Prepare PATH_SEPARATOR.
5166 # The user is always right.
5167 if test "${PATH_SEPARATOR+set}" != set; then
5168   echo "#! /bin/sh" >conf$$.sh
5169   echo  "exit 0"   >>conf$$.sh
5170   chmod +x conf$$.sh
5171   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5172     PATH_SEPARATOR=';'
5173   else
5174     PATH_SEPARATOR=:
5175   fi
5176   rm -f conf$$.sh
5177 fi
5178 ac_prog=ld
5179 if test "$GCC" = yes; then
5180   # Check if gcc -print-prog-name=ld gives a path.
5181   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5182 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5183   case $host in
5184   *-*-mingw*)
5185     # gcc leaves a trailing carriage return which upsets mingw
5186     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5187   *)
5188     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5189   esac
5190   case $ac_prog in
5191     # Accept absolute paths.
5192     [\\/]* | [A-Za-z]:[\\/]*)
5193       re_direlt='/[^/][^/]*/\.\./'
5194       # Canonicalize the path of ld
5195       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5196       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5197         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5198       done
5199       test -z "$LD" && LD="$ac_prog"
5200       ;;
5201   "")
5202     # If it fails, then pretend we aren't using GCC.
5203     ac_prog=ld
5204     ;;
5205   *)
5206     # If it is relative, then search for the first ld in PATH.
5207     with_gnu_ld=unknown
5208     ;;
5209   esac
5210 elif test "$with_gnu_ld" = yes; then
5211   echo "$as_me:$LINENO: checking for GNU ld" >&5
5212 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5213 else
5214   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5215 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5216 fi
5217 if test "${acl_cv_path_LD+set}" = set; then
5218   echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220   if test -z "$LD"; then
5221   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5222   for ac_dir in $PATH; do
5223     test -z "$ac_dir" && ac_dir=.
5224     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5225       acl_cv_path_LD="$ac_dir/$ac_prog"
5226       # Check to see if the program is GNU ld.  I'd rather use --version,
5227       # but apparently some GNU ld's only accept -v.
5228       # Break only if it was the GNU/non-GNU ld that we prefer.
5229       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5230       *GNU* | *'with BFD'*)
5231         test "$with_gnu_ld" != no && break ;;
5232       *)
5233         test "$with_gnu_ld" != yes && break ;;
5234       esac
5235     fi
5236   done
5237   IFS="$ac_save_ifs"
5238 else
5239   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5240 fi
5241 fi
5242
5243 LD="$acl_cv_path_LD"
5244 if test -n "$LD"; then
5245   echo "$as_me:$LINENO: result: $LD" >&5
5246 echo "${ECHO_T}$LD" >&6
5247 else
5248   echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6
5250 fi
5251 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5252 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5253    { (exit 1); exit 1; }; }
5254 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5255 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5256 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5260 case `$LD -v 2>&1 </dev/null` in
5261 *GNU* | *'with BFD'*)
5262   acl_cv_prog_gnu_ld=yes ;;
5263 *)
5264   acl_cv_prog_gnu_ld=no ;;
5265 esac
5266 fi
5267 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5268 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5269 with_gnu_ld=$acl_cv_prog_gnu_ld
5270
5271
5272
5273
5274                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5275 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5276 if test "${acl_cv_rpath+set}" = set; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279
5280     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5281     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5282     . ./conftest.sh
5283     rm -f ./conftest.sh
5284     acl_cv_rpath=done
5285
5286 fi
5287 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5288 echo "${ECHO_T}$acl_cv_rpath" >&6
5289   wl="$acl_cv_wl"
5290   libext="$acl_cv_libext"
5291   shlibext="$acl_cv_shlibext"
5292   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5293   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5294   hardcode_direct="$acl_cv_hardcode_direct"
5295   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5296     # Check whether --enable-rpath or --disable-rpath was given.
5297 if test "${enable_rpath+set}" = set; then
5298   enableval="$enable_rpath"
5299   :
5300 else
5301   enable_rpath=yes
5302 fi;
5303
5304
5305
5306
5307
5308
5309
5310     use_additional=yes
5311
5312   acl_save_prefix="$prefix"
5313   prefix="$acl_final_prefix"
5314   acl_save_exec_prefix="$exec_prefix"
5315   exec_prefix="$acl_final_exec_prefix"
5316
5317     eval additional_includedir=\"$includedir\"
5318     eval additional_libdir=\"$libdir\"
5319
5320   exec_prefix="$acl_save_exec_prefix"
5321   prefix="$acl_save_prefix"
5322
5323
5324 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5325 if test "${with_libiconv_prefix+set}" = set; then
5326   withval="$with_libiconv_prefix"
5327
5328     if test "X$withval" = "Xno"; then
5329       use_additional=no
5330     else
5331       if test "X$withval" = "X"; then
5332
5333   acl_save_prefix="$prefix"
5334   prefix="$acl_final_prefix"
5335   acl_save_exec_prefix="$exec_prefix"
5336   exec_prefix="$acl_final_exec_prefix"
5337
5338           eval additional_includedir=\"$includedir\"
5339           eval additional_libdir=\"$libdir\"
5340
5341   exec_prefix="$acl_save_exec_prefix"
5342   prefix="$acl_save_prefix"
5343
5344       else
5345         additional_includedir="$withval/include"
5346         additional_libdir="$withval/lib"
5347       fi
5348     fi
5349
5350 fi;
5351       LIBICONV=
5352   LTLIBICONV=
5353   INCICONV=
5354   rpathdirs=
5355   ltrpathdirs=
5356   names_already_handled=
5357   names_next_round='iconv '
5358   while test -n "$names_next_round"; do
5359     names_this_round="$names_next_round"
5360     names_next_round=
5361     for name in $names_this_round; do
5362       already_handled=
5363       for n in $names_already_handled; do
5364         if test "$n" = "$name"; then
5365           already_handled=yes
5366           break
5367         fi
5368       done
5369       if test -z "$already_handled"; then
5370         names_already_handled="$names_already_handled $name"
5371                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5372         eval value=\"\$HAVE_LIB$uppername\"
5373         if test -n "$value"; then
5374           if test "$value" = yes; then
5375             eval value=\"\$LIB$uppername\"
5376             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5377             eval value=\"\$LTLIB$uppername\"
5378             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5379           else
5380                                     :
5381           fi
5382         else
5383                               found_dir=
5384           found_la=
5385           found_so=
5386           found_a=
5387           if test $use_additional = yes; then
5388             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5389               found_dir="$additional_libdir"
5390               found_so="$additional_libdir/lib$name.$shlibext"
5391               if test -f "$additional_libdir/lib$name.la"; then
5392                 found_la="$additional_libdir/lib$name.la"
5393               fi
5394             else
5395               if test -f "$additional_libdir/lib$name.$libext"; then
5396                 found_dir="$additional_libdir"
5397                 found_a="$additional_libdir/lib$name.$libext"
5398                 if test -f "$additional_libdir/lib$name.la"; then
5399                   found_la="$additional_libdir/lib$name.la"
5400                 fi
5401               fi
5402             fi
5403           fi
5404           if test "X$found_dir" = "X"; then
5405             for x in $LDFLAGS $LTLIBICONV; do
5406
5407   acl_save_prefix="$prefix"
5408   prefix="$acl_final_prefix"
5409   acl_save_exec_prefix="$exec_prefix"
5410   exec_prefix="$acl_final_exec_prefix"
5411   eval x=\"$x\"
5412   exec_prefix="$acl_save_exec_prefix"
5413   prefix="$acl_save_prefix"
5414
5415               case "$x" in
5416                 -L*)
5417                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5418                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5419                     found_dir="$dir"
5420                     found_so="$dir/lib$name.$shlibext"
5421                     if test -f "$dir/lib$name.la"; then
5422                       found_la="$dir/lib$name.la"
5423                     fi
5424                   else
5425                     if test -f "$dir/lib$name.$libext"; then
5426                       found_dir="$dir"
5427                       found_a="$dir/lib$name.$libext"
5428                       if test -f "$dir/lib$name.la"; then
5429                         found_la="$dir/lib$name.la"
5430                       fi
5431                     fi
5432                   fi
5433                   ;;
5434               esac
5435               if test "X$found_dir" != "X"; then
5436                 break
5437               fi
5438             done
5439           fi
5440           if test "X$found_dir" != "X"; then
5441                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5442             if test "X$found_so" != "X"; then
5443                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5444                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5445               else
5446                                                                                 haveit=
5447                 for x in $ltrpathdirs; do
5448                   if test "X$x" = "X$found_dir"; then
5449                     haveit=yes
5450                     break
5451                   fi
5452                 done
5453                 if test -z "$haveit"; then
5454                   ltrpathdirs="$ltrpathdirs $found_dir"
5455                 fi
5456                                 if test "$hardcode_direct" = yes; then
5457                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5458                 else
5459                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5460                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5461                                                             haveit=
5462                     for x in $rpathdirs; do
5463                       if test "X$x" = "X$found_dir"; then
5464                         haveit=yes
5465                         break
5466                       fi
5467                     done
5468                     if test -z "$haveit"; then
5469                       rpathdirs="$rpathdirs $found_dir"
5470                     fi
5471                   else
5472                                                                                 haveit=
5473                     for x in $LDFLAGS $LIBICONV; do
5474
5475   acl_save_prefix="$prefix"
5476   prefix="$acl_final_prefix"
5477   acl_save_exec_prefix="$exec_prefix"
5478   exec_prefix="$acl_final_exec_prefix"
5479   eval x=\"$x\"
5480   exec_prefix="$acl_save_exec_prefix"
5481   prefix="$acl_save_prefix"
5482
5483                       if test "X$x" = "X-L$found_dir"; then
5484                         haveit=yes
5485                         break
5486                       fi
5487                     done
5488                     if test -z "$haveit"; then
5489                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5490                     fi
5491                     if test "$hardcode_minus_L" != no; then
5492                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5493                     else
5494                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5495                     fi
5496                   fi
5497                 fi
5498               fi
5499             else
5500               if test "X$found_a" != "X"; then
5501                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5502               else
5503                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5504               fi
5505             fi
5506                         additional_includedir=
5507             case "$found_dir" in
5508               */lib | */lib/)
5509                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5510                 additional_includedir="$basedir/include"
5511                 ;;
5512             esac
5513             if test "X$additional_includedir" != "X"; then
5514                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5515                 haveit=
5516                 if test "X$additional_includedir" = "X/usr/local/include"; then
5517                   if test -n "$GCC"; then
5518                     case $host_os in
5519                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5520                     esac
5521                   fi
5522                 fi
5523                 if test -z "$haveit"; then
5524                   for x in $CPPFLAGS $INCICONV; do
5525
5526   acl_save_prefix="$prefix"
5527   prefix="$acl_final_prefix"
5528   acl_save_exec_prefix="$exec_prefix"
5529   exec_prefix="$acl_final_exec_prefix"
5530   eval x=\"$x\"
5531   exec_prefix="$acl_save_exec_prefix"
5532   prefix="$acl_save_prefix"
5533
5534                     if test "X$x" = "X-I$additional_includedir"; then
5535                       haveit=yes
5536                       break
5537                     fi
5538                   done
5539                   if test -z "$haveit"; then
5540                     if test -d "$additional_includedir"; then
5541                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5542                     fi
5543                   fi
5544                 fi
5545               fi
5546             fi
5547                         if test -n "$found_la"; then
5548                                                         save_libdir="$libdir"
5549               case "$found_la" in
5550                 */* | *\\*) . "$found_la" ;;
5551                 *) . "./$found_la" ;;
5552               esac
5553               libdir="$save_libdir"
5554                             for dep in $dependency_libs; do
5555                 case "$dep" in
5556                   -L*)
5557                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5558                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5559                       haveit=
5560                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5561                         if test -n "$GCC"; then
5562                           case $host_os in
5563                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5564                           esac
5565                         fi
5566                       fi
5567                       if test -z "$haveit"; then
5568                         haveit=
5569                         for x in $LDFLAGS $LIBICONV; do
5570
5571   acl_save_prefix="$prefix"
5572   prefix="$acl_final_prefix"
5573   acl_save_exec_prefix="$exec_prefix"
5574   exec_prefix="$acl_final_exec_prefix"
5575   eval x=\"$x\"
5576   exec_prefix="$acl_save_exec_prefix"
5577   prefix="$acl_save_prefix"
5578
5579                           if test "X$x" = "X-L$additional_libdir"; then
5580                             haveit=yes
5581                             break
5582                           fi
5583                         done
5584                         if test -z "$haveit"; then
5585                           if test -d "$additional_libdir"; then
5586                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5587                           fi
5588                         fi
5589                         haveit=
5590                         for x in $LDFLAGS $LTLIBICONV; do
5591
5592   acl_save_prefix="$prefix"
5593   prefix="$acl_final_prefix"
5594   acl_save_exec_prefix="$exec_prefix"
5595   exec_prefix="$acl_final_exec_prefix"
5596   eval x=\"$x\"
5597   exec_prefix="$acl_save_exec_prefix"
5598   prefix="$acl_save_prefix"
5599
5600                           if test "X$x" = "X-L$additional_libdir"; then
5601                             haveit=yes
5602                             break
5603                           fi
5604                         done
5605                         if test -z "$haveit"; then
5606                           if test -d "$additional_libdir"; then
5607                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5608                           fi
5609                         fi
5610                       fi
5611                     fi
5612                     ;;
5613                   -R*)
5614                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5615                     if test "$enable_rpath" != no; then
5616                                                                   haveit=
5617                       for x in $rpathdirs; do
5618                         if test "X$x" = "X$dir"; then
5619                           haveit=yes
5620                           break
5621                         fi
5622                       done
5623                       if test -z "$haveit"; then
5624                         rpathdirs="$rpathdirs $dir"
5625                       fi
5626                                                                   haveit=
5627                       for x in $ltrpathdirs; do
5628                         if test "X$x" = "X$dir"; then
5629                           haveit=yes
5630                           break
5631                         fi
5632                       done
5633                       if test -z "$haveit"; then
5634                         ltrpathdirs="$ltrpathdirs $dir"
5635                       fi
5636                     fi
5637                     ;;
5638                   -l*)
5639                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5640                     ;;
5641                   *.la)
5642                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5643                     ;;
5644                   *)
5645                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5646                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5647                     ;;
5648                 esac
5649               done
5650             fi
5651           else
5652                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5653             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5654           fi
5655         fi
5656       fi
5657     done
5658   done
5659   if test "X$rpathdirs" != "X"; then
5660     if test -n "$hardcode_libdir_separator"; then
5661                         alldirs=
5662       for found_dir in $rpathdirs; do
5663         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5664       done
5665             acl_save_libdir="$libdir"
5666       libdir="$alldirs"
5667       eval flag=\"$hardcode_libdir_flag_spec\"
5668       libdir="$acl_save_libdir"
5669       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5670     else
5671             for found_dir in $rpathdirs; do
5672         acl_save_libdir="$libdir"
5673         libdir="$found_dir"
5674         eval flag=\"$hardcode_libdir_flag_spec\"
5675         libdir="$acl_save_libdir"
5676         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5677       done
5678     fi
5679   fi
5680   if test "X$ltrpathdirs" != "X"; then
5681             for found_dir in $ltrpathdirs; do
5682       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5683     done
5684   fi
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5704 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5705 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5706   echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708   gt_save_CPPFLAGS="$CPPFLAGS"
5709      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5710      gt_save_LIBS="$LIBS"
5711      LIBS="$LIBS -framework CoreFoundation"
5712      cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h.  */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h.  */
5718 #include <CFPreferences.h>
5719 int
5720 main ()
5721 {
5722 CFPreferencesCopyAppValue(NULL, NULL)
5723   ;
5724   return 0;
5725 }
5726 _ACEOF
5727 rm -f conftest.$ac_objext conftest$ac_exeext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729   (eval $ac_link) 2>conftest.er1
5730   ac_status=$?
5731   grep -v '^ *+' conftest.er1 >conftest.err
5732   rm -f conftest.er1
5733   cat conftest.err >&5
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); } &&
5736          { ac_try='test -z "$ac_c_werror_flag"
5737                          || test ! -s conftest.err'
5738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739   (eval $ac_try) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); }; } &&
5743          { ac_try='test -s conftest$ac_exeext'
5744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745   (eval $ac_try) 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); }; }; then
5749   gt_cv_func_CFPreferencesCopyAppValue=yes
5750 else
5751   echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5753
5754 gt_cv_func_CFPreferencesCopyAppValue=no
5755 fi
5756 rm -f conftest.err conftest.$ac_objext \
5757       conftest$ac_exeext conftest.$ac_ext
5758      CPPFLAGS="$gt_save_CPPFLAGS"
5759      LIBS="$gt_save_LIBS"
5760 fi
5761 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5762 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5763   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5764
5765 cat >>confdefs.h <<\_ACEOF
5766 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5767 _ACEOF
5768
5769   fi
5770     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5771 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5772 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5773   echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775   gt_save_CPPFLAGS="$CPPFLAGS"
5776      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5777      gt_save_LIBS="$LIBS"
5778      LIBS="$LIBS -framework CoreFoundation"
5779      cat >conftest.$ac_ext <<_ACEOF
5780 /* confdefs.h.  */
5781 _ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h.  */
5785 #include <CFLocale.h>
5786 int
5787 main ()
5788 {
5789 CFLocaleCopyCurrent();
5790   ;
5791   return 0;
5792 }
5793 _ACEOF
5794 rm -f conftest.$ac_objext conftest$ac_exeext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5796   (eval $ac_link) 2>conftest.er1
5797   ac_status=$?
5798   grep -v '^ *+' conftest.er1 >conftest.err
5799   rm -f conftest.er1
5800   cat conftest.err >&5
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); } &&
5803          { ac_try='test -z "$ac_c_werror_flag"
5804                          || test ! -s conftest.err'
5805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806   (eval $ac_try) 2>&5
5807   ac_status=$?
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); }; } &&
5810          { ac_try='test -s conftest$ac_exeext'
5811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812   (eval $ac_try) 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }; }; then
5816   gt_cv_func_CFLocaleCopyCurrent=yes
5817 else
5818   echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5820
5821 gt_cv_func_CFLocaleCopyCurrent=no
5822 fi
5823 rm -f conftest.err conftest.$ac_objext \
5824       conftest$ac_exeext conftest.$ac_ext
5825      CPPFLAGS="$gt_save_CPPFLAGS"
5826      LIBS="$gt_save_LIBS"
5827 fi
5828 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5829 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5830   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5831
5832 cat >>confdefs.h <<\_ACEOF
5833 #define HAVE_CFLOCALECOPYCURRENT 1
5834 _ACEOF
5835
5836   fi
5837   INTL_MACOSX_LIBS=
5838   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5839     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5840   fi
5841
5842
5843
5844
5845   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5846 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5847     # Check whether --enable-nls or --disable-nls was given.
5848 if test "${enable_nls+set}" = set; then
5849   enableval="$enable_nls"
5850   USE_NLS=$enableval
5851 else
5852   USE_NLS=yes
5853 fi;
5854   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5855 echo "${ECHO_T}$USE_NLS" >&6
5856
5857
5858
5859
5860   LIBINTL=
5861   LTLIBINTL=
5862   POSUB=
5863
5864     if test "$USE_NLS" = "yes"; then
5865     gt_use_preinstalled_gnugettext=no
5866
5867
5868
5869
5870
5871
5872         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5873 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5874 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5875   echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877   cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h.  */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h.  */
5883 #include <libintl.h>
5884 extern int _nl_msg_cat_cntr;
5885 extern int *_nl_domain_bindings;
5886 int
5887 main ()
5888 {
5889 bindtextdomain ("", "");
5890 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5891   ;
5892   return 0;
5893 }
5894 _ACEOF
5895 rm -f conftest.$ac_objext conftest$ac_exeext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5897   (eval $ac_link) 2>conftest.er1
5898   ac_status=$?
5899   grep -v '^ *+' conftest.er1 >conftest.err
5900   rm -f conftest.er1
5901   cat conftest.err >&5
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); } &&
5904          { ac_try='test -z "$ac_c_werror_flag"
5905                          || test ! -s conftest.err'
5906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907   (eval $ac_try) 2>&5
5908   ac_status=$?
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); }; } &&
5911          { ac_try='test -s conftest$ac_exeext'
5912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913   (eval $ac_try) 2>&5
5914   ac_status=$?
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); }; }; then
5917   gt_cv_func_gnugettext1_libc=yes
5918 else
5919   echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5921
5922 gt_cv_func_gnugettext1_libc=no
5923 fi
5924 rm -f conftest.err conftest.$ac_objext \
5925       conftest$ac_exeext conftest.$ac_ext
5926 fi
5927 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5928 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5929
5930         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5931
5932
5933
5934
5935
5936           am_save_CPPFLAGS="$CPPFLAGS"
5937
5938   for element in $INCICONV; do
5939     haveit=
5940     for x in $CPPFLAGS; do
5941
5942   acl_save_prefix="$prefix"
5943   prefix="$acl_final_prefix"
5944   acl_save_exec_prefix="$exec_prefix"
5945   exec_prefix="$acl_final_exec_prefix"
5946   eval x=\"$x\"
5947   exec_prefix="$acl_save_exec_prefix"
5948   prefix="$acl_save_prefix"
5949
5950       if test "X$x" = "X$element"; then
5951         haveit=yes
5952         break
5953       fi
5954     done
5955     if test -z "$haveit"; then
5956       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5957     fi
5958   done
5959
5960
5961   echo "$as_me:$LINENO: checking for iconv" >&5
5962 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5963 if test "${am_cv_func_iconv+set}" = set; then
5964   echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966
5967     am_cv_func_iconv="no, consider installing GNU libiconv"
5968     am_cv_lib_iconv=no
5969     cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h.  */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h.  */
5975 #include <stdlib.h>
5976 #include <iconv.h>
5977 int
5978 main ()
5979 {
5980 iconv_t cd = iconv_open("","");
5981        iconv(cd,NULL,NULL,NULL,NULL);
5982        iconv_close(cd);
5983   ;
5984   return 0;
5985 }
5986 _ACEOF
5987 rm -f conftest.$ac_objext conftest$ac_exeext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5989   (eval $ac_link) 2>conftest.er1
5990   ac_status=$?
5991   grep -v '^ *+' conftest.er1 >conftest.err
5992   rm -f conftest.er1
5993   cat conftest.err >&5
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); } &&
5996          { ac_try='test -z "$ac_c_werror_flag"
5997                          || test ! -s conftest.err'
5998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999   (eval $ac_try) 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); }; } &&
6003          { ac_try='test -s conftest$ac_exeext'
6004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005   (eval $ac_try) 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; }; then
6009   am_cv_func_iconv=yes
6010 else
6011   echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 fi
6015 rm -f conftest.err conftest.$ac_objext \
6016       conftest$ac_exeext conftest.$ac_ext
6017     if test "$am_cv_func_iconv" != yes; then
6018       am_save_LIBS="$LIBS"
6019       LIBS="$LIBS $LIBICONV"
6020       cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h.  */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h.  */
6026 #include <stdlib.h>
6027 #include <iconv.h>
6028 int
6029 main ()
6030 {
6031 iconv_t cd = iconv_open("","");
6032          iconv(cd,NULL,NULL,NULL,NULL);
6033          iconv_close(cd);
6034   ;
6035   return 0;
6036 }
6037 _ACEOF
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040   (eval $ac_link) 2>conftest.er1
6041   ac_status=$?
6042   grep -v '^ *+' conftest.er1 >conftest.err
6043   rm -f conftest.er1
6044   cat conftest.err >&5
6045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046   (exit $ac_status); } &&
6047          { ac_try='test -z "$ac_c_werror_flag"
6048                          || test ! -s conftest.err'
6049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050   (eval $ac_try) 2>&5
6051   ac_status=$?
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); }; } &&
6054          { ac_try='test -s conftest$ac_exeext'
6055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056   (eval $ac_try) 2>&5
6057   ac_status=$?
6058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059   (exit $ac_status); }; }; then
6060   am_cv_lib_iconv=yes
6061         am_cv_func_iconv=yes
6062 else
6063   echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066 fi
6067 rm -f conftest.err conftest.$ac_objext \
6068       conftest$ac_exeext conftest.$ac_ext
6069       LIBS="$am_save_LIBS"
6070     fi
6071
6072 fi
6073 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6074 echo "${ECHO_T}$am_cv_func_iconv" >&6
6075   if test "$am_cv_func_iconv" = yes; then
6076
6077 cat >>confdefs.h <<\_ACEOF
6078 #define HAVE_ICONV 1
6079 _ACEOF
6080
6081   fi
6082   if test "$am_cv_lib_iconv" = yes; then
6083     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6084 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6085     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6086 echo "${ECHO_T}$LIBICONV" >&6
6087   else
6088             CPPFLAGS="$am_save_CPPFLAGS"
6089     LIBICONV=
6090     LTLIBICONV=
6091   fi
6092
6093
6094
6095
6096
6097
6098     use_additional=yes
6099
6100   acl_save_prefix="$prefix"
6101   prefix="$acl_final_prefix"
6102   acl_save_exec_prefix="$exec_prefix"
6103   exec_prefix="$acl_final_exec_prefix"
6104
6105     eval additional_includedir=\"$includedir\"
6106     eval additional_libdir=\"$libdir\"
6107
6108   exec_prefix="$acl_save_exec_prefix"
6109   prefix="$acl_save_prefix"
6110
6111
6112 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6113 if test "${with_libintl_prefix+set}" = set; then
6114   withval="$with_libintl_prefix"
6115
6116     if test "X$withval" = "Xno"; then
6117       use_additional=no
6118     else
6119       if test "X$withval" = "X"; then
6120
6121   acl_save_prefix="$prefix"
6122   prefix="$acl_final_prefix"
6123   acl_save_exec_prefix="$exec_prefix"
6124   exec_prefix="$acl_final_exec_prefix"
6125
6126           eval additional_includedir=\"$includedir\"
6127           eval additional_libdir=\"$libdir\"
6128
6129   exec_prefix="$acl_save_exec_prefix"
6130   prefix="$acl_save_prefix"
6131
6132       else
6133         additional_includedir="$withval/include"
6134         additional_libdir="$withval/lib"
6135       fi
6136     fi
6137
6138 fi;
6139       LIBINTL=
6140   LTLIBINTL=
6141   INCINTL=
6142   rpathdirs=
6143   ltrpathdirs=
6144   names_already_handled=
6145   names_next_round='intl '
6146   while test -n "$names_next_round"; do
6147     names_this_round="$names_next_round"
6148     names_next_round=
6149     for name in $names_this_round; do
6150       already_handled=
6151       for n in $names_already_handled; do
6152         if test "$n" = "$name"; then
6153           already_handled=yes
6154           break
6155         fi
6156       done
6157       if test -z "$already_handled"; then
6158         names_already_handled="$names_already_handled $name"
6159                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6160         eval value=\"\$HAVE_LIB$uppername\"
6161         if test -n "$value"; then
6162           if test "$value" = yes; then
6163             eval value=\"\$LIB$uppername\"
6164             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6165             eval value=\"\$LTLIB$uppername\"
6166             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6167           else
6168                                     :
6169           fi
6170         else
6171                               found_dir=
6172           found_la=
6173           found_so=
6174           found_a=
6175           if test $use_additional = yes; then
6176             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6177               found_dir="$additional_libdir"
6178               found_so="$additional_libdir/lib$name.$shlibext"
6179               if test -f "$additional_libdir/lib$name.la"; then
6180                 found_la="$additional_libdir/lib$name.la"
6181               fi
6182             else
6183               if test -f "$additional_libdir/lib$name.$libext"; then
6184                 found_dir="$additional_libdir"
6185                 found_a="$additional_libdir/lib$name.$libext"
6186                 if test -f "$additional_libdir/lib$name.la"; then
6187                   found_la="$additional_libdir/lib$name.la"
6188                 fi
6189               fi
6190             fi
6191           fi
6192           if test "X$found_dir" = "X"; then
6193             for x in $LDFLAGS $LTLIBINTL; do
6194
6195   acl_save_prefix="$prefix"
6196   prefix="$acl_final_prefix"
6197   acl_save_exec_prefix="$exec_prefix"
6198   exec_prefix="$acl_final_exec_prefix"
6199   eval x=\"$x\"
6200   exec_prefix="$acl_save_exec_prefix"
6201   prefix="$acl_save_prefix"
6202
6203               case "$x" in
6204                 -L*)
6205                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6206                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6207                     found_dir="$dir"
6208                     found_so="$dir/lib$name.$shlibext"
6209                     if test -f "$dir/lib$name.la"; then
6210                       found_la="$dir/lib$name.la"
6211                     fi
6212                   else
6213                     if test -f "$dir/lib$name.$libext"; then
6214                       found_dir="$dir"
6215                       found_a="$dir/lib$name.$libext"
6216                       if test -f "$dir/lib$name.la"; then
6217                         found_la="$dir/lib$name.la"
6218                       fi
6219                     fi
6220                   fi
6221                   ;;
6222               esac
6223               if test "X$found_dir" != "X"; then
6224                 break
6225               fi
6226             done
6227           fi
6228           if test "X$found_dir" != "X"; then
6229                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6230             if test "X$found_so" != "X"; then
6231                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6232                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6233               else
6234                                                                                 haveit=
6235                 for x in $ltrpathdirs; do
6236                   if test "X$x" = "X$found_dir"; then
6237                     haveit=yes
6238                     break
6239                   fi
6240                 done
6241                 if test -z "$haveit"; then
6242                   ltrpathdirs="$ltrpathdirs $found_dir"
6243                 fi
6244                                 if test "$hardcode_direct" = yes; then
6245                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6246                 else
6247                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6248                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6249                                                             haveit=
6250                     for x in $rpathdirs; do
6251                       if test "X$x" = "X$found_dir"; then
6252                         haveit=yes
6253                         break
6254                       fi
6255                     done
6256                     if test -z "$haveit"; then
6257                       rpathdirs="$rpathdirs $found_dir"
6258                     fi
6259                   else
6260                                                                                 haveit=
6261                     for x in $LDFLAGS $LIBINTL; do
6262
6263   acl_save_prefix="$prefix"
6264   prefix="$acl_final_prefix"
6265   acl_save_exec_prefix="$exec_prefix"
6266   exec_prefix="$acl_final_exec_prefix"
6267   eval x=\"$x\"
6268   exec_prefix="$acl_save_exec_prefix"
6269   prefix="$acl_save_prefix"
6270
6271                       if test "X$x" = "X-L$found_dir"; then
6272                         haveit=yes
6273                         break
6274                       fi
6275                     done
6276                     if test -z "$haveit"; then
6277                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6278                     fi
6279                     if test "$hardcode_minus_L" != no; then
6280                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6281                     else
6282                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6283                     fi
6284                   fi
6285                 fi
6286               fi
6287             else
6288               if test "X$found_a" != "X"; then
6289                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6290               else
6291                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6292               fi
6293             fi
6294                         additional_includedir=
6295             case "$found_dir" in
6296               */lib | */lib/)
6297                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6298                 additional_includedir="$basedir/include"
6299                 ;;
6300             esac
6301             if test "X$additional_includedir" != "X"; then
6302                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6303                 haveit=
6304                 if test "X$additional_includedir" = "X/usr/local/include"; then
6305                   if test -n "$GCC"; then
6306                     case $host_os in
6307                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6308                     esac
6309                   fi
6310                 fi
6311                 if test -z "$haveit"; then
6312                   for x in $CPPFLAGS $INCINTL; do
6313
6314   acl_save_prefix="$prefix"
6315   prefix="$acl_final_prefix"
6316   acl_save_exec_prefix="$exec_prefix"
6317   exec_prefix="$acl_final_exec_prefix"
6318   eval x=\"$x\"
6319   exec_prefix="$acl_save_exec_prefix"
6320   prefix="$acl_save_prefix"
6321
6322                     if test "X$x" = "X-I$additional_includedir"; then
6323                       haveit=yes
6324                       break
6325                     fi
6326                   done
6327                   if test -z "$haveit"; then
6328                     if test -d "$additional_includedir"; then
6329                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6330                     fi
6331                   fi
6332                 fi
6333               fi
6334             fi
6335                         if test -n "$found_la"; then
6336                                                         save_libdir="$libdir"
6337               case "$found_la" in
6338                 */* | *\\*) . "$found_la" ;;
6339                 *) . "./$found_la" ;;
6340               esac
6341               libdir="$save_libdir"
6342                             for dep in $dependency_libs; do
6343                 case "$dep" in
6344                   -L*)
6345                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6346                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6347                       haveit=
6348                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6349                         if test -n "$GCC"; then
6350                           case $host_os in
6351                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6352                           esac
6353                         fi
6354                       fi
6355                       if test -z "$haveit"; then
6356                         haveit=
6357                         for x in $LDFLAGS $LIBINTL; do
6358
6359   acl_save_prefix="$prefix"
6360   prefix="$acl_final_prefix"
6361   acl_save_exec_prefix="$exec_prefix"
6362   exec_prefix="$acl_final_exec_prefix"
6363   eval x=\"$x\"
6364   exec_prefix="$acl_save_exec_prefix"
6365   prefix="$acl_save_prefix"
6366
6367                           if test "X$x" = "X-L$additional_libdir"; then
6368                             haveit=yes
6369                             break
6370                           fi
6371                         done
6372                         if test -z "$haveit"; then
6373                           if test -d "$additional_libdir"; then
6374                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6375                           fi
6376                         fi
6377                         haveit=
6378                         for x in $LDFLAGS $LTLIBINTL; do
6379
6380   acl_save_prefix="$prefix"
6381   prefix="$acl_final_prefix"
6382   acl_save_exec_prefix="$exec_prefix"
6383   exec_prefix="$acl_final_exec_prefix"
6384   eval x=\"$x\"
6385   exec_prefix="$acl_save_exec_prefix"
6386   prefix="$acl_save_prefix"
6387
6388                           if test "X$x" = "X-L$additional_libdir"; then
6389                             haveit=yes
6390                             break
6391                           fi
6392                         done
6393                         if test -z "$haveit"; then
6394                           if test -d "$additional_libdir"; then
6395                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6396                           fi
6397                         fi
6398                       fi
6399                     fi
6400                     ;;
6401                   -R*)
6402                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6403                     if test "$enable_rpath" != no; then
6404                                                                   haveit=
6405                       for x in $rpathdirs; do
6406                         if test "X$x" = "X$dir"; then
6407                           haveit=yes
6408                           break
6409                         fi
6410                       done
6411                       if test -z "$haveit"; then
6412                         rpathdirs="$rpathdirs $dir"
6413                       fi
6414                                                                   haveit=
6415                       for x in $ltrpathdirs; do
6416                         if test "X$x" = "X$dir"; then
6417                           haveit=yes
6418                           break
6419                         fi
6420                       done
6421                       if test -z "$haveit"; then
6422                         ltrpathdirs="$ltrpathdirs $dir"
6423                       fi
6424                     fi
6425                     ;;
6426                   -l*)
6427                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6428                     ;;
6429                   *.la)
6430                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6431                     ;;
6432                   *)
6433                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6434                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6435                     ;;
6436                 esac
6437               done
6438             fi
6439           else
6440                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6441             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6442           fi
6443         fi
6444       fi
6445     done
6446   done
6447   if test "X$rpathdirs" != "X"; then
6448     if test -n "$hardcode_libdir_separator"; then
6449                         alldirs=
6450       for found_dir in $rpathdirs; do
6451         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6452       done
6453             acl_save_libdir="$libdir"
6454       libdir="$alldirs"
6455       eval flag=\"$hardcode_libdir_flag_spec\"
6456       libdir="$acl_save_libdir"
6457       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6458     else
6459             for found_dir in $rpathdirs; do
6460         acl_save_libdir="$libdir"
6461         libdir="$found_dir"
6462         eval flag=\"$hardcode_libdir_flag_spec\"
6463         libdir="$acl_save_libdir"
6464         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6465       done
6466     fi
6467   fi
6468   if test "X$ltrpathdirs" != "X"; then
6469             for found_dir in $ltrpathdirs; do
6470       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6471     done
6472   fi
6473
6474           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6475 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6476 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6477   echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479   gt_save_CPPFLAGS="$CPPFLAGS"
6480             CPPFLAGS="$CPPFLAGS $INCINTL"
6481             gt_save_LIBS="$LIBS"
6482             LIBS="$LIBS $LIBINTL"
6483                         cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h.  */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h.  */
6489 #include <libintl.h>
6490 extern int _nl_msg_cat_cntr;
6491 extern
6492 #ifdef __cplusplus
6493 "C"
6494 #endif
6495 const char *_nl_expand_alias (const char *);
6496 int
6497 main ()
6498 {
6499 bindtextdomain ("", "");
6500 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6501   ;
6502   return 0;
6503 }
6504 _ACEOF
6505 rm -f conftest.$ac_objext conftest$ac_exeext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6507   (eval $ac_link) 2>conftest.er1
6508   ac_status=$?
6509   grep -v '^ *+' conftest.er1 >conftest.err
6510   rm -f conftest.er1
6511   cat conftest.err >&5
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); } &&
6514          { ac_try='test -z "$ac_c_werror_flag"
6515                          || test ! -s conftest.err'
6516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517   (eval $ac_try) 2>&5
6518   ac_status=$?
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); }; } &&
6521          { ac_try='test -s conftest$ac_exeext'
6522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523   (eval $ac_try) 2>&5
6524   ac_status=$?
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); }; }; then
6527   gt_cv_func_gnugettext1_libintl=yes
6528 else
6529   echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6531
6532 gt_cv_func_gnugettext1_libintl=no
6533 fi
6534 rm -f conftest.err conftest.$ac_objext \
6535       conftest$ac_exeext conftest.$ac_ext
6536                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6537               LIBS="$LIBS $LIBICONV"
6538               cat >conftest.$ac_ext <<_ACEOF
6539 /* confdefs.h.  */
6540 _ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h.  */
6544 #include <libintl.h>
6545 extern int _nl_msg_cat_cntr;
6546 extern
6547 #ifdef __cplusplus
6548 "C"
6549 #endif
6550 const char *_nl_expand_alias (const char *);
6551 int
6552 main ()
6553 {
6554 bindtextdomain ("", "");
6555 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6556   ;
6557   return 0;
6558 }
6559 _ACEOF
6560 rm -f conftest.$ac_objext conftest$ac_exeext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6562   (eval $ac_link) 2>conftest.er1
6563   ac_status=$?
6564   grep -v '^ *+' conftest.er1 >conftest.err
6565   rm -f conftest.er1
6566   cat conftest.err >&5
6567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568   (exit $ac_status); } &&
6569          { ac_try='test -z "$ac_c_werror_flag"
6570                          || test ! -s conftest.err'
6571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572   (eval $ac_try) 2>&5
6573   ac_status=$?
6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575   (exit $ac_status); }; } &&
6576          { ac_try='test -s conftest$ac_exeext'
6577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578   (eval $ac_try) 2>&5
6579   ac_status=$?
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); }; }; then
6582   LIBINTL="$LIBINTL $LIBICONV"
6583                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6584                 gt_cv_func_gnugettext1_libintl=yes
6585
6586 else
6587   echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6589
6590 fi
6591 rm -f conftest.err conftest.$ac_objext \
6592       conftest$ac_exeext conftest.$ac_ext
6593             fi
6594             CPPFLAGS="$gt_save_CPPFLAGS"
6595             LIBS="$gt_save_LIBS"
6596 fi
6597 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6598 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6599         fi
6600
6601                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6602            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6603                 && test "$PACKAGE" != gettext-runtime \
6604                 && test "$PACKAGE" != gettext-tools; }; then
6605           gt_use_preinstalled_gnugettext=yes
6606         else
6607                     LIBINTL=
6608           LTLIBINTL=
6609           INCINTL=
6610         fi
6611
6612
6613
6614     if test -n "$INTL_MACOSX_LIBS"; then
6615       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6616          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6617                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6618         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6619       fi
6620     fi
6621
6622     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6623        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6624
6625 cat >>confdefs.h <<\_ACEOF
6626 #define ENABLE_NLS 1
6627 _ACEOF
6628
6629     else
6630       USE_NLS=no
6631     fi
6632   fi
6633
6634   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6635 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6636   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6637 echo "${ECHO_T}$USE_NLS" >&6
6638   if test "$USE_NLS" = "yes"; then
6639     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6640 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6641     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6642       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6643         gt_source="external libintl"
6644       else
6645         gt_source="libc"
6646       fi
6647     else
6648       gt_source="included intl directory"
6649     fi
6650     echo "$as_me:$LINENO: result: $gt_source" >&5
6651 echo "${ECHO_T}$gt_source" >&6
6652   fi
6653
6654   if test "$USE_NLS" = "yes"; then
6655
6656     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6657       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6658         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6659 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6660         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6661 echo "${ECHO_T}$LIBINTL" >&6
6662
6663   for element in $INCINTL; do
6664     haveit=
6665     for x in $CPPFLAGS; do
6666
6667   acl_save_prefix="$prefix"
6668   prefix="$acl_final_prefix"
6669   acl_save_exec_prefix="$exec_prefix"
6670   exec_prefix="$acl_final_exec_prefix"
6671   eval x=\"$x\"
6672   exec_prefix="$acl_save_exec_prefix"
6673   prefix="$acl_save_prefix"
6674
6675       if test "X$x" = "X$element"; then
6676         haveit=yes
6677         break
6678       fi
6679     done
6680     if test -z "$haveit"; then
6681       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6682     fi
6683   done
6684
6685       fi
6686
6687
6688 cat >>confdefs.h <<\_ACEOF
6689 #define HAVE_GETTEXT 1
6690 _ACEOF
6691
6692
6693 cat >>confdefs.h <<\_ACEOF
6694 #define HAVE_DCGETTEXT 1
6695 _ACEOF
6696
6697     fi
6698
6699         POSUB=po
6700   fi
6701
6702
6703
6704     INTLLIBS="$LIBINTL"
6705
6706
6707
6708
6709
6710
6711 if test x${prefix} = xNONE ; then
6712    if test `eval echo ${datadir}` = NONE/share ; then
6713       datadir=/usr/share
6714    fi
6715 fi
6716
6717 # ------------------------------------------------------------------
6718 #  If the user has not set --prefix, we set our default to nothing.
6719 #  In this case, if the user has not set --sysconfdir, we set it
6720 #  to the package default of /etc/bacula.  If either --prefix or
6721 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6722 # ------------------------------------------------------------------
6723 if test x${prefix} = xNONE ; then
6724     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6725         sysconfdir=/etc/bacula
6726     fi
6727     prefix=
6728 fi
6729 sysconfdir=`eval echo ${sysconfdir}`
6730 datadir=`eval echo ${datadir}`
6731 localedir=`eval echo ${datadir}/locale`
6732 cat >>confdefs.h <<_ACEOF
6733 #define LOCALEDIR "$localedir"
6734 _ACEOF
6735
6736
6737 # -------------------------------------------------------------------------
6738 #  If the user has not set --exec-prefix, we default to ${prefix}
6739 # -------------------------------------------------------------------------
6740 if test x${exec_prefix} = xNONE ; then
6741     exec_prefix=${prefix}
6742 fi
6743
6744 # ------------------------------------------------------------------
6745 # If the user has not set --sbindir, we set our default as /sbin
6746 # ------------------------------------------------------------------
6747 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6748     sbindir=${exec_prefix}/sbin
6749 fi
6750 sbindir=`eval echo ${sbindir}`
6751
6752 # -------------------------------------------------------------------------
6753 #  If the user has not set --mandir, we default to /usr/share/man
6754 # -------------------------------------------------------------------------
6755 if test x$mandir = x'${prefix}/man' ; then
6756    mandir=/usr/share/man
6757 fi
6758
6759
6760 # ------------------------------------------------------------------
6761 # All list of languages for which a translation exist. Each
6762 #  language is separated by a space.
6763 # ------------------------------------------------------------------
6764 ALL_LINGUAS=""
6765
6766 for ac_prog in msgfmt
6767 do
6768   # Extract the first word of "$ac_prog", so it can be a program name with args.
6769 set dummy $ac_prog; ac_word=$2
6770 echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6772 if test "${ac_cv_path_MSGFMT+set}" = set; then
6773   echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775   case $MSGFMT in
6776   [\\/]* | ?:[\\/]*)
6777   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6778   ;;
6779   *)
6780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783   IFS=$as_save_IFS
6784   test -z "$as_dir" && as_dir=.
6785   for ac_exec_ext in '' $ac_executable_extensions; do
6786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6787     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789     break 2
6790   fi
6791 done
6792 done
6793
6794   ;;
6795 esac
6796 fi
6797 MSGFMT=$ac_cv_path_MSGFMT
6798
6799 if test -n "$MSGFMT"; then
6800   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6801 echo "${ECHO_T}$MSGFMT" >&6
6802 else
6803   echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6
6805 fi
6806
6807   test -n "$MSGFMT" && break
6808 done
6809 test -n "$MSGFMT" || MSGFMT="no"
6810
6811 if test "$MSGFMT" = "no"
6812 then
6813    echo 'msgfmt program not found, disabling NLS !'
6814    USE_NLS=no
6815    USE_INCLUDED_LIBINTL=no
6816 #else
6817
6818     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6819 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6820 if test "${ac_cv_gnu_library_2+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h.  */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h.  */
6829
6830 #include <features.h>
6831 #ifdef __GNU_LIBRARY__
6832  #if (__GLIBC__ >= 2)
6833   Lucky GNU user
6834  #endif
6835 #endif
6836
6837 _ACEOF
6838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6839   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6840   ac_cv_gnu_library_2=yes
6841 else
6842   ac_cv_gnu_library_2=no
6843 fi
6844 rm -f conftest*
6845
6846
6847
6848 fi
6849 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6850 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6851
6852     GLIBC2="$ac_cv_gnu_library_2"
6853
6854
6855 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6856 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6857 if test "${ac_cv_search_strerror+set}" = set; then
6858   echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860   ac_func_search_save_LIBS=$LIBS
6861 ac_cv_search_strerror=no
6862 cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h.  */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h.  */
6868
6869 /* Override any gcc2 internal prototype to avoid an error.  */
6870 #ifdef __cplusplus
6871 extern "C"
6872 #endif
6873 /* We use char because int might match the return type of a gcc2
6874    builtin and then its argument prototype would still apply.  */
6875 char strerror ();
6876 int
6877 main ()
6878 {
6879 strerror ();
6880   ;
6881   return 0;
6882 }
6883 _ACEOF
6884 rm -f conftest.$ac_objext conftest$ac_exeext
6885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6886   (eval $ac_link) 2>conftest.er1
6887   ac_status=$?
6888   grep -v '^ *+' conftest.er1 >conftest.err
6889   rm -f conftest.er1
6890   cat conftest.err >&5
6891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892   (exit $ac_status); } &&
6893          { ac_try='test -z "$ac_c_werror_flag"
6894                          || test ! -s conftest.err'
6895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896   (eval $ac_try) 2>&5
6897   ac_status=$?
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); }; } &&
6900          { ac_try='test -s conftest$ac_exeext'
6901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902   (eval $ac_try) 2>&5
6903   ac_status=$?
6904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905   (exit $ac_status); }; }; then
6906   ac_cv_search_strerror="none required"
6907 else
6908   echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6910
6911 fi
6912 rm -f conftest.err conftest.$ac_objext \
6913       conftest$ac_exeext conftest.$ac_ext
6914 if test "$ac_cv_search_strerror" = no; then
6915   for ac_lib in cposix; do
6916     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6917     cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h.  */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h.  */
6923
6924 /* Override any gcc2 internal prototype to avoid an error.  */
6925 #ifdef __cplusplus
6926 extern "C"
6927 #endif
6928 /* We use char because int might match the return type of a gcc2
6929    builtin and then its argument prototype would still apply.  */
6930 char strerror ();
6931 int
6932 main ()
6933 {
6934 strerror ();
6935   ;
6936   return 0;
6937 }
6938 _ACEOF
6939 rm -f conftest.$ac_objext conftest$ac_exeext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941   (eval $ac_link) 2>conftest.er1
6942   ac_status=$?
6943   grep -v '^ *+' conftest.er1 >conftest.err
6944   rm -f conftest.er1
6945   cat conftest.err >&5
6946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); } &&
6948          { ac_try='test -z "$ac_c_werror_flag"
6949                          || test ! -s conftest.err'
6950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951   (eval $ac_try) 2>&5
6952   ac_status=$?
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); }; } &&
6955          { ac_try='test -s conftest$ac_exeext'
6956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957   (eval $ac_try) 2>&5
6958   ac_status=$?
6959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); }; }; then
6961   ac_cv_search_strerror="-l$ac_lib"
6962 break
6963 else
6964   echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6966
6967 fi
6968 rm -f conftest.err conftest.$ac_objext \
6969       conftest$ac_exeext conftest.$ac_ext
6970   done
6971 fi
6972 LIBS=$ac_func_search_save_LIBS
6973 fi
6974 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6975 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6976 if test "$ac_cv_search_strerror" != no; then
6977   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6978
6979 fi
6980
6981 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6982 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6983 if test "${ac_cv_header_stdc+set}" = set; then
6984   echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986   cat >conftest.$ac_ext <<_ACEOF
6987 /* confdefs.h.  */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h.  */
6992 #include <stdlib.h>
6993 #include <stdarg.h>
6994 #include <string.h>
6995 #include <float.h>
6996
6997 int
6998 main ()
6999 {
7000
7001   ;
7002   return 0;
7003 }
7004 _ACEOF
7005 rm -f conftest.$ac_objext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7007   (eval $ac_compile) 2>conftest.er1
7008   ac_status=$?
7009   grep -v '^ *+' conftest.er1 >conftest.err
7010   rm -f conftest.er1
7011   cat conftest.err >&5
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); } &&
7014          { ac_try='test -z "$ac_c_werror_flag"
7015                          || test ! -s conftest.err'
7016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017   (eval $ac_try) 2>&5
7018   ac_status=$?
7019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020   (exit $ac_status); }; } &&
7021          { ac_try='test -s conftest.$ac_objext'
7022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023   (eval $ac_try) 2>&5
7024   ac_status=$?
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); }; }; then
7027   ac_cv_header_stdc=yes
7028 else
7029   echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7031
7032 ac_cv_header_stdc=no
7033 fi
7034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7035
7036 if test $ac_cv_header_stdc = yes; then
7037   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7038   cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h.  */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h.  */
7044 #include <string.h>
7045
7046 _ACEOF
7047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7048   $EGREP "memchr" >/dev/null 2>&1; then
7049   :
7050 else
7051   ac_cv_header_stdc=no
7052 fi
7053 rm -f conftest*
7054
7055 fi
7056
7057 if test $ac_cv_header_stdc = yes; then
7058   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7059   cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h.  */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h.  */
7065 #include <stdlib.h>
7066
7067 _ACEOF
7068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7069   $EGREP "free" >/dev/null 2>&1; then
7070   :
7071 else
7072   ac_cv_header_stdc=no
7073 fi
7074 rm -f conftest*
7075
7076 fi
7077
7078 if test $ac_cv_header_stdc = yes; then
7079   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7080   if test "$cross_compiling" = yes; then
7081   :
7082 else
7083   cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h.  */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h.  */
7089 #include <ctype.h>
7090 #if ((' ' & 0x0FF) == 0x020)
7091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7093 #else
7094 # define ISLOWER(c) \
7095                    (('a' <= (c) && (c) <= 'i') \
7096                      || ('j' <= (c) && (c) <= 'r') \
7097                      || ('s' <= (c) && (c) <= 'z'))
7098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7099 #endif
7100
7101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7102 int
7103 main ()
7104 {
7105   int i;
7106   for (i = 0; i < 256; i++)
7107     if (XOR (islower (i), ISLOWER (i))
7108         || toupper (i) != TOUPPER (i))
7109       exit(2);
7110   exit (0);
7111 }
7112 _ACEOF
7113 rm -f conftest$ac_exeext
7114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7115   (eval $ac_link) 2>&5
7116   ac_status=$?
7117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120   (eval $ac_try) 2>&5
7121   ac_status=$?
7122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123   (exit $ac_status); }; }; then
7124   :
7125 else
7126   echo "$as_me: program exited with status $ac_status" >&5
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130 ( exit $ac_status )
7131 ac_cv_header_stdc=no
7132 fi
7133 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7134 fi
7135 fi
7136 fi
7137 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7138 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7139 if test $ac_cv_header_stdc = yes; then
7140
7141 cat >>confdefs.h <<\_ACEOF
7142 #define STDC_HEADERS 1
7143 _ACEOF
7144
7145 fi
7146
7147 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7148 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7149 if test "${ac_cv_c_const+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   cat >conftest.$ac_ext <<_ACEOF
7153 /* confdefs.h.  */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h.  */
7158
7159 int
7160 main ()
7161 {
7162 /* FIXME: Include the comments suggested by Paul. */
7163 #ifndef __cplusplus
7164   /* Ultrix mips cc rejects this.  */
7165   typedef int charset[2];
7166   const charset x;
7167   /* SunOS 4.1.1 cc rejects this.  */
7168   char const *const *ccp;
7169   char **p;
7170   /* NEC SVR4.0.2 mips cc rejects this.  */
7171   struct point {int x, y;};
7172   static struct point const zero = {0,0};
7173   /* AIX XL C 1.02.0.0 rejects this.
7174      It does not let you subtract one const X* pointer from another in
7175      an arm of an if-expression whose if-part is not a constant
7176      expression */
7177   const char *g = "string";
7178   ccp = &g + (g ? g-g : 0);
7179   /* HPUX 7.0 cc rejects these. */
7180   ++ccp;
7181   p = (char**) ccp;
7182   ccp = (char const *const *) p;
7183   { /* SCO 3.2v4 cc rejects this.  */
7184     char *t;
7185     char const *s = 0 ? (char *) 0 : (char const *) 0;
7186
7187     *t++ = 0;
7188   }
7189   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7190     int x[] = {25, 17};
7191     const int *foo = &x[0];
7192     ++foo;
7193   }
7194   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7195     typedef const int *iptr;
7196     iptr p = 0;
7197     ++p;
7198   }
7199   { /* AIX XL C 1.02.0.0 rejects this saying
7200        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7201     struct s { int j; const int *ap[3]; };
7202     struct s *b; b->j = 5;
7203   }
7204   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7205     const int foo = 10;
7206   }
7207 #endif
7208
7209   ;
7210   return 0;
7211 }
7212 _ACEOF
7213 rm -f conftest.$ac_objext
7214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215   (eval $ac_compile) 2>conftest.er1
7216   ac_status=$?
7217   grep -v '^ *+' conftest.er1 >conftest.err
7218   rm -f conftest.er1
7219   cat conftest.err >&5
7220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221   (exit $ac_status); } &&
7222          { ac_try='test -z "$ac_c_werror_flag"
7223                          || test ! -s conftest.err'
7224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225   (eval $ac_try) 2>&5
7226   ac_status=$?
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); }; } &&
7229          { ac_try='test -s conftest.$ac_objext'
7230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231   (eval $ac_try) 2>&5
7232   ac_status=$?
7233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234   (exit $ac_status); }; }; then
7235   ac_cv_c_const=yes
7236 else
7237   echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7239
7240 ac_cv_c_const=no
7241 fi
7242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7243 fi
7244 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7245 echo "${ECHO_T}$ac_cv_c_const" >&6
7246 if test $ac_cv_c_const = no; then
7247
7248 cat >>confdefs.h <<\_ACEOF
7249 #define const
7250 _ACEOF
7251
7252 fi
7253
7254
7255   echo "$as_me:$LINENO: checking for signed" >&5
7256 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7257 if test "${bh_cv_c_signed+set}" = set; then
7258   echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260   cat >conftest.$ac_ext <<_ACEOF
7261 /* confdefs.h.  */
7262 _ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h.  */
7266
7267 int
7268 main ()
7269 {
7270 signed char x;
7271   ;
7272   return 0;
7273 }
7274 _ACEOF
7275 rm -f conftest.$ac_objext
7276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7277   (eval $ac_compile) 2>conftest.er1
7278   ac_status=$?
7279   grep -v '^ *+' conftest.er1 >conftest.err
7280   rm -f conftest.er1
7281   cat conftest.err >&5
7282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283   (exit $ac_status); } &&
7284          { ac_try='test -z "$ac_c_werror_flag"
7285                          || test ! -s conftest.err'
7286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287   (eval $ac_try) 2>&5
7288   ac_status=$?
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); }; } &&
7291          { ac_try='test -s conftest.$ac_objext'
7292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293   (eval $ac_try) 2>&5
7294   ac_status=$?
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); }; }; then
7297   bh_cv_c_signed=yes
7298 else
7299   echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7301
7302 bh_cv_c_signed=no
7303 fi
7304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7305 fi
7306 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7307 echo "${ECHO_T}$bh_cv_c_signed" >&6
7308   if test $bh_cv_c_signed = no; then
7309
7310 cat >>confdefs.h <<\_ACEOF
7311 #define signed
7312 _ACEOF
7313
7314   fi
7315
7316 echo "$as_me:$LINENO: checking for inline" >&5
7317 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7318 if test "${ac_cv_c_inline+set}" = set; then
7319   echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321   ac_cv_c_inline=no
7322 for ac_kw in inline __inline__ __inline; do
7323   cat >conftest.$ac_ext <<_ACEOF
7324 /* confdefs.h.  */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h.  */
7329 #ifndef __cplusplus
7330 typedef int foo_t;
7331 static $ac_kw foo_t static_foo () {return 0; }
7332 $ac_kw foo_t foo () {return 0; }
7333 #endif
7334
7335 _ACEOF
7336 rm -f conftest.$ac_objext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338   (eval $ac_compile) 2>conftest.er1
7339   ac_status=$?
7340   grep -v '^ *+' conftest.er1 >conftest.err
7341   rm -f conftest.er1
7342   cat conftest.err >&5
7343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344   (exit $ac_status); } &&
7345          { ac_try='test -z "$ac_c_werror_flag"
7346                          || test ! -s conftest.err'
7347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348   (eval $ac_try) 2>&5
7349   ac_status=$?
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); }; } &&
7352          { ac_try='test -s conftest.$ac_objext'
7353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354   (eval $ac_try) 2>&5
7355   ac_status=$?
7356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357   (exit $ac_status); }; }; then
7358   ac_cv_c_inline=$ac_kw; break
7359 else
7360   echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7362
7363 fi
7364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7365 done
7366
7367 fi
7368 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7369 echo "${ECHO_T}$ac_cv_c_inline" >&6
7370
7371
7372 case $ac_cv_c_inline in
7373   inline | yes) ;;
7374   *)
7375     case $ac_cv_c_inline in
7376       no) ac_val=;;
7377       *) ac_val=$ac_cv_c_inline;;
7378     esac
7379     cat >>confdefs.h <<_ACEOF
7380 #ifndef __cplusplus
7381 #define inline $ac_val
7382 #endif
7383 _ACEOF
7384     ;;
7385 esac
7386
7387 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7398                   inttypes.h stdint.h unistd.h
7399 do
7400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7401 echo "$as_me:$LINENO: checking for $ac_header" >&5
7402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7404   echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406   cat >conftest.$ac_ext <<_ACEOF
7407 /* confdefs.h.  */
7408 _ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h.  */
7412 $ac_includes_default
7413
7414 #include <$ac_header>
7415 _ACEOF
7416 rm -f conftest.$ac_objext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7418   (eval $ac_compile) 2>conftest.er1
7419   ac_status=$?
7420   grep -v '^ *+' conftest.er1 >conftest.err
7421   rm -f conftest.er1
7422   cat conftest.err >&5
7423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424   (exit $ac_status); } &&
7425          { ac_try='test -z "$ac_c_werror_flag"
7426                          || test ! -s conftest.err'
7427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428   (eval $ac_try) 2>&5
7429   ac_status=$?
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); }; } &&
7432          { ac_try='test -s conftest.$ac_objext'
7433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434   (eval $ac_try) 2>&5
7435   ac_status=$?
7436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437   (exit $ac_status); }; }; then
7438   eval "$as_ac_Header=yes"
7439 else
7440   echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7442
7443 eval "$as_ac_Header=no"
7444 fi
7445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7446 fi
7447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7450   cat >>confdefs.h <<_ACEOF
7451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7452 _ACEOF
7453
7454 fi
7455
7456 done
7457
7458
7459 echo "$as_me:$LINENO: checking for off_t" >&5
7460 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7461 if test "${ac_cv_type_off_t+set}" = set; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464   cat >conftest.$ac_ext <<_ACEOF
7465 /* confdefs.h.  */
7466 _ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h.  */
7470 $ac_includes_default
7471 int
7472 main ()
7473 {
7474 if ((off_t *) 0)
7475   return 0;
7476 if (sizeof (off_t))
7477   return 0;
7478   ;
7479   return 0;
7480 }
7481 _ACEOF
7482 rm -f conftest.$ac_objext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7484   (eval $ac_compile) 2>conftest.er1
7485   ac_status=$?
7486   grep -v '^ *+' conftest.er1 >conftest.err
7487   rm -f conftest.er1
7488   cat conftest.err >&5
7489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490   (exit $ac_status); } &&
7491          { ac_try='test -z "$ac_c_werror_flag"
7492                          || test ! -s conftest.err'
7493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494   (eval $ac_try) 2>&5
7495   ac_status=$?
7496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497   (exit $ac_status); }; } &&
7498          { ac_try='test -s conftest.$ac_objext'
7499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500   (eval $ac_try) 2>&5
7501   ac_status=$?
7502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503   (exit $ac_status); }; }; then
7504   ac_cv_type_off_t=yes
7505 else
7506   echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7508
7509 ac_cv_type_off_t=no
7510 fi
7511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7512 fi
7513 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7514 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7515 if test $ac_cv_type_off_t = yes; then
7516   :
7517 else
7518
7519 cat >>confdefs.h <<_ACEOF
7520 #define off_t long
7521 _ACEOF
7522
7523 fi
7524
7525 echo "$as_me:$LINENO: checking for size_t" >&5
7526 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7527 if test "${ac_cv_type_size_t+set}" = set; then
7528   echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530   cat >conftest.$ac_ext <<_ACEOF
7531 /* confdefs.h.  */
7532 _ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h.  */
7536 $ac_includes_default
7537 int
7538 main ()
7539 {
7540 if ((size_t *) 0)
7541   return 0;
7542 if (sizeof (size_t))
7543   return 0;
7544   ;
7545   return 0;
7546 }
7547 _ACEOF
7548 rm -f conftest.$ac_objext
7549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7550   (eval $ac_compile) 2>conftest.er1
7551   ac_status=$?
7552   grep -v '^ *+' conftest.er1 >conftest.err
7553   rm -f conftest.er1
7554   cat conftest.err >&5
7555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556   (exit $ac_status); } &&
7557          { ac_try='test -z "$ac_c_werror_flag"
7558                          || test ! -s conftest.err'
7559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560   (eval $ac_try) 2>&5
7561   ac_status=$?
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); }; } &&
7564          { ac_try='test -s conftest.$ac_objext'
7565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566   (eval $ac_try) 2>&5
7567   ac_status=$?
7568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569   (exit $ac_status); }; }; then
7570   ac_cv_type_size_t=yes
7571 else
7572   echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7574
7575 ac_cv_type_size_t=no
7576 fi
7577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7578 fi
7579 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7580 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7581 if test $ac_cv_type_size_t = yes; then
7582   :
7583 else
7584
7585 cat >>confdefs.h <<_ACEOF
7586 #define size_t unsigned
7587 _ACEOF
7588
7589 fi
7590
7591
7592   echo "$as_me:$LINENO: checking for long long" >&5
7593 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7594 if test "${ac_cv_type_long_long+set}" = set; then
7595   echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597   cat >conftest.$ac_ext <<_ACEOF
7598 /* confdefs.h.  */
7599 _ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h.  */
7603 long long ll = 1LL; int i = 63;
7604 int
7605 main ()
7606 {
7607 long long llmax = (long long) -1;
7608      return ll << i | ll >> i | llmax / ll | llmax % ll;
7609   ;
7610   return 0;
7611 }
7612 _ACEOF
7613 rm -f conftest.$ac_objext conftest$ac_exeext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7615   (eval $ac_link) 2>conftest.er1
7616   ac_status=$?
7617   grep -v '^ *+' conftest.er1 >conftest.err
7618   rm -f conftest.er1
7619   cat conftest.err >&5
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); } &&
7622          { ac_try='test -z "$ac_c_werror_flag"
7623                          || test ! -s conftest.err'
7624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625   (eval $ac_try) 2>&5
7626   ac_status=$?
7627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); }; } &&
7629          { ac_try='test -s conftest$ac_exeext'
7630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631   (eval $ac_try) 2>&5
7632   ac_status=$?
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); }; }; then
7635   ac_cv_type_long_long=yes
7636 else
7637   echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7639
7640 ac_cv_type_long_long=no
7641 fi
7642 rm -f conftest.err conftest.$ac_objext \
7643       conftest$ac_exeext conftest.$ac_ext
7644 fi
7645 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7646 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7647   if test $ac_cv_type_long_long = yes; then
7648
7649 cat >>confdefs.h <<\_ACEOF
7650 #define HAVE_LONG_LONG 1
7651 _ACEOF
7652
7653   fi
7654
7655
7656   echo "$as_me:$LINENO: checking for long double" >&5
7657 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7658 if test "${gt_cv_c_long_double+set}" = set; then
7659   echo $ECHO_N "(cached) $ECHO_C" >&6
7660 else
7661   if test "$GCC" = yes; then
7662        gt_cv_c_long_double=yes
7663      else
7664        cat >conftest.$ac_ext <<_ACEOF
7665 /* confdefs.h.  */
7666 _ACEOF
7667 cat confdefs.h >>conftest.$ac_ext
7668 cat >>conftest.$ac_ext <<_ACEOF
7669 /* end confdefs.h.  */
7670
7671          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
7672          long double foo = 0.0;
7673          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7674          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7675
7676 int
7677 main ()
7678 {
7679
7680   ;
7681   return 0;
7682 }
7683 _ACEOF
7684 rm -f conftest.$ac_objext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7686   (eval $ac_compile) 2>conftest.er1
7687   ac_status=$?
7688   grep -v '^ *+' conftest.er1 >conftest.err
7689   rm -f conftest.er1
7690   cat conftest.err >&5
7691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692   (exit $ac_status); } &&
7693          { ac_try='test -z "$ac_c_werror_flag"
7694                          || test ! -s conftest.err'
7695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696   (eval $ac_try) 2>&5
7697   ac_status=$?
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); }; } &&
7700          { ac_try='test -s conftest.$ac_objext'
7701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702   (eval $ac_try) 2>&5
7703   ac_status=$?
7704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); }; }; then
7706   gt_cv_c_long_double=yes
7707 else
7708   echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7710
7711 gt_cv_c_long_double=no
7712 fi
7713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7714      fi
7715 fi
7716 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7717 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7718   if test $gt_cv_c_long_double = yes; then
7719
7720 cat >>confdefs.h <<\_ACEOF
7721 #define HAVE_LONG_DOUBLE 1
7722 _ACEOF
7723
7724   fi
7725
7726
7727   echo "$as_me:$LINENO: checking for wchar_t" >&5
7728 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7729 if test "${gt_cv_c_wchar_t+set}" = set; then
7730   echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732   cat >conftest.$ac_ext <<_ACEOF
7733 /* confdefs.h.  */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h.  */
7738 #include <stddef.h>
7739        wchar_t foo = (wchar_t)'\0';
7740 int
7741 main ()
7742 {
7743
7744   ;
7745   return 0;
7746 }
7747 _ACEOF
7748 rm -f conftest.$ac_objext
7749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7750   (eval $ac_compile) 2>conftest.er1
7751   ac_status=$?
7752   grep -v '^ *+' conftest.er1 >conftest.err
7753   rm -f conftest.er1
7754   cat conftest.err >&5
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); } &&
7757          { ac_try='test -z "$ac_c_werror_flag"
7758                          || test ! -s conftest.err'
7759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760   (eval $ac_try) 2>&5
7761   ac_status=$?
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); }; } &&
7764          { ac_try='test -s conftest.$ac_objext'
7765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766   (eval $ac_try) 2>&5
7767   ac_status=$?
7768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769   (exit $ac_status); }; }; then
7770   gt_cv_c_wchar_t=yes
7771 else
7772   echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7774
7775 gt_cv_c_wchar_t=no
7776 fi
7777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7778 fi
7779 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7780 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7781   if test $gt_cv_c_wchar_t = yes; then
7782
7783 cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_WCHAR_T 1
7785 _ACEOF
7786
7787   fi
7788
7789
7790   echo "$as_me:$LINENO: checking for wint_t" >&5
7791 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7792 if test "${gt_cv_c_wint_t+set}" = set; then
7793   echo $ECHO_N "(cached) $ECHO_C" >&6
7794 else
7795   cat >conftest.$ac_ext <<_ACEOF
7796 /* confdefs.h.  */
7797 _ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h.  */
7801 #include <wchar.h>
7802        wint_t foo = (wchar_t)'\0';
7803 int
7804 main ()
7805 {
7806
7807   ;
7808   return 0;
7809 }
7810 _ACEOF
7811 rm -f conftest.$ac_objext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813   (eval $ac_compile) 2>conftest.er1
7814   ac_status=$?
7815   grep -v '^ *+' conftest.er1 >conftest.err
7816   rm -f conftest.er1
7817   cat conftest.err >&5
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); } &&
7820          { ac_try='test -z "$ac_c_werror_flag"
7821                          || test ! -s conftest.err'
7822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823   (eval $ac_try) 2>&5
7824   ac_status=$?
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); }; } &&
7827          { ac_try='test -s conftest.$ac_objext'
7828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829   (eval $ac_try) 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); }; }; then
7833   gt_cv_c_wint_t=yes
7834 else
7835   echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7837
7838 gt_cv_c_wint_t=no
7839 fi
7840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7841 fi
7842 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7843 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7844   if test $gt_cv_c_wint_t = yes; then
7845
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_WINT_T 1
7848 _ACEOF
7849
7850   fi
7851
7852
7853   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7854 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7855 if test "${gl_cv_header_inttypes_h+set}" = set; then
7856   echo $ECHO_N "(cached) $ECHO_C" >&6
7857 else
7858   cat >conftest.$ac_ext <<_ACEOF
7859 /* confdefs.h.  */
7860 _ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h.  */
7864 #include <sys/types.h>
7865 #include <inttypes.h>
7866 int
7867 main ()
7868 {
7869 uintmax_t i = (uintmax_t) -1;
7870   ;
7871   return 0;
7872 }
7873 _ACEOF
7874 rm -f conftest.$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876   (eval $ac_compile) 2>conftest.er1
7877   ac_status=$?
7878   grep -v '^ *+' conftest.er1 >conftest.err
7879   rm -f conftest.er1
7880   cat conftest.err >&5
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); } &&
7883          { ac_try='test -z "$ac_c_werror_flag"
7884                          || test ! -s conftest.err'
7885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886   (eval $ac_try) 2>&5
7887   ac_status=$?
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); }; } &&
7890          { ac_try='test -s conftest.$ac_objext'
7891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892   (eval $ac_try) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; }; then
7896   gl_cv_header_inttypes_h=yes
7897 else
7898   echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901 gl_cv_header_inttypes_h=no
7902 fi
7903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7904 fi
7905 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7906 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7907   if test $gl_cv_header_inttypes_h = yes; then
7908
7909 cat >>confdefs.h <<_ACEOF
7910 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7911 _ACEOF
7912
7913   fi
7914
7915
7916   echo "$as_me:$LINENO: checking for stdint.h" >&5
7917 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7918 if test "${gl_cv_header_stdint_h+set}" = set; then
7919   echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921   cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h.  */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h.  */
7927 #include <sys/types.h>
7928 #include <stdint.h>
7929 int
7930 main ()
7931 {
7932 uintmax_t i = (uintmax_t) -1;
7933   ;
7934   return 0;
7935 }
7936 _ACEOF
7937 rm -f conftest.$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939   (eval $ac_compile) 2>conftest.er1
7940   ac_status=$?
7941   grep -v '^ *+' conftest.er1 >conftest.err
7942   rm -f conftest.er1
7943   cat conftest.err >&5
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); } &&
7946          { ac_try='test -z "$ac_c_werror_flag"
7947                          || test ! -s conftest.err'
7948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949   (eval $ac_try) 2>&5
7950   ac_status=$?
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); }; } &&
7953          { ac_try='test -s conftest.$ac_objext'
7954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955   (eval $ac_try) 2>&5
7956   ac_status=$?
7957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958   (exit $ac_status); }; }; then
7959   gl_cv_header_stdint_h=yes
7960 else
7961   echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7963
7964 gl_cv_header_stdint_h=no
7965 fi
7966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7967 fi
7968 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7969 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7970   if test $gl_cv_header_stdint_h = yes; then
7971
7972 cat >>confdefs.h <<_ACEOF
7973 #define HAVE_STDINT_H_WITH_UINTMAX 1
7974 _ACEOF
7975
7976   fi
7977
7978
7979
7980
7981   echo "$as_me:$LINENO: checking for intmax_t" >&5
7982 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7983 if test "${gt_cv_c_intmax_t+set}" = set; then
7984   echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986   cat >conftest.$ac_ext <<_ACEOF
7987 /* confdefs.h.  */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h.  */
7992
7993 #include <stddef.h>
7994 #include <stdlib.h>
7995 #if HAVE_STDINT_H_WITH_UINTMAX
7996 #include <stdint.h>
7997 #endif
7998 #if HAVE_INTTYPES_H_WITH_UINTMAX
7999 #include <inttypes.h>
8000 #endif
8001
8002 int
8003 main ()
8004 {
8005 intmax_t x = -1;
8006   ;
8007   return 0;
8008 }
8009 _ACEOF
8010 rm -f conftest.$ac_objext
8011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8012   (eval $ac_compile) 2>conftest.er1
8013   ac_status=$?
8014   grep -v '^ *+' conftest.er1 >conftest.err
8015   rm -f conftest.er1
8016   cat conftest.err >&5
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); } &&
8019          { ac_try='test -z "$ac_c_werror_flag"
8020                          || test ! -s conftest.err'
8021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022   (eval $ac_try) 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); }; } &&
8026          { ac_try='test -s conftest.$ac_objext'
8027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028   (eval $ac_try) 2>&5
8029   ac_status=$?
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); }; }; then
8032   gt_cv_c_intmax_t=yes
8033 else
8034   echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037 gt_cv_c_intmax_t=no
8038 fi
8039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8040 fi
8041 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8042 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8043   if test $gt_cv_c_intmax_t = yes; then
8044
8045 cat >>confdefs.h <<\_ACEOF
8046 #define HAVE_INTMAX_T 1
8047 _ACEOF
8048
8049   fi
8050
8051
8052
8053   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8054 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8055 if test "${gt_cv_func_printf_posix+set}" = set; then
8056   echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058
8059       if test "$cross_compiling" = yes; then
8060
8061         cat >conftest.$ac_ext <<_ACEOF
8062 /* confdefs.h.  */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h.  */
8067
8068 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8069   notposix
8070 #endif
8071
8072 _ACEOF
8073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8074   $EGREP "notposix" >/dev/null 2>&1; then
8075   gt_cv_func_printf_posix="guessing no"
8076 else
8077   gt_cv_func_printf_posix="guessing yes"
8078 fi
8079 rm -f conftest*
8080
8081
8082 else
8083   cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h.  */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h.  */
8089
8090 #include <stdio.h>
8091 #include <string.h>
8092 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8093    dollar expansion (possibly an autoconf bug).  */
8094 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8095 static char buf[100];
8096 int main ()
8097 {
8098   sprintf (buf, format, 33, 55);
8099   return (strcmp (buf, "55 33") != 0);
8100 }
8101 _ACEOF
8102 rm -f conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104   (eval $ac_link) 2>&5
8105   ac_status=$?
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109   (eval $ac_try) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); }; }; then
8113   gt_cv_func_printf_posix=yes
8114 else
8115   echo "$as_me: program exited with status $ac_status" >&5
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8118
8119 ( exit $ac_status )
8120 gt_cv_func_printf_posix=no
8121 fi
8122 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8123 fi
8124
8125 fi
8126 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8127 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8128   case $gt_cv_func_printf_posix in
8129     *yes)
8130
8131 cat >>confdefs.h <<\_ACEOF
8132 #define HAVE_POSIX_PRINTF 1
8133 _ACEOF
8134
8135       ;;
8136   esac
8137
8138 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8139 # for constant arguments.  Useless!
8140 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8141 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8142 if test "${ac_cv_working_alloca_h+set}" = set; then
8143   echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145   cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h.  */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h.  */
8151 #include <alloca.h>
8152 int
8153 main ()
8154 {
8155 char *p = (char *) alloca (2 * sizeof (int));
8156   ;
8157   return 0;
8158 }
8159 _ACEOF
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162   (eval $ac_link) 2>conftest.er1
8163   ac_status=$?
8164   grep -v '^ *+' conftest.er1 >conftest.err
8165   rm -f conftest.er1
8166   cat conftest.err >&5
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } &&
8169          { ac_try='test -z "$ac_c_werror_flag"
8170                          || test ! -s conftest.err'
8171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172   (eval $ac_try) 2>&5
8173   ac_status=$?
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); }; } &&
8176          { ac_try='test -s conftest$ac_exeext'
8177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178   (eval $ac_try) 2>&5
8179   ac_status=$?
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); }; }; then
8182   ac_cv_working_alloca_h=yes
8183 else
8184   echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8186
8187 ac_cv_working_alloca_h=no
8188 fi
8189 rm -f conftest.err conftest.$ac_objext \
8190       conftest$ac_exeext conftest.$ac_ext
8191 fi
8192 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8193 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8194 if test $ac_cv_working_alloca_h = yes; then
8195
8196 cat >>confdefs.h <<\_ACEOF
8197 #define HAVE_ALLOCA_H 1
8198 _ACEOF
8199
8200 fi
8201
8202 echo "$as_me:$LINENO: checking for alloca" >&5
8203 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8204 if test "${ac_cv_func_alloca_works+set}" = set; then
8205   echo $ECHO_N "(cached) $ECHO_C" >&6
8206 else
8207   cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h.  */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h.  */
8213 #ifdef __GNUC__
8214 # define alloca __builtin_alloca
8215 #else
8216 # ifdef _MSC_VER
8217 #  include <malloc.h>
8218 #  define alloca _alloca
8219 # else
8220 #  if HAVE_ALLOCA_H
8221 #   include <alloca.h>
8222 #  else
8223 #   ifdef _AIX
8224  #pragma alloca
8225 #   else
8226 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8227 char *alloca ();
8228 #    endif
8229 #   endif
8230 #  endif
8231 # endif
8232 #endif
8233
8234 int
8235 main ()
8236 {
8237 char *p = (char *) alloca (1);
8238   ;
8239   return 0;
8240 }
8241 _ACEOF
8242 rm -f conftest.$ac_objext conftest$ac_exeext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8244   (eval $ac_link) 2>conftest.er1
8245   ac_status=$?
8246   grep -v '^ *+' conftest.er1 >conftest.err
8247   rm -f conftest.er1
8248   cat conftest.err >&5
8249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250   (exit $ac_status); } &&
8251          { ac_try='test -z "$ac_c_werror_flag"
8252                          || test ! -s conftest.err'
8253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254   (eval $ac_try) 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); }; } &&
8258          { ac_try='test -s conftest$ac_exeext'
8259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260   (eval $ac_try) 2>&5
8261   ac_status=$?
8262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   (exit $ac_status); }; }; then
8264   ac_cv_func_alloca_works=yes
8265 else
8266   echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8268
8269 ac_cv_func_alloca_works=no
8270 fi
8271 rm -f conftest.err conftest.$ac_objext \
8272       conftest$ac_exeext conftest.$ac_ext
8273 fi
8274 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8275 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8276
8277 if test $ac_cv_func_alloca_works = yes; then
8278
8279 cat >>confdefs.h <<\_ACEOF
8280 #define HAVE_ALLOCA 1
8281 _ACEOF
8282
8283 else
8284   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8285 # that cause trouble.  Some versions do not even contain alloca or
8286 # contain a buggy version.  If you still want to use their alloca,
8287 # use ar to extract alloca.o from them instead of compiling alloca.c.
8288
8289 ALLOCA=alloca.$ac_objext
8290
8291 cat >>confdefs.h <<\_ACEOF
8292 #define C_ALLOCA 1
8293 _ACEOF
8294
8295
8296 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8297 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8298 if test "${ac_cv_os_cray+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h.  */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h.  */
8307 #if defined(CRAY) && ! defined(CRAY2)
8308 webecray
8309 #else
8310 wenotbecray
8311 #endif
8312
8313 _ACEOF
8314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8315   $EGREP "webecray" >/dev/null 2>&1; then
8316   ac_cv_os_cray=yes
8317 else
8318   ac_cv_os_cray=no
8319 fi
8320 rm -f conftest*
8321
8322 fi
8323 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8324 echo "${ECHO_T}$ac_cv_os_cray" >&6
8325 if test $ac_cv_os_cray = yes; then
8326   for ac_func in _getb67 GETB67 getb67; do
8327     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8328 echo "$as_me:$LINENO: checking for $ac_func" >&5
8329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8330 if eval "test \"\${$as_ac_var+set}\" = set"; then
8331   echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333   cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h.  */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h.  */
8339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8341 #define $ac_func innocuous_$ac_func
8342
8343 /* System header to define __stub macros and hopefully few prototypes,
8344     which can conflict with char $ac_func (); below.
8345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8346     <limits.h> exists even on freestanding compilers.  */
8347
8348 #ifdef __STDC__
8349 # include <limits.h>
8350 #else
8351 # include <assert.h>
8352 #endif
8353
8354 #undef $ac_func
8355
8356 /* Override any gcc2 internal prototype to avoid an error.  */
8357 #ifdef __cplusplus
8358 extern "C"
8359 {
8360 #endif
8361 /* We use char because int might match the return type of a gcc2
8362    builtin and then its argument prototype would still apply.  */
8363 char $ac_func ();
8364 /* The GNU C library defines this for functions which it implements
8365     to always fail with ENOSYS.  Some functions are actually named
8366     something starting with __ and the normal name is an alias.  */
8367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8368 choke me
8369 #else
8370 char (*f) () = $ac_func;
8371 #endif
8372 #ifdef __cplusplus
8373 }
8374 #endif
8375
8376 int
8377 main ()
8378 {
8379 return f != $ac_func;
8380   ;
8381   return 0;
8382 }
8383 _ACEOF
8384 rm -f conftest.$ac_objext conftest$ac_exeext
8385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8386   (eval $ac_link) 2>conftest.er1
8387   ac_status=$?
8388   grep -v '^ *+' conftest.er1 >conftest.err
8389   rm -f conftest.er1
8390   cat conftest.err >&5
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); } &&
8393          { ac_try='test -z "$ac_c_werror_flag"
8394                          || test ! -s conftest.err'
8395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396   (eval $ac_try) 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); }; } &&
8400          { ac_try='test -s conftest$ac_exeext'
8401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402   (eval $ac_try) 2>&5
8403   ac_status=$?
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); }; }; then
8406   eval "$as_ac_var=yes"
8407 else
8408   echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411 eval "$as_ac_var=no"
8412 fi
8413 rm -f conftest.err conftest.$ac_objext \
8414       conftest$ac_exeext conftest.$ac_ext
8415 fi
8416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8418 if test `eval echo '${'$as_ac_var'}'` = yes; then
8419
8420 cat >>confdefs.h <<_ACEOF
8421 #define CRAY_STACKSEG_END $ac_func
8422 _ACEOF
8423
8424     break
8425 fi
8426
8427   done
8428 fi
8429
8430 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8431 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8432 if test "${ac_cv_c_stack_direction+set}" = set; then
8433   echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435   if test "$cross_compiling" = yes; then
8436   ac_cv_c_stack_direction=0
8437 else
8438   cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h.  */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h.  */
8444 int
8445 find_stack_direction ()
8446 {
8447   static char *addr = 0;
8448   auto char dummy;
8449   if (addr == 0)
8450     {
8451       addr = &dummy;
8452       return find_stack_direction ();
8453     }
8454   else
8455     return (&dummy > addr) ? 1 : -1;
8456 }
8457
8458 int
8459 main ()
8460 {
8461   exit (find_stack_direction () < 0);
8462 }
8463 _ACEOF
8464 rm -f conftest$ac_exeext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466   (eval $ac_link) 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471   (eval $ac_try) 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); }; }; then
8475   ac_cv_c_stack_direction=1
8476 else
8477   echo "$as_me: program exited with status $ac_status" >&5
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8480
8481 ( exit $ac_status )
8482 ac_cv_c_stack_direction=-1
8483 fi
8484 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8485 fi
8486 fi
8487 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8488 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8489
8490 cat >>confdefs.h <<_ACEOF
8491 #define STACK_DIRECTION $ac_cv_c_stack_direction
8492 _ACEOF
8493
8494
8495 fi
8496
8497
8498
8499 for ac_header in stdlib.h unistd.h
8500 do
8501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8503   echo "$as_me:$LINENO: checking for $ac_header" >&5
8504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8506   echo $ECHO_N "(cached) $ECHO_C" >&6
8507 fi
8508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8510 else
8511   # Is the header compilable?
8512 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8514 cat >conftest.$ac_ext <<_ACEOF
8515 /* confdefs.h.  */
8516 _ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h.  */
8520 $ac_includes_default
8521 #include <$ac_header>
8522 _ACEOF
8523 rm -f conftest.$ac_objext
8524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8525   (eval $ac_compile) 2>conftest.er1
8526   ac_status=$?
8527   grep -v '^ *+' conftest.er1 >conftest.err
8528   rm -f conftest.er1
8529   cat conftest.err >&5
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); } &&
8532          { ac_try='test -z "$ac_c_werror_flag"
8533                          || test ! -s conftest.err'
8534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535   (eval $ac_try) 2>&5
8536   ac_status=$?
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); }; } &&
8539          { ac_try='test -s conftest.$ac_objext'
8540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541   (eval $ac_try) 2>&5
8542   ac_status=$?
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); }; }; then
8545   ac_header_compiler=yes
8546 else
8547   echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8549
8550 ac_header_compiler=no
8551 fi
8552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8554 echo "${ECHO_T}$ac_header_compiler" >&6
8555
8556 # Is the header present?
8557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8559 cat >conftest.$ac_ext <<_ACEOF
8560 /* confdefs.h.  */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h.  */
8565 #include <$ac_header>
8566 _ACEOF
8567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8568   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8569   ac_status=$?
8570   grep -v '^ *+' conftest.er1 >conftest.err
8571   rm -f conftest.er1
8572   cat conftest.err >&5
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); } >/dev/null; then
8575   if test -s conftest.err; then
8576     ac_cpp_err=$ac_c_preproc_warn_flag
8577     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8578   else
8579     ac_cpp_err=
8580   fi
8581 else
8582   ac_cpp_err=yes
8583 fi
8584 if test -z "$ac_cpp_err"; then
8585   ac_header_preproc=yes
8586 else
8587   echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590   ac_header_preproc=no
8591 fi
8592 rm -f conftest.err conftest.$ac_ext
8593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8594 echo "${ECHO_T}$ac_header_preproc" >&6
8595
8596 # So?  What about this header?
8597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8598   yes:no: )
8599     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8603     ac_header_preproc=yes
8604     ;;
8605   no:yes:* )
8606     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8608     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8609 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8610     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8612     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8613 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8616     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8618     (
8619       cat <<\_ASBOX
8620 ## ------------------------------------------ ##
8621 ## Report this to the AC_PACKAGE_NAME lists.  ##
8622 ## ------------------------------------------ ##
8623 _ASBOX
8624     ) |
8625       sed "s/^/$as_me: WARNING:     /" >&2
8626     ;;
8627 esac
8628 echo "$as_me:$LINENO: checking for $ac_header" >&5
8629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8631   echo $ECHO_N "(cached) $ECHO_C" >&6
8632 else
8633   eval "$as_ac_Header=\$ac_header_preproc"
8634 fi
8635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8637
8638 fi
8639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8640   cat >>confdefs.h <<_ACEOF
8641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8642 _ACEOF
8643
8644 fi
8645
8646 done
8647
8648
8649 for ac_func in getpagesize
8650 do
8651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8652 echo "$as_me:$LINENO: checking for $ac_func" >&5
8653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8654 if eval "test \"\${$as_ac_var+set}\" = set"; then
8655   echo $ECHO_N "(cached) $ECHO_C" >&6
8656 else
8657   cat >conftest.$ac_ext <<_ACEOF
8658 /* confdefs.h.  */
8659 _ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h.  */
8663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8665 #define $ac_func innocuous_$ac_func
8666
8667 /* System header to define __stub macros and hopefully few prototypes,
8668     which can conflict with char $ac_func (); below.
8669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8670     <limits.h> exists even on freestanding compilers.  */
8671
8672 #ifdef __STDC__
8673 # include <limits.h>
8674 #else
8675 # include <assert.h>
8676 #endif
8677
8678 #undef $ac_func
8679
8680 /* Override any gcc2 internal prototype to avoid an error.  */
8681 #ifdef __cplusplus
8682 extern "C"
8683 {
8684 #endif
8685 /* We use char because int might match the return type of a gcc2
8686    builtin and then its argument prototype would still apply.  */
8687 char $ac_func ();
8688 /* The GNU C library defines this for functions which it implements
8689     to always fail with ENOSYS.  Some functions are actually named
8690     something starting with __ and the normal name is an alias.  */
8691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8692 choke me
8693 #else
8694 char (*f) () = $ac_func;
8695 #endif
8696 #ifdef __cplusplus
8697 }
8698 #endif
8699
8700 int
8701 main ()
8702 {
8703 return f != $ac_func;
8704   ;
8705   return 0;
8706 }
8707 _ACEOF
8708 rm -f conftest.$ac_objext conftest$ac_exeext
8709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710   (eval $ac_link) 2>conftest.er1
8711   ac_status=$?
8712   grep -v '^ *+' conftest.er1 >conftest.err
8713   rm -f conftest.er1
8714   cat conftest.err >&5
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); } &&
8717          { ac_try='test -z "$ac_c_werror_flag"
8718                          || test ! -s conftest.err'
8719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720   (eval $ac_try) 2>&5
8721   ac_status=$?
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); }; } &&
8724          { ac_try='test -s conftest$ac_exeext'
8725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726   (eval $ac_try) 2>&5
8727   ac_status=$?
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); }; }; then
8730   eval "$as_ac_var=yes"
8731 else
8732   echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8734
8735 eval "$as_ac_var=no"
8736 fi
8737 rm -f conftest.err conftest.$ac_objext \
8738       conftest$ac_exeext conftest.$ac_ext
8739 fi
8740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8742 if test `eval echo '${'$as_ac_var'}'` = yes; then
8743   cat >>confdefs.h <<_ACEOF
8744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8745 _ACEOF
8746
8747 fi
8748 done
8749
8750 echo "$as_me:$LINENO: checking for working mmap" >&5
8751 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8752 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8753   echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755   if test "$cross_compiling" = yes; then
8756   ac_cv_func_mmap_fixed_mapped=no
8757 else
8758   cat >conftest.$ac_ext <<_ACEOF
8759 /* confdefs.h.  */
8760 _ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h.  */
8764 $ac_includes_default
8765 /* malloc might have been renamed as rpl_malloc. */
8766 #undef malloc
8767
8768 /* Thanks to Mike Haertel and Jim Avera for this test.
8769    Here is a matrix of mmap possibilities:
8770         mmap private not fixed
8771         mmap private fixed at somewhere currently unmapped
8772         mmap private fixed at somewhere already mapped
8773         mmap shared not fixed
8774         mmap shared fixed at somewhere currently unmapped
8775         mmap shared fixed at somewhere already mapped
8776    For private mappings, we should verify that changes cannot be read()
8777    back from the file, nor mmap's back from the file at a different
8778    address.  (There have been systems where private was not correctly
8779    implemented like the infamous i386 svr4.0, and systems where the
8780    VM page cache was not coherent with the file system buffer cache
8781    like early versions of FreeBSD and possibly contemporary NetBSD.)
8782    For shared mappings, we should conversely verify that changes get
8783    propagated back to all the places they're supposed to be.
8784
8785    Grep wants private fixed already mapped.
8786    The main things grep needs to know about mmap are:
8787    * does it exist and is it safe to write into the mmap'd area
8788    * how to use it (BSD variants)  */
8789
8790 #include <fcntl.h>
8791 #include <sys/mman.h>
8792
8793 #if !STDC_HEADERS && !HAVE_STDLIB_H
8794 char *malloc ();
8795 #endif
8796
8797 /* This mess was copied from the GNU getpagesize.h.  */
8798 #if !HAVE_GETPAGESIZE
8799 /* Assume that all systems that can run configure have sys/param.h.  */
8800 # if !HAVE_SYS_PARAM_H
8801 #  define HAVE_SYS_PARAM_H 1
8802 # endif
8803
8804 # ifdef _SC_PAGESIZE
8805 #  define getpagesize() sysconf(_SC_PAGESIZE)
8806 # else /* no _SC_PAGESIZE */
8807 #  if HAVE_SYS_PARAM_H
8808 #   include <sys/param.h>
8809 #   ifdef EXEC_PAGESIZE
8810 #    define getpagesize() EXEC_PAGESIZE
8811 #   else /* no EXEC_PAGESIZE */
8812 #    ifdef NBPG
8813 #     define getpagesize() NBPG * CLSIZE
8814 #     ifndef CLSIZE
8815 #      define CLSIZE 1
8816 #     endif /* no CLSIZE */
8817 #    else /* no NBPG */
8818 #     ifdef NBPC
8819 #      define getpagesize() NBPC
8820 #     else /* no NBPC */
8821 #      ifdef PAGESIZE
8822 #       define getpagesize() PAGESIZE
8823 #      endif /* PAGESIZE */
8824 #     endif /* no NBPC */
8825 #    endif /* no NBPG */
8826 #   endif /* no EXEC_PAGESIZE */
8827 #  else /* no HAVE_SYS_PARAM_H */
8828 #   define getpagesize() 8192   /* punt totally */
8829 #  endif /* no HAVE_SYS_PARAM_H */
8830 # endif /* no _SC_PAGESIZE */
8831
8832 #endif /* no HAVE_GETPAGESIZE */
8833
8834 int
8835 main ()
8836 {
8837   char *data, *data2, *data3;
8838   int i, pagesize;
8839   int fd;
8840
8841   pagesize = getpagesize ();
8842
8843   /* First, make a file with some known garbage in it. */
8844   data = (char *) malloc (pagesize);
8845   if (!data)
8846     exit (1);
8847   for (i = 0; i < pagesize; ++i)
8848     *(data + i) = rand ();
8849   umask (0);
8850   fd = creat ("conftest.mmap", 0600);
8851   if (fd < 0)
8852     exit (1);
8853   if (write (fd, data, pagesize) != pagesize)
8854     exit (1);
8855   close (fd);
8856
8857   /* Next, try to mmap the file at a fixed address which already has
8858      something else allocated at it.  If we can, also make sure that
8859      we see the same garbage.  */
8860   fd = open ("conftest.mmap", O_RDWR);
8861   if (fd < 0)
8862     exit (1);
8863   data2 = (char *) malloc (2 * pagesize);
8864   if (!data2)
8865     exit (1);
8866   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8867   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8868                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8869     exit (1);
8870   for (i = 0; i < pagesize; ++i)
8871     if (*(data + i) != *(data2 + i))
8872       exit (1);
8873
8874   /* Finally, make sure that changes to the mapped area do not
8875      percolate back to the file as seen by read().  (This is a bug on
8876      some variants of i386 svr4.0.)  */
8877   for (i = 0; i < pagesize; ++i)
8878     *(data2 + i) = *(data2 + i) + 1;
8879   data3 = (char *) malloc (pagesize);
8880   if (!data3)
8881     exit (1);
8882   if (read (fd, data3, pagesize) != pagesize)
8883     exit (1);
8884   for (i = 0; i < pagesize; ++i)
8885     if (*(data + i) != *(data3 + i))
8886       exit (1);
8887   close (fd);
8888   exit (0);
8889 }
8890 _ACEOF
8891 rm -f conftest$ac_exeext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893   (eval $ac_link) 2>&5
8894   ac_status=$?
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898   (eval $ac_try) 2>&5
8899   ac_status=$?
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); }; }; then
8902   ac_cv_func_mmap_fixed_mapped=yes
8903 else
8904   echo "$as_me: program exited with status $ac_status" >&5
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8907
8908 ( exit $ac_status )
8909 ac_cv_func_mmap_fixed_mapped=no
8910 fi
8911 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8912 fi
8913 fi
8914 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8915 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8916 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8917
8918 cat >>confdefs.h <<\_ACEOF
8919 #define HAVE_MMAP 1
8920 _ACEOF
8921
8922 fi
8923 rm -f conftest.mmap
8924
8925
8926     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8927 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8928 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8929   echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931   cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h.  */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h.  */
8937
8938 #include <features.h>
8939 #ifdef __GNU_LIBRARY__
8940  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8941   Lucky GNU user
8942  #endif
8943 #endif
8944
8945 _ACEOF
8946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8947   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8948   ac_cv_gnu_library_2_1=yes
8949 else
8950   ac_cv_gnu_library_2_1=no
8951 fi
8952 rm -f conftest*
8953
8954
8955
8956 fi
8957 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8958 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8959
8960     GLIBC21="$ac_cv_gnu_library_2_1"
8961
8962
8963
8964
8965   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8966 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8967 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8968   echo $ECHO_N "(cached) $ECHO_C" >&6
8969 else
8970
8971       if test "$cross_compiling" = yes; then
8972
8973           # Guess based on the CPU.
8974           case "$host_cpu" in
8975             alpha* | i3456786 | m68k | s390*)
8976               gt_cv_int_divbyzero_sigfpe="guessing yes";;
8977             *)
8978               gt_cv_int_divbyzero_sigfpe="guessing no";;
8979           esac
8980
8981 else
8982   cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h.  */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h.  */
8988
8989 #include <stdlib.h>
8990 #include <signal.h>
8991
8992 static void
8993 #ifdef __cplusplus
8994 sigfpe_handler (int sig)
8995 #else
8996 sigfpe_handler (sig) int sig;
8997 #endif
8998 {
8999   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9000   exit (sig != SIGFPE);
9001 }
9002
9003 int x = 1;
9004 int y = 0;
9005 int z;
9006 int nan;
9007
9008 int main ()
9009 {
9010   signal (SIGFPE, sigfpe_handler);
9011 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9012 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9013   signal (SIGTRAP, sigfpe_handler);
9014 #endif
9015 /* Linux/SPARC yields signal SIGILL.  */
9016 #if defined (__sparc__) && defined (__linux__)
9017   signal (SIGILL, sigfpe_handler);
9018 #endif
9019
9020   z = x / y;
9021   nan = y / y;
9022   exit (1);
9023 }
9024
9025 _ACEOF
9026 rm -f conftest$ac_exeext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9028   (eval $ac_link) 2>&5
9029   ac_status=$?
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033   (eval $ac_try) 2>&5
9034   ac_status=$?
9035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036   (exit $ac_status); }; }; then
9037   gt_cv_int_divbyzero_sigfpe=yes
9038 else
9039   echo "$as_me: program exited with status $ac_status" >&5
9040 echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9042
9043 ( exit $ac_status )
9044 gt_cv_int_divbyzero_sigfpe=no
9045 fi
9046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9047 fi
9048
9049 fi
9050 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9051 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9052   case "$gt_cv_int_divbyzero_sigfpe" in
9053     *yes) value=1;;
9054     *) value=0;;
9055   esac
9056
9057 cat >>confdefs.h <<_ACEOF
9058 #define INTDIV0_RAISES_SIGFPE $value
9059 _ACEOF
9060
9061
9062
9063   echo "$as_me:$LINENO: checking for unsigned long long" >&5
9064 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9065 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9066   echo $ECHO_N "(cached) $ECHO_C" >&6
9067 else
9068   cat >conftest.$ac_ext <<_ACEOF
9069 /* confdefs.h.  */
9070 _ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h.  */
9074 unsigned long long ull = 1ULL; int i = 63;
9075 int
9076 main ()
9077 {
9078 unsigned long long ullmax = (unsigned long long) -1;
9079      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9080   ;
9081   return 0;
9082 }
9083 _ACEOF
9084 rm -f conftest.$ac_objext conftest$ac_exeext
9085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9086   (eval $ac_link) 2>conftest.er1
9087   ac_status=$?
9088   grep -v '^ *+' conftest.er1 >conftest.err
9089   rm -f conftest.er1
9090   cat conftest.err >&5
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); } &&
9093          { ac_try='test -z "$ac_c_werror_flag"
9094                          || test ! -s conftest.err'
9095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096   (eval $ac_try) 2>&5
9097   ac_status=$?
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); }; } &&
9100          { ac_try='test -s conftest$ac_exeext'
9101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102   (eval $ac_try) 2>&5
9103   ac_status=$?
9104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105   (exit $ac_status); }; }; then
9106   ac_cv_type_unsigned_long_long=yes
9107 else
9108   echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9110
9111 ac_cv_type_unsigned_long_long=no
9112 fi
9113 rm -f conftest.err conftest.$ac_objext \
9114       conftest$ac_exeext conftest.$ac_ext
9115 fi
9116 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9117 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9118   if test $ac_cv_type_unsigned_long_long = yes; then
9119
9120 cat >>confdefs.h <<\_ACEOF
9121 #define HAVE_UNSIGNED_LONG_LONG 1
9122 _ACEOF
9123
9124   fi
9125
9126
9127
9128
9129   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9130
9131     test $ac_cv_type_unsigned_long_long = yes \
9132       && ac_type='unsigned long long' \
9133       || ac_type='unsigned long'
9134
9135 cat >>confdefs.h <<_ACEOF
9136 #define uintmax_t $ac_type
9137 _ACEOF
9138
9139   else
9140
9141 cat >>confdefs.h <<\_ACEOF
9142 #define HAVE_UINTMAX_T 1
9143 _ACEOF
9144
9145   fi
9146
9147
9148   echo "$as_me:$LINENO: checking for inttypes.h" >&5
9149 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9150 if test "${gt_cv_header_inttypes_h+set}" = set; then
9151   echo $ECHO_N "(cached) $ECHO_C" >&6
9152 else
9153
9154     cat >conftest.$ac_ext <<_ACEOF
9155 /* confdefs.h.  */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h.  */
9160 #include <sys/types.h>
9161 #include <inttypes.h>
9162 int
9163 main ()
9164 {
9165
9166   ;
9167   return 0;
9168 }
9169 _ACEOF
9170 rm -f conftest.$ac_objext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9172   (eval $ac_compile) 2>conftest.er1
9173   ac_status=$?
9174   grep -v '^ *+' conftest.er1 >conftest.err
9175   rm -f conftest.er1
9176   cat conftest.err >&5
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); } &&
9179          { ac_try='test -z "$ac_c_werror_flag"
9180                          || test ! -s conftest.err'
9181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182   (eval $ac_try) 2>&5
9183   ac_status=$?
9184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185   (exit $ac_status); }; } &&
9186          { ac_try='test -s conftest.$ac_objext'
9187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188   (eval $ac_try) 2>&5
9189   ac_status=$?
9190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); }; }; then
9192   gt_cv_header_inttypes_h=yes
9193 else
9194   echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9196
9197 gt_cv_header_inttypes_h=no
9198 fi
9199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9200
9201 fi
9202 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9203 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9204   if test $gt_cv_header_inttypes_h = yes; then
9205
9206 cat >>confdefs.h <<_ACEOF
9207 #define HAVE_INTTYPES_H 1
9208 _ACEOF
9209
9210   fi
9211
9212
9213
9214   if test $gt_cv_header_inttypes_h = yes; then
9215     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9216 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9217 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9218   echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220
9221         cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h.  */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h.  */
9227 #include <inttypes.h>
9228 #ifdef PRId32
9229 char *p = PRId32;
9230 #endif
9231
9232 int
9233 main ()
9234 {
9235
9236   ;
9237   return 0;
9238 }
9239 _ACEOF
9240 rm -f conftest.$ac_objext
9241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9242   (eval $ac_compile) 2>conftest.er1
9243   ac_status=$?
9244   grep -v '^ *+' conftest.er1 >conftest.err
9245   rm -f conftest.er1
9246   cat conftest.err >&5
9247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248   (exit $ac_status); } &&
9249          { ac_try='test -z "$ac_c_werror_flag"
9250                          || test ! -s conftest.err'
9251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252   (eval $ac_try) 2>&5
9253   ac_status=$?
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); }; } &&
9256          { ac_try='test -s conftest.$ac_objext'
9257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258   (eval $ac_try) 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); }; }; then
9262   gt_cv_inttypes_pri_broken=no
9263 else
9264   echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9266
9267 gt_cv_inttypes_pri_broken=yes
9268 fi
9269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9270
9271 fi
9272 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9273 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9274   fi
9275   if test "$gt_cv_inttypes_pri_broken" = yes; then
9276
9277 cat >>confdefs.h <<_ACEOF
9278 #define PRI_MACROS_BROKEN 1
9279 _ACEOF
9280
9281   fi
9282
9283
9284
9285 for ac_header in stdint.h
9286 do
9287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9289   echo "$as_me:$LINENO: checking for $ac_header" >&5
9290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9292   echo $ECHO_N "(cached) $ECHO_C" >&6
9293 fi
9294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9296 else
9297   # Is the header compilable?
9298 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9300 cat >conftest.$ac_ext <<_ACEOF
9301 /* confdefs.h.  */
9302 _ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h.  */
9306 $ac_includes_default
9307 #include <$ac_header>
9308 _ACEOF
9309 rm -f conftest.$ac_objext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9311   (eval $ac_compile) 2>conftest.er1
9312   ac_status=$?
9313   grep -v '^ *+' conftest.er1 >conftest.err
9314   rm -f conftest.er1
9315   cat conftest.err >&5
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); } &&
9318          { ac_try='test -z "$ac_c_werror_flag"
9319                          || test ! -s conftest.err'
9320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321   (eval $ac_try) 2>&5
9322   ac_status=$?
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); }; } &&
9325          { ac_try='test -s conftest.$ac_objext'
9326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327   (eval $ac_try) 2>&5
9328   ac_status=$?
9329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330   (exit $ac_status); }; }; then
9331   ac_header_compiler=yes
9332 else
9333   echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9335
9336 ac_header_compiler=no
9337 fi
9338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9340 echo "${ECHO_T}$ac_header_compiler" >&6
9341
9342 # Is the header present?
9343 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9345 cat >conftest.$ac_ext <<_ACEOF
9346 /* confdefs.h.  */
9347 _ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h.  */
9351 #include <$ac_header>
9352 _ACEOF
9353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9354   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9355   ac_status=$?
9356   grep -v '^ *+' conftest.er1 >conftest.err
9357   rm -f conftest.er1
9358   cat conftest.err >&5
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); } >/dev/null; then
9361   if test -s conftest.err; then
9362     ac_cpp_err=$ac_c_preproc_warn_flag
9363     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9364   else
9365     ac_cpp_err=
9366   fi
9367 else
9368   ac_cpp_err=yes
9369 fi
9370 if test -z "$ac_cpp_err"; then
9371   ac_header_preproc=yes
9372 else
9373   echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9375
9376   ac_header_preproc=no
9377 fi
9378 rm -f conftest.err conftest.$ac_ext
9379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9380 echo "${ECHO_T}$ac_header_preproc" >&6
9381
9382 # So?  What about this header?
9383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9384   yes:no: )
9385     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9389     ac_header_preproc=yes
9390     ;;
9391   no:yes:* )
9392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9394     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9395 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9396     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9398     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9399 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9402     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9404     (
9405       cat <<\_ASBOX
9406 ## ------------------------------------------ ##
9407 ## Report this to the AC_PACKAGE_NAME lists.  ##
9408 ## ------------------------------------------ ##
9409 _ASBOX
9410     ) |
9411       sed "s/^/$as_me: WARNING:     /" >&2
9412     ;;
9413 esac
9414 echo "$as_me:$LINENO: checking for $ac_header" >&5
9415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9417   echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419   eval "$as_ac_Header=\$ac_header_preproc"
9420 fi
9421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9423
9424 fi
9425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9426   cat >>confdefs.h <<_ACEOF
9427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9428 _ACEOF
9429
9430 fi
9431
9432 done
9433
9434     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9435 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9436   result=
9437   cat >conftest.$ac_ext <<_ACEOF
9438 /* confdefs.h.  */
9439 _ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h.  */
9443
9444 #include <limits.h>
9445 #if HAVE_STDINT_H
9446 #include <stdint.h>
9447 #endif
9448 #ifdef SIZE_MAX
9449 Found it
9450 #endif
9451
9452 _ACEOF
9453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9454   $EGREP "Found it" >/dev/null 2>&1; then
9455   result=yes
9456 fi
9457 rm -f conftest*
9458
9459   if test -z "$result"; then
9460                     if test "$cross_compiling" = yes; then
9461   # Depending upon the size, compute the lo and hi bounds.
9462 cat >conftest.$ac_ext <<_ACEOF
9463 /* confdefs.h.  */
9464 _ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h.  */
9468 #include <stddef.h>
9469 int
9470 main ()
9471 {
9472 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9473 test_array [0] = 0
9474
9475   ;
9476   return 0;
9477 }
9478 _ACEOF
9479 rm -f conftest.$ac_objext
9480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9481   (eval $ac_compile) 2>conftest.er1
9482   ac_status=$?
9483   grep -v '^ *+' conftest.er1 >conftest.err
9484   rm -f conftest.er1
9485   cat conftest.err >&5
9486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487   (exit $ac_status); } &&
9488          { ac_try='test -z "$ac_c_werror_flag"
9489                          || test ! -s conftest.err'
9490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491   (eval $ac_try) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); }; } &&
9495          { ac_try='test -s conftest.$ac_objext'
9496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497   (eval $ac_try) 2>&5
9498   ac_status=$?
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); }; }; then
9501   ac_lo=0 ac_mid=0
9502   while :; do
9503     cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h.  */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h.  */
9509 #include <stddef.h>
9510 int
9511 main ()
9512 {
9513 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9514 test_array [0] = 0
9515
9516   ;
9517   return 0;
9518 }
9519 _ACEOF
9520 rm -f conftest.$ac_objext
9521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9522   (eval $ac_compile) 2>conftest.er1
9523   ac_status=$?
9524   grep -v '^ *+' conftest.er1 >conftest.err
9525   rm -f conftest.er1
9526   cat conftest.err >&5
9527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528   (exit $ac_status); } &&
9529          { ac_try='test -z "$ac_c_werror_flag"
9530                          || test ! -s conftest.err'
9531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532   (eval $ac_try) 2>&5
9533   ac_status=$?
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); }; } &&
9536          { ac_try='test -s conftest.$ac_objext'
9537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538   (eval $ac_try) 2>&5
9539   ac_status=$?
9540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541   (exit $ac_status); }; }; then
9542   ac_hi=$ac_mid; break
9543 else
9544   echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9546
9547 ac_lo=`expr $ac_mid + 1`
9548                     if test $ac_lo -le $ac_mid; then
9549                       ac_lo= ac_hi=
9550                       break
9551                     fi
9552                     ac_mid=`expr 2 '*' $ac_mid + 1`
9553 fi
9554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9555   done
9556 else
9557   echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9559
9560 cat >conftest.$ac_ext <<_ACEOF
9561 /* confdefs.h.  */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h.  */
9566 #include <stddef.h>
9567 int
9568 main ()
9569 {
9570 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9571 test_array [0] = 0
9572
9573   ;
9574   return 0;
9575 }
9576 _ACEOF
9577 rm -f conftest.$ac_objext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9579   (eval $ac_compile) 2>conftest.er1
9580   ac_status=$?
9581   grep -v '^ *+' conftest.er1 >conftest.err
9582   rm -f conftest.er1
9583   cat conftest.err >&5
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); } &&
9586          { ac_try='test -z "$ac_c_werror_flag"
9587                          || test ! -s conftest.err'
9588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589   (eval $ac_try) 2>&5
9590   ac_status=$?
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); }; } &&
9593          { ac_try='test -s conftest.$ac_objext'
9594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595   (eval $ac_try) 2>&5
9596   ac_status=$?
9597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598   (exit $ac_status); }; }; then
9599   ac_hi=-1 ac_mid=-1
9600   while :; do
9601     cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h.  */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h.  */
9607 #include <stddef.h>
9608 int
9609 main ()
9610 {
9611 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9612 test_array [0] = 0
9613
9614   ;
9615   return 0;
9616 }
9617 _ACEOF
9618 rm -f conftest.$ac_objext
9619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9620   (eval $ac_compile) 2>conftest.er1
9621   ac_status=$?
9622   grep -v '^ *+' conftest.er1 >conftest.err
9623   rm -f conftest.er1
9624   cat conftest.err >&5
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); } &&
9627          { ac_try='test -z "$ac_c_werror_flag"
9628                          || test ! -s conftest.err'
9629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630   (eval $ac_try) 2>&5
9631   ac_status=$?
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); }; } &&
9634          { ac_try='test -s conftest.$ac_objext'
9635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636   (eval $ac_try) 2>&5
9637   ac_status=$?
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); }; }; then
9640   ac_lo=$ac_mid; break
9641 else
9642   echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9644
9645 ac_hi=`expr '(' $ac_mid ')' - 1`
9646                        if test $ac_mid -le $ac_hi; then
9647                          ac_lo= ac_hi=
9648                          break
9649                        fi
9650                        ac_mid=`expr 2 '*' $ac_mid`
9651 fi
9652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9653   done
9654 else
9655   echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9657
9658 ac_lo= ac_hi=
9659 fi
9660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9661 fi
9662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9663 # Binary search between lo and hi bounds.
9664 while test "x$ac_lo" != "x$ac_hi"; do
9665   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9666   cat >conftest.$ac_ext <<_ACEOF
9667 /* confdefs.h.  */
9668 _ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h.  */
9672 #include <stddef.h>
9673 int
9674 main ()
9675 {
9676 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9677 test_array [0] = 0
9678
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685   (eval $ac_compile) 2>conftest.er1
9686   ac_status=$?
9687   grep -v '^ *+' conftest.er1 >conftest.err
9688   rm -f conftest.er1
9689   cat conftest.err >&5
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); } &&
9692          { ac_try='test -z "$ac_c_werror_flag"
9693                          || test ! -s conftest.err'
9694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695   (eval $ac_try) 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); }; } &&
9699          { ac_try='test -s conftest.$ac_objext'
9700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701   (eval $ac_try) 2>&5
9702   ac_status=$?
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); }; }; then
9705   ac_hi=$ac_mid
9706 else
9707   echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710 ac_lo=`expr '(' $ac_mid ')' + 1`
9711 fi
9712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9713 done
9714 case $ac_lo in
9715 ?*) res_hi=$ac_lo;;
9716 '') result=? ;;
9717 esac
9718 else
9719   if test "$cross_compiling" = yes; then
9720   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9721 See \`config.log' for more details." >&5
9722 echo "$as_me: error: cannot run test program while cross compiling
9723 See \`config.log' for more details." >&2;}
9724    { (exit 1); exit 1; }; }
9725 else
9726   cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h.  */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h.  */
9732 #include <stddef.h>
9733 long longval () { return ~(size_t)0 / 10; }
9734 unsigned long ulongval () { return ~(size_t)0 / 10; }
9735 #include <stdio.h>
9736 #include <stdlib.h>
9737 int
9738 main ()
9739 {
9740
9741   FILE *f = fopen ("conftest.val", "w");
9742   if (! f)
9743     exit (1);
9744   if ((~(size_t)0 / 10) < 0)
9745     {
9746       long i = longval ();
9747       if (i != (~(size_t)0 / 10))
9748         exit (1);
9749       fprintf (f, "%ld\n", i);
9750     }
9751   else
9752     {
9753       unsigned long i = ulongval ();
9754       if (i != (~(size_t)0 / 10))
9755         exit (1);
9756       fprintf (f, "%lu\n", i);
9757     }
9758   exit (ferror (f) || fclose (f) != 0);
9759
9760   ;
9761   return 0;
9762 }
9763 _ACEOF
9764 rm -f conftest$ac_exeext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766   (eval $ac_link) 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771   (eval $ac_try) 2>&5
9772   ac_status=$?
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); }; }; then
9775   res_hi=`cat conftest.val`
9776 else
9777   echo "$as_me: program exited with status $ac_status" >&5
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9780
9781 ( exit $ac_status )
9782 result=?
9783 fi
9784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9785 fi
9786 fi
9787 rm -f conftest.val
9788     if test "$cross_compiling" = yes; then
9789   # Depending upon the size, compute the lo and hi bounds.
9790 cat >conftest.$ac_ext <<_ACEOF
9791 /* confdefs.h.  */
9792 _ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h.  */
9796 #include <stddef.h>
9797 int
9798 main ()
9799 {
9800 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9801 test_array [0] = 0
9802
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809   (eval $ac_compile) 2>conftest.er1
9810   ac_status=$?
9811   grep -v '^ *+' conftest.er1 >conftest.err
9812   rm -f conftest.er1
9813   cat conftest.err >&5
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); } &&
9816          { ac_try='test -z "$ac_c_werror_flag"
9817                          || test ! -s conftest.err'
9818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819   (eval $ac_try) 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); }; } &&
9823          { ac_try='test -s conftest.$ac_objext'
9824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825   (eval $ac_try) 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); }; }; then
9829   ac_lo=0 ac_mid=0
9830   while :; do
9831     cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h.  */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h.  */
9837 #include <stddef.h>
9838 int
9839 main ()
9840 {
9841 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9842 test_array [0] = 0
9843
9844   ;
9845   return 0;
9846 }
9847 _ACEOF
9848 rm -f conftest.$ac_objext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9850   (eval $ac_compile) 2>conftest.er1
9851   ac_status=$?
9852   grep -v '^ *+' conftest.er1 >conftest.err
9853   rm -f conftest.er1
9854   cat conftest.err >&5
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); } &&
9857          { ac_try='test -z "$ac_c_werror_flag"
9858                          || test ! -s conftest.err'
9859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860   (eval $ac_try) 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; } &&
9864          { ac_try='test -s conftest.$ac_objext'
9865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866   (eval $ac_try) 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; }; then
9870   ac_hi=$ac_mid; break
9871 else
9872   echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875 ac_lo=`expr $ac_mid + 1`
9876                     if test $ac_lo -le $ac_mid; then
9877                       ac_lo= ac_hi=
9878                       break
9879                     fi
9880                     ac_mid=`expr 2 '*' $ac_mid + 1`
9881 fi
9882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9883   done
9884 else
9885   echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9887
9888 cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h.  */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h.  */
9894 #include <stddef.h>
9895 int
9896 main ()
9897 {
9898 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9899 test_array [0] = 0
9900
9901   ;
9902   return 0;
9903 }
9904 _ACEOF
9905 rm -f conftest.$ac_objext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9907   (eval $ac_compile) 2>conftest.er1
9908   ac_status=$?
9909   grep -v '^ *+' conftest.er1 >conftest.err
9910   rm -f conftest.er1
9911   cat conftest.err >&5
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } &&
9914          { ac_try='test -z "$ac_c_werror_flag"
9915                          || test ! -s conftest.err'
9916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917   (eval $ac_try) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; } &&
9921          { ac_try='test -s conftest.$ac_objext'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   ac_hi=-1 ac_mid=-1
9928   while :; do
9929     cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h.  */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h.  */
9935 #include <stddef.h>
9936 int
9937 main ()
9938 {
9939 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9940 test_array [0] = 0
9941
9942   ;
9943   return 0;
9944 }
9945 _ACEOF
9946 rm -f conftest.$ac_objext
9947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9948   (eval $ac_compile) 2>conftest.er1
9949   ac_status=$?
9950   grep -v '^ *+' conftest.er1 >conftest.err
9951   rm -f conftest.er1
9952   cat conftest.err >&5
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); } &&
9955          { ac_try='test -z "$ac_c_werror_flag"
9956                          || test ! -s conftest.err'
9957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958   (eval $ac_try) 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); }; } &&
9962          { ac_try='test -s conftest.$ac_objext'
9963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964   (eval $ac_try) 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); }; }; then
9968   ac_lo=$ac_mid; break
9969 else
9970   echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9972
9973 ac_hi=`expr '(' $ac_mid ')' - 1`
9974                        if test $ac_mid -le $ac_hi; then
9975                          ac_lo= ac_hi=
9976                          break
9977                        fi
9978                        ac_mid=`expr 2 '*' $ac_mid`
9979 fi
9980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9981   done
9982 else
9983   echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9985
9986 ac_lo= ac_hi=
9987 fi
9988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9989 fi
9990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9991 # Binary search between lo and hi bounds.
9992 while test "x$ac_lo" != "x$ac_hi"; do
9993   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9994   cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h.  */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h.  */
10000 #include <stddef.h>
10001 int
10002 main ()
10003 {
10004 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10005 test_array [0] = 0
10006
10007   ;
10008   return 0;
10009 }
10010 _ACEOF
10011 rm -f conftest.$ac_objext
10012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10013   (eval $ac_compile) 2>conftest.er1
10014   ac_status=$?
10015   grep -v '^ *+' conftest.er1 >conftest.err
10016   rm -f conftest.er1
10017   cat conftest.err >&5
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); } &&
10020          { ac_try='test -z "$ac_c_werror_flag"
10021                          || test ! -s conftest.err'
10022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023   (eval $ac_try) 2>&5
10024   ac_status=$?
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); }; } &&
10027          { ac_try='test -s conftest.$ac_objext'
10028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029   (eval $ac_try) 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; }; then
10033   ac_hi=$ac_mid
10034 else
10035   echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10037
10038 ac_lo=`expr '(' $ac_mid ')' + 1`
10039 fi
10040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10041 done
10042 case $ac_lo in
10043 ?*) res_lo=$ac_lo;;
10044 '') result=? ;;
10045 esac
10046 else
10047   if test "$cross_compiling" = yes; then
10048   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10049 See \`config.log' for more details." >&5
10050 echo "$as_me: error: cannot run test program while cross compiling
10051 See \`config.log' for more details." >&2;}
10052    { (exit 1); exit 1; }; }
10053 else
10054   cat >conftest.$ac_ext <<_ACEOF
10055 /* confdefs.h.  */
10056 _ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h.  */
10060 #include <stddef.h>
10061 long longval () { return ~(size_t)0 % 10; }
10062 unsigned long ulongval () { return ~(size_t)0 % 10; }
10063 #include <stdio.h>
10064 #include <stdlib.h>
10065 int
10066 main ()
10067 {
10068
10069   FILE *f = fopen ("conftest.val", "w");
10070   if (! f)
10071     exit (1);
10072   if ((~(size_t)0 % 10) < 0)
10073     {
10074       long i = longval ();
10075       if (i != (~(size_t)0 % 10))
10076         exit (1);
10077       fprintf (f, "%ld\n", i);
10078     }
10079   else
10080     {
10081       unsigned long i = ulongval ();
10082       if (i != (~(size_t)0 % 10))
10083         exit (1);
10084       fprintf (f, "%lu\n", i);
10085     }
10086   exit (ferror (f) || fclose (f) != 0);
10087
10088   ;
10089   return 0;
10090 }
10091 _ACEOF
10092 rm -f conftest$ac_exeext
10093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10094   (eval $ac_link) 2>&5
10095   ac_status=$?
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099   (eval $ac_try) 2>&5
10100   ac_status=$?
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); }; }; then
10103   res_lo=`cat conftest.val`
10104 else
10105   echo "$as_me: program exited with status $ac_status" >&5
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10108
10109 ( exit $ac_status )
10110 result=?
10111 fi
10112 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10113 fi
10114 fi
10115 rm -f conftest.val
10116     if test "$cross_compiling" = yes; then
10117   # Depending upon the size, compute the lo and hi bounds.
10118 cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h.  */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h.  */
10124 #include <stddef.h>
10125 int
10126 main ()
10127 {
10128 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10129 test_array [0] = 0
10130
10131   ;
10132   return 0;
10133 }
10134 _ACEOF
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137   (eval $ac_compile) 2>conftest.er1
10138   ac_status=$?
10139   grep -v '^ *+' conftest.er1 >conftest.err
10140   rm -f conftest.er1
10141   cat conftest.err >&5
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); } &&
10144          { ac_try='test -z "$ac_c_werror_flag"
10145                          || test ! -s conftest.err'
10146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147   (eval $ac_try) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; } &&
10151          { ac_try='test -s conftest.$ac_objext'
10152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153   (eval $ac_try) 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; }; then
10157   ac_lo=0 ac_mid=0
10158   while :; do
10159     cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h.  */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h.  */
10165 #include <stddef.h>
10166 int
10167 main ()
10168 {
10169 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10170 test_array [0] = 0
10171
10172   ;
10173   return 0;
10174 }
10175 _ACEOF
10176 rm -f conftest.$ac_objext
10177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10178   (eval $ac_compile) 2>conftest.er1
10179   ac_status=$?
10180   grep -v '^ *+' conftest.er1 >conftest.err
10181   rm -f conftest.er1
10182   cat conftest.err >&5
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } &&
10185          { ac_try='test -z "$ac_c_werror_flag"
10186                          || test ! -s conftest.err'
10187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188   (eval $ac_try) 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); }; } &&
10192          { ac_try='test -s conftest.$ac_objext'
10193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194   (eval $ac_try) 2>&5
10195   ac_status=$?
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); }; }; then
10198   ac_hi=$ac_mid; break
10199 else
10200   echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10202
10203 ac_lo=`expr $ac_mid + 1`
10204                     if test $ac_lo -le $ac_mid; then
10205                       ac_lo= ac_hi=
10206                       break
10207                     fi
10208                     ac_mid=`expr 2 '*' $ac_mid + 1`
10209 fi
10210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10211   done
10212 else
10213   echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10215
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h.  */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h.  */
10222 #include <stddef.h>
10223 int
10224 main ()
10225 {
10226 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10227 test_array [0] = 0
10228
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235   (eval $ac_compile) 2>conftest.er1
10236   ac_status=$?
10237   grep -v '^ *+' conftest.er1 >conftest.err
10238   rm -f conftest.er1
10239   cat conftest.err >&5
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); } &&
10242          { ac_try='test -z "$ac_c_werror_flag"
10243                          || test ! -s conftest.err'
10244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245   (eval $ac_try) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); }; } &&
10249          { ac_try='test -s conftest.$ac_objext'
10250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251   (eval $ac_try) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); }; }; then
10255   ac_hi=-1 ac_mid=-1
10256   while :; do
10257     cat >conftest.$ac_ext <<_ACEOF
10258 /* confdefs.h.  */
10259 _ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h.  */
10263 #include <stddef.h>
10264 int
10265 main ()
10266 {
10267 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10268 test_array [0] = 0
10269
10270   ;
10271   return 0;
10272 }
10273 _ACEOF
10274 rm -f conftest.$ac_objext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276   (eval $ac_compile) 2>conftest.er1
10277   ac_status=$?
10278   grep -v '^ *+' conftest.er1 >conftest.err
10279   rm -f conftest.er1
10280   cat conftest.err >&5
10281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); } &&
10283          { ac_try='test -z "$ac_c_werror_flag"
10284                          || test ! -s conftest.err'
10285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286   (eval $ac_try) 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); }; } &&
10290          { ac_try='test -s conftest.$ac_objext'
10291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292   (eval $ac_try) 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); }; }; then
10296   ac_lo=$ac_mid; break
10297 else
10298   echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10300
10301 ac_hi=`expr '(' $ac_mid ')' - 1`
10302                        if test $ac_mid -le $ac_hi; then
10303                          ac_lo= ac_hi=
10304                          break
10305                        fi
10306                        ac_mid=`expr 2 '*' $ac_mid`
10307 fi
10308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10309   done
10310 else
10311   echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10313
10314 ac_lo= ac_hi=
10315 fi
10316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10317 fi
10318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10319 # Binary search between lo and hi bounds.
10320 while test "x$ac_lo" != "x$ac_hi"; do
10321   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10322   cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h.  */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h.  */
10328 #include <stddef.h>
10329 int
10330 main ()
10331 {
10332 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10333 test_array [0] = 0
10334
10335   ;
10336   return 0;
10337 }
10338 _ACEOF
10339 rm -f conftest.$ac_objext
10340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10341   (eval $ac_compile) 2>conftest.er1
10342   ac_status=$?
10343   grep -v '^ *+' conftest.er1 >conftest.err
10344   rm -f conftest.er1
10345   cat conftest.err >&5
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); } &&
10348          { ac_try='test -z "$ac_c_werror_flag"
10349                          || test ! -s conftest.err'
10350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351   (eval $ac_try) 2>&5
10352   ac_status=$?
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); }; } &&
10355          { ac_try='test -s conftest.$ac_objext'
10356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357   (eval $ac_try) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); }; }; then
10361   ac_hi=$ac_mid
10362 else
10363   echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10365
10366 ac_lo=`expr '(' $ac_mid ')' + 1`
10367 fi
10368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10369 done
10370 case $ac_lo in
10371 ?*) fits_in_uint=$ac_lo;;
10372 '') result=? ;;
10373 esac
10374 else
10375   if test "$cross_compiling" = yes; then
10376   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10377 See \`config.log' for more details." >&5
10378 echo "$as_me: error: cannot run test program while cross compiling
10379 See \`config.log' for more details." >&2;}
10380    { (exit 1); exit 1; }; }
10381 else
10382   cat >conftest.$ac_ext <<_ACEOF
10383 /* confdefs.h.  */
10384 _ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h.  */
10388 #include <stddef.h>
10389 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10390 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10391 #include <stdio.h>
10392 #include <stdlib.h>
10393 int
10394 main ()
10395 {
10396
10397   FILE *f = fopen ("conftest.val", "w");
10398   if (! f)
10399     exit (1);
10400   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10401     {
10402       long i = longval ();
10403       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10404         exit (1);
10405       fprintf (f, "%ld\n", i);
10406     }
10407   else
10408     {
10409       unsigned long i = ulongval ();
10410       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10411         exit (1);
10412       fprintf (f, "%lu\n", i);
10413     }
10414   exit (ferror (f) || fclose (f) != 0);
10415
10416   ;
10417   return 0;
10418 }
10419 _ACEOF
10420 rm -f conftest$ac_exeext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10422   (eval $ac_link) 2>&5
10423   ac_status=$?
10424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427   (eval $ac_try) 2>&5
10428   ac_status=$?
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); }; }; then
10431   fits_in_uint=`cat conftest.val`
10432 else
10433   echo "$as_me: program exited with status $ac_status" >&5
10434 echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10436
10437 ( exit $ac_status )
10438 result=?
10439 fi
10440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10441 fi
10442 fi
10443 rm -f conftest.val
10444     if test "$fits_in_uint" = 1; then
10445                   cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h.  */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h.  */
10451 #include <stddef.h>
10452         extern size_t foo;
10453         extern unsigned long foo;
10454
10455 int
10456 main ()
10457 {
10458
10459   ;
10460   return 0;
10461 }
10462 _ACEOF
10463 rm -f conftest.$ac_objext
10464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10465   (eval $ac_compile) 2>conftest.er1
10466   ac_status=$?
10467   grep -v '^ *+' conftest.er1 >conftest.err
10468   rm -f conftest.er1
10469   cat conftest.err >&5
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); } &&
10472          { ac_try='test -z "$ac_c_werror_flag"
10473                          || test ! -s conftest.err'
10474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475   (eval $ac_try) 2>&5
10476   ac_status=$?
10477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   (exit $ac_status); }; } &&
10479          { ac_try='test -s conftest.$ac_objext'
10480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481   (eval $ac_try) 2>&5
10482   ac_status=$?
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); }; }; then
10485   fits_in_uint=0
10486 else
10487   echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10489
10490 fi
10491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10492     fi
10493     if test -z "$result"; then
10494       if test "$fits_in_uint" = 1; then
10495         result="$res_hi$res_lo"U
10496       else
10497         result="$res_hi$res_lo"UL
10498       fi
10499     else
10500             result='~(size_t)0'
10501     fi
10502   fi
10503   echo "$as_me:$LINENO: result: $result" >&5
10504 echo "${ECHO_T}$result" >&6
10505   if test "$result" != yes; then
10506
10507 cat >>confdefs.h <<_ACEOF
10508 #define SIZE_MAX $result
10509 _ACEOF
10510
10511   fi
10512
10513
10514
10515
10516
10517 for ac_header in stdint.h
10518 do
10519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10521   echo "$as_me:$LINENO: checking for $ac_header" >&5
10522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10524   echo $ECHO_N "(cached) $ECHO_C" >&6
10525 fi
10526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10528 else
10529   # Is the header compilable?
10530 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10532 cat >conftest.$ac_ext <<_ACEOF
10533 /* confdefs.h.  */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h.  */
10538 $ac_includes_default
10539 #include <$ac_header>
10540 _ACEOF
10541 rm -f conftest.$ac_objext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543   (eval $ac_compile) 2>conftest.er1
10544   ac_status=$?
10545   grep -v '^ *+' conftest.er1 >conftest.err
10546   rm -f conftest.er1
10547   cat conftest.err >&5
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); } &&
10550          { ac_try='test -z "$ac_c_werror_flag"
10551                          || test ! -s conftest.err'
10552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553   (eval $ac_try) 2>&5
10554   ac_status=$?
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); }; } &&
10557          { ac_try='test -s conftest.$ac_objext'
10558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559   (eval $ac_try) 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); }; }; then
10563   ac_header_compiler=yes
10564 else
10565   echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10567
10568 ac_header_compiler=no
10569 fi
10570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10572 echo "${ECHO_T}$ac_header_compiler" >&6
10573
10574 # Is the header present?
10575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10577 cat >conftest.$ac_ext <<_ACEOF
10578 /* confdefs.h.  */
10579 _ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h.  */
10583 #include <$ac_header>
10584 _ACEOF
10585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10586   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10587   ac_status=$?
10588   grep -v '^ *+' conftest.er1 >conftest.err
10589   rm -f conftest.er1
10590   cat conftest.err >&5
10591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592   (exit $ac_status); } >/dev/null; then
10593   if test -s conftest.err; then
10594     ac_cpp_err=$ac_c_preproc_warn_flag
10595     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10596   else
10597     ac_cpp_err=
10598   fi
10599 else
10600   ac_cpp_err=yes
10601 fi
10602 if test -z "$ac_cpp_err"; then
10603   ac_header_preproc=yes
10604 else
10605   echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10607
10608   ac_header_preproc=no
10609 fi
10610 rm -f conftest.err conftest.$ac_ext
10611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10612 echo "${ECHO_T}$ac_header_preproc" >&6
10613
10614 # So?  What about this header?
10615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10616   yes:no: )
10617     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10619     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10621     ac_header_preproc=yes
10622     ;;
10623   no:yes:* )
10624     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10626     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10627 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10628     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10630     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10631 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10634     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10636     (
10637       cat <<\_ASBOX
10638 ## ------------------------------------------ ##
10639 ## Report this to the AC_PACKAGE_NAME lists.  ##
10640 ## ------------------------------------------ ##
10641 _ASBOX
10642     ) |
10643       sed "s/^/$as_me: WARNING:     /" >&2
10644     ;;
10645 esac
10646 echo "$as_me:$LINENO: checking for $ac_header" >&5
10647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10649   echo $ECHO_N "(cached) $ECHO_C" >&6
10650 else
10651   eval "$as_ac_Header=\$ac_header_preproc"
10652 fi
10653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10655
10656 fi
10657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10658   cat >>confdefs.h <<_ACEOF
10659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10660 _ACEOF
10661
10662 fi
10663
10664 done
10665
10666
10667
10668
10669
10670
10671
10672
10673   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10674 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10675 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10676   echo $ECHO_N "(cached) $ECHO_C" >&6
10677 else
10678   cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h.  */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h.  */
10684 $ac_includes_default
10685 int
10686 main ()
10687 {
10688 if ((ptrdiff_t *) 0)
10689   return 0;
10690 if (sizeof (ptrdiff_t))
10691   return 0;
10692   ;
10693   return 0;
10694 }
10695 _ACEOF
10696 rm -f conftest.$ac_objext
10697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10698   (eval $ac_compile) 2>conftest.er1
10699   ac_status=$?
10700   grep -v '^ *+' conftest.er1 >conftest.err
10701   rm -f conftest.er1
10702   cat conftest.err >&5
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); } &&
10705          { ac_try='test -z "$ac_c_werror_flag"
10706                          || test ! -s conftest.err'
10707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708   (eval $ac_try) 2>&5
10709   ac_status=$?
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); }; } &&
10712          { ac_try='test -s conftest.$ac_objext'
10713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714   (eval $ac_try) 2>&5
10715   ac_status=$?
10716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); }; }; then
10718   ac_cv_type_ptrdiff_t=yes
10719 else
10720   echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10722
10723 ac_cv_type_ptrdiff_t=no
10724 fi
10725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10726 fi
10727 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10728 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10729 if test $ac_cv_type_ptrdiff_t = yes; then
10730   :
10731 else
10732
10733 cat >>confdefs.h <<\_ACEOF
10734 #define ptrdiff_t long
10735 _ACEOF
10736
10737
10738 fi
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10751 stdlib.h string.h unistd.h sys/param.h
10752 do
10753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10755   echo "$as_me:$LINENO: checking for $ac_header" >&5
10756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10758   echo $ECHO_N "(cached) $ECHO_C" >&6
10759 fi
10760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10762 else
10763   # Is the header compilable?
10764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10766 cat >conftest.$ac_ext <<_ACEOF
10767 /* confdefs.h.  */
10768 _ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h.  */
10772 $ac_includes_default
10773 #include <$ac_header>
10774 _ACEOF
10775 rm -f conftest.$ac_objext
10776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10777   (eval $ac_compile) 2>conftest.er1
10778   ac_status=$?
10779   grep -v '^ *+' conftest.er1 >conftest.err
10780   rm -f conftest.er1
10781   cat conftest.err >&5
10782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783   (exit $ac_status); } &&
10784          { ac_try='test -z "$ac_c_werror_flag"
10785                          || test ! -s conftest.err'
10786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787   (eval $ac_try) 2>&5
10788   ac_status=$?
10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); }; } &&
10791          { ac_try='test -s conftest.$ac_objext'
10792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793   (eval $ac_try) 2>&5
10794   ac_status=$?
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); }; }; then
10797   ac_header_compiler=yes
10798 else
10799   echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10801
10802 ac_header_compiler=no
10803 fi
10804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10806 echo "${ECHO_T}$ac_header_compiler" >&6
10807
10808 # Is the header present?
10809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10811 cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h.  */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h.  */
10817 #include <$ac_header>
10818 _ACEOF
10819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10820   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10821   ac_status=$?
10822   grep -v '^ *+' conftest.er1 >conftest.err
10823   rm -f conftest.er1
10824   cat conftest.err >&5
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); } >/dev/null; then
10827   if test -s conftest.err; then
10828     ac_cpp_err=$ac_c_preproc_warn_flag
10829     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10830   else
10831     ac_cpp_err=
10832   fi
10833 else
10834   ac_cpp_err=yes
10835 fi
10836 if test -z "$ac_cpp_err"; then
10837   ac_header_preproc=yes
10838 else
10839   echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10841
10842   ac_header_preproc=no
10843 fi
10844 rm -f conftest.err conftest.$ac_ext
10845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10846 echo "${ECHO_T}$ac_header_preproc" >&6
10847
10848 # So?  What about this header?
10849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10850   yes:no: )
10851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10855     ac_header_preproc=yes
10856     ;;
10857   no:yes:* )
10858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10870     (
10871       cat <<\_ASBOX
10872 ## ------------------------------------------ ##
10873 ## Report this to the AC_PACKAGE_NAME lists.  ##
10874 ## ------------------------------------------ ##
10875 _ASBOX
10876     ) |
10877       sed "s/^/$as_me: WARNING:     /" >&2
10878     ;;
10879 esac
10880 echo "$as_me:$LINENO: checking for $ac_header" >&5
10881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10883   echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885   eval "$as_ac_Header=\$ac_header_preproc"
10886 fi
10887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10889
10890 fi
10891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10892   cat >>confdefs.h <<_ACEOF
10893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10894 _ACEOF
10895
10896 fi
10897
10898 done
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10924 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10925 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10926 __fsetlocking
10927 do
10928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10929 echo "$as_me:$LINENO: checking for $ac_func" >&5
10930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10931 if eval "test \"\${$as_ac_var+set}\" = set"; then
10932   echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934   cat >conftest.$ac_ext <<_ACEOF
10935 /* confdefs.h.  */
10936 _ACEOF
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h.  */
10940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10942 #define $ac_func innocuous_$ac_func
10943
10944 /* System header to define __stub macros and hopefully few prototypes,
10945     which can conflict with char $ac_func (); below.
10946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10947     <limits.h> exists even on freestanding compilers.  */
10948
10949 #ifdef __STDC__
10950 # include <limits.h>
10951 #else
10952 # include <assert.h>
10953 #endif
10954
10955 #undef $ac_func
10956
10957 /* Override any gcc2 internal prototype to avoid an error.  */
10958 #ifdef __cplusplus
10959 extern "C"
10960 {
10961 #endif
10962 /* We use char because int might match the return type of a gcc2
10963    builtin and then its argument prototype would still apply.  */
10964 char $ac_func ();
10965 /* The GNU C library defines this for functions which it implements
10966     to always fail with ENOSYS.  Some functions are actually named
10967     something starting with __ and the normal name is an alias.  */
10968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10969 choke me
10970 #else
10971 char (*f) () = $ac_func;
10972 #endif
10973 #ifdef __cplusplus
10974 }
10975 #endif
10976
10977 int
10978 main ()
10979 {
10980 return f != $ac_func;
10981   ;
10982   return 0;
10983 }
10984 _ACEOF
10985 rm -f conftest.$ac_objext conftest$ac_exeext
10986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10987   (eval $ac_link) 2>conftest.er1
10988   ac_status=$?
10989   grep -v '^ *+' conftest.er1 >conftest.err
10990   rm -f conftest.er1
10991   cat conftest.err >&5
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); } &&
10994          { ac_try='test -z "$ac_c_werror_flag"
10995                          || test ! -s conftest.err'
10996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997   (eval $ac_try) 2>&5
10998   ac_status=$?
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); }; } &&
11001          { ac_try='test -s conftest$ac_exeext'
11002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003   (eval $ac_try) 2>&5
11004   ac_status=$?
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); }; }; then
11007   eval "$as_ac_var=yes"
11008 else
11009   echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11011
11012 eval "$as_ac_var=no"
11013 fi
11014 rm -f conftest.err conftest.$ac_objext \
11015       conftest$ac_exeext conftest.$ac_ext
11016 fi
11017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11019 if test `eval echo '${'$as_ac_var'}'` = yes; then
11020   cat >>confdefs.h <<_ACEOF
11021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11022 _ACEOF
11023
11024 fi
11025 done
11026
11027
11028
11029   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11030 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11031 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11032   echo $ECHO_N "(cached) $ECHO_C" >&6
11033 else
11034   cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h.  */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h.  */
11040 #include <stdio.h>
11041 int
11042 main ()
11043 {
11044
11045 #ifndef _snprintf
11046   char *p = (char *) _snprintf;
11047 #endif
11048
11049   ;
11050   return 0;
11051 }
11052 _ACEOF
11053 rm -f conftest.$ac_objext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11055   (eval $ac_compile) 2>conftest.er1
11056   ac_status=$?
11057   grep -v '^ *+' conftest.er1 >conftest.err
11058   rm -f conftest.er1
11059   cat conftest.err >&5
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); } &&
11062          { ac_try='test -z "$ac_c_werror_flag"
11063                          || test ! -s conftest.err'
11064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065   (eval $ac_try) 2>&5
11066   ac_status=$?
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); }; } &&
11069          { ac_try='test -s conftest.$ac_objext'
11070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071   (eval $ac_try) 2>&5
11072   ac_status=$?
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); }; }; then
11075   ac_cv_have_decl__snprintf=yes
11076 else
11077   echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11079
11080 ac_cv_have_decl__snprintf=no
11081 fi
11082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11083 fi
11084 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11085 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11086   if test $ac_cv_have_decl__snprintf = yes; then
11087     gt_value=1
11088   else
11089     gt_value=0
11090   fi
11091
11092 cat >>confdefs.h <<_ACEOF
11093 #define HAVE_DECL__SNPRINTF $gt_value
11094 _ACEOF
11095
11096
11097
11098   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11099 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11100 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11101   echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103   cat >conftest.$ac_ext <<_ACEOF
11104 /* confdefs.h.  */
11105 _ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h.  */
11109 #include <stdio.h>
11110 int
11111 main ()
11112 {
11113
11114 #ifndef _snwprintf
11115   char *p = (char *) _snwprintf;
11116 #endif
11117
11118   ;
11119   return 0;
11120 }
11121 _ACEOF
11122 rm -f conftest.$ac_objext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11124   (eval $ac_compile) 2>conftest.er1
11125   ac_status=$?
11126   grep -v '^ *+' conftest.er1 >conftest.err
11127   rm -f conftest.er1
11128   cat conftest.err >&5
11129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130   (exit $ac_status); } &&
11131          { ac_try='test -z "$ac_c_werror_flag"
11132                          || test ! -s conftest.err'
11133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134   (eval $ac_try) 2>&5
11135   ac_status=$?
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); }; } &&
11138          { ac_try='test -s conftest.$ac_objext'
11139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140   (eval $ac_try) 2>&5
11141   ac_status=$?
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); }; }; then
11144   ac_cv_have_decl__snwprintf=yes
11145 else
11146   echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11148
11149 ac_cv_have_decl__snwprintf=no
11150 fi
11151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11152 fi
11153 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11154 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11155   if test $ac_cv_have_decl__snwprintf = yes; then
11156     gt_value=1
11157   else
11158     gt_value=0
11159   fi
11160
11161 cat >>confdefs.h <<_ACEOF
11162 #define HAVE_DECL__SNWPRINTF $gt_value
11163 _ACEOF
11164
11165
11166
11167
11168   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11169 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11170 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11171   echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173   cat >conftest.$ac_ext <<_ACEOF
11174 /* confdefs.h.  */
11175 _ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h.  */
11179 #include <stdio.h>
11180 int
11181 main ()
11182 {
11183
11184 #ifndef feof_unlocked
11185   char *p = (char *) feof_unlocked;
11186 #endif
11187
11188   ;
11189   return 0;
11190 }
11191 _ACEOF
11192 rm -f conftest.$ac_objext
11193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11194   (eval $ac_compile) 2>conftest.er1
11195   ac_status=$?
11196   grep -v '^ *+' conftest.er1 >conftest.err
11197   rm -f conftest.er1
11198   cat conftest.err >&5
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); } &&
11201          { ac_try='test -z "$ac_c_werror_flag"
11202                          || test ! -s conftest.err'
11203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204   (eval $ac_try) 2>&5
11205   ac_status=$?
11206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); }; } &&
11208          { ac_try='test -s conftest.$ac_objext'
11209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210   (eval $ac_try) 2>&5
11211   ac_status=$?
11212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213   (exit $ac_status); }; }; then
11214   ac_cv_have_decl_feof_unlocked=yes
11215 else
11216   echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11218
11219 ac_cv_have_decl_feof_unlocked=no
11220 fi
11221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11222 fi
11223 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11224 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11225   if test $ac_cv_have_decl_feof_unlocked = yes; then
11226     gt_value=1
11227   else
11228     gt_value=0
11229   fi
11230
11231 cat >>confdefs.h <<_ACEOF
11232 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11233 _ACEOF
11234
11235
11236
11237   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11238 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11239 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11240   echo $ECHO_N "(cached) $ECHO_C" >&6
11241 else
11242   cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h.  */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h.  */
11248 #include <stdio.h>
11249 int
11250 main ()
11251 {
11252
11253 #ifndef fgets_unlocked
11254   char *p = (char *) fgets_unlocked;
11255 #endif
11256
11257   ;
11258   return 0;
11259 }
11260 _ACEOF
11261 rm -f conftest.$ac_objext
11262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11263   (eval $ac_compile) 2>conftest.er1
11264   ac_status=$?
11265   grep -v '^ *+' conftest.er1 >conftest.err
11266   rm -f conftest.er1
11267   cat conftest.err >&5
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); } &&
11270          { ac_try='test -z "$ac_c_werror_flag"
11271                          || test ! -s conftest.err'
11272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273   (eval $ac_try) 2>&5
11274   ac_status=$?
11275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276   (exit $ac_status); }; } &&
11277          { ac_try='test -s conftest.$ac_objext'
11278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279   (eval $ac_try) 2>&5
11280   ac_status=$?
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); }; }; then
11283   ac_cv_have_decl_fgets_unlocked=yes
11284 else
11285   echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11287
11288 ac_cv_have_decl_fgets_unlocked=no
11289 fi
11290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11291 fi
11292 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11293 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11294   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11295     gt_value=1
11296   else
11297     gt_value=0
11298   fi
11299
11300 cat >>confdefs.h <<_ACEOF
11301 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11302 _ACEOF
11303
11304
11305
11306   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11307 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11308 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11309   echo $ECHO_N "(cached) $ECHO_C" >&6
11310 else
11311   cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h.  */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h.  */
11317 #include <stdio.h>
11318 int
11319 main ()
11320 {
11321
11322 #ifndef getc_unlocked
11323   char *p = (char *) getc_unlocked;
11324 #endif
11325
11326   ;
11327   return 0;
11328 }
11329 _ACEOF
11330 rm -f conftest.$ac_objext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11332   (eval $ac_compile) 2>conftest.er1
11333   ac_status=$?
11334   grep -v '^ *+' conftest.er1 >conftest.err
11335   rm -f conftest.er1
11336   cat conftest.err >&5
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); } &&
11339          { ac_try='test -z "$ac_c_werror_flag"
11340                          || test ! -s conftest.err'
11341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342   (eval $ac_try) 2>&5
11343   ac_status=$?
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); }; } &&
11346          { ac_try='test -s conftest.$ac_objext'
11347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348   (eval $ac_try) 2>&5
11349   ac_status=$?
11350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); }; }; then
11352   ac_cv_have_decl_getc_unlocked=yes
11353 else
11354   echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11356
11357 ac_cv_have_decl_getc_unlocked=no
11358 fi
11359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11360 fi
11361 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11362 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11363   if test $ac_cv_have_decl_getc_unlocked = yes; then
11364     gt_value=1
11365   else
11366     gt_value=0
11367   fi
11368
11369 cat >>confdefs.h <<_ACEOF
11370 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11371 _ACEOF
11372
11373
11374
11375   case $gt_cv_func_printf_posix in
11376     *yes) HAVE_POSIX_PRINTF=1 ;;
11377     *) HAVE_POSIX_PRINTF=0 ;;
11378   esac
11379
11380   if test "$ac_cv_func_asprintf" = yes; then
11381     HAVE_ASPRINTF=1
11382   else
11383     HAVE_ASPRINTF=0
11384   fi
11385
11386   if test "$ac_cv_func_snprintf" = yes; then
11387     HAVE_SNPRINTF=1
11388   else
11389     HAVE_SNPRINTF=0
11390   fi
11391
11392   if test "$ac_cv_func_wprintf" = yes; then
11393     HAVE_WPRINTF=1
11394   else
11395     HAVE_WPRINTF=0
11396   fi
11397
11398
11399
11400
11401
11402
11403
11404           am_save_CPPFLAGS="$CPPFLAGS"
11405
11406   for element in $INCICONV; do
11407     haveit=
11408     for x in $CPPFLAGS; do
11409
11410   acl_save_prefix="$prefix"
11411   prefix="$acl_final_prefix"
11412   acl_save_exec_prefix="$exec_prefix"
11413   exec_prefix="$acl_final_exec_prefix"
11414   eval x=\"$x\"
11415   exec_prefix="$acl_save_exec_prefix"
11416   prefix="$acl_save_prefix"
11417
11418       if test "X$x" = "X$element"; then
11419         haveit=yes
11420         break
11421       fi
11422     done
11423     if test -z "$haveit"; then
11424       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11425     fi
11426   done
11427
11428
11429   echo "$as_me:$LINENO: checking for iconv" >&5
11430 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11431 if test "${am_cv_func_iconv+set}" = set; then
11432   echo $ECHO_N "(cached) $ECHO_C" >&6
11433 else
11434
11435     am_cv_func_iconv="no, consider installing GNU libiconv"
11436     am_cv_lib_iconv=no
11437     cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h.  */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h.  */
11443 #include <stdlib.h>
11444 #include <iconv.h>
11445 int
11446 main ()
11447 {
11448 iconv_t cd = iconv_open("","");
11449        iconv(cd,NULL,NULL,NULL,NULL);
11450        iconv_close(cd);
11451   ;
11452   return 0;
11453 }
11454 _ACEOF
11455 rm -f conftest.$ac_objext conftest$ac_exeext
11456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11457   (eval $ac_link) 2>conftest.er1
11458   ac_status=$?
11459   grep -v '^ *+' conftest.er1 >conftest.err
11460   rm -f conftest.er1
11461   cat conftest.err >&5
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); } &&
11464          { ac_try='test -z "$ac_c_werror_flag"
11465                          || test ! -s conftest.err'
11466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467   (eval $ac_try) 2>&5
11468   ac_status=$?
11469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470   (exit $ac_status); }; } &&
11471          { ac_try='test -s conftest$ac_exeext'
11472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473   (eval $ac_try) 2>&5
11474   ac_status=$?
11475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476   (exit $ac_status); }; }; then
11477   am_cv_func_iconv=yes
11478 else
11479   echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11481
11482 fi
11483 rm -f conftest.err conftest.$ac_objext \
11484       conftest$ac_exeext conftest.$ac_ext
11485     if test "$am_cv_func_iconv" != yes; then
11486       am_save_LIBS="$LIBS"
11487       LIBS="$LIBS $LIBICONV"
11488       cat >conftest.$ac_ext <<_ACEOF
11489 /* confdefs.h.  */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h.  */
11494 #include <stdlib.h>
11495 #include <iconv.h>
11496 int
11497 main ()
11498 {
11499 iconv_t cd = iconv_open("","");
11500          iconv(cd,NULL,NULL,NULL,NULL);
11501          iconv_close(cd);
11502   ;
11503   return 0;
11504 }
11505 _ACEOF
11506 rm -f conftest.$ac_objext conftest$ac_exeext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11508   (eval $ac_link) 2>conftest.er1
11509   ac_status=$?
11510   grep -v '^ *+' conftest.er1 >conftest.err
11511   rm -f conftest.er1
11512   cat conftest.err >&5
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); } &&
11515          { ac_try='test -z "$ac_c_werror_flag"
11516                          || test ! -s conftest.err'
11517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518   (eval $ac_try) 2>&5
11519   ac_status=$?
11520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); }; } &&
11522          { ac_try='test -s conftest$ac_exeext'
11523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524   (eval $ac_try) 2>&5
11525   ac_status=$?
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); }; }; then
11528   am_cv_lib_iconv=yes
11529         am_cv_func_iconv=yes
11530 else
11531   echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11533
11534 fi
11535 rm -f conftest.err conftest.$ac_objext \
11536       conftest$ac_exeext conftest.$ac_ext
11537       LIBS="$am_save_LIBS"
11538     fi
11539
11540 fi
11541 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11542 echo "${ECHO_T}$am_cv_func_iconv" >&6
11543   if test "$am_cv_func_iconv" = yes; then
11544
11545 cat >>confdefs.h <<\_ACEOF
11546 #define HAVE_ICONV 1
11547 _ACEOF
11548
11549   fi
11550   if test "$am_cv_lib_iconv" = yes; then
11551     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11552 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11553     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11554 echo "${ECHO_T}$LIBICONV" >&6
11555   else
11556             CPPFLAGS="$am_save_CPPFLAGS"
11557     LIBICONV=
11558     LTLIBICONV=
11559   fi
11560
11561
11562
11563   if test "$am_cv_func_iconv" = yes; then
11564     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11565 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11566     if test "${am_cv_proto_iconv+set}" = set; then
11567   echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569
11570       cat >conftest.$ac_ext <<_ACEOF
11571 /* confdefs.h.  */
11572 _ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h.  */
11576
11577 #include <stdlib.h>
11578 #include <iconv.h>
11579 extern
11580 #ifdef __cplusplus
11581 "C"
11582 #endif
11583 #if defined(__STDC__) || defined(__cplusplus)
11584 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11585 #else
11586 size_t iconv();
11587 #endif
11588
11589 int
11590 main ()
11591 {
11592
11593   ;
11594   return 0;
11595 }
11596 _ACEOF
11597 rm -f conftest.$ac_objext
11598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11599   (eval $ac_compile) 2>conftest.er1
11600   ac_status=$?
11601   grep -v '^ *+' conftest.er1 >conftest.err
11602   rm -f conftest.er1
11603   cat conftest.err >&5
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); } &&
11606          { ac_try='test -z "$ac_c_werror_flag"
11607                          || test ! -s conftest.err'
11608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609   (eval $ac_try) 2>&5
11610   ac_status=$?
11611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612   (exit $ac_status); }; } &&
11613          { ac_try='test -s conftest.$ac_objext'
11614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615   (eval $ac_try) 2>&5
11616   ac_status=$?
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); }; }; then
11619   am_cv_proto_iconv_arg1=""
11620 else
11621   echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11623
11624 am_cv_proto_iconv_arg1="const"
11625 fi
11626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11627       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11628 fi
11629
11630     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11631     echo "$as_me:$LINENO: result: ${ac_t:-
11632          }$am_cv_proto_iconv" >&5
11633 echo "${ECHO_T}${ac_t:-
11634          }$am_cv_proto_iconv" >&6
11635
11636 cat >>confdefs.h <<_ACEOF
11637 #define ICONV_CONST $am_cv_proto_iconv_arg1
11638 _ACEOF
11639
11640   fi
11641
11642
11643   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11644 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11645 if test "${am_cv_langinfo_codeset+set}" = set; then
11646   echo $ECHO_N "(cached) $ECHO_C" >&6
11647 else
11648   cat >conftest.$ac_ext <<_ACEOF
11649 /* confdefs.h.  */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h.  */
11654 #include <langinfo.h>
11655 int
11656 main ()
11657 {
11658 char* cs = nl_langinfo(CODESET);
11659   ;
11660   return 0;
11661 }
11662 _ACEOF
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11665   (eval $ac_link) 2>conftest.er1
11666   ac_status=$?
11667   grep -v '^ *+' conftest.er1 >conftest.err
11668   rm -f conftest.er1
11669   cat conftest.err >&5
11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); } &&
11672          { ac_try='test -z "$ac_c_werror_flag"
11673                          || test ! -s conftest.err'
11674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675   (eval $ac_try) 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; } &&
11679          { ac_try='test -s conftest$ac_exeext'
11680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681   (eval $ac_try) 2>&5
11682   ac_status=$?
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); }; }; then
11685   am_cv_langinfo_codeset=yes
11686 else
11687   echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11689
11690 am_cv_langinfo_codeset=no
11691 fi
11692 rm -f conftest.err conftest.$ac_objext \
11693       conftest$ac_exeext conftest.$ac_ext
11694
11695 fi
11696 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11697 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11698   if test $am_cv_langinfo_codeset = yes; then
11699
11700 cat >>confdefs.h <<\_ACEOF
11701 #define HAVE_LANGINFO_CODESET 1
11702 _ACEOF
11703
11704   fi
11705
11706   if test $ac_cv_header_locale_h = yes; then
11707
11708   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11709 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11710 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11711   echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713   cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h.  */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h.  */
11719 #include <locale.h>
11720 int
11721 main ()
11722 {
11723 return LC_MESSAGES
11724   ;
11725   return 0;
11726 }
11727 _ACEOF
11728 rm -f conftest.$ac_objext conftest$ac_exeext
11729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11730   (eval $ac_link) 2>conftest.er1
11731   ac_status=$?
11732   grep -v '^ *+' conftest.er1 >conftest.err
11733   rm -f conftest.er1
11734   cat conftest.err >&5
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); } &&
11737          { ac_try='test -z "$ac_c_werror_flag"
11738                          || test ! -s conftest.err'
11739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740   (eval $ac_try) 2>&5
11741   ac_status=$?
11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); }; } &&
11744          { ac_try='test -s conftest$ac_exeext'
11745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746   (eval $ac_try) 2>&5
11747   ac_status=$?
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); }; }; then
11750   gt_cv_val_LC_MESSAGES=yes
11751 else
11752   echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11754
11755 gt_cv_val_LC_MESSAGES=no
11756 fi
11757 rm -f conftest.err conftest.$ac_objext \
11758       conftest$ac_exeext conftest.$ac_ext
11759 fi
11760 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11761 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11762   if test $gt_cv_val_LC_MESSAGES = yes; then
11763
11764 cat >>confdefs.h <<\_ACEOF
11765 #define HAVE_LC_MESSAGES 1
11766 _ACEOF
11767
11768   fi
11769
11770   fi
11771
11772   if test -n "$INTL_MACOSX_LIBS"; then
11773     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11774   fi
11775
11776                       for ac_prog in bison
11777 do
11778   # Extract the first word of "$ac_prog", so it can be a program name with args.
11779 set dummy $ac_prog; ac_word=$2
11780 echo "$as_me:$LINENO: checking for $ac_word" >&5
11781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11782 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11783   echo $ECHO_N "(cached) $ECHO_C" >&6
11784 else
11785   if test -n "$INTLBISON"; then
11786   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11787 else
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11790 do
11791   IFS=$as_save_IFS
11792   test -z "$as_dir" && as_dir=.
11793   for ac_exec_ext in '' $ac_executable_extensions; do
11794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795     ac_cv_prog_INTLBISON="$ac_prog"
11796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11797     break 2
11798   fi
11799 done
11800 done
11801
11802 fi
11803 fi
11804 INTLBISON=$ac_cv_prog_INTLBISON
11805 if test -n "$INTLBISON"; then
11806   echo "$as_me:$LINENO: result: $INTLBISON" >&5
11807 echo "${ECHO_T}$INTLBISON" >&6
11808 else
11809   echo "$as_me:$LINENO: result: no" >&5
11810 echo "${ECHO_T}no" >&6
11811 fi
11812
11813   test -n "$INTLBISON" && break
11814 done
11815
11816   if test -z "$INTLBISON"; then
11817     ac_verc_fail=yes
11818   else
11819         echo "$as_me:$LINENO: checking version of bison" >&5
11820 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11821     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11822     case $ac_prog_version in
11823       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11824       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11825          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11826       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11827     esac
11828     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11829 echo "${ECHO_T}$ac_prog_version" >&6
11830   fi
11831   if test $ac_verc_fail = yes; then
11832     INTLBISON=:
11833   fi
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11851 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11852 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11853   echo $ECHO_N "(cached) $ECHO_C" >&6
11854 else
11855   gt_save_CPPFLAGS="$CPPFLAGS"
11856      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11857      gt_save_LIBS="$LIBS"
11858      LIBS="$LIBS -framework CoreFoundation"
11859      cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h.  */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h.  */
11865 #include <CFPreferences.h>
11866 int
11867 main ()
11868 {
11869 CFPreferencesCopyAppValue(NULL, NULL)
11870   ;
11871   return 0;
11872 }
11873 _ACEOF
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11876   (eval $ac_link) 2>conftest.er1
11877   ac_status=$?
11878   grep -v '^ *+' conftest.er1 >conftest.err
11879   rm -f conftest.er1
11880   cat conftest.err >&5
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); } &&
11883          { ac_try='test -z "$ac_c_werror_flag"
11884                          || test ! -s conftest.err'
11885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886   (eval $ac_try) 2>&5
11887   ac_status=$?
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); }; } &&
11890          { ac_try='test -s conftest$ac_exeext'
11891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892   (eval $ac_try) 2>&5
11893   ac_status=$?
11894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895   (exit $ac_status); }; }; then
11896   gt_cv_func_CFPreferencesCopyAppValue=yes
11897 else
11898   echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11900
11901 gt_cv_func_CFPreferencesCopyAppValue=no
11902 fi
11903 rm -f conftest.err conftest.$ac_objext \
11904       conftest$ac_exeext conftest.$ac_ext
11905      CPPFLAGS="$gt_save_CPPFLAGS"
11906      LIBS="$gt_save_LIBS"
11907 fi
11908 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11909 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11910   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11911
11912 cat >>confdefs.h <<\_ACEOF
11913 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11914 _ACEOF
11915
11916   fi
11917     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11918 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11919 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11920   echo $ECHO_N "(cached) $ECHO_C" >&6
11921 else
11922   gt_save_CPPFLAGS="$CPPFLAGS"
11923      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11924      gt_save_LIBS="$LIBS"
11925      LIBS="$LIBS -framework CoreFoundation"
11926      cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h.  */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h.  */
11932 #include <CFLocale.h>
11933 int
11934 main ()
11935 {
11936 CFLocaleCopyCurrent();
11937   ;
11938   return 0;
11939 }
11940 _ACEOF
11941 rm -f conftest.$ac_objext conftest$ac_exeext
11942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11943   (eval $ac_link) 2>conftest.er1
11944   ac_status=$?
11945   grep -v '^ *+' conftest.er1 >conftest.err
11946   rm -f conftest.er1
11947   cat conftest.err >&5
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); } &&
11950          { ac_try='test -z "$ac_c_werror_flag"
11951                          || test ! -s conftest.err'
11952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953   (eval $ac_try) 2>&5
11954   ac_status=$?
11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); }; } &&
11957          { ac_try='test -s conftest$ac_exeext'
11958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959   (eval $ac_try) 2>&5
11960   ac_status=$?
11961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962   (exit $ac_status); }; }; then
11963   gt_cv_func_CFLocaleCopyCurrent=yes
11964 else
11965   echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11967
11968 gt_cv_func_CFLocaleCopyCurrent=no
11969 fi
11970 rm -f conftest.err conftest.$ac_objext \
11971       conftest$ac_exeext conftest.$ac_ext
11972      CPPFLAGS="$gt_save_CPPFLAGS"
11973      LIBS="$gt_save_LIBS"
11974 fi
11975 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11976 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11977   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11978
11979 cat >>confdefs.h <<\_ACEOF
11980 #define HAVE_CFLOCALECOPYCURRENT 1
11981 _ACEOF
11982
11983   fi
11984   INTL_MACOSX_LIBS=
11985   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11986     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11987   fi
11988
11989
11990
11991
11992   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11993 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11994     # Check whether --enable-nls or --disable-nls was given.
11995 if test "${enable_nls+set}" = set; then
11996   enableval="$enable_nls"
11997   USE_NLS=$enableval
11998 else
11999   USE_NLS=yes
12000 fi;
12001   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12002 echo "${ECHO_T}$USE_NLS" >&6
12003
12004
12005
12006
12007     BUILD_INCLUDED_LIBINTL=no
12008     USE_INCLUDED_LIBINTL=no
12009
12010   LIBINTL=
12011   LTLIBINTL=
12012   POSUB=
12013
12014     if test "$USE_NLS" = "yes"; then
12015     gt_use_preinstalled_gnugettext=no
12016
12017       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12018 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12019
12020 # Check whether --with-included-gettext or --without-included-gettext was given.
12021 if test "${with_included_gettext+set}" = set; then
12022   withval="$with_included_gettext"
12023   nls_cv_force_use_gnu_gettext=$withval
12024 else
12025   nls_cv_force_use_gnu_gettext=no
12026 fi;
12027       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12028 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12029
12030       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12031       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12032
12033
12034
12035
12036
12037
12038         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12039 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12040 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12041   echo $ECHO_N "(cached) $ECHO_C" >&6
12042 else
12043   cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h.  */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h.  */
12049 #include <libintl.h>
12050 extern int _nl_msg_cat_cntr;
12051 extern int *_nl_domain_bindings;
12052 int
12053 main ()
12054 {
12055 bindtextdomain ("", "");
12056 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12057   ;
12058   return 0;
12059 }
12060 _ACEOF
12061 rm -f conftest.$ac_objext conftest$ac_exeext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12063   (eval $ac_link) 2>conftest.er1
12064   ac_status=$?
12065   grep -v '^ *+' conftest.er1 >conftest.err
12066   rm -f conftest.er1
12067   cat conftest.err >&5
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); } &&
12070          { ac_try='test -z "$ac_c_werror_flag"
12071                          || test ! -s conftest.err'
12072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073   (eval $ac_try) 2>&5
12074   ac_status=$?
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); }; } &&
12077          { ac_try='test -s conftest$ac_exeext'
12078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079   (eval $ac_try) 2>&5
12080   ac_status=$?
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); }; }; then
12083   gt_cv_func_gnugettext1_libc=yes
12084 else
12085   echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12087
12088 gt_cv_func_gnugettext1_libc=no
12089 fi
12090 rm -f conftest.err conftest.$ac_objext \
12091       conftest$ac_exeext conftest.$ac_ext
12092 fi
12093 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12094 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12095
12096         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12097
12098
12099
12100     use_additional=yes
12101
12102   acl_save_prefix="$prefix"
12103   prefix="$acl_final_prefix"
12104   acl_save_exec_prefix="$exec_prefix"
12105   exec_prefix="$acl_final_exec_prefix"
12106
12107     eval additional_includedir=\"$includedir\"
12108     eval additional_libdir=\"$libdir\"
12109
12110   exec_prefix="$acl_save_exec_prefix"
12111   prefix="$acl_save_prefix"
12112
12113
12114 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12115 if test "${with_libintl_prefix+set}" = set; then
12116   withval="$with_libintl_prefix"
12117
12118     if test "X$withval" = "Xno"; then
12119       use_additional=no
12120     else
12121       if test "X$withval" = "X"; then
12122
12123   acl_save_prefix="$prefix"
12124   prefix="$acl_final_prefix"
12125   acl_save_exec_prefix="$exec_prefix"
12126   exec_prefix="$acl_final_exec_prefix"
12127
12128           eval additional_includedir=\"$includedir\"
12129           eval additional_libdir=\"$libdir\"
12130
12131   exec_prefix="$acl_save_exec_prefix"
12132   prefix="$acl_save_prefix"
12133
12134       else
12135         additional_includedir="$withval/include"
12136         additional_libdir="$withval/lib"
12137       fi
12138     fi
12139
12140 fi;
12141       LIBINTL=
12142   LTLIBINTL=
12143   INCINTL=
12144   rpathdirs=
12145   ltrpathdirs=
12146   names_already_handled=
12147   names_next_round='intl '
12148   while test -n "$names_next_round"; do
12149     names_this_round="$names_next_round"
12150     names_next_round=
12151     for name in $names_this_round; do
12152       already_handled=
12153       for n in $names_already_handled; do
12154         if test "$n" = "$name"; then
12155           already_handled=yes
12156           break
12157         fi
12158       done
12159       if test -z "$already_handled"; then
12160         names_already_handled="$names_already_handled $name"
12161                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12162         eval value=\"\$HAVE_LIB$uppername\"
12163         if test -n "$value"; then
12164           if test "$value" = yes; then
12165             eval value=\"\$LIB$uppername\"
12166             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12167             eval value=\"\$LTLIB$uppername\"
12168             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12169           else
12170                                     :
12171           fi
12172         else
12173                               found_dir=
12174           found_la=
12175           found_so=
12176           found_a=
12177           if test $use_additional = yes; then
12178             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12179               found_dir="$additional_libdir"
12180               found_so="$additional_libdir/lib$name.$shlibext"
12181               if test -f "$additional_libdir/lib$name.la"; then
12182                 found_la="$additional_libdir/lib$name.la"
12183               fi
12184             else
12185               if test -f "$additional_libdir/lib$name.$libext"; then
12186                 found_dir="$additional_libdir"
12187                 found_a="$additional_libdir/lib$name.$libext"
12188                 if test -f "$additional_libdir/lib$name.la"; then
12189                   found_la="$additional_libdir/lib$name.la"
12190                 fi
12191               fi
12192             fi
12193           fi
12194           if test "X$found_dir" = "X"; then
12195             for x in $LDFLAGS $LTLIBINTL; do
12196
12197   acl_save_prefix="$prefix"
12198   prefix="$acl_final_prefix"
12199   acl_save_exec_prefix="$exec_prefix"
12200   exec_prefix="$acl_final_exec_prefix"
12201   eval x=\"$x\"
12202   exec_prefix="$acl_save_exec_prefix"
12203   prefix="$acl_save_prefix"
12204
12205               case "$x" in
12206                 -L*)
12207                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12208                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12209                     found_dir="$dir"
12210                     found_so="$dir/lib$name.$shlibext"
12211                     if test -f "$dir/lib$name.la"; then
12212                       found_la="$dir/lib$name.la"
12213                     fi
12214                   else
12215                     if test -f "$dir/lib$name.$libext"; then
12216                       found_dir="$dir"
12217                       found_a="$dir/lib$name.$libext"
12218                       if test -f "$dir/lib$name.la"; then
12219                         found_la="$dir/lib$name.la"
12220                       fi
12221                     fi
12222                   fi
12223                   ;;
12224               esac
12225               if test "X$found_dir" != "X"; then
12226                 break
12227               fi
12228             done
12229           fi
12230           if test "X$found_dir" != "X"; then
12231                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12232             if test "X$found_so" != "X"; then
12233                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12234                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12235               else
12236                                                                                 haveit=
12237                 for x in $ltrpathdirs; do
12238                   if test "X$x" = "X$found_dir"; then
12239                     haveit=yes
12240                     break
12241                   fi
12242                 done
12243                 if test -z "$haveit"; then
12244                   ltrpathdirs="$ltrpathdirs $found_dir"
12245                 fi
12246                                 if test "$hardcode_direct" = yes; then
12247                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12248                 else
12249                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12250                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12251                                                             haveit=
12252                     for x in $rpathdirs; do
12253                       if test "X$x" = "X$found_dir"; then
12254                         haveit=yes
12255                         break
12256                       fi
12257                     done
12258                     if test -z "$haveit"; then
12259                       rpathdirs="$rpathdirs $found_dir"
12260                     fi
12261                   else
12262                                                                                 haveit=
12263                     for x in $LDFLAGS $LIBINTL; do
12264
12265   acl_save_prefix="$prefix"
12266   prefix="$acl_final_prefix"
12267   acl_save_exec_prefix="$exec_prefix"
12268   exec_prefix="$acl_final_exec_prefix"
12269   eval x=\"$x\"
12270   exec_prefix="$acl_save_exec_prefix"
12271   prefix="$acl_save_prefix"
12272
12273                       if test "X$x" = "X-L$found_dir"; then
12274                         haveit=yes
12275                         break
12276                       fi
12277                     done
12278                     if test -z "$haveit"; then
12279                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12280                     fi
12281                     if test "$hardcode_minus_L" != no; then
12282                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12283                     else
12284                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12285                     fi
12286                   fi
12287                 fi
12288               fi
12289             else
12290               if test "X$found_a" != "X"; then
12291                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12292               else
12293                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12294               fi
12295             fi
12296                         additional_includedir=
12297             case "$found_dir" in
12298               */lib | */lib/)
12299                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12300                 additional_includedir="$basedir/include"
12301                 ;;
12302             esac
12303             if test "X$additional_includedir" != "X"; then
12304                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12305                 haveit=
12306                 if test "X$additional_includedir" = "X/usr/local/include"; then
12307                   if test -n "$GCC"; then
12308                     case $host_os in
12309                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12310                     esac
12311                   fi
12312                 fi
12313                 if test -z "$haveit"; then
12314                   for x in $CPPFLAGS $INCINTL; do
12315
12316   acl_save_prefix="$prefix"
12317   prefix="$acl_final_prefix"
12318   acl_save_exec_prefix="$exec_prefix"
12319   exec_prefix="$acl_final_exec_prefix"
12320   eval x=\"$x\"
12321   exec_prefix="$acl_save_exec_prefix"
12322   prefix="$acl_save_prefix"
12323
12324                     if test "X$x" = "X-I$additional_includedir"; then
12325                       haveit=yes
12326                       break
12327                     fi
12328                   done
12329                   if test -z "$haveit"; then
12330                     if test -d "$additional_includedir"; then
12331                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12332                     fi
12333                   fi
12334                 fi
12335               fi
12336             fi
12337                         if test -n "$found_la"; then
12338                                                         save_libdir="$libdir"
12339               case "$found_la" in
12340                 */* | *\\*) . "$found_la" ;;
12341                 *) . "./$found_la" ;;
12342               esac
12343               libdir="$save_libdir"
12344                             for dep in $dependency_libs; do
12345                 case "$dep" in
12346                   -L*)
12347                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12348                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
12349                       haveit=
12350                       if test "X$additional_libdir" = "X/usr/local/lib"; then
12351                         if test -n "$GCC"; then
12352                           case $host_os in
12353                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12354                           esac
12355                         fi
12356                       fi
12357                       if test -z "$haveit"; then
12358                         haveit=
12359                         for x in $LDFLAGS $LIBINTL; do
12360
12361   acl_save_prefix="$prefix"
12362   prefix="$acl_final_prefix"
12363   acl_save_exec_prefix="$exec_prefix"
12364   exec_prefix="$acl_final_exec_prefix"
12365   eval x=\"$x\"
12366   exec_prefix="$acl_save_exec_prefix"
12367   prefix="$acl_save_prefix"
12368
12369                           if test "X$x" = "X-L$additional_libdir"; then
12370                             haveit=yes
12371                             break
12372                           fi
12373                         done
12374                         if test -z "$haveit"; then
12375                           if test -d "$additional_libdir"; then
12376                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12377                           fi
12378                         fi
12379                         haveit=
12380                         for x in $LDFLAGS $LTLIBINTL; do
12381
12382   acl_save_prefix="$prefix"
12383   prefix="$acl_final_prefix"
12384   acl_save_exec_prefix="$exec_prefix"
12385   exec_prefix="$acl_final_exec_prefix"
12386   eval x=\"$x\"
12387   exec_prefix="$acl_save_exec_prefix"
12388   prefix="$acl_save_prefix"
12389
12390                           if test "X$x" = "X-L$additional_libdir"; then
12391                             haveit=yes
12392                             break
12393                           fi
12394                         done
12395                         if test -z "$haveit"; then
12396                           if test -d "$additional_libdir"; then
12397                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12398                           fi
12399                         fi
12400                       fi
12401                     fi
12402                     ;;
12403                   -R*)
12404                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12405                     if test "$enable_rpath" != no; then
12406                                                                   haveit=
12407                       for x in $rpathdirs; do
12408                         if test "X$x" = "X$dir"; then
12409                           haveit=yes
12410                           break
12411                         fi
12412                       done
12413                       if test -z "$haveit"; then
12414                         rpathdirs="$rpathdirs $dir"
12415                       fi
12416                                                                   haveit=
12417                       for x in $ltrpathdirs; do
12418                         if test "X$x" = "X$dir"; then
12419                           haveit=yes
12420                           break
12421                         fi
12422                       done
12423                       if test -z "$haveit"; then
12424                         ltrpathdirs="$ltrpathdirs $dir"
12425                       fi
12426                     fi
12427                     ;;
12428                   -l*)
12429                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12430                     ;;
12431                   *.la)
12432                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12433                     ;;
12434                   *)
12435                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12436                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12437                     ;;
12438                 esac
12439               done
12440             fi
12441           else
12442                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12443             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12444           fi
12445         fi
12446       fi
12447     done
12448   done
12449   if test "X$rpathdirs" != "X"; then
12450     if test -n "$hardcode_libdir_separator"; then
12451                         alldirs=
12452       for found_dir in $rpathdirs; do
12453         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12454       done
12455             acl_save_libdir="$libdir"
12456       libdir="$alldirs"
12457       eval flag=\"$hardcode_libdir_flag_spec\"
12458       libdir="$acl_save_libdir"
12459       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12460     else
12461             for found_dir in $rpathdirs; do
12462         acl_save_libdir="$libdir"
12463         libdir="$found_dir"
12464         eval flag=\"$hardcode_libdir_flag_spec\"
12465         libdir="$acl_save_libdir"
12466         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12467       done
12468     fi
12469   fi
12470   if test "X$ltrpathdirs" != "X"; then
12471             for found_dir in $ltrpathdirs; do
12472       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12473     done
12474   fi
12475
12476           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12477 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12478 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12479   echo $ECHO_N "(cached) $ECHO_C" >&6
12480 else
12481   gt_save_CPPFLAGS="$CPPFLAGS"
12482             CPPFLAGS="$CPPFLAGS $INCINTL"
12483             gt_save_LIBS="$LIBS"
12484             LIBS="$LIBS $LIBINTL"
12485                         cat >conftest.$ac_ext <<_ACEOF
12486 /* confdefs.h.  */
12487 _ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h.  */
12491 #include <libintl.h>
12492 extern int _nl_msg_cat_cntr;
12493 extern
12494 #ifdef __cplusplus
12495 "C"
12496 #endif
12497 const char *_nl_expand_alias (const char *);
12498 int
12499 main ()
12500 {
12501 bindtextdomain ("", "");
12502 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12503   ;
12504   return 0;
12505 }
12506 _ACEOF
12507 rm -f conftest.$ac_objext conftest$ac_exeext
12508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12509   (eval $ac_link) 2>conftest.er1
12510   ac_status=$?
12511   grep -v '^ *+' conftest.er1 >conftest.err
12512   rm -f conftest.er1
12513   cat conftest.err >&5
12514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); } &&
12516          { ac_try='test -z "$ac_c_werror_flag"
12517                          || test ! -s conftest.err'
12518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519   (eval $ac_try) 2>&5
12520   ac_status=$?
12521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); }; } &&
12523          { ac_try='test -s conftest$ac_exeext'
12524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525   (eval $ac_try) 2>&5
12526   ac_status=$?
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); }; }; then
12529   gt_cv_func_gnugettext1_libintl=yes
12530 else
12531   echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12533
12534 gt_cv_func_gnugettext1_libintl=no
12535 fi
12536 rm -f conftest.err conftest.$ac_objext \
12537       conftest$ac_exeext conftest.$ac_ext
12538                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12539               LIBS="$LIBS $LIBICONV"
12540               cat >conftest.$ac_ext <<_ACEOF
12541 /* confdefs.h.  */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h.  */
12546 #include <libintl.h>
12547 extern int _nl_msg_cat_cntr;
12548 extern
12549 #ifdef __cplusplus
12550 "C"
12551 #endif
12552 const char *_nl_expand_alias (const char *);
12553 int
12554 main ()
12555 {
12556 bindtextdomain ("", "");
12557 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12558   ;
12559   return 0;
12560 }
12561 _ACEOF
12562 rm -f conftest.$ac_objext conftest$ac_exeext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12564   (eval $ac_link) 2>conftest.er1
12565   ac_status=$?
12566   grep -v '^ *+' conftest.er1 >conftest.err
12567   rm -f conftest.er1
12568   cat conftest.err >&5
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); } &&
12571          { ac_try='test -z "$ac_c_werror_flag"
12572                          || test ! -s conftest.err'
12573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574   (eval $ac_try) 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); }; } &&
12578          { ac_try='test -s conftest$ac_exeext'
12579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580   (eval $ac_try) 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); }; }; then
12584   LIBINTL="$LIBINTL $LIBICONV"
12585                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12586                 gt_cv_func_gnugettext1_libintl=yes
12587
12588 else
12589   echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12591
12592 fi
12593 rm -f conftest.err conftest.$ac_objext \
12594       conftest$ac_exeext conftest.$ac_ext
12595             fi
12596             CPPFLAGS="$gt_save_CPPFLAGS"
12597             LIBS="$gt_save_LIBS"
12598 fi
12599 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12600 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12601         fi
12602
12603                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12604            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12605                 && test "$PACKAGE" != gettext-runtime \
12606                 && test "$PACKAGE" != gettext-tools; }; then
12607           gt_use_preinstalled_gnugettext=yes
12608         else
12609                     LIBINTL=
12610           LTLIBINTL=
12611           INCINTL=
12612         fi
12613
12614
12615         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12616                               nls_cv_use_gnu_gettext=yes
12617         fi
12618       fi
12619
12620       if test "$nls_cv_use_gnu_gettext" = "yes"; then
12621                 BUILD_INCLUDED_LIBINTL=yes
12622         USE_INCLUDED_LIBINTL=yes
12623         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12624         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12625         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12626       fi
12627
12628       CATOBJEXT=
12629       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12630          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12631                 CATOBJEXT=.gmo
12632       fi
12633
12634
12635     if test -n "$INTL_MACOSX_LIBS"; then
12636       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12637          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12638                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12639         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12640       fi
12641     fi
12642
12643     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12644        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12645
12646 cat >>confdefs.h <<\_ACEOF
12647 #define ENABLE_NLS 1
12648 _ACEOF
12649
12650     else
12651       USE_NLS=no
12652     fi
12653   fi
12654
12655   echo "$as_me:$LINENO: checking whether to use NLS" >&5
12656 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12657   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12658 echo "${ECHO_T}$USE_NLS" >&6
12659   if test "$USE_NLS" = "yes"; then
12660     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12661 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12662     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12663       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12664         gt_source="external libintl"
12665       else
12666         gt_source="libc"
12667       fi
12668     else
12669       gt_source="included intl directory"
12670     fi
12671     echo "$as_me:$LINENO: result: $gt_source" >&5
12672 echo "${ECHO_T}$gt_source" >&6
12673   fi
12674
12675   if test "$USE_NLS" = "yes"; then
12676
12677     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12678       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12679         echo "$as_me:$LINENO: checking how to link with libintl" >&5
12680 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12681         echo "$as_me:$LINENO: result: $LIBINTL" >&5
12682 echo "${ECHO_T}$LIBINTL" >&6
12683
12684   for element in $INCINTL; do
12685     haveit=
12686     for x in $CPPFLAGS; do
12687
12688   acl_save_prefix="$prefix"
12689   prefix="$acl_final_prefix"
12690   acl_save_exec_prefix="$exec_prefix"
12691   exec_prefix="$acl_final_exec_prefix"
12692   eval x=\"$x\"
12693   exec_prefix="$acl_save_exec_prefix"
12694   prefix="$acl_save_prefix"
12695
12696       if test "X$x" = "X$element"; then
12697         haveit=yes
12698         break
12699       fi
12700     done
12701     if test -z "$haveit"; then
12702       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12703     fi
12704   done
12705
12706       fi
12707
12708
12709 cat >>confdefs.h <<\_ACEOF
12710 #define HAVE_GETTEXT 1
12711 _ACEOF
12712
12713
12714 cat >>confdefs.h <<\_ACEOF
12715 #define HAVE_DCGETTEXT 1
12716 _ACEOF
12717
12718     fi
12719
12720         POSUB=po
12721   fi
12722
12723
12724             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12725       BUILD_INCLUDED_LIBINTL=yes
12726     fi
12727
12728
12729
12730
12731
12732         nls_cv_header_intl=
12733     nls_cv_header_libgt=
12734
12735         DATADIRNAME=share
12736
12737
12738         INSTOBJEXT=.mo
12739
12740
12741         GENCAT=gencat
12742
12743
12744         INTLOBJS=
12745     if test "$USE_INCLUDED_LIBINTL" = yes; then
12746       INTLOBJS="\$(GETTOBJS)"
12747     fi
12748
12749
12750         INTL_LIBTOOL_SUFFIX_PREFIX=
12751
12752
12753
12754     INTLLIBS="$LIBINTL"
12755
12756
12757
12758
12759
12760
12761 fi
12762
12763
12764 support_mysql=no
12765 support_sqlite=no
12766 support_sqlite3=no
12767 support_postgresql=no
12768 support_smartalloc=yes
12769 support_readline=yes
12770 support_conio=yes
12771 support_gnome=no
12772 support_wx_console=no
12773 support_tls=no
12774 support_crypto=no
12775 gnome_version=
12776 wx_version=
12777 support_static_tools=no
12778 support_static_fd=no
12779 support_static_sd=no
12780 support_static_dir=no
12781 support_static_cons=no
12782 support_python=no
12783 build_client_only=no
12784 build_dird=yes
12785 build_stored=yes
12786 cats=
12787 db_name=Internal
12788 DB_NAME=bdb
12789
12790
12791 # -------------------------------------------
12792 # gnome (default off)
12793 # -------------------------------------------
12794 # Check whether --enable-gnome or --disable-gnome was given.
12795 if test "${enable_gnome+set}" = set; then
12796   enableval="$enable_gnome"
12797   if test x$enableval = xyes; then
12798     support_gnome=yes
12799   fi
12800 fi;
12801
12802 GNOME_DIR=
12803 if test x$support_gnome = xyes; then
12804   abc=`$PKGCONFIG --exists libgnomeui-2.0`
12805   pkg=$?
12806   if test $pkg = 0; then
12807      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12808      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12809      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12810      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12811
12812
12813
12814
12815      GNOME_DIR=src/gnome2-console
12816      gnome_version="Version 2.x"
12817   else
12818      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12819 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12820    { (exit 1); exit 1; }; }
12821   fi
12822 fi
12823
12824
12825
12826 # -------------------------------------------
12827 # wx-console (default off)
12828 # -------------------------------------------
12829 # Check whether --enable-wx-console or --disable-wx-console was given.
12830 if test "${enable_wx_console+set}" = set; then
12831   enableval="$enable_wx_console"
12832   if test x$enableval = xyes; then
12833     support_wx_console=yes
12834   fi
12835 fi;
12836
12837 WX_DIR=
12838 if test x$support_wx_console = xyes; then
12839   abc=`$WXCONFIG $WXFLAGS --cppflags`
12840   pkg=$?
12841   if test $pkg = 0; then
12842      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12843      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12844      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12845
12846
12847
12848      WX_DIR=src/wx-console
12849   else
12850      echo " "
12851      echo "wx-config program not found. wx-console disabled."
12852      echo " "
12853      support_wx_console=no
12854   fi
12855 fi
12856
12857
12858
12859 # -------------------------------------------
12860 # tray-monitor (default off)
12861 # -------------------------------------------
12862 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12863 if test "${enable_tray_monitor+set}" = set; then
12864   enableval="$enable_tray_monitor"
12865   if test x$enableval = xyes; then
12866     support_tray_monitor=yes
12867   fi
12868 fi;
12869
12870 TRAY_MONITOR_DIR=
12871 if test x$support_tray_monitor = xyes; then
12872   abc=`$PKGCONFIG --exists gtk+-2.0`
12873   pkg=$?
12874   if test $pkg = 0; then
12875      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12876      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12877
12878
12879      TRAY_MONITOR_DIR=src/tray-monitor
12880      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12881      pkg=$?
12882      if test $pkg = 0; then
12883         cat >>confdefs.h <<\_ACEOF
12884 #define HAVE_GTK_2_4 1
12885 _ACEOF
12886
12887      fi
12888   fi
12889 fi
12890
12891
12892 # -------------------------------------------
12893 # smartalloc (default off)
12894 # -------------------------------------------
12895 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12896 if test "${enable_smartalloc+set}" = set; then
12897   enableval="$enable_smartalloc"
12898   if test x$enableval = xno; then
12899     support_smartalloc=no
12900   fi
12901 fi;
12902
12903 if test x$support_smartalloc = xyes; then
12904    cat >>confdefs.h <<\_ACEOF
12905 #define SMARTALLOC 1
12906 _ACEOF
12907
12908 fi
12909
12910 # -------------------------------------------
12911 # static-tools (default off)
12912 # -------------------------------------------
12913 # Check whether --enable-static-tools or --disable-static-tools was given.
12914 if test "${enable_static_tools+set}" = set; then
12915   enableval="$enable_static_tools"
12916   if test x$enableval = xyes; then
12917      support_static_tools=yes
12918    fi
12919 fi;
12920
12921 TTOOL_LDFLAGS=
12922 if test x$support_static_tools = xyes; then
12923    TTOOL_LDFLAGS="-static"
12924 fi
12925
12926
12927 # -------------------------------------------
12928 # static-fd    (default off)
12929 # -------------------------------------------
12930 # Check whether --enable-static-fd or --disable-static-fd was given.
12931 if test "${enable_static_fd+set}" = set; then
12932   enableval="$enable_static_fd"
12933   if test x$enableval = xyes; then
12934      support_static_fd=yes
12935    fi
12936 fi;
12937
12938 STATIC_FD=
12939 if test x$support_static_fd = xyes; then
12940    STATIC_FD="static-bacula-fd"
12941 fi
12942
12943
12944 # -------------------------------------------
12945 # static-sd    (default off)
12946 # -------------------------------------------
12947 # Check whether --enable-static-sd or --disable-static-sd was given.
12948 if test "${enable_static_sd+set}" = set; then
12949   enableval="$enable_static_sd"
12950   if test x$enableval = xyes; then
12951      support_static_sd=yes
12952    fi
12953 fi;
12954
12955 STATIC_SD=
12956 if test x$support_static_sd = xyes; then
12957    STATIC_SD="static-bacula-sd"
12958 fi
12959
12960
12961 # -------------------------------------------
12962 # static-dir   (default off)
12963 # -------------------------------------------
12964 # Check whether --enable-static-dir or --disable-static-dir was given.
12965 if test "${enable_static_dir+set}" = set; then
12966   enableval="$enable_static_dir"
12967   if test x$enableval = xyes; then
12968      support_static_dir=yes
12969    fi
12970 fi;
12971
12972 STATIC_DIR=
12973 if test x$support_static_dir = xyes; then
12974    STATIC_DIR="static-bacula-dir"
12975 fi
12976
12977
12978 # -------------------------------------------
12979 # static-cons  (default off)
12980 # -------------------------------------------
12981 # Check whether --enable-static-cons or --disable-static-cons was given.
12982 if test "${enable_static_cons+set}" = set; then
12983   enableval="$enable_static_cons"
12984   if test x$enableval = xyes; then
12985      support_static_cons=yes
12986    fi
12987 fi;
12988
12989 STATIC_CONS=
12990 STATIC_GNOME_CONS=
12991 STATIC_WX_CONS=
12992 if test x$support_static_cons = xyes; then
12993    STATIC_CONS="static-bconsole"
12994    STATIC_GNOME_CONS="static-gnome-console"
12995    STATIC_WX_CONS="static-wx-console"
12996 fi
12997
12998
12999
13000
13001 # -------------------------------------------
13002 # client_only  (default off)
13003 # -------------------------------------------
13004 # Check whether --enable-client-only or --disable-client-only was given.
13005 if test "${enable_client_only+set}" = set; then
13006   enableval="$enable_client_only"
13007   if test x$enableval = xyes; then
13008       build_client_only=yes
13009       db_name=None
13010       DB_NAME=none
13011    fi
13012 fi;
13013 if test x$build_client_only = xno; then
13014    ALL_DIRS="subdirs"
13015 else
13016    ALL_DIRS=""
13017 fi
13018
13019
13020 # -------------------------------------------
13021 # director  (default on)
13022 # -------------------------------------------
13023 # Check whether --enable-build-dird or --disable-build-dird was given.
13024 if test "${enable_build_dird+set}" = set; then
13025   enableval="$enable_build_dird"
13026   if test x$enableval = xno; then
13027       build_dird=no
13028    fi
13029 fi;
13030 if test x$build_dird = xyes; then
13031    DIRD_DIR="src/dird"
13032    DIR_TOOLS="DIRTOOLS"
13033 else
13034    DIRD_DIR=""
13035    DIR_TOOLS="NODIRTOOLS"
13036 fi
13037
13038
13039
13040 # -------------------------------------------
13041 # stored  (default on)
13042 # -------------------------------------------
13043 # Check whether --enable-build-stored or --disable-build-stored was given.
13044 if test "${enable_build_stored+set}" = set; then
13045   enableval="$enable_build_stored"
13046   if test x$enableval = xno; then
13047       build_stored=no
13048    fi
13049 fi;
13050 if test x$build_stored = xyes; then
13051    STORED_DIR="src/stored"
13052 else
13053    STORED_DIR=""
13054 fi
13055
13056
13057 # ---------------------------------------------------
13058 # Check for conio (Bacula readline substitute)(
13059 # ---------------------------------------------------
13060 # this allows you to turn it completely off
13061 # Check whether --enable-conio or --disable-conio was given.
13062 if test "${enable_conio+set}" = set; then
13063   enableval="$enable_conio"
13064   if test x$enableval = xno; then
13065     support_conio=no
13066   fi
13067 fi;
13068
13069 got_conio="no"
13070 if test x$support_conio = xyes; then
13071    if test "${ac_cv_header_termcap_h+set}" = set; then
13072   echo "$as_me:$LINENO: checking for termcap.h" >&5
13073 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13074 if test "${ac_cv_header_termcap_h+set}" = set; then
13075   echo $ECHO_N "(cached) $ECHO_C" >&6
13076 fi
13077 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13078 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13079 else
13080   # Is the header compilable?
13081 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13082 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13083 cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h.  */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h.  */
13089 $ac_includes_default
13090 #include <termcap.h>
13091 _ACEOF
13092 rm -f conftest.$ac_objext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13094   (eval $ac_compile) 2>conftest.er1
13095   ac_status=$?
13096   grep -v '^ *+' conftest.er1 >conftest.err
13097   rm -f conftest.er1
13098   cat conftest.err >&5
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); } &&
13101          { ac_try='test -z "$ac_c_werror_flag"
13102                          || test ! -s conftest.err'
13103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104   (eval $ac_try) 2>&5
13105   ac_status=$?
13106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107   (exit $ac_status); }; } &&
13108          { ac_try='test -s conftest.$ac_objext'
13109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110   (eval $ac_try) 2>&5
13111   ac_status=$?
13112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113   (exit $ac_status); }; }; then
13114   ac_header_compiler=yes
13115 else
13116   echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13118
13119 ac_header_compiler=no
13120 fi
13121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13123 echo "${ECHO_T}$ac_header_compiler" >&6
13124
13125 # Is the header present?
13126 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13127 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13128 cat >conftest.$ac_ext <<_ACEOF
13129 /* confdefs.h.  */
13130 _ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h.  */
13134 #include <termcap.h>
13135 _ACEOF
13136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13138   ac_status=$?
13139   grep -v '^ *+' conftest.er1 >conftest.err
13140   rm -f conftest.er1
13141   cat conftest.err >&5
13142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143   (exit $ac_status); } >/dev/null; then
13144   if test -s conftest.err; then
13145     ac_cpp_err=$ac_c_preproc_warn_flag
13146     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13147   else
13148     ac_cpp_err=
13149   fi
13150 else
13151   ac_cpp_err=yes
13152 fi
13153 if test -z "$ac_cpp_err"; then
13154   ac_header_preproc=yes
13155 else
13156   echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13158
13159   ac_header_preproc=no
13160 fi
13161 rm -f conftest.err conftest.$ac_ext
13162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13163 echo "${ECHO_T}$ac_header_preproc" >&6
13164
13165 # So?  What about this header?
13166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13167   yes:no: )
13168     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13169 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13170     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13171 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13172     ac_header_preproc=yes
13173     ;;
13174   no:yes:* )
13175     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13176 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13177     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
13178 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
13179     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13180 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13181     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
13182 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13183     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13184 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13185     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13186 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13187     (
13188       cat <<\_ASBOX
13189 ## ------------------------------------------ ##
13190 ## Report this to the AC_PACKAGE_NAME lists.  ##
13191 ## ------------------------------------------ ##
13192 _ASBOX
13193     ) |
13194       sed "s/^/$as_me: WARNING:     /" >&2
13195     ;;
13196 esac
13197 echo "$as_me:$LINENO: checking for termcap.h" >&5
13198 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13199 if test "${ac_cv_header_termcap_h+set}" = set; then
13200   echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202   ac_cv_header_termcap_h=$ac_header_preproc
13203 fi
13204 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13205 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13206
13207 fi
13208 if test $ac_cv_header_termcap_h = yes; then
13209    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13210 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13211 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13212   echo $ECHO_N "(cached) $ECHO_C" >&6
13213 else
13214   ac_check_lib_save_LIBS=$LIBS
13215 LIBS="-ltermcap  $LIBS"
13216 cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h.  */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h.  */
13222
13223 /* Override any gcc2 internal prototype to avoid an error.  */
13224 #ifdef __cplusplus
13225 extern "C"
13226 #endif
13227 /* We use char because int might match the return type of a gcc2
13228    builtin and then its argument prototype would still apply.  */
13229 char tgetent ();
13230 int
13231 main ()
13232 {
13233 tgetent ();
13234   ;
13235   return 0;
13236 }
13237 _ACEOF
13238 rm -f conftest.$ac_objext conftest$ac_exeext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13240   (eval $ac_link) 2>conftest.er1
13241   ac_status=$?
13242   grep -v '^ *+' conftest.er1 >conftest.err
13243   rm -f conftest.er1
13244   cat conftest.err >&5
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); } &&
13247          { ac_try='test -z "$ac_c_werror_flag"
13248                          || test ! -s conftest.err'
13249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250   (eval $ac_try) 2>&5
13251   ac_status=$?
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); }; } &&
13254          { ac_try='test -s conftest$ac_exeext'
13255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256   (eval $ac_try) 2>&5
13257   ac_status=$?
13258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259   (exit $ac_status); }; }; then
13260   ac_cv_lib_termcap_tgetent=yes
13261 else
13262   echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13264
13265 ac_cv_lib_termcap_tgetent=no
13266 fi
13267 rm -f conftest.err conftest.$ac_objext \
13268       conftest$ac_exeext conftest.$ac_ext
13269 LIBS=$ac_check_lib_save_LIBS
13270 fi
13271 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13272 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13273 if test $ac_cv_lib_termcap_tgetent = yes; then
13274    CONS_LIBS="-ltermcap"
13275          CONS_OBJ="conio.o"
13276          CONS_SRC="conio.c"
13277          got_conio="yes"
13278          support_readline=no
13279
13280 cat >>confdefs.h <<\_ACEOF
13281 #define HAVE_CONIO 1
13282 _ACEOF
13283
13284
13285 else
13286    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13287 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13288 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13289   echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291   ac_check_lib_save_LIBS=$LIBS
13292 LIBS="-lncurses  $LIBS"
13293 cat >conftest.$ac_ext <<_ACEOF
13294 /* confdefs.h.  */
13295 _ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h.  */
13299
13300 /* Override any gcc2 internal prototype to avoid an error.  */
13301 #ifdef __cplusplus
13302 extern "C"
13303 #endif
13304 /* We use char because int might match the return type of a gcc2
13305    builtin and then its argument prototype would still apply.  */
13306 char tgetent ();
13307 int
13308 main ()
13309 {
13310 tgetent ();
13311   ;
13312   return 0;
13313 }
13314 _ACEOF
13315 rm -f conftest.$ac_objext conftest$ac_exeext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317   (eval $ac_link) 2>conftest.er1
13318   ac_status=$?
13319   grep -v '^ *+' conftest.er1 >conftest.err
13320   rm -f conftest.er1
13321   cat conftest.err >&5
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); } &&
13324          { ac_try='test -z "$ac_c_werror_flag"
13325                          || test ! -s conftest.err'
13326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327   (eval $ac_try) 2>&5
13328   ac_status=$?
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); }; } &&
13331          { ac_try='test -s conftest$ac_exeext'
13332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333   (eval $ac_try) 2>&5
13334   ac_status=$?
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); }; }; then
13337   ac_cv_lib_ncurses_tgetent=yes
13338 else
13339   echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13341
13342 ac_cv_lib_ncurses_tgetent=no
13343 fi
13344 rm -f conftest.err conftest.$ac_objext \
13345       conftest$ac_exeext conftest.$ac_ext
13346 LIBS=$ac_check_lib_save_LIBS
13347 fi
13348 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13349 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13350 if test $ac_cv_lib_ncurses_tgetent = yes; then
13351    CONS_LIBS="-lncurses"
13352            CONS_OBJ="conio.o"
13353            CONS_SRC="conio.c"
13354            got_conio="yes"
13355            support_readline=no
13356
13357 cat >>confdefs.h <<\_ACEOF
13358 #define HAVE_CONIO 1
13359 _ACEOF
13360
13361
13362 fi
13363
13364
13365 fi
13366
13367
13368 else
13369
13370
13371 for ac_header in curses.h
13372 do
13373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13375   echo "$as_me:$LINENO: checking for $ac_header" >&5
13376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13378   echo $ECHO_N "(cached) $ECHO_C" >&6
13379 fi
13380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13382 else
13383   # Is the header compilable?
13384 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13386 cat >conftest.$ac_ext <<_ACEOF
13387 /* confdefs.h.  */
13388 _ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h.  */
13392 $ac_includes_default
13393 #include <$ac_header>
13394 _ACEOF
13395 rm -f conftest.$ac_objext
13396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13397   (eval $ac_compile) 2>conftest.er1
13398   ac_status=$?
13399   grep -v '^ *+' conftest.er1 >conftest.err
13400   rm -f conftest.er1
13401   cat conftest.err >&5
13402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403   (exit $ac_status); } &&
13404          { ac_try='test -z "$ac_c_werror_flag"
13405                          || test ! -s conftest.err'
13406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407   (eval $ac_try) 2>&5
13408   ac_status=$?
13409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410   (exit $ac_status); }; } &&
13411          { ac_try='test -s conftest.$ac_objext'
13412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413   (eval $ac_try) 2>&5
13414   ac_status=$?
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); }; }; then
13417   ac_header_compiler=yes
13418 else
13419   echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13421
13422 ac_header_compiler=no
13423 fi
13424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13426 echo "${ECHO_T}$ac_header_compiler" >&6
13427
13428 # Is the header present?
13429 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13431 cat >conftest.$ac_ext <<_ACEOF
13432 /* confdefs.h.  */
13433 _ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h.  */
13437 #include <$ac_header>
13438 _ACEOF
13439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13440   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13441   ac_status=$?
13442   grep -v '^ *+' conftest.er1 >conftest.err
13443   rm -f conftest.er1
13444   cat conftest.err >&5
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); } >/dev/null; then
13447   if test -s conftest.err; then
13448     ac_cpp_err=$ac_c_preproc_warn_flag
13449     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13450   else
13451     ac_cpp_err=
13452   fi
13453 else
13454   ac_cpp_err=yes
13455 fi
13456 if test -z "$ac_cpp_err"; then
13457   ac_header_preproc=yes
13458 else
13459   echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13461
13462   ac_header_preproc=no
13463 fi
13464 rm -f conftest.err conftest.$ac_ext
13465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13466 echo "${ECHO_T}$ac_header_preproc" >&6
13467
13468 # So?  What about this header?
13469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13470   yes:no: )
13471     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13475     ac_header_preproc=yes
13476     ;;
13477   no:yes:* )
13478     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13480     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13481 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13482     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13484     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13485 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13488     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13490     (
13491       cat <<\_ASBOX
13492 ## ------------------------------------------ ##
13493 ## Report this to the AC_PACKAGE_NAME lists.  ##
13494 ## ------------------------------------------ ##
13495 _ASBOX
13496     ) |
13497       sed "s/^/$as_me: WARNING:     /" >&2
13498     ;;
13499 esac
13500 echo "$as_me:$LINENO: checking for $ac_header" >&5
13501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13503   echo $ECHO_N "(cached) $ECHO_C" >&6
13504 else
13505   eval "$as_ac_Header=\$ac_header_preproc"
13506 fi
13507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13509
13510 fi
13511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13512   cat >>confdefs.h <<_ACEOF
13513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13514 _ACEOF
13515
13516 fi
13517
13518 done
13519
13520          echo "$as_me:$LINENO: checking for term.h" >&5
13521 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13522 if test "${ac_cv_header_term_h+set}" = set; then
13523   echo $ECHO_N "(cached) $ECHO_C" >&6
13524 else
13525   cat >conftest.$ac_ext <<_ACEOF
13526 /* confdefs.h.  */
13527 _ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h.  */
13531 #if HAVE_CURSES_H
13532 #include <curses.h>
13533 #endif
13534
13535
13536 #include <term.h>
13537 _ACEOF
13538 rm -f conftest.$ac_objext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540   (eval $ac_compile) 2>conftest.er1
13541   ac_status=$?
13542   grep -v '^ *+' conftest.er1 >conftest.err
13543   rm -f conftest.er1
13544   cat conftest.err >&5
13545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546   (exit $ac_status); } &&
13547          { ac_try='test -z "$ac_c_werror_flag"
13548                          || test ! -s conftest.err'
13549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550   (eval $ac_try) 2>&5
13551   ac_status=$?
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); }; } &&
13554          { ac_try='test -s conftest.$ac_objext'
13555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556   (eval $ac_try) 2>&5
13557   ac_status=$?
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); }; }; then
13560   ac_cv_header_term_h=yes
13561 else
13562   echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13564
13565 ac_cv_header_term_h=no
13566 fi
13567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13568 fi
13569 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13570 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13571 if test $ac_cv_header_term_h = yes; then
13572    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13573 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13574 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13575   echo $ECHO_N "(cached) $ECHO_C" >&6
13576 else
13577   ac_check_lib_save_LIBS=$LIBS
13578 LIBS="-lcurses  $LIBS"
13579 cat >conftest.$ac_ext <<_ACEOF
13580 /* confdefs.h.  */
13581 _ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h.  */
13585
13586 /* Override any gcc2 internal prototype to avoid an error.  */
13587 #ifdef __cplusplus
13588 extern "C"
13589 #endif
13590 /* We use char because int might match the return type of a gcc2
13591    builtin and then its argument prototype would still apply.  */
13592 char tgetent ();
13593 int
13594 main ()
13595 {
13596 tgetent ();
13597   ;
13598   return 0;
13599 }
13600 _ACEOF
13601 rm -f conftest.$ac_objext conftest$ac_exeext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13603   (eval $ac_link) 2>conftest.er1
13604   ac_status=$?
13605   grep -v '^ *+' conftest.er1 >conftest.err
13606   rm -f conftest.er1
13607   cat conftest.err >&5
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); } &&
13610          { ac_try='test -z "$ac_c_werror_flag"
13611                          || test ! -s conftest.err'
13612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613   (eval $ac_try) 2>&5
13614   ac_status=$?
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); }; } &&
13617          { ac_try='test -s conftest$ac_exeext'
13618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619   (eval $ac_try) 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); }; }; then
13623   ac_cv_lib_curses_tgetent=yes
13624 else
13625   echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628 ac_cv_lib_curses_tgetent=no
13629 fi
13630 rm -f conftest.err conftest.$ac_objext \
13631       conftest$ac_exeext conftest.$ac_ext
13632 LIBS=$ac_check_lib_save_LIBS
13633 fi
13634 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13635 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13636 if test $ac_cv_lib_curses_tgetent = yes; then
13637    CONS_LIBS="-lcurses"
13638                    CONS_OBJ="conio.o"
13639                    CONS_SRC="conio.c"
13640                    got_conio="yes"
13641                    support_readline=no
13642
13643 cat >>confdefs.h <<\_ACEOF
13644 #define HAVE_CONIO 1
13645 _ACEOF
13646
13647
13648 fi
13649
13650
13651 else
13652    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13653 fi
13654
13655
13656
13657 fi
13658
13659
13660 fi
13661
13662
13663 # ---------------------------------------------------
13664 # Check for readline support/directory (default off)
13665 # ---------------------------------------------------
13666 # this allows you to turn it completely off
13667 # Check whether --enable-readline or --disable-readline was given.
13668 if test "${enable_readline+set}" = set; then
13669   enableval="$enable_readline"
13670   if test x$enableval = xno; then
13671     support_readline=no
13672   fi
13673 fi;
13674
13675 got_readline="no"
13676 READLINE_SRC=
13677 if test x$support_readline = xyes; then
13678
13679 # Check whether --with-readline or --without-readline was given.
13680 if test "${with_readline+set}" = set; then
13681   withval="$with_readline"
13682
13683         case "$with_readline" in
13684         no) : ;;
13685         yes|*)
13686           if test -f ${with_readline}/readline.h; then
13687              CONS_INC="-I${with_readline}"
13688              CONS_LDFLAGS="-L$with_readline"
13689           elif test -f ${with_readline}/include/readline/readline.h; then
13690              CONS_INC="-I${with_readline}/include/readline"
13691              CONS_LDFLAGS="-L${with_readline}/lib"
13692              with_readline="${with_readline}/include/readline"
13693           else
13694              with_readline="/usr/include/readline"
13695           fi
13696           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13698   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13699 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13701   echo $ECHO_N "(cached) $ECHO_C" >&6
13702 fi
13703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13705 else
13706   # Is the header compilable?
13707 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13708 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13709 cat >conftest.$ac_ext <<_ACEOF
13710 /* confdefs.h.  */
13711 _ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h.  */
13715 $ac_includes_default
13716 #include <${with_readline}/readline.h>
13717 _ACEOF
13718 rm -f conftest.$ac_objext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13720   (eval $ac_compile) 2>conftest.er1
13721   ac_status=$?
13722   grep -v '^ *+' conftest.er1 >conftest.err
13723   rm -f conftest.er1
13724   cat conftest.err >&5
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); } &&
13727          { ac_try='test -z "$ac_c_werror_flag"
13728                          || test ! -s conftest.err'
13729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730   (eval $ac_try) 2>&5
13731   ac_status=$?
13732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733   (exit $ac_status); }; } &&
13734          { ac_try='test -s conftest.$ac_objext'
13735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736   (eval $ac_try) 2>&5
13737   ac_status=$?
13738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739   (exit $ac_status); }; }; then
13740   ac_header_compiler=yes
13741 else
13742   echo "$as_me: failed program was:" >&5
13743 sed 's/^/| /' conftest.$ac_ext >&5
13744
13745 ac_header_compiler=no
13746 fi
13747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13749 echo "${ECHO_T}$ac_header_compiler" >&6
13750
13751 # Is the header present?
13752 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13753 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13754 cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h.  */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h.  */
13760 #include <${with_readline}/readline.h>
13761 _ACEOF
13762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13764   ac_status=$?
13765   grep -v '^ *+' conftest.er1 >conftest.err
13766   rm -f conftest.er1
13767   cat conftest.err >&5
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); } >/dev/null; then
13770   if test -s conftest.err; then
13771     ac_cpp_err=$ac_c_preproc_warn_flag
13772     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13773   else
13774     ac_cpp_err=
13775   fi
13776 else
13777   ac_cpp_err=yes
13778 fi
13779 if test -z "$ac_cpp_err"; then
13780   ac_header_preproc=yes
13781 else
13782   echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13784
13785   ac_header_preproc=no
13786 fi
13787 rm -f conftest.err conftest.$ac_ext
13788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13789 echo "${ECHO_T}$ac_header_preproc" >&6
13790
13791 # So?  What about this header?
13792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13793   yes:no: )
13794     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13795 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13796     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13797 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13798     ac_header_preproc=yes
13799     ;;
13800   no:yes:* )
13801     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13802 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13803     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
13804 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
13805     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13806 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13807     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13808 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13809     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13810 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13811     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13812 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13813     (
13814       cat <<\_ASBOX
13815 ## ------------------------------------------ ##
13816 ## Report this to the AC_PACKAGE_NAME lists.  ##
13817 ## ------------------------------------------ ##
13818 _ASBOX
13819     ) |
13820       sed "s/^/$as_me: WARNING:     /" >&2
13821     ;;
13822 esac
13823 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13824 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13826   echo $ECHO_N "(cached) $ECHO_C" >&6
13827 else
13828   eval "$as_ac_Header=\$ac_header_preproc"
13829 fi
13830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13832
13833 fi
13834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13835    cat >>confdefs.h <<\_ACEOF
13836 #define HAVE_READLINE 1
13837 _ACEOF
13838
13839                CONS_LIBS="-lreadline -lhistory -ltermcap"
13840                got_readline="yes"
13841
13842 else
13843    echo " "
13844                echo "readline.h not found. readline turned off ..."
13845                echo " "
13846
13847
13848 fi
13849
13850
13851           ;;
13852         esac
13853
13854 else
13855
13856        # check for standard readline library
13857        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13858   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13859 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13860 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13861   echo $ECHO_N "(cached) $ECHO_C" >&6
13862 fi
13863 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13864 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13865 else
13866   # Is the header compilable?
13867 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13868 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13869 cat >conftest.$ac_ext <<_ACEOF
13870 /* confdefs.h.  */
13871 _ACEOF
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h.  */
13875 $ac_includes_default
13876 #include </usr/include/readline/readline.h>
13877 _ACEOF
13878 rm -f conftest.$ac_objext
13879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880   (eval $ac_compile) 2>conftest.er1
13881   ac_status=$?
13882   grep -v '^ *+' conftest.er1 >conftest.err
13883   rm -f conftest.er1
13884   cat conftest.err >&5
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); } &&
13887          { ac_try='test -z "$ac_c_werror_flag"
13888                          || test ! -s conftest.err'
13889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890   (eval $ac_try) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); }; } &&
13894          { ac_try='test -s conftest.$ac_objext'
13895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896   (eval $ac_try) 2>&5
13897   ac_status=$?
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); }; }; then
13900   ac_header_compiler=yes
13901 else
13902   echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13904
13905 ac_header_compiler=no
13906 fi
13907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13909 echo "${ECHO_T}$ac_header_compiler" >&6
13910
13911 # Is the header present?
13912 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
13913 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
13914 cat >conftest.$ac_ext <<_ACEOF
13915 /* confdefs.h.  */
13916 _ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h.  */
13920 #include </usr/include/readline/readline.h>
13921 _ACEOF
13922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13923   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13924   ac_status=$?
13925   grep -v '^ *+' conftest.er1 >conftest.err
13926   rm -f conftest.er1
13927   cat conftest.err >&5
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); } >/dev/null; then
13930   if test -s conftest.err; then
13931     ac_cpp_err=$ac_c_preproc_warn_flag
13932     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13933   else
13934     ac_cpp_err=
13935   fi
13936 else
13937   ac_cpp_err=yes
13938 fi
13939 if test -z "$ac_cpp_err"; then
13940   ac_header_preproc=yes
13941 else
13942   echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13944
13945   ac_header_preproc=no
13946 fi
13947 rm -f conftest.err conftest.$ac_ext
13948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13949 echo "${ECHO_T}$ac_header_preproc" >&6
13950
13951 # So?  What about this header?
13952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13953   yes:no: )
13954     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13955 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13956     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
13957 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
13958     ac_header_preproc=yes
13959     ;;
13960   no:yes:* )
13961     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
13962 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
13963     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
13964 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
13965     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
13966 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
13967     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13968 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13969     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
13970 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
13971     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
13972 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
13973     (
13974       cat <<\_ASBOX
13975 ## ------------------------------------------ ##
13976 ## Report this to the AC_PACKAGE_NAME lists.  ##
13977 ## ------------------------------------------ ##
13978 _ASBOX
13979     ) |
13980       sed "s/^/$as_me: WARNING:     /" >&2
13981     ;;
13982 esac
13983 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13984 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13985 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13986   echo $ECHO_N "(cached) $ECHO_C" >&6
13987 else
13988   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
13989 fi
13990 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13991 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13992
13993 fi
13994 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
13995    cat >>confdefs.h <<\_ACEOF
13996 #define HAVE_READLINE 1
13997 _ACEOF
13998
13999            got_readline="yes"
14000            CONS_INC="-I/usr/include/readline"
14001            CONS_LIBS="-lreadline -ltermcap"
14002
14003 else
14004
14005            # Did not find standard library, so try Bacula's default
14006             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14008   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14009 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14011   echo $ECHO_N "(cached) $ECHO_C" >&6
14012 fi
14013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14015 else
14016   # Is the header compilable?
14017 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14018 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14019 cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h.  */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h.  */
14025 $ac_includes_default
14026 #include <${TOP_DIR}/depkgs/readline/readline.h>
14027 _ACEOF
14028 rm -f conftest.$ac_objext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030   (eval $ac_compile) 2>conftest.er1
14031   ac_status=$?
14032   grep -v '^ *+' conftest.er1 >conftest.err
14033   rm -f conftest.er1
14034   cat conftest.err >&5
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); } &&
14037          { ac_try='test -z "$ac_c_werror_flag"
14038                          || test ! -s conftest.err'
14039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040   (eval $ac_try) 2>&5
14041   ac_status=$?
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); }; } &&
14044          { ac_try='test -s conftest.$ac_objext'
14045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046   (eval $ac_try) 2>&5
14047   ac_status=$?
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); }; }; then
14050   ac_header_compiler=yes
14051 else
14052   echo "$as_me: failed program was:" >&5
14053 sed 's/^/| /' conftest.$ac_ext >&5
14054
14055 ac_header_compiler=no
14056 fi
14057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14059 echo "${ECHO_T}$ac_header_compiler" >&6
14060
14061 # Is the header present?
14062 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14063 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14064 cat >conftest.$ac_ext <<_ACEOF
14065 /* confdefs.h.  */
14066 _ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h.  */
14070 #include <${TOP_DIR}/depkgs/readline/readline.h>
14071 _ACEOF
14072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14074   ac_status=$?
14075   grep -v '^ *+' conftest.er1 >conftest.err
14076   rm -f conftest.er1
14077   cat conftest.err >&5
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); } >/dev/null; then
14080   if test -s conftest.err; then
14081     ac_cpp_err=$ac_c_preproc_warn_flag
14082     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14083   else
14084     ac_cpp_err=
14085   fi
14086 else
14087   ac_cpp_err=yes
14088 fi
14089 if test -z "$ac_cpp_err"; then
14090   ac_header_preproc=yes
14091 else
14092   echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14094
14095   ac_header_preproc=no
14096 fi
14097 rm -f conftest.err conftest.$ac_ext
14098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14099 echo "${ECHO_T}$ac_header_preproc" >&6
14100
14101 # So?  What about this header?
14102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14103   yes:no: )
14104     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14105 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14106     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14107 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14108     ac_header_preproc=yes
14109     ;;
14110   no:yes:* )
14111     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14112 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14113     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14114 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14115     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14116 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14117     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14118 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14119     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14120 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14121     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14122 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14123     (
14124       cat <<\_ASBOX
14125 ## ------------------------------------------ ##
14126 ## Report this to the AC_PACKAGE_NAME lists.  ##
14127 ## ------------------------------------------ ##
14128 _ASBOX
14129     ) |
14130       sed "s/^/$as_me: WARNING:     /" >&2
14131     ;;
14132 esac
14133 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14134 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14136   echo $ECHO_N "(cached) $ECHO_C" >&6
14137 else
14138   eval "$as_ac_Header=\$ac_header_preproc"
14139 fi
14140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14142
14143 fi
14144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14145    cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_READLINE 1
14147 _ACEOF
14148
14149                  got_readline="yes"
14150                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14151                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14152                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14153                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14154
14155 else
14156    echo " "
14157                 echo "readline.h not found. readline turned off ..."
14158                 echo " "
14159
14160
14161 fi
14162
14163
14164
14165
14166 fi
14167
14168
14169
14170
14171 fi;
14172 fi
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183 # Minimal stuff for readline Makefile configuration
14184 MAKE_SHELL=/bin/sh
14185
14186 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14187 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14188 if test "${ac_cv_header_stat_broken+set}" = set; then
14189   echo $ECHO_N "(cached) $ECHO_C" >&6
14190 else
14191   cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h.  */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h.  */
14197 #include <sys/types.h>
14198 #include <sys/stat.h>
14199
14200 #if defined(S_ISBLK) && defined(S_IFDIR)
14201 # if S_ISBLK (S_IFDIR)
14202 You lose.
14203 # endif
14204 #endif
14205
14206 #if defined(S_ISBLK) && defined(S_IFCHR)
14207 # if S_ISBLK (S_IFCHR)
14208 You lose.
14209 # endif
14210 #endif
14211
14212 #if defined(S_ISLNK) && defined(S_IFREG)
14213 # if S_ISLNK (S_IFREG)
14214 You lose.
14215 # endif
14216 #endif
14217
14218 #if defined(S_ISSOCK) && defined(S_IFREG)
14219 # if S_ISSOCK (S_IFREG)
14220 You lose.
14221 # endif
14222 #endif
14223
14224 _ACEOF
14225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14226   $EGREP "You lose" >/dev/null 2>&1; then
14227   ac_cv_header_stat_broken=yes
14228 else
14229   ac_cv_header_stat_broken=no
14230 fi
14231 rm -f conftest*
14232
14233 fi
14234 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14235 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14236 if test $ac_cv_header_stat_broken = yes; then
14237
14238 cat >>confdefs.h <<\_ACEOF
14239 #define STAT_MACROS_BROKEN 1
14240 _ACEOF
14241
14242 fi
14243
14244
14245
14246
14247
14248
14249 ac_header_dirent=no
14250 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14251   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14252 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14253 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14255   echo $ECHO_N "(cached) $ECHO_C" >&6
14256 else
14257   cat >conftest.$ac_ext <<_ACEOF
14258 /* confdefs.h.  */
14259 _ACEOF
14260 cat confdefs.h >>conftest.$ac_ext
14261 cat >>conftest.$ac_ext <<_ACEOF
14262 /* end confdefs.h.  */
14263 #include <sys/types.h>
14264 #include <$ac_hdr>
14265
14266 int
14267 main ()
14268 {
14269 if ((DIR *) 0)
14270 return 0;
14271   ;
14272   return 0;
14273 }
14274 _ACEOF
14275 rm -f conftest.$ac_objext
14276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14277   (eval $ac_compile) 2>conftest.er1
14278   ac_status=$?
14279   grep -v '^ *+' conftest.er1 >conftest.err
14280   rm -f conftest.er1
14281   cat conftest.err >&5
14282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283   (exit $ac_status); } &&
14284          { ac_try='test -z "$ac_c_werror_flag"
14285                          || test ! -s conftest.err'
14286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287   (eval $ac_try) 2>&5
14288   ac_status=$?
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); }; } &&
14291          { ac_try='test -s conftest.$ac_objext'
14292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293   (eval $ac_try) 2>&5
14294   ac_status=$?
14295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296   (exit $ac_status); }; }; then
14297   eval "$as_ac_Header=yes"
14298 else
14299   echo "$as_me: failed program was:" >&5
14300 sed 's/^/| /' conftest.$ac_ext >&5
14301
14302 eval "$as_ac_Header=no"
14303 fi
14304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14305 fi
14306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14309   cat >>confdefs.h <<_ACEOF
14310 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14311 _ACEOF
14312
14313 ac_header_dirent=$ac_hdr; break
14314 fi
14315
14316 done
14317 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14318 if test $ac_header_dirent = dirent.h; then
14319   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14320 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14321 if test "${ac_cv_search_opendir+set}" = set; then
14322   echo $ECHO_N "(cached) $ECHO_C" >&6
14323 else
14324   ac_func_search_save_LIBS=$LIBS
14325 ac_cv_search_opendir=no
14326 cat >conftest.$ac_ext <<_ACEOF
14327 /* confdefs.h.  */
14328 _ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h.  */
14332
14333 /* Override any gcc2 internal prototype to avoid an error.  */
14334 #ifdef __cplusplus
14335 extern "C"
14336 #endif
14337 /* We use char because int might match the return type of a gcc2
14338    builtin and then its argument prototype would still apply.  */
14339 char opendir ();
14340 int
14341 main ()
14342 {
14343 opendir ();
14344   ;
14345   return 0;
14346 }
14347 _ACEOF
14348 rm -f conftest.$ac_objext conftest$ac_exeext
14349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14350   (eval $ac_link) 2>conftest.er1
14351   ac_status=$?
14352   grep -v '^ *+' conftest.er1 >conftest.err
14353   rm -f conftest.er1
14354   cat conftest.err >&5
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); } &&
14357          { ac_try='test -z "$ac_c_werror_flag"
14358                          || test ! -s conftest.err'
14359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360   (eval $ac_try) 2>&5
14361   ac_status=$?
14362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   (exit $ac_status); }; } &&
14364          { ac_try='test -s conftest$ac_exeext'
14365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366   (eval $ac_try) 2>&5
14367   ac_status=$?
14368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369   (exit $ac_status); }; }; then
14370   ac_cv_search_opendir="none required"
14371 else
14372   echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14374
14375 fi
14376 rm -f conftest.err conftest.$ac_objext \
14377       conftest$ac_exeext conftest.$ac_ext
14378 if test "$ac_cv_search_opendir" = no; then
14379   for ac_lib in dir; do
14380     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14381     cat >conftest.$ac_ext <<_ACEOF
14382 /* confdefs.h.  */
14383 _ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h.  */
14387
14388 /* Override any gcc2 internal prototype to avoid an error.  */
14389 #ifdef __cplusplus
14390 extern "C"
14391 #endif
14392 /* We use char because int might match the return type of a gcc2
14393    builtin and then its argument prototype would still apply.  */
14394 char opendir ();
14395 int
14396 main ()
14397 {
14398 opendir ();
14399   ;
14400   return 0;
14401 }
14402 _ACEOF
14403 rm -f conftest.$ac_objext conftest$ac_exeext
14404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14405   (eval $ac_link) 2>conftest.er1
14406   ac_status=$?
14407   grep -v '^ *+' conftest.er1 >conftest.err
14408   rm -f conftest.er1
14409   cat conftest.err >&5
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); } &&
14412          { ac_try='test -z "$ac_c_werror_flag"
14413                          || test ! -s conftest.err'
14414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415   (eval $ac_try) 2>&5
14416   ac_status=$?
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); }; } &&
14419          { ac_try='test -s conftest$ac_exeext'
14420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421   (eval $ac_try) 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); }; }; then
14425   ac_cv_search_opendir="-l$ac_lib"
14426 break
14427 else
14428   echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14430
14431 fi
14432 rm -f conftest.err conftest.$ac_objext \
14433       conftest$ac_exeext conftest.$ac_ext
14434   done
14435 fi
14436 LIBS=$ac_func_search_save_LIBS
14437 fi
14438 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14439 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14440 if test "$ac_cv_search_opendir" != no; then
14441   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14442
14443 fi
14444
14445 else
14446   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14447 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14448 if test "${ac_cv_search_opendir+set}" = set; then
14449   echo $ECHO_N "(cached) $ECHO_C" >&6
14450 else
14451   ac_func_search_save_LIBS=$LIBS
14452 ac_cv_search_opendir=no
14453 cat >conftest.$ac_ext <<_ACEOF
14454 /* confdefs.h.  */
14455 _ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h.  */
14459
14460 /* Override any gcc2 internal prototype to avoid an error.  */
14461 #ifdef __cplusplus
14462 extern "C"
14463 #endif
14464 /* We use char because int might match the return type of a gcc2
14465    builtin and then its argument prototype would still apply.  */
14466 char opendir ();
14467 int
14468 main ()
14469 {
14470 opendir ();
14471   ;
14472   return 0;
14473 }
14474 _ACEOF
14475 rm -f conftest.$ac_objext conftest$ac_exeext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14477   (eval $ac_link) 2>conftest.er1
14478   ac_status=$?
14479   grep -v '^ *+' conftest.er1 >conftest.err
14480   rm -f conftest.er1
14481   cat conftest.err >&5
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); } &&
14484          { ac_try='test -z "$ac_c_werror_flag"
14485                          || test ! -s conftest.err'
14486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487   (eval $ac_try) 2>&5
14488   ac_status=$?
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); }; } &&
14491          { ac_try='test -s conftest$ac_exeext'
14492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493   (eval $ac_try) 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); }; }; then
14497   ac_cv_search_opendir="none required"
14498 else
14499   echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502 fi
14503 rm -f conftest.err conftest.$ac_objext \
14504       conftest$ac_exeext conftest.$ac_ext
14505 if test "$ac_cv_search_opendir" = no; then
14506   for ac_lib in x; do
14507     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14508     cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h.  */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h.  */
14514
14515 /* Override any gcc2 internal prototype to avoid an error.  */
14516 #ifdef __cplusplus
14517 extern "C"
14518 #endif
14519 /* We use char because int might match the return type of a gcc2
14520    builtin and then its argument prototype would still apply.  */
14521 char opendir ();
14522 int
14523 main ()
14524 {
14525 opendir ();
14526   ;
14527   return 0;
14528 }
14529 _ACEOF
14530 rm -f conftest.$ac_objext conftest$ac_exeext
14531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14532   (eval $ac_link) 2>conftest.er1
14533   ac_status=$?
14534   grep -v '^ *+' conftest.er1 >conftest.err
14535   rm -f conftest.er1
14536   cat conftest.err >&5
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); } &&
14539          { ac_try='test -z "$ac_c_werror_flag"
14540                          || test ! -s conftest.err'
14541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542   (eval $ac_try) 2>&5
14543   ac_status=$?
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); }; } &&
14546          { ac_try='test -s conftest$ac_exeext'
14547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548   (eval $ac_try) 2>&5
14549   ac_status=$?
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); }; }; then
14552   ac_cv_search_opendir="-l$ac_lib"
14553 break
14554 else
14555   echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14557
14558 fi
14559 rm -f conftest.err conftest.$ac_objext \
14560       conftest$ac_exeext conftest.$ac_ext
14561   done
14562 fi
14563 LIBS=$ac_func_search_save_LIBS
14564 fi
14565 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14566 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14567 if test "$ac_cv_search_opendir" != no; then
14568   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14569
14570 fi
14571
14572 fi
14573
14574
14575
14576
14577
14578
14579
14580
14581 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14582 do
14583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14584 echo "$as_me:$LINENO: checking for $ac_func" >&5
14585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14586 if eval "test \"\${$as_ac_var+set}\" = set"; then
14587   echo $ECHO_N "(cached) $ECHO_C" >&6
14588 else
14589   cat >conftest.$ac_ext <<_ACEOF
14590 /* confdefs.h.  */
14591 _ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h.  */
14595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14596    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14597 #define $ac_func innocuous_$ac_func
14598
14599 /* System header to define __stub macros and hopefully few prototypes,
14600     which can conflict with char $ac_func (); below.
14601     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14602     <limits.h> exists even on freestanding compilers.  */
14603
14604 #ifdef __STDC__
14605 # include <limits.h>
14606 #else
14607 # include <assert.h>
14608 #endif
14609
14610 #undef $ac_func
14611
14612 /* Override any gcc2 internal prototype to avoid an error.  */
14613 #ifdef __cplusplus
14614 extern "C"
14615 {
14616 #endif
14617 /* We use char because int might match the return type of a gcc2
14618    builtin and then its argument prototype would still apply.  */
14619 char $ac_func ();
14620 /* The GNU C library defines this for functions which it implements
14621     to always fail with ENOSYS.  Some functions are actually named
14622     something starting with __ and the normal name is an alias.  */
14623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14624 choke me
14625 #else
14626 char (*f) () = $ac_func;
14627 #endif
14628 #ifdef __cplusplus
14629 }
14630 #endif
14631
14632 int
14633 main ()
14634 {
14635 return f != $ac_func;
14636   ;
14637   return 0;
14638 }
14639 _ACEOF
14640 rm -f conftest.$ac_objext conftest$ac_exeext
14641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14642   (eval $ac_link) 2>conftest.er1
14643   ac_status=$?
14644   grep -v '^ *+' conftest.er1 >conftest.err
14645   rm -f conftest.er1
14646   cat conftest.err >&5
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); } &&
14649          { ac_try='test -z "$ac_c_werror_flag"
14650                          || test ! -s conftest.err'
14651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652   (eval $ac_try) 2>&5
14653   ac_status=$?
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); }; } &&
14656          { ac_try='test -s conftest$ac_exeext'
14657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658   (eval $ac_try) 2>&5
14659   ac_status=$?
14660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661   (exit $ac_status); }; }; then
14662   eval "$as_ac_var=yes"
14663 else
14664   echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14666
14667 eval "$as_ac_var=no"
14668 fi
14669 rm -f conftest.err conftest.$ac_objext \
14670       conftest$ac_exeext conftest.$ac_ext
14671 fi
14672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14674 if test `eval echo '${'$as_ac_var'}'` = yes; then
14675   cat >>confdefs.h <<_ACEOF
14676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14677 _ACEOF
14678
14679 fi
14680 done
14681
14682
14683
14684 for ac_func in nanosleep nl_langinfo
14685 do
14686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14687 echo "$as_me:$LINENO: checking for $ac_func" >&5
14688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14689 if eval "test \"\${$as_ac_var+set}\" = set"; then
14690   echo $ECHO_N "(cached) $ECHO_C" >&6
14691 else
14692   cat >conftest.$ac_ext <<_ACEOF
14693 /* confdefs.h.  */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h.  */
14698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14700 #define $ac_func innocuous_$ac_func
14701
14702 /* System header to define __stub macros and hopefully few prototypes,
14703     which can conflict with char $ac_func (); below.
14704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14705     <limits.h> exists even on freestanding compilers.  */
14706
14707 #ifdef __STDC__
14708 # include <limits.h>
14709 #else
14710 # include <assert.h>
14711 #endif
14712
14713 #undef $ac_func
14714
14715 /* Override any gcc2 internal prototype to avoid an error.  */
14716 #ifdef __cplusplus
14717 extern "C"
14718 {
14719 #endif
14720 /* We use char because int might match the return type of a gcc2
14721    builtin and then its argument prototype would still apply.  */
14722 char $ac_func ();
14723 /* The GNU C library defines this for functions which it implements
14724     to always fail with ENOSYS.  Some functions are actually named
14725     something starting with __ and the normal name is an alias.  */
14726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14727 choke me
14728 #else
14729 char (*f) () = $ac_func;
14730 #endif
14731 #ifdef __cplusplus
14732 }
14733 #endif
14734
14735 int
14736 main ()
14737 {
14738 return f != $ac_func;
14739   ;
14740   return 0;
14741 }
14742 _ACEOF
14743 rm -f conftest.$ac_objext conftest$ac_exeext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14745   (eval $ac_link) 2>conftest.er1
14746   ac_status=$?
14747   grep -v '^ *+' conftest.er1 >conftest.err
14748   rm -f conftest.er1
14749   cat conftest.err >&5
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); } &&
14752          { ac_try='test -z "$ac_c_werror_flag"
14753                          || test ! -s conftest.err'
14754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755   (eval $ac_try) 2>&5
14756   ac_status=$?
14757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758   (exit $ac_status); }; } &&
14759          { ac_try='test -s conftest$ac_exeext'
14760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761   (eval $ac_try) 2>&5
14762   ac_status=$?
14763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764   (exit $ac_status); }; }; then
14765   eval "$as_ac_var=yes"
14766 else
14767   echo "$as_me: failed program was:" >&5
14768 sed 's/^/| /' conftest.$ac_ext >&5
14769
14770 eval "$as_ac_var=no"
14771 fi
14772 rm -f conftest.err conftest.$ac_objext \
14773       conftest$ac_exeext conftest.$ac_ext
14774 fi
14775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14777 if test `eval echo '${'$as_ac_var'}'` = yes; then
14778   cat >>confdefs.h <<_ACEOF
14779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14780 _ACEOF
14781
14782 fi
14783 done
14784
14785
14786 for ac_header in varargs.h
14787 do
14788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14790   echo "$as_me:$LINENO: checking for $ac_header" >&5
14791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14793   echo $ECHO_N "(cached) $ECHO_C" >&6
14794 fi
14795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14797 else
14798   # Is the header compilable?
14799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14801 cat >conftest.$ac_ext <<_ACEOF
14802 /* confdefs.h.  */
14803 _ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h.  */
14807 $ac_includes_default
14808 #include <$ac_header>
14809 _ACEOF
14810 rm -f conftest.$ac_objext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14812   (eval $ac_compile) 2>conftest.er1
14813   ac_status=$?
14814   grep -v '^ *+' conftest.er1 >conftest.err
14815   rm -f conftest.er1
14816   cat conftest.err >&5
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); } &&
14819          { ac_try='test -z "$ac_c_werror_flag"
14820                          || test ! -s conftest.err'
14821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822   (eval $ac_try) 2>&5
14823   ac_status=$?
14824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); }; } &&
14826          { ac_try='test -s conftest.$ac_objext'
14827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828   (eval $ac_try) 2>&5
14829   ac_status=$?
14830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831   (exit $ac_status); }; }; then
14832   ac_header_compiler=yes
14833 else
14834   echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14836
14837 ac_header_compiler=no
14838 fi
14839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14841 echo "${ECHO_T}$ac_header_compiler" >&6
14842
14843 # Is the header present?
14844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14846 cat >conftest.$ac_ext <<_ACEOF
14847 /* confdefs.h.  */
14848 _ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h.  */
14852 #include <$ac_header>
14853 _ACEOF
14854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14855   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14856   ac_status=$?
14857   grep -v '^ *+' conftest.er1 >conftest.err
14858   rm -f conftest.er1
14859   cat conftest.err >&5
14860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861   (exit $ac_status); } >/dev/null; then
14862   if test -s conftest.err; then
14863     ac_cpp_err=$ac_c_preproc_warn_flag
14864     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14865   else
14866     ac_cpp_err=
14867   fi
14868 else
14869   ac_cpp_err=yes
14870 fi
14871 if test -z "$ac_cpp_err"; then
14872   ac_header_preproc=yes
14873 else
14874   echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14876
14877   ac_header_preproc=no
14878 fi
14879 rm -f conftest.err conftest.$ac_ext
14880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14881 echo "${ECHO_T}$ac_header_preproc" >&6
14882
14883 # So?  What about this header?
14884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14885   yes:no: )
14886     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14890     ac_header_preproc=yes
14891     ;;
14892   no:yes:* )
14893     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14895     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14896 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14897     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14899     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14900 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14903     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14905     (
14906       cat <<\_ASBOX
14907 ## ------------------------------------------ ##
14908 ## Report this to the AC_PACKAGE_NAME lists.  ##
14909 ## ------------------------------------------ ##
14910 _ASBOX
14911     ) |
14912       sed "s/^/$as_me: WARNING:     /" >&2
14913     ;;
14914 esac
14915 echo "$as_me:$LINENO: checking for $ac_header" >&5
14916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14918   echo $ECHO_N "(cached) $ECHO_C" >&6
14919 else
14920   eval "$as_ac_Header=\$ac_header_preproc"
14921 fi
14922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14924
14925 fi
14926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14927   cat >>confdefs.h <<_ACEOF
14928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14929 _ACEOF
14930
14931 fi
14932
14933 done
14934
14935
14936 # End of readline/conio stuff
14937 # -----------------------------------------------------------------------
14938
14939 # -----------------------------------------------------------------------
14940 #  Check for Python support
14941 #
14942 echo "$as_me:$LINENO: checking for Python support" >&5
14943 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
14944
14945 # Check whether --with-python or --without-python was given.
14946 if test "${with_python+set}" = set; then
14947   withval="$with_python"
14948
14949   PYTHON_INCDIR=
14950   PYTHON_LIBS=
14951   if test "$withval" != "no"; then
14952      if test "$withval" = "yes"; then
14953         for python_root in /usr /usr/local /usr/sfw; do
14954           if test -f $python_root/include/python2.2/Python.h; then
14955              PYTHON_INCDIR=-I$python_root/include/python2.2
14956              PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
14957              break
14958           elif test -f $python_root/include/python2.3/Python.h; then
14959              PYTHON_INCDIR=-I$python_root/include/python2.3
14960              PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
14961              break
14962           elif test -f $python_root/include/python2.4/Python.h; then
14963              PYTHON_INCDIR=-I$python_root/include/python2.4
14964              PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
14965              break
14966           fi
14967         done
14968         if test x$PYTHON_INCDIR = x; then
14969           if test -f $prefix/include/Python.h; then
14970              PYTHON_INCDIR=-I$prefix/include
14971              PYTHON_LIBS="-L$prefix/lib/config -lpython"
14972           else
14973            echo "$as_me:$LINENO: result: no" >&5
14974 echo "${ECHO_T}no" >&6
14975            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
14976 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
14977    { (exit 1); exit 1; }; }
14978           fi
14979         fi
14980      else
14981         if test -f $withval/Python.h; then
14982            PYTHON_INCDIR=-I$withval
14983            PYTHON_LIBS="-L$withval/config -lpython"
14984         elif test -f $withval/include/Python.h; then
14985            PYTHON_INCDIR=-I$withval/include
14986            PYTHON_LIBS="-L$withval/lib/config -lpython"
14987         elif test -f $withval/include/python/Python.h; then
14988            PYTHON_INCDIR=-I$withval/include/python
14989            PYTHON_LIBS="-L$withval/lib/python/config -lpython"
14990         else
14991            echo "$as_me:$LINENO: result: no" >&5
14992 echo "${ECHO_T}no" >&6
14993            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
14994 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
14995    { (exit 1); exit 1; }; }
14996         fi
14997      fi
14998      cat >>confdefs.h <<\_ACEOF
14999 #define HAVE_PYTHON 1
15000 _ACEOF
15001
15002      echo "$as_me:$LINENO: result: yes" >&5
15003 echo "${ECHO_T}yes" >&6
15004      support_python=yes
15005      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15006 echo "$as_me: checking for more Python libs" >&6;}
15007      saved_LIBS="$LIBS"; LIBS=
15008      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15009 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15010 if test "${ac_cv_search_shm_open+set}" = set; then
15011   echo $ECHO_N "(cached) $ECHO_C" >&6
15012 else
15013   ac_func_search_save_LIBS=$LIBS
15014 ac_cv_search_shm_open=no
15015 cat >conftest.$ac_ext <<_ACEOF
15016 /* confdefs.h.  */
15017 _ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h.  */
15021
15022 /* Override any gcc2 internal prototype to avoid an error.  */
15023 #ifdef __cplusplus
15024 extern "C"
15025 #endif
15026 /* We use char because int might match the return type of a gcc2
15027    builtin and then its argument prototype would still apply.  */
15028 char shm_open ();
15029 int
15030 main ()
15031 {
15032 shm_open ();
15033   ;
15034   return 0;
15035 }
15036 _ACEOF
15037 rm -f conftest.$ac_objext conftest$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039   (eval $ac_link) 2>conftest.er1
15040   ac_status=$?
15041   grep -v '^ *+' conftest.er1 >conftest.err
15042   rm -f conftest.er1
15043   cat conftest.err >&5
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); } &&
15046          { ac_try='test -z "$ac_c_werror_flag"
15047                          || test ! -s conftest.err'
15048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049   (eval $ac_try) 2>&5
15050   ac_status=$?
15051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052   (exit $ac_status); }; } &&
15053          { ac_try='test -s conftest$ac_exeext'
15054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055   (eval $ac_try) 2>&5
15056   ac_status=$?
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); }; }; then
15059   ac_cv_search_shm_open="none required"
15060 else
15061   echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15063
15064 fi
15065 rm -f conftest.err conftest.$ac_objext \
15066       conftest$ac_exeext conftest.$ac_ext
15067 if test "$ac_cv_search_shm_open" = no; then
15068   for ac_lib in rt; do
15069     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15070     cat >conftest.$ac_ext <<_ACEOF
15071 /* confdefs.h.  */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h.  */
15076
15077 /* Override any gcc2 internal prototype to avoid an error.  */
15078 #ifdef __cplusplus
15079 extern "C"
15080 #endif
15081 /* We use char because int might match the return type of a gcc2
15082    builtin and then its argument prototype would still apply.  */
15083 char shm_open ();
15084 int
15085 main ()
15086 {
15087 shm_open ();
15088   ;
15089   return 0;
15090 }
15091 _ACEOF
15092 rm -f conftest.$ac_objext conftest$ac_exeext
15093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15094   (eval $ac_link) 2>conftest.er1
15095   ac_status=$?
15096   grep -v '^ *+' conftest.er1 >conftest.err
15097   rm -f conftest.er1
15098   cat conftest.err >&5
15099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); } &&
15101          { ac_try='test -z "$ac_c_werror_flag"
15102                          || test ! -s conftest.err'
15103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104   (eval $ac_try) 2>&5
15105   ac_status=$?
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); }; } &&
15108          { ac_try='test -s conftest$ac_exeext'
15109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110   (eval $ac_try) 2>&5
15111   ac_status=$?
15112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   (exit $ac_status); }; }; then
15114   ac_cv_search_shm_open="-l$ac_lib"
15115 break
15116 else
15117   echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15119
15120 fi
15121 rm -f conftest.err conftest.$ac_objext \
15122       conftest$ac_exeext conftest.$ac_ext
15123   done
15124 fi
15125 LIBS=$ac_func_search_save_LIBS
15126 fi
15127 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15128 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15129 if test "$ac_cv_search_shm_open" != no; then
15130   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15131
15132 fi
15133
15134
15135 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15136 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15137 if test "${ac_cv_lib_util_openpty+set}" = set; then
15138   echo $ECHO_N "(cached) $ECHO_C" >&6
15139 else
15140   ac_check_lib_save_LIBS=$LIBS
15141 LIBS="-lutil  $LIBS"
15142 cat >conftest.$ac_ext <<_ACEOF
15143 /* confdefs.h.  */
15144 _ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h.  */
15148
15149 /* Override any gcc2 internal prototype to avoid an error.  */
15150 #ifdef __cplusplus
15151 extern "C"
15152 #endif
15153 /* We use char because int might match the return type of a gcc2
15154    builtin and then its argument prototype would still apply.  */
15155 char openpty ();
15156 int
15157 main ()
15158 {
15159 openpty ();
15160   ;
15161   return 0;
15162 }
15163 _ACEOF
15164 rm -f conftest.$ac_objext conftest$ac_exeext
15165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15166   (eval $ac_link) 2>conftest.er1
15167   ac_status=$?
15168   grep -v '^ *+' conftest.er1 >conftest.err
15169   rm -f conftest.er1
15170   cat conftest.err >&5
15171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   (exit $ac_status); } &&
15173          { ac_try='test -z "$ac_c_werror_flag"
15174                          || test ! -s conftest.err'
15175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15176   (eval $ac_try) 2>&5
15177   ac_status=$?
15178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179   (exit $ac_status); }; } &&
15180          { ac_try='test -s conftest$ac_exeext'
15181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182   (eval $ac_try) 2>&5
15183   ac_status=$?
15184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185   (exit $ac_status); }; }; then
15186   ac_cv_lib_util_openpty=yes
15187 else
15188   echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15190
15191 ac_cv_lib_util_openpty=no
15192 fi
15193 rm -f conftest.err conftest.$ac_objext \
15194       conftest$ac_exeext conftest.$ac_ext
15195 LIBS=$ac_check_lib_save_LIBS
15196 fi
15197 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15198 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15199 if test $ac_cv_lib_util_openpty = yes; then
15200   cat >>confdefs.h <<_ACEOF
15201 #define HAVE_LIBUTIL 1
15202 _ACEOF
15203
15204   LIBS="-lutil $LIBS"
15205
15206 fi
15207
15208      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15209      LIBS="$saved_LIBS"
15210   else
15211      echo "$as_me:$LINENO: result: no" >&5
15212 echo "${ECHO_T}no" >&6
15213   fi
15214
15215 else
15216
15217   echo "$as_me:$LINENO: result: no" >&5
15218 echo "${ECHO_T}no" >&6
15219
15220 fi;
15221
15222
15223
15224
15225 #
15226 # Find where sockets are (especially for Solaris)
15227 # Do this before the TCP Wrappers test since tcp wrappers
15228 # uses the socket library and some linkers are stupid.
15229 #
15230 echo "$as_me:$LINENO: checking for socket" >&5
15231 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15232 if test "${ac_cv_func_socket+set}" = set; then
15233   echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235   cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h.  */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h.  */
15241 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15243 #define socket innocuous_socket
15244
15245 /* System header to define __stub macros and hopefully few prototypes,
15246     which can conflict with char socket (); below.
15247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15248     <limits.h> exists even on freestanding compilers.  */
15249
15250 #ifdef __STDC__
15251 # include <limits.h>
15252 #else
15253 # include <assert.h>
15254 #endif
15255
15256 #undef socket
15257
15258 /* Override any gcc2 internal prototype to avoid an error.  */
15259 #ifdef __cplusplus
15260 extern "C"
15261 {
15262 #endif
15263 /* We use char because int might match the return type of a gcc2
15264    builtin and then its argument prototype would still apply.  */
15265 char socket ();
15266 /* The GNU C library defines this for functions which it implements
15267     to always fail with ENOSYS.  Some functions are actually named
15268     something starting with __ and the normal name is an alias.  */
15269 #if defined (__stub_socket) || defined (__stub___socket)
15270 choke me
15271 #else
15272 char (*f) () = socket;
15273 #endif
15274 #ifdef __cplusplus
15275 }
15276 #endif
15277
15278 int
15279 main ()
15280 {
15281 return f != socket;
15282   ;
15283   return 0;
15284 }
15285 _ACEOF
15286 rm -f conftest.$ac_objext conftest$ac_exeext
15287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15288   (eval $ac_link) 2>conftest.er1
15289   ac_status=$?
15290   grep -v '^ *+' conftest.er1 >conftest.err
15291   rm -f conftest.er1
15292   cat conftest.err >&5
15293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294   (exit $ac_status); } &&
15295          { ac_try='test -z "$ac_c_werror_flag"
15296                          || test ! -s conftest.err'
15297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298   (eval $ac_try) 2>&5
15299   ac_status=$?
15300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301   (exit $ac_status); }; } &&
15302          { ac_try='test -s conftest$ac_exeext'
15303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304   (eval $ac_try) 2>&5
15305   ac_status=$?
15306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); }; }; then
15308   ac_cv_func_socket=yes
15309 else
15310   echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15312
15313 ac_cv_func_socket=no
15314 fi
15315 rm -f conftest.err conftest.$ac_objext \
15316       conftest$ac_exeext conftest.$ac_ext
15317 fi
15318 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15319 echo "${ECHO_T}$ac_cv_func_socket" >&6
15320 if test $ac_cv_func_socket = yes; then
15321   echo "$as_me:$LINENO: result: using libc's socket" >&5
15322 echo "${ECHO_T}using libc's socket" >&6
15323 else
15324
15325 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15326 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15327 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15328   echo $ECHO_N "(cached) $ECHO_C" >&6
15329 else
15330   ac_check_lib_save_LIBS=$LIBS
15331 LIBS="-lxnet  $LIBS"
15332 cat >conftest.$ac_ext <<_ACEOF
15333 /* confdefs.h.  */
15334 _ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h.  */
15338
15339 /* Override any gcc2 internal prototype to avoid an error.  */
15340 #ifdef __cplusplus
15341 extern "C"
15342 #endif
15343 /* We use char because int might match the return type of a gcc2
15344    builtin and then its argument prototype would still apply.  */
15345 char socket ();
15346 int
15347 main ()
15348 {
15349 socket ();
15350   ;
15351   return 0;
15352 }
15353 _ACEOF
15354 rm -f conftest.$ac_objext conftest$ac_exeext
15355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15356   (eval $ac_link) 2>conftest.er1
15357   ac_status=$?
15358   grep -v '^ *+' conftest.er1 >conftest.err
15359   rm -f conftest.er1
15360   cat conftest.err >&5
15361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); } &&
15363          { ac_try='test -z "$ac_c_werror_flag"
15364                          || test ! -s conftest.err'
15365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366   (eval $ac_try) 2>&5
15367   ac_status=$?
15368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); }; } &&
15370          { ac_try='test -s conftest$ac_exeext'
15371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372   (eval $ac_try) 2>&5
15373   ac_status=$?
15374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375   (exit $ac_status); }; }; then
15376   ac_cv_lib_xnet_socket=yes
15377 else
15378   echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15380
15381 ac_cv_lib_xnet_socket=no
15382 fi
15383 rm -f conftest.err conftest.$ac_objext \
15384       conftest$ac_exeext conftest.$ac_ext
15385 LIBS=$ac_check_lib_save_LIBS
15386 fi
15387 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15388 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15389 if test $ac_cv_lib_xnet_socket = yes; then
15390   cat >>confdefs.h <<_ACEOF
15391 #define HAVE_LIBXNET 1
15392 _ACEOF
15393
15394   LIBS="-lxnet $LIBS"
15395
15396 fi
15397
15398
15399 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15400 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15401 if test "${ac_cv_lib_socket_socket+set}" = set; then
15402   echo $ECHO_N "(cached) $ECHO_C" >&6
15403 else
15404   ac_check_lib_save_LIBS=$LIBS
15405 LIBS="-lsocket  $LIBS"
15406 cat >conftest.$ac_ext <<_ACEOF
15407 /* confdefs.h.  */
15408 _ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h.  */
15412
15413 /* Override any gcc2 internal prototype to avoid an error.  */
15414 #ifdef __cplusplus
15415 extern "C"
15416 #endif
15417 /* We use char because int might match the return type of a gcc2
15418    builtin and then its argument prototype would still apply.  */
15419 char socket ();
15420 int
15421 main ()
15422 {
15423 socket ();
15424   ;
15425   return 0;
15426 }
15427 _ACEOF
15428 rm -f conftest.$ac_objext conftest$ac_exeext
15429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15430   (eval $ac_link) 2>conftest.er1
15431   ac_status=$?
15432   grep -v '^ *+' conftest.er1 >conftest.err
15433   rm -f conftest.er1
15434   cat conftest.err >&5
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); } &&
15437          { ac_try='test -z "$ac_c_werror_flag"
15438                          || test ! -s conftest.err'
15439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440   (eval $ac_try) 2>&5
15441   ac_status=$?
15442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443   (exit $ac_status); }; } &&
15444          { ac_try='test -s conftest$ac_exeext'
15445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446   (eval $ac_try) 2>&5
15447   ac_status=$?
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); }; }; then
15450   ac_cv_lib_socket_socket=yes
15451 else
15452   echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15454
15455 ac_cv_lib_socket_socket=no
15456 fi
15457 rm -f conftest.err conftest.$ac_objext \
15458       conftest$ac_exeext conftest.$ac_ext
15459 LIBS=$ac_check_lib_save_LIBS
15460 fi
15461 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15462 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15463 if test $ac_cv_lib_socket_socket = yes; then
15464   cat >>confdefs.h <<_ACEOF
15465 #define HAVE_LIBSOCKET 1
15466 _ACEOF
15467
15468   LIBS="-lsocket $LIBS"
15469
15470 fi
15471
15472
15473 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15474 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15475 if test "${ac_cv_lib_inet_socket+set}" = set; then
15476   echo $ECHO_N "(cached) $ECHO_C" >&6
15477 else
15478   ac_check_lib_save_LIBS=$LIBS
15479 LIBS="-linet  $LIBS"
15480 cat >conftest.$ac_ext <<_ACEOF
15481 /* confdefs.h.  */
15482 _ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h.  */
15486
15487 /* Override any gcc2 internal prototype to avoid an error.  */
15488 #ifdef __cplusplus
15489 extern "C"
15490 #endif
15491 /* We use char because int might match the return type of a gcc2
15492    builtin and then its argument prototype would still apply.  */
15493 char socket ();
15494 int
15495 main ()
15496 {
15497 socket ();
15498   ;
15499   return 0;
15500 }
15501 _ACEOF
15502 rm -f conftest.$ac_objext conftest$ac_exeext
15503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15504   (eval $ac_link) 2>conftest.er1
15505   ac_status=$?
15506   grep -v '^ *+' conftest.er1 >conftest.err
15507   rm -f conftest.er1
15508   cat conftest.err >&5
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); } &&
15511          { ac_try='test -z "$ac_c_werror_flag"
15512                          || test ! -s conftest.err'
15513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514   (eval $ac_try) 2>&5
15515   ac_status=$?
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); }; } &&
15518          { ac_try='test -s conftest$ac_exeext'
15519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15520   (eval $ac_try) 2>&5
15521   ac_status=$?
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); }; }; then
15524   ac_cv_lib_inet_socket=yes
15525 else
15526   echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15528
15529 ac_cv_lib_inet_socket=no
15530 fi
15531 rm -f conftest.err conftest.$ac_objext \
15532       conftest$ac_exeext conftest.$ac_ext
15533 LIBS=$ac_check_lib_save_LIBS
15534 fi
15535 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15536 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15537 if test $ac_cv_lib_inet_socket = yes; then
15538   cat >>confdefs.h <<_ACEOF
15539 #define HAVE_LIBINET 1
15540 _ACEOF
15541
15542   LIBS="-linet $LIBS"
15543
15544 fi
15545
15546 fi
15547
15548
15549
15550 # -----------------------------------------------------------
15551 # Check whether user wants TCP wrappers support (default off)
15552 # -----------------------------------------------------------
15553 TCPW_MSG="no"
15554 WRAPLIBS=""
15555
15556 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15557 if test "${with_tcp_wrappers+set}" = set; then
15558   withval="$with_tcp_wrappers"
15559
15560     if test "x$withval" != "xno" ; then
15561        saved_LIBS="$LIBS"
15562        LIBS="$saved_LIBS -lwrap"
15563        echo "$as_me:$LINENO: checking for libwrap" >&5
15564 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15565        echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15566 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15567 if test "${ac_cv_search_nanosleep+set}" = set; then
15568   echo $ECHO_N "(cached) $ECHO_C" >&6
15569 else
15570   ac_func_search_save_LIBS=$LIBS
15571 ac_cv_search_nanosleep=no
15572 cat >conftest.$ac_ext <<_ACEOF
15573 /* confdefs.h.  */
15574 _ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h.  */
15578
15579 /* Override any gcc2 internal prototype to avoid an error.  */
15580 #ifdef __cplusplus
15581 extern "C"
15582 #endif
15583 /* We use char because int might match the return type of a gcc2
15584    builtin and then its argument prototype would still apply.  */
15585 char nanosleep ();
15586 int
15587 main ()
15588 {
15589 nanosleep ();
15590   ;
15591   return 0;
15592 }
15593 _ACEOF
15594 rm -f conftest.$ac_objext conftest$ac_exeext
15595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15596   (eval $ac_link) 2>conftest.er1
15597   ac_status=$?
15598   grep -v '^ *+' conftest.er1 >conftest.err
15599   rm -f conftest.er1
15600   cat conftest.err >&5
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); } &&
15603          { ac_try='test -z "$ac_c_werror_flag"
15604                          || test ! -s conftest.err'
15605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606   (eval $ac_try) 2>&5
15607   ac_status=$?
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); }; } &&
15610          { ac_try='test -s conftest$ac_exeext'
15611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612   (eval $ac_try) 2>&5
15613   ac_status=$?
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); }; }; then
15616   ac_cv_search_nanosleep="none required"
15617 else
15618   echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15620
15621 fi
15622 rm -f conftest.err conftest.$ac_objext \
15623       conftest$ac_exeext conftest.$ac_ext
15624 if test "$ac_cv_search_nanosleep" = no; then
15625   for ac_lib in rt; do
15626     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15627     cat >conftest.$ac_ext <<_ACEOF
15628 /* confdefs.h.  */
15629 _ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h.  */
15633
15634 /* Override any gcc2 internal prototype to avoid an error.  */
15635 #ifdef __cplusplus
15636 extern "C"
15637 #endif
15638 /* We use char because int might match the return type of a gcc2
15639    builtin and then its argument prototype would still apply.  */
15640 char nanosleep ();
15641 int
15642 main ()
15643 {
15644 nanosleep ();
15645   ;
15646   return 0;
15647 }
15648 _ACEOF
15649 rm -f conftest.$ac_objext conftest$ac_exeext
15650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15651   (eval $ac_link) 2>conftest.er1
15652   ac_status=$?
15653   grep -v '^ *+' conftest.er1 >conftest.err
15654   rm -f conftest.er1
15655   cat conftest.err >&5
15656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657   (exit $ac_status); } &&
15658          { ac_try='test -z "$ac_c_werror_flag"
15659                          || test ! -s conftest.err'
15660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661   (eval $ac_try) 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); }; } &&
15665          { ac_try='test -s conftest$ac_exeext'
15666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667   (eval $ac_try) 2>&5
15668   ac_status=$?
15669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670   (exit $ac_status); }; }; then
15671   ac_cv_search_nanosleep="-l$ac_lib"
15672 break
15673 else
15674   echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15676
15677 fi
15678 rm -f conftest.err conftest.$ac_objext \
15679       conftest$ac_exeext conftest.$ac_ext
15680   done
15681 fi
15682 LIBS=$ac_func_search_save_LIBS
15683 fi
15684 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15685 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15686 if test "$ac_cv_search_nanosleep" != no; then
15687   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15688
15689 fi
15690
15691        cat >conftest.$ac_ext <<_ACEOF
15692 /* confdefs.h.  */
15693 _ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h.  */
15697  #include <sys/types.h>
15698             #include <tcpd.h>
15699              int deny_severity = 0;
15700              int allow_severity = 0;
15701              struct request_info *req;
15702 int
15703 main ()
15704 {
15705  hosts_access(req);
15706   ;
15707   return 0;
15708 }
15709 _ACEOF
15710 rm -f conftest.$ac_objext conftest$ac_exeext
15711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15712   (eval $ac_link) 2>conftest.er1
15713   ac_status=$?
15714   grep -v '^ *+' conftest.er1 >conftest.err
15715   rm -f conftest.er1
15716   cat conftest.err >&5
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); } &&
15719          { ac_try='test -z "$ac_c_werror_flag"
15720                          || test ! -s conftest.err'
15721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722   (eval $ac_try) 2>&5
15723   ac_status=$?
15724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725   (exit $ac_status); }; } &&
15726          { ac_try='test -s conftest$ac_exeext'
15727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728   (eval $ac_try) 2>&5
15729   ac_status=$?
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); }; }; then
15732
15733             echo "$as_me:$LINENO: result: yes" >&5
15734 echo "${ECHO_T}yes" >&6
15735             cat >>confdefs.h <<\_ACEOF
15736 #define HAVE_LIBWRAP 1
15737 _ACEOF
15738
15739             TCPW_MSG="yes"
15740             LIBS="$saved_LIBS"
15741             WRAPLIBS="-lwrap"
15742
15743 else
15744   echo "$as_me: failed program was:" >&5
15745 sed 's/^/| /' conftest.$ac_ext >&5
15746
15747
15748             LIBS="$saved_LIBS -lwrap -lnsl"
15749             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15750             cat >conftest.$ac_ext <<_ACEOF
15751 /* confdefs.h.  */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h.  */
15756  #include <sys/types.h>
15757                  #include <tcpd.h>
15758                  int deny_severity = 0;
15759                  int allow_severity = 0;
15760                  struct request_info *req;
15761 int
15762 main ()
15763 {
15764  hosts_access(req);
15765   ;
15766   return 0;
15767 }
15768 _ACEOF
15769 rm -f conftest.$ac_objext conftest$ac_exeext
15770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15771   (eval $ac_link) 2>conftest.er1
15772   ac_status=$?
15773   grep -v '^ *+' conftest.er1 >conftest.err
15774   rm -f conftest.er1
15775   cat conftest.err >&5
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); } &&
15778          { ac_try='test -z "$ac_c_werror_flag"
15779                          || test ! -s conftest.err'
15780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781   (eval $ac_try) 2>&5
15782   ac_status=$?
15783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784   (exit $ac_status); }; } &&
15785          { ac_try='test -s conftest$ac_exeext'
15786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787   (eval $ac_try) 2>&5
15788   ac_status=$?
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); }; }; then
15791
15792                  echo "$as_me:$LINENO: result: yes" >&5
15793 echo "${ECHO_T}yes" >&6
15794                  cat >>confdefs.h <<\_ACEOF
15795 #define HAVE_LIBWRAP 1
15796 _ACEOF
15797
15798                  TCPW_MSG="yes"
15799                  LIBS="$saved_LIBS"
15800                  WRAPLIBS="-lwrap"
15801
15802 else
15803   echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15805
15806 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15807 echo "$as_me: error: *** libwrap missing" >&2;}
15808    { (exit 1); exit 1; }; }
15809
15810 fi
15811 rm -f conftest.err conftest.$ac_objext \
15812       conftest$ac_exeext conftest.$ac_ext
15813
15814 fi
15815 rm -f conftest.err conftest.$ac_objext \
15816       conftest$ac_exeext conftest.$ac_ext
15817     fi
15818
15819
15820 fi;
15821
15822 # -----------------------------------------------------------
15823 # Check whether OpenSSL is available
15824 # -----------------------------------------------------------
15825 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15826 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15827
15828 # Check whether --with-openssl or --without-openssl was given.
15829 if test "${with_openssl+set}" = set; then
15830   withval="$with_openssl"
15831   with_openssl_directory=${withval}
15832 fi;
15833
15834 if test "x$with_openssl_directory" != "x"; then
15835         OPENSSL_LIBS="-lssl -lcrypto"
15836         OPENSSL_INC=""
15837
15838         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15839                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15840                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15841         fi
15842
15843         saved_LIBS="$LIBS"
15844         saved_CFLAGS="$CFLAGS"
15845         LIBS="$saved_LIBS $OPENSSL_LIBS"
15846         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
15847
15848         cat >conftest.$ac_ext <<_ACEOF
15849 /* confdefs.h.  */
15850 _ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h.  */
15854  #include <openssl/ssl.h>
15855 int
15856 main ()
15857 {
15858  CRYPTO_set_id_callback(NULL);
15859   ;
15860   return 0;
15861 }
15862 _ACEOF
15863 rm -f conftest.$ac_objext conftest$ac_exeext
15864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15865   (eval $ac_link) 2>conftest.er1
15866   ac_status=$?
15867   grep -v '^ *+' conftest.er1 >conftest.err
15868   rm -f conftest.er1
15869   cat conftest.err >&5
15870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871   (exit $ac_status); } &&
15872          { ac_try='test -z "$ac_c_werror_flag"
15873                          || test ! -s conftest.err'
15874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875   (eval $ac_try) 2>&5
15876   ac_status=$?
15877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878   (exit $ac_status); }; } &&
15879          { ac_try='test -s conftest$ac_exeext'
15880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881   (eval $ac_try) 2>&5
15882   ac_status=$?
15883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884   (exit $ac_status); }; }; then
15885
15886                         support_tls="yes"
15887                         support_crypto="yes"
15888
15889 else
15890   echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15892
15893  support_tls="no"
15894
15895 fi
15896 rm -f conftest.err conftest.$ac_objext \
15897       conftest$ac_exeext conftest.$ac_ext
15898
15899         cat >conftest.$ac_ext <<_ACEOF
15900 /* confdefs.h.  */
15901 _ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h.  */
15905  #include <openssl/evp.h>
15906 int
15907 main ()
15908 {
15909  EVP_sha512();
15910   ;
15911   return 0;
15912 }
15913 _ACEOF
15914 rm -f conftest.$ac_objext conftest$ac_exeext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15916   (eval $ac_link) 2>conftest.er1
15917   ac_status=$?
15918   grep -v '^ *+' conftest.er1 >conftest.err
15919   rm -f conftest.er1
15920   cat conftest.err >&5
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); } &&
15923          { ac_try='test -z "$ac_c_werror_flag"
15924                          || test ! -s conftest.err'
15925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926   (eval $ac_try) 2>&5
15927   ac_status=$?
15928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929   (exit $ac_status); }; } &&
15930          { ac_try='test -s conftest$ac_exeext'
15931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932   (eval $ac_try) 2>&5
15933   ac_status=$?
15934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935   (exit $ac_status); }; }; then
15936    ac_cv_openssl_sha2="yes"
15937 else
15938   echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15940
15941  ac_cv_openssl_sha2="no"
15942
15943 fi
15944 rm -f conftest.err conftest.$ac_objext \
15945       conftest$ac_exeext conftest.$ac_ext
15946
15947         LIBS="$saved_LIBS"
15948         CFLAGS="$saved_CFLAGS"
15949
15950         if test "$support_tls" = "yes"; then
15951
15952 cat >>confdefs.h <<\_ACEOF
15953 #define HAVE_OPENSSL 1
15954 _ACEOF
15955
15956
15957 cat >>confdefs.h <<\_ACEOF
15958 #define HAVE_TLS 1
15959 _ACEOF
15960
15961
15962 cat >>confdefs.h <<\_ACEOF
15963 #define HAVE_CRYPTO 1
15964 _ACEOF
15965
15966         fi
15967
15968         if test "$ac_cv_openssl_sha2" = "yes"; then
15969
15970 cat >>confdefs.h <<\_ACEOF
15971 #define HAVE_SHA2 1
15972 _ACEOF
15973
15974         fi
15975 else
15976         support_tls="no"
15977         support_crypto="no"
15978         OPENSSL_LIBS=""
15979         OPENSSL_INC=""
15980 fi
15981
15982 echo "$as_me:$LINENO: result: $support_tls" >&5
15983 echo "${ECHO_T}$support_tls" >&6
15984
15985
15986
15987
15988 # -----------------------------------------------------------
15989 # Python and OpenSSL are using dlopen
15990 # -----------------------------------------------------------
15991
15992 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
15993    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15994 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15995 if test "${ac_cv_search_dlopen+set}" = set; then
15996   echo $ECHO_N "(cached) $ECHO_C" >&6
15997 else
15998   ac_func_search_save_LIBS=$LIBS
15999 ac_cv_search_dlopen=no
16000 cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h.  */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h.  */
16006
16007 /* Override any gcc2 internal prototype to avoid an error.  */
16008 #ifdef __cplusplus
16009 extern "C"
16010 #endif
16011 /* We use char because int might match the return type of a gcc2
16012    builtin and then its argument prototype would still apply.  */
16013 char dlopen ();
16014 int
16015 main ()
16016 {
16017 dlopen ();
16018   ;
16019   return 0;
16020 }
16021 _ACEOF
16022 rm -f conftest.$ac_objext conftest$ac_exeext
16023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16024   (eval $ac_link) 2>conftest.er1
16025   ac_status=$?
16026   grep -v '^ *+' conftest.er1 >conftest.err
16027   rm -f conftest.er1
16028   cat conftest.err >&5
16029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030   (exit $ac_status); } &&
16031          { ac_try='test -z "$ac_c_werror_flag"
16032                          || test ! -s conftest.err'
16033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034   (eval $ac_try) 2>&5
16035   ac_status=$?
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); }; } &&
16038          { ac_try='test -s conftest$ac_exeext'
16039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040   (eval $ac_try) 2>&5
16041   ac_status=$?
16042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); }; }; then
16044   ac_cv_search_dlopen="none required"
16045 else
16046   echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16048
16049 fi
16050 rm -f conftest.err conftest.$ac_objext \
16051       conftest$ac_exeext conftest.$ac_ext
16052 if test "$ac_cv_search_dlopen" = no; then
16053   for ac_lib in dl; do
16054     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16055     cat >conftest.$ac_ext <<_ACEOF
16056 /* confdefs.h.  */
16057 _ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h.  */
16061
16062 /* Override any gcc2 internal prototype to avoid an error.  */
16063 #ifdef __cplusplus
16064 extern "C"
16065 #endif
16066 /* We use char because int might match the return type of a gcc2
16067    builtin and then its argument prototype would still apply.  */
16068 char dlopen ();
16069 int
16070 main ()
16071 {
16072 dlopen ();
16073   ;
16074   return 0;
16075 }
16076 _ACEOF
16077 rm -f conftest.$ac_objext conftest$ac_exeext
16078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16079   (eval $ac_link) 2>conftest.er1
16080   ac_status=$?
16081   grep -v '^ *+' conftest.er1 >conftest.err
16082   rm -f conftest.er1
16083   cat conftest.err >&5
16084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085   (exit $ac_status); } &&
16086          { ac_try='test -z "$ac_c_werror_flag"
16087                          || test ! -s conftest.err'
16088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089   (eval $ac_try) 2>&5
16090   ac_status=$?
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); }; } &&
16093          { ac_try='test -s conftest$ac_exeext'
16094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095   (eval $ac_try) 2>&5
16096   ac_status=$?
16097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098   (exit $ac_status); }; }; then
16099   ac_cv_search_dlopen="-l$ac_lib"
16100 break
16101 else
16102   echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16104
16105 fi
16106 rm -f conftest.err conftest.$ac_objext \
16107       conftest$ac_exeext conftest.$ac_ext
16108   done
16109 fi
16110 LIBS=$ac_func_search_save_LIBS
16111 fi
16112 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16113 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16114 if test "$ac_cv_search_dlopen" != no; then
16115   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16116
16117 fi
16118
16119 fi
16120
16121 # ------------------------------------------
16122 # Where to place working dir
16123 # ------------------------------------------
16124 working_dir=`eval echo ${prefix}/var/bacula/working`
16125
16126 # Check whether --with-working-dir or --without-working-dir was given.
16127 if test "${with_working_dir+set}" = set; then
16128   withval="$with_working_dir"
16129
16130        if test "x$withval" != "xno" ; then
16131               working_dir=$withval
16132        fi
16133
16134
16135 fi;
16136
16137
16138
16139
16140 # ------------------------------------------
16141 # Where to place scriptdir (script files)
16142 # ------------------------------------------
16143 scriptdir=`eval echo ${sysconfdir}`
16144
16145 # Check whether --with-scriptdir or --without-scriptdir was given.
16146 if test "${with_scriptdir+set}" = set; then
16147   withval="$with_scriptdir"
16148
16149        if test "x$withval" != "xno" ; then
16150               scriptdir=$withval
16151        fi
16152
16153
16154 fi;
16155
16156
16157
16158
16159 # ------------------------------------------
16160 # Where to send dump email
16161 # ------------------------------------------
16162 dump_email=root@localhost
16163
16164 # Check whether --with-dump-email or --without-dump-email was given.
16165 if test "${with_dump_email+set}" = set; then
16166   withval="$with_dump_email"
16167
16168        if test "x$withval" != "xno" ; then
16169               dump_email=$withval
16170        fi
16171
16172
16173 fi;
16174
16175
16176
16177 # ------------------------------------------
16178 # Where to send job email
16179 # ------------------------------------------
16180 job_email=root@localhost
16181
16182 # Check whether --with-job-email or --without-job-email was given.
16183 if test "${with_job_email+set}" = set; then
16184   withval="$with_job_email"
16185
16186        if test "x$withval" != "xno" ; then
16187               job_email=$withval
16188        fi
16189
16190
16191 fi;
16192
16193
16194
16195 # ------------------------------------------
16196 # Where to find smtp host
16197 # ------------------------------------------
16198 smtp_host=localhost
16199
16200 # Check whether --with-smtp_host or --without-smtp_host was given.
16201 if test "${with_smtp_host+set}" = set; then
16202   withval="$with_smtp_host"
16203
16204        if test "x$withval" != "xno" ; then
16205               smtp_host=$withval
16206        fi
16207
16208
16209 fi;
16210
16211
16212
16213
16214 # ------------------------------------
16215 # Where to place pid files
16216 # ------------------------------------
16217 piddir=/var/run
16218
16219 # Check whether --with-pid-dir or --without-pid-dir was given.
16220 if test "${with_pid_dir+set}" = set; then
16221   withval="$with_pid_dir"
16222
16223         if test "x$withval" != "xno" ; then
16224             piddir=$withval
16225         fi
16226
16227
16228 fi;
16229
16230 cat >>confdefs.h <<_ACEOF
16231 #define _PATH_BACULA_PIDDIR "$piddir"
16232 _ACEOF
16233
16234
16235
16236
16237 # ------------------------------------
16238 # Where to place subsys "lock file"
16239 # ------------------------------------
16240 subsysdir=/var/run/subsys
16241
16242 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16243 if test "${with_subsys_dir+set}" = set; then
16244   withval="$with_subsys_dir"
16245
16246         if test "x$withval" != "xno" ; then
16247             subsysdir=$withval
16248         fi
16249
16250
16251 fi;
16252
16253
16254
16255
16256
16257 # ------------------------------------
16258 # Where to start assigning ports
16259 # ------------------------------------
16260 baseport=9101
16261
16262 # Check whether --with-baseport or --without-baseport was given.
16263 if test "${with_baseport+set}" = set; then
16264   withval="$with_baseport"
16265
16266         if test "x$withval" != "xno" ; then
16267              baseport=$withval
16268         fi
16269
16270
16271 fi;
16272
16273
16274 dir_port=`expr $baseport`
16275 fd_port=`expr $baseport + 1`
16276 sd_port=`expr $fd_port + 1`
16277
16278
16279
16280
16281
16282
16283 # ------------------------------------------
16284 # Generate passwords
16285 # ------------------------------------------
16286 dir_password=
16287
16288 # Check whether --with-dir-password or --without-dir-password was given.
16289 if test "${with_dir_password+set}" = set; then
16290   withval="$with_dir_password"
16291
16292        if test "x$withval" != "xno" ; then
16293            dir_password=$withval
16294        fi
16295
16296
16297 fi;
16298
16299 if test "x$dir_password" = "x" ; then
16300    if test "x$OPENSSL" = "xnone" ; then
16301       key=`autoconf/randpass 33`
16302    else
16303       key=`openssl rand -base64 33`
16304    fi
16305    dir_password=$key
16306 fi
16307
16308 fd_password=
16309
16310 # Check whether --with-fd-password or --without-fd-password was given.
16311 if test "${with_fd_password+set}" = set; then
16312   withval="$with_fd_password"
16313
16314        if test "x$withval" != "xno" ; then
16315            fd_password=$withval
16316        fi
16317
16318
16319 fi;
16320
16321 if test "x$fd_password" = "x" ; then
16322    if test "x$OPENSSL" = "xnone" ; then
16323       key=`autoconf/randpass 37`
16324    else
16325       key=`openssl rand -base64 33`
16326    fi
16327    fd_password=$key
16328 fi
16329
16330 sd_password=
16331
16332 # Check whether --with-sd-password or --without-sd-password was given.
16333 if test "${with_sd_password+set}" = set; then
16334   withval="$with_sd_password"
16335
16336        if test "x$withval" != "xno" ; then
16337            sd_password=$withval
16338        fi
16339
16340
16341 fi;
16342
16343 if test "x$sd_password" = "x" ; then
16344    if test "x$OPENSSL" = "xnone" ; then
16345       key=`autoconf/randpass 41`
16346    else
16347       key=`openssl rand -base64 33`
16348    fi
16349    sd_password=$key
16350 fi
16351
16352 mon_dir_password=
16353
16354 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16355 if test "${with_mon_dir_password+set}" = set; then
16356   withval="$with_mon_dir_password"
16357
16358        if test "x$withval" != "xno" ; then
16359            mon_dir_password=$withval
16360        fi
16361
16362
16363 fi;
16364
16365 if test "x$mon_dir_password" = "x" ; then
16366    if test "x$OPENSSL" = "xnone" ; then
16367       key=`autoconf/randpass 33`
16368    else
16369       key=`openssl rand -base64 33`
16370    fi
16371    mon_dir_password=$key
16372 fi
16373
16374 mon_fd_password=
16375
16376 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16377 if test "${with_mon_fd_password+set}" = set; then
16378   withval="$with_mon_fd_password"
16379
16380        if test "x$withval" != "xno" ; then
16381            mon_fd_password=$withval
16382        fi
16383
16384
16385 fi;
16386
16387 if test "x$mon_fd_password" = "x" ; then
16388    if test "x$OPENSSL" = "xnone" ; then
16389       key=`autoconf/randpass 37`
16390    else
16391       key=`openssl rand -base64 33`
16392    fi
16393    mon_fd_password=$key
16394 fi
16395
16396 mon_sd_password=
16397
16398 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16399 if test "${with_mon_sd_password+set}" = set; then
16400   withval="$with_mon_sd_password"
16401
16402        if test "x$withval" != "xno" ; then
16403            mon_sd_password=$withval
16404        fi
16405
16406
16407 fi;
16408
16409 if test "x$mon_sd_password" = "x" ; then
16410    if test "x$OPENSSL" = "xnone" ; then
16411       key=`autoconf/randpass 41`
16412    else
16413       key=`openssl rand -base64 33`
16414    fi
16415    mon_sd_password=$key
16416 fi
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426 #
16427 # Handle users and groups for each daemon
16428 #
16429 dir_user=
16430
16431 # Check whether --with-dir_user or --without-dir_user was given.
16432 if test "${with_dir_user+set}" = set; then
16433   withval="$with_dir_user"
16434
16435         if test "x$withval" != "x" ; then
16436              dir_user=$withval
16437         fi
16438
16439
16440 fi;
16441
16442 dir_group=
16443
16444 # Check whether --with-dir_group or --without-dir_group was given.
16445 if test "${with_dir_group+set}" = set; then
16446   withval="$with_dir_group"
16447
16448         if test "x$withval" != "x" ; then
16449              dir_group=$withval
16450         fi
16451
16452
16453 fi;
16454
16455 sd_user=
16456
16457 # Check whether --with-sd_user or --without-sd_user was given.
16458 if test "${with_sd_user+set}" = set; then
16459   withval="$with_sd_user"
16460
16461         if test "x$withval" != "x" ; then
16462              sd_user=$withval
16463         fi
16464
16465
16466 fi;
16467
16468 sd_group=
16469
16470 # Check whether --with-sd_group or --without-sd_group was given.
16471 if test "${with_sd_group+set}" = set; then
16472   withval="$with_sd_group"
16473
16474         if test "x$withval" != "x" ; then
16475              sd_group=$withval
16476         fi
16477
16478
16479 fi;
16480
16481 fd_user=
16482
16483 # Check whether --with-fd_user or --without-fd_user was given.
16484 if test "${with_fd_user+set}" = set; then
16485   withval="$with_fd_user"
16486
16487         if test "x$withval" != "x" ; then
16488              fd_user=$withval
16489         fi
16490
16491
16492 fi;
16493
16494 fd_group=
16495
16496 # Check whether --with-fd_group or --without-fd_group was given.
16497 if test "${with_fd_group+set}" = set; then
16498   withval="$with_fd_group"
16499
16500         if test "x$withval" != "x" ; then
16501              fd_group=$withval
16502         fi
16503
16504
16505 fi;
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517 #
16518 # allow setting default executable permissions
16519 #
16520 SBINPERM=0754
16521
16522 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16523 if test "${with_sbin_perm+set}" = set; then
16524   withval="$with_sbin_perm"
16525
16526         if test "x$withval" != "x" ; then
16527             SBINPERM=$withval
16528         fi
16529
16530
16531 fi;
16532
16533
16534
16535 # ------------------------------------------------
16536 # Bacula check for various SQL database engines
16537 # ------------------------------------------------
16538
16539 db_found=no
16540 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16541 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16542
16543 # Check whether --with-postgresql or --without-postgresql was given.
16544 if test "${with_postgresql+set}" = set; then
16545   withval="$with_postgresql"
16546
16547   if test "$withval" != "no"; then
16548       if test "$db_found" = "yes"; then
16549           echo "$as_me:$LINENO: result: error" >&5
16550 echo "${ECHO_T}error" >&6
16551           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16552 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16553    { (exit 1); exit 1; }; };
16554       fi
16555       if test "$withval" = "yes"; then
16556           PG_CONFIG=`which pg_config`
16557           if test -n "$PG_CONFIG";then
16558               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16559               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16560               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16561           elif test -f /usr/local/include/libpq-fe.h; then
16562               POSTGRESQL_INCDIR=/usr/local/include
16563               POSTGRESQL_LIBDIR=/usr/local/lib
16564               POSTGRESQL_BINDIR=/usr/local/bin
16565           elif test -f /usr/include/libpq-fe.h; then
16566               POSTGRESQL_INCDIR=/usr/include
16567               POSTGRESQL_LIBDIR=/usr/lib
16568               POSTGRESQL_BINDIR=/usr/bin
16569           elif test -f /usr/include/pgsql/libpq-fe.h; then
16570               POSTGRESQL_INCDIR=/usr/include/pgsql
16571               POSTGRESQL_LIBDIR=/usr/lib/pgsql
16572               POSTGRESQL_BINDIR=/usr/bin
16573           elif test -f /usr/include/postgresql/libpq-fe.h; then
16574               POSTGRESQL_INCDIR=/usr/include/postgresql
16575               POSTGRESQL_LIBDIR=/usr/lib/postgresql
16576               POSTGRESQL_BINDIR=/usr/bin
16577           else
16578               echo "$as_me:$LINENO: result: no" >&5
16579 echo "${ECHO_T}no" >&6
16580               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16581 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16582    { (exit 1); exit 1; }; }
16583           fi
16584       elif test -f $withval/include/libpq-fe.h; then
16585           POSTGRESQL_INCDIR=$withval/include
16586           POSTGRESQL_LIBDIR=$withval/lib
16587           POSTGRESQL_BINDIR=$withval/bin
16588       elif test -f $withval/include/postgresql/libpq-fe.h; then
16589           POSTGRESQL_INCDIR=$withval/include/postgresql
16590           POSTGRESQL_LIBDIR=$withval/lib
16591           POSTGRESQL_BINDIR=$withval/bin
16592       else
16593           echo "$as_me:$LINENO: result: no" >&5
16594 echo "${ECHO_T}no" >&6
16595           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16596 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16597    { (exit 1); exit 1; }; }
16598       fi
16599       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16600       echo "$as_me:$LINENO: checking for crypt" >&5
16601 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16602 if test "${ac_cv_func_crypt+set}" = set; then
16603   echo $ECHO_N "(cached) $ECHO_C" >&6
16604 else
16605   cat >conftest.$ac_ext <<_ACEOF
16606 /* confdefs.h.  */
16607 _ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h.  */
16611 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16613 #define crypt innocuous_crypt
16614
16615 /* System header to define __stub macros and hopefully few prototypes,
16616     which can conflict with char crypt (); below.
16617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16618     <limits.h> exists even on freestanding compilers.  */
16619
16620 #ifdef __STDC__
16621 # include <limits.h>
16622 #else
16623 # include <assert.h>
16624 #endif
16625
16626 #undef crypt
16627
16628 /* Override any gcc2 internal prototype to avoid an error.  */
16629 #ifdef __cplusplus
16630 extern "C"
16631 {
16632 #endif
16633 /* We use char because int might match the return type of a gcc2
16634    builtin and then its argument prototype would still apply.  */
16635 char crypt ();
16636 /* The GNU C library defines this for functions which it implements
16637     to always fail with ENOSYS.  Some functions are actually named
16638     something starting with __ and the normal name is an alias.  */
16639 #if defined (__stub_crypt) || defined (__stub___crypt)
16640 choke me
16641 #else
16642 char (*f) () = crypt;
16643 #endif
16644 #ifdef __cplusplus
16645 }
16646 #endif
16647
16648 int
16649 main ()
16650 {
16651 return f != crypt;
16652   ;
16653   return 0;
16654 }
16655 _ACEOF
16656 rm -f conftest.$ac_objext conftest$ac_exeext
16657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16658   (eval $ac_link) 2>conftest.er1
16659   ac_status=$?
16660   grep -v '^ *+' conftest.er1 >conftest.err
16661   rm -f conftest.er1
16662   cat conftest.err >&5
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); } &&
16665          { ac_try='test -z "$ac_c_werror_flag"
16666                          || test ! -s conftest.err'
16667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668   (eval $ac_try) 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); }; } &&
16672          { ac_try='test -s conftest$ac_exeext'
16673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674   (eval $ac_try) 2>&5
16675   ac_status=$?
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); }; }; then
16678   ac_cv_func_crypt=yes
16679 else
16680   echo "$as_me: failed program was:" >&5
16681 sed 's/^/| /' conftest.$ac_ext >&5
16682
16683 ac_cv_func_crypt=no
16684 fi
16685 rm -f conftest.err conftest.$ac_objext \
16686       conftest$ac_exeext conftest.$ac_ext
16687 fi
16688 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16689 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16690 if test $ac_cv_func_crypt = yes; then
16691   :
16692 else
16693   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16694 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16695 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16696   echo $ECHO_N "(cached) $ECHO_C" >&6
16697 else
16698   ac_check_lib_save_LIBS=$LIBS
16699 LIBS="-lcrypt  $LIBS"
16700 cat >conftest.$ac_ext <<_ACEOF
16701 /* confdefs.h.  */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h.  */
16706
16707 /* Override any gcc2 internal prototype to avoid an error.  */
16708 #ifdef __cplusplus
16709 extern "C"
16710 #endif
16711 /* We use char because int might match the return type of a gcc2
16712    builtin and then its argument prototype would still apply.  */
16713 char crypt ();
16714 int
16715 main ()
16716 {
16717 crypt ();
16718   ;
16719   return 0;
16720 }
16721 _ACEOF
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16724   (eval $ac_link) 2>conftest.er1
16725   ac_status=$?
16726   grep -v '^ *+' conftest.er1 >conftest.err
16727   rm -f conftest.er1
16728   cat conftest.err >&5
16729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730   (exit $ac_status); } &&
16731          { ac_try='test -z "$ac_c_werror_flag"
16732                          || test ! -s conftest.err'
16733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734   (eval $ac_try) 2>&5
16735   ac_status=$?
16736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737   (exit $ac_status); }; } &&
16738          { ac_try='test -s conftest$ac_exeext'
16739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740   (eval $ac_try) 2>&5
16741   ac_status=$?
16742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743   (exit $ac_status); }; }; then
16744   ac_cv_lib_crypt_crypt=yes
16745 else
16746   echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16748
16749 ac_cv_lib_crypt_crypt=no
16750 fi
16751 rm -f conftest.err conftest.$ac_objext \
16752       conftest$ac_exeext conftest.$ac_ext
16753 LIBS=$ac_check_lib_save_LIBS
16754 fi
16755 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16756 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
16757 if test $ac_cv_lib_crypt_crypt = yes; then
16758   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
16759 fi
16760
16761 fi
16762
16763       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
16764       SQL_LFLAGS=$POSTGRESQL_LFLAGS
16765       SQL_BINDIR=$POSTGRESQL_BINDIR
16766       cat >>confdefs.h <<\_ACEOF
16767 #define HAVE_POSTGRESQL 1
16768 _ACEOF
16769
16770       echo "$as_me:$LINENO: result: yes" >&5
16771 echo "${ECHO_T}yes" >&6
16772       db_found=yes
16773       support_postgresql=yes
16774       db_name=PostgreSQL
16775       DB_NAME=postgresql
16776   else
16777       echo "$as_me:$LINENO: result: no" >&5
16778 echo "${ECHO_T}no" >&6
16779   fi
16780
16781 else
16782
16783   echo "$as_me:$LINENO: result: no" >&5
16784 echo "${ECHO_T}no" >&6
16785
16786 fi;
16787
16788
16789
16790
16791
16792
16793
16794 db_found=no
16795 echo "$as_me:$LINENO: checking for MySQL support" >&5
16796 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
16797
16798 # Check whether --with-mysql or --without-mysql was given.
16799 if test "${with_mysql+set}" = set; then
16800   withval="$with_mysql"
16801
16802   if test "$withval" != "no"; then
16803         if test "$withval" = "yes"; then
16804                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16805                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
16806                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16807                         MYSQL_BINDIR=/usr/local/mysql/bin
16808                 elif test -f /usr/include/mysql/mysql.h; then
16809                         MYSQL_INCDIR=/usr/include/mysql
16810                         MYSQL_LIBDIR=/usr/lib/mysql
16811                         MYSQL_BINDIR=/usr/bin
16812                 elif test -f /usr/include/mysql.h; then
16813                         MYSQL_INCDIR=/usr/include
16814                         MYSQL_LIBDIR=/usr/lib
16815                         MYSQL_BINDIR=/usr/bin
16816                 elif test -f /usr/local/include/mysql/mysql.h; then
16817                         MYSQL_INCDIR=/usr/local/include/mysql
16818                         MYSQL_LIBDIR=/usr/local/lib/mysql
16819                         MYSQL_BINDIR=/usr/local/bin
16820                 elif test -f /usr/local/include/mysql.h; then
16821                         MYSQL_INCDIR=/usr/local/include
16822                         MYSQL_LIBDIR=/usr/local/lib
16823                         MYSQL_BINDIR=/usr/local/bin
16824                 else
16825                    echo "$as_me:$LINENO: result: no" >&5
16826 echo "${ECHO_T}no" >&6
16827                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16828 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16829    { (exit 1); exit 1; }; }
16830                 fi
16831         else
16832                 if test -f $withval/include/mysql/mysql.h; then
16833                         MYSQL_INCDIR=$withval/include/mysql
16834                         MYSQL_LIBDIR=$withval/lib/mysql
16835                         MYSQL_BINDIR=$withval/bin
16836                 elif test -f $withval/include/mysql.h; then
16837                         MYSQL_INCDIR=$withval/include
16838                         MYSQL_LIBDIR=$withval/lib
16839                         MYSQL_BINDIR=$withval/bin
16840                 else
16841                    echo "$as_me:$LINENO: result: no" >&5
16842 echo "${ECHO_T}no" >&6
16843                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16844 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16845    { (exit 1); exit 1; }; }
16846                 fi
16847         fi
16848     SQL_INCLUDE=-I$MYSQL_INCDIR
16849     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
16850        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
16851        cat >>confdefs.h <<\_ACEOF
16852 #define HAVE_THREAD_SAFE_MYSQL 1
16853 _ACEOF
16854
16855     else
16856        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
16857     fi
16858     SQL_BINDIR=$MYSQL_BINDIR
16859
16860     cat >>confdefs.h <<\_ACEOF
16861 #define HAVE_MYSQL 1
16862 _ACEOF
16863
16864     echo "$as_me:$LINENO: result: yes" >&5
16865 echo "${ECHO_T}yes" >&6
16866     db_found=yes
16867     support_mysql=yes
16868     db_name=MySQL
16869     DB_NAME=mysql
16870
16871   else
16872         echo "$as_me:$LINENO: result: no" >&5
16873 echo "${ECHO_T}no" >&6
16874   fi
16875
16876
16877 fi;
16878
16879
16880 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
16881 if test "${with_embedded_mysql+set}" = set; then
16882   withval="$with_embedded_mysql"
16883
16884   if test "$withval" != "no"; then
16885         if test "$withval" = "yes"; then
16886                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16887                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
16888                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16889                         MYSQL_BINDIR=/usr/local/mysql/bin
16890                 elif test -f /usr/include/mysql/mysql.h; then
16891                         MYSQL_INCDIR=/usr/include/mysql
16892                         MYSQL_LIBDIR=/usr/lib/mysql
16893                         MYSQL_BINDIR=/usr/bin
16894                 elif test -f /usr/include/mysql.h; then
16895                         MYSQL_INCDIR=/usr/include
16896                         MYSQL_LIBDIR=/usr/lib
16897                         MYSQL_BINDIR=/usr/bin
16898                 elif test -f /usr/local/include/mysql/mysql.h; then
16899                         MYSQL_INCDIR=/usr/local/include/mysql
16900                         MYSQL_LIBDIR=/usr/local/lib/mysql
16901                         MYSQL_BINDIR=/usr/local/bin
16902                 elif test -f /usr/local/include/mysql.h; then
16903                         MYSQL_INCDIR=/usr/local/include
16904                         MYSQL_LIBDIR=/usr/local/lib
16905                         MYSQL_BINDIR=/usr/local/bin
16906                 else
16907                    echo "$as_me:$LINENO: result: no" >&5
16908 echo "${ECHO_T}no" >&6
16909                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16910 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16911    { (exit 1); exit 1; }; }
16912                 fi
16913         else
16914                 if test -f $withval/include/mysql/mysql.h; then
16915                         MYSQL_INCDIR=$withval/include/mysql
16916                         MYSQL_LIBDIR=$withval/lib/mysql
16917                         MYSQL_BINDIR=$withval/bin
16918                 elif test -f $withval/include/mysql.h; then
16919                         MYSQL_INCDIR=$withval/include
16920                         MYSQL_LIBDIR=$withval/lib
16921                         MYSQL_BINDIR=$withval/bin
16922                 else
16923                    echo "$as_me:$LINENO: result: no" >&5
16924 echo "${ECHO_T}no" >&6
16925                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16926 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16927    { (exit 1); exit 1; }; }
16928                 fi
16929         fi
16930     SQL_INCLUDE=-I$MYSQL_INCDIR
16931     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
16932     SQL_BINDIR=$MYSQL_BINDIR
16933
16934     cat >>confdefs.h <<\_ACEOF
16935 #define HAVE_MYSQL 1
16936 _ACEOF
16937
16938     cat >>confdefs.h <<\_ACEOF
16939 #define HAVE_EMBEDDED_MYSQL 1
16940 _ACEOF
16941
16942     echo "$as_me:$LINENO: result: yes" >&5
16943 echo "${ECHO_T}yes" >&6
16944     db_found=yes
16945     support_mysql=yes
16946     db_name=MySQL
16947     DB_NAME=mysql
16948
16949   else
16950         echo "$as_me:$LINENO: result: no" >&5
16951 echo "${ECHO_T}no" >&6
16952   fi
16953
16954
16955 fi;
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965 db_found=no
16966 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
16967 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
16968
16969 # Check whether --with-sqlite3 or --without-sqlite3 was given.
16970 if test "${with_sqlite3+set}" = set; then
16971   withval="$with_sqlite3"
16972
16973   if test "$withval" != "no"; then
16974      if test "$withval" = "yes"; then
16975         if test -f /usr/local/include/sqlite3.h; then
16976            SQLITE_INCDIR=/usr/local/include
16977            SQLITE_LIBDIR=/usr/local/lib
16978            SQLITE_BINDIR=/usr/local/bin
16979         elif test -f /usr/include/sqlite3.h; then
16980            SQLITE_INCDIR=/usr/include
16981            SQLITE_LIBDIR=/usr/lib
16982            SQLITE_BINDIR=/usr/bin
16983         elif test -f $prefix/include/sqlite3.h; then
16984            SQLITE_INCDIR=$prefix/include
16985            SQLITE_LIBDIR=$prefix/lib
16986            SQLITE_BINDIR=$prefix/bin
16987         else
16988            echo "$as_me:$LINENO: result: no" >&5
16989 echo "${ECHO_T}no" >&6
16990            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
16991 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
16992    { (exit 1); exit 1; }; }
16993         fi
16994      else
16995         if test -f $withval/sqlite3.h; then
16996            SQLITE_INCDIR=$withval
16997            SQLITE_LIBDIR=$withval
16998            SQLITE_BINDIR=$withval
16999         elif test -f $withval/include/sqlite3.h; then
17000            SQLITE_INCDIR=$withval/include
17001            SQLITE_LIBDIR=$withval/lib
17002            SQLITE_BINDIR=$withval/bin
17003         else
17004            echo "$as_me:$LINENO: result: no" >&5
17005 echo "${ECHO_T}no" >&6
17006            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17007 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17008    { (exit 1); exit 1; }; }
17009         fi
17010      fi
17011      SQL_INCLUDE=-I$SQLITE_INCDIR
17012      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17013      SQL_BINDIR=$SQLITE_BINDIR
17014
17015      cat >>confdefs.h <<\_ACEOF
17016 #define HAVE_SQLITE3 1
17017 _ACEOF
17018
17019      echo "$as_me:$LINENO: result: yes" >&5
17020 echo "${ECHO_T}yes" >&6
17021      db_found=yes
17022      support_sqlite3=yes
17023      db_name=SQLite3
17024      DB_NAME=sqlite3
17025
17026   else
17027      echo "$as_me:$LINENO: result: no" >&5
17028 echo "${ECHO_T}no" >&6
17029   fi
17030
17031 else
17032
17033   echo "$as_me:$LINENO: result: no" >&5
17034 echo "${ECHO_T}no" >&6
17035
17036 fi;
17037
17038
17039
17040
17041
17042
17043
17044 db_found=no
17045 echo "$as_me:$LINENO: checking for SQLite support" >&5
17046 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17047
17048 # Check whether --with-sqlite or --without-sqlite was given.
17049 if test "${with_sqlite+set}" = set; then
17050   withval="$with_sqlite"
17051
17052   if test "$withval" != "no"; then
17053      if test "$withval" = "yes"; then
17054         if test -f /usr/local/include/sqlite.h; then
17055            SQLITE_INCDIR=/usr/local/include
17056            SQLITE_LIBDIR=/usr/local/lib
17057            SQLITE_BINDIR=/usr/local/bin
17058         elif test -f /usr/include/sqlite.h; then
17059            SQLITE_INCDIR=/usr/include
17060            SQLITE_LIBDIR=/usr/lib
17061            SQLITE_BINDIR=/usr/bin
17062         elif test -f $prefix/include/sqlite.h; then
17063            SQLITE_INCDIR=$prefix/include
17064            SQLITE_LIBDIR=$prefix/lib
17065            SQLITE_BINDIR=$prefix/bin
17066         else
17067            echo "$as_me:$LINENO: result: no" >&5
17068 echo "${ECHO_T}no" >&6
17069            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17070 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17071    { (exit 1); exit 1; }; }
17072         fi
17073      else
17074         if test -f $withval/sqlite.h; then
17075            SQLITE_INCDIR=$withval
17076            SQLITE_LIBDIR=$withval
17077            SQLITE_BINDIR=$withval
17078         elif test -f $withval/include/sqlite.h; then
17079            SQLITE_INCDIR=$withval/include
17080            SQLITE_LIBDIR=$withval/lib
17081            SQLITE_BINDIR=$withval/bin
17082         else
17083            echo "$as_me:$LINENO: result: no" >&5
17084 echo "${ECHO_T}no" >&6
17085            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17086 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17087    { (exit 1); exit 1; }; }
17088         fi
17089      fi
17090      SQL_INCLUDE=-I$SQLITE_INCDIR
17091      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17092      SQL_BINDIR=$SQLITE_BINDIR
17093
17094      cat >>confdefs.h <<\_ACEOF
17095 #define HAVE_SQLITE 1
17096 _ACEOF
17097
17098      echo "$as_me:$LINENO: result: yes" >&5
17099 echo "${ECHO_T}yes" >&6
17100      db_found=yes
17101      support_sqlite=yes
17102      db_name=SQLite
17103      DB_NAME=sqlite
17104
17105   else
17106      echo "$as_me:$LINENO: result: no" >&5
17107 echo "${ECHO_T}no" >&6
17108   fi
17109
17110 else
17111
17112   echo "$as_me:$LINENO: result: no" >&5
17113 echo "${ECHO_T}no" >&6
17114
17115 fi;
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125 cat >>confdefs.h <<\_ACEOF
17126 #define PROTOTYPES 1
17127 _ACEOF
17128
17129
17130 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17131     if test -z "$CCOPTS"; then
17132         CCOPTS='-g -O2 -Wall'
17133     fi
17134     CFLAGS="$CCOPTS"
17135 fi
17136
17137
17138
17139
17140 largefile_support="no"
17141
17142    # Check whether --enable-largefile or --disable-largefile was given.
17143 if test "${enable_largefile+set}" = set; then
17144   enableval="$enable_largefile"
17145
17146 fi;
17147    if test "$enable_largefile" != no; then
17148      if test -n "$ac_tool_prefix"; then
17149   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17150 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17151 echo "$as_me:$LINENO: checking for $ac_word" >&5
17152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17153 if test "${ac_cv_prog_GETCONF+set}" = set; then
17154   echo $ECHO_N "(cached) $ECHO_C" >&6
17155 else
17156   if test -n "$GETCONF"; then
17157   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17158 else
17159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17160 for as_dir in $PATH
17161 do
17162   IFS=$as_save_IFS
17163   test -z "$as_dir" && as_dir=.
17164   for ac_exec_ext in '' $ac_executable_extensions; do
17165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17166     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17168     break 2
17169   fi
17170 done
17171 done
17172
17173 fi
17174 fi
17175 GETCONF=$ac_cv_prog_GETCONF
17176 if test -n "$GETCONF"; then
17177   echo "$as_me:$LINENO: result: $GETCONF" >&5
17178 echo "${ECHO_T}$GETCONF" >&6
17179 else
17180   echo "$as_me:$LINENO: result: no" >&5
17181 echo "${ECHO_T}no" >&6
17182 fi
17183
17184 fi
17185 if test -z "$ac_cv_prog_GETCONF"; then
17186   ac_ct_GETCONF=$GETCONF
17187   # Extract the first word of "getconf", so it can be a program name with args.
17188 set dummy getconf; ac_word=$2
17189 echo "$as_me:$LINENO: checking for $ac_word" >&5
17190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17191 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17192   echo $ECHO_N "(cached) $ECHO_C" >&6
17193 else
17194   if test -n "$ac_ct_GETCONF"; then
17195   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17196 else
17197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17198 for as_dir in $PATH
17199 do
17200   IFS=$as_save_IFS
17201   test -z "$as_dir" && as_dir=.
17202   for ac_exec_ext in '' $ac_executable_extensions; do
17203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17204     ac_cv_prog_ac_ct_GETCONF="getconf"
17205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17206     break 2
17207   fi
17208 done
17209 done
17210
17211 fi
17212 fi
17213 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17214 if test -n "$ac_ct_GETCONF"; then
17215   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17216 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17217 else
17218   echo "$as_me:$LINENO: result: no" >&5
17219 echo "${ECHO_T}no" >&6
17220 fi
17221
17222   GETCONF=$ac_ct_GETCONF
17223 else
17224   GETCONF="$ac_cv_prog_GETCONF"
17225 fi
17226
17227      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17228 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17229 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17230   echo $ECHO_N "(cached) $ECHO_C" >&6
17231 else
17232   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17233         ac_cv_sys_largefile_CFLAGS=no
17234         case "$host_os" in
17235            # IRIX 6.2 and later require cc -n32.
17236            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17237              if test "$GCC" != yes; then
17238                ac_cv_sys_largefile_CFLAGS=-n32
17239              fi
17240              ac_save_CC="$CC"
17241              CC="$CC $ac_cv_sys_largefile_CFLAGS"
17242              cat >conftest.$ac_ext <<_ACEOF
17243 /* confdefs.h.  */
17244 _ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h.  */
17248
17249 int
17250 main ()
17251 {
17252
17253   ;
17254   return 0;
17255 }
17256 _ACEOF
17257 rm -f conftest.$ac_objext conftest$ac_exeext
17258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17259   (eval $ac_link) 2>conftest.er1
17260   ac_status=$?
17261   grep -v '^ *+' conftest.er1 >conftest.err
17262   rm -f conftest.er1
17263   cat conftest.err >&5
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); } &&
17266          { ac_try='test -z "$ac_c_werror_flag"
17267                          || test ! -s conftest.err'
17268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269   (eval $ac_try) 2>&5
17270   ac_status=$?
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); }; } &&
17273          { ac_try='test -s conftest$ac_exeext'
17274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275   (eval $ac_try) 2>&5
17276   ac_status=$?
17277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278   (exit $ac_status); }; }; then
17279   :
17280 else
17281   echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17283
17284 ac_cv_sys_largefile_CFLAGS=no
17285 fi
17286 rm -f conftest.err conftest.$ac_objext \
17287       conftest$ac_exeext conftest.$ac_ext
17288              CC="$ac_save_CC"
17289            esac
17290       }
17291 fi
17292 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17293 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17294      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17295 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17296 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17297   echo $ECHO_N "(cached) $ECHO_C" >&6
17298 else
17299   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17300         ac_cv_sys_largefile_LDFLAGS=no
17301
17302       }
17303 fi
17304 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17305 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17306      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17307 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17308 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17309   echo $ECHO_N "(cached) $ECHO_C" >&6
17310 else
17311   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17312         ac_cv_sys_largefile_LIBS=no
17313
17314       }
17315 fi
17316 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17317 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17318
17319      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17320        case "$ac_flag" in
17321        no) ;;
17322        -D_FILE_OFFSET_BITS=*) ;;
17323        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17324        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17325        -D?* | -I?*)
17326          case "$ac_flag" in
17327    no) ;;
17328    ?*)
17329      case "$CPPFLAGS" in
17330      '') CPPFLAGS="$ac_flag" ;;
17331      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17332      esac ;;
17333    esac ;;
17334        *)
17335          case "$ac_flag" in
17336    no) ;;
17337    ?*)
17338      case "$CFLAGS" in
17339      '') CFLAGS="$ac_flag" ;;
17340      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17341      esac ;;
17342    esac ;;
17343        esac
17344      done
17345      case "$ac_cv_sys_largefile_LDFLAGS" in
17346    no) ;;
17347    ?*)
17348      case "$LDFLAGS" in
17349      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17350      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17351      esac ;;
17352    esac
17353      case "$ac_cv_sys_largefile_LIBS" in
17354    no) ;;
17355    ?*)
17356      case "$LIBS" in
17357      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17358      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17359      esac ;;
17360    esac
17361      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17362 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17363 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17364   echo $ECHO_N "(cached) $ECHO_C" >&6
17365 else
17366   ac_cv_sys_file_offset_bits=no
17367       ac_cv_sys_file_offset_bits=64
17368       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17369         case "$ac_flag" in
17370         -D_FILE_OFFSET_BITS)
17371           ac_cv_sys_file_offset_bits=1 ;;
17372         -D_FILE_OFFSET_BITS=*)
17373           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17374         esac
17375       done
17376
17377 fi
17378 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17379 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17380    if test "$ac_cv_sys_file_offset_bits" != no; then
17381
17382 cat >>confdefs.h <<_ACEOF
17383 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17384 _ACEOF
17385
17386    fi
17387      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17388 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17389 if test "${ac_cv_sys_largefile_source+set}" = set; then
17390   echo $ECHO_N "(cached) $ECHO_C" >&6
17391 else
17392   ac_cv_sys_largefile_source=no
17393       ac_cv_sys_largefile_source=1
17394       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17395         case "$ac_flag" in
17396         -D_LARGEFILE_SOURCE)
17397           ac_cv_sys_largefile_source=1 ;;
17398         -D_LARGEFILE_SOURCE=*)
17399           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17400         esac
17401       done
17402
17403 fi
17404 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17405 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17406    if test "$ac_cv_sys_largefile_source" != no; then
17407
17408 cat >>confdefs.h <<_ACEOF
17409 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17410 _ACEOF
17411
17412    fi
17413      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17414 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17415 if test "${ac_cv_sys_large_files+set}" = set; then
17416   echo $ECHO_N "(cached) $ECHO_C" >&6
17417 else
17418   ac_cv_sys_large_files=no
17419       ac_cv_sys_large_files=1
17420       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17421         case "$ac_flag" in
17422         -D_LARGE_FILES)
17423           ac_cv_sys_large_files=1 ;;
17424         -D_LARGE_FILES=*)
17425           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17426         esac
17427       done
17428
17429 fi
17430 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17431 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17432    if test "$ac_cv_sys_large_files" != no; then
17433
17434 cat >>confdefs.h <<_ACEOF
17435 #define _LARGE_FILES $ac_cv_sys_large_files
17436 _ACEOF
17437
17438    fi
17439    fi
17440
17441
17442
17443 echo "$as_me:$LINENO: checking for X" >&5
17444 echo $ECHO_N "checking for X... $ECHO_C" >&6
17445
17446
17447 # Check whether --with-x or --without-x was given.
17448 if test "${with_x+set}" = set; then
17449   withval="$with_x"
17450
17451 fi;
17452 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17453 if test "x$with_x" = xno; then
17454   # The user explicitly disabled X.
17455   have_x=disabled
17456 else
17457   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17458     # Both variables are already set.
17459     have_x=yes
17460   else
17461     if test "${ac_cv_have_x+set}" = set; then
17462   echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464   # One or both of the vars are not set, and there is no cached value.
17465 ac_x_includes=no ac_x_libraries=no
17466 rm -fr conftest.dir
17467 if mkdir conftest.dir; then
17468   cd conftest.dir
17469   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17470   cat >Imakefile <<'_ACEOF'
17471 acfindx:
17472         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17473 _ACEOF
17474   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17475     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17476     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17477     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17478     for ac_extension in a so sl; do
17479       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17480          test -f $ac_im_libdir/libX11.$ac_extension; then
17481         ac_im_usrlibdir=$ac_im_libdir; break
17482       fi
17483     done
17484     # Screen out bogus values from the imake configuration.  They are
17485     # bogus both because they are the default anyway, and because
17486     # using them would break gcc on systems where it needs fixed includes.
17487     case $ac_im_incroot in
17488         /usr/include) ;;
17489         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17490     esac
17491     case $ac_im_usrlibdir in
17492         /usr/lib | /lib) ;;
17493         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17494     esac
17495   fi
17496   cd ..
17497   rm -fr conftest.dir
17498 fi
17499
17500 # Standard set of common directories for X headers.
17501 # Check X11 before X11Rn because it is often a symlink to the current release.
17502 ac_x_header_dirs='
17503 /usr/X11/include
17504 /usr/X11R6/include
17505 /usr/X11R5/include
17506 /usr/X11R4/include
17507
17508 /usr/include/X11
17509 /usr/include/X11R6
17510 /usr/include/X11R5
17511 /usr/include/X11R4
17512
17513 /usr/local/X11/include
17514 /usr/local/X11R6/include
17515 /usr/local/X11R5/include
17516 /usr/local/X11R4/include
17517
17518 /usr/local/include/X11
17519 /usr/local/include/X11R6
17520 /usr/local/include/X11R5
17521 /usr/local/include/X11R4
17522
17523 /usr/X386/include
17524 /usr/x386/include
17525 /usr/XFree86/include/X11
17526
17527 /usr/include
17528 /usr/local/include
17529 /usr/unsupported/include
17530 /usr/athena/include
17531 /usr/local/x11r5/include
17532 /usr/lpp/Xamples/include
17533
17534 /usr/openwin/include
17535 /usr/openwin/share/include'
17536
17537 if test "$ac_x_includes" = no; then
17538   # Guess where to find include files, by looking for Intrinsic.h.
17539   # First, try using that file with no special directory specified.
17540   cat >conftest.$ac_ext <<_ACEOF
17541 /* confdefs.h.  */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h.  */
17546 #include <X11/Intrinsic.h>
17547 _ACEOF
17548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17550   ac_status=$?
17551   grep -v '^ *+' conftest.er1 >conftest.err
17552   rm -f conftest.er1
17553   cat conftest.err >&5
17554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555   (exit $ac_status); } >/dev/null; then
17556   if test -s conftest.err; then
17557     ac_cpp_err=$ac_c_preproc_warn_flag
17558     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17559   else
17560     ac_cpp_err=
17561   fi
17562 else
17563   ac_cpp_err=yes
17564 fi
17565 if test -z "$ac_cpp_err"; then
17566   # We can compile using X headers with no special include directory.
17567 ac_x_includes=
17568 else
17569   echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17571
17572   for ac_dir in $ac_x_header_dirs; do
17573   if test -r "$ac_dir/X11/Intrinsic.h"; then
17574     ac_x_includes=$ac_dir
17575     break
17576   fi
17577 done
17578 fi
17579 rm -f conftest.err conftest.$ac_ext
17580 fi # $ac_x_includes = no
17581
17582 if test "$ac_x_libraries" = no; then
17583   # Check for the libraries.
17584   # See if we find them without any special options.
17585   # Don't add to $LIBS permanently.
17586   ac_save_LIBS=$LIBS
17587   LIBS="-lXt $LIBS"
17588   cat >conftest.$ac_ext <<_ACEOF
17589 /* confdefs.h.  */
17590 _ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h.  */
17594 #include <X11/Intrinsic.h>
17595 int
17596 main ()
17597 {
17598 XtMalloc (0)
17599   ;
17600   return 0;
17601 }
17602 _ACEOF
17603 rm -f conftest.$ac_objext conftest$ac_exeext
17604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17605   (eval $ac_link) 2>conftest.er1
17606   ac_status=$?
17607   grep -v '^ *+' conftest.er1 >conftest.err
17608   rm -f conftest.er1
17609   cat conftest.err >&5
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); } &&
17612          { ac_try='test -z "$ac_c_werror_flag"
17613                          || test ! -s conftest.err'
17614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615   (eval $ac_try) 2>&5
17616   ac_status=$?
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); }; } &&
17619          { ac_try='test -s conftest$ac_exeext'
17620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621   (eval $ac_try) 2>&5
17622   ac_status=$?
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); }; }; then
17625   LIBS=$ac_save_LIBS
17626 # We can link X programs with no special library path.
17627 ac_x_libraries=
17628 else
17629   echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17631
17632 LIBS=$ac_save_LIBS
17633 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17634 do
17635   # Don't even attempt the hair of trying to link an X program!
17636   for ac_extension in a so sl; do
17637     if test -r $ac_dir/libXt.$ac_extension; then
17638       ac_x_libraries=$ac_dir
17639       break 2
17640     fi
17641   done
17642 done
17643 fi
17644 rm -f conftest.err conftest.$ac_objext \
17645       conftest$ac_exeext conftest.$ac_ext
17646 fi # $ac_x_libraries = no
17647
17648 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
17649   # Didn't find X anywhere.  Cache the known absence of X.
17650   ac_cv_have_x="have_x=no"
17651 else
17652   # Record where we found X for the cache.
17653   ac_cv_have_x="have_x=yes \
17654                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
17655 fi
17656 fi
17657
17658   fi
17659   eval "$ac_cv_have_x"
17660 fi # $with_x != no
17661
17662 if test "$have_x" != yes; then
17663   echo "$as_me:$LINENO: result: $have_x" >&5
17664 echo "${ECHO_T}$have_x" >&6
17665   no_x=yes
17666 else
17667   # If each of the values was on the command line, it overrides each guess.
17668   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17669   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17670   # Update the cache value to reflect the command line values.
17671   ac_cv_have_x="have_x=yes \
17672                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17673   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17674 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
17675 fi
17676
17677 if test "$no_x" = yes; then
17678   # Not all programs may use this symbol, but it does not hurt to define it.
17679
17680 cat >>confdefs.h <<\_ACEOF
17681 #define X_DISPLAY_MISSING 1
17682 _ACEOF
17683
17684   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17685 else
17686   if test -n "$x_includes"; then
17687     X_CFLAGS="$X_CFLAGS -I$x_includes"
17688   fi
17689
17690   # It would also be nice to do this for all -L options, not just this one.
17691   if test -n "$x_libraries"; then
17692     X_LIBS="$X_LIBS -L$x_libraries"
17693     # For Solaris; some versions of Sun CC require a space after -R and
17694     # others require no space.  Words are not sufficient . . . .
17695     case `(uname -sr) 2>/dev/null` in
17696     "SunOS 5"*)
17697       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17698 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17699       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17700       cat >conftest.$ac_ext <<_ACEOF
17701 /* confdefs.h.  */
17702 _ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h.  */
17706
17707 int
17708 main ()
17709 {
17710
17711   ;
17712   return 0;
17713 }
17714 _ACEOF
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17717   (eval $ac_link) 2>conftest.er1
17718   ac_status=$?
17719   grep -v '^ *+' conftest.er1 >conftest.err
17720   rm -f conftest.er1
17721   cat conftest.err >&5
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); } &&
17724          { ac_try='test -z "$ac_c_werror_flag"
17725                          || test ! -s conftest.err'
17726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727   (eval $ac_try) 2>&5
17728   ac_status=$?
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); }; } &&
17731          { ac_try='test -s conftest$ac_exeext'
17732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733   (eval $ac_try) 2>&5
17734   ac_status=$?
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); }; }; then
17737   ac_R_nospace=yes
17738 else
17739   echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17741
17742 ac_R_nospace=no
17743 fi
17744 rm -f conftest.err conftest.$ac_objext \
17745       conftest$ac_exeext conftest.$ac_ext
17746       if test $ac_R_nospace = yes; then
17747         echo "$as_me:$LINENO: result: no" >&5
17748 echo "${ECHO_T}no" >&6
17749         X_LIBS="$X_LIBS -R$x_libraries"
17750       else
17751         LIBS="$ac_xsave_LIBS -R $x_libraries"
17752         cat >conftest.$ac_ext <<_ACEOF
17753 /* confdefs.h.  */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h.  */
17758
17759 int
17760 main ()
17761 {
17762
17763   ;
17764   return 0;
17765 }
17766 _ACEOF
17767 rm -f conftest.$ac_objext conftest$ac_exeext
17768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17769   (eval $ac_link) 2>conftest.er1
17770   ac_status=$?
17771   grep -v '^ *+' conftest.er1 >conftest.err
17772   rm -f conftest.er1
17773   cat conftest.err >&5
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); } &&
17776          { ac_try='test -z "$ac_c_werror_flag"
17777                          || test ! -s conftest.err'
17778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779   (eval $ac_try) 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); }; } &&
17783          { ac_try='test -s conftest$ac_exeext'
17784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785   (eval $ac_try) 2>&5
17786   ac_status=$?
17787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788   (exit $ac_status); }; }; then
17789   ac_R_space=yes
17790 else
17791   echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17793
17794 ac_R_space=no
17795 fi
17796 rm -f conftest.err conftest.$ac_objext \
17797       conftest$ac_exeext conftest.$ac_ext
17798         if test $ac_R_space = yes; then
17799           echo "$as_me:$LINENO: result: yes" >&5
17800 echo "${ECHO_T}yes" >&6
17801           X_LIBS="$X_LIBS -R $x_libraries"
17802         else
17803           echo "$as_me:$LINENO: result: neither works" >&5
17804 echo "${ECHO_T}neither works" >&6
17805         fi
17806       fi
17807       LIBS=$ac_xsave_LIBS
17808     esac
17809   fi
17810
17811   # Check for system-dependent libraries X programs must link with.
17812   # Do this before checking for the system-independent R6 libraries
17813   # (-lICE), since we may need -lsocket or whatever for X linking.
17814
17815   if test "$ISC" = yes; then
17816     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17817   else
17818     # Martyn Johnson says this is needed for Ultrix, if the X
17819     # libraries were built with DECnet support.  And Karl Berry says
17820     # the Alpha needs dnet_stub (dnet does not exist).
17821     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17822     cat >conftest.$ac_ext <<_ACEOF
17823 /* confdefs.h.  */
17824 _ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h.  */
17828
17829 /* Override any gcc2 internal prototype to avoid an error.  */
17830 #ifdef __cplusplus
17831 extern "C"
17832 #endif
17833 /* We use char because int might match the return type of a gcc2
17834    builtin and then its argument prototype would still apply.  */
17835 char XOpenDisplay ();
17836 int
17837 main ()
17838 {
17839 XOpenDisplay ();
17840   ;
17841   return 0;
17842 }
17843 _ACEOF
17844 rm -f conftest.$ac_objext conftest$ac_exeext
17845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17846   (eval $ac_link) 2>conftest.er1
17847   ac_status=$?
17848   grep -v '^ *+' conftest.er1 >conftest.err
17849   rm -f conftest.er1
17850   cat conftest.err >&5
17851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852   (exit $ac_status); } &&
17853          { ac_try='test -z "$ac_c_werror_flag"
17854                          || test ! -s conftest.err'
17855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856   (eval $ac_try) 2>&5
17857   ac_status=$?
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); }; } &&
17860          { ac_try='test -s conftest$ac_exeext'
17861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862   (eval $ac_try) 2>&5
17863   ac_status=$?
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); }; }; then
17866   :
17867 else
17868   echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17870
17871 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
17872 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
17873 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
17874   echo $ECHO_N "(cached) $ECHO_C" >&6
17875 else
17876   ac_check_lib_save_LIBS=$LIBS
17877 LIBS="-ldnet  $LIBS"
17878 cat >conftest.$ac_ext <<_ACEOF
17879 /* confdefs.h.  */
17880 _ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h.  */
17884
17885 /* Override any gcc2 internal prototype to avoid an error.  */
17886 #ifdef __cplusplus
17887 extern "C"
17888 #endif
17889 /* We use char because int might match the return type of a gcc2
17890    builtin and then its argument prototype would still apply.  */
17891 char dnet_ntoa ();
17892 int
17893 main ()
17894 {
17895 dnet_ntoa ();
17896   ;
17897   return 0;
17898 }
17899 _ACEOF
17900 rm -f conftest.$ac_objext conftest$ac_exeext
17901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17902   (eval $ac_link) 2>conftest.er1
17903   ac_status=$?
17904   grep -v '^ *+' conftest.er1 >conftest.err
17905   rm -f conftest.er1
17906   cat conftest.err >&5
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); } &&
17909          { ac_try='test -z "$ac_c_werror_flag"
17910                          || test ! -s conftest.err'
17911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912   (eval $ac_try) 2>&5
17913   ac_status=$?
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); }; } &&
17916          { ac_try='test -s conftest$ac_exeext'
17917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918   (eval $ac_try) 2>&5
17919   ac_status=$?
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); }; }; then
17922   ac_cv_lib_dnet_dnet_ntoa=yes
17923 else
17924   echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.$ac_ext >&5
17926
17927 ac_cv_lib_dnet_dnet_ntoa=no
17928 fi
17929 rm -f conftest.err conftest.$ac_objext \
17930       conftest$ac_exeext conftest.$ac_ext
17931 LIBS=$ac_check_lib_save_LIBS
17932 fi
17933 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17934 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
17935 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
17936   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
17937 fi
17938
17939     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
17940       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
17941 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
17942 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
17943   echo $ECHO_N "(cached) $ECHO_C" >&6
17944 else
17945   ac_check_lib_save_LIBS=$LIBS
17946 LIBS="-ldnet_stub  $LIBS"
17947 cat >conftest.$ac_ext <<_ACEOF
17948 /* confdefs.h.  */
17949 _ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h.  */
17953
17954 /* Override any gcc2 internal prototype to avoid an error.  */
17955 #ifdef __cplusplus
17956 extern "C"
17957 #endif
17958 /* We use char because int might match the return type of a gcc2
17959    builtin and then its argument prototype would still apply.  */
17960 char dnet_ntoa ();
17961 int
17962 main ()
17963 {
17964 dnet_ntoa ();
17965   ;
17966   return 0;
17967 }
17968 _ACEOF
17969 rm -f conftest.$ac_objext conftest$ac_exeext
17970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17971   (eval $ac_link) 2>conftest.er1
17972   ac_status=$?
17973   grep -v '^ *+' conftest.er1 >conftest.err
17974   rm -f conftest.er1
17975   cat conftest.err >&5
17976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977   (exit $ac_status); } &&
17978          { ac_try='test -z "$ac_c_werror_flag"
17979                          || test ! -s conftest.err'
17980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981   (eval $ac_try) 2>&5
17982   ac_status=$?
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); }; } &&
17985          { ac_try='test -s conftest$ac_exeext'
17986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987   (eval $ac_try) 2>&5
17988   ac_status=$?
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); }; }; then
17991   ac_cv_lib_dnet_stub_dnet_ntoa=yes
17992 else
17993   echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17995
17996 ac_cv_lib_dnet_stub_dnet_ntoa=no
17997 fi
17998 rm -f conftest.err conftest.$ac_objext \
17999       conftest$ac_exeext conftest.$ac_ext
18000 LIBS=$ac_check_lib_save_LIBS
18001 fi
18002 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18003 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18004 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18005   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18006 fi
18007
18008     fi
18009 fi
18010 rm -f conftest.err conftest.$ac_objext \
18011       conftest$ac_exeext conftest.$ac_ext
18012     LIBS="$ac_xsave_LIBS"
18013
18014     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18015     # to get the SysV transport functions.
18016     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18017     # needs -lnsl.
18018     # The nsl library prevents programs from opening the X display
18019     # on Irix 5.2, according to T.E. Dickey.
18020     # The functions gethostbyname, getservbyname, and inet_addr are
18021     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18022     echo "$as_me:$LINENO: checking for gethostbyname" >&5
18023 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18024 if test "${ac_cv_func_gethostbyname+set}" = set; then
18025   echo $ECHO_N "(cached) $ECHO_C" >&6
18026 else
18027   cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h.  */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h.  */
18033 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18035 #define gethostbyname innocuous_gethostbyname
18036
18037 /* System header to define __stub macros and hopefully few prototypes,
18038     which can conflict with char gethostbyname (); below.
18039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18040     <limits.h> exists even on freestanding compilers.  */
18041
18042 #ifdef __STDC__
18043 # include <limits.h>
18044 #else
18045 # include <assert.h>
18046 #endif
18047
18048 #undef gethostbyname
18049
18050 /* Override any gcc2 internal prototype to avoid an error.  */
18051 #ifdef __cplusplus
18052 extern "C"
18053 {
18054 #endif
18055 /* We use char because int might match the return type of a gcc2
18056    builtin and then its argument prototype would still apply.  */
18057 char gethostbyname ();
18058 /* The GNU C library defines this for functions which it implements
18059     to always fail with ENOSYS.  Some functions are actually named
18060     something starting with __ and the normal name is an alias.  */
18061 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18062 choke me
18063 #else
18064 char (*f) () = gethostbyname;
18065 #endif
18066 #ifdef __cplusplus
18067 }
18068 #endif
18069
18070 int
18071 main ()
18072 {
18073 return f != gethostbyname;
18074   ;
18075   return 0;
18076 }
18077 _ACEOF
18078 rm -f conftest.$ac_objext conftest$ac_exeext
18079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18080   (eval $ac_link) 2>conftest.er1
18081   ac_status=$?
18082   grep -v '^ *+' conftest.er1 >conftest.err
18083   rm -f conftest.er1
18084   cat conftest.err >&5
18085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086   (exit $ac_status); } &&
18087          { ac_try='test -z "$ac_c_werror_flag"
18088                          || test ! -s conftest.err'
18089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090   (eval $ac_try) 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); }; } &&
18094          { ac_try='test -s conftest$ac_exeext'
18095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096   (eval $ac_try) 2>&5
18097   ac_status=$?
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); }; }; then
18100   ac_cv_func_gethostbyname=yes
18101 else
18102   echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18104
18105 ac_cv_func_gethostbyname=no
18106 fi
18107 rm -f conftest.err conftest.$ac_objext \
18108       conftest$ac_exeext conftest.$ac_ext
18109 fi
18110 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18111 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18112
18113     if test $ac_cv_func_gethostbyname = no; then
18114       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18115 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18116 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18117   echo $ECHO_N "(cached) $ECHO_C" >&6
18118 else
18119   ac_check_lib_save_LIBS=$LIBS
18120 LIBS="-lnsl  $LIBS"
18121 cat >conftest.$ac_ext <<_ACEOF
18122 /* confdefs.h.  */
18123 _ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h.  */
18127
18128 /* Override any gcc2 internal prototype to avoid an error.  */
18129 #ifdef __cplusplus
18130 extern "C"
18131 #endif
18132 /* We use char because int might match the return type of a gcc2
18133    builtin and then its argument prototype would still apply.  */
18134 char gethostbyname ();
18135 int
18136 main ()
18137 {
18138 gethostbyname ();
18139   ;
18140   return 0;
18141 }
18142 _ACEOF
18143 rm -f conftest.$ac_objext conftest$ac_exeext
18144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18145   (eval $ac_link) 2>conftest.er1
18146   ac_status=$?
18147   grep -v '^ *+' conftest.er1 >conftest.err
18148   rm -f conftest.er1
18149   cat conftest.err >&5
18150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151   (exit $ac_status); } &&
18152          { ac_try='test -z "$ac_c_werror_flag"
18153                          || test ! -s conftest.err'
18154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155   (eval $ac_try) 2>&5
18156   ac_status=$?
18157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158   (exit $ac_status); }; } &&
18159          { ac_try='test -s conftest$ac_exeext'
18160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161   (eval $ac_try) 2>&5
18162   ac_status=$?
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); }; }; then
18165   ac_cv_lib_nsl_gethostbyname=yes
18166 else
18167   echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18169
18170 ac_cv_lib_nsl_gethostbyname=no
18171 fi
18172 rm -f conftest.err conftest.$ac_objext \
18173       conftest$ac_exeext conftest.$ac_ext
18174 LIBS=$ac_check_lib_save_LIBS
18175 fi
18176 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18177 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18178 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18179   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18180 fi
18181
18182       if test $ac_cv_lib_nsl_gethostbyname = no; then
18183         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18184 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18185 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18186   echo $ECHO_N "(cached) $ECHO_C" >&6
18187 else
18188   ac_check_lib_save_LIBS=$LIBS
18189 LIBS="-lbsd  $LIBS"
18190 cat >conftest.$ac_ext <<_ACEOF
18191 /* confdefs.h.  */
18192 _ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h.  */
18196
18197 /* Override any gcc2 internal prototype to avoid an error.  */
18198 #ifdef __cplusplus
18199 extern "C"
18200 #endif
18201 /* We use char because int might match the return type of a gcc2
18202    builtin and then its argument prototype would still apply.  */
18203 char gethostbyname ();
18204 int
18205 main ()
18206 {
18207 gethostbyname ();
18208   ;
18209   return 0;
18210 }
18211 _ACEOF
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18214   (eval $ac_link) 2>conftest.er1
18215   ac_status=$?
18216   grep -v '^ *+' conftest.er1 >conftest.err
18217   rm -f conftest.er1
18218   cat conftest.err >&5
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); } &&
18221          { ac_try='test -z "$ac_c_werror_flag"
18222                          || test ! -s conftest.err'
18223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224   (eval $ac_try) 2>&5
18225   ac_status=$?
18226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227   (exit $ac_status); }; } &&
18228          { ac_try='test -s conftest$ac_exeext'
18229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230   (eval $ac_try) 2>&5
18231   ac_status=$?
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); }; }; then
18234   ac_cv_lib_bsd_gethostbyname=yes
18235 else
18236   echo "$as_me: failed program was:" >&5
18237 sed 's/^/| /' conftest.$ac_ext >&5
18238
18239 ac_cv_lib_bsd_gethostbyname=no
18240 fi
18241 rm -f conftest.err conftest.$ac_objext \
18242       conftest$ac_exeext conftest.$ac_ext
18243 LIBS=$ac_check_lib_save_LIBS
18244 fi
18245 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18246 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18247 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18248   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18249 fi
18250
18251       fi
18252     fi
18253
18254     # lieder@skyler.mavd.honeywell.com says without -lsocket,
18255     # socket/setsockopt and other routines are undefined under SCO ODT
18256     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18257     # on later versions), says Simon Leinen: it contains gethostby*
18258     # variants that don't use the name server (or something).  -lsocket
18259     # must be given before -lnsl if both are needed.  We assume that
18260     # if connect needs -lnsl, so does gethostbyname.
18261     echo "$as_me:$LINENO: checking for connect" >&5
18262 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18263 if test "${ac_cv_func_connect+set}" = set; then
18264   echo $ECHO_N "(cached) $ECHO_C" >&6
18265 else
18266   cat >conftest.$ac_ext <<_ACEOF
18267 /* confdefs.h.  */
18268 _ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h.  */
18272 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18273    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18274 #define connect innocuous_connect
18275
18276 /* System header to define __stub macros and hopefully few prototypes,
18277     which can conflict with char connect (); below.
18278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18279     <limits.h> exists even on freestanding compilers.  */
18280
18281 #ifdef __STDC__
18282 # include <limits.h>
18283 #else
18284 # include <assert.h>
18285 #endif
18286
18287 #undef connect
18288
18289 /* Override any gcc2 internal prototype to avoid an error.  */
18290 #ifdef __cplusplus
18291 extern "C"
18292 {
18293 #endif
18294 /* We use char because int might match the return type of a gcc2
18295    builtin and then its argument prototype would still apply.  */
18296 char connect ();
18297 /* The GNU C library defines this for functions which it implements
18298     to always fail with ENOSYS.  Some functions are actually named
18299     something starting with __ and the normal name is an alias.  */
18300 #if defined (__stub_connect) || defined (__stub___connect)
18301 choke me
18302 #else
18303 char (*f) () = connect;
18304 #endif
18305 #ifdef __cplusplus
18306 }
18307 #endif
18308
18309 int
18310 main ()
18311 {
18312 return f != connect;
18313   ;
18314   return 0;
18315 }
18316 _ACEOF
18317 rm -f conftest.$ac_objext conftest$ac_exeext
18318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18319   (eval $ac_link) 2>conftest.er1
18320   ac_status=$?
18321   grep -v '^ *+' conftest.er1 >conftest.err
18322   rm -f conftest.er1
18323   cat conftest.err >&5
18324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325   (exit $ac_status); } &&
18326          { ac_try='test -z "$ac_c_werror_flag"
18327                          || test ! -s conftest.err'
18328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329   (eval $ac_try) 2>&5
18330   ac_status=$?
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); }; } &&
18333          { ac_try='test -s conftest$ac_exeext'
18334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335   (eval $ac_try) 2>&5
18336   ac_status=$?
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); }; }; then
18339   ac_cv_func_connect=yes
18340 else
18341   echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18343
18344 ac_cv_func_connect=no
18345 fi
18346 rm -f conftest.err conftest.$ac_objext \
18347       conftest$ac_exeext conftest.$ac_ext
18348 fi
18349 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18350 echo "${ECHO_T}$ac_cv_func_connect" >&6
18351
18352     if test $ac_cv_func_connect = no; then
18353       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18354 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18355 if test "${ac_cv_lib_socket_connect+set}" = set; then
18356   echo $ECHO_N "(cached) $ECHO_C" >&6
18357 else
18358   ac_check_lib_save_LIBS=$LIBS
18359 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18360 cat >conftest.$ac_ext <<_ACEOF
18361 /* confdefs.h.  */
18362 _ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h.  */
18366
18367 /* Override any gcc2 internal prototype to avoid an error.  */
18368 #ifdef __cplusplus
18369 extern "C"
18370 #endif
18371 /* We use char because int might match the return type of a gcc2
18372    builtin and then its argument prototype would still apply.  */
18373 char connect ();
18374 int
18375 main ()
18376 {
18377 connect ();
18378   ;
18379   return 0;
18380 }
18381 _ACEOF
18382 rm -f conftest.$ac_objext conftest$ac_exeext
18383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18384   (eval $ac_link) 2>conftest.er1
18385   ac_status=$?
18386   grep -v '^ *+' conftest.er1 >conftest.err
18387   rm -f conftest.er1
18388   cat conftest.err >&5
18389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390   (exit $ac_status); } &&
18391          { ac_try='test -z "$ac_c_werror_flag"
18392                          || test ! -s conftest.err'
18393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394   (eval $ac_try) 2>&5
18395   ac_status=$?
18396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397   (exit $ac_status); }; } &&
18398          { ac_try='test -s conftest$ac_exeext'
18399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400   (eval $ac_try) 2>&5
18401   ac_status=$?
18402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403   (exit $ac_status); }; }; then
18404   ac_cv_lib_socket_connect=yes
18405 else
18406   echo "$as_me: failed program was:" >&5
18407 sed 's/^/| /' conftest.$ac_ext >&5
18408
18409 ac_cv_lib_socket_connect=no
18410 fi
18411 rm -f conftest.err conftest.$ac_objext \
18412       conftest$ac_exeext conftest.$ac_ext
18413 LIBS=$ac_check_lib_save_LIBS
18414 fi
18415 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18416 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18417 if test $ac_cv_lib_socket_connect = yes; then
18418   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18419 fi
18420
18421     fi
18422
18423     # Guillermo Gomez says -lposix is necessary on A/UX.
18424     echo "$as_me:$LINENO: checking for remove" >&5
18425 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18426 if test "${ac_cv_func_remove+set}" = set; then
18427   echo $ECHO_N "(cached) $ECHO_C" >&6
18428 else
18429   cat >conftest.$ac_ext <<_ACEOF
18430 /* confdefs.h.  */
18431 _ACEOF
18432 cat confdefs.h >>conftest.$ac_ext
18433 cat >>conftest.$ac_ext <<_ACEOF
18434 /* end confdefs.h.  */
18435 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18437 #define remove innocuous_remove
18438
18439 /* System header to define __stub macros and hopefully few prototypes,
18440     which can conflict with char remove (); below.
18441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18442     <limits.h> exists even on freestanding compilers.  */
18443
18444 #ifdef __STDC__
18445 # include <limits.h>
18446 #else
18447 # include <assert.h>
18448 #endif
18449
18450 #undef remove
18451
18452 /* Override any gcc2 internal prototype to avoid an error.  */
18453 #ifdef __cplusplus
18454 extern "C"
18455 {
18456 #endif
18457 /* We use char because int might match the return type of a gcc2
18458    builtin and then its argument prototype would still apply.  */
18459 char remove ();
18460 /* The GNU C library defines this for functions which it implements
18461     to always fail with ENOSYS.  Some functions are actually named
18462     something starting with __ and the normal name is an alias.  */
18463 #if defined (__stub_remove) || defined (__stub___remove)
18464 choke me
18465 #else
18466 char (*f) () = remove;
18467 #endif
18468 #ifdef __cplusplus
18469 }
18470 #endif
18471
18472 int
18473 main ()
18474 {
18475 return f != remove;
18476   ;
18477   return 0;
18478 }
18479 _ACEOF
18480 rm -f conftest.$ac_objext conftest$ac_exeext
18481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18482   (eval $ac_link) 2>conftest.er1
18483   ac_status=$?
18484   grep -v '^ *+' conftest.er1 >conftest.err
18485   rm -f conftest.er1
18486   cat conftest.err >&5
18487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488   (exit $ac_status); } &&
18489          { ac_try='test -z "$ac_c_werror_flag"
18490                          || test ! -s conftest.err'
18491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492   (eval $ac_try) 2>&5
18493   ac_status=$?
18494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); }; } &&
18496          { ac_try='test -s conftest$ac_exeext'
18497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498   (eval $ac_try) 2>&5
18499   ac_status=$?
18500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501   (exit $ac_status); }; }; then
18502   ac_cv_func_remove=yes
18503 else
18504   echo "$as_me: failed program was:" >&5
18505 sed 's/^/| /' conftest.$ac_ext >&5
18506
18507 ac_cv_func_remove=no
18508 fi
18509 rm -f conftest.err conftest.$ac_objext \
18510       conftest$ac_exeext conftest.$ac_ext
18511 fi
18512 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18513 echo "${ECHO_T}$ac_cv_func_remove" >&6
18514
18515     if test $ac_cv_func_remove = no; then
18516       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18517 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18518 if test "${ac_cv_lib_posix_remove+set}" = set; then
18519   echo $ECHO_N "(cached) $ECHO_C" >&6
18520 else
18521   ac_check_lib_save_LIBS=$LIBS
18522 LIBS="-lposix  $LIBS"
18523 cat >conftest.$ac_ext <<_ACEOF
18524 /* confdefs.h.  */
18525 _ACEOF
18526 cat confdefs.h >>conftest.$ac_ext
18527 cat >>conftest.$ac_ext <<_ACEOF
18528 /* end confdefs.h.  */
18529
18530 /* Override any gcc2 internal prototype to avoid an error.  */
18531 #ifdef __cplusplus
18532 extern "C"
18533 #endif
18534 /* We use char because int might match the return type of a gcc2
18535    builtin and then its argument prototype would still apply.  */
18536 char remove ();
18537 int
18538 main ()
18539 {
18540 remove ();
18541   ;
18542   return 0;
18543 }
18544 _ACEOF
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18547   (eval $ac_link) 2>conftest.er1
18548   ac_status=$?
18549   grep -v '^ *+' conftest.er1 >conftest.err
18550   rm -f conftest.er1
18551   cat conftest.err >&5
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); } &&
18554          { ac_try='test -z "$ac_c_werror_flag"
18555                          || test ! -s conftest.err'
18556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557   (eval $ac_try) 2>&5
18558   ac_status=$?
18559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); }; } &&
18561          { ac_try='test -s conftest$ac_exeext'
18562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563   (eval $ac_try) 2>&5
18564   ac_status=$?
18565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566   (exit $ac_status); }; }; then
18567   ac_cv_lib_posix_remove=yes
18568 else
18569   echo "$as_me: failed program was:" >&5
18570 sed 's/^/| /' conftest.$ac_ext >&5
18571
18572 ac_cv_lib_posix_remove=no
18573 fi
18574 rm -f conftest.err conftest.$ac_objext \
18575       conftest$ac_exeext conftest.$ac_ext
18576 LIBS=$ac_check_lib_save_LIBS
18577 fi
18578 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18579 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18580 if test $ac_cv_lib_posix_remove = yes; then
18581   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18582 fi
18583
18584     fi
18585
18586     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18587     echo "$as_me:$LINENO: checking for shmat" >&5
18588 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18589 if test "${ac_cv_func_shmat+set}" = set; then
18590   echo $ECHO_N "(cached) $ECHO_C" >&6
18591 else
18592   cat >conftest.$ac_ext <<_ACEOF
18593 /* confdefs.h.  */
18594 _ACEOF
18595 cat confdefs.h >>conftest.$ac_ext
18596 cat >>conftest.$ac_ext <<_ACEOF
18597 /* end confdefs.h.  */
18598 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18600 #define shmat innocuous_shmat
18601
18602 /* System header to define __stub macros and hopefully few prototypes,
18603     which can conflict with char shmat (); below.
18604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18605     <limits.h> exists even on freestanding compilers.  */
18606
18607 #ifdef __STDC__
18608 # include <limits.h>
18609 #else
18610 # include <assert.h>
18611 #endif
18612
18613 #undef shmat
18614
18615 /* Override any gcc2 internal prototype to avoid an error.  */
18616 #ifdef __cplusplus
18617 extern "C"
18618 {
18619 #endif
18620 /* We use char because int might match the return type of a gcc2
18621    builtin and then its argument prototype would still apply.  */
18622 char shmat ();
18623 /* The GNU C library defines this for functions which it implements
18624     to always fail with ENOSYS.  Some functions are actually named
18625     something starting with __ and the normal name is an alias.  */
18626 #if defined (__stub_shmat) || defined (__stub___shmat)
18627 choke me
18628 #else
18629 char (*f) () = shmat;
18630 #endif
18631 #ifdef __cplusplus
18632 }
18633 #endif
18634
18635 int
18636 main ()
18637 {
18638 return f != shmat;
18639   ;
18640   return 0;
18641 }
18642 _ACEOF
18643 rm -f conftest.$ac_objext conftest$ac_exeext
18644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18645   (eval $ac_link) 2>conftest.er1
18646   ac_status=$?
18647   grep -v '^ *+' conftest.er1 >conftest.err
18648   rm -f conftest.er1
18649   cat conftest.err >&5
18650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651   (exit $ac_status); } &&
18652          { ac_try='test -z "$ac_c_werror_flag"
18653                          || test ! -s conftest.err'
18654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655   (eval $ac_try) 2>&5
18656   ac_status=$?
18657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658   (exit $ac_status); }; } &&
18659          { ac_try='test -s conftest$ac_exeext'
18660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661   (eval $ac_try) 2>&5
18662   ac_status=$?
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); }; }; then
18665   ac_cv_func_shmat=yes
18666 else
18667   echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18669
18670 ac_cv_func_shmat=no
18671 fi
18672 rm -f conftest.err conftest.$ac_objext \
18673       conftest$ac_exeext conftest.$ac_ext
18674 fi
18675 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18676 echo "${ECHO_T}$ac_cv_func_shmat" >&6
18677
18678     if test $ac_cv_func_shmat = no; then
18679       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18680 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18681 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18682   echo $ECHO_N "(cached) $ECHO_C" >&6
18683 else
18684   ac_check_lib_save_LIBS=$LIBS
18685 LIBS="-lipc  $LIBS"
18686 cat >conftest.$ac_ext <<_ACEOF
18687 /* confdefs.h.  */
18688 _ACEOF
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h.  */
18692
18693 /* Override any gcc2 internal prototype to avoid an error.  */
18694 #ifdef __cplusplus
18695 extern "C"
18696 #endif
18697 /* We use char because int might match the return type of a gcc2
18698    builtin and then its argument prototype would still apply.  */
18699 char shmat ();
18700 int
18701 main ()
18702 {
18703 shmat ();
18704   ;
18705   return 0;
18706 }
18707 _ACEOF
18708 rm -f conftest.$ac_objext conftest$ac_exeext
18709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18710   (eval $ac_link) 2>conftest.er1
18711   ac_status=$?
18712   grep -v '^ *+' conftest.er1 >conftest.err
18713   rm -f conftest.er1
18714   cat conftest.err >&5
18715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716   (exit $ac_status); } &&
18717          { ac_try='test -z "$ac_c_werror_flag"
18718                          || test ! -s conftest.err'
18719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720   (eval $ac_try) 2>&5
18721   ac_status=$?
18722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723   (exit $ac_status); }; } &&
18724          { ac_try='test -s conftest$ac_exeext'
18725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726   (eval $ac_try) 2>&5
18727   ac_status=$?
18728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729   (exit $ac_status); }; }; then
18730   ac_cv_lib_ipc_shmat=yes
18731 else
18732   echo "$as_me: failed program was:" >&5
18733 sed 's/^/| /' conftest.$ac_ext >&5
18734
18735 ac_cv_lib_ipc_shmat=no
18736 fi
18737 rm -f conftest.err conftest.$ac_objext \
18738       conftest$ac_exeext conftest.$ac_ext
18739 LIBS=$ac_check_lib_save_LIBS
18740 fi
18741 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18742 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18743 if test $ac_cv_lib_ipc_shmat = yes; then
18744   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18745 fi
18746
18747     fi
18748   fi
18749
18750   # Check for libraries that X11R6 Xt/Xaw programs need.
18751   ac_save_LDFLAGS=$LDFLAGS
18752   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18753   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18754   # check for ICE first), but we must link in the order -lSM -lICE or
18755   # we get undefined symbols.  So assume we have SM if we have ICE.
18756   # These have to be linked with before -lX11, unlike the other
18757   # libraries we check for below, so use a different variable.
18758   # John Interrante, Karl Berry
18759   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18760 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18761 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18762   echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764   ac_check_lib_save_LIBS=$LIBS
18765 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18766 cat >conftest.$ac_ext <<_ACEOF
18767 /* confdefs.h.  */
18768 _ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h.  */
18772
18773 /* Override any gcc2 internal prototype to avoid an error.  */
18774 #ifdef __cplusplus
18775 extern "C"
18776 #endif
18777 /* We use char because int might match the return type of a gcc2
18778    builtin and then its argument prototype would still apply.  */
18779 char IceConnectionNumber ();
18780 int
18781 main ()
18782 {
18783 IceConnectionNumber ();
18784   ;
18785   return 0;
18786 }
18787 _ACEOF
18788 rm -f conftest.$ac_objext conftest$ac_exeext
18789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18790   (eval $ac_link) 2>conftest.er1
18791   ac_status=$?
18792   grep -v '^ *+' conftest.er1 >conftest.err
18793   rm -f conftest.er1
18794   cat conftest.err >&5
18795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796   (exit $ac_status); } &&
18797          { ac_try='test -z "$ac_c_werror_flag"
18798                          || test ! -s conftest.err'
18799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800   (eval $ac_try) 2>&5
18801   ac_status=$?
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); }; } &&
18804          { ac_try='test -s conftest$ac_exeext'
18805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806   (eval $ac_try) 2>&5
18807   ac_status=$?
18808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809   (exit $ac_status); }; }; then
18810   ac_cv_lib_ICE_IceConnectionNumber=yes
18811 else
18812   echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18814
18815 ac_cv_lib_ICE_IceConnectionNumber=no
18816 fi
18817 rm -f conftest.err conftest.$ac_objext \
18818       conftest$ac_exeext conftest.$ac_ext
18819 LIBS=$ac_check_lib_save_LIBS
18820 fi
18821 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18822 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18823 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18824   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18825 fi
18826
18827   LDFLAGS=$ac_save_LDFLAGS
18828
18829 fi
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859 for ac_header in \
18860         assert.h \
18861         fcntl.h \
18862         grp.h \
18863         pwd.h \
18864         libc.h \
18865         limits.h \
18866         stdarg.h \
18867         stdlib.h \
18868         stdint.h \
18869         string.h \
18870         termios.h \
18871         termcap.h \
18872         term.h \
18873         unistd.h \
18874         sys/bitypes.h \
18875         sys/byteorder.h \
18876         sys/ioctl.h \
18877         sys/select.h \
18878         sys/sockio.h \
18879         sys/time.h \
18880         sys/socket.h \
18881         arpa/nameser.h \
18882         resolv.h \
18883         mtio.h \
18884         sys/mtio.h \
18885         sys/tape.h \
18886         regex.h \
18887
18888 do
18889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18891   echo "$as_me:$LINENO: checking for $ac_header" >&5
18892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18894   echo $ECHO_N "(cached) $ECHO_C" >&6
18895 fi
18896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18898 else
18899   # Is the header compilable?
18900 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18902 cat >conftest.$ac_ext <<_ACEOF
18903 /* confdefs.h.  */
18904 _ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h.  */
18908 $ac_includes_default
18909 #include <$ac_header>
18910 _ACEOF
18911 rm -f conftest.$ac_objext
18912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18913   (eval $ac_compile) 2>conftest.er1
18914   ac_status=$?
18915   grep -v '^ *+' conftest.er1 >conftest.err
18916   rm -f conftest.er1
18917   cat conftest.err >&5
18918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919   (exit $ac_status); } &&
18920          { ac_try='test -z "$ac_c_werror_flag"
18921                          || test ! -s conftest.err'
18922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923   (eval $ac_try) 2>&5
18924   ac_status=$?
18925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926   (exit $ac_status); }; } &&
18927          { ac_try='test -s conftest.$ac_objext'
18928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929   (eval $ac_try) 2>&5
18930   ac_status=$?
18931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932   (exit $ac_status); }; }; then
18933   ac_header_compiler=yes
18934 else
18935   echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18937
18938 ac_header_compiler=no
18939 fi
18940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18942 echo "${ECHO_T}$ac_header_compiler" >&6
18943
18944 # Is the header present?
18945 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18947 cat >conftest.$ac_ext <<_ACEOF
18948 /* confdefs.h.  */
18949 _ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h.  */
18953 #include <$ac_header>
18954 _ACEOF
18955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18957   ac_status=$?
18958   grep -v '^ *+' conftest.er1 >conftest.err
18959   rm -f conftest.er1
18960   cat conftest.err >&5
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); } >/dev/null; then
18963   if test -s conftest.err; then
18964     ac_cpp_err=$ac_c_preproc_warn_flag
18965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18966   else
18967     ac_cpp_err=
18968   fi
18969 else
18970   ac_cpp_err=yes
18971 fi
18972 if test -z "$ac_cpp_err"; then
18973   ac_header_preproc=yes
18974 else
18975   echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18977
18978   ac_header_preproc=no
18979 fi
18980 rm -f conftest.err conftest.$ac_ext
18981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18982 echo "${ECHO_T}$ac_header_preproc" >&6
18983
18984 # So?  What about this header?
18985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18986   yes:no: )
18987     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18991     ac_header_preproc=yes
18992     ;;
18993   no:yes:* )
18994     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18996     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18997 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18998     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19000     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19001 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19004     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19006     (
19007       cat <<\_ASBOX
19008 ## ------------------------------------------ ##
19009 ## Report this to the AC_PACKAGE_NAME lists.  ##
19010 ## ------------------------------------------ ##
19011 _ASBOX
19012     ) |
19013       sed "s/^/$as_me: WARNING:     /" >&2
19014     ;;
19015 esac
19016 echo "$as_me:$LINENO: checking for $ac_header" >&5
19017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19019   echo $ECHO_N "(cached) $ECHO_C" >&6
19020 else
19021   eval "$as_ac_Header=\$ac_header_preproc"
19022 fi
19023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19025
19026 fi
19027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19028   cat >>confdefs.h <<_ACEOF
19029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19030 _ACEOF
19031
19032 fi
19033
19034 done
19035
19036 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19037 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19038 if test "${ac_cv_header_stdc+set}" = set; then
19039   echo $ECHO_N "(cached) $ECHO_C" >&6
19040 else
19041   cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h.  */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h.  */
19047 #include <stdlib.h>
19048 #include <stdarg.h>
19049 #include <string.h>
19050 #include <float.h>
19051
19052 int
19053 main ()
19054 {
19055
19056   ;
19057   return 0;
19058 }
19059 _ACEOF
19060 rm -f conftest.$ac_objext
19061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19062   (eval $ac_compile) 2>conftest.er1
19063   ac_status=$?
19064   grep -v '^ *+' conftest.er1 >conftest.err
19065   rm -f conftest.er1
19066   cat conftest.err >&5
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); } &&
19069          { ac_try='test -z "$ac_c_werror_flag"
19070                          || test ! -s conftest.err'
19071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072   (eval $ac_try) 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); }; } &&
19076          { ac_try='test -s conftest.$ac_objext'
19077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078   (eval $ac_try) 2>&5
19079   ac_status=$?
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); }; }; then
19082   ac_cv_header_stdc=yes
19083 else
19084   echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19086
19087 ac_cv_header_stdc=no
19088 fi
19089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19090
19091 if test $ac_cv_header_stdc = yes; then
19092   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19093   cat >conftest.$ac_ext <<_ACEOF
19094 /* confdefs.h.  */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h.  */
19099 #include <string.h>
19100
19101 _ACEOF
19102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19103   $EGREP "memchr" >/dev/null 2>&1; then
19104   :
19105 else
19106   ac_cv_header_stdc=no
19107 fi
19108 rm -f conftest*
19109
19110 fi
19111
19112 if test $ac_cv_header_stdc = yes; then
19113   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19114   cat >conftest.$ac_ext <<_ACEOF
19115 /* confdefs.h.  */
19116 _ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h.  */
19120 #include <stdlib.h>
19121
19122 _ACEOF
19123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19124   $EGREP "free" >/dev/null 2>&1; then
19125   :
19126 else
19127   ac_cv_header_stdc=no
19128 fi
19129 rm -f conftest*
19130
19131 fi
19132
19133 if test $ac_cv_header_stdc = yes; then
19134   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19135   if test "$cross_compiling" = yes; then
19136   :
19137 else
19138   cat >conftest.$ac_ext <<_ACEOF
19139 /* confdefs.h.  */
19140 _ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h.  */
19144 #include <ctype.h>
19145 #if ((' ' & 0x0FF) == 0x020)
19146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19148 #else
19149 # define ISLOWER(c) \
19150                    (('a' <= (c) && (c) <= 'i') \
19151                      || ('j' <= (c) && (c) <= 'r') \
19152                      || ('s' <= (c) && (c) <= 'z'))
19153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19154 #endif
19155
19156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19157 int
19158 main ()
19159 {
19160   int i;
19161   for (i = 0; i < 256; i++)
19162     if (XOR (islower (i), ISLOWER (i))
19163         || toupper (i) != TOUPPER (i))
19164       exit(2);
19165   exit (0);
19166 }
19167 _ACEOF
19168 rm -f conftest$ac_exeext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19170   (eval $ac_link) 2>&5
19171   ac_status=$?
19172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175   (eval $ac_try) 2>&5
19176   ac_status=$?
19177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178   (exit $ac_status); }; }; then
19179   :
19180 else
19181   echo "$as_me: program exited with status $ac_status" >&5
19182 echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19184
19185 ( exit $ac_status )
19186 ac_cv_header_stdc=no
19187 fi
19188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19189 fi
19190 fi
19191 fi
19192 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19193 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19194 if test $ac_cv_header_stdc = yes; then
19195
19196 cat >>confdefs.h <<\_ACEOF
19197 #define STDC_HEADERS 1
19198 _ACEOF
19199
19200 fi
19201
19202 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19203 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19204 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19205   echo $ECHO_N "(cached) $ECHO_C" >&6
19206 else
19207   cat >conftest.$ac_ext <<_ACEOF
19208 /* confdefs.h.  */
19209 _ACEOF
19210 cat confdefs.h >>conftest.$ac_ext
19211 cat >>conftest.$ac_ext <<_ACEOF
19212 /* end confdefs.h.  */
19213 #include <sys/types.h>
19214 int
19215 main ()
19216 {
19217 return makedev(0, 0);
19218   ;
19219   return 0;
19220 }
19221 _ACEOF
19222 rm -f conftest.$ac_objext conftest$ac_exeext
19223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19224   (eval $ac_link) 2>conftest.er1
19225   ac_status=$?
19226   grep -v '^ *+' conftest.er1 >conftest.err
19227   rm -f conftest.er1
19228   cat conftest.err >&5
19229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230   (exit $ac_status); } &&
19231          { ac_try='test -z "$ac_c_werror_flag"
19232                          || test ! -s conftest.err'
19233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234   (eval $ac_try) 2>&5
19235   ac_status=$?
19236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237   (exit $ac_status); }; } &&
19238          { ac_try='test -s conftest$ac_exeext'
19239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240   (eval $ac_try) 2>&5
19241   ac_status=$?
19242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243   (exit $ac_status); }; }; then
19244   ac_cv_header_sys_types_h_makedev=yes
19245 else
19246   echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19248
19249 ac_cv_header_sys_types_h_makedev=no
19250 fi
19251 rm -f conftest.err conftest.$ac_objext \
19252       conftest$ac_exeext conftest.$ac_ext
19253
19254 fi
19255 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19256 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19257
19258 if test $ac_cv_header_sys_types_h_makedev = no; then
19259 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19260   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19261 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19262 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19263   echo $ECHO_N "(cached) $ECHO_C" >&6
19264 fi
19265 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19266 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19267 else
19268   # Is the header compilable?
19269 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19270 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19271 cat >conftest.$ac_ext <<_ACEOF
19272 /* confdefs.h.  */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h.  */
19277 $ac_includes_default
19278 #include <sys/mkdev.h>
19279 _ACEOF
19280 rm -f conftest.$ac_objext
19281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19282   (eval $ac_compile) 2>conftest.er1
19283   ac_status=$?
19284   grep -v '^ *+' conftest.er1 >conftest.err
19285   rm -f conftest.er1
19286   cat conftest.err >&5
19287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288   (exit $ac_status); } &&
19289          { ac_try='test -z "$ac_c_werror_flag"
19290                          || test ! -s conftest.err'
19291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292   (eval $ac_try) 2>&5
19293   ac_status=$?
19294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); }; } &&
19296          { ac_try='test -s conftest.$ac_objext'
19297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298   (eval $ac_try) 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; }; then
19302   ac_header_compiler=yes
19303 else
19304   echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307 ac_header_compiler=no
19308 fi
19309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19311 echo "${ECHO_T}$ac_header_compiler" >&6
19312
19313 # Is the header present?
19314 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19315 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19316 cat >conftest.$ac_ext <<_ACEOF
19317 /* confdefs.h.  */
19318 _ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h.  */
19322 #include <sys/mkdev.h>
19323 _ACEOF
19324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19325   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19326   ac_status=$?
19327   grep -v '^ *+' conftest.er1 >conftest.err
19328   rm -f conftest.er1
19329   cat conftest.err >&5
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); } >/dev/null; then
19332   if test -s conftest.err; then
19333     ac_cpp_err=$ac_c_preproc_warn_flag
19334     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19335   else
19336     ac_cpp_err=
19337   fi
19338 else
19339   ac_cpp_err=yes
19340 fi
19341 if test -z "$ac_cpp_err"; then
19342   ac_header_preproc=yes
19343 else
19344   echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19346
19347   ac_header_preproc=no
19348 fi
19349 rm -f conftest.err conftest.$ac_ext
19350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19351 echo "${ECHO_T}$ac_header_preproc" >&6
19352
19353 # So?  What about this header?
19354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19355   yes:no: )
19356     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19357 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19358     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19359 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19360     ac_header_preproc=yes
19361     ;;
19362   no:yes:* )
19363     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19364 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19365     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
19366 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
19367     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19368 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19369     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
19370 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19371     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19372 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19373     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19374 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19375     (
19376       cat <<\_ASBOX
19377 ## ------------------------------------------ ##
19378 ## Report this to the AC_PACKAGE_NAME lists.  ##
19379 ## ------------------------------------------ ##
19380 _ASBOX
19381     ) |
19382       sed "s/^/$as_me: WARNING:     /" >&2
19383     ;;
19384 esac
19385 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19386 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19387 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19388   echo $ECHO_N "(cached) $ECHO_C" >&6
19389 else
19390   ac_cv_header_sys_mkdev_h=$ac_header_preproc
19391 fi
19392 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19393 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19394
19395 fi
19396 if test $ac_cv_header_sys_mkdev_h = yes; then
19397
19398 cat >>confdefs.h <<\_ACEOF
19399 #define MAJOR_IN_MKDEV 1
19400 _ACEOF
19401
19402 fi
19403
19404
19405
19406   if test $ac_cv_header_sys_mkdev_h = no; then
19407     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19408   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19409 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19410 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19411   echo $ECHO_N "(cached) $ECHO_C" >&6
19412 fi
19413 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19414 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19415 else
19416   # Is the header compilable?
19417 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19418 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19419 cat >conftest.$ac_ext <<_ACEOF
19420 /* confdefs.h.  */
19421 _ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h.  */
19425 $ac_includes_default
19426 #include <sys/sysmacros.h>
19427 _ACEOF
19428 rm -f conftest.$ac_objext
19429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19430   (eval $ac_compile) 2>conftest.er1
19431   ac_status=$?
19432   grep -v '^ *+' conftest.er1 >conftest.err
19433   rm -f conftest.er1
19434   cat conftest.err >&5
19435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436   (exit $ac_status); } &&
19437          { ac_try='test -z "$ac_c_werror_flag"
19438                          || test ! -s conftest.err'
19439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440   (eval $ac_try) 2>&5
19441   ac_status=$?
19442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443   (exit $ac_status); }; } &&
19444          { ac_try='test -s conftest.$ac_objext'
19445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446   (eval $ac_try) 2>&5
19447   ac_status=$?
19448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449   (exit $ac_status); }; }; then
19450   ac_header_compiler=yes
19451 else
19452   echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19454
19455 ac_header_compiler=no
19456 fi
19457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19459 echo "${ECHO_T}$ac_header_compiler" >&6
19460
19461 # Is the header present?
19462 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19463 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19464 cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h.  */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h.  */
19470 #include <sys/sysmacros.h>
19471 _ACEOF
19472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19473   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19474   ac_status=$?
19475   grep -v '^ *+' conftest.er1 >conftest.err
19476   rm -f conftest.er1
19477   cat conftest.err >&5
19478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479   (exit $ac_status); } >/dev/null; then
19480   if test -s conftest.err; then
19481     ac_cpp_err=$ac_c_preproc_warn_flag
19482     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19483   else
19484     ac_cpp_err=
19485   fi
19486 else
19487   ac_cpp_err=yes
19488 fi
19489 if test -z "$ac_cpp_err"; then
19490   ac_header_preproc=yes
19491 else
19492   echo "$as_me: failed program was:" >&5
19493 sed 's/^/| /' conftest.$ac_ext >&5
19494
19495   ac_header_preproc=no
19496 fi
19497 rm -f conftest.err conftest.$ac_ext
19498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19499 echo "${ECHO_T}$ac_header_preproc" >&6
19500
19501 # So?  What about this header?
19502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19503   yes:no: )
19504     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19505 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19506     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19507 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19508     ac_header_preproc=yes
19509     ;;
19510   no:yes:* )
19511     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19512 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19513     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
19514 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
19515     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19516 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19517     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
19518 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19519     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19520 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19521     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19522 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19523     (
19524       cat <<\_ASBOX
19525 ## ------------------------------------------ ##
19526 ## Report this to the AC_PACKAGE_NAME lists.  ##
19527 ## ------------------------------------------ ##
19528 _ASBOX
19529     ) |
19530       sed "s/^/$as_me: WARNING:     /" >&2
19531     ;;
19532 esac
19533 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19534 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19535 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19536   echo $ECHO_N "(cached) $ECHO_C" >&6
19537 else
19538   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19539 fi
19540 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19541 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19542
19543 fi
19544 if test $ac_cv_header_sys_sysmacros_h = yes; then
19545
19546 cat >>confdefs.h <<\_ACEOF
19547 #define MAJOR_IN_SYSMACROS 1
19548 _ACEOF
19549
19550 fi
19551
19552
19553   fi
19554 fi
19555
19556
19557
19558
19559
19560
19561 ac_header_dirent=no
19562 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19563   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19564 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19565 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19567   echo $ECHO_N "(cached) $ECHO_C" >&6
19568 else
19569   cat >conftest.$ac_ext <<_ACEOF
19570 /* confdefs.h.  */
19571 _ACEOF
19572 cat confdefs.h >>conftest.$ac_ext
19573 cat >>conftest.$ac_ext <<_ACEOF
19574 /* end confdefs.h.  */
19575 #include <sys/types.h>
19576 #include <$ac_hdr>
19577
19578 int
19579 main ()
19580 {
19581 if ((DIR *) 0)
19582 return 0;
19583   ;
19584   return 0;
19585 }
19586 _ACEOF
19587 rm -f conftest.$ac_objext
19588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19589   (eval $ac_compile) 2>conftest.er1
19590   ac_status=$?
19591   grep -v '^ *+' conftest.er1 >conftest.err
19592   rm -f conftest.er1
19593   cat conftest.err >&5
19594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595   (exit $ac_status); } &&
19596          { ac_try='test -z "$ac_c_werror_flag"
19597                          || test ! -s conftest.err'
19598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599   (eval $ac_try) 2>&5
19600   ac_status=$?
19601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602   (exit $ac_status); }; } &&
19603          { ac_try='test -s conftest.$ac_objext'
19604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605   (eval $ac_try) 2>&5
19606   ac_status=$?
19607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608   (exit $ac_status); }; }; then
19609   eval "$as_ac_Header=yes"
19610 else
19611   echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19613
19614 eval "$as_ac_Header=no"
19615 fi
19616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19617 fi
19618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19621   cat >>confdefs.h <<_ACEOF
19622 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19623 _ACEOF
19624
19625 ac_header_dirent=$ac_hdr; break
19626 fi
19627
19628 done
19629 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19630 if test $ac_header_dirent = dirent.h; then
19631   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19632 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19633 if test "${ac_cv_search_opendir+set}" = set; then
19634   echo $ECHO_N "(cached) $ECHO_C" >&6
19635 else
19636   ac_func_search_save_LIBS=$LIBS
19637 ac_cv_search_opendir=no
19638 cat >conftest.$ac_ext <<_ACEOF
19639 /* confdefs.h.  */
19640 _ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h.  */
19644
19645 /* Override any gcc2 internal prototype to avoid an error.  */
19646 #ifdef __cplusplus
19647 extern "C"
19648 #endif
19649 /* We use char because int might match the return type of a gcc2
19650    builtin and then its argument prototype would still apply.  */
19651 char opendir ();
19652 int
19653 main ()
19654 {
19655 opendir ();
19656   ;
19657   return 0;
19658 }
19659 _ACEOF
19660 rm -f conftest.$ac_objext conftest$ac_exeext
19661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19662   (eval $ac_link) 2>conftest.er1
19663   ac_status=$?
19664   grep -v '^ *+' conftest.er1 >conftest.err
19665   rm -f conftest.er1
19666   cat conftest.err >&5
19667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668   (exit $ac_status); } &&
19669          { ac_try='test -z "$ac_c_werror_flag"
19670                          || test ! -s conftest.err'
19671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672   (eval $ac_try) 2>&5
19673   ac_status=$?
19674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675   (exit $ac_status); }; } &&
19676          { ac_try='test -s conftest$ac_exeext'
19677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678   (eval $ac_try) 2>&5
19679   ac_status=$?
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); }; }; then
19682   ac_cv_search_opendir="none required"
19683 else
19684   echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19686
19687 fi
19688 rm -f conftest.err conftest.$ac_objext \
19689       conftest$ac_exeext conftest.$ac_ext
19690 if test "$ac_cv_search_opendir" = no; then
19691   for ac_lib in dir; do
19692     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19693     cat >conftest.$ac_ext <<_ACEOF
19694 /* confdefs.h.  */
19695 _ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h.  */
19699
19700 /* Override any gcc2 internal prototype to avoid an error.  */
19701 #ifdef __cplusplus
19702 extern "C"
19703 #endif
19704 /* We use char because int might match the return type of a gcc2
19705    builtin and then its argument prototype would still apply.  */
19706 char opendir ();
19707 int
19708 main ()
19709 {
19710 opendir ();
19711   ;
19712   return 0;
19713 }
19714 _ACEOF
19715 rm -f conftest.$ac_objext conftest$ac_exeext
19716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19717   (eval $ac_link) 2>conftest.er1
19718   ac_status=$?
19719   grep -v '^ *+' conftest.er1 >conftest.err
19720   rm -f conftest.er1
19721   cat conftest.err >&5
19722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723   (exit $ac_status); } &&
19724          { ac_try='test -z "$ac_c_werror_flag"
19725                          || test ! -s conftest.err'
19726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727   (eval $ac_try) 2>&5
19728   ac_status=$?
19729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730   (exit $ac_status); }; } &&
19731          { ac_try='test -s conftest$ac_exeext'
19732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733   (eval $ac_try) 2>&5
19734   ac_status=$?
19735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736   (exit $ac_status); }; }; then
19737   ac_cv_search_opendir="-l$ac_lib"
19738 break
19739 else
19740   echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19742
19743 fi
19744 rm -f conftest.err conftest.$ac_objext \
19745       conftest$ac_exeext conftest.$ac_ext
19746   done
19747 fi
19748 LIBS=$ac_func_search_save_LIBS
19749 fi
19750 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19751 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19752 if test "$ac_cv_search_opendir" != no; then
19753   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19754
19755 fi
19756
19757 else
19758   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19759 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19760 if test "${ac_cv_search_opendir+set}" = set; then
19761   echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763   ac_func_search_save_LIBS=$LIBS
19764 ac_cv_search_opendir=no
19765 cat >conftest.$ac_ext <<_ACEOF
19766 /* confdefs.h.  */
19767 _ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h.  */
19771
19772 /* Override any gcc2 internal prototype to avoid an error.  */
19773 #ifdef __cplusplus
19774 extern "C"
19775 #endif
19776 /* We use char because int might match the return type of a gcc2
19777    builtin and then its argument prototype would still apply.  */
19778 char opendir ();
19779 int
19780 main ()
19781 {
19782 opendir ();
19783   ;
19784   return 0;
19785 }
19786 _ACEOF
19787 rm -f conftest.$ac_objext conftest$ac_exeext
19788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19789   (eval $ac_link) 2>conftest.er1
19790   ac_status=$?
19791   grep -v '^ *+' conftest.er1 >conftest.err
19792   rm -f conftest.er1
19793   cat conftest.err >&5
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); } &&
19796          { ac_try='test -z "$ac_c_werror_flag"
19797                          || test ! -s conftest.err'
19798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799   (eval $ac_try) 2>&5
19800   ac_status=$?
19801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802   (exit $ac_status); }; } &&
19803          { ac_try='test -s conftest$ac_exeext'
19804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805   (eval $ac_try) 2>&5
19806   ac_status=$?
19807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808   (exit $ac_status); }; }; then
19809   ac_cv_search_opendir="none required"
19810 else
19811   echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19813
19814 fi
19815 rm -f conftest.err conftest.$ac_objext \
19816       conftest$ac_exeext conftest.$ac_ext
19817 if test "$ac_cv_search_opendir" = no; then
19818   for ac_lib in x; do
19819     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19820     cat >conftest.$ac_ext <<_ACEOF
19821 /* confdefs.h.  */
19822 _ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h.  */
19826
19827 /* Override any gcc2 internal prototype to avoid an error.  */
19828 #ifdef __cplusplus
19829 extern "C"
19830 #endif
19831 /* We use char because int might match the return type of a gcc2
19832    builtin and then its argument prototype would still apply.  */
19833 char opendir ();
19834 int
19835 main ()
19836 {
19837 opendir ();
19838   ;
19839   return 0;
19840 }
19841 _ACEOF
19842 rm -f conftest.$ac_objext conftest$ac_exeext
19843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19844   (eval $ac_link) 2>conftest.er1
19845   ac_status=$?
19846   grep -v '^ *+' conftest.er1 >conftest.err
19847   rm -f conftest.er1
19848   cat conftest.err >&5
19849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850   (exit $ac_status); } &&
19851          { ac_try='test -z "$ac_c_werror_flag"
19852                          || test ! -s conftest.err'
19853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19854   (eval $ac_try) 2>&5
19855   ac_status=$?
19856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857   (exit $ac_status); }; } &&
19858          { ac_try='test -s conftest$ac_exeext'
19859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19860   (eval $ac_try) 2>&5
19861   ac_status=$?
19862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863   (exit $ac_status); }; }; then
19864   ac_cv_search_opendir="-l$ac_lib"
19865 break
19866 else
19867   echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19869
19870 fi
19871 rm -f conftest.err conftest.$ac_objext \
19872       conftest$ac_exeext conftest.$ac_ext
19873   done
19874 fi
19875 LIBS=$ac_func_search_save_LIBS
19876 fi
19877 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19878 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19879 if test "$ac_cv_search_opendir" != no; then
19880   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19881
19882 fi
19883
19884 fi
19885
19886 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19887 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
19888 if test "${ac_cv_header_stat_broken+set}" = set; then
19889   echo $ECHO_N "(cached) $ECHO_C" >&6
19890 else
19891   cat >conftest.$ac_ext <<_ACEOF
19892 /* confdefs.h.  */
19893 _ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h.  */
19897 #include <sys/types.h>
19898 #include <sys/stat.h>
19899
19900 #if defined(S_ISBLK) && defined(S_IFDIR)
19901 # if S_ISBLK (S_IFDIR)
19902 You lose.
19903 # endif
19904 #endif
19905
19906 #if defined(S_ISBLK) && defined(S_IFCHR)
19907 # if S_ISBLK (S_IFCHR)
19908 You lose.
19909 # endif
19910 #endif
19911
19912 #if defined(S_ISLNK) && defined(S_IFREG)
19913 # if S_ISLNK (S_IFREG)
19914 You lose.
19915 # endif
19916 #endif
19917
19918 #if defined(S_ISSOCK) && defined(S_IFREG)
19919 # if S_ISSOCK (S_IFREG)
19920 You lose.
19921 # endif
19922 #endif
19923
19924 _ACEOF
19925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19926   $EGREP "You lose" >/dev/null 2>&1; then
19927   ac_cv_header_stat_broken=yes
19928 else
19929   ac_cv_header_stat_broken=no
19930 fi
19931 rm -f conftest*
19932
19933 fi
19934 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19935 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
19936 if test $ac_cv_header_stat_broken = yes; then
19937
19938 cat >>confdefs.h <<\_ACEOF
19939 #define STAT_MACROS_BROKEN 1
19940 _ACEOF
19941
19942 fi
19943
19944 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19945 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19946 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19947   echo $ECHO_N "(cached) $ECHO_C" >&6
19948 else
19949   cat >conftest.$ac_ext <<_ACEOF
19950 /* confdefs.h.  */
19951 _ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h.  */
19955 #include <sys/types.h>
19956 #include <sys/wait.h>
19957 #ifndef WEXITSTATUS
19958 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19959 #endif
19960 #ifndef WIFEXITED
19961 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19962 #endif
19963
19964 int
19965 main ()
19966 {
19967   int s;
19968   wait (&s);
19969   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19970   ;
19971   return 0;
19972 }
19973 _ACEOF
19974 rm -f conftest.$ac_objext
19975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19976   (eval $ac_compile) 2>conftest.er1
19977   ac_status=$?
19978   grep -v '^ *+' conftest.er1 >conftest.err
19979   rm -f conftest.er1
19980   cat conftest.err >&5
19981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982   (exit $ac_status); } &&
19983          { ac_try='test -z "$ac_c_werror_flag"
19984                          || test ! -s conftest.err'
19985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986   (eval $ac_try) 2>&5
19987   ac_status=$?
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); }; } &&
19990          { ac_try='test -s conftest.$ac_objext'
19991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992   (eval $ac_try) 2>&5
19993   ac_status=$?
19994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995   (exit $ac_status); }; }; then
19996   ac_cv_header_sys_wait_h=yes
19997 else
19998   echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20000
20001 ac_cv_header_sys_wait_h=no
20002 fi
20003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20004 fi
20005 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20006 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20007 if test $ac_cv_header_sys_wait_h = yes; then
20008
20009 cat >>confdefs.h <<\_ACEOF
20010 #define HAVE_SYS_WAIT_H 1
20011 _ACEOF
20012
20013 fi
20014
20015 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20016 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20017 if test "${ac_cv_header_time+set}" = set; then
20018   echo $ECHO_N "(cached) $ECHO_C" >&6
20019 else
20020   cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h.  */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h.  */
20026 #include <sys/types.h>
20027 #include <sys/time.h>
20028 #include <time.h>
20029
20030 int
20031 main ()
20032 {
20033 if ((struct tm *) 0)
20034 return 0;
20035   ;
20036   return 0;
20037 }
20038 _ACEOF
20039 rm -f conftest.$ac_objext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20041   (eval $ac_compile) 2>conftest.er1
20042   ac_status=$?
20043   grep -v '^ *+' conftest.er1 >conftest.err
20044   rm -f conftest.er1
20045   cat conftest.err >&5
20046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047   (exit $ac_status); } &&
20048          { ac_try='test -z "$ac_c_werror_flag"
20049                          || test ! -s conftest.err'
20050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051   (eval $ac_try) 2>&5
20052   ac_status=$?
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); }; } &&
20055          { ac_try='test -s conftest.$ac_objext'
20056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057   (eval $ac_try) 2>&5
20058   ac_status=$?
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); }; }; then
20061   ac_cv_header_time=yes
20062 else
20063   echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066 ac_cv_header_time=no
20067 fi
20068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20069 fi
20070 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20071 echo "${ECHO_T}$ac_cv_header_time" >&6
20072 if test $ac_cv_header_time = yes; then
20073
20074 cat >>confdefs.h <<\_ACEOF
20075 #define TIME_WITH_SYS_TIME 1
20076 _ACEOF
20077
20078 fi
20079
20080
20081 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20082 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20083 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20084   echo $ECHO_N "(cached) $ECHO_C" >&6
20085 else
20086   cat >conftest.$ac_ext <<_ACEOF
20087 /* confdefs.h.  */
20088 _ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h.  */
20092 $ac_includes_default
20093 int
20094 main ()
20095 {
20096 static struct stat ac_aggr;
20097 if (ac_aggr.st_blksize)
20098 return 0;
20099   ;
20100   return 0;
20101 }
20102 _ACEOF
20103 rm -f conftest.$ac_objext
20104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20105   (eval $ac_compile) 2>conftest.er1
20106   ac_status=$?
20107   grep -v '^ *+' conftest.er1 >conftest.err
20108   rm -f conftest.er1
20109   cat conftest.err >&5
20110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111   (exit $ac_status); } &&
20112          { ac_try='test -z "$ac_c_werror_flag"
20113                          || test ! -s conftest.err'
20114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115   (eval $ac_try) 2>&5
20116   ac_status=$?
20117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); }; } &&
20119          { ac_try='test -s conftest.$ac_objext'
20120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121   (eval $ac_try) 2>&5
20122   ac_status=$?
20123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124   (exit $ac_status); }; }; then
20125   ac_cv_member_struct_stat_st_blksize=yes
20126 else
20127   echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20129
20130 cat >conftest.$ac_ext <<_ACEOF
20131 /* confdefs.h.  */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h.  */
20136 $ac_includes_default
20137 int
20138 main ()
20139 {
20140 static struct stat ac_aggr;
20141 if (sizeof ac_aggr.st_blksize)
20142 return 0;
20143   ;
20144   return 0;
20145 }
20146 _ACEOF
20147 rm -f conftest.$ac_objext
20148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20149   (eval $ac_compile) 2>conftest.er1
20150   ac_status=$?
20151   grep -v '^ *+' conftest.er1 >conftest.err
20152   rm -f conftest.er1
20153   cat conftest.err >&5
20154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155   (exit $ac_status); } &&
20156          { ac_try='test -z "$ac_c_werror_flag"
20157                          || test ! -s conftest.err'
20158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159   (eval $ac_try) 2>&5
20160   ac_status=$?
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); }; } &&
20163          { ac_try='test -s conftest.$ac_objext'
20164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165   (eval $ac_try) 2>&5
20166   ac_status=$?
20167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168   (exit $ac_status); }; }; then
20169   ac_cv_member_struct_stat_st_blksize=yes
20170 else
20171   echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20173
20174 ac_cv_member_struct_stat_st_blksize=no
20175 fi
20176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20177 fi
20178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20179 fi
20180 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20181 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20182 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20183
20184 cat >>confdefs.h <<_ACEOF
20185 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20186 _ACEOF
20187
20188
20189 cat >>confdefs.h <<\_ACEOF
20190 #define HAVE_ST_BLKSIZE 1
20191 _ACEOF
20192
20193 fi
20194
20195
20196 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20197 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20198 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20199   echo $ECHO_N "(cached) $ECHO_C" >&6
20200 else
20201   cat >conftest.$ac_ext <<_ACEOF
20202 /* confdefs.h.  */
20203 _ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h.  */
20207 $ac_includes_default
20208 int
20209 main ()
20210 {
20211 static struct stat ac_aggr;
20212 if (ac_aggr.st_blocks)
20213 return 0;
20214   ;
20215   return 0;
20216 }
20217 _ACEOF
20218 rm -f conftest.$ac_objext
20219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20220   (eval $ac_compile) 2>conftest.er1
20221   ac_status=$?
20222   grep -v '^ *+' conftest.er1 >conftest.err
20223   rm -f conftest.er1
20224   cat conftest.err >&5
20225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226   (exit $ac_status); } &&
20227          { ac_try='test -z "$ac_c_werror_flag"
20228                          || test ! -s conftest.err'
20229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230   (eval $ac_try) 2>&5
20231   ac_status=$?
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); }; } &&
20234          { ac_try='test -s conftest.$ac_objext'
20235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236   (eval $ac_try) 2>&5
20237   ac_status=$?
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); }; }; then
20240   ac_cv_member_struct_stat_st_blocks=yes
20241 else
20242   echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20244
20245 cat >conftest.$ac_ext <<_ACEOF
20246 /* confdefs.h.  */
20247 _ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h.  */
20251 $ac_includes_default
20252 int
20253 main ()
20254 {
20255 static struct stat ac_aggr;
20256 if (sizeof ac_aggr.st_blocks)
20257 return 0;
20258   ;
20259   return 0;
20260 }
20261 _ACEOF
20262 rm -f conftest.$ac_objext
20263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20264   (eval $ac_compile) 2>conftest.er1
20265   ac_status=$?
20266   grep -v '^ *+' conftest.er1 >conftest.err
20267   rm -f conftest.er1
20268   cat conftest.err >&5
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); } &&
20271          { ac_try='test -z "$ac_c_werror_flag"
20272                          || test ! -s conftest.err'
20273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274   (eval $ac_try) 2>&5
20275   ac_status=$?
20276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277   (exit $ac_status); }; } &&
20278          { ac_try='test -s conftest.$ac_objext'
20279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280   (eval $ac_try) 2>&5
20281   ac_status=$?
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); }; }; then
20284   ac_cv_member_struct_stat_st_blocks=yes
20285 else
20286   echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20288
20289 ac_cv_member_struct_stat_st_blocks=no
20290 fi
20291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20292 fi
20293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20294 fi
20295 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20296 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20297 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20298
20299 cat >>confdefs.h <<_ACEOF
20300 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20301 _ACEOF
20302
20303
20304 cat >>confdefs.h <<\_ACEOF
20305 #define HAVE_ST_BLOCKS 1
20306 _ACEOF
20307
20308 else
20309   case $LIBOBJS in
20310     "fileblocks.$ac_objext"   | \
20311   *" fileblocks.$ac_objext"   | \
20312     "fileblocks.$ac_objext "* | \
20313   *" fileblocks.$ac_objext "* ) ;;
20314   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20315 esac
20316
20317 fi
20318
20319
20320 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20321 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20322 if test "${ac_cv_struct_tm+set}" = set; then
20323   echo $ECHO_N "(cached) $ECHO_C" >&6
20324 else
20325   cat >conftest.$ac_ext <<_ACEOF
20326 /* confdefs.h.  */
20327 _ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h.  */
20331 #include <sys/types.h>
20332 #include <time.h>
20333
20334 int
20335 main ()
20336 {
20337 struct tm *tp; tp->tm_sec;
20338   ;
20339   return 0;
20340 }
20341 _ACEOF
20342 rm -f conftest.$ac_objext
20343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20344   (eval $ac_compile) 2>conftest.er1
20345   ac_status=$?
20346   grep -v '^ *+' conftest.er1 >conftest.err
20347   rm -f conftest.er1
20348   cat conftest.err >&5
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); } &&
20351          { ac_try='test -z "$ac_c_werror_flag"
20352                          || test ! -s conftest.err'
20353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354   (eval $ac_try) 2>&5
20355   ac_status=$?
20356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357   (exit $ac_status); }; } &&
20358          { ac_try='test -s conftest.$ac_objext'
20359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360   (eval $ac_try) 2>&5
20361   ac_status=$?
20362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); }; }; then
20364   ac_cv_struct_tm=time.h
20365 else
20366   echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20368
20369 ac_cv_struct_tm=sys/time.h
20370 fi
20371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20372 fi
20373 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20374 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20375 if test $ac_cv_struct_tm = sys/time.h; then
20376
20377 cat >>confdefs.h <<\_ACEOF
20378 #define TM_IN_SYS_TIME 1
20379 _ACEOF
20380
20381 fi
20382
20383 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20384 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20385 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20386   echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388   cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h.  */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h.  */
20394 #include <sys/types.h>
20395 #include <$ac_cv_struct_tm>
20396
20397
20398 int
20399 main ()
20400 {
20401 static struct tm ac_aggr;
20402 if (ac_aggr.tm_zone)
20403 return 0;
20404   ;
20405   return 0;
20406 }
20407 _ACEOF
20408 rm -f conftest.$ac_objext
20409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20410   (eval $ac_compile) 2>conftest.er1
20411   ac_status=$?
20412   grep -v '^ *+' conftest.er1 >conftest.err
20413   rm -f conftest.er1
20414   cat conftest.err >&5
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); } &&
20417          { ac_try='test -z "$ac_c_werror_flag"
20418                          || test ! -s conftest.err'
20419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420   (eval $ac_try) 2>&5
20421   ac_status=$?
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); }; } &&
20424          { ac_try='test -s conftest.$ac_objext'
20425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426   (eval $ac_try) 2>&5
20427   ac_status=$?
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); }; }; then
20430   ac_cv_member_struct_tm_tm_zone=yes
20431 else
20432   echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20434
20435 cat >conftest.$ac_ext <<_ACEOF
20436 /* confdefs.h.  */
20437 _ACEOF
20438 cat confdefs.h >>conftest.$ac_ext
20439 cat >>conftest.$ac_ext <<_ACEOF
20440 /* end confdefs.h.  */
20441 #include <sys/types.h>
20442 #include <$ac_cv_struct_tm>
20443
20444
20445 int
20446 main ()
20447 {
20448 static struct tm ac_aggr;
20449 if (sizeof ac_aggr.tm_zone)
20450 return 0;
20451   ;
20452   return 0;
20453 }
20454 _ACEOF
20455 rm -f conftest.$ac_objext
20456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20457   (eval $ac_compile) 2>conftest.er1
20458   ac_status=$?
20459   grep -v '^ *+' conftest.er1 >conftest.err
20460   rm -f conftest.er1
20461   cat conftest.err >&5
20462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); } &&
20464          { ac_try='test -z "$ac_c_werror_flag"
20465                          || test ! -s conftest.err'
20466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467   (eval $ac_try) 2>&5
20468   ac_status=$?
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); }; } &&
20471          { ac_try='test -s conftest.$ac_objext'
20472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473   (eval $ac_try) 2>&5
20474   ac_status=$?
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); }; }; then
20477   ac_cv_member_struct_tm_tm_zone=yes
20478 else
20479   echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20481
20482 ac_cv_member_struct_tm_tm_zone=no
20483 fi
20484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20485 fi
20486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20487 fi
20488 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20489 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20490 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20491
20492 cat >>confdefs.h <<_ACEOF
20493 #define HAVE_STRUCT_TM_TM_ZONE 1
20494 _ACEOF
20495
20496
20497 fi
20498
20499 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20500
20501 cat >>confdefs.h <<\_ACEOF
20502 #define HAVE_TM_ZONE 1
20503 _ACEOF
20504
20505 else
20506   echo "$as_me:$LINENO: checking for tzname" >&5
20507 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20508 if test "${ac_cv_var_tzname+set}" = set; then
20509   echo $ECHO_N "(cached) $ECHO_C" >&6
20510 else
20511   cat >conftest.$ac_ext <<_ACEOF
20512 /* confdefs.h.  */
20513 _ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h.  */
20517 #include <time.h>
20518 #ifndef tzname /* For SGI.  */
20519 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
20520 #endif
20521
20522 int
20523 main ()
20524 {
20525 atoi(*tzname);
20526   ;
20527   return 0;
20528 }
20529 _ACEOF
20530 rm -f conftest.$ac_objext conftest$ac_exeext
20531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20532   (eval $ac_link) 2>conftest.er1
20533   ac_status=$?
20534   grep -v '^ *+' conftest.er1 >conftest.err
20535   rm -f conftest.er1
20536   cat conftest.err >&5
20537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538   (exit $ac_status); } &&
20539          { ac_try='test -z "$ac_c_werror_flag"
20540                          || test ! -s conftest.err'
20541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542   (eval $ac_try) 2>&5
20543   ac_status=$?
20544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); }; } &&
20546          { ac_try='test -s conftest$ac_exeext'
20547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548   (eval $ac_try) 2>&5
20549   ac_status=$?
20550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551   (exit $ac_status); }; }; then
20552   ac_cv_var_tzname=yes
20553 else
20554   echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20556
20557 ac_cv_var_tzname=no
20558 fi
20559 rm -f conftest.err conftest.$ac_objext \
20560       conftest$ac_exeext conftest.$ac_ext
20561 fi
20562 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20563 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20564   if test $ac_cv_var_tzname = yes; then
20565
20566 cat >>confdefs.h <<\_ACEOF
20567 #define HAVE_TZNAME 1
20568 _ACEOF
20569
20570   fi
20571 fi
20572
20573
20574 echo "$as_me:$LINENO: checking for utime.h" >&5
20575 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20576 if test "${ba_cv_header_utime_h+set}" = set; then
20577   echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579   cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h.  */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h.  */
20585
20586 #include <sys/types.h>
20587 #include <utime.h>
20588 int
20589 main ()
20590 {
20591 struct utimbuf foo
20592   ;
20593   return 0;
20594 }
20595 _ACEOF
20596 rm -f conftest.$ac_objext
20597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20598   (eval $ac_compile) 2>conftest.er1
20599   ac_status=$?
20600   grep -v '^ *+' conftest.er1 >conftest.err
20601   rm -f conftest.er1
20602   cat conftest.err >&5
20603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604   (exit $ac_status); } &&
20605          { ac_try='test -z "$ac_c_werror_flag"
20606                          || test ! -s conftest.err'
20607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608   (eval $ac_try) 2>&5
20609   ac_status=$?
20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); }; } &&
20612          { ac_try='test -s conftest.$ac_objext'
20613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614   (eval $ac_try) 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); }; }; then
20618   ba_cv_header_utime_h=yes
20619 else
20620   echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20622
20623 ba_cv_header_utime_h=no
20624 fi
20625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20626 fi
20627 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
20628 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
20629 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
20630 #define HAVE_UTIME_H 1
20631 _ACEOF
20632
20633
20634 echo "$as_me:$LINENO: checking for socklen_t" >&5
20635 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20636 if test "${ba_cv_header_socklen_t+set}" = set; then
20637   echo $ECHO_N "(cached) $ECHO_C" >&6
20638 else
20639   cat >conftest.$ac_ext <<_ACEOF
20640 /* confdefs.h.  */
20641 _ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h.  */
20645
20646 #include <sys/types.h>
20647 #include <sys/socket.h>
20648 int
20649 main ()
20650 {
20651 socklen_t x
20652   ;
20653   return 0;
20654 }
20655 _ACEOF
20656 rm -f conftest.$ac_objext
20657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20658   (eval $ac_compile) 2>conftest.er1
20659   ac_status=$?
20660   grep -v '^ *+' conftest.er1 >conftest.err
20661   rm -f conftest.er1
20662   cat conftest.err >&5
20663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664   (exit $ac_status); } &&
20665          { ac_try='test -z "$ac_c_werror_flag"
20666                          || test ! -s conftest.err'
20667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668   (eval $ac_try) 2>&5
20669   ac_status=$?
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); }; } &&
20672          { ac_try='test -s conftest.$ac_objext'
20673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674   (eval $ac_try) 2>&5
20675   ac_status=$?
20676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677   (exit $ac_status); }; }; then
20678   ba_cv_header_socklen_t=yes
20679 else
20680   echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20682
20683 ba_cv_header_socklen_t=no
20684 fi
20685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20686 fi
20687 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
20688 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
20689 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
20690 #define HAVE_SOCKLEN_T 1
20691 _ACEOF
20692
20693
20694 echo "$as_me:$LINENO: checking for bigendian" >&5
20695 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
20696 if test "${ba_cv_bigendian+set}" = set; then
20697   echo $ECHO_N "(cached) $ECHO_C" >&6
20698 else
20699   if test "$cross_compiling" = yes; then
20700   ba_cv_bigendian=no
20701 else
20702   cat >conftest.$ac_ext <<_ACEOF
20703 /* confdefs.h.  */
20704 _ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h.  */
20708 main(){long a=1L; char *p=(char *)&a; exit(*p);}
20709 _ACEOF
20710 rm -f conftest$ac_exeext
20711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20712   (eval $ac_link) 2>&5
20713   ac_status=$?
20714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717   (eval $ac_try) 2>&5
20718   ac_status=$?
20719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720   (exit $ac_status); }; }; then
20721   ba_cv_bigendian=yes
20722 else
20723   echo "$as_me: program exited with status $ac_status" >&5
20724 echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20726
20727 ( exit $ac_status )
20728 ba_cv_bigendian=no
20729 fi
20730 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20731 fi
20732 fi
20733 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
20734 echo "${ECHO_T}$ba_cv_bigendian" >&6
20735 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
20736 #define HAVE_BIGENDIAN 1
20737 _ACEOF
20738
20739
20740
20741 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20742 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20743 if test "${ac_cv_c_const+set}" = set; then
20744   echo $ECHO_N "(cached) $ECHO_C" >&6
20745 else
20746   cat >conftest.$ac_ext <<_ACEOF
20747 /* confdefs.h.  */
20748 _ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h.  */
20752
20753 int
20754 main ()
20755 {
20756 /* FIXME: Include the comments suggested by Paul. */
20757 #ifndef __cplusplus
20758   /* Ultrix mips cc rejects this.  */
20759   typedef int charset[2];
20760   const charset x;
20761   /* SunOS 4.1.1 cc rejects this.  */
20762   char const *const *ccp;
20763   char **p;
20764   /* NEC SVR4.0.2 mips cc rejects this.  */
20765   struct point {int x, y;};
20766   static struct point const zero = {0,0};
20767   /* AIX XL C 1.02.0.0 rejects this.
20768      It does not let you subtract one const X* pointer from another in
20769      an arm of an if-expression whose if-part is not a constant
20770      expression */
20771   const char *g = "string";
20772   ccp = &g + (g ? g-g : 0);
20773   /* HPUX 7.0 cc rejects these. */
20774   ++ccp;
20775   p = (char**) ccp;
20776   ccp = (char const *const *) p;
20777   { /* SCO 3.2v4 cc rejects this.  */
20778     char *t;
20779     char const *s = 0 ? (char *) 0 : (char const *) 0;
20780
20781     *t++ = 0;
20782   }
20783   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20784     int x[] = {25, 17};
20785     const int *foo = &x[0];
20786     ++foo;
20787   }
20788   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20789     typedef const int *iptr;
20790     iptr p = 0;
20791     ++p;
20792   }
20793   { /* AIX XL C 1.02.0.0 rejects this saying
20794        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20795     struct s { int j; const int *ap[3]; };
20796     struct s *b; b->j = 5;
20797   }
20798   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20799     const int foo = 10;
20800   }
20801 #endif
20802
20803   ;
20804   return 0;
20805 }
20806 _ACEOF
20807 rm -f conftest.$ac_objext
20808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20809   (eval $ac_compile) 2>conftest.er1
20810   ac_status=$?
20811   grep -v '^ *+' conftest.er1 >conftest.err
20812   rm -f conftest.er1
20813   cat conftest.err >&5
20814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815   (exit $ac_status); } &&
20816          { ac_try='test -z "$ac_c_werror_flag"
20817                          || test ! -s conftest.err'
20818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20819   (eval $ac_try) 2>&5
20820   ac_status=$?
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); }; } &&
20823          { ac_try='test -s conftest.$ac_objext'
20824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825   (eval $ac_try) 2>&5
20826   ac_status=$?
20827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828   (exit $ac_status); }; }; then
20829   ac_cv_c_const=yes
20830 else
20831   echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20833
20834 ac_cv_c_const=no
20835 fi
20836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20837 fi
20838 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20839 echo "${ECHO_T}$ac_cv_c_const" >&6
20840 if test $ac_cv_c_const = no; then
20841
20842 cat >>confdefs.h <<\_ACEOF
20843 #define const
20844 _ACEOF
20845
20846 fi
20847
20848
20849
20850 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
20851 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
20852 fstype=no
20853 # The order of these tests is important.
20854 cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h.  */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h.  */
20860 #include <sys/statvfs.h>
20861 #include <sys/fstyp.h>
20862 _ACEOF
20863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20864   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20865   ac_status=$?
20866   grep -v '^ *+' conftest.er1 >conftest.err
20867   rm -f conftest.er1
20868   cat conftest.err >&5
20869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870   (exit $ac_status); } >/dev/null; then
20871   if test -s conftest.err; then
20872     ac_cpp_err=$ac_c_preproc_warn_flag
20873     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20874   else
20875     ac_cpp_err=
20876   fi
20877 else
20878   ac_cpp_err=yes
20879 fi
20880 if test -z "$ac_cpp_err"; then
20881   cat >>confdefs.h <<\_ACEOF
20882 #define FSTYPE_STATVFS 1
20883 _ACEOF
20884  fstype=SVR4
20885 else
20886   echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20888
20889
20890 fi
20891 rm -f conftest.err conftest.$ac_ext
20892 if test $fstype = no; then
20893 cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h.  */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h.  */
20899 #include <sys/statfs.h>
20900 #include <sys/fstyp.h>
20901 _ACEOF
20902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20903   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20904   ac_status=$?
20905   grep -v '^ *+' conftest.er1 >conftest.err
20906   rm -f conftest.er1
20907   cat conftest.err >&5
20908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909   (exit $ac_status); } >/dev/null; then
20910   if test -s conftest.err; then
20911     ac_cpp_err=$ac_c_preproc_warn_flag
20912     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20913   else
20914     ac_cpp_err=
20915   fi
20916 else
20917   ac_cpp_err=yes
20918 fi
20919 if test -z "$ac_cpp_err"; then
20920   cat >>confdefs.h <<\_ACEOF
20921 #define FSTYPE_USG_STATFS 1
20922 _ACEOF
20923  fstype=SVR3
20924 else
20925   echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20927
20928
20929 fi
20930 rm -f conftest.err conftest.$ac_ext
20931 fi
20932 if test $fstype = no; then
20933 cat >conftest.$ac_ext <<_ACEOF
20934 /* confdefs.h.  */
20935 _ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h.  */
20939 #include <sys/statfs.h>
20940 #include <sys/vmount.h>
20941 _ACEOF
20942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20943   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20944   ac_status=$?
20945   grep -v '^ *+' conftest.er1 >conftest.err
20946   rm -f conftest.er1
20947   cat conftest.err >&5
20948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949   (exit $ac_status); } >/dev/null; then
20950   if test -s conftest.err; then
20951     ac_cpp_err=$ac_c_preproc_warn_flag
20952     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20953   else
20954     ac_cpp_err=
20955   fi
20956 else
20957   ac_cpp_err=yes
20958 fi
20959 if test -z "$ac_cpp_err"; then
20960   cat >>confdefs.h <<\_ACEOF
20961 #define FSTYPE_AIX_STATFS 1
20962 _ACEOF
20963  fstype=AIX
20964 else
20965   echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20967
20968
20969 fi
20970 rm -f conftest.err conftest.$ac_ext
20971 fi
20972 if test $fstype = no; then
20973 cat >conftest.$ac_ext <<_ACEOF
20974 /* confdefs.h.  */
20975 _ACEOF
20976 cat confdefs.h >>conftest.$ac_ext
20977 cat >>conftest.$ac_ext <<_ACEOF
20978 /* end confdefs.h.  */
20979 #include <mntent.h>
20980 _ACEOF
20981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20982   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20983   ac_status=$?
20984   grep -v '^ *+' conftest.er1 >conftest.err
20985   rm -f conftest.er1
20986   cat conftest.err >&5
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); } >/dev/null; then
20989   if test -s conftest.err; then
20990     ac_cpp_err=$ac_c_preproc_warn_flag
20991     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20992   else
20993     ac_cpp_err=
20994   fi
20995 else
20996   ac_cpp_err=yes
20997 fi
20998 if test -z "$ac_cpp_err"; then
20999   cat >>confdefs.h <<\_ACEOF
21000 #define FSTYPE_MNTENT 1
21001 _ACEOF
21002  fstype=4.3BSD
21003 else
21004   echo "$as_me: failed program was:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21006
21007
21008 fi
21009 rm -f conftest.err conftest.$ac_ext
21010 fi
21011 if test $fstype = no; then
21012 cat >conftest.$ac_ext <<_ACEOF
21013 /* confdefs.h.  */
21014 _ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h.  */
21018 #include <sys/mount.h>
21019
21020 _ACEOF
21021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21022   $EGREP "f_type;" >/dev/null 2>&1; then
21023   cat >>confdefs.h <<\_ACEOF
21024 #define FSTYPE_STATFS 1
21025 _ACEOF
21026  fstype=4.4BSD/OSF1
21027 fi
21028 rm -f conftest*
21029
21030 fi
21031 if test $fstype = no; then
21032 cat >conftest.$ac_ext <<_ACEOF
21033 /* confdefs.h.  */
21034 _ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h.  */
21038 #include <sys/mount.h>
21039 #include <sys/fs_types.h>
21040 _ACEOF
21041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21043   ac_status=$?
21044   grep -v '^ *+' conftest.er1 >conftest.err
21045   rm -f conftest.er1
21046   cat conftest.err >&5
21047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048   (exit $ac_status); } >/dev/null; then
21049   if test -s conftest.err; then
21050     ac_cpp_err=$ac_c_preproc_warn_flag
21051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21052   else
21053     ac_cpp_err=
21054   fi
21055 else
21056   ac_cpp_err=yes
21057 fi
21058 if test -z "$ac_cpp_err"; then
21059   cat >>confdefs.h <<\_ACEOF
21060 #define FSTYPE_GETMNT 1
21061 _ACEOF
21062  fstype=Ultrix
21063 else
21064   echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21066
21067
21068 fi
21069 rm -f conftest.err conftest.$ac_ext
21070 fi
21071 echo "$as_me:$LINENO: result: $fstype" >&5
21072 echo "${ECHO_T}$fstype" >&6
21073
21074 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21075   echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21076 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21077 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21078   echo $ECHO_N "(cached) $ECHO_C" >&6
21079 fi
21080 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21081 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21082 else
21083   # Is the header compilable?
21084 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21085 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21086 cat >conftest.$ac_ext <<_ACEOF
21087 /* confdefs.h.  */
21088 _ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h.  */
21092 $ac_includes_default
21093 #include <sys/statvfs.h>
21094 _ACEOF
21095 rm -f conftest.$ac_objext
21096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21097   (eval $ac_compile) 2>conftest.er1
21098   ac_status=$?
21099   grep -v '^ *+' conftest.er1 >conftest.err
21100   rm -f conftest.er1
21101   cat conftest.err >&5
21102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); } &&
21104          { ac_try='test -z "$ac_c_werror_flag"
21105                          || test ! -s conftest.err'
21106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21107   (eval $ac_try) 2>&5
21108   ac_status=$?
21109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110   (exit $ac_status); }; } &&
21111          { ac_try='test -s conftest.$ac_objext'
21112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113   (eval $ac_try) 2>&5
21114   ac_status=$?
21115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116   (exit $ac_status); }; }; then
21117   ac_header_compiler=yes
21118 else
21119   echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21121
21122 ac_header_compiler=no
21123 fi
21124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21126 echo "${ECHO_T}$ac_header_compiler" >&6
21127
21128 # Is the header present?
21129 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21130 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21131 cat >conftest.$ac_ext <<_ACEOF
21132 /* confdefs.h.  */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h.  */
21137 #include <sys/statvfs.h>
21138 _ACEOF
21139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21140   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21141   ac_status=$?
21142   grep -v '^ *+' conftest.er1 >conftest.err
21143   rm -f conftest.er1
21144   cat conftest.err >&5
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); } >/dev/null; then
21147   if test -s conftest.err; then
21148     ac_cpp_err=$ac_c_preproc_warn_flag
21149     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21150   else
21151     ac_cpp_err=
21152   fi
21153 else
21154   ac_cpp_err=yes
21155 fi
21156 if test -z "$ac_cpp_err"; then
21157   ac_header_preproc=yes
21158 else
21159   echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21161
21162   ac_header_preproc=no
21163 fi
21164 rm -f conftest.err conftest.$ac_ext
21165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21166 echo "${ECHO_T}$ac_header_preproc" >&6
21167
21168 # So?  What about this header?
21169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21170   yes:no: )
21171     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21172 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21173     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21174 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21175     ac_header_preproc=yes
21176     ;;
21177   no:yes:* )
21178     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21179 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21180     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21181 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21182     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21183 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21184     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21185 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21186     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21187 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21188     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21189 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21190     (
21191       cat <<\_ASBOX
21192 ## ------------------------------------------ ##
21193 ## Report this to the AC_PACKAGE_NAME lists.  ##
21194 ## ------------------------------------------ ##
21195 _ASBOX
21196     ) |
21197       sed "s/^/$as_me: WARNING:     /" >&2
21198     ;;
21199 esac
21200 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21201 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21202 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21203   echo $ECHO_N "(cached) $ECHO_C" >&6
21204 else
21205   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21206 fi
21207 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21208 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21209
21210 fi
21211 if test $ac_cv_header_sys_statvfs_h = yes; then
21212
21213 cat >>confdefs.h <<\_ACEOF
21214 #define HAVE_SYS_STATVFS_H 1
21215 _ACEOF
21216
21217 fi
21218
21219
21220
21221 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21222 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21223 if test "${ac_cv_type_signal+set}" = set; then
21224   echo $ECHO_N "(cached) $ECHO_C" >&6
21225 else
21226   cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h.  */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h.  */
21232 #include <sys/types.h>
21233 #include <signal.h>
21234 #ifdef signal
21235 # undef signal
21236 #endif
21237 #ifdef __cplusplus
21238 extern "C" void (*signal (int, void (*)(int)))(int);
21239 #else
21240 void (*signal ()) ();
21241 #endif
21242
21243 int
21244 main ()
21245 {
21246 int i;
21247   ;
21248   return 0;
21249 }
21250 _ACEOF
21251 rm -f conftest.$ac_objext
21252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21253   (eval $ac_compile) 2>conftest.er1
21254   ac_status=$?
21255   grep -v '^ *+' conftest.er1 >conftest.err
21256   rm -f conftest.er1
21257   cat conftest.err >&5
21258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259   (exit $ac_status); } &&
21260          { ac_try='test -z "$ac_c_werror_flag"
21261                          || test ! -s conftest.err'
21262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21263   (eval $ac_try) 2>&5
21264   ac_status=$?
21265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266   (exit $ac_status); }; } &&
21267          { ac_try='test -s conftest.$ac_objext'
21268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269   (eval $ac_try) 2>&5
21270   ac_status=$?
21271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272   (exit $ac_status); }; }; then
21273   ac_cv_type_signal=void
21274 else
21275   echo "$as_me: failed program was:" >&5
21276 sed 's/^/| /' conftest.$ac_ext >&5
21277
21278 ac_cv_type_signal=int
21279 fi
21280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21281 fi
21282 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21283 echo "${ECHO_T}$ac_cv_type_signal" >&6
21284
21285 cat >>confdefs.h <<_ACEOF
21286 #define RETSIGTYPE $ac_cv_type_signal
21287 _ACEOF
21288
21289
21290
21291   echo "$as_me:$LINENO: checking for type of signal functions" >&5
21292 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21293   if test "${bash_cv_signal_vintage+set}" = set; then
21294   echo $ECHO_N "(cached) $ECHO_C" >&6
21295 else
21296
21297     cat >conftest.$ac_ext <<_ACEOF
21298 /* confdefs.h.  */
21299 _ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h.  */
21303 #include <signal.h>
21304 int
21305 main ()
21306 {
21307
21308       sigset_t ss;
21309       struct sigaction sa;
21310       sigemptyset(&ss); sigsuspend(&ss);
21311       sigaction(SIGINT, &sa, (struct sigaction *) 0);
21312       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21313
21314   ;
21315   return 0;
21316 }
21317 _ACEOF
21318 rm -f conftest.$ac_objext conftest$ac_exeext
21319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21320   (eval $ac_link) 2>conftest.er1
21321   ac_status=$?
21322   grep -v '^ *+' conftest.er1 >conftest.err
21323   rm -f conftest.er1
21324   cat conftest.err >&5
21325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326   (exit $ac_status); } &&
21327          { ac_try='test -z "$ac_c_werror_flag"
21328                          || test ! -s conftest.err'
21329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330   (eval $ac_try) 2>&5
21331   ac_status=$?
21332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333   (exit $ac_status); }; } &&
21334          { ac_try='test -s conftest$ac_exeext'
21335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21336   (eval $ac_try) 2>&5
21337   ac_status=$?
21338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339   (exit $ac_status); }; }; then
21340   bash_cv_signal_vintage="posix"
21341 else
21342   echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21344
21345
21346       cat >conftest.$ac_ext <<_ACEOF
21347 /* confdefs.h.  */
21348 _ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h.  */
21352 #include <signal.h>
21353 int
21354 main ()
21355 {
21356
21357           int mask = sigmask(SIGINT);
21358           sigsetmask(mask); sigblock(mask); sigpause(mask);
21359
21360   ;
21361   return 0;
21362 }
21363 _ACEOF
21364 rm -f conftest.$ac_objext conftest$ac_exeext
21365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21366   (eval $ac_link) 2>conftest.er1
21367   ac_status=$?
21368   grep -v '^ *+' conftest.er1 >conftest.err
21369   rm -f conftest.er1
21370   cat conftest.err >&5
21371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372   (exit $ac_status); } &&
21373          { ac_try='test -z "$ac_c_werror_flag"
21374                          || test ! -s conftest.err'
21375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376   (eval $ac_try) 2>&5
21377   ac_status=$?
21378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379   (exit $ac_status); }; } &&
21380          { ac_try='test -s conftest$ac_exeext'
21381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382   (eval $ac_try) 2>&5
21383   ac_status=$?
21384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385   (exit $ac_status); }; }; then
21386   bash_cv_signal_vintage="4.2bsd"
21387 else
21388   echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21390
21391
21392         cat >conftest.$ac_ext <<_ACEOF
21393 /* confdefs.h.  */
21394 _ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h.  */
21398
21399           #include <signal.h>
21400           RETSIGTYPE foo() { }
21401 int
21402 main ()
21403 {
21404
21405                   int mask = sigmask(SIGINT);
21406                   sigset(SIGINT, foo); sigrelse(SIGINT);
21407                   sighold(SIGINT); sigpause(SIGINT);
21408
21409   ;
21410   return 0;
21411 }
21412 _ACEOF
21413 rm -f conftest.$ac_objext conftest$ac_exeext
21414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21415   (eval $ac_link) 2>conftest.er1
21416   ac_status=$?
21417   grep -v '^ *+' conftest.er1 >conftest.err
21418   rm -f conftest.er1
21419   cat conftest.err >&5
21420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421   (exit $ac_status); } &&
21422          { ac_try='test -z "$ac_c_werror_flag"
21423                          || test ! -s conftest.err'
21424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21425   (eval $ac_try) 2>&5
21426   ac_status=$?
21427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428   (exit $ac_status); }; } &&
21429          { ac_try='test -s conftest$ac_exeext'
21430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431   (eval $ac_try) 2>&5
21432   ac_status=$?
21433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434   (exit $ac_status); }; }; then
21435   bash_cv_signal_vintage="svr3"
21436 else
21437   echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21439
21440 bash_cv_signal_vintage="v7"
21441
21442 fi
21443 rm -f conftest.err conftest.$ac_objext \
21444       conftest$ac_exeext conftest.$ac_ext
21445
21446 fi
21447 rm -f conftest.err conftest.$ac_objext \
21448       conftest$ac_exeext conftest.$ac_ext
21449
21450 fi
21451 rm -f conftest.err conftest.$ac_objext \
21452       conftest$ac_exeext conftest.$ac_ext
21453
21454 fi
21455
21456   echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21457 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21458   if test "$bash_cv_signal_vintage" = "posix"; then
21459     cat >>confdefs.h <<\_ACEOF
21460 #define HAVE_POSIX_SIGNALS 1
21461 _ACEOF
21462
21463   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21464     cat >>confdefs.h <<\_ACEOF
21465 #define HAVE_BSD_SIGNALS 1
21466 _ACEOF
21467
21468   elif test "$bash_cv_signal_vintage" = "svr3"; then
21469     cat >>confdefs.h <<\_ACEOF
21470 #define HAVE_USG_SIGHOLD 1
21471 _ACEOF
21472
21473   fi
21474
21475 echo "$as_me:$LINENO: checking for mode_t" >&5
21476 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21477 if test "${ac_cv_type_mode_t+set}" = set; then
21478   echo $ECHO_N "(cached) $ECHO_C" >&6
21479 else
21480   cat >conftest.$ac_ext <<_ACEOF
21481 /* confdefs.h.  */
21482 _ACEOF
21483 cat confdefs.h >>conftest.$ac_ext
21484 cat >>conftest.$ac_ext <<_ACEOF
21485 /* end confdefs.h.  */
21486 $ac_includes_default
21487 int
21488 main ()
21489 {
21490 if ((mode_t *) 0)
21491   return 0;
21492 if (sizeof (mode_t))
21493   return 0;
21494   ;
21495   return 0;
21496 }
21497 _ACEOF
21498 rm -f conftest.$ac_objext
21499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21500   (eval $ac_compile) 2>conftest.er1
21501   ac_status=$?
21502   grep -v '^ *+' conftest.er1 >conftest.err
21503   rm -f conftest.er1
21504   cat conftest.err >&5
21505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506   (exit $ac_status); } &&
21507          { ac_try='test -z "$ac_c_werror_flag"
21508                          || test ! -s conftest.err'
21509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510   (eval $ac_try) 2>&5
21511   ac_status=$?
21512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513   (exit $ac_status); }; } &&
21514          { ac_try='test -s conftest.$ac_objext'
21515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516   (eval $ac_try) 2>&5
21517   ac_status=$?
21518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519   (exit $ac_status); }; }; then
21520   ac_cv_type_mode_t=yes
21521 else
21522   echo "$as_me: failed program was:" >&5
21523 sed 's/^/| /' conftest.$ac_ext >&5
21524
21525 ac_cv_type_mode_t=no
21526 fi
21527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21528 fi
21529 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21530 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21531 if test $ac_cv_type_mode_t = yes; then
21532   :
21533 else
21534
21535 cat >>confdefs.h <<_ACEOF
21536 #define mode_t int
21537 _ACEOF
21538
21539 fi
21540
21541 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21542 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21543 if test "${ac_cv_type_uid_t+set}" = set; then
21544   echo $ECHO_N "(cached) $ECHO_C" >&6
21545 else
21546   cat >conftest.$ac_ext <<_ACEOF
21547 /* confdefs.h.  */
21548 _ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h.  */
21552 #include <sys/types.h>
21553
21554 _ACEOF
21555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21556   $EGREP "uid_t" >/dev/null 2>&1; then
21557   ac_cv_type_uid_t=yes
21558 else
21559   ac_cv_type_uid_t=no
21560 fi
21561 rm -f conftest*
21562
21563 fi
21564 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21565 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21566 if test $ac_cv_type_uid_t = no; then
21567
21568 cat >>confdefs.h <<\_ACEOF
21569 #define uid_t int
21570 _ACEOF
21571
21572
21573 cat >>confdefs.h <<\_ACEOF
21574 #define gid_t int
21575 _ACEOF
21576
21577 fi
21578
21579 echo "$as_me:$LINENO: checking for size_t" >&5
21580 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21581 if test "${ac_cv_type_size_t+set}" = set; then
21582   echo $ECHO_N "(cached) $ECHO_C" >&6
21583 else
21584   cat >conftest.$ac_ext <<_ACEOF
21585 /* confdefs.h.  */
21586 _ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h.  */
21590 $ac_includes_default
21591 int
21592 main ()
21593 {
21594 if ((size_t *) 0)
21595   return 0;
21596 if (sizeof (size_t))
21597   return 0;
21598   ;
21599   return 0;
21600 }
21601 _ACEOF
21602 rm -f conftest.$ac_objext
21603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21604   (eval $ac_compile) 2>conftest.er1
21605   ac_status=$?
21606   grep -v '^ *+' conftest.er1 >conftest.err
21607   rm -f conftest.er1
21608   cat conftest.err >&5
21609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610   (exit $ac_status); } &&
21611          { ac_try='test -z "$ac_c_werror_flag"
21612                          || test ! -s conftest.err'
21613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21614   (eval $ac_try) 2>&5
21615   ac_status=$?
21616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617   (exit $ac_status); }; } &&
21618          { ac_try='test -s conftest.$ac_objext'
21619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21620   (eval $ac_try) 2>&5
21621   ac_status=$?
21622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623   (exit $ac_status); }; }; then
21624   ac_cv_type_size_t=yes
21625 else
21626   echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21628
21629 ac_cv_type_size_t=no
21630 fi
21631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21632 fi
21633 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21634 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21635 if test $ac_cv_type_size_t = yes; then
21636   :
21637 else
21638
21639 cat >>confdefs.h <<_ACEOF
21640 #define size_t unsigned
21641 _ACEOF
21642
21643 fi
21644
21645 echo "$as_me:$LINENO: checking for pid_t" >&5
21646 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21647 if test "${ac_cv_type_pid_t+set}" = set; then
21648   echo $ECHO_N "(cached) $ECHO_C" >&6
21649 else
21650   cat >conftest.$ac_ext <<_ACEOF
21651 /* confdefs.h.  */
21652 _ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h.  */
21656 $ac_includes_default
21657 int
21658 main ()
21659 {
21660 if ((pid_t *) 0)
21661   return 0;
21662 if (sizeof (pid_t))
21663   return 0;
21664   ;
21665   return 0;
21666 }
21667 _ACEOF
21668 rm -f conftest.$ac_objext
21669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21670   (eval $ac_compile) 2>conftest.er1
21671   ac_status=$?
21672   grep -v '^ *+' conftest.er1 >conftest.err
21673   rm -f conftest.er1
21674   cat conftest.err >&5
21675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676   (exit $ac_status); } &&
21677          { ac_try='test -z "$ac_c_werror_flag"
21678                          || test ! -s conftest.err'
21679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680   (eval $ac_try) 2>&5
21681   ac_status=$?
21682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683   (exit $ac_status); }; } &&
21684          { ac_try='test -s conftest.$ac_objext'
21685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21686   (eval $ac_try) 2>&5
21687   ac_status=$?
21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689   (exit $ac_status); }; }; then
21690   ac_cv_type_pid_t=yes
21691 else
21692   echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21694
21695 ac_cv_type_pid_t=no
21696 fi
21697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21698 fi
21699 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21700 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21701 if test $ac_cv_type_pid_t = yes; then
21702   :
21703 else
21704
21705 cat >>confdefs.h <<_ACEOF
21706 #define pid_t int
21707 _ACEOF
21708
21709 fi
21710
21711 echo "$as_me:$LINENO: checking for off_t" >&5
21712 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21713 if test "${ac_cv_type_off_t+set}" = set; then
21714   echo $ECHO_N "(cached) $ECHO_C" >&6
21715 else
21716   cat >conftest.$ac_ext <<_ACEOF
21717 /* confdefs.h.  */
21718 _ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h.  */
21722 $ac_includes_default
21723 int
21724 main ()
21725 {
21726 if ((off_t *) 0)
21727   return 0;
21728 if (sizeof (off_t))
21729   return 0;
21730   ;
21731   return 0;
21732 }
21733 _ACEOF
21734 rm -f conftest.$ac_objext
21735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21736   (eval $ac_compile) 2>conftest.er1
21737   ac_status=$?
21738   grep -v '^ *+' conftest.er1 >conftest.err
21739   rm -f conftest.er1
21740   cat conftest.err >&5
21741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742   (exit $ac_status); } &&
21743          { ac_try='test -z "$ac_c_werror_flag"
21744                          || test ! -s conftest.err'
21745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746   (eval $ac_try) 2>&5
21747   ac_status=$?
21748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749   (exit $ac_status); }; } &&
21750          { ac_try='test -s conftest.$ac_objext'
21751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21752   (eval $ac_try) 2>&5
21753   ac_status=$?
21754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755   (exit $ac_status); }; }; then
21756   ac_cv_type_off_t=yes
21757 else
21758   echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21760
21761 ac_cv_type_off_t=no
21762 fi
21763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21764 fi
21765 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21766 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21767 if test $ac_cv_type_off_t = yes; then
21768   :
21769 else
21770
21771 cat >>confdefs.h <<_ACEOF
21772 #define off_t long
21773 _ACEOF
21774
21775 fi
21776
21777 echo "$as_me:$LINENO: checking for ino_t" >&5
21778 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
21779 if test "${ac_cv_type_ino_t+set}" = set; then
21780   echo $ECHO_N "(cached) $ECHO_C" >&6
21781 else
21782   cat >conftest.$ac_ext <<_ACEOF
21783 /* confdefs.h.  */
21784 _ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h.  */
21788 $ac_includes_default
21789 int
21790 main ()
21791 {
21792 if ((ino_t *) 0)
21793   return 0;
21794 if (sizeof (ino_t))
21795   return 0;
21796   ;
21797   return 0;
21798 }
21799 _ACEOF
21800 rm -f conftest.$ac_objext
21801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21802   (eval $ac_compile) 2>conftest.er1
21803   ac_status=$?
21804   grep -v '^ *+' conftest.er1 >conftest.err
21805   rm -f conftest.er1
21806   cat conftest.err >&5
21807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808   (exit $ac_status); } &&
21809          { ac_try='test -z "$ac_c_werror_flag"
21810                          || test ! -s conftest.err'
21811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812   (eval $ac_try) 2>&5
21813   ac_status=$?
21814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815   (exit $ac_status); }; } &&
21816          { ac_try='test -s conftest.$ac_objext'
21817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21818   (eval $ac_try) 2>&5
21819   ac_status=$?
21820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821   (exit $ac_status); }; }; then
21822   ac_cv_type_ino_t=yes
21823 else
21824   echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21826
21827 ac_cv_type_ino_t=no
21828 fi
21829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21830 fi
21831 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
21832 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
21833 if test $ac_cv_type_ino_t = yes; then
21834   :
21835 else
21836
21837 cat >>confdefs.h <<_ACEOF
21838 #define ino_t unsigned long
21839 _ACEOF
21840
21841 fi
21842
21843 echo "$as_me:$LINENO: checking for dev_t" >&5
21844 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
21845 if test "${ac_cv_type_dev_t+set}" = set; then
21846   echo $ECHO_N "(cached) $ECHO_C" >&6
21847 else
21848   cat >conftest.$ac_ext <<_ACEOF
21849 /* confdefs.h.  */
21850 _ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h.  */
21854 $ac_includes_default
21855 int
21856 main ()
21857 {
21858 if ((dev_t *) 0)
21859   return 0;
21860 if (sizeof (dev_t))
21861   return 0;
21862   ;
21863   return 0;
21864 }
21865 _ACEOF
21866 rm -f conftest.$ac_objext
21867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21868   (eval $ac_compile) 2>conftest.er1
21869   ac_status=$?
21870   grep -v '^ *+' conftest.er1 >conftest.err
21871   rm -f conftest.er1
21872   cat conftest.err >&5
21873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874   (exit $ac_status); } &&
21875          { ac_try='test -z "$ac_c_werror_flag"
21876                          || test ! -s conftest.err'
21877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878   (eval $ac_try) 2>&5
21879   ac_status=$?
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); }; } &&
21882          { ac_try='test -s conftest.$ac_objext'
21883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884   (eval $ac_try) 2>&5
21885   ac_status=$?
21886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887   (exit $ac_status); }; }; then
21888   ac_cv_type_dev_t=yes
21889 else
21890   echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21892
21893 ac_cv_type_dev_t=no
21894 fi
21895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21896 fi
21897 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
21898 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
21899 if test $ac_cv_type_dev_t = yes; then
21900   :
21901 else
21902
21903 cat >>confdefs.h <<_ACEOF
21904 #define dev_t unsigned long
21905 _ACEOF
21906
21907 fi
21908
21909 echo "$as_me:$LINENO: checking for daddr_t" >&5
21910 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
21911 if test "${ac_cv_type_daddr_t+set}" = set; then
21912   echo $ECHO_N "(cached) $ECHO_C" >&6
21913 else
21914   cat >conftest.$ac_ext <<_ACEOF
21915 /* confdefs.h.  */
21916 _ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h.  */
21920 $ac_includes_default
21921 int
21922 main ()
21923 {
21924 if ((daddr_t *) 0)
21925   return 0;
21926 if (sizeof (daddr_t))
21927   return 0;
21928   ;
21929   return 0;
21930 }
21931 _ACEOF
21932 rm -f conftest.$ac_objext
21933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21934   (eval $ac_compile) 2>conftest.er1
21935   ac_status=$?
21936   grep -v '^ *+' conftest.er1 >conftest.err
21937   rm -f conftest.er1
21938   cat conftest.err >&5
21939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940   (exit $ac_status); } &&
21941          { ac_try='test -z "$ac_c_werror_flag"
21942                          || test ! -s conftest.err'
21943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21944   (eval $ac_try) 2>&5
21945   ac_status=$?
21946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947   (exit $ac_status); }; } &&
21948          { ac_try='test -s conftest.$ac_objext'
21949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21950   (eval $ac_try) 2>&5
21951   ac_status=$?
21952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953   (exit $ac_status); }; }; then
21954   ac_cv_type_daddr_t=yes
21955 else
21956   echo "$as_me: failed program was:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21958
21959 ac_cv_type_daddr_t=no
21960 fi
21961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21962 fi
21963 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
21964 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
21965 if test $ac_cv_type_daddr_t = yes; then
21966   :
21967 else
21968
21969 cat >>confdefs.h <<_ACEOF
21970 #define daddr_t long
21971 _ACEOF
21972
21973 fi
21974
21975 echo "$as_me:$LINENO: checking for major_t" >&5
21976 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
21977 if test "${ac_cv_type_major_t+set}" = set; then
21978   echo $ECHO_N "(cached) $ECHO_C" >&6
21979 else
21980   cat >conftest.$ac_ext <<_ACEOF
21981 /* confdefs.h.  */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h.  */
21986 $ac_includes_default
21987 int
21988 main ()
21989 {
21990 if ((major_t *) 0)
21991   return 0;
21992 if (sizeof (major_t))
21993   return 0;
21994   ;
21995   return 0;
21996 }
21997 _ACEOF
21998 rm -f conftest.$ac_objext
21999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22000   (eval $ac_compile) 2>conftest.er1
22001   ac_status=$?
22002   grep -v '^ *+' conftest.er1 >conftest.err
22003   rm -f conftest.er1
22004   cat conftest.err >&5
22005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006   (exit $ac_status); } &&
22007          { ac_try='test -z "$ac_c_werror_flag"
22008                          || test ! -s conftest.err'
22009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010   (eval $ac_try) 2>&5
22011   ac_status=$?
22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); }; } &&
22014          { ac_try='test -s conftest.$ac_objext'
22015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016   (eval $ac_try) 2>&5
22017   ac_status=$?
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); }; }; then
22020   ac_cv_type_major_t=yes
22021 else
22022   echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22024
22025 ac_cv_type_major_t=no
22026 fi
22027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22028 fi
22029 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22030 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22031 if test $ac_cv_type_major_t = yes; then
22032   :
22033 else
22034
22035 cat >>confdefs.h <<_ACEOF
22036 #define major_t int
22037 _ACEOF
22038
22039 fi
22040
22041 echo "$as_me:$LINENO: checking for minor_t" >&5
22042 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22043 if test "${ac_cv_type_minor_t+set}" = set; then
22044   echo $ECHO_N "(cached) $ECHO_C" >&6
22045 else
22046   cat >conftest.$ac_ext <<_ACEOF
22047 /* confdefs.h.  */
22048 _ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h.  */
22052 $ac_includes_default
22053 int
22054 main ()
22055 {
22056 if ((minor_t *) 0)
22057   return 0;
22058 if (sizeof (minor_t))
22059   return 0;
22060   ;
22061   return 0;
22062 }
22063 _ACEOF
22064 rm -f conftest.$ac_objext
22065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22066   (eval $ac_compile) 2>conftest.er1
22067   ac_status=$?
22068   grep -v '^ *+' conftest.er1 >conftest.err
22069   rm -f conftest.er1
22070   cat conftest.err >&5
22071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072   (exit $ac_status); } &&
22073          { ac_try='test -z "$ac_c_werror_flag"
22074                          || test ! -s conftest.err'
22075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076   (eval $ac_try) 2>&5
22077   ac_status=$?
22078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079   (exit $ac_status); }; } &&
22080          { ac_try='test -s conftest.$ac_objext'
22081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082   (eval $ac_try) 2>&5
22083   ac_status=$?
22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085   (exit $ac_status); }; }; then
22086   ac_cv_type_minor_t=yes
22087 else
22088   echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22090
22091 ac_cv_type_minor_t=no
22092 fi
22093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22094 fi
22095 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22096 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22097 if test $ac_cv_type_minor_t = yes; then
22098   :
22099 else
22100
22101 cat >>confdefs.h <<_ACEOF
22102 #define minor_t int
22103 _ACEOF
22104
22105 fi
22106
22107 echo "$as_me:$LINENO: checking for ssize_t" >&5
22108 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22109 if test "${ac_cv_type_ssize_t+set}" = set; then
22110   echo $ECHO_N "(cached) $ECHO_C" >&6
22111 else
22112   cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h.  */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h.  */
22118 $ac_includes_default
22119 int
22120 main ()
22121 {
22122 if ((ssize_t *) 0)
22123   return 0;
22124 if (sizeof (ssize_t))
22125   return 0;
22126   ;
22127   return 0;
22128 }
22129 _ACEOF
22130 rm -f conftest.$ac_objext
22131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22132   (eval $ac_compile) 2>conftest.er1
22133   ac_status=$?
22134   grep -v '^ *+' conftest.er1 >conftest.err
22135   rm -f conftest.er1
22136   cat conftest.err >&5
22137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138   (exit $ac_status); } &&
22139          { ac_try='test -z "$ac_c_werror_flag"
22140                          || test ! -s conftest.err'
22141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142   (eval $ac_try) 2>&5
22143   ac_status=$?
22144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145   (exit $ac_status); }; } &&
22146          { ac_try='test -s conftest.$ac_objext'
22147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148   (eval $ac_try) 2>&5
22149   ac_status=$?
22150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151   (exit $ac_status); }; }; then
22152   ac_cv_type_ssize_t=yes
22153 else
22154   echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22156
22157 ac_cv_type_ssize_t=no
22158 fi
22159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22160 fi
22161 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22162 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22163 if test $ac_cv_type_ssize_t = yes; then
22164   :
22165 else
22166
22167 cat >>confdefs.h <<_ACEOF
22168 #define ssize_t int
22169 _ACEOF
22170
22171 fi
22172
22173 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22174 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22175 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22176   echo $ECHO_N "(cached) $ECHO_C" >&6
22177 else
22178   cat >conftest.$ac_ext <<_ACEOF
22179 /* confdefs.h.  */
22180 _ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h.  */
22184 $ac_includes_default
22185 int
22186 main ()
22187 {
22188 static struct stat ac_aggr;
22189 if (ac_aggr.st_blocks)
22190 return 0;
22191   ;
22192   return 0;
22193 }
22194 _ACEOF
22195 rm -f conftest.$ac_objext
22196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22197   (eval $ac_compile) 2>conftest.er1
22198   ac_status=$?
22199   grep -v '^ *+' conftest.er1 >conftest.err
22200   rm -f conftest.er1
22201   cat conftest.err >&5
22202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203   (exit $ac_status); } &&
22204          { ac_try='test -z "$ac_c_werror_flag"
22205                          || test ! -s conftest.err'
22206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22207   (eval $ac_try) 2>&5
22208   ac_status=$?
22209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210   (exit $ac_status); }; } &&
22211          { ac_try='test -s conftest.$ac_objext'
22212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22213   (eval $ac_try) 2>&5
22214   ac_status=$?
22215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216   (exit $ac_status); }; }; then
22217   ac_cv_member_struct_stat_st_blocks=yes
22218 else
22219   echo "$as_me: failed program was:" >&5
22220 sed 's/^/| /' conftest.$ac_ext >&5
22221
22222 cat >conftest.$ac_ext <<_ACEOF
22223 /* confdefs.h.  */
22224 _ACEOF
22225 cat confdefs.h >>conftest.$ac_ext
22226 cat >>conftest.$ac_ext <<_ACEOF
22227 /* end confdefs.h.  */
22228 $ac_includes_default
22229 int
22230 main ()
22231 {
22232 static struct stat ac_aggr;
22233 if (sizeof ac_aggr.st_blocks)
22234 return 0;
22235   ;
22236   return 0;
22237 }
22238 _ACEOF
22239 rm -f conftest.$ac_objext
22240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22241   (eval $ac_compile) 2>conftest.er1
22242   ac_status=$?
22243   grep -v '^ *+' conftest.er1 >conftest.err
22244   rm -f conftest.er1
22245   cat conftest.err >&5
22246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247   (exit $ac_status); } &&
22248          { ac_try='test -z "$ac_c_werror_flag"
22249                          || test ! -s conftest.err'
22250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22251   (eval $ac_try) 2>&5
22252   ac_status=$?
22253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254   (exit $ac_status); }; } &&
22255          { ac_try='test -s conftest.$ac_objext'
22256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22257   (eval $ac_try) 2>&5
22258   ac_status=$?
22259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260   (exit $ac_status); }; }; then
22261   ac_cv_member_struct_stat_st_blocks=yes
22262 else
22263   echo "$as_me: failed program was:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22265
22266 ac_cv_member_struct_stat_st_blocks=no
22267 fi
22268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22269 fi
22270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22271 fi
22272 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22273 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22274 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22275
22276 cat >>confdefs.h <<_ACEOF
22277 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22278 _ACEOF
22279
22280
22281 cat >>confdefs.h <<\_ACEOF
22282 #define HAVE_ST_BLOCKS 1
22283 _ACEOF
22284
22285 else
22286   case $LIBOBJS in
22287     "fileblocks.$ac_objext"   | \
22288   *" fileblocks.$ac_objext"   | \
22289     "fileblocks.$ac_objext "* | \
22290   *" fileblocks.$ac_objext "* ) ;;
22291   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22292 esac
22293
22294 fi
22295
22296
22297
22298 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22299 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22300 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22301   echo $ECHO_N "(cached) $ECHO_C" >&6
22302 else
22303   cat >conftest.$ac_ext <<_ACEOF
22304 /* confdefs.h.  */
22305 _ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h.  */
22309 $ac_includes_default
22310 int
22311 main ()
22312 {
22313 static struct stat ac_aggr;
22314 if (ac_aggr.st_rdev)
22315 return 0;
22316   ;
22317   return 0;
22318 }
22319 _ACEOF
22320 rm -f conftest.$ac_objext
22321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22322   (eval $ac_compile) 2>conftest.er1
22323   ac_status=$?
22324   grep -v '^ *+' conftest.er1 >conftest.err
22325   rm -f conftest.er1
22326   cat conftest.err >&5
22327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328   (exit $ac_status); } &&
22329          { ac_try='test -z "$ac_c_werror_flag"
22330                          || test ! -s conftest.err'
22331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22332   (eval $ac_try) 2>&5
22333   ac_status=$?
22334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335   (exit $ac_status); }; } &&
22336          { ac_try='test -s conftest.$ac_objext'
22337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22338   (eval $ac_try) 2>&5
22339   ac_status=$?
22340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341   (exit $ac_status); }; }; then
22342   ac_cv_member_struct_stat_st_rdev=yes
22343 else
22344   echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22346
22347 cat >conftest.$ac_ext <<_ACEOF
22348 /* confdefs.h.  */
22349 _ACEOF
22350 cat confdefs.h >>conftest.$ac_ext
22351 cat >>conftest.$ac_ext <<_ACEOF
22352 /* end confdefs.h.  */
22353 $ac_includes_default
22354 int
22355 main ()
22356 {
22357 static struct stat ac_aggr;
22358 if (sizeof ac_aggr.st_rdev)
22359 return 0;
22360   ;
22361   return 0;
22362 }
22363 _ACEOF
22364 rm -f conftest.$ac_objext
22365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22366   (eval $ac_compile) 2>conftest.er1
22367   ac_status=$?
22368   grep -v '^ *+' conftest.er1 >conftest.err
22369   rm -f conftest.er1
22370   cat conftest.err >&5
22371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372   (exit $ac_status); } &&
22373          { ac_try='test -z "$ac_c_werror_flag"
22374                          || test ! -s conftest.err'
22375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376   (eval $ac_try) 2>&5
22377   ac_status=$?
22378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379   (exit $ac_status); }; } &&
22380          { ac_try='test -s conftest.$ac_objext'
22381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22382   (eval $ac_try) 2>&5
22383   ac_status=$?
22384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385   (exit $ac_status); }; }; then
22386   ac_cv_member_struct_stat_st_rdev=yes
22387 else
22388   echo "$as_me: failed program was:" >&5
22389 sed 's/^/| /' conftest.$ac_ext >&5
22390
22391 ac_cv_member_struct_stat_st_rdev=no
22392 fi
22393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22394 fi
22395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22396 fi
22397 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22398 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22399 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22400
22401 cat >>confdefs.h <<_ACEOF
22402 #define HAVE_STRUCT_STAT_ST_RDEV 1
22403 _ACEOF
22404
22405
22406 cat >>confdefs.h <<\_ACEOF
22407 #define HAVE_ST_RDEV 1
22408 _ACEOF
22409
22410 fi
22411
22412
22413 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22414 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22415 if test "${ac_cv_struct_tm+set}" = set; then
22416   echo $ECHO_N "(cached) $ECHO_C" >&6
22417 else
22418   cat >conftest.$ac_ext <<_ACEOF
22419 /* confdefs.h.  */
22420 _ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h.  */
22424 #include <sys/types.h>
22425 #include <time.h>
22426
22427 int
22428 main ()
22429 {
22430 struct tm *tp; tp->tm_sec;
22431   ;
22432   return 0;
22433 }
22434 _ACEOF
22435 rm -f conftest.$ac_objext
22436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22437   (eval $ac_compile) 2>conftest.er1
22438   ac_status=$?
22439   grep -v '^ *+' conftest.er1 >conftest.err
22440   rm -f conftest.er1
22441   cat conftest.err >&5
22442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443   (exit $ac_status); } &&
22444          { ac_try='test -z "$ac_c_werror_flag"
22445                          || test ! -s conftest.err'
22446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22447   (eval $ac_try) 2>&5
22448   ac_status=$?
22449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450   (exit $ac_status); }; } &&
22451          { ac_try='test -s conftest.$ac_objext'
22452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22453   (eval $ac_try) 2>&5
22454   ac_status=$?
22455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456   (exit $ac_status); }; }; then
22457   ac_cv_struct_tm=time.h
22458 else
22459   echo "$as_me: failed program was:" >&5
22460 sed 's/^/| /' conftest.$ac_ext >&5
22461
22462 ac_cv_struct_tm=sys/time.h
22463 fi
22464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22465 fi
22466 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22467 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22468 if test $ac_cv_struct_tm = sys/time.h; then
22469
22470 cat >>confdefs.h <<\_ACEOF
22471 #define TM_IN_SYS_TIME 1
22472 _ACEOF
22473
22474 fi
22475
22476 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22477 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22478 if test "${ac_cv_c_const+set}" = set; then
22479   echo $ECHO_N "(cached) $ECHO_C" >&6
22480 else
22481   cat >conftest.$ac_ext <<_ACEOF
22482 /* confdefs.h.  */
22483 _ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h.  */
22487
22488 int
22489 main ()
22490 {
22491 /* FIXME: Include the comments suggested by Paul. */
22492 #ifndef __cplusplus
22493   /* Ultrix mips cc rejects this.  */
22494   typedef int charset[2];
22495   const charset x;
22496   /* SunOS 4.1.1 cc rejects this.  */
22497   char const *const *ccp;
22498   char **p;
22499   /* NEC SVR4.0.2 mips cc rejects this.  */
22500   struct point {int x, y;};
22501   static struct point const zero = {0,0};
22502   /* AIX XL C 1.02.0.0 rejects this.
22503      It does not let you subtract one const X* pointer from another in
22504      an arm of an if-expression whose if-part is not a constant
22505      expression */
22506   const char *g = "string";
22507   ccp = &g + (g ? g-g : 0);
22508   /* HPUX 7.0 cc rejects these. */
22509   ++ccp;
22510   p = (char**) ccp;
22511   ccp = (char const *const *) p;
22512   { /* SCO 3.2v4 cc rejects this.  */
22513     char *t;
22514     char const *s = 0 ? (char *) 0 : (char const *) 0;
22515
22516     *t++ = 0;
22517   }
22518   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22519     int x[] = {25, 17};
22520     const int *foo = &x[0];
22521     ++foo;
22522   }
22523   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22524     typedef const int *iptr;
22525     iptr p = 0;
22526     ++p;
22527   }
22528   { /* AIX XL C 1.02.0.0 rejects this saying
22529        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22530     struct s { int j; const int *ap[3]; };
22531     struct s *b; b->j = 5;
22532   }
22533   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22534     const int foo = 10;
22535   }
22536 #endif
22537
22538   ;
22539   return 0;
22540 }
22541 _ACEOF
22542 rm -f conftest.$ac_objext
22543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22544   (eval $ac_compile) 2>conftest.er1
22545   ac_status=$?
22546   grep -v '^ *+' conftest.er1 >conftest.err
22547   rm -f conftest.er1
22548   cat conftest.err >&5
22549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550   (exit $ac_status); } &&
22551          { ac_try='test -z "$ac_c_werror_flag"
22552                          || test ! -s conftest.err'
22553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22554   (eval $ac_try) 2>&5
22555   ac_status=$?
22556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557   (exit $ac_status); }; } &&
22558          { ac_try='test -s conftest.$ac_objext'
22559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560   (eval $ac_try) 2>&5
22561   ac_status=$?
22562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563   (exit $ac_status); }; }; then
22564   ac_cv_c_const=yes
22565 else
22566   echo "$as_me: failed program was:" >&5
22567 sed 's/^/| /' conftest.$ac_ext >&5
22568
22569 ac_cv_c_const=no
22570 fi
22571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22572 fi
22573 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22574 echo "${ECHO_T}$ac_cv_c_const" >&6
22575 if test $ac_cv_c_const = no; then
22576
22577 cat >>confdefs.h <<\_ACEOF
22578 #define const
22579 _ACEOF
22580
22581 fi
22582
22583
22584
22585 echo "$as_me:$LINENO: checking for char" >&5
22586 echo $ECHO_N "checking for char... $ECHO_C" >&6
22587 if test "${ac_cv_type_char+set}" = set; then
22588   echo $ECHO_N "(cached) $ECHO_C" >&6
22589 else
22590   cat >conftest.$ac_ext <<_ACEOF
22591 /* confdefs.h.  */
22592 _ACEOF
22593 cat confdefs.h >>conftest.$ac_ext
22594 cat >>conftest.$ac_ext <<_ACEOF
22595 /* end confdefs.h.  */
22596 $ac_includes_default
22597 int
22598 main ()
22599 {
22600 if ((char *) 0)
22601   return 0;
22602 if (sizeof (char))
22603   return 0;
22604   ;
22605   return 0;
22606 }
22607 _ACEOF
22608 rm -f conftest.$ac_objext
22609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22610   (eval $ac_compile) 2>conftest.er1
22611   ac_status=$?
22612   grep -v '^ *+' conftest.er1 >conftest.err
22613   rm -f conftest.er1
22614   cat conftest.err >&5
22615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616   (exit $ac_status); } &&
22617          { ac_try='test -z "$ac_c_werror_flag"
22618                          || test ! -s conftest.err'
22619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620   (eval $ac_try) 2>&5
22621   ac_status=$?
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); }; } &&
22624          { ac_try='test -s conftest.$ac_objext'
22625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626   (eval $ac_try) 2>&5
22627   ac_status=$?
22628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629   (exit $ac_status); }; }; then
22630   ac_cv_type_char=yes
22631 else
22632   echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22634
22635 ac_cv_type_char=no
22636 fi
22637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22638 fi
22639 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22640 echo "${ECHO_T}$ac_cv_type_char" >&6
22641
22642 echo "$as_me:$LINENO: checking size of char" >&5
22643 echo $ECHO_N "checking size of char... $ECHO_C" >&6
22644 if test "${ac_cv_sizeof_char+set}" = set; then
22645   echo $ECHO_N "(cached) $ECHO_C" >&6
22646 else
22647   if test "$ac_cv_type_char" = yes; then
22648   # The cast to unsigned long works around a bug in the HP C Compiler
22649   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22650   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22651   # This bug is HP SR number 8606223364.
22652   if test "$cross_compiling" = yes; then
22653   # Depending upon the size, compute the lo and hi bounds.
22654 cat >conftest.$ac_ext <<_ACEOF
22655 /* confdefs.h.  */
22656 _ACEOF
22657 cat confdefs.h >>conftest.$ac_ext
22658 cat >>conftest.$ac_ext <<_ACEOF
22659 /* end confdefs.h.  */
22660 $ac_includes_default
22661 int
22662 main ()
22663 {
22664 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
22665 test_array [0] = 0
22666
22667   ;
22668   return 0;
22669 }
22670 _ACEOF
22671 rm -f conftest.$ac_objext
22672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22673   (eval $ac_compile) 2>conftest.er1
22674   ac_status=$?
22675   grep -v '^ *+' conftest.er1 >conftest.err
22676   rm -f conftest.er1
22677   cat conftest.err >&5
22678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679   (exit $ac_status); } &&
22680          { ac_try='test -z "$ac_c_werror_flag"
22681                          || test ! -s conftest.err'
22682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683   (eval $ac_try) 2>&5
22684   ac_status=$?
22685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686   (exit $ac_status); }; } &&
22687          { ac_try='test -s conftest.$ac_objext'
22688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22689   (eval $ac_try) 2>&5
22690   ac_status=$?
22691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692   (exit $ac_status); }; }; then
22693   ac_lo=0 ac_mid=0
22694   while :; do
22695     cat >conftest.$ac_ext <<_ACEOF
22696 /* confdefs.h.  */
22697 _ACEOF
22698 cat confdefs.h >>conftest.$ac_ext
22699 cat >>conftest.$ac_ext <<_ACEOF
22700 /* end confdefs.h.  */
22701 $ac_includes_default
22702 int
22703 main ()
22704 {
22705 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22706 test_array [0] = 0
22707
22708   ;
22709   return 0;
22710 }
22711 _ACEOF
22712 rm -f conftest.$ac_objext
22713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22714   (eval $ac_compile) 2>conftest.er1
22715   ac_status=$?
22716   grep -v '^ *+' conftest.er1 >conftest.err
22717   rm -f conftest.er1
22718   cat conftest.err >&5
22719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720   (exit $ac_status); } &&
22721          { ac_try='test -z "$ac_c_werror_flag"
22722                          || test ! -s conftest.err'
22723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22724   (eval $ac_try) 2>&5
22725   ac_status=$?
22726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727   (exit $ac_status); }; } &&
22728          { ac_try='test -s conftest.$ac_objext'
22729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22730   (eval $ac_try) 2>&5
22731   ac_status=$?
22732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733   (exit $ac_status); }; }; then
22734   ac_hi=$ac_mid; break
22735 else
22736   echo "$as_me: failed program was:" >&5
22737 sed 's/^/| /' conftest.$ac_ext >&5
22738
22739 ac_lo=`expr $ac_mid + 1`
22740                     if test $ac_lo -le $ac_mid; then
22741                       ac_lo= ac_hi=
22742                       break
22743                     fi
22744                     ac_mid=`expr 2 '*' $ac_mid + 1`
22745 fi
22746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22747   done
22748 else
22749   echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22751
22752 cat >conftest.$ac_ext <<_ACEOF
22753 /* confdefs.h.  */
22754 _ACEOF
22755 cat confdefs.h >>conftest.$ac_ext
22756 cat >>conftest.$ac_ext <<_ACEOF
22757 /* end confdefs.h.  */
22758 $ac_includes_default
22759 int
22760 main ()
22761 {
22762 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
22763 test_array [0] = 0
22764
22765   ;
22766   return 0;
22767 }
22768 _ACEOF
22769 rm -f conftest.$ac_objext
22770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22771   (eval $ac_compile) 2>conftest.er1
22772   ac_status=$?
22773   grep -v '^ *+' conftest.er1 >conftest.err
22774   rm -f conftest.er1
22775   cat conftest.err >&5
22776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777   (exit $ac_status); } &&
22778          { ac_try='test -z "$ac_c_werror_flag"
22779                          || test ! -s conftest.err'
22780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22781   (eval $ac_try) 2>&5
22782   ac_status=$?
22783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784   (exit $ac_status); }; } &&
22785          { ac_try='test -s conftest.$ac_objext'
22786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22787   (eval $ac_try) 2>&5
22788   ac_status=$?
22789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790   (exit $ac_status); }; }; then
22791   ac_hi=-1 ac_mid=-1
22792   while :; do
22793     cat >conftest.$ac_ext <<_ACEOF
22794 /* confdefs.h.  */
22795 _ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h.  */
22799 $ac_includes_default
22800 int
22801 main ()
22802 {
22803 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
22804 test_array [0] = 0
22805
22806   ;
22807   return 0;
22808 }
22809 _ACEOF
22810 rm -f conftest.$ac_objext
22811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22812   (eval $ac_compile) 2>conftest.er1
22813   ac_status=$?
22814   grep -v '^ *+' conftest.er1 >conftest.err
22815   rm -f conftest.er1
22816   cat conftest.err >&5
22817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818   (exit $ac_status); } &&
22819          { ac_try='test -z "$ac_c_werror_flag"
22820                          || test ! -s conftest.err'
22821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822   (eval $ac_try) 2>&5
22823   ac_status=$?
22824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825   (exit $ac_status); }; } &&
22826          { ac_try='test -s conftest.$ac_objext'
22827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828   (eval $ac_try) 2>&5
22829   ac_status=$?
22830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831   (exit $ac_status); }; }; then
22832   ac_lo=$ac_mid; break
22833 else
22834   echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22836
22837 ac_hi=`expr '(' $ac_mid ')' - 1`
22838                        if test $ac_mid -le $ac_hi; then
22839                          ac_lo= ac_hi=
22840                          break
22841                        fi
22842                        ac_mid=`expr 2 '*' $ac_mid`
22843 fi
22844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22845   done
22846 else
22847   echo "$as_me: failed program was:" >&5
22848 sed 's/^/| /' conftest.$ac_ext >&5
22849
22850 ac_lo= ac_hi=
22851 fi
22852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22853 fi
22854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22855 # Binary search between lo and hi bounds.
22856 while test "x$ac_lo" != "x$ac_hi"; do
22857   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22858   cat >conftest.$ac_ext <<_ACEOF
22859 /* confdefs.h.  */
22860 _ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h.  */
22864 $ac_includes_default
22865 int
22866 main ()
22867 {
22868 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22869 test_array [0] = 0
22870
22871   ;
22872   return 0;
22873 }
22874 _ACEOF
22875 rm -f conftest.$ac_objext
22876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22877   (eval $ac_compile) 2>conftest.er1
22878   ac_status=$?
22879   grep -v '^ *+' conftest.er1 >conftest.err
22880   rm -f conftest.er1
22881   cat conftest.err >&5
22882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883   (exit $ac_status); } &&
22884          { ac_try='test -z "$ac_c_werror_flag"
22885                          || test ! -s conftest.err'
22886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22887   (eval $ac_try) 2>&5
22888   ac_status=$?
22889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890   (exit $ac_status); }; } &&
22891          { ac_try='test -s conftest.$ac_objext'
22892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22893   (eval $ac_try) 2>&5
22894   ac_status=$?
22895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896   (exit $ac_status); }; }; then
22897   ac_hi=$ac_mid
22898 else
22899   echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22901
22902 ac_lo=`expr '(' $ac_mid ')' + 1`
22903 fi
22904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22905 done
22906 case $ac_lo in
22907 ?*) ac_cv_sizeof_char=$ac_lo;;
22908 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
22909 See \`config.log' for more details." >&5
22910 echo "$as_me: error: cannot compute sizeof (char), 77
22911 See \`config.log' for more details." >&2;}
22912    { (exit 1); exit 1; }; } ;;
22913 esac
22914 else
22915   if test "$cross_compiling" = yes; then
22916   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22917 See \`config.log' for more details." >&5
22918 echo "$as_me: error: cannot run test program while cross compiling
22919 See \`config.log' for more details." >&2;}
22920    { (exit 1); exit 1; }; }
22921 else
22922   cat >conftest.$ac_ext <<_ACEOF
22923 /* confdefs.h.  */
22924 _ACEOF
22925 cat confdefs.h >>conftest.$ac_ext
22926 cat >>conftest.$ac_ext <<_ACEOF
22927 /* end confdefs.h.  */
22928 $ac_includes_default
22929 long longval () { return (long) (sizeof (char)); }
22930 unsigned long ulongval () { return (long) (sizeof (char)); }
22931 #include <stdio.h>
22932 #include <stdlib.h>
22933 int
22934 main ()
22935 {
22936
22937   FILE *f = fopen ("conftest.val", "w");
22938   if (! f)
22939     exit (1);
22940   if (((long) (sizeof (char))) < 0)
22941     {
22942       long i = longval ();
22943       if (i != ((long) (sizeof (char))))
22944         exit (1);
22945       fprintf (f, "%ld\n", i);
22946     }
22947   else
22948     {
22949       unsigned long i = ulongval ();
22950       if (i != ((long) (sizeof (char))))
22951         exit (1);
22952       fprintf (f, "%lu\n", i);
22953     }
22954   exit (ferror (f) || fclose (f) != 0);
22955
22956   ;
22957   return 0;
22958 }
22959 _ACEOF
22960 rm -f conftest$ac_exeext
22961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22962   (eval $ac_link) 2>&5
22963   ac_status=$?
22964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967   (eval $ac_try) 2>&5
22968   ac_status=$?
22969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970   (exit $ac_status); }; }; then
22971   ac_cv_sizeof_char=`cat conftest.val`
22972 else
22973   echo "$as_me: program exited with status $ac_status" >&5
22974 echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22976
22977 ( exit $ac_status )
22978 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
22979 See \`config.log' for more details." >&5
22980 echo "$as_me: error: cannot compute sizeof (char), 77
22981 See \`config.log' for more details." >&2;}
22982    { (exit 1); exit 1; }; }
22983 fi
22984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22985 fi
22986 fi
22987 rm -f conftest.val
22988 else
22989   ac_cv_sizeof_char=0
22990 fi
22991 fi
22992 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
22993 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
22994 cat >>confdefs.h <<_ACEOF
22995 #define SIZEOF_CHAR $ac_cv_sizeof_char
22996 _ACEOF
22997
22998
22999 echo "$as_me:$LINENO: checking for short int" >&5
23000 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23001 if test "${ac_cv_type_short_int+set}" = set; then
23002   echo $ECHO_N "(cached) $ECHO_C" >&6
23003 else
23004   cat >conftest.$ac_ext <<_ACEOF
23005 /* confdefs.h.  */
23006 _ACEOF
23007 cat confdefs.h >>conftest.$ac_ext
23008 cat >>conftest.$ac_ext <<_ACEOF
23009 /* end confdefs.h.  */
23010 $ac_includes_default
23011 int
23012 main ()
23013 {
23014 if ((short int *) 0)
23015   return 0;
23016 if (sizeof (short int))
23017   return 0;
23018   ;
23019   return 0;
23020 }
23021 _ACEOF
23022 rm -f conftest.$ac_objext
23023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23024   (eval $ac_compile) 2>conftest.er1
23025   ac_status=$?
23026   grep -v '^ *+' conftest.er1 >conftest.err
23027   rm -f conftest.er1
23028   cat conftest.err >&5
23029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030   (exit $ac_status); } &&
23031          { ac_try='test -z "$ac_c_werror_flag"
23032                          || test ! -s conftest.err'
23033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23034   (eval $ac_try) 2>&5
23035   ac_status=$?
23036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037   (exit $ac_status); }; } &&
23038          { ac_try='test -s conftest.$ac_objext'
23039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23040   (eval $ac_try) 2>&5
23041   ac_status=$?
23042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043   (exit $ac_status); }; }; then
23044   ac_cv_type_short_int=yes
23045 else
23046   echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23048
23049 ac_cv_type_short_int=no
23050 fi
23051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23052 fi
23053 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23054 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23055
23056 echo "$as_me:$LINENO: checking size of short int" >&5
23057 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23058 if test "${ac_cv_sizeof_short_int+set}" = set; then
23059   echo $ECHO_N "(cached) $ECHO_C" >&6
23060 else
23061   if test "$ac_cv_type_short_int" = yes; then
23062   # The cast to unsigned long works around a bug in the HP C Compiler
23063   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23064   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23065   # This bug is HP SR number 8606223364.
23066   if test "$cross_compiling" = yes; then
23067   # Depending upon the size, compute the lo and hi bounds.
23068 cat >conftest.$ac_ext <<_ACEOF
23069 /* confdefs.h.  */
23070 _ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h.  */
23074 $ac_includes_default
23075 int
23076 main ()
23077 {
23078 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23079 test_array [0] = 0
23080
23081   ;
23082   return 0;
23083 }
23084 _ACEOF
23085 rm -f conftest.$ac_objext
23086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23087   (eval $ac_compile) 2>conftest.er1
23088   ac_status=$?
23089   grep -v '^ *+' conftest.er1 >conftest.err
23090   rm -f conftest.er1
23091   cat conftest.err >&5
23092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093   (exit $ac_status); } &&
23094          { ac_try='test -z "$ac_c_werror_flag"
23095                          || test ! -s conftest.err'
23096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23097   (eval $ac_try) 2>&5
23098   ac_status=$?
23099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100   (exit $ac_status); }; } &&
23101          { ac_try='test -s conftest.$ac_objext'
23102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103   (eval $ac_try) 2>&5
23104   ac_status=$?
23105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106   (exit $ac_status); }; }; then
23107   ac_lo=0 ac_mid=0
23108   while :; do
23109     cat >conftest.$ac_ext <<_ACEOF
23110 /* confdefs.h.  */
23111 _ACEOF
23112 cat confdefs.h >>conftest.$ac_ext
23113 cat >>conftest.$ac_ext <<_ACEOF
23114 /* end confdefs.h.  */
23115 $ac_includes_default
23116 int
23117 main ()
23118 {
23119 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23120 test_array [0] = 0
23121
23122   ;
23123   return 0;
23124 }
23125 _ACEOF
23126 rm -f conftest.$ac_objext
23127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23128   (eval $ac_compile) 2>conftest.er1
23129   ac_status=$?
23130   grep -v '^ *+' conftest.er1 >conftest.err
23131   rm -f conftest.er1
23132   cat conftest.err >&5
23133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134   (exit $ac_status); } &&
23135          { ac_try='test -z "$ac_c_werror_flag"
23136                          || test ! -s conftest.err'
23137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138   (eval $ac_try) 2>&5
23139   ac_status=$?
23140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141   (exit $ac_status); }; } &&
23142          { ac_try='test -s conftest.$ac_objext'
23143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144   (eval $ac_try) 2>&5
23145   ac_status=$?
23146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147   (exit $ac_status); }; }; then
23148   ac_hi=$ac_mid; break
23149 else
23150   echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23152
23153 ac_lo=`expr $ac_mid + 1`
23154                     if test $ac_lo -le $ac_mid; then
23155                       ac_lo= ac_hi=
23156                       break
23157                     fi
23158                     ac_mid=`expr 2 '*' $ac_mid + 1`
23159 fi
23160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23161   done
23162 else
23163   echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23165
23166 cat >conftest.$ac_ext <<_ACEOF
23167 /* confdefs.h.  */
23168 _ACEOF
23169 cat confdefs.h >>conftest.$ac_ext
23170 cat >>conftest.$ac_ext <<_ACEOF
23171 /* end confdefs.h.  */
23172 $ac_includes_default
23173 int
23174 main ()
23175 {
23176 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23177 test_array [0] = 0
23178
23179   ;
23180   return 0;
23181 }
23182 _ACEOF
23183 rm -f conftest.$ac_objext
23184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23185   (eval $ac_compile) 2>conftest.er1
23186   ac_status=$?
23187   grep -v '^ *+' conftest.er1 >conftest.err
23188   rm -f conftest.er1
23189   cat conftest.err >&5
23190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191   (exit $ac_status); } &&
23192          { ac_try='test -z "$ac_c_werror_flag"
23193                          || test ! -s conftest.err'
23194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195   (eval $ac_try) 2>&5
23196   ac_status=$?
23197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198   (exit $ac_status); }; } &&
23199          { ac_try='test -s conftest.$ac_objext'
23200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23201   (eval $ac_try) 2>&5
23202   ac_status=$?
23203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204   (exit $ac_status); }; }; then
23205   ac_hi=-1 ac_mid=-1
23206   while :; do
23207     cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h.  */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h.  */
23213 $ac_includes_default
23214 int
23215 main ()
23216 {
23217 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23218 test_array [0] = 0
23219
23220   ;
23221   return 0;
23222 }
23223 _ACEOF
23224 rm -f conftest.$ac_objext
23225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23226   (eval $ac_compile) 2>conftest.er1
23227   ac_status=$?
23228   grep -v '^ *+' conftest.er1 >conftest.err
23229   rm -f conftest.er1
23230   cat conftest.err >&5
23231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232   (exit $ac_status); } &&
23233          { ac_try='test -z "$ac_c_werror_flag"
23234                          || test ! -s conftest.err'
23235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23236   (eval $ac_try) 2>&5
23237   ac_status=$?
23238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239   (exit $ac_status); }; } &&
23240          { ac_try='test -s conftest.$ac_objext'
23241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23242   (eval $ac_try) 2>&5
23243   ac_status=$?
23244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245   (exit $ac_status); }; }; then
23246   ac_lo=$ac_mid; break
23247 else
23248   echo "$as_me: failed program was:" >&5
23249 sed 's/^/| /' conftest.$ac_ext >&5
23250
23251 ac_hi=`expr '(' $ac_mid ')' - 1`
23252                        if test $ac_mid -le $ac_hi; then
23253                          ac_lo= ac_hi=
23254                          break
23255                        fi
23256                        ac_mid=`expr 2 '*' $ac_mid`
23257 fi
23258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23259   done
23260 else
23261   echo "$as_me: failed program was:" >&5
23262 sed 's/^/| /' conftest.$ac_ext >&5
23263
23264 ac_lo= ac_hi=
23265 fi
23266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23267 fi
23268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23269 # Binary search between lo and hi bounds.
23270 while test "x$ac_lo" != "x$ac_hi"; do
23271   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23272   cat >conftest.$ac_ext <<_ACEOF
23273 /* confdefs.h.  */
23274 _ACEOF
23275 cat confdefs.h >>conftest.$ac_ext
23276 cat >>conftest.$ac_ext <<_ACEOF
23277 /* end confdefs.h.  */
23278 $ac_includes_default
23279 int
23280 main ()
23281 {
23282 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23283 test_array [0] = 0
23284
23285   ;
23286   return 0;
23287 }
23288 _ACEOF
23289 rm -f conftest.$ac_objext
23290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23291   (eval $ac_compile) 2>conftest.er1
23292   ac_status=$?
23293   grep -v '^ *+' conftest.er1 >conftest.err
23294   rm -f conftest.er1
23295   cat conftest.err >&5
23296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297   (exit $ac_status); } &&
23298          { ac_try='test -z "$ac_c_werror_flag"
23299                          || test ! -s conftest.err'
23300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301   (eval $ac_try) 2>&5
23302   ac_status=$?
23303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304   (exit $ac_status); }; } &&
23305          { ac_try='test -s conftest.$ac_objext'
23306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23307   (eval $ac_try) 2>&5
23308   ac_status=$?
23309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310   (exit $ac_status); }; }; then
23311   ac_hi=$ac_mid
23312 else
23313   echo "$as_me: failed program was:" >&5
23314 sed 's/^/| /' conftest.$ac_ext >&5
23315
23316 ac_lo=`expr '(' $ac_mid ')' + 1`
23317 fi
23318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23319 done
23320 case $ac_lo in
23321 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23322 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23323 See \`config.log' for more details." >&5
23324 echo "$as_me: error: cannot compute sizeof (short int), 77
23325 See \`config.log' for more details." >&2;}
23326    { (exit 1); exit 1; }; } ;;
23327 esac
23328 else
23329   if test "$cross_compiling" = yes; then
23330   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23331 See \`config.log' for more details." >&5
23332 echo "$as_me: error: cannot run test program while cross compiling
23333 See \`config.log' for more details." >&2;}
23334    { (exit 1); exit 1; }; }
23335 else
23336   cat >conftest.$ac_ext <<_ACEOF
23337 /* confdefs.h.  */
23338 _ACEOF
23339 cat confdefs.h >>conftest.$ac_ext
23340 cat >>conftest.$ac_ext <<_ACEOF
23341 /* end confdefs.h.  */
23342 $ac_includes_default
23343 long longval () { return (long) (sizeof (short int)); }
23344 unsigned long ulongval () { return (long) (sizeof (short int)); }
23345 #include <stdio.h>
23346 #include <stdlib.h>
23347 int
23348 main ()
23349 {
23350
23351   FILE *f = fopen ("conftest.val", "w");
23352   if (! f)
23353     exit (1);
23354   if (((long) (sizeof (short int))) < 0)
23355     {
23356       long i = longval ();
23357       if (i != ((long) (sizeof (short int))))
23358         exit (1);
23359       fprintf (f, "%ld\n", i);
23360     }
23361   else
23362     {
23363       unsigned long i = ulongval ();
23364       if (i != ((long) (sizeof (short int))))
23365         exit (1);
23366       fprintf (f, "%lu\n", i);
23367     }
23368   exit (ferror (f) || fclose (f) != 0);
23369
23370   ;
23371   return 0;
23372 }
23373 _ACEOF
23374 rm -f conftest$ac_exeext
23375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23376   (eval $ac_link) 2>&5
23377   ac_status=$?
23378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381   (eval $ac_try) 2>&5
23382   ac_status=$?
23383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384   (exit $ac_status); }; }; then
23385   ac_cv_sizeof_short_int=`cat conftest.val`
23386 else
23387   echo "$as_me: program exited with status $ac_status" >&5
23388 echo "$as_me: failed program was:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23390
23391 ( exit $ac_status )
23392 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23393 See \`config.log' for more details." >&5
23394 echo "$as_me: error: cannot compute sizeof (short int), 77
23395 See \`config.log' for more details." >&2;}
23396    { (exit 1); exit 1; }; }
23397 fi
23398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23399 fi
23400 fi
23401 rm -f conftest.val
23402 else
23403   ac_cv_sizeof_short_int=0
23404 fi
23405 fi
23406 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23407 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23408 cat >>confdefs.h <<_ACEOF
23409 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23410 _ACEOF
23411
23412
23413 echo "$as_me:$LINENO: checking for int" >&5
23414 echo $ECHO_N "checking for int... $ECHO_C" >&6
23415 if test "${ac_cv_type_int+set}" = set; then
23416   echo $ECHO_N "(cached) $ECHO_C" >&6
23417 else
23418   cat >conftest.$ac_ext <<_ACEOF
23419 /* confdefs.h.  */
23420 _ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h.  */
23424 $ac_includes_default
23425 int
23426 main ()
23427 {
23428 if ((int *) 0)
23429   return 0;
23430 if (sizeof (int))
23431   return 0;
23432   ;
23433   return 0;
23434 }
23435 _ACEOF
23436 rm -f conftest.$ac_objext
23437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23438   (eval $ac_compile) 2>conftest.er1
23439   ac_status=$?
23440   grep -v '^ *+' conftest.er1 >conftest.err
23441   rm -f conftest.er1
23442   cat conftest.err >&5
23443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444   (exit $ac_status); } &&
23445          { ac_try='test -z "$ac_c_werror_flag"
23446                          || test ! -s conftest.err'
23447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23448   (eval $ac_try) 2>&5
23449   ac_status=$?
23450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451   (exit $ac_status); }; } &&
23452          { ac_try='test -s conftest.$ac_objext'
23453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23454   (eval $ac_try) 2>&5
23455   ac_status=$?
23456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457   (exit $ac_status); }; }; then
23458   ac_cv_type_int=yes
23459 else
23460   echo "$as_me: failed program was:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23462
23463 ac_cv_type_int=no
23464 fi
23465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23466 fi
23467 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23468 echo "${ECHO_T}$ac_cv_type_int" >&6
23469
23470 echo "$as_me:$LINENO: checking size of int" >&5
23471 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23472 if test "${ac_cv_sizeof_int+set}" = set; then
23473   echo $ECHO_N "(cached) $ECHO_C" >&6
23474 else
23475   if test "$ac_cv_type_int" = yes; then
23476   # The cast to unsigned long works around a bug in the HP C Compiler
23477   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23478   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23479   # This bug is HP SR number 8606223364.
23480   if test "$cross_compiling" = yes; then
23481   # Depending upon the size, compute the lo and hi bounds.
23482 cat >conftest.$ac_ext <<_ACEOF
23483 /* confdefs.h.  */
23484 _ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h.  */
23488 $ac_includes_default
23489 int
23490 main ()
23491 {
23492 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23493 test_array [0] = 0
23494
23495   ;
23496   return 0;
23497 }
23498 _ACEOF
23499 rm -f conftest.$ac_objext
23500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23501   (eval $ac_compile) 2>conftest.er1
23502   ac_status=$?
23503   grep -v '^ *+' conftest.er1 >conftest.err
23504   rm -f conftest.er1
23505   cat conftest.err >&5
23506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507   (exit $ac_status); } &&
23508          { ac_try='test -z "$ac_c_werror_flag"
23509                          || test ! -s conftest.err'
23510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511   (eval $ac_try) 2>&5
23512   ac_status=$?
23513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514   (exit $ac_status); }; } &&
23515          { ac_try='test -s conftest.$ac_objext'
23516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23517   (eval $ac_try) 2>&5
23518   ac_status=$?
23519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520   (exit $ac_status); }; }; then
23521   ac_lo=0 ac_mid=0
23522   while :; do
23523     cat >conftest.$ac_ext <<_ACEOF
23524 /* confdefs.h.  */
23525 _ACEOF
23526 cat confdefs.h >>conftest.$ac_ext
23527 cat >>conftest.$ac_ext <<_ACEOF
23528 /* end confdefs.h.  */
23529 $ac_includes_default
23530 int
23531 main ()
23532 {
23533 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23534 test_array [0] = 0
23535
23536   ;
23537   return 0;
23538 }
23539 _ACEOF
23540 rm -f conftest.$ac_objext
23541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23542   (eval $ac_compile) 2>conftest.er1
23543   ac_status=$?
23544   grep -v '^ *+' conftest.er1 >conftest.err
23545   rm -f conftest.er1
23546   cat conftest.err >&5
23547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548   (exit $ac_status); } &&
23549          { ac_try='test -z "$ac_c_werror_flag"
23550                          || test ! -s conftest.err'
23551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552   (eval $ac_try) 2>&5
23553   ac_status=$?
23554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555   (exit $ac_status); }; } &&
23556          { ac_try='test -s conftest.$ac_objext'
23557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23558   (eval $ac_try) 2>&5
23559   ac_status=$?
23560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561   (exit $ac_status); }; }; then
23562   ac_hi=$ac_mid; break
23563 else
23564   echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23566
23567 ac_lo=`expr $ac_mid + 1`
23568                     if test $ac_lo -le $ac_mid; then
23569                       ac_lo= ac_hi=
23570                       break
23571                     fi
23572                     ac_mid=`expr 2 '*' $ac_mid + 1`
23573 fi
23574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23575   done
23576 else
23577   echo "$as_me: failed program was:" >&5
23578 sed 's/^/| /' conftest.$ac_ext >&5
23579
23580 cat >conftest.$ac_ext <<_ACEOF
23581 /* confdefs.h.  */
23582 _ACEOF
23583 cat confdefs.h >>conftest.$ac_ext
23584 cat >>conftest.$ac_ext <<_ACEOF
23585 /* end confdefs.h.  */
23586 $ac_includes_default
23587 int
23588 main ()
23589 {
23590 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
23591 test_array [0] = 0
23592
23593   ;
23594   return 0;
23595 }
23596 _ACEOF
23597 rm -f conftest.$ac_objext
23598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23599   (eval $ac_compile) 2>conftest.er1
23600   ac_status=$?
23601   grep -v '^ *+' conftest.er1 >conftest.err
23602   rm -f conftest.er1
23603   cat conftest.err >&5
23604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605   (exit $ac_status); } &&
23606          { ac_try='test -z "$ac_c_werror_flag"
23607                          || test ! -s conftest.err'
23608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609   (eval $ac_try) 2>&5
23610   ac_status=$?
23611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612   (exit $ac_status); }; } &&
23613          { ac_try='test -s conftest.$ac_objext'
23614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23615   (eval $ac_try) 2>&5
23616   ac_status=$?
23617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618   (exit $ac_status); }; }; then
23619   ac_hi=-1 ac_mid=-1
23620   while :; do
23621     cat >conftest.$ac_ext <<_ACEOF
23622 /* confdefs.h.  */
23623 _ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h.  */
23627 $ac_includes_default
23628 int
23629 main ()
23630 {
23631 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
23632 test_array [0] = 0
23633
23634   ;
23635   return 0;
23636 }
23637 _ACEOF
23638 rm -f conftest.$ac_objext
23639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23640   (eval $ac_compile) 2>conftest.er1
23641   ac_status=$?
23642   grep -v '^ *+' conftest.er1 >conftest.err
23643   rm -f conftest.er1
23644   cat conftest.err >&5
23645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646   (exit $ac_status); } &&
23647          { ac_try='test -z "$ac_c_werror_flag"
23648                          || test ! -s conftest.err'
23649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23650   (eval $ac_try) 2>&5
23651   ac_status=$?
23652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653   (exit $ac_status); }; } &&
23654          { ac_try='test -s conftest.$ac_objext'
23655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656   (eval $ac_try) 2>&5
23657   ac_status=$?
23658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659   (exit $ac_status); }; }; then
23660   ac_lo=$ac_mid; break
23661 else
23662   echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23664
23665 ac_hi=`expr '(' $ac_mid ')' - 1`
23666                        if test $ac_mid -le $ac_hi; then
23667                          ac_lo= ac_hi=
23668                          break
23669                        fi
23670                        ac_mid=`expr 2 '*' $ac_mid`
23671 fi
23672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23673   done
23674 else
23675   echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23677
23678 ac_lo= ac_hi=
23679 fi
23680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23681 fi
23682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23683 # Binary search between lo and hi bounds.
23684 while test "x$ac_lo" != "x$ac_hi"; do
23685   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23686   cat >conftest.$ac_ext <<_ACEOF
23687 /* confdefs.h.  */
23688 _ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h.  */
23692 $ac_includes_default
23693 int
23694 main ()
23695 {
23696 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23697 test_array [0] = 0
23698
23699   ;
23700   return 0;
23701 }
23702 _ACEOF
23703 rm -f conftest.$ac_objext
23704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23705   (eval $ac_compile) 2>conftest.er1
23706   ac_status=$?
23707   grep -v '^ *+' conftest.er1 >conftest.err
23708   rm -f conftest.er1
23709   cat conftest.err >&5
23710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711   (exit $ac_status); } &&
23712          { ac_try='test -z "$ac_c_werror_flag"
23713                          || test ! -s conftest.err'
23714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715   (eval $ac_try) 2>&5
23716   ac_status=$?
23717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718   (exit $ac_status); }; } &&
23719          { ac_try='test -s conftest.$ac_objext'
23720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721   (eval $ac_try) 2>&5
23722   ac_status=$?
23723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724   (exit $ac_status); }; }; then
23725   ac_hi=$ac_mid
23726 else
23727   echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23729
23730 ac_lo=`expr '(' $ac_mid ')' + 1`
23731 fi
23732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23733 done
23734 case $ac_lo in
23735 ?*) ac_cv_sizeof_int=$ac_lo;;
23736 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23737 See \`config.log' for more details." >&5
23738 echo "$as_me: error: cannot compute sizeof (int), 77
23739 See \`config.log' for more details." >&2;}
23740    { (exit 1); exit 1; }; } ;;
23741 esac
23742 else
23743   if test "$cross_compiling" = yes; then
23744   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23745 See \`config.log' for more details." >&5
23746 echo "$as_me: error: cannot run test program while cross compiling
23747 See \`config.log' for more details." >&2;}
23748    { (exit 1); exit 1; }; }
23749 else
23750   cat >conftest.$ac_ext <<_ACEOF
23751 /* confdefs.h.  */
23752 _ACEOF
23753 cat confdefs.h >>conftest.$ac_ext
23754 cat >>conftest.$ac_ext <<_ACEOF
23755 /* end confdefs.h.  */
23756 $ac_includes_default
23757 long longval () { return (long) (sizeof (int)); }
23758 unsigned long ulongval () { return (long) (sizeof (int)); }
23759 #include <stdio.h>
23760 #include <stdlib.h>
23761 int
23762 main ()
23763 {
23764
23765   FILE *f = fopen ("conftest.val", "w");
23766   if (! f)
23767     exit (1);
23768   if (((long) (sizeof (int))) < 0)
23769     {
23770       long i = longval ();
23771       if (i != ((long) (sizeof (int))))
23772         exit (1);
23773       fprintf (f, "%ld\n", i);
23774     }
23775   else
23776     {
23777       unsigned long i = ulongval ();
23778       if (i != ((long) (sizeof (int))))
23779         exit (1);
23780       fprintf (f, "%lu\n", i);
23781     }
23782   exit (ferror (f) || fclose (f) != 0);
23783
23784   ;
23785   return 0;
23786 }
23787 _ACEOF
23788 rm -f conftest$ac_exeext
23789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23790   (eval $ac_link) 2>&5
23791   ac_status=$?
23792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23795   (eval $ac_try) 2>&5
23796   ac_status=$?
23797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798   (exit $ac_status); }; }; then
23799   ac_cv_sizeof_int=`cat conftest.val`
23800 else
23801   echo "$as_me: program exited with status $ac_status" >&5
23802 echo "$as_me: failed program was:" >&5
23803 sed 's/^/| /' conftest.$ac_ext >&5
23804
23805 ( exit $ac_status )
23806 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23807 See \`config.log' for more details." >&5
23808 echo "$as_me: error: cannot compute sizeof (int), 77
23809 See \`config.log' for more details." >&2;}
23810    { (exit 1); exit 1; }; }
23811 fi
23812 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23813 fi
23814 fi
23815 rm -f conftest.val
23816 else
23817   ac_cv_sizeof_int=0
23818 fi
23819 fi
23820 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23821 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
23822 cat >>confdefs.h <<_ACEOF
23823 #define SIZEOF_INT $ac_cv_sizeof_int
23824 _ACEOF
23825
23826
23827 echo "$as_me:$LINENO: checking for long int" >&5
23828 echo $ECHO_N "checking for long int... $ECHO_C" >&6
23829 if test "${ac_cv_type_long_int+set}" = set; then
23830   echo $ECHO_N "(cached) $ECHO_C" >&6
23831 else
23832   cat >conftest.$ac_ext <<_ACEOF
23833 /* confdefs.h.  */
23834 _ACEOF
23835 cat confdefs.h >>conftest.$ac_ext
23836 cat >>conftest.$ac_ext <<_ACEOF
23837 /* end confdefs.h.  */
23838 $ac_includes_default
23839 int
23840 main ()
23841 {
23842 if ((long int *) 0)
23843   return 0;
23844 if (sizeof (long int))
23845   return 0;
23846   ;
23847   return 0;
23848 }
23849 _ACEOF
23850 rm -f conftest.$ac_objext
23851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23852   (eval $ac_compile) 2>conftest.er1
23853   ac_status=$?
23854   grep -v '^ *+' conftest.er1 >conftest.err
23855   rm -f conftest.er1
23856   cat conftest.err >&5
23857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858   (exit $ac_status); } &&
23859          { ac_try='test -z "$ac_c_werror_flag"
23860                          || test ! -s conftest.err'
23861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23862   (eval $ac_try) 2>&5
23863   ac_status=$?
23864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865   (exit $ac_status); }; } &&
23866          { ac_try='test -s conftest.$ac_objext'
23867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23868   (eval $ac_try) 2>&5
23869   ac_status=$?
23870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871   (exit $ac_status); }; }; then
23872   ac_cv_type_long_int=yes
23873 else
23874   echo "$as_me: failed program was:" >&5
23875 sed 's/^/| /' conftest.$ac_ext >&5
23876
23877 ac_cv_type_long_int=no
23878 fi
23879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23880 fi
23881 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
23882 echo "${ECHO_T}$ac_cv_type_long_int" >&6
23883
23884 echo "$as_me:$LINENO: checking size of long int" >&5
23885 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
23886 if test "${ac_cv_sizeof_long_int+set}" = set; then
23887   echo $ECHO_N "(cached) $ECHO_C" >&6
23888 else
23889   if test "$ac_cv_type_long_int" = yes; then
23890   # The cast to unsigned long works around a bug in the HP C Compiler
23891   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23892   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23893   # This bug is HP SR number 8606223364.
23894   if test "$cross_compiling" = yes; then
23895   # Depending upon the size, compute the lo and hi bounds.
23896 cat >conftest.$ac_ext <<_ACEOF
23897 /* confdefs.h.  */
23898 _ACEOF
23899 cat confdefs.h >>conftest.$ac_ext
23900 cat >>conftest.$ac_ext <<_ACEOF
23901 /* end confdefs.h.  */
23902 $ac_includes_default
23903 int
23904 main ()
23905 {
23906 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
23907 test_array [0] = 0
23908
23909   ;
23910   return 0;
23911 }
23912 _ACEOF
23913 rm -f conftest.$ac_objext
23914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23915   (eval $ac_compile) 2>conftest.er1
23916   ac_status=$?
23917   grep -v '^ *+' conftest.er1 >conftest.err
23918   rm -f conftest.er1
23919   cat conftest.err >&5
23920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921   (exit $ac_status); } &&
23922          { ac_try='test -z "$ac_c_werror_flag"
23923                          || test ! -s conftest.err'
23924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23925   (eval $ac_try) 2>&5
23926   ac_status=$?
23927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928   (exit $ac_status); }; } &&
23929          { ac_try='test -s conftest.$ac_objext'
23930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931   (eval $ac_try) 2>&5
23932   ac_status=$?
23933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934   (exit $ac_status); }; }; then
23935   ac_lo=0 ac_mid=0
23936   while :; do
23937     cat >conftest.$ac_ext <<_ACEOF
23938 /* confdefs.h.  */
23939 _ACEOF
23940 cat confdefs.h >>conftest.$ac_ext
23941 cat >>conftest.$ac_ext <<_ACEOF
23942 /* end confdefs.h.  */
23943 $ac_includes_default
23944 int
23945 main ()
23946 {
23947 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
23948 test_array [0] = 0
23949
23950   ;
23951   return 0;
23952 }
23953 _ACEOF
23954 rm -f conftest.$ac_objext
23955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23956   (eval $ac_compile) 2>conftest.er1
23957   ac_status=$?
23958   grep -v '^ *+' conftest.er1 >conftest.err
23959   rm -f conftest.er1
23960   cat conftest.err >&5
23961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962   (exit $ac_status); } &&
23963          { ac_try='test -z "$ac_c_werror_flag"
23964                          || test ! -s conftest.err'
23965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966   (eval $ac_try) 2>&5
23967   ac_status=$?
23968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969   (exit $ac_status); }; } &&
23970          { ac_try='test -s conftest.$ac_objext'
23971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23972   (eval $ac_try) 2>&5
23973   ac_status=$?
23974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975   (exit $ac_status); }; }; then
23976   ac_hi=$ac_mid; break
23977 else
23978   echo "$as_me: failed program was:" >&5
23979 sed 's/^/| /' conftest.$ac_ext >&5
23980
23981 ac_lo=`expr $ac_mid + 1`
23982                     if test $ac_lo -le $ac_mid; then
23983                       ac_lo= ac_hi=
23984                       break
23985                     fi
23986                     ac_mid=`expr 2 '*' $ac_mid + 1`
23987 fi
23988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23989   done
23990 else
23991   echo "$as_me: failed program was:" >&5
23992 sed 's/^/| /' conftest.$ac_ext >&5
23993
23994 cat >conftest.$ac_ext <<_ACEOF
23995 /* confdefs.h.  */
23996 _ACEOF
23997 cat confdefs.h >>conftest.$ac_ext
23998 cat >>conftest.$ac_ext <<_ACEOF
23999 /* end confdefs.h.  */
24000 $ac_includes_default
24001 int
24002 main ()
24003 {
24004 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24005 test_array [0] = 0
24006
24007   ;
24008   return 0;
24009 }
24010 _ACEOF
24011 rm -f conftest.$ac_objext
24012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24013   (eval $ac_compile) 2>conftest.er1
24014   ac_status=$?
24015   grep -v '^ *+' conftest.er1 >conftest.err
24016   rm -f conftest.er1
24017   cat conftest.err >&5
24018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019   (exit $ac_status); } &&
24020          { ac_try='test -z "$ac_c_werror_flag"
24021                          || test ! -s conftest.err'
24022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24023   (eval $ac_try) 2>&5
24024   ac_status=$?
24025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026   (exit $ac_status); }; } &&
24027          { ac_try='test -s conftest.$ac_objext'
24028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24029   (eval $ac_try) 2>&5
24030   ac_status=$?
24031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032   (exit $ac_status); }; }; then
24033   ac_hi=-1 ac_mid=-1
24034   while :; do
24035     cat >conftest.$ac_ext <<_ACEOF
24036 /* confdefs.h.  */
24037 _ACEOF
24038 cat confdefs.h >>conftest.$ac_ext
24039 cat >>conftest.$ac_ext <<_ACEOF
24040 /* end confdefs.h.  */
24041 $ac_includes_default
24042 int
24043 main ()
24044 {
24045 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24046 test_array [0] = 0
24047
24048   ;
24049   return 0;
24050 }
24051 _ACEOF
24052 rm -f conftest.$ac_objext
24053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24054   (eval $ac_compile) 2>conftest.er1
24055   ac_status=$?
24056   grep -v '^ *+' conftest.er1 >conftest.err
24057   rm -f conftest.er1
24058   cat conftest.err >&5
24059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060   (exit $ac_status); } &&
24061          { ac_try='test -z "$ac_c_werror_flag"
24062                          || test ! -s conftest.err'
24063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24064   (eval $ac_try) 2>&5
24065   ac_status=$?
24066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067   (exit $ac_status); }; } &&
24068          { ac_try='test -s conftest.$ac_objext'
24069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24070   (eval $ac_try) 2>&5
24071   ac_status=$?
24072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073   (exit $ac_status); }; }; then
24074   ac_lo=$ac_mid; break
24075 else
24076   echo "$as_me: failed program was:" >&5
24077 sed 's/^/| /' conftest.$ac_ext >&5
24078
24079 ac_hi=`expr '(' $ac_mid ')' - 1`
24080                        if test $ac_mid -le $ac_hi; then
24081                          ac_lo= ac_hi=
24082                          break
24083                        fi
24084                        ac_mid=`expr 2 '*' $ac_mid`
24085 fi
24086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24087   done
24088 else
24089   echo "$as_me: failed program was:" >&5
24090 sed 's/^/| /' conftest.$ac_ext >&5
24091
24092 ac_lo= ac_hi=
24093 fi
24094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24095 fi
24096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24097 # Binary search between lo and hi bounds.
24098 while test "x$ac_lo" != "x$ac_hi"; do
24099   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24100   cat >conftest.$ac_ext <<_ACEOF
24101 /* confdefs.h.  */
24102 _ACEOF
24103 cat confdefs.h >>conftest.$ac_ext
24104 cat >>conftest.$ac_ext <<_ACEOF
24105 /* end confdefs.h.  */
24106 $ac_includes_default
24107 int
24108 main ()
24109 {
24110 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24111 test_array [0] = 0
24112
24113   ;
24114   return 0;
24115 }
24116 _ACEOF
24117 rm -f conftest.$ac_objext
24118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24119   (eval $ac_compile) 2>conftest.er1
24120   ac_status=$?
24121   grep -v '^ *+' conftest.er1 >conftest.err
24122   rm -f conftest.er1
24123   cat conftest.err >&5
24124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125   (exit $ac_status); } &&
24126          { ac_try='test -z "$ac_c_werror_flag"
24127                          || test ! -s conftest.err'
24128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24129   (eval $ac_try) 2>&5
24130   ac_status=$?
24131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132   (exit $ac_status); }; } &&
24133          { ac_try='test -s conftest.$ac_objext'
24134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24135   (eval $ac_try) 2>&5
24136   ac_status=$?
24137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138   (exit $ac_status); }; }; then
24139   ac_hi=$ac_mid
24140 else
24141   echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24143
24144 ac_lo=`expr '(' $ac_mid ')' + 1`
24145 fi
24146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24147 done
24148 case $ac_lo in
24149 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24150 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24151 See \`config.log' for more details." >&5
24152 echo "$as_me: error: cannot compute sizeof (long int), 77
24153 See \`config.log' for more details." >&2;}
24154    { (exit 1); exit 1; }; } ;;
24155 esac
24156 else
24157   if test "$cross_compiling" = yes; then
24158   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24159 See \`config.log' for more details." >&5
24160 echo "$as_me: error: cannot run test program while cross compiling
24161 See \`config.log' for more details." >&2;}
24162    { (exit 1); exit 1; }; }
24163 else
24164   cat >conftest.$ac_ext <<_ACEOF
24165 /* confdefs.h.  */
24166 _ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h.  */
24170 $ac_includes_default
24171 long longval () { return (long) (sizeof (long int)); }
24172 unsigned long ulongval () { return (long) (sizeof (long int)); }
24173 #include <stdio.h>
24174 #include <stdlib.h>
24175 int
24176 main ()
24177 {
24178
24179   FILE *f = fopen ("conftest.val", "w");
24180   if (! f)
24181     exit (1);
24182   if (((long) (sizeof (long int))) < 0)
24183     {
24184       long i = longval ();
24185       if (i != ((long) (sizeof (long int))))
24186         exit (1);
24187       fprintf (f, "%ld\n", i);
24188     }
24189   else
24190     {
24191       unsigned long i = ulongval ();
24192       if (i != ((long) (sizeof (long int))))
24193         exit (1);
24194       fprintf (f, "%lu\n", i);
24195     }
24196   exit (ferror (f) || fclose (f) != 0);
24197
24198   ;
24199   return 0;
24200 }
24201 _ACEOF
24202 rm -f conftest$ac_exeext
24203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24204   (eval $ac_link) 2>&5
24205   ac_status=$?
24206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24209   (eval $ac_try) 2>&5
24210   ac_status=$?
24211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212   (exit $ac_status); }; }; then
24213   ac_cv_sizeof_long_int=`cat conftest.val`
24214 else
24215   echo "$as_me: program exited with status $ac_status" >&5
24216 echo "$as_me: failed program was:" >&5
24217 sed 's/^/| /' conftest.$ac_ext >&5
24218
24219 ( exit $ac_status )
24220 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24221 See \`config.log' for more details." >&5
24222 echo "$as_me: error: cannot compute sizeof (long int), 77
24223 See \`config.log' for more details." >&2;}
24224    { (exit 1); exit 1; }; }
24225 fi
24226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24227 fi
24228 fi
24229 rm -f conftest.val
24230 else
24231   ac_cv_sizeof_long_int=0
24232 fi
24233 fi
24234 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24235 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24236 cat >>confdefs.h <<_ACEOF
24237 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24238 _ACEOF
24239
24240
24241 echo "$as_me:$LINENO: checking for long long int" >&5
24242 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24243 if test "${ac_cv_type_long_long_int+set}" = set; then
24244   echo $ECHO_N "(cached) $ECHO_C" >&6
24245 else
24246   cat >conftest.$ac_ext <<_ACEOF
24247 /* confdefs.h.  */
24248 _ACEOF
24249 cat confdefs.h >>conftest.$ac_ext
24250 cat >>conftest.$ac_ext <<_ACEOF
24251 /* end confdefs.h.  */
24252 $ac_includes_default
24253 int
24254 main ()
24255 {
24256 if ((long long int *) 0)
24257   return 0;
24258 if (sizeof (long long int))
24259   return 0;
24260   ;
24261   return 0;
24262 }
24263 _ACEOF
24264 rm -f conftest.$ac_objext
24265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24266   (eval $ac_compile) 2>conftest.er1
24267   ac_status=$?
24268   grep -v '^ *+' conftest.er1 >conftest.err
24269   rm -f conftest.er1
24270   cat conftest.err >&5
24271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272   (exit $ac_status); } &&
24273          { ac_try='test -z "$ac_c_werror_flag"
24274                          || test ! -s conftest.err'
24275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24276   (eval $ac_try) 2>&5
24277   ac_status=$?
24278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279   (exit $ac_status); }; } &&
24280          { ac_try='test -s conftest.$ac_objext'
24281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24282   (eval $ac_try) 2>&5
24283   ac_status=$?
24284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285   (exit $ac_status); }; }; then
24286   ac_cv_type_long_long_int=yes
24287 else
24288   echo "$as_me: failed program was:" >&5
24289 sed 's/^/| /' conftest.$ac_ext >&5
24290
24291 ac_cv_type_long_long_int=no
24292 fi
24293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24294 fi
24295 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24296 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24297
24298 echo "$as_me:$LINENO: checking size of long long int" >&5
24299 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24300 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24301   echo $ECHO_N "(cached) $ECHO_C" >&6
24302 else
24303   if test "$ac_cv_type_long_long_int" = yes; then
24304   # The cast to unsigned long works around a bug in the HP C Compiler
24305   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24306   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24307   # This bug is HP SR number 8606223364.
24308   if test "$cross_compiling" = yes; then
24309   # Depending upon the size, compute the lo and hi bounds.
24310 cat >conftest.$ac_ext <<_ACEOF
24311 /* confdefs.h.  */
24312 _ACEOF
24313 cat confdefs.h >>conftest.$ac_ext
24314 cat >>conftest.$ac_ext <<_ACEOF
24315 /* end confdefs.h.  */
24316 $ac_includes_default
24317 int
24318 main ()
24319 {
24320 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24321 test_array [0] = 0
24322
24323   ;
24324   return 0;
24325 }
24326 _ACEOF
24327 rm -f conftest.$ac_objext
24328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24329   (eval $ac_compile) 2>conftest.er1
24330   ac_status=$?
24331   grep -v '^ *+' conftest.er1 >conftest.err
24332   rm -f conftest.er1
24333   cat conftest.err >&5
24334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335   (exit $ac_status); } &&
24336          { ac_try='test -z "$ac_c_werror_flag"
24337                          || test ! -s conftest.err'
24338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24339   (eval $ac_try) 2>&5
24340   ac_status=$?
24341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342   (exit $ac_status); }; } &&
24343          { ac_try='test -s conftest.$ac_objext'
24344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345   (eval $ac_try) 2>&5
24346   ac_status=$?
24347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348   (exit $ac_status); }; }; then
24349   ac_lo=0 ac_mid=0
24350   while :; do
24351     cat >conftest.$ac_ext <<_ACEOF
24352 /* confdefs.h.  */
24353 _ACEOF
24354 cat confdefs.h >>conftest.$ac_ext
24355 cat >>conftest.$ac_ext <<_ACEOF
24356 /* end confdefs.h.  */
24357 $ac_includes_default
24358 int
24359 main ()
24360 {
24361 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24362 test_array [0] = 0
24363
24364   ;
24365   return 0;
24366 }
24367 _ACEOF
24368 rm -f conftest.$ac_objext
24369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24370   (eval $ac_compile) 2>conftest.er1
24371   ac_status=$?
24372   grep -v '^ *+' conftest.er1 >conftest.err
24373   rm -f conftest.er1
24374   cat conftest.err >&5
24375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376   (exit $ac_status); } &&
24377          { ac_try='test -z "$ac_c_werror_flag"
24378                          || test ! -s conftest.err'
24379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24380   (eval $ac_try) 2>&5
24381   ac_status=$?
24382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383   (exit $ac_status); }; } &&
24384          { ac_try='test -s conftest.$ac_objext'
24385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24386   (eval $ac_try) 2>&5
24387   ac_status=$?
24388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24389   (exit $ac_status); }; }; then
24390   ac_hi=$ac_mid; break
24391 else
24392   echo "$as_me: failed program was:" >&5
24393 sed 's/^/| /' conftest.$ac_ext >&5
24394
24395 ac_lo=`expr $ac_mid + 1`
24396                     if test $ac_lo -le $ac_mid; then
24397                       ac_lo= ac_hi=
24398                       break
24399                     fi
24400                     ac_mid=`expr 2 '*' $ac_mid + 1`
24401 fi
24402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24403   done
24404 else
24405   echo "$as_me: failed program was:" >&5
24406 sed 's/^/| /' conftest.$ac_ext >&5
24407
24408 cat >conftest.$ac_ext <<_ACEOF
24409 /* confdefs.h.  */
24410 _ACEOF
24411 cat confdefs.h >>conftest.$ac_ext
24412 cat >>conftest.$ac_ext <<_ACEOF
24413 /* end confdefs.h.  */
24414 $ac_includes_default
24415 int
24416 main ()
24417 {
24418 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24419 test_array [0] = 0
24420
24421   ;
24422   return 0;
24423 }
24424 _ACEOF
24425 rm -f conftest.$ac_objext
24426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24427   (eval $ac_compile) 2>conftest.er1
24428   ac_status=$?
24429   grep -v '^ *+' conftest.er1 >conftest.err
24430   rm -f conftest.er1
24431   cat conftest.err >&5
24432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433   (exit $ac_status); } &&
24434          { ac_try='test -z "$ac_c_werror_flag"
24435                          || test ! -s conftest.err'
24436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24437   (eval $ac_try) 2>&5
24438   ac_status=$?
24439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440   (exit $ac_status); }; } &&
24441          { ac_try='test -s conftest.$ac_objext'
24442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24443   (eval $ac_try) 2>&5
24444   ac_status=$?
24445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446   (exit $ac_status); }; }; then
24447   ac_hi=-1 ac_mid=-1
24448   while :; do
24449     cat >conftest.$ac_ext <<_ACEOF
24450 /* confdefs.h.  */
24451 _ACEOF
24452 cat confdefs.h >>conftest.$ac_ext
24453 cat >>conftest.$ac_ext <<_ACEOF
24454 /* end confdefs.h.  */
24455 $ac_includes_default
24456 int
24457 main ()
24458 {
24459 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24460 test_array [0] = 0
24461
24462   ;
24463   return 0;
24464 }
24465 _ACEOF
24466 rm -f conftest.$ac_objext
24467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24468   (eval $ac_compile) 2>conftest.er1
24469   ac_status=$?
24470   grep -v '^ *+' conftest.er1 >conftest.err
24471   rm -f conftest.er1
24472   cat conftest.err >&5
24473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474   (exit $ac_status); } &&
24475          { ac_try='test -z "$ac_c_werror_flag"
24476                          || test ! -s conftest.err'
24477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24478   (eval $ac_try) 2>&5
24479   ac_status=$?
24480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481   (exit $ac_status); }; } &&
24482          { ac_try='test -s conftest.$ac_objext'
24483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24484   (eval $ac_try) 2>&5
24485   ac_status=$?
24486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487   (exit $ac_status); }; }; then
24488   ac_lo=$ac_mid; break
24489 else
24490   echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24492
24493 ac_hi=`expr '(' $ac_mid ')' - 1`
24494                        if test $ac_mid -le $ac_hi; then
24495                          ac_lo= ac_hi=
24496                          break
24497                        fi
24498                        ac_mid=`expr 2 '*' $ac_mid`
24499 fi
24500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24501   done
24502 else
24503   echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24505
24506 ac_lo= ac_hi=
24507 fi
24508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24509 fi
24510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24511 # Binary search between lo and hi bounds.
24512 while test "x$ac_lo" != "x$ac_hi"; do
24513   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24514   cat >conftest.$ac_ext <<_ACEOF
24515 /* confdefs.h.  */
24516 _ACEOF
24517 cat confdefs.h >>conftest.$ac_ext
24518 cat >>conftest.$ac_ext <<_ACEOF
24519 /* end confdefs.h.  */
24520 $ac_includes_default
24521 int
24522 main ()
24523 {
24524 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24525 test_array [0] = 0
24526
24527   ;
24528   return 0;
24529 }
24530 _ACEOF
24531 rm -f conftest.$ac_objext
24532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24533   (eval $ac_compile) 2>conftest.er1
24534   ac_status=$?
24535   grep -v '^ *+' conftest.er1 >conftest.err
24536   rm -f conftest.er1
24537   cat conftest.err >&5
24538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539   (exit $ac_status); } &&
24540          { ac_try='test -z "$ac_c_werror_flag"
24541                          || test ! -s conftest.err'
24542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543   (eval $ac_try) 2>&5
24544   ac_status=$?
24545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546   (exit $ac_status); }; } &&
24547          { ac_try='test -s conftest.$ac_objext'
24548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24549   (eval $ac_try) 2>&5
24550   ac_status=$?
24551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552   (exit $ac_status); }; }; then
24553   ac_hi=$ac_mid
24554 else
24555   echo "$as_me: failed program was:" >&5
24556 sed 's/^/| /' conftest.$ac_ext >&5
24557
24558 ac_lo=`expr '(' $ac_mid ')' + 1`
24559 fi
24560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24561 done
24562 case $ac_lo in
24563 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
24564 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24565 See \`config.log' for more details." >&5
24566 echo "$as_me: error: cannot compute sizeof (long long int), 77
24567 See \`config.log' for more details." >&2;}
24568    { (exit 1); exit 1; }; } ;;
24569 esac
24570 else
24571   if test "$cross_compiling" = yes; then
24572   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24573 See \`config.log' for more details." >&5
24574 echo "$as_me: error: cannot run test program while cross compiling
24575 See \`config.log' for more details." >&2;}
24576    { (exit 1); exit 1; }; }
24577 else
24578   cat >conftest.$ac_ext <<_ACEOF
24579 /* confdefs.h.  */
24580 _ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h.  */
24584 $ac_includes_default
24585 long longval () { return (long) (sizeof (long long int)); }
24586 unsigned long ulongval () { return (long) (sizeof (long long int)); }
24587 #include <stdio.h>
24588 #include <stdlib.h>
24589 int
24590 main ()
24591 {
24592
24593   FILE *f = fopen ("conftest.val", "w");
24594   if (! f)
24595     exit (1);
24596   if (((long) (sizeof (long long int))) < 0)
24597     {
24598       long i = longval ();
24599       if (i != ((long) (sizeof (long long int))))
24600         exit (1);
24601       fprintf (f, "%ld\n", i);
24602     }
24603   else
24604     {
24605       unsigned long i = ulongval ();
24606       if (i != ((long) (sizeof (long long int))))
24607         exit (1);
24608       fprintf (f, "%lu\n", i);
24609     }
24610   exit (ferror (f) || fclose (f) != 0);
24611
24612   ;
24613   return 0;
24614 }
24615 _ACEOF
24616 rm -f conftest$ac_exeext
24617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24618   (eval $ac_link) 2>&5
24619   ac_status=$?
24620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24623   (eval $ac_try) 2>&5
24624   ac_status=$?
24625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626   (exit $ac_status); }; }; then
24627   ac_cv_sizeof_long_long_int=`cat conftest.val`
24628 else
24629   echo "$as_me: program exited with status $ac_status" >&5
24630 echo "$as_me: failed program was:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24632
24633 ( exit $ac_status )
24634 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24635 See \`config.log' for more details." >&5
24636 echo "$as_me: error: cannot compute sizeof (long long int), 77
24637 See \`config.log' for more details." >&2;}
24638    { (exit 1); exit 1; }; }
24639 fi
24640 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24641 fi
24642 fi
24643 rm -f conftest.val
24644 else
24645   ac_cv_sizeof_long_long_int=0
24646 fi
24647 fi
24648 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
24649 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
24650 cat >>confdefs.h <<_ACEOF
24651 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
24652 _ACEOF
24653
24654
24655 echo "$as_me:$LINENO: checking for int *" >&5
24656 echo $ECHO_N "checking for int *... $ECHO_C" >&6
24657 if test "${ac_cv_type_int_p+set}" = set; then
24658   echo $ECHO_N "(cached) $ECHO_C" >&6
24659 else
24660   cat >conftest.$ac_ext <<_ACEOF
24661 /* confdefs.h.  */
24662 _ACEOF
24663 cat confdefs.h >>conftest.$ac_ext
24664 cat >>conftest.$ac_ext <<_ACEOF
24665 /* end confdefs.h.  */
24666 $ac_includes_default
24667 int
24668 main ()
24669 {
24670 if ((int * *) 0)
24671   return 0;
24672 if (sizeof (int *))
24673   return 0;
24674   ;
24675   return 0;
24676 }
24677 _ACEOF
24678 rm -f conftest.$ac_objext
24679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24680   (eval $ac_compile) 2>conftest.er1
24681   ac_status=$?
24682   grep -v '^ *+' conftest.er1 >conftest.err
24683   rm -f conftest.er1
24684   cat conftest.err >&5
24685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686   (exit $ac_status); } &&
24687          { ac_try='test -z "$ac_c_werror_flag"
24688                          || test ! -s conftest.err'
24689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24690   (eval $ac_try) 2>&5
24691   ac_status=$?
24692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693   (exit $ac_status); }; } &&
24694          { ac_try='test -s conftest.$ac_objext'
24695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24696   (eval $ac_try) 2>&5
24697   ac_status=$?
24698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699   (exit $ac_status); }; }; then
24700   ac_cv_type_int_p=yes
24701 else
24702   echo "$as_me: failed program was:" >&5
24703 sed 's/^/| /' conftest.$ac_ext >&5
24704
24705 ac_cv_type_int_p=no
24706 fi
24707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24708 fi
24709 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24710 echo "${ECHO_T}$ac_cv_type_int_p" >&6
24711
24712 echo "$as_me:$LINENO: checking size of int *" >&5
24713 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
24714 if test "${ac_cv_sizeof_int_p+set}" = set; then
24715   echo $ECHO_N "(cached) $ECHO_C" >&6
24716 else
24717   if test "$ac_cv_type_int_p" = yes; then
24718   # The cast to unsigned long works around a bug in the HP C Compiler
24719   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24720   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24721   # This bug is HP SR number 8606223364.
24722   if test "$cross_compiling" = yes; then
24723   # Depending upon the size, compute the lo and hi bounds.
24724 cat >conftest.$ac_ext <<_ACEOF
24725 /* confdefs.h.  */
24726 _ACEOF
24727 cat confdefs.h >>conftest.$ac_ext
24728 cat >>conftest.$ac_ext <<_ACEOF
24729 /* end confdefs.h.  */
24730 $ac_includes_default
24731 int
24732 main ()
24733 {
24734 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
24735 test_array [0] = 0
24736
24737   ;
24738   return 0;
24739 }
24740 _ACEOF
24741 rm -f conftest.$ac_objext
24742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24743   (eval $ac_compile) 2>conftest.er1
24744   ac_status=$?
24745   grep -v '^ *+' conftest.er1 >conftest.err
24746   rm -f conftest.er1
24747   cat conftest.err >&5
24748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749   (exit $ac_status); } &&
24750          { ac_try='test -z "$ac_c_werror_flag"
24751                          || test ! -s conftest.err'
24752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24753   (eval $ac_try) 2>&5
24754   ac_status=$?
24755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756   (exit $ac_status); }; } &&
24757          { ac_try='test -s conftest.$ac_objext'
24758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24759   (eval $ac_try) 2>&5
24760   ac_status=$?
24761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762   (exit $ac_status); }; }; then
24763   ac_lo=0 ac_mid=0
24764   while :; do
24765     cat >conftest.$ac_ext <<_ACEOF
24766 /* confdefs.h.  */
24767 _ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h.  */
24771 $ac_includes_default
24772 int
24773 main ()
24774 {
24775 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24776 test_array [0] = 0
24777
24778   ;
24779   return 0;
24780 }
24781 _ACEOF
24782 rm -f conftest.$ac_objext
24783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24784   (eval $ac_compile) 2>conftest.er1
24785   ac_status=$?
24786   grep -v '^ *+' conftest.er1 >conftest.err
24787   rm -f conftest.er1
24788   cat conftest.err >&5
24789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790   (exit $ac_status); } &&
24791          { ac_try='test -z "$ac_c_werror_flag"
24792                          || test ! -s conftest.err'
24793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24794   (eval $ac_try) 2>&5
24795   ac_status=$?
24796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797   (exit $ac_status); }; } &&
24798          { ac_try='test -s conftest.$ac_objext'
24799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24800   (eval $ac_try) 2>&5
24801   ac_status=$?
24802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803   (exit $ac_status); }; }; then
24804   ac_hi=$ac_mid; break
24805 else
24806   echo "$as_me: failed program was:" >&5
24807 sed 's/^/| /' conftest.$ac_ext >&5
24808
24809 ac_lo=`expr $ac_mid + 1`
24810                     if test $ac_lo -le $ac_mid; then
24811                       ac_lo= ac_hi=
24812                       break
24813                     fi
24814                     ac_mid=`expr 2 '*' $ac_mid + 1`
24815 fi
24816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24817   done
24818 else
24819   echo "$as_me: failed program was:" >&5
24820 sed 's/^/| /' conftest.$ac_ext >&5
24821
24822 cat >conftest.$ac_ext <<_ACEOF
24823 /* confdefs.h.  */
24824 _ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h.  */
24828 $ac_includes_default
24829 int
24830 main ()
24831 {
24832 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
24833 test_array [0] = 0
24834
24835   ;
24836   return 0;
24837 }
24838 _ACEOF
24839 rm -f conftest.$ac_objext
24840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24841   (eval $ac_compile) 2>conftest.er1
24842   ac_status=$?
24843   grep -v '^ *+' conftest.er1 >conftest.err
24844   rm -f conftest.er1
24845   cat conftest.err >&5
24846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847   (exit $ac_status); } &&
24848          { ac_try='test -z "$ac_c_werror_flag"
24849                          || test ! -s conftest.err'
24850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24851   (eval $ac_try) 2>&5
24852   ac_status=$?
24853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854   (exit $ac_status); }; } &&
24855          { ac_try='test -s conftest.$ac_objext'
24856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857   (eval $ac_try) 2>&5
24858   ac_status=$?
24859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860   (exit $ac_status); }; }; then
24861   ac_hi=-1 ac_mid=-1
24862   while :; do
24863     cat >conftest.$ac_ext <<_ACEOF
24864 /* confdefs.h.  */
24865 _ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h.  */
24869 $ac_includes_default
24870 int
24871 main ()
24872 {
24873 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
24874 test_array [0] = 0
24875
24876   ;
24877   return 0;
24878 }
24879 _ACEOF
24880 rm -f conftest.$ac_objext
24881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24882   (eval $ac_compile) 2>conftest.er1
24883   ac_status=$?
24884   grep -v '^ *+' conftest.er1 >conftest.err
24885   rm -f conftest.er1
24886   cat conftest.err >&5
24887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888   (exit $ac_status); } &&
24889          { ac_try='test -z "$ac_c_werror_flag"
24890                          || test ! -s conftest.err'
24891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892   (eval $ac_try) 2>&5
24893   ac_status=$?
24894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895   (exit $ac_status); }; } &&
24896          { ac_try='test -s conftest.$ac_objext'
24897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24898   (eval $ac_try) 2>&5
24899   ac_status=$?
24900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901   (exit $ac_status); }; }; then
24902   ac_lo=$ac_mid; break
24903 else
24904   echo "$as_me: failed program was:" >&5
24905 sed 's/^/| /' conftest.$ac_ext >&5
24906
24907 ac_hi=`expr '(' $ac_mid ')' - 1`
24908                        if test $ac_mid -le $ac_hi; then
24909                          ac_lo= ac_hi=
24910                          break
24911                        fi
24912                        ac_mid=`expr 2 '*' $ac_mid`
24913 fi
24914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24915   done
24916 else
24917   echo "$as_me: failed program was:" >&5
24918 sed 's/^/| /' conftest.$ac_ext >&5
24919
24920 ac_lo= ac_hi=
24921 fi
24922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24923 fi
24924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24925 # Binary search between lo and hi bounds.
24926 while test "x$ac_lo" != "x$ac_hi"; do
24927   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24928   cat >conftest.$ac_ext <<_ACEOF
24929 /* confdefs.h.  */
24930 _ACEOF
24931 cat confdefs.h >>conftest.$ac_ext
24932 cat >>conftest.$ac_ext <<_ACEOF
24933 /* end confdefs.h.  */
24934 $ac_includes_default
24935 int
24936 main ()
24937 {
24938 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24939 test_array [0] = 0
24940
24941   ;
24942   return 0;
24943 }
24944 _ACEOF
24945 rm -f conftest.$ac_objext
24946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24947   (eval $ac_compile) 2>conftest.er1
24948   ac_status=$?
24949   grep -v '^ *+' conftest.er1 >conftest.err
24950   rm -f conftest.er1
24951   cat conftest.err >&5
24952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953   (exit $ac_status); } &&
24954          { ac_try='test -z "$ac_c_werror_flag"
24955                          || test ! -s conftest.err'
24956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957   (eval $ac_try) 2>&5
24958   ac_status=$?
24959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960   (exit $ac_status); }; } &&
24961          { ac_try='test -s conftest.$ac_objext'
24962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24963   (eval $ac_try) 2>&5
24964   ac_status=$?
24965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966   (exit $ac_status); }; }; then
24967   ac_hi=$ac_mid
24968 else
24969   echo "$as_me: failed program was:" >&5
24970 sed 's/^/| /' conftest.$ac_ext >&5
24971
24972 ac_lo=`expr '(' $ac_mid ')' + 1`
24973 fi
24974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24975 done
24976 case $ac_lo in
24977 ?*) ac_cv_sizeof_int_p=$ac_lo;;
24978 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
24979 See \`config.log' for more details." >&5
24980 echo "$as_me: error: cannot compute sizeof (int *), 77
24981 See \`config.log' for more details." >&2;}
24982    { (exit 1); exit 1; }; } ;;
24983 esac
24984 else
24985   if test "$cross_compiling" = yes; then
24986   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24987 See \`config.log' for more details." >&5
24988 echo "$as_me: error: cannot run test program while cross compiling
24989 See \`config.log' for more details." >&2;}
24990    { (exit 1); exit 1; }; }
24991 else
24992   cat >conftest.$ac_ext <<_ACEOF
24993 /* confdefs.h.  */
24994 _ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h.  */
24998 $ac_includes_default
24999 long longval () { return (long) (sizeof (int *)); }
25000 unsigned long ulongval () { return (long) (sizeof (int *)); }
25001 #include <stdio.h>
25002 #include <stdlib.h>
25003 int
25004 main ()
25005 {
25006
25007   FILE *f = fopen ("conftest.val", "w");
25008   if (! f)
25009     exit (1);
25010   if (((long) (sizeof (int *))) < 0)
25011     {
25012       long i = longval ();
25013       if (i != ((long) (sizeof (int *))))
25014         exit (1);
25015       fprintf (f, "%ld\n", i);
25016     }
25017   else
25018     {
25019       unsigned long i = ulongval ();
25020       if (i != ((long) (sizeof (int *))))
25021         exit (1);
25022       fprintf (f, "%lu\n", i);
25023     }
25024   exit (ferror (f) || fclose (f) != 0);
25025
25026   ;
25027   return 0;
25028 }
25029 _ACEOF
25030 rm -f conftest$ac_exeext
25031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25032   (eval $ac_link) 2>&5
25033   ac_status=$?
25034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25037   (eval $ac_try) 2>&5
25038   ac_status=$?
25039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040   (exit $ac_status); }; }; then
25041   ac_cv_sizeof_int_p=`cat conftest.val`
25042 else
25043   echo "$as_me: program exited with status $ac_status" >&5
25044 echo "$as_me: failed program was:" >&5
25045 sed 's/^/| /' conftest.$ac_ext >&5
25046
25047 ( exit $ac_status )
25048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25049 See \`config.log' for more details." >&5
25050 echo "$as_me: error: cannot compute sizeof (int *), 77
25051 See \`config.log' for more details." >&2;}
25052    { (exit 1); exit 1; }; }
25053 fi
25054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25055 fi
25056 fi
25057 rm -f conftest.val
25058 else
25059   ac_cv_sizeof_int_p=0
25060 fi
25061 fi
25062 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25063 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25064 cat >>confdefs.h <<_ACEOF
25065 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25066 _ACEOF
25067
25068
25069
25070 # Check for sys/types.h types
25071 echo "$as_me:$LINENO: checking for u_int type" >&5
25072 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25073 if test "${ac_cv_have_u_int+set}" = set; then
25074   echo $ECHO_N "(cached) $ECHO_C" >&6
25075 else
25076
25077     cat >conftest.$ac_ext <<_ACEOF
25078 /* confdefs.h.  */
25079 _ACEOF
25080 cat confdefs.h >>conftest.$ac_ext
25081 cat >>conftest.$ac_ext <<_ACEOF
25082 /* end confdefs.h.  */
25083  #include <sys/types.h>
25084 int
25085 main ()
25086 {
25087  u_int a; a = 1;
25088   ;
25089   return 0;
25090 }
25091 _ACEOF
25092 rm -f conftest.$ac_objext
25093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25094   (eval $ac_compile) 2>conftest.er1
25095   ac_status=$?
25096   grep -v '^ *+' conftest.er1 >conftest.err
25097   rm -f conftest.er1
25098   cat conftest.err >&5
25099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100   (exit $ac_status); } &&
25101          { ac_try='test -z "$ac_c_werror_flag"
25102                          || test ! -s conftest.err'
25103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25104   (eval $ac_try) 2>&5
25105   ac_status=$?
25106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107   (exit $ac_status); }; } &&
25108          { ac_try='test -s conftest.$ac_objext'
25109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25110   (eval $ac_try) 2>&5
25111   ac_status=$?
25112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113   (exit $ac_status); }; }; then
25114    ac_cv_have_u_int="yes"
25115 else
25116   echo "$as_me: failed program was:" >&5
25117 sed 's/^/| /' conftest.$ac_ext >&5
25118
25119  ac_cv_have_u_int="no"
25120
25121 fi
25122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25123
25124 fi
25125 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25126 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25127 if test "x$ac_cv_have_u_int" = "xyes" ; then
25128    cat >>confdefs.h <<\_ACEOF
25129 #define HAVE_U_INT 1
25130 _ACEOF
25131
25132    have_u_int=1
25133 fi
25134
25135 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25136 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25137 if test "${ac_cv_have_intmax_t+set}" = set; then
25138   echo $ECHO_N "(cached) $ECHO_C" >&6
25139 else
25140
25141    cat >conftest.$ac_ext <<_ACEOF
25142 /* confdefs.h.  */
25143 _ACEOF
25144 cat confdefs.h >>conftest.$ac_ext
25145 cat >>conftest.$ac_ext <<_ACEOF
25146 /* end confdefs.h.  */
25147  #include <sys/types.h>
25148 int
25149 main ()
25150 {
25151  intmax_t a; a = 1;
25152   ;
25153   return 0;
25154 }
25155 _ACEOF
25156 rm -f conftest.$ac_objext
25157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25158   (eval $ac_compile) 2>conftest.er1
25159   ac_status=$?
25160   grep -v '^ *+' conftest.er1 >conftest.err
25161   rm -f conftest.er1
25162   cat conftest.err >&5
25163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164   (exit $ac_status); } &&
25165          { ac_try='test -z "$ac_c_werror_flag"
25166                          || test ! -s conftest.err'
25167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25168   (eval $ac_try) 2>&5
25169   ac_status=$?
25170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171   (exit $ac_status); }; } &&
25172          { ac_try='test -s conftest.$ac_objext'
25173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25174   (eval $ac_try) 2>&5
25175   ac_status=$?
25176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177   (exit $ac_status); }; }; then
25178    ac_cv_have_intmax_t="yes"
25179 else
25180   echo "$as_me: failed program was:" >&5
25181 sed 's/^/| /' conftest.$ac_ext >&5
25182
25183
25184          cat >conftest.$ac_ext <<_ACEOF
25185 /* confdefs.h.  */
25186 _ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h.  */
25190  #include <stdint.h>
25191 int
25192 main ()
25193 {
25194  intmax_t a; a = 1;
25195   ;
25196   return 0;
25197 }
25198 _ACEOF
25199 rm -f conftest.$ac_objext
25200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25201   (eval $ac_compile) 2>conftest.er1
25202   ac_status=$?
25203   grep -v '^ *+' conftest.er1 >conftest.err
25204   rm -f conftest.er1
25205   cat conftest.err >&5
25206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207   (exit $ac_status); } &&
25208          { ac_try='test -z "$ac_c_werror_flag"
25209                          || test ! -s conftest.err'
25210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211   (eval $ac_try) 2>&5
25212   ac_status=$?
25213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214   (exit $ac_status); }; } &&
25215          { ac_try='test -s conftest.$ac_objext'
25216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25217   (eval $ac_try) 2>&5
25218   ac_status=$?
25219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220   (exit $ac_status); }; }; then
25221    ac_cv_have_intmax_t="yes"
25222 else
25223   echo "$as_me: failed program was:" >&5
25224 sed 's/^/| /' conftest.$ac_ext >&5
25225
25226  ac_cv_have_intmax_t="no"
25227
25228 fi
25229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25230
25231
25232 fi
25233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25234
25235
25236 fi
25237 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25238 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25239 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25240    cat >>confdefs.h <<\_ACEOF
25241 #define HAVE_INTMAX_T 1
25242 _ACEOF
25243
25244    have_intmax_t=1
25245 fi
25246
25247
25248 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25249 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25250 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25251   echo $ECHO_N "(cached) $ECHO_C" >&6
25252 else
25253
25254    cat >conftest.$ac_ext <<_ACEOF
25255 /* confdefs.h.  */
25256 _ACEOF
25257 cat confdefs.h >>conftest.$ac_ext
25258 cat >>conftest.$ac_ext <<_ACEOF
25259 /* end confdefs.h.  */
25260  #include <sys/types.h>
25261 int
25262 main ()
25263 {
25264  u_intmax_t a; a = 1;
25265   ;
25266   return 0;
25267 }
25268 _ACEOF
25269 rm -f conftest.$ac_objext
25270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25271   (eval $ac_compile) 2>conftest.er1
25272   ac_status=$?
25273   grep -v '^ *+' conftest.er1 >conftest.err
25274   rm -f conftest.er1
25275   cat conftest.err >&5
25276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25277   (exit $ac_status); } &&
25278          { ac_try='test -z "$ac_c_werror_flag"
25279                          || test ! -s conftest.err'
25280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25281   (eval $ac_try) 2>&5
25282   ac_status=$?
25283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284   (exit $ac_status); }; } &&
25285          { ac_try='test -s conftest.$ac_objext'
25286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25287   (eval $ac_try) 2>&5
25288   ac_status=$?
25289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290   (exit $ac_status); }; }; then
25291    ac_cv_have_u_intmax_t="yes"
25292 else
25293   echo "$as_me: failed program was:" >&5
25294 sed 's/^/| /' conftest.$ac_ext >&5
25295
25296
25297          cat >conftest.$ac_ext <<_ACEOF
25298 /* confdefs.h.  */
25299 _ACEOF
25300 cat confdefs.h >>conftest.$ac_ext
25301 cat >>conftest.$ac_ext <<_ACEOF
25302 /* end confdefs.h.  */
25303  #include <stdint.h>
25304 int
25305 main ()
25306 {
25307  u_intmax_t a; a = 1;
25308   ;
25309   return 0;
25310 }
25311 _ACEOF
25312 rm -f conftest.$ac_objext
25313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25314   (eval $ac_compile) 2>conftest.er1
25315   ac_status=$?
25316   grep -v '^ *+' conftest.er1 >conftest.err
25317   rm -f conftest.er1
25318   cat conftest.err >&5
25319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320   (exit $ac_status); } &&
25321          { ac_try='test -z "$ac_c_werror_flag"
25322                          || test ! -s conftest.err'
25323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25324   (eval $ac_try) 2>&5
25325   ac_status=$?
25326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327   (exit $ac_status); }; } &&
25328          { ac_try='test -s conftest.$ac_objext'
25329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25330   (eval $ac_try) 2>&5
25331   ac_status=$?
25332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333   (exit $ac_status); }; }; then
25334    ac_cv_have_u_intmax_t="yes"
25335 else
25336   echo "$as_me: failed program was:" >&5
25337 sed 's/^/| /' conftest.$ac_ext >&5
25338
25339  ac_cv_have_u_intmax_t="no"
25340
25341 fi
25342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25343
25344
25345 fi
25346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25347
25348 fi
25349 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25350 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25351 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25352    cat >>confdefs.h <<\_ACEOF
25353 #define HAVE_U_INTMAX_T 1
25354 _ACEOF
25355
25356    have_u_intmax_t=1
25357 fi
25358
25359
25360 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25361 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25362 if test "${ac_cv_have_intxx_t+set}" = set; then
25363   echo $ECHO_N "(cached) $ECHO_C" >&6
25364 else
25365
25366    cat >conftest.$ac_ext <<_ACEOF
25367 /* confdefs.h.  */
25368 _ACEOF
25369 cat confdefs.h >>conftest.$ac_ext
25370 cat >>conftest.$ac_ext <<_ACEOF
25371 /* end confdefs.h.  */
25372  #include <sys/types.h>
25373 int
25374 main ()
25375 {
25376  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25377   ;
25378   return 0;
25379 }
25380 _ACEOF
25381 rm -f conftest.$ac_objext
25382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25383   (eval $ac_compile) 2>conftest.er1
25384   ac_status=$?
25385   grep -v '^ *+' conftest.er1 >conftest.err
25386   rm -f conftest.er1
25387   cat conftest.err >&5
25388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389   (exit $ac_status); } &&
25390          { ac_try='test -z "$ac_c_werror_flag"
25391                          || test ! -s conftest.err'
25392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25393   (eval $ac_try) 2>&5
25394   ac_status=$?
25395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396   (exit $ac_status); }; } &&
25397          { ac_try='test -s conftest.$ac_objext'
25398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25399   (eval $ac_try) 2>&5
25400   ac_status=$?
25401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402   (exit $ac_status); }; }; then
25403    ac_cv_have_intxx_t="yes"
25404 else
25405   echo "$as_me: failed program was:" >&5
25406 sed 's/^/| /' conftest.$ac_ext >&5
25407
25408  ac_cv_have_intxx_t="no"
25409
25410 fi
25411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25412
25413 fi
25414 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25415 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25416 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25417    cat >>confdefs.h <<\_ACEOF
25418 #define HAVE_INTXX_T 1
25419 _ACEOF
25420
25421    have_intxx_t=1
25422 fi
25423
25424 echo "$as_me:$LINENO: checking for int64_t type" >&5
25425 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25426 if test "${ac_cv_have_int64_t+set}" = set; then
25427   echo $ECHO_N "(cached) $ECHO_C" >&6
25428 else
25429
25430    cat >conftest.$ac_ext <<_ACEOF
25431 /* confdefs.h.  */
25432 _ACEOF
25433 cat confdefs.h >>conftest.$ac_ext
25434 cat >>conftest.$ac_ext <<_ACEOF
25435 /* end confdefs.h.  */
25436  #include <sys/types.h>
25437 int
25438 main ()
25439 {
25440  int64_t a; a = 1;
25441   ;
25442   return 0;
25443 }
25444 _ACEOF
25445 rm -f conftest.$ac_objext
25446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25447   (eval $ac_compile) 2>conftest.er1
25448   ac_status=$?
25449   grep -v '^ *+' conftest.er1 >conftest.err
25450   rm -f conftest.er1
25451   cat conftest.err >&5
25452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453   (exit $ac_status); } &&
25454          { ac_try='test -z "$ac_c_werror_flag"
25455                          || test ! -s conftest.err'
25456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457   (eval $ac_try) 2>&5
25458   ac_status=$?
25459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460   (exit $ac_status); }; } &&
25461          { ac_try='test -s conftest.$ac_objext'
25462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463   (eval $ac_try) 2>&5
25464   ac_status=$?
25465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466   (exit $ac_status); }; }; then
25467    ac_cv_have_int64_t="yes"
25468 else
25469   echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25471
25472  ac_cv_have_int64_t="no"
25473
25474 fi
25475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25476
25477 fi
25478 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25479 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25480 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25481    cat >>confdefs.h <<\_ACEOF
25482 #define HAVE_INT64_T 1
25483 _ACEOF
25484
25485    have_int64_t=1
25486 fi
25487
25488 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25489 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25490 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25491   echo $ECHO_N "(cached) $ECHO_C" >&6
25492 else
25493
25494    cat >conftest.$ac_ext <<_ACEOF
25495 /* confdefs.h.  */
25496 _ACEOF
25497 cat confdefs.h >>conftest.$ac_ext
25498 cat >>conftest.$ac_ext <<_ACEOF
25499 /* end confdefs.h.  */
25500  #include <sys/types.h>
25501 int
25502 main ()
25503 {
25504  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25505   ;
25506   return 0;
25507 }
25508 _ACEOF
25509 rm -f conftest.$ac_objext
25510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25511   (eval $ac_compile) 2>conftest.er1
25512   ac_status=$?
25513   grep -v '^ *+' conftest.er1 >conftest.err
25514   rm -f conftest.er1
25515   cat conftest.err >&5
25516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517   (exit $ac_status); } &&
25518          { ac_try='test -z "$ac_c_werror_flag"
25519                          || test ! -s conftest.err'
25520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25521   (eval $ac_try) 2>&5
25522   ac_status=$?
25523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524   (exit $ac_status); }; } &&
25525          { ac_try='test -s conftest.$ac_objext'
25526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25527   (eval $ac_try) 2>&5
25528   ac_status=$?
25529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530   (exit $ac_status); }; }; then
25531    ac_cv_have_u_intxx_t="yes"
25532 else
25533   echo "$as_me: failed program was:" >&5
25534 sed 's/^/| /' conftest.$ac_ext >&5
25535
25536  ac_cv_have_u_intxx_t="no"
25537
25538 fi
25539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25540
25541 fi
25542 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25543 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25544 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25545    cat >>confdefs.h <<\_ACEOF
25546 #define HAVE_U_INTXX_T 1
25547 _ACEOF
25548
25549    have_u_intxx_t=1
25550 fi
25551
25552 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
25553 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
25554 if test "${ac_cv_have_u_int64_t+set}" = set; then
25555   echo $ECHO_N "(cached) $ECHO_C" >&6
25556 else
25557
25558    cat >conftest.$ac_ext <<_ACEOF
25559 /* confdefs.h.  */
25560 _ACEOF
25561 cat confdefs.h >>conftest.$ac_ext
25562 cat >>conftest.$ac_ext <<_ACEOF
25563 /* end confdefs.h.  */
25564  #include <sys/types.h>
25565 int
25566 main ()
25567 {
25568  u_int64_t a; a = 1;
25569   ;
25570   return 0;
25571 }
25572 _ACEOF
25573 rm -f conftest.$ac_objext
25574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25575   (eval $ac_compile) 2>conftest.er1
25576   ac_status=$?
25577   grep -v '^ *+' conftest.er1 >conftest.err
25578   rm -f conftest.er1
25579   cat conftest.err >&5
25580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581   (exit $ac_status); } &&
25582          { ac_try='test -z "$ac_c_werror_flag"
25583                          || test ! -s conftest.err'
25584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25585   (eval $ac_try) 2>&5
25586   ac_status=$?
25587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588   (exit $ac_status); }; } &&
25589          { ac_try='test -s conftest.$ac_objext'
25590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25591   (eval $ac_try) 2>&5
25592   ac_status=$?
25593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594   (exit $ac_status); }; }; then
25595    ac_cv_have_u_int64_t="yes"
25596 else
25597   echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25599
25600  ac_cv_have_u_int64_t="no"
25601
25602 fi
25603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25604
25605 fi
25606 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
25607 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
25608 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
25609    cat >>confdefs.h <<\_ACEOF
25610 #define HAVE_U_INT64_T 1
25611 _ACEOF
25612
25613    have_u_int64_t=1
25614 fi
25615
25616 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
25617            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25618 then
25619    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
25620 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
25621    cat >conftest.$ac_ext <<_ACEOF
25622 /* confdefs.h.  */
25623 _ACEOF
25624 cat confdefs.h >>conftest.$ac_ext
25625 cat >>conftest.$ac_ext <<_ACEOF
25626 /* end confdefs.h.  */
25627  #include <sys/bitypes.h>
25628 int
25629 main ()
25630 {
25631  int8_t a; int16_t b; int32_t c;
25632         u_int8_t e; u_int16_t f; u_int32_t g;
25633         a = b = c = e = f = g = 1;
25634   ;
25635   return 0;
25636 }
25637 _ACEOF
25638 rm -f conftest.$ac_objext
25639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25640   (eval $ac_compile) 2>conftest.er1
25641   ac_status=$?
25642   grep -v '^ *+' conftest.er1 >conftest.err
25643   rm -f conftest.er1
25644   cat conftest.err >&5
25645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646   (exit $ac_status); } &&
25647          { ac_try='test -z "$ac_c_werror_flag"
25648                          || test ! -s conftest.err'
25649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25650   (eval $ac_try) 2>&5
25651   ac_status=$?
25652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653   (exit $ac_status); }; } &&
25654          { ac_try='test -s conftest.$ac_objext'
25655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25656   (eval $ac_try) 2>&5
25657   ac_status=$?
25658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659   (exit $ac_status); }; }; then
25660    cat >>confdefs.h <<\_ACEOF
25661 #define HAVE_U_INTXX_T 1
25662 _ACEOF
25663
25664         cat >>confdefs.h <<\_ACEOF
25665 #define HAVE_INTXX_T 1
25666 _ACEOF
25667
25668         cat >>confdefs.h <<\_ACEOF
25669 #define HAVE_SYS_BITYPES_H 1
25670 _ACEOF
25671
25672         echo "$as_me:$LINENO: result: yes" >&5
25673 echo "${ECHO_T}yes" >&6
25674 else
25675   echo "$as_me: failed program was:" >&5
25676 sed 's/^/| /' conftest.$ac_ext >&5
25677
25678  echo "$as_me:$LINENO: result: no" >&5
25679 echo "${ECHO_T}no" >&6
25680
25681 fi
25682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25683 fi
25684
25685 if test -z "$have_u_intxx_t" ; then
25686    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
25687 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
25688 if test "${ac_cv_have_uintxx_t+set}" = set; then
25689   echo $ECHO_N "(cached) $ECHO_C" >&6
25690 else
25691
25692       cat >conftest.$ac_ext <<_ACEOF
25693 /* confdefs.h.  */
25694 _ACEOF
25695 cat confdefs.h >>conftest.$ac_ext
25696 cat >>conftest.$ac_ext <<_ACEOF
25697 /* end confdefs.h.  */
25698  #include <sys/types.h>
25699 int
25700 main ()
25701 {
25702  uint8_t a; uint16_t b;
25703            uint32_t c; a = b = c = 1;
25704   ;
25705   return 0;
25706 }
25707 _ACEOF
25708 rm -f conftest.$ac_objext
25709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25710   (eval $ac_compile) 2>conftest.er1
25711   ac_status=$?
25712   grep -v '^ *+' conftest.er1 >conftest.err
25713   rm -f conftest.er1
25714   cat conftest.err >&5
25715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716   (exit $ac_status); } &&
25717          { ac_try='test -z "$ac_c_werror_flag"
25718                          || test ! -s conftest.err'
25719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25720   (eval $ac_try) 2>&5
25721   ac_status=$?
25722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723   (exit $ac_status); }; } &&
25724          { ac_try='test -s conftest.$ac_objext'
25725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25726   (eval $ac_try) 2>&5
25727   ac_status=$?
25728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729   (exit $ac_status); }; }; then
25730    ac_cv_have_uintxx_t="yes"
25731 else
25732   echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25734
25735  ac_cv_have_uintxx_t="no"
25736
25737 fi
25738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25739
25740 fi
25741 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
25742 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
25743    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
25744       cat >>confdefs.h <<\_ACEOF
25745 #define HAVE_UINTXX_T 1
25746 _ACEOF
25747
25748    fi
25749 fi
25750
25751 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
25752           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25753 then
25754    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
25755 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
25756    cat >conftest.$ac_ext <<_ACEOF
25757 /* confdefs.h.  */
25758 _ACEOF
25759 cat confdefs.h >>conftest.$ac_ext
25760 cat >>conftest.$ac_ext <<_ACEOF
25761 /* end confdefs.h.  */
25762  #include <sys/bitypes.h>
25763 int
25764 main ()
25765 {
25766  int64_t a; u_int64_t b;
25767        a = b = 1;
25768   ;
25769   return 0;
25770 }
25771 _ACEOF
25772 rm -f conftest.$ac_objext
25773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25774   (eval $ac_compile) 2>conftest.er1
25775   ac_status=$?
25776   grep -v '^ *+' conftest.er1 >conftest.err
25777   rm -f conftest.er1
25778   cat conftest.err >&5
25779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780   (exit $ac_status); } &&
25781          { ac_try='test -z "$ac_c_werror_flag"
25782                          || test ! -s conftest.err'
25783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25784   (eval $ac_try) 2>&5
25785   ac_status=$?
25786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787   (exit $ac_status); }; } &&
25788          { ac_try='test -s conftest.$ac_objext'
25789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25790   (eval $ac_try) 2>&5
25791   ac_status=$?
25792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793   (exit $ac_status); }; }; then
25794    cat >>confdefs.h <<\_ACEOF
25795 #define HAVE_U_INT64_T 1
25796 _ACEOF
25797
25798        cat >>confdefs.h <<\_ACEOF
25799 #define HAVE_INT64_T 1
25800 _ACEOF
25801
25802        echo "$as_me:$LINENO: result: yes" >&5
25803 echo "${ECHO_T}yes" >&6
25804 else
25805   echo "$as_me: failed program was:" >&5
25806 sed 's/^/| /' conftest.$ac_ext >&5
25807
25808  echo "$as_me:$LINENO: result: no" >&5
25809 echo "${ECHO_T}no" >&6
25810
25811 fi
25812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25813 fi
25814
25815 if (test -z "$have_uintxx_t" && \
25816           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25817 then
25818    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
25819 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
25820    cat >conftest.$ac_ext <<_ACEOF
25821 /* confdefs.h.  */
25822 _ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h.  */
25826  #include <sys/bitypes.h>
25827 int
25828 main ()
25829 {
25830  uint8_t a; uint16_t b;
25831           uint32_t c; a = b = c = 1;
25832   ;
25833   return 0;
25834 }
25835 _ACEOF
25836 rm -f conftest.$ac_objext
25837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25838   (eval $ac_compile) 2>conftest.er1
25839   ac_status=$?
25840   grep -v '^ *+' conftest.er1 >conftest.err
25841   rm -f conftest.er1
25842   cat conftest.err >&5
25843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844   (exit $ac_status); } &&
25845          { ac_try='test -z "$ac_c_werror_flag"
25846                          || test ! -s conftest.err'
25847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25848   (eval $ac_try) 2>&5
25849   ac_status=$?
25850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851   (exit $ac_status); }; } &&
25852          { ac_try='test -s conftest.$ac_objext'
25853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25854   (eval $ac_try) 2>&5
25855   ac_status=$?
25856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857   (exit $ac_status); }; }; then
25858    cat >>confdefs.h <<\_ACEOF
25859 #define HAVE_UINTXX_T 1
25860 _ACEOF
25861
25862        echo "$as_me:$LINENO: result: yes" >&5
25863 echo "${ECHO_T}yes" >&6
25864 else
25865   echo "$as_me: failed program was:" >&5
25866 sed 's/^/| /' conftest.$ac_ext >&5
25867
25868  echo "$as_me:$LINENO: result: no" >&5
25869 echo "${ECHO_T}no" >&6
25870
25871 fi
25872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25873
25874 fi
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892 for ac_func in \
25893         fork \
25894         getcwd \
25895         gethostname \
25896         getpid \
25897         gettimeofday \
25898         setpgid \
25899         setpgrp \
25900         setsid \
25901         signal \
25902         strerror \
25903         strncmp \
25904         strncpy \
25905         vfprintf \
25906
25907 do
25908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25909 echo "$as_me:$LINENO: checking for $ac_func" >&5
25910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25911 if eval "test \"\${$as_ac_var+set}\" = set"; then
25912   echo $ECHO_N "(cached) $ECHO_C" >&6
25913 else
25914   cat >conftest.$ac_ext <<_ACEOF
25915 /* confdefs.h.  */
25916 _ACEOF
25917 cat confdefs.h >>conftest.$ac_ext
25918 cat >>conftest.$ac_ext <<_ACEOF
25919 /* end confdefs.h.  */
25920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25922 #define $ac_func innocuous_$ac_func
25923
25924 /* System header to define __stub macros and hopefully few prototypes,
25925     which can conflict with char $ac_func (); below.
25926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25927     <limits.h> exists even on freestanding compilers.  */
25928
25929 #ifdef __STDC__
25930 # include <limits.h>
25931 #else
25932 # include <assert.h>
25933 #endif
25934
25935 #undef $ac_func
25936
25937 /* Override any gcc2 internal prototype to avoid an error.  */
25938 #ifdef __cplusplus
25939 extern "C"
25940 {
25941 #endif
25942 /* We use char because int might match the return type of a gcc2
25943    builtin and then its argument prototype would still apply.  */
25944 char $ac_func ();
25945 /* The GNU C library defines this for functions which it implements
25946     to always fail with ENOSYS.  Some functions are actually named
25947     something starting with __ and the normal name is an alias.  */
25948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25949 choke me
25950 #else
25951 char (*f) () = $ac_func;
25952 #endif
25953 #ifdef __cplusplus
25954 }
25955 #endif
25956
25957 int
25958 main ()
25959 {
25960 return f != $ac_func;
25961   ;
25962   return 0;
25963 }
25964 _ACEOF
25965 rm -f conftest.$ac_objext conftest$ac_exeext
25966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25967   (eval $ac_link) 2>conftest.er1
25968   ac_status=$?
25969   grep -v '^ *+' conftest.er1 >conftest.err
25970   rm -f conftest.er1
25971   cat conftest.err >&5
25972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973   (exit $ac_status); } &&
25974          { ac_try='test -z "$ac_c_werror_flag"
25975                          || test ! -s conftest.err'
25976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25977   (eval $ac_try) 2>&5
25978   ac_status=$?
25979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980   (exit $ac_status); }; } &&
25981          { ac_try='test -s conftest$ac_exeext'
25982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25983   (eval $ac_try) 2>&5
25984   ac_status=$?
25985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986   (exit $ac_status); }; }; then
25987   eval "$as_ac_var=yes"
25988 else
25989   echo "$as_me: failed program was:" >&5
25990 sed 's/^/| /' conftest.$ac_ext >&5
25991
25992 eval "$as_ac_var=no"
25993 fi
25994 rm -f conftest.err conftest.$ac_objext \
25995       conftest$ac_exeext conftest.$ac_ext
25996 fi
25997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25999 if test `eval echo '${'$as_ac_var'}'` = yes; then
26000   cat >>confdefs.h <<_ACEOF
26001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26002 _ACEOF
26003
26004 else
26005   echo 'configure: cannot find needed function.'; exit 1
26006
26007 fi
26008 done
26009
26010
26011
26012 for ac_func in fchdir
26013 do
26014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26015 echo "$as_me:$LINENO: checking for $ac_func" >&5
26016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26017 if eval "test \"\${$as_ac_var+set}\" = set"; then
26018   echo $ECHO_N "(cached) $ECHO_C" >&6
26019 else
26020   cat >conftest.$ac_ext <<_ACEOF
26021 /* confdefs.h.  */
26022 _ACEOF
26023 cat confdefs.h >>conftest.$ac_ext
26024 cat >>conftest.$ac_ext <<_ACEOF
26025 /* end confdefs.h.  */
26026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26028 #define $ac_func innocuous_$ac_func
26029
26030 /* System header to define __stub macros and hopefully few prototypes,
26031     which can conflict with char $ac_func (); below.
26032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26033     <limits.h> exists even on freestanding compilers.  */
26034
26035 #ifdef __STDC__
26036 # include <limits.h>
26037 #else
26038 # include <assert.h>
26039 #endif
26040
26041 #undef $ac_func
26042
26043 /* Override any gcc2 internal prototype to avoid an error.  */
26044 #ifdef __cplusplus
26045 extern "C"
26046 {
26047 #endif
26048 /* We use char because int might match the return type of a gcc2
26049    builtin and then its argument prototype would still apply.  */
26050 char $ac_func ();
26051 /* The GNU C library defines this for functions which it implements
26052     to always fail with ENOSYS.  Some functions are actually named
26053     something starting with __ and the normal name is an alias.  */
26054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26055 choke me
26056 #else
26057 char (*f) () = $ac_func;
26058 #endif
26059 #ifdef __cplusplus
26060 }
26061 #endif
26062
26063 int
26064 main ()
26065 {
26066 return f != $ac_func;
26067   ;
26068   return 0;
26069 }
26070 _ACEOF
26071 rm -f conftest.$ac_objext conftest$ac_exeext
26072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26073   (eval $ac_link) 2>conftest.er1
26074   ac_status=$?
26075   grep -v '^ *+' conftest.er1 >conftest.err
26076   rm -f conftest.er1
26077   cat conftest.err >&5
26078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079   (exit $ac_status); } &&
26080          { ac_try='test -z "$ac_c_werror_flag"
26081                          || test ! -s conftest.err'
26082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26083   (eval $ac_try) 2>&5
26084   ac_status=$?
26085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086   (exit $ac_status); }; } &&
26087          { ac_try='test -s conftest$ac_exeext'
26088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089   (eval $ac_try) 2>&5
26090   ac_status=$?
26091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092   (exit $ac_status); }; }; then
26093   eval "$as_ac_var=yes"
26094 else
26095   echo "$as_me: failed program was:" >&5
26096 sed 's/^/| /' conftest.$ac_ext >&5
26097
26098 eval "$as_ac_var=no"
26099 fi
26100 rm -f conftest.err conftest.$ac_objext \
26101       conftest$ac_exeext conftest.$ac_ext
26102 fi
26103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26105 if test `eval echo '${'$as_ac_var'}'` = yes; then
26106   cat >>confdefs.h <<_ACEOF
26107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26108 _ACEOF
26109  cat >>confdefs.h <<\_ACEOF
26110 #define HAVE_FCHDIR 1
26111 _ACEOF
26112
26113 fi
26114 done
26115
26116
26117 for ac_func in strtoll
26118 do
26119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26120 echo "$as_me:$LINENO: checking for $ac_func" >&5
26121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26122 if eval "test \"\${$as_ac_var+set}\" = set"; then
26123   echo $ECHO_N "(cached) $ECHO_C" >&6
26124 else
26125   cat >conftest.$ac_ext <<_ACEOF
26126 /* confdefs.h.  */
26127 _ACEOF
26128 cat confdefs.h >>conftest.$ac_ext
26129 cat >>conftest.$ac_ext <<_ACEOF
26130 /* end confdefs.h.  */
26131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26133 #define $ac_func innocuous_$ac_func
26134
26135 /* System header to define __stub macros and hopefully few prototypes,
26136     which can conflict with char $ac_func (); below.
26137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26138     <limits.h> exists even on freestanding compilers.  */
26139
26140 #ifdef __STDC__
26141 # include <limits.h>
26142 #else
26143 # include <assert.h>
26144 #endif
26145
26146 #undef $ac_func
26147
26148 /* Override any gcc2 internal prototype to avoid an error.  */
26149 #ifdef __cplusplus
26150 extern "C"
26151 {
26152 #endif
26153 /* We use char because int might match the return type of a gcc2
26154    builtin and then its argument prototype would still apply.  */
26155 char $ac_func ();
26156 /* The GNU C library defines this for functions which it implements
26157     to always fail with ENOSYS.  Some functions are actually named
26158     something starting with __ and the normal name is an alias.  */
26159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26160 choke me
26161 #else
26162 char (*f) () = $ac_func;
26163 #endif
26164 #ifdef __cplusplus
26165 }
26166 #endif
26167
26168 int
26169 main ()
26170 {
26171 return f != $ac_func;
26172   ;
26173   return 0;
26174 }
26175 _ACEOF
26176 rm -f conftest.$ac_objext conftest$ac_exeext
26177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26178   (eval $ac_link) 2>conftest.er1
26179   ac_status=$?
26180   grep -v '^ *+' conftest.er1 >conftest.err
26181   rm -f conftest.er1
26182   cat conftest.err >&5
26183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184   (exit $ac_status); } &&
26185          { ac_try='test -z "$ac_c_werror_flag"
26186                          || test ! -s conftest.err'
26187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26188   (eval $ac_try) 2>&5
26189   ac_status=$?
26190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191   (exit $ac_status); }; } &&
26192          { ac_try='test -s conftest$ac_exeext'
26193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26194   (eval $ac_try) 2>&5
26195   ac_status=$?
26196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197   (exit $ac_status); }; }; then
26198   eval "$as_ac_var=yes"
26199 else
26200   echo "$as_me: failed program was:" >&5
26201 sed 's/^/| /' conftest.$ac_ext >&5
26202
26203 eval "$as_ac_var=no"
26204 fi
26205 rm -f conftest.err conftest.$ac_objext \
26206       conftest$ac_exeext conftest.$ac_ext
26207 fi
26208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26210 if test `eval echo '${'$as_ac_var'}'` = yes; then
26211   cat >>confdefs.h <<_ACEOF
26212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26213 _ACEOF
26214  cat >>confdefs.h <<\_ACEOF
26215 #define HAVE_STRTOLL 1
26216 _ACEOF
26217
26218 fi
26219 done
26220
26221
26222
26223 for ac_func in chflags
26224 do
26225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26226 echo "$as_me:$LINENO: checking for $ac_func" >&5
26227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26228 if eval "test \"\${$as_ac_var+set}\" = set"; then
26229   echo $ECHO_N "(cached) $ECHO_C" >&6
26230 else
26231   cat >conftest.$ac_ext <<_ACEOF
26232 /* confdefs.h.  */
26233 _ACEOF
26234 cat confdefs.h >>conftest.$ac_ext
26235 cat >>conftest.$ac_ext <<_ACEOF
26236 /* end confdefs.h.  */
26237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26239 #define $ac_func innocuous_$ac_func
26240
26241 /* System header to define __stub macros and hopefully few prototypes,
26242     which can conflict with char $ac_func (); below.
26243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26244     <limits.h> exists even on freestanding compilers.  */
26245
26246 #ifdef __STDC__
26247 # include <limits.h>
26248 #else
26249 # include <assert.h>
26250 #endif
26251
26252 #undef $ac_func
26253
26254 /* Override any gcc2 internal prototype to avoid an error.  */
26255 #ifdef __cplusplus
26256 extern "C"
26257 {
26258 #endif
26259 /* We use char because int might match the return type of a gcc2
26260    builtin and then its argument prototype would still apply.  */
26261 char $ac_func ();
26262 /* The GNU C library defines this for functions which it implements
26263     to always fail with ENOSYS.  Some functions are actually named
26264     something starting with __ and the normal name is an alias.  */
26265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26266 choke me
26267 #else
26268 char (*f) () = $ac_func;
26269 #endif
26270 #ifdef __cplusplus
26271 }
26272 #endif
26273
26274 int
26275 main ()
26276 {
26277 return f != $ac_func;
26278   ;
26279   return 0;
26280 }
26281 _ACEOF
26282 rm -f conftest.$ac_objext conftest$ac_exeext
26283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26284   (eval $ac_link) 2>conftest.er1
26285   ac_status=$?
26286   grep -v '^ *+' conftest.er1 >conftest.err
26287   rm -f conftest.er1
26288   cat conftest.err >&5
26289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290   (exit $ac_status); } &&
26291          { ac_try='test -z "$ac_c_werror_flag"
26292                          || test ! -s conftest.err'
26293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26294   (eval $ac_try) 2>&5
26295   ac_status=$?
26296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297   (exit $ac_status); }; } &&
26298          { ac_try='test -s conftest$ac_exeext'
26299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300   (eval $ac_try) 2>&5
26301   ac_status=$?
26302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303   (exit $ac_status); }; }; then
26304   eval "$as_ac_var=yes"
26305 else
26306   echo "$as_me: failed program was:" >&5
26307 sed 's/^/| /' conftest.$ac_ext >&5
26308
26309 eval "$as_ac_var=no"
26310 fi
26311 rm -f conftest.err conftest.$ac_objext \
26312       conftest$ac_exeext conftest.$ac_ext
26313 fi
26314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26316 if test `eval echo '${'$as_ac_var'}'` = yes; then
26317   cat >>confdefs.h <<_ACEOF
26318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26319 _ACEOF
26320
26321 fi
26322 done
26323
26324
26325
26326
26327
26328
26329 for ac_func in snprintf vsnprintf gethostid fseeko
26330 do
26331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26332 echo "$as_me:$LINENO: checking for $ac_func" >&5
26333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26334 if eval "test \"\${$as_ac_var+set}\" = set"; then
26335   echo $ECHO_N "(cached) $ECHO_C" >&6
26336 else
26337   cat >conftest.$ac_ext <<_ACEOF
26338 /* confdefs.h.  */
26339 _ACEOF
26340 cat confdefs.h >>conftest.$ac_ext
26341 cat >>conftest.$ac_ext <<_ACEOF
26342 /* end confdefs.h.  */
26343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26345 #define $ac_func innocuous_$ac_func
26346
26347 /* System header to define __stub macros and hopefully few prototypes,
26348     which can conflict with char $ac_func (); below.
26349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26350     <limits.h> exists even on freestanding compilers.  */
26351
26352 #ifdef __STDC__
26353 # include <limits.h>
26354 #else
26355 # include <assert.h>
26356 #endif
26357
26358 #undef $ac_func
26359
26360 /* Override any gcc2 internal prototype to avoid an error.  */
26361 #ifdef __cplusplus
26362 extern "C"
26363 {
26364 #endif
26365 /* We use char because int might match the return type of a gcc2
26366    builtin and then its argument prototype would still apply.  */
26367 char $ac_func ();
26368 /* The GNU C library defines this for functions which it implements
26369     to always fail with ENOSYS.  Some functions are actually named
26370     something starting with __ and the normal name is an alias.  */
26371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26372 choke me
26373 #else
26374 char (*f) () = $ac_func;
26375 #endif
26376 #ifdef __cplusplus
26377 }
26378 #endif
26379
26380 int
26381 main ()
26382 {
26383 return f != $ac_func;
26384   ;
26385   return 0;
26386 }
26387 _ACEOF
26388 rm -f conftest.$ac_objext conftest$ac_exeext
26389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26390   (eval $ac_link) 2>conftest.er1
26391   ac_status=$?
26392   grep -v '^ *+' conftest.er1 >conftest.err
26393   rm -f conftest.er1
26394   cat conftest.err >&5
26395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396   (exit $ac_status); } &&
26397          { ac_try='test -z "$ac_c_werror_flag"
26398                          || test ! -s conftest.err'
26399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26400   (eval $ac_try) 2>&5
26401   ac_status=$?
26402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403   (exit $ac_status); }; } &&
26404          { ac_try='test -s conftest$ac_exeext'
26405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26406   (eval $ac_try) 2>&5
26407   ac_status=$?
26408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409   (exit $ac_status); }; }; then
26410   eval "$as_ac_var=yes"
26411 else
26412   echo "$as_me: failed program was:" >&5
26413 sed 's/^/| /' conftest.$ac_ext >&5
26414
26415 eval "$as_ac_var=no"
26416 fi
26417 rm -f conftest.err conftest.$ac_objext \
26418       conftest$ac_exeext conftest.$ac_ext
26419 fi
26420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26422 if test `eval echo '${'$as_ac_var'}'` = yes; then
26423   cat >>confdefs.h <<_ACEOF
26424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26425 _ACEOF
26426
26427 fi
26428 done
26429
26430
26431
26432
26433
26434
26435 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
26436 do
26437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26438 echo "$as_me:$LINENO: checking for $ac_func" >&5
26439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26440 if eval "test \"\${$as_ac_var+set}\" = set"; then
26441   echo $ECHO_N "(cached) $ECHO_C" >&6
26442 else
26443   cat >conftest.$ac_ext <<_ACEOF
26444 /* confdefs.h.  */
26445 _ACEOF
26446 cat confdefs.h >>conftest.$ac_ext
26447 cat >>conftest.$ac_ext <<_ACEOF
26448 /* end confdefs.h.  */
26449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26451 #define $ac_func innocuous_$ac_func
26452
26453 /* System header to define __stub macros and hopefully few prototypes,
26454     which can conflict with char $ac_func (); below.
26455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26456     <limits.h> exists even on freestanding compilers.  */
26457
26458 #ifdef __STDC__
26459 # include <limits.h>
26460 #else
26461 # include <assert.h>
26462 #endif
26463
26464 #undef $ac_func
26465
26466 /* Override any gcc2 internal prototype to avoid an error.  */
26467 #ifdef __cplusplus
26468 extern "C"
26469 {
26470 #endif
26471 /* We use char because int might match the return type of a gcc2
26472    builtin and then its argument prototype would still apply.  */
26473 char $ac_func ();
26474 /* The GNU C library defines this for functions which it implements
26475     to always fail with ENOSYS.  Some functions are actually named
26476     something starting with __ and the normal name is an alias.  */
26477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26478 choke me
26479 #else
26480 char (*f) () = $ac_func;
26481 #endif
26482 #ifdef __cplusplus
26483 }
26484 #endif
26485
26486 int
26487 main ()
26488 {
26489 return f != $ac_func;
26490   ;
26491   return 0;
26492 }
26493 _ACEOF
26494 rm -f conftest.$ac_objext conftest$ac_exeext
26495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26496   (eval $ac_link) 2>conftest.er1
26497   ac_status=$?
26498   grep -v '^ *+' conftest.er1 >conftest.err
26499   rm -f conftest.er1
26500   cat conftest.err >&5
26501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502   (exit $ac_status); } &&
26503          { ac_try='test -z "$ac_c_werror_flag"
26504                          || test ! -s conftest.err'
26505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26506   (eval $ac_try) 2>&5
26507   ac_status=$?
26508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509   (exit $ac_status); }; } &&
26510          { ac_try='test -s conftest$ac_exeext'
26511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512   (eval $ac_try) 2>&5
26513   ac_status=$?
26514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515   (exit $ac_status); }; }; then
26516   eval "$as_ac_var=yes"
26517 else
26518   echo "$as_me: failed program was:" >&5
26519 sed 's/^/| /' conftest.$ac_ext >&5
26520
26521 eval "$as_ac_var=no"
26522 fi
26523 rm -f conftest.err conftest.$ac_objext \
26524       conftest$ac_exeext conftest.$ac_ext
26525 fi
26526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26528 if test `eval echo '${'$as_ac_var'}'` = yes; then
26529   cat >>confdefs.h <<_ACEOF
26530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26531 _ACEOF
26532
26533 fi
26534 done
26535
26536
26537 # If resolver functions are not in libc check for -lnsl or -lresolv.
26538 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26539 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
26540 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26541   echo $ECHO_N "(cached) $ECHO_C" >&6
26542 else
26543   cat >conftest.$ac_ext <<_ACEOF
26544 /* confdefs.h.  */
26545 _ACEOF
26546 cat confdefs.h >>conftest.$ac_ext
26547 cat >>conftest.$ac_ext <<_ACEOF
26548 /* end confdefs.h.  */
26549 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26551 #define gethostbyname_r innocuous_gethostbyname_r
26552
26553 /* System header to define __stub macros and hopefully few prototypes,
26554     which can conflict with char gethostbyname_r (); below.
26555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26556     <limits.h> exists even on freestanding compilers.  */
26557
26558 #ifdef __STDC__
26559 # include <limits.h>
26560 #else
26561 # include <assert.h>
26562 #endif
26563
26564 #undef gethostbyname_r
26565
26566 /* Override any gcc2 internal prototype to avoid an error.  */
26567 #ifdef __cplusplus
26568 extern "C"
26569 {
26570 #endif
26571 /* We use char because int might match the return type of a gcc2
26572    builtin and then its argument prototype would still apply.  */
26573 char gethostbyname_r ();
26574 /* The GNU C library defines this for functions which it implements
26575     to always fail with ENOSYS.  Some functions are actually named
26576     something starting with __ and the normal name is an alias.  */
26577 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
26578 choke me
26579 #else
26580 char (*f) () = gethostbyname_r;
26581 #endif
26582 #ifdef __cplusplus
26583 }
26584 #endif
26585
26586 int
26587 main ()
26588 {
26589 return f != gethostbyname_r;
26590   ;
26591   return 0;
26592 }
26593 _ACEOF
26594 rm -f conftest.$ac_objext conftest$ac_exeext
26595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26596   (eval $ac_link) 2>conftest.er1
26597   ac_status=$?
26598   grep -v '^ *+' conftest.er1 >conftest.err
26599   rm -f conftest.er1
26600   cat conftest.err >&5
26601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602   (exit $ac_status); } &&
26603          { ac_try='test -z "$ac_c_werror_flag"
26604                          || test ! -s conftest.err'
26605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26606   (eval $ac_try) 2>&5
26607   ac_status=$?
26608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609   (exit $ac_status); }; } &&
26610          { ac_try='test -s conftest$ac_exeext'
26611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26612   (eval $ac_try) 2>&5
26613   ac_status=$?
26614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615   (exit $ac_status); }; }; then
26616   ac_cv_func_gethostbyname_r=yes
26617 else
26618   echo "$as_me: failed program was:" >&5
26619 sed 's/^/| /' conftest.$ac_ext >&5
26620
26621 ac_cv_func_gethostbyname_r=no
26622 fi
26623 rm -f conftest.err conftest.$ac_objext \
26624       conftest$ac_exeext conftest.$ac_ext
26625 fi
26626 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26627 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
26628 if test $ac_cv_func_gethostbyname_r = yes; then
26629   echo "$as_me:$LINENO: result: using libc's resolver" >&5
26630 echo "${ECHO_T}using libc's resolver" >&6
26631 else
26632
26633 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
26634 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
26635 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
26636   echo $ECHO_N "(cached) $ECHO_C" >&6
26637 else
26638   ac_check_lib_save_LIBS=$LIBS
26639 LIBS="-lnsl  $LIBS"
26640 cat >conftest.$ac_ext <<_ACEOF
26641 /* confdefs.h.  */
26642 _ACEOF
26643 cat confdefs.h >>conftest.$ac_ext
26644 cat >>conftest.$ac_ext <<_ACEOF
26645 /* end confdefs.h.  */
26646
26647 /* Override any gcc2 internal prototype to avoid an error.  */
26648 #ifdef __cplusplus
26649 extern "C"
26650 #endif
26651 /* We use char because int might match the return type of a gcc2
26652    builtin and then its argument prototype would still apply.  */
26653 char gethostbyname_r ();
26654 int
26655 main ()
26656 {
26657 gethostbyname_r ();
26658   ;
26659   return 0;
26660 }
26661 _ACEOF
26662 rm -f conftest.$ac_objext conftest$ac_exeext
26663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26664   (eval $ac_link) 2>conftest.er1
26665   ac_status=$?
26666   grep -v '^ *+' conftest.er1 >conftest.err
26667   rm -f conftest.er1
26668   cat conftest.err >&5
26669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670   (exit $ac_status); } &&
26671          { ac_try='test -z "$ac_c_werror_flag"
26672                          || test ! -s conftest.err'
26673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26674   (eval $ac_try) 2>&5
26675   ac_status=$?
26676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677   (exit $ac_status); }; } &&
26678          { ac_try='test -s conftest$ac_exeext'
26679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680   (eval $ac_try) 2>&5
26681   ac_status=$?
26682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683   (exit $ac_status); }; }; then
26684   ac_cv_lib_nsl_gethostbyname_r=yes
26685 else
26686   echo "$as_me: failed program was:" >&5
26687 sed 's/^/| /' conftest.$ac_ext >&5
26688
26689 ac_cv_lib_nsl_gethostbyname_r=no
26690 fi
26691 rm -f conftest.err conftest.$ac_objext \
26692       conftest$ac_exeext conftest.$ac_ext
26693 LIBS=$ac_check_lib_save_LIBS
26694 fi
26695 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
26696 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
26697 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
26698   cat >>confdefs.h <<_ACEOF
26699 #define HAVE_LIBNSL 1
26700 _ACEOF
26701
26702   LIBS="-lnsl $LIBS"
26703
26704 fi
26705
26706
26707 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
26708 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
26709 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
26710   echo $ECHO_N "(cached) $ECHO_C" >&6
26711 else
26712   ac_check_lib_save_LIBS=$LIBS
26713 LIBS="-lresolv  $LIBS"
26714 cat >conftest.$ac_ext <<_ACEOF
26715 /* confdefs.h.  */
26716 _ACEOF
26717 cat confdefs.h >>conftest.$ac_ext
26718 cat >>conftest.$ac_ext <<_ACEOF
26719 /* end confdefs.h.  */
26720
26721 /* Override any gcc2 internal prototype to avoid an error.  */
26722 #ifdef __cplusplus
26723 extern "C"
26724 #endif
26725 /* We use char because int might match the return type of a gcc2
26726    builtin and then its argument prototype would still apply.  */
26727 char gethostbyname_r ();
26728 int
26729 main ()
26730 {
26731 gethostbyname_r ();
26732   ;
26733   return 0;
26734 }
26735 _ACEOF
26736 rm -f conftest.$ac_objext conftest$ac_exeext
26737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26738   (eval $ac_link) 2>conftest.er1
26739   ac_status=$?
26740   grep -v '^ *+' conftest.er1 >conftest.err
26741   rm -f conftest.er1
26742   cat conftest.err >&5
26743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744   (exit $ac_status); } &&
26745          { ac_try='test -z "$ac_c_werror_flag"
26746                          || test ! -s conftest.err'
26747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26748   (eval $ac_try) 2>&5
26749   ac_status=$?
26750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751   (exit $ac_status); }; } &&
26752          { ac_try='test -s conftest$ac_exeext'
26753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26754   (eval $ac_try) 2>&5
26755   ac_status=$?
26756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757   (exit $ac_status); }; }; then
26758   ac_cv_lib_resolv_gethostbyname_r=yes
26759 else
26760   echo "$as_me: failed program was:" >&5
26761 sed 's/^/| /' conftest.$ac_ext >&5
26762
26763 ac_cv_lib_resolv_gethostbyname_r=no
26764 fi
26765 rm -f conftest.err conftest.$ac_objext \
26766       conftest$ac_exeext conftest.$ac_ext
26767 LIBS=$ac_check_lib_save_LIBS
26768 fi
26769 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
26770 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
26771 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
26772   cat >>confdefs.h <<_ACEOF
26773 #define HAVE_LIBRESOLV 1
26774 _ACEOF
26775
26776   LIBS="-lresolv $LIBS"
26777
26778 fi
26779
26780 fi
26781
26782
26783
26784
26785
26786 for ac_func in inet_pton
26787 do
26788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26789 echo "$as_me:$LINENO: checking for $ac_func" >&5
26790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26791 if eval "test \"\${$as_ac_var+set}\" = set"; then
26792   echo $ECHO_N "(cached) $ECHO_C" >&6
26793 else
26794   cat >conftest.$ac_ext <<_ACEOF
26795 /* confdefs.h.  */
26796 _ACEOF
26797 cat confdefs.h >>conftest.$ac_ext
26798 cat >>conftest.$ac_ext <<_ACEOF
26799 /* end confdefs.h.  */
26800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26802 #define $ac_func innocuous_$ac_func
26803
26804 /* System header to define __stub macros and hopefully few prototypes,
26805     which can conflict with char $ac_func (); below.
26806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26807     <limits.h> exists even on freestanding compilers.  */
26808
26809 #ifdef __STDC__
26810 # include <limits.h>
26811 #else
26812 # include <assert.h>
26813 #endif
26814
26815 #undef $ac_func
26816
26817 /* Override any gcc2 internal prototype to avoid an error.  */
26818 #ifdef __cplusplus
26819 extern "C"
26820 {
26821 #endif
26822 /* We use char because int might match the return type of a gcc2
26823    builtin and then its argument prototype would still apply.  */
26824 char $ac_func ();
26825 /* The GNU C library defines this for functions which it implements
26826     to always fail with ENOSYS.  Some functions are actually named
26827     something starting with __ and the normal name is an alias.  */
26828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26829 choke me
26830 #else
26831 char (*f) () = $ac_func;
26832 #endif
26833 #ifdef __cplusplus
26834 }
26835 #endif
26836
26837 int
26838 main ()
26839 {
26840 return f != $ac_func;
26841   ;
26842   return 0;
26843 }
26844 _ACEOF
26845 rm -f conftest.$ac_objext conftest$ac_exeext
26846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26847   (eval $ac_link) 2>conftest.er1
26848   ac_status=$?
26849   grep -v '^ *+' conftest.er1 >conftest.err
26850   rm -f conftest.er1
26851   cat conftest.err >&5
26852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853   (exit $ac_status); } &&
26854          { ac_try='test -z "$ac_c_werror_flag"
26855                          || test ! -s conftest.err'
26856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26857   (eval $ac_try) 2>&5
26858   ac_status=$?
26859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860   (exit $ac_status); }; } &&
26861          { ac_try='test -s conftest$ac_exeext'
26862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26863   (eval $ac_try) 2>&5
26864   ac_status=$?
26865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866   (exit $ac_status); }; }; then
26867   eval "$as_ac_var=yes"
26868 else
26869   echo "$as_me: failed program was:" >&5
26870 sed 's/^/| /' conftest.$ac_ext >&5
26871
26872 eval "$as_ac_var=no"
26873 fi
26874 rm -f conftest.err conftest.$ac_objext \
26875       conftest$ac_exeext conftest.$ac_ext
26876 fi
26877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26879 if test `eval echo '${'$as_ac_var'}'` = yes; then
26880   cat >>confdefs.h <<_ACEOF
26881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26882 _ACEOF
26883  cat >>confdefs.h <<\_ACEOF
26884 #define HAVE_INET_PTON 1
26885 _ACEOF
26886
26887 fi
26888 done
26889
26890
26891 for ac_func in inet_ntop
26892 do
26893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26894 echo "$as_me:$LINENO: checking for $ac_func" >&5
26895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26896 if eval "test \"\${$as_ac_var+set}\" = set"; then
26897   echo $ECHO_N "(cached) $ECHO_C" >&6
26898 else
26899   cat >conftest.$ac_ext <<_ACEOF
26900 /* confdefs.h.  */
26901 _ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h.  */
26905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26907 #define $ac_func innocuous_$ac_func
26908
26909 /* System header to define __stub macros and hopefully few prototypes,
26910     which can conflict with char $ac_func (); below.
26911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26912     <limits.h> exists even on freestanding compilers.  */
26913
26914 #ifdef __STDC__
26915 # include <limits.h>
26916 #else
26917 # include <assert.h>
26918 #endif
26919
26920 #undef $ac_func
26921
26922 /* Override any gcc2 internal prototype to avoid an error.  */
26923 #ifdef __cplusplus
26924 extern "C"
26925 {
26926 #endif
26927 /* We use char because int might match the return type of a gcc2
26928    builtin and then its argument prototype would still apply.  */
26929 char $ac_func ();
26930 /* The GNU C library defines this for functions which it implements
26931     to always fail with ENOSYS.  Some functions are actually named
26932     something starting with __ and the normal name is an alias.  */
26933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26934 choke me
26935 #else
26936 char (*f) () = $ac_func;
26937 #endif
26938 #ifdef __cplusplus
26939 }
26940 #endif
26941
26942 int
26943 main ()
26944 {
26945 return f != $ac_func;
26946   ;
26947   return 0;
26948 }
26949 _ACEOF
26950 rm -f conftest.$ac_objext conftest$ac_exeext
26951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26952   (eval $ac_link) 2>conftest.er1
26953   ac_status=$?
26954   grep -v '^ *+' conftest.er1 >conftest.err
26955   rm -f conftest.er1
26956   cat conftest.err >&5
26957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958   (exit $ac_status); } &&
26959          { ac_try='test -z "$ac_c_werror_flag"
26960                          || test ! -s conftest.err'
26961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26962   (eval $ac_try) 2>&5
26963   ac_status=$?
26964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965   (exit $ac_status); }; } &&
26966          { ac_try='test -s conftest$ac_exeext'
26967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26968   (eval $ac_try) 2>&5
26969   ac_status=$?
26970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971   (exit $ac_status); }; }; then
26972   eval "$as_ac_var=yes"
26973 else
26974   echo "$as_me: failed program was:" >&5
26975 sed 's/^/| /' conftest.$ac_ext >&5
26976
26977 eval "$as_ac_var=no"
26978 fi
26979 rm -f conftest.err conftest.$ac_objext \
26980       conftest$ac_exeext conftest.$ac_ext
26981 fi
26982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26984 if test `eval echo '${'$as_ac_var'}'` = yes; then
26985   cat >>confdefs.h <<_ACEOF
26986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26987 _ACEOF
26988  cat >>confdefs.h <<\_ACEOF
26989 #define HAVE_INET_NTOP 1
26990 _ACEOF
26991
26992 fi
26993 done
26994
26995
26996 for ac_func in gethostbyname2
26997 do
26998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26999 echo "$as_me:$LINENO: checking for $ac_func" >&5
27000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27001 if eval "test \"\${$as_ac_var+set}\" = set"; then
27002   echo $ECHO_N "(cached) $ECHO_C" >&6
27003 else
27004   cat >conftest.$ac_ext <<_ACEOF
27005 /* confdefs.h.  */
27006 _ACEOF
27007 cat confdefs.h >>conftest.$ac_ext
27008 cat >>conftest.$ac_ext <<_ACEOF
27009 /* end confdefs.h.  */
27010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27012 #define $ac_func innocuous_$ac_func
27013
27014 /* System header to define __stub macros and hopefully few prototypes,
27015     which can conflict with char $ac_func (); below.
27016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27017     <limits.h> exists even on freestanding compilers.  */
27018
27019 #ifdef __STDC__
27020 # include <limits.h>
27021 #else
27022 # include <assert.h>
27023 #endif
27024
27025 #undef $ac_func
27026
27027 /* Override any gcc2 internal prototype to avoid an error.  */
27028 #ifdef __cplusplus
27029 extern "C"
27030 {
27031 #endif
27032 /* We use char because int might match the return type of a gcc2
27033    builtin and then its argument prototype would still apply.  */
27034 char $ac_func ();
27035 /* The GNU C library defines this for functions which it implements
27036     to always fail with ENOSYS.  Some functions are actually named
27037     something starting with __ and the normal name is an alias.  */
27038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27039 choke me
27040 #else
27041 char (*f) () = $ac_func;
27042 #endif
27043 #ifdef __cplusplus
27044 }
27045 #endif
27046
27047 int
27048 main ()
27049 {
27050 return f != $ac_func;
27051   ;
27052   return 0;
27053 }
27054 _ACEOF
27055 rm -f conftest.$ac_objext conftest$ac_exeext
27056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27057   (eval $ac_link) 2>conftest.er1
27058   ac_status=$?
27059   grep -v '^ *+' conftest.er1 >conftest.err
27060   rm -f conftest.er1
27061   cat conftest.err >&5
27062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063   (exit $ac_status); } &&
27064          { ac_try='test -z "$ac_c_werror_flag"
27065                          || test ! -s conftest.err'
27066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27067   (eval $ac_try) 2>&5
27068   ac_status=$?
27069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070   (exit $ac_status); }; } &&
27071          { ac_try='test -s conftest$ac_exeext'
27072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27073   (eval $ac_try) 2>&5
27074   ac_status=$?
27075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076   (exit $ac_status); }; }; then
27077   eval "$as_ac_var=yes"
27078 else
27079   echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27081
27082 eval "$as_ac_var=no"
27083 fi
27084 rm -f conftest.err conftest.$ac_objext \
27085       conftest$ac_exeext conftest.$ac_ext
27086 fi
27087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27089 if test `eval echo '${'$as_ac_var'}'` = yes; then
27090   cat >>confdefs.h <<_ACEOF
27091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27092 _ACEOF
27093  cat >>confdefs.h <<\_ACEOF
27094 #define HAVE_GETHOSTBYNAME2 1
27095 _ACEOF
27096
27097 fi
27098 done
27099
27100
27101 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27102 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27103 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27104   echo $ECHO_N "(cached) $ECHO_C" >&6
27105 else
27106   cat >conftest.$ac_ext <<_ACEOF
27107 /* confdefs.h.  */
27108 _ACEOF
27109 cat confdefs.h >>conftest.$ac_ext
27110 cat >>conftest.$ac_ext <<_ACEOF
27111 /* end confdefs.h.  */
27112 #include <sys/socket.h>
27113 int
27114 main ()
27115 {
27116 struct sockaddr s; s.sa_len;
27117   ;
27118   return 0;
27119 }
27120 _ACEOF
27121 rm -f conftest.$ac_objext
27122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27123   (eval $ac_compile) 2>conftest.er1
27124   ac_status=$?
27125   grep -v '^ *+' conftest.er1 >conftest.err
27126   rm -f conftest.er1
27127   cat conftest.err >&5
27128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129   (exit $ac_status); } &&
27130          { ac_try='test -z "$ac_c_werror_flag"
27131                          || test ! -s conftest.err'
27132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27133   (eval $ac_try) 2>&5
27134   ac_status=$?
27135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136   (exit $ac_status); }; } &&
27137          { ac_try='test -s conftest.$ac_objext'
27138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27139   (eval $ac_try) 2>&5
27140   ac_status=$?
27141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142   (exit $ac_status); }; }; then
27143   ac_cv_struct_sockaddr_sa_len=yes
27144 else
27145   echo "$as_me: failed program was:" >&5
27146 sed 's/^/| /' conftest.$ac_ext >&5
27147
27148 ac_cv_struct_sockaddr_sa_len=no
27149 fi
27150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27151 fi
27152 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27153 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27154
27155  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27156
27157 cat >>confdefs.h <<\_ACEOF
27158 #define HAVE_SA_LEN 1
27159 _ACEOF
27160
27161  fi
27162
27163
27164 echo "$as_me:$LINENO: checking for IPv6 support" >&5
27165 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
27166 if test "${ac_cv_ipv6_support+set}" = set; then
27167   echo $ECHO_N "(cached) $ECHO_C" >&6
27168 else
27169   cat >conftest.$ac_ext <<_ACEOF
27170 /* confdefs.h.  */
27171 _ACEOF
27172 cat confdefs.h >>conftest.$ac_ext
27173 cat >>conftest.$ac_ext <<_ACEOF
27174 /* end confdefs.h.  */
27175  #include <sys/types.h>
27176 #include <sys/socket.h>
27177 #include <netinet/in.h>
27178 int
27179 main ()
27180 {
27181 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
27182  0;
27183   ;
27184   return 0;
27185 }
27186 _ACEOF
27187 rm -f conftest.$ac_objext conftest$ac_exeext
27188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27189   (eval $ac_link) 2>conftest.er1
27190   ac_status=$?
27191   grep -v '^ *+' conftest.er1 >conftest.err
27192   rm -f conftest.er1
27193   cat conftest.err >&5
27194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195   (exit $ac_status); } &&
27196          { ac_try='test -z "$ac_c_werror_flag"
27197                          || test ! -s conftest.err'
27198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199   (eval $ac_try) 2>&5
27200   ac_status=$?
27201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202   (exit $ac_status); }; } &&
27203          { ac_try='test -s conftest$ac_exeext'
27204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205   (eval $ac_try) 2>&5
27206   ac_status=$?
27207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208   (exit $ac_status); }; }; then
27209   ac_cv_ipv6_support=yes
27210 else
27211   echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27213
27214 ac_cv_ipv6_support=no
27215 fi
27216 rm -f conftest.err conftest.$ac_objext \
27217       conftest$ac_exeext conftest.$ac_ext
27218 fi
27219 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
27220 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
27221
27222 if test "$ac_cv_ipv6_support" = yes; then
27223
27224 cat >>confdefs.h <<\_ACEOF
27225 #define HAVE_IPV6 1
27226 _ACEOF
27227
27228 fi
27229
27230
27231
27232
27233 for ac_func in strftime
27234 do
27235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27236 echo "$as_me:$LINENO: checking for $ac_func" >&5
27237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27238 if eval "test \"\${$as_ac_var+set}\" = set"; then
27239   echo $ECHO_N "(cached) $ECHO_C" >&6
27240 else
27241   cat >conftest.$ac_ext <<_ACEOF
27242 /* confdefs.h.  */
27243 _ACEOF
27244 cat confdefs.h >>conftest.$ac_ext
27245 cat >>conftest.$ac_ext <<_ACEOF
27246 /* end confdefs.h.  */
27247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27249 #define $ac_func innocuous_$ac_func
27250
27251 /* System header to define __stub macros and hopefully few prototypes,
27252     which can conflict with char $ac_func (); below.
27253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27254     <limits.h> exists even on freestanding compilers.  */
27255
27256 #ifdef __STDC__
27257 # include <limits.h>
27258 #else
27259 # include <assert.h>
27260 #endif
27261
27262 #undef $ac_func
27263
27264 /* Override any gcc2 internal prototype to avoid an error.  */
27265 #ifdef __cplusplus
27266 extern "C"
27267 {
27268 #endif
27269 /* We use char because int might match the return type of a gcc2
27270    builtin and then its argument prototype would still apply.  */
27271 char $ac_func ();
27272 /* The GNU C library defines this for functions which it implements
27273     to always fail with ENOSYS.  Some functions are actually named
27274     something starting with __ and the normal name is an alias.  */
27275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27276 choke me
27277 #else
27278 char (*f) () = $ac_func;
27279 #endif
27280 #ifdef __cplusplus
27281 }
27282 #endif
27283
27284 int
27285 main ()
27286 {
27287 return f != $ac_func;
27288   ;
27289   return 0;
27290 }
27291 _ACEOF
27292 rm -f conftest.$ac_objext conftest$ac_exeext
27293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27294   (eval $ac_link) 2>conftest.er1
27295   ac_status=$?
27296   grep -v '^ *+' conftest.er1 >conftest.err
27297   rm -f conftest.er1
27298   cat conftest.err >&5
27299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300   (exit $ac_status); } &&
27301          { ac_try='test -z "$ac_c_werror_flag"
27302                          || test ! -s conftest.err'
27303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27304   (eval $ac_try) 2>&5
27305   ac_status=$?
27306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307   (exit $ac_status); }; } &&
27308          { ac_try='test -s conftest$ac_exeext'
27309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27310   (eval $ac_try) 2>&5
27311   ac_status=$?
27312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313   (exit $ac_status); }; }; then
27314   eval "$as_ac_var=yes"
27315 else
27316   echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27318
27319 eval "$as_ac_var=no"
27320 fi
27321 rm -f conftest.err conftest.$ac_objext \
27322       conftest$ac_exeext conftest.$ac_ext
27323 fi
27324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27326 if test `eval echo '${'$as_ac_var'}'` = yes; then
27327   cat >>confdefs.h <<_ACEOF
27328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27329 _ACEOF
27330
27331 else
27332   # strftime is in -lintl on SCO UNIX.
27333 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27334 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27335 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27336   echo $ECHO_N "(cached) $ECHO_C" >&6
27337 else
27338   ac_check_lib_save_LIBS=$LIBS
27339 LIBS="-lintl  $LIBS"
27340 cat >conftest.$ac_ext <<_ACEOF
27341 /* confdefs.h.  */
27342 _ACEOF
27343 cat confdefs.h >>conftest.$ac_ext
27344 cat >>conftest.$ac_ext <<_ACEOF
27345 /* end confdefs.h.  */
27346
27347 /* Override any gcc2 internal prototype to avoid an error.  */
27348 #ifdef __cplusplus
27349 extern "C"
27350 #endif
27351 /* We use char because int might match the return type of a gcc2
27352    builtin and then its argument prototype would still apply.  */
27353 char strftime ();
27354 int
27355 main ()
27356 {
27357 strftime ();
27358   ;
27359   return 0;
27360 }
27361 _ACEOF
27362 rm -f conftest.$ac_objext conftest$ac_exeext
27363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27364   (eval $ac_link) 2>conftest.er1
27365   ac_status=$?
27366   grep -v '^ *+' conftest.er1 >conftest.err
27367   rm -f conftest.er1
27368   cat conftest.err >&5
27369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370   (exit $ac_status); } &&
27371          { ac_try='test -z "$ac_c_werror_flag"
27372                          || test ! -s conftest.err'
27373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27374   (eval $ac_try) 2>&5
27375   ac_status=$?
27376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377   (exit $ac_status); }; } &&
27378          { ac_try='test -s conftest$ac_exeext'
27379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27380   (eval $ac_try) 2>&5
27381   ac_status=$?
27382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383   (exit $ac_status); }; }; then
27384   ac_cv_lib_intl_strftime=yes
27385 else
27386   echo "$as_me: failed program was:" >&5
27387 sed 's/^/| /' conftest.$ac_ext >&5
27388
27389 ac_cv_lib_intl_strftime=no
27390 fi
27391 rm -f conftest.err conftest.$ac_objext \
27392       conftest$ac_exeext conftest.$ac_ext
27393 LIBS=$ac_check_lib_save_LIBS
27394 fi
27395 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27396 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
27397 if test $ac_cv_lib_intl_strftime = yes; then
27398   cat >>confdefs.h <<\_ACEOF
27399 #define HAVE_STRFTIME 1
27400 _ACEOF
27401
27402 LIBS="-lintl $LIBS"
27403 fi
27404
27405 fi
27406 done
27407
27408
27409 for ac_func in vprintf
27410 do
27411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27412 echo "$as_me:$LINENO: checking for $ac_func" >&5
27413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27414 if eval "test \"\${$as_ac_var+set}\" = set"; then
27415   echo $ECHO_N "(cached) $ECHO_C" >&6
27416 else
27417   cat >conftest.$ac_ext <<_ACEOF
27418 /* confdefs.h.  */
27419 _ACEOF
27420 cat confdefs.h >>conftest.$ac_ext
27421 cat >>conftest.$ac_ext <<_ACEOF
27422 /* end confdefs.h.  */
27423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27425 #define $ac_func innocuous_$ac_func
27426
27427 /* System header to define __stub macros and hopefully few prototypes,
27428     which can conflict with char $ac_func (); below.
27429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27430     <limits.h> exists even on freestanding compilers.  */
27431
27432 #ifdef __STDC__
27433 # include <limits.h>
27434 #else
27435 # include <assert.h>
27436 #endif
27437
27438 #undef $ac_func
27439
27440 /* Override any gcc2 internal prototype to avoid an error.  */
27441 #ifdef __cplusplus
27442 extern "C"
27443 {
27444 #endif
27445 /* We use char because int might match the return type of a gcc2
27446    builtin and then its argument prototype would still apply.  */
27447 char $ac_func ();
27448 /* The GNU C library defines this for functions which it implements
27449     to always fail with ENOSYS.  Some functions are actually named
27450     something starting with __ and the normal name is an alias.  */
27451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27452 choke me
27453 #else
27454 char (*f) () = $ac_func;
27455 #endif
27456 #ifdef __cplusplus
27457 }
27458 #endif
27459
27460 int
27461 main ()
27462 {
27463 return f != $ac_func;
27464   ;
27465   return 0;
27466 }
27467 _ACEOF
27468 rm -f conftest.$ac_objext conftest$ac_exeext
27469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27470   (eval $ac_link) 2>conftest.er1
27471   ac_status=$?
27472   grep -v '^ *+' conftest.er1 >conftest.err
27473   rm -f conftest.er1
27474   cat conftest.err >&5
27475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476   (exit $ac_status); } &&
27477          { ac_try='test -z "$ac_c_werror_flag"
27478                          || test ! -s conftest.err'
27479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27480   (eval $ac_try) 2>&5
27481   ac_status=$?
27482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483   (exit $ac_status); }; } &&
27484          { ac_try='test -s conftest$ac_exeext'
27485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27486   (eval $ac_try) 2>&5
27487   ac_status=$?
27488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489   (exit $ac_status); }; }; then
27490   eval "$as_ac_var=yes"
27491 else
27492   echo "$as_me: failed program was:" >&5
27493 sed 's/^/| /' conftest.$ac_ext >&5
27494
27495 eval "$as_ac_var=no"
27496 fi
27497 rm -f conftest.err conftest.$ac_objext \
27498       conftest$ac_exeext conftest.$ac_ext
27499 fi
27500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27502 if test `eval echo '${'$as_ac_var'}'` = yes; then
27503   cat >>confdefs.h <<_ACEOF
27504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27505 _ACEOF
27506
27507 echo "$as_me:$LINENO: checking for _doprnt" >&5
27508 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27509 if test "${ac_cv_func__doprnt+set}" = set; then
27510   echo $ECHO_N "(cached) $ECHO_C" >&6
27511 else
27512   cat >conftest.$ac_ext <<_ACEOF
27513 /* confdefs.h.  */
27514 _ACEOF
27515 cat confdefs.h >>conftest.$ac_ext
27516 cat >>conftest.$ac_ext <<_ACEOF
27517 /* end confdefs.h.  */
27518 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27520 #define _doprnt innocuous__doprnt
27521
27522 /* System header to define __stub macros and hopefully few prototypes,
27523     which can conflict with char _doprnt (); below.
27524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27525     <limits.h> exists even on freestanding compilers.  */
27526
27527 #ifdef __STDC__
27528 # include <limits.h>
27529 #else
27530 # include <assert.h>
27531 #endif
27532
27533 #undef _doprnt
27534
27535 /* Override any gcc2 internal prototype to avoid an error.  */
27536 #ifdef __cplusplus
27537 extern "C"
27538 {
27539 #endif
27540 /* We use char because int might match the return type of a gcc2
27541    builtin and then its argument prototype would still apply.  */
27542 char _doprnt ();
27543 /* The GNU C library defines this for functions which it implements
27544     to always fail with ENOSYS.  Some functions are actually named
27545     something starting with __ and the normal name is an alias.  */
27546 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27547 choke me
27548 #else
27549 char (*f) () = _doprnt;
27550 #endif
27551 #ifdef __cplusplus
27552 }
27553 #endif
27554
27555 int
27556 main ()
27557 {
27558 return f != _doprnt;
27559   ;
27560   return 0;
27561 }
27562 _ACEOF
27563 rm -f conftest.$ac_objext conftest$ac_exeext
27564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27565   (eval $ac_link) 2>conftest.er1
27566   ac_status=$?
27567   grep -v '^ *+' conftest.er1 >conftest.err
27568   rm -f conftest.er1
27569   cat conftest.err >&5
27570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571   (exit $ac_status); } &&
27572          { ac_try='test -z "$ac_c_werror_flag"
27573                          || test ! -s conftest.err'
27574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27575   (eval $ac_try) 2>&5
27576   ac_status=$?
27577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578   (exit $ac_status); }; } &&
27579          { ac_try='test -s conftest$ac_exeext'
27580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27581   (eval $ac_try) 2>&5
27582   ac_status=$?
27583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584   (exit $ac_status); }; }; then
27585   ac_cv_func__doprnt=yes
27586 else
27587   echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.$ac_ext >&5
27589
27590 ac_cv_func__doprnt=no
27591 fi
27592 rm -f conftest.err conftest.$ac_objext \
27593       conftest$ac_exeext conftest.$ac_ext
27594 fi
27595 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27596 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27597 if test $ac_cv_func__doprnt = yes; then
27598
27599 cat >>confdefs.h <<\_ACEOF
27600 #define HAVE_DOPRNT 1
27601 _ACEOF
27602
27603 fi
27604
27605 fi
27606 done
27607
27608
27609 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27610 # for constant arguments.  Useless!
27611 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27612 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27613 if test "${ac_cv_working_alloca_h+set}" = set; then
27614   echo $ECHO_N "(cached) $ECHO_C" >&6
27615 else
27616   cat >conftest.$ac_ext <<_ACEOF
27617 /* confdefs.h.  */
27618 _ACEOF
27619 cat confdefs.h >>conftest.$ac_ext
27620 cat >>conftest.$ac_ext <<_ACEOF
27621 /* end confdefs.h.  */
27622 #include <alloca.h>
27623 int
27624 main ()
27625 {
27626 char *p = (char *) alloca (2 * sizeof (int));
27627   ;
27628   return 0;
27629 }
27630 _ACEOF
27631 rm -f conftest.$ac_objext conftest$ac_exeext
27632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27633   (eval $ac_link) 2>conftest.er1
27634   ac_status=$?
27635   grep -v '^ *+' conftest.er1 >conftest.err
27636   rm -f conftest.er1
27637   cat conftest.err >&5
27638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639   (exit $ac_status); } &&
27640          { ac_try='test -z "$ac_c_werror_flag"
27641                          || test ! -s conftest.err'
27642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27643   (eval $ac_try) 2>&5
27644   ac_status=$?
27645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646   (exit $ac_status); }; } &&
27647          { ac_try='test -s conftest$ac_exeext'
27648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27649   (eval $ac_try) 2>&5
27650   ac_status=$?
27651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652   (exit $ac_status); }; }; then
27653   ac_cv_working_alloca_h=yes
27654 else
27655   echo "$as_me: failed program was:" >&5
27656 sed 's/^/| /' conftest.$ac_ext >&5
27657
27658 ac_cv_working_alloca_h=no
27659 fi
27660 rm -f conftest.err conftest.$ac_objext \
27661       conftest$ac_exeext conftest.$ac_ext
27662 fi
27663 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27664 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27665 if test $ac_cv_working_alloca_h = yes; then
27666
27667 cat >>confdefs.h <<\_ACEOF
27668 #define HAVE_ALLOCA_H 1
27669 _ACEOF
27670
27671 fi
27672
27673 echo "$as_me:$LINENO: checking for alloca" >&5
27674 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27675 if test "${ac_cv_func_alloca_works+set}" = set; then
27676   echo $ECHO_N "(cached) $ECHO_C" >&6
27677 else
27678   cat >conftest.$ac_ext <<_ACEOF
27679 /* confdefs.h.  */
27680 _ACEOF
27681 cat confdefs.h >>conftest.$ac_ext
27682 cat >>conftest.$ac_ext <<_ACEOF
27683 /* end confdefs.h.  */
27684 #ifdef __GNUC__
27685 # define alloca __builtin_alloca
27686 #else
27687 # ifdef _MSC_VER
27688 #  include <malloc.h>
27689 #  define alloca _alloca
27690 # else
27691 #  if HAVE_ALLOCA_H
27692 #   include <alloca.h>
27693 #  else
27694 #   ifdef _AIX
27695  #pragma alloca
27696 #   else
27697 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27698 char *alloca ();
27699 #    endif
27700 #   endif
27701 #  endif
27702 # endif
27703 #endif
27704
27705 int
27706 main ()
27707 {
27708 char *p = (char *) alloca (1);
27709   ;
27710   return 0;
27711 }
27712 _ACEOF
27713 rm -f conftest.$ac_objext conftest$ac_exeext
27714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27715   (eval $ac_link) 2>conftest.er1
27716   ac_status=$?
27717   grep -v '^ *+' conftest.er1 >conftest.err
27718   rm -f conftest.er1
27719   cat conftest.err >&5
27720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721   (exit $ac_status); } &&
27722          { ac_try='test -z "$ac_c_werror_flag"
27723                          || test ! -s conftest.err'
27724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725   (eval $ac_try) 2>&5
27726   ac_status=$?
27727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728   (exit $ac_status); }; } &&
27729          { ac_try='test -s conftest$ac_exeext'
27730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27731   (eval $ac_try) 2>&5
27732   ac_status=$?
27733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734   (exit $ac_status); }; }; then
27735   ac_cv_func_alloca_works=yes
27736 else
27737   echo "$as_me: failed program was:" >&5
27738 sed 's/^/| /' conftest.$ac_ext >&5
27739
27740 ac_cv_func_alloca_works=no
27741 fi
27742 rm -f conftest.err conftest.$ac_objext \
27743       conftest$ac_exeext conftest.$ac_ext
27744 fi
27745 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27746 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27747
27748 if test $ac_cv_func_alloca_works = yes; then
27749
27750 cat >>confdefs.h <<\_ACEOF
27751 #define HAVE_ALLOCA 1
27752 _ACEOF
27753
27754 else
27755   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27756 # that cause trouble.  Some versions do not even contain alloca or
27757 # contain a buggy version.  If you still want to use their alloca,
27758 # use ar to extract alloca.o from them instead of compiling alloca.c.
27759
27760 ALLOCA=alloca.$ac_objext
27761
27762 cat >>confdefs.h <<\_ACEOF
27763 #define C_ALLOCA 1
27764 _ACEOF
27765
27766
27767 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27768 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27769 if test "${ac_cv_os_cray+set}" = set; then
27770   echo $ECHO_N "(cached) $ECHO_C" >&6
27771 else
27772   cat >conftest.$ac_ext <<_ACEOF
27773 /* confdefs.h.  */
27774 _ACEOF
27775 cat confdefs.h >>conftest.$ac_ext
27776 cat >>conftest.$ac_ext <<_ACEOF
27777 /* end confdefs.h.  */
27778 #if defined(CRAY) && ! defined(CRAY2)
27779 webecray
27780 #else
27781 wenotbecray
27782 #endif
27783
27784 _ACEOF
27785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27786   $EGREP "webecray" >/dev/null 2>&1; then
27787   ac_cv_os_cray=yes
27788 else
27789   ac_cv_os_cray=no
27790 fi
27791 rm -f conftest*
27792
27793 fi
27794 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27795 echo "${ECHO_T}$ac_cv_os_cray" >&6
27796 if test $ac_cv_os_cray = yes; then
27797   for ac_func in _getb67 GETB67 getb67; do
27798     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27799 echo "$as_me:$LINENO: checking for $ac_func" >&5
27800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27801 if eval "test \"\${$as_ac_var+set}\" = set"; then
27802   echo $ECHO_N "(cached) $ECHO_C" >&6
27803 else
27804   cat >conftest.$ac_ext <<_ACEOF
27805 /* confdefs.h.  */
27806 _ACEOF
27807 cat confdefs.h >>conftest.$ac_ext
27808 cat >>conftest.$ac_ext <<_ACEOF
27809 /* end confdefs.h.  */
27810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27812 #define $ac_func innocuous_$ac_func
27813
27814 /* System header to define __stub macros and hopefully few prototypes,
27815     which can conflict with char $ac_func (); below.
27816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27817     <limits.h> exists even on freestanding compilers.  */
27818
27819 #ifdef __STDC__
27820 # include <limits.h>
27821 #else
27822 # include <assert.h>
27823 #endif
27824
27825 #undef $ac_func
27826
27827 /* Override any gcc2 internal prototype to avoid an error.  */
27828 #ifdef __cplusplus
27829 extern "C"
27830 {
27831 #endif
27832 /* We use char because int might match the return type of a gcc2
27833    builtin and then its argument prototype would still apply.  */
27834 char $ac_func ();
27835 /* The GNU C library defines this for functions which it implements
27836     to always fail with ENOSYS.  Some functions are actually named
27837     something starting with __ and the normal name is an alias.  */
27838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27839 choke me
27840 #else
27841 char (*f) () = $ac_func;
27842 #endif
27843 #ifdef __cplusplus
27844 }
27845 #endif
27846
27847 int
27848 main ()
27849 {
27850 return f != $ac_func;
27851   ;
27852   return 0;
27853 }
27854 _ACEOF
27855 rm -f conftest.$ac_objext conftest$ac_exeext
27856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27857   (eval $ac_link) 2>conftest.er1
27858   ac_status=$?
27859   grep -v '^ *+' conftest.er1 >conftest.err
27860   rm -f conftest.er1
27861   cat conftest.err >&5
27862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863   (exit $ac_status); } &&
27864          { ac_try='test -z "$ac_c_werror_flag"
27865                          || test ! -s conftest.err'
27866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27867   (eval $ac_try) 2>&5
27868   ac_status=$?
27869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870   (exit $ac_status); }; } &&
27871          { ac_try='test -s conftest$ac_exeext'
27872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27873   (eval $ac_try) 2>&5
27874   ac_status=$?
27875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); }; }; then
27877   eval "$as_ac_var=yes"
27878 else
27879   echo "$as_me: failed program was:" >&5
27880 sed 's/^/| /' conftest.$ac_ext >&5
27881
27882 eval "$as_ac_var=no"
27883 fi
27884 rm -f conftest.err conftest.$ac_objext \
27885       conftest$ac_exeext conftest.$ac_ext
27886 fi
27887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27889 if test `eval echo '${'$as_ac_var'}'` = yes; then
27890
27891 cat >>confdefs.h <<_ACEOF
27892 #define CRAY_STACKSEG_END $ac_func
27893 _ACEOF
27894
27895     break
27896 fi
27897
27898   done
27899 fi
27900
27901 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27902 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27903 if test "${ac_cv_c_stack_direction+set}" = set; then
27904   echo $ECHO_N "(cached) $ECHO_C" >&6
27905 else
27906   if test "$cross_compiling" = yes; then
27907   ac_cv_c_stack_direction=0
27908 else
27909   cat >conftest.$ac_ext <<_ACEOF
27910 /* confdefs.h.  */
27911 _ACEOF
27912 cat confdefs.h >>conftest.$ac_ext
27913 cat >>conftest.$ac_ext <<_ACEOF
27914 /* end confdefs.h.  */
27915 int
27916 find_stack_direction ()
27917 {
27918   static char *addr = 0;
27919   auto char dummy;
27920   if (addr == 0)
27921     {
27922       addr = &dummy;
27923       return find_stack_direction ();
27924     }
27925   else
27926     return (&dummy > addr) ? 1 : -1;
27927 }
27928
27929 int
27930 main ()
27931 {
27932   exit (find_stack_direction () < 0);
27933 }
27934 _ACEOF
27935 rm -f conftest$ac_exeext
27936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27937   (eval $ac_link) 2>&5
27938   ac_status=$?
27939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27942   (eval $ac_try) 2>&5
27943   ac_status=$?
27944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945   (exit $ac_status); }; }; then
27946   ac_cv_c_stack_direction=1
27947 else
27948   echo "$as_me: program exited with status $ac_status" >&5
27949 echo "$as_me: failed program was:" >&5
27950 sed 's/^/| /' conftest.$ac_ext >&5
27951
27952 ( exit $ac_status )
27953 ac_cv_c_stack_direction=-1
27954 fi
27955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27956 fi
27957 fi
27958 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27959 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27960
27961 cat >>confdefs.h <<_ACEOF
27962 #define STACK_DIRECTION $ac_cv_c_stack_direction
27963 _ACEOF
27964
27965
27966 fi
27967
27968 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
27969 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
27970 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
27971 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
27972   echo $ECHO_N "(cached) $ECHO_C" >&6
27973 else
27974   ac_check_lib_save_LIBS=$LIBS
27975 LIBS="-lsun  $LIBS"
27976 cat >conftest.$ac_ext <<_ACEOF
27977 /* confdefs.h.  */
27978 _ACEOF
27979 cat confdefs.h >>conftest.$ac_ext
27980 cat >>conftest.$ac_ext <<_ACEOF
27981 /* end confdefs.h.  */
27982
27983 /* Override any gcc2 internal prototype to avoid an error.  */
27984 #ifdef __cplusplus
27985 extern "C"
27986 #endif
27987 /* We use char because int might match the return type of a gcc2
27988    builtin and then its argument prototype would still apply.  */
27989 char getmntent ();
27990 int
27991 main ()
27992 {
27993 getmntent ();
27994   ;
27995   return 0;
27996 }
27997 _ACEOF
27998 rm -f conftest.$ac_objext conftest$ac_exeext
27999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28000   (eval $ac_link) 2>conftest.er1
28001   ac_status=$?
28002   grep -v '^ *+' conftest.er1 >conftest.err
28003   rm -f conftest.er1
28004   cat conftest.err >&5
28005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006   (exit $ac_status); } &&
28007          { ac_try='test -z "$ac_c_werror_flag"
28008                          || test ! -s conftest.err'
28009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28010   (eval $ac_try) 2>&5
28011   ac_status=$?
28012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28013   (exit $ac_status); }; } &&
28014          { ac_try='test -s conftest$ac_exeext'
28015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28016   (eval $ac_try) 2>&5
28017   ac_status=$?
28018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019   (exit $ac_status); }; }; then
28020   ac_cv_lib_sun_getmntent=yes
28021 else
28022   echo "$as_me: failed program was:" >&5
28023 sed 's/^/| /' conftest.$ac_ext >&5
28024
28025 ac_cv_lib_sun_getmntent=no
28026 fi
28027 rm -f conftest.err conftest.$ac_objext \
28028       conftest$ac_exeext conftest.$ac_ext
28029 LIBS=$ac_check_lib_save_LIBS
28030 fi
28031 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28032 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28033 if test $ac_cv_lib_sun_getmntent = yes; then
28034   LIBS="-lsun $LIBS"
28035 else
28036   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28037 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28038 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28039   echo $ECHO_N "(cached) $ECHO_C" >&6
28040 else
28041   ac_check_lib_save_LIBS=$LIBS
28042 LIBS="-lseq  $LIBS"
28043 cat >conftest.$ac_ext <<_ACEOF
28044 /* confdefs.h.  */
28045 _ACEOF
28046 cat confdefs.h >>conftest.$ac_ext
28047 cat >>conftest.$ac_ext <<_ACEOF
28048 /* end confdefs.h.  */
28049
28050 /* Override any gcc2 internal prototype to avoid an error.  */
28051 #ifdef __cplusplus
28052 extern "C"
28053 #endif
28054 /* We use char because int might match the return type of a gcc2
28055    builtin and then its argument prototype would still apply.  */
28056 char getmntent ();
28057 int
28058 main ()
28059 {
28060 getmntent ();
28061   ;
28062   return 0;
28063 }
28064 _ACEOF
28065 rm -f conftest.$ac_objext conftest$ac_exeext
28066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28067   (eval $ac_link) 2>conftest.er1
28068   ac_status=$?
28069   grep -v '^ *+' conftest.er1 >conftest.err
28070   rm -f conftest.er1
28071   cat conftest.err >&5
28072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073   (exit $ac_status); } &&
28074          { ac_try='test -z "$ac_c_werror_flag"
28075                          || test ! -s conftest.err'
28076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28077   (eval $ac_try) 2>&5
28078   ac_status=$?
28079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080   (exit $ac_status); }; } &&
28081          { ac_try='test -s conftest$ac_exeext'
28082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28083   (eval $ac_try) 2>&5
28084   ac_status=$?
28085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086   (exit $ac_status); }; }; then
28087   ac_cv_lib_seq_getmntent=yes
28088 else
28089   echo "$as_me: failed program was:" >&5
28090 sed 's/^/| /' conftest.$ac_ext >&5
28091
28092 ac_cv_lib_seq_getmntent=no
28093 fi
28094 rm -f conftest.err conftest.$ac_objext \
28095       conftest$ac_exeext conftest.$ac_ext
28096 LIBS=$ac_check_lib_save_LIBS
28097 fi
28098 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28099 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28100 if test $ac_cv_lib_seq_getmntent = yes; then
28101   LIBS="-lseq $LIBS"
28102 else
28103   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28104 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28105 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28106   echo $ECHO_N "(cached) $ECHO_C" >&6
28107 else
28108   ac_check_lib_save_LIBS=$LIBS
28109 LIBS="-lgen  $LIBS"
28110 cat >conftest.$ac_ext <<_ACEOF
28111 /* confdefs.h.  */
28112 _ACEOF
28113 cat confdefs.h >>conftest.$ac_ext
28114 cat >>conftest.$ac_ext <<_ACEOF
28115 /* end confdefs.h.  */
28116
28117 /* Override any gcc2 internal prototype to avoid an error.  */
28118 #ifdef __cplusplus
28119 extern "C"
28120 #endif
28121 /* We use char because int might match the return type of a gcc2
28122    builtin and then its argument prototype would still apply.  */
28123 char getmntent ();
28124 int
28125 main ()
28126 {
28127 getmntent ();
28128   ;
28129   return 0;
28130 }
28131 _ACEOF
28132 rm -f conftest.$ac_objext conftest$ac_exeext
28133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28134   (eval $ac_link) 2>conftest.er1
28135   ac_status=$?
28136   grep -v '^ *+' conftest.er1 >conftest.err
28137   rm -f conftest.er1
28138   cat conftest.err >&5
28139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28140   (exit $ac_status); } &&
28141          { ac_try='test -z "$ac_c_werror_flag"
28142                          || test ! -s conftest.err'
28143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28144   (eval $ac_try) 2>&5
28145   ac_status=$?
28146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147   (exit $ac_status); }; } &&
28148          { ac_try='test -s conftest$ac_exeext'
28149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28150   (eval $ac_try) 2>&5
28151   ac_status=$?
28152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153   (exit $ac_status); }; }; then
28154   ac_cv_lib_gen_getmntent=yes
28155 else
28156   echo "$as_me: failed program was:" >&5
28157 sed 's/^/| /' conftest.$ac_ext >&5
28158
28159 ac_cv_lib_gen_getmntent=no
28160 fi
28161 rm -f conftest.err conftest.$ac_objext \
28162       conftest$ac_exeext conftest.$ac_ext
28163 LIBS=$ac_check_lib_save_LIBS
28164 fi
28165 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28166 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28167 if test $ac_cv_lib_gen_getmntent = yes; then
28168   LIBS="-lgen $LIBS"
28169 fi
28170
28171 fi
28172
28173 fi
28174
28175
28176 for ac_func in getmntent
28177 do
28178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28179 echo "$as_me:$LINENO: checking for $ac_func" >&5
28180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28181 if eval "test \"\${$as_ac_var+set}\" = set"; then
28182   echo $ECHO_N "(cached) $ECHO_C" >&6
28183 else
28184   cat >conftest.$ac_ext <<_ACEOF
28185 /* confdefs.h.  */
28186 _ACEOF
28187 cat confdefs.h >>conftest.$ac_ext
28188 cat >>conftest.$ac_ext <<_ACEOF
28189 /* end confdefs.h.  */
28190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28192 #define $ac_func innocuous_$ac_func
28193
28194 /* System header to define __stub macros and hopefully few prototypes,
28195     which can conflict with char $ac_func (); below.
28196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28197     <limits.h> exists even on freestanding compilers.  */
28198
28199 #ifdef __STDC__
28200 # include <limits.h>
28201 #else
28202 # include <assert.h>
28203 #endif
28204
28205 #undef $ac_func
28206
28207 /* Override any gcc2 internal prototype to avoid an error.  */
28208 #ifdef __cplusplus
28209 extern "C"
28210 {
28211 #endif
28212 /* We use char because int might match the return type of a gcc2
28213    builtin and then its argument prototype would still apply.  */
28214 char $ac_func ();
28215 /* The GNU C library defines this for functions which it implements
28216     to always fail with ENOSYS.  Some functions are actually named
28217     something starting with __ and the normal name is an alias.  */
28218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28219 choke me
28220 #else
28221 char (*f) () = $ac_func;
28222 #endif
28223 #ifdef __cplusplus
28224 }
28225 #endif
28226
28227 int
28228 main ()
28229 {
28230 return f != $ac_func;
28231   ;
28232   return 0;
28233 }
28234 _ACEOF
28235 rm -f conftest.$ac_objext conftest$ac_exeext
28236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28237   (eval $ac_link) 2>conftest.er1
28238   ac_status=$?
28239   grep -v '^ *+' conftest.er1 >conftest.err
28240   rm -f conftest.er1
28241   cat conftest.err >&5
28242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243   (exit $ac_status); } &&
28244          { ac_try='test -z "$ac_c_werror_flag"
28245                          || test ! -s conftest.err'
28246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28247   (eval $ac_try) 2>&5
28248   ac_status=$?
28249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250   (exit $ac_status); }; } &&
28251          { ac_try='test -s conftest$ac_exeext'
28252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28253   (eval $ac_try) 2>&5
28254   ac_status=$?
28255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256   (exit $ac_status); }; }; then
28257   eval "$as_ac_var=yes"
28258 else
28259   echo "$as_me: failed program was:" >&5
28260 sed 's/^/| /' conftest.$ac_ext >&5
28261
28262 eval "$as_ac_var=no"
28263 fi
28264 rm -f conftest.err conftest.$ac_objext \
28265       conftest$ac_exeext conftest.$ac_ext
28266 fi
28267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28269 if test `eval echo '${'$as_ac_var'}'` = yes; then
28270   cat >>confdefs.h <<_ACEOF
28271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28272 _ACEOF
28273
28274 fi
28275 done
28276
28277
28278 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28279 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28280 if test "${ac_cv_func_closedir_void+set}" = set; then
28281   echo $ECHO_N "(cached) $ECHO_C" >&6
28282 else
28283   if test "$cross_compiling" = yes; then
28284   ac_cv_func_closedir_void=yes
28285 else
28286   cat >conftest.$ac_ext <<_ACEOF
28287 /* confdefs.h.  */
28288 _ACEOF
28289 cat confdefs.h >>conftest.$ac_ext
28290 cat >>conftest.$ac_ext <<_ACEOF
28291 /* end confdefs.h.  */
28292 $ac_includes_default
28293 #include <$ac_header_dirent>
28294 #ifndef __cplusplus
28295 int closedir ();
28296 #endif
28297
28298 int
28299 main ()
28300 {
28301 exit (closedir (opendir (".")) != 0);
28302   ;
28303   return 0;
28304 }
28305 _ACEOF
28306 rm -f conftest$ac_exeext
28307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28308   (eval $ac_link) 2>&5
28309   ac_status=$?
28310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28313   (eval $ac_try) 2>&5
28314   ac_status=$?
28315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316   (exit $ac_status); }; }; then
28317   ac_cv_func_closedir_void=no
28318 else
28319   echo "$as_me: program exited with status $ac_status" >&5
28320 echo "$as_me: failed program was:" >&5
28321 sed 's/^/| /' conftest.$ac_ext >&5
28322
28323 ( exit $ac_status )
28324 ac_cv_func_closedir_void=yes
28325 fi
28326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28327 fi
28328 fi
28329 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28330 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28331 if test $ac_cv_func_closedir_void = yes; then
28332
28333 cat >>confdefs.h <<\_ACEOF
28334 #define CLOSEDIR_VOID 1
28335 _ACEOF
28336
28337 fi
28338
28339 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28340 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28341 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28342   echo $ECHO_N "(cached) $ECHO_C" >&6
28343 else
28344   if test "$cross_compiling" = yes; then
28345   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28346 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28347    { (exit 1); exit 1; }; }
28348 else
28349   cat >conftest.$ac_ext <<_ACEOF
28350 /* confdefs.h.  */
28351 _ACEOF
28352 cat confdefs.h >>conftest.$ac_ext
28353 cat >>conftest.$ac_ext <<_ACEOF
28354 /* end confdefs.h.  */
28355 #if HAVE_UNISTD_H
28356 # include <unistd.h>
28357 #endif
28358
28359 int
28360 main ()
28361 {
28362 /* If this system has a BSD-style setpgrp which takes arguments,
28363   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28364   exit successfully. */
28365   exit (setpgrp (1,1) == -1 ? 0 : 1);
28366   ;
28367   return 0;
28368 }
28369 _ACEOF
28370 rm -f conftest$ac_exeext
28371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28372   (eval $ac_link) 2>&5
28373   ac_status=$?
28374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28377   (eval $ac_try) 2>&5
28378   ac_status=$?
28379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380   (exit $ac_status); }; }; then
28381   ac_cv_func_setpgrp_void=no
28382 else
28383   echo "$as_me: program exited with status $ac_status" >&5
28384 echo "$as_me: failed program was:" >&5
28385 sed 's/^/| /' conftest.$ac_ext >&5
28386
28387 ( exit $ac_status )
28388 ac_cv_func_setpgrp_void=yes
28389 fi
28390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28391 fi
28392 fi
28393 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28394 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
28395 if test $ac_cv_func_setpgrp_void = yes; then
28396
28397 cat >>confdefs.h <<\_ACEOF
28398 #define SETPGRP_VOID 1
28399 _ACEOF
28400
28401 fi
28402                       # AC_FUNC_FNMATCH    dnl use local version
28403
28404
28405 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
28406 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
28407 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
28408   echo $ECHO_N "(cached) $ECHO_C" >&6
28409 else
28410   ac_check_lib_save_LIBS=$LIBS
28411 LIBS="-lxpg4  $LIBS"
28412 cat >conftest.$ac_ext <<_ACEOF
28413 /* confdefs.h.  */
28414 _ACEOF
28415 cat confdefs.h >>conftest.$ac_ext
28416 cat >>conftest.$ac_ext <<_ACEOF
28417 /* end confdefs.h.  */
28418
28419 /* Override any gcc2 internal prototype to avoid an error.  */
28420 #ifdef __cplusplus
28421 extern "C"
28422 #endif
28423 /* We use char because int might match the return type of a gcc2
28424    builtin and then its argument prototype would still apply.  */
28425 char setlocale ();
28426 int
28427 main ()
28428 {
28429 setlocale ();
28430   ;
28431   return 0;
28432 }
28433 _ACEOF
28434 rm -f conftest.$ac_objext conftest$ac_exeext
28435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28436   (eval $ac_link) 2>conftest.er1
28437   ac_status=$?
28438   grep -v '^ *+' conftest.er1 >conftest.err
28439   rm -f conftest.er1
28440   cat conftest.err >&5
28441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442   (exit $ac_status); } &&
28443          { ac_try='test -z "$ac_c_werror_flag"
28444                          || test ! -s conftest.err'
28445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28446   (eval $ac_try) 2>&5
28447   ac_status=$?
28448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449   (exit $ac_status); }; } &&
28450          { ac_try='test -s conftest$ac_exeext'
28451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28452   (eval $ac_try) 2>&5
28453   ac_status=$?
28454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28455   (exit $ac_status); }; }; then
28456   ac_cv_lib_xpg4_setlocale=yes
28457 else
28458   echo "$as_me: failed program was:" >&5
28459 sed 's/^/| /' conftest.$ac_ext >&5
28460
28461 ac_cv_lib_xpg4_setlocale=no
28462 fi
28463 rm -f conftest.err conftest.$ac_objext \
28464       conftest$ac_exeext conftest.$ac_ext
28465 LIBS=$ac_check_lib_save_LIBS
28466 fi
28467 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
28468 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
28469 if test $ac_cv_lib_xpg4_setlocale = yes; then
28470   LIBS="$LIBS -lxpg4"
28471 fi
28472
28473 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28474 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
28475 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28476   echo $ECHO_N "(cached) $ECHO_C" >&6
28477 else
28478   ac_check_lib_save_LIBS=$LIBS
28479 LIBS="-lintl  $LIBS"
28480 cat >conftest.$ac_ext <<_ACEOF
28481 /* confdefs.h.  */
28482 _ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h.  */
28486
28487 /* Override any gcc2 internal prototype to avoid an error.  */
28488 #ifdef __cplusplus
28489 extern "C"
28490 #endif
28491 /* We use char because int might match the return type of a gcc2
28492    builtin and then its argument prototype would still apply.  */
28493 char gettext ();
28494 int
28495 main ()
28496 {
28497 gettext ();
28498   ;
28499   return 0;
28500 }
28501 _ACEOF
28502 rm -f conftest.$ac_objext conftest$ac_exeext
28503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28504   (eval $ac_link) 2>conftest.er1
28505   ac_status=$?
28506   grep -v '^ *+' conftest.er1 >conftest.err
28507   rm -f conftest.er1
28508   cat conftest.err >&5
28509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510   (exit $ac_status); } &&
28511          { ac_try='test -z "$ac_c_werror_flag"
28512                          || test ! -s conftest.err'
28513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28514   (eval $ac_try) 2>&5
28515   ac_status=$?
28516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517   (exit $ac_status); }; } &&
28518          { ac_try='test -s conftest$ac_exeext'
28519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28520   (eval $ac_try) 2>&5
28521   ac_status=$?
28522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523   (exit $ac_status); }; }; then
28524   ac_cv_lib_intl_gettext=yes
28525 else
28526   echo "$as_me: failed program was:" >&5
28527 sed 's/^/| /' conftest.$ac_ext >&5
28528
28529 ac_cv_lib_intl_gettext=no
28530 fi
28531 rm -f conftest.err conftest.$ac_objext \
28532       conftest$ac_exeext conftest.$ac_ext
28533 LIBS=$ac_check_lib_save_LIBS
28534 fi
28535 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28536 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
28537 if test $ac_cv_lib_intl_gettext = yes; then
28538   LIBS="$LIBS -lintl"
28539 fi
28540
28541
28542
28543
28544 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28545 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
28546 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28547   echo $ECHO_N "(cached) $ECHO_C" >&6
28548 else
28549   ac_check_lib_save_LIBS=$LIBS
28550 LIBS="-lsun  $LIBS"
28551 cat >conftest.$ac_ext <<_ACEOF
28552 /* confdefs.h.  */
28553 _ACEOF
28554 cat confdefs.h >>conftest.$ac_ext
28555 cat >>conftest.$ac_ext <<_ACEOF
28556 /* end confdefs.h.  */
28557
28558 /* Override any gcc2 internal prototype to avoid an error.  */
28559 #ifdef __cplusplus
28560 extern "C"
28561 #endif
28562 /* We use char because int might match the return type of a gcc2
28563    builtin and then its argument prototype would still apply.  */
28564 char getpwnam ();
28565 int
28566 main ()
28567 {
28568 getpwnam ();
28569   ;
28570   return 0;
28571 }
28572 _ACEOF
28573 rm -f conftest.$ac_objext conftest$ac_exeext
28574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28575   (eval $ac_link) 2>conftest.er1
28576   ac_status=$?
28577   grep -v '^ *+' conftest.er1 >conftest.err
28578   rm -f conftest.er1
28579   cat conftest.err >&5
28580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581   (exit $ac_status); } &&
28582          { ac_try='test -z "$ac_c_werror_flag"
28583                          || test ! -s conftest.err'
28584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28585   (eval $ac_try) 2>&5
28586   ac_status=$?
28587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588   (exit $ac_status); }; } &&
28589          { ac_try='test -s conftest$ac_exeext'
28590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28591   (eval $ac_try) 2>&5
28592   ac_status=$?
28593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594   (exit $ac_status); }; }; then
28595   ac_cv_lib_sun_getpwnam=yes
28596 else
28597   echo "$as_me: failed program was:" >&5
28598 sed 's/^/| /' conftest.$ac_ext >&5
28599
28600 ac_cv_lib_sun_getpwnam=no
28601 fi
28602 rm -f conftest.err conftest.$ac_objext \
28603       conftest$ac_exeext conftest.$ac_ext
28604 LIBS=$ac_check_lib_save_LIBS
28605 fi
28606 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28607 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
28608 if test $ac_cv_lib_sun_getpwnam = yes; then
28609   cat >>confdefs.h <<_ACEOF
28610 #define HAVE_LIBSUN 1
28611 _ACEOF
28612
28613   LIBS="-lsun $LIBS"
28614
28615 fi
28616
28617
28618
28619 for ac_header in zlib.h
28620 do
28621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28623   echo "$as_me:$LINENO: checking for $ac_header" >&5
28624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28626   echo $ECHO_N "(cached) $ECHO_C" >&6
28627 fi
28628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28630 else
28631   # Is the header compilable?
28632 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28634 cat >conftest.$ac_ext <<_ACEOF
28635 /* confdefs.h.  */
28636 _ACEOF
28637 cat confdefs.h >>conftest.$ac_ext
28638 cat >>conftest.$ac_ext <<_ACEOF
28639 /* end confdefs.h.  */
28640 $ac_includes_default
28641 #include <$ac_header>
28642 _ACEOF
28643 rm -f conftest.$ac_objext
28644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28645   (eval $ac_compile) 2>conftest.er1
28646   ac_status=$?
28647   grep -v '^ *+' conftest.er1 >conftest.err
28648   rm -f conftest.er1
28649   cat conftest.err >&5
28650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651   (exit $ac_status); } &&
28652          { ac_try='test -z "$ac_c_werror_flag"
28653                          || test ! -s conftest.err'
28654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28655   (eval $ac_try) 2>&5
28656   ac_status=$?
28657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658   (exit $ac_status); }; } &&
28659          { ac_try='test -s conftest.$ac_objext'
28660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28661   (eval $ac_try) 2>&5
28662   ac_status=$?
28663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664   (exit $ac_status); }; }; then
28665   ac_header_compiler=yes
28666 else
28667   echo "$as_me: failed program was:" >&5
28668 sed 's/^/| /' conftest.$ac_ext >&5
28669
28670 ac_header_compiler=no
28671 fi
28672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28674 echo "${ECHO_T}$ac_header_compiler" >&6
28675
28676 # Is the header present?
28677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28679 cat >conftest.$ac_ext <<_ACEOF
28680 /* confdefs.h.  */
28681 _ACEOF
28682 cat confdefs.h >>conftest.$ac_ext
28683 cat >>conftest.$ac_ext <<_ACEOF
28684 /* end confdefs.h.  */
28685 #include <$ac_header>
28686 _ACEOF
28687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28688   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28689   ac_status=$?
28690   grep -v '^ *+' conftest.er1 >conftest.err
28691   rm -f conftest.er1
28692   cat conftest.err >&5
28693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694   (exit $ac_status); } >/dev/null; then
28695   if test -s conftest.err; then
28696     ac_cpp_err=$ac_c_preproc_warn_flag
28697     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28698   else
28699     ac_cpp_err=
28700   fi
28701 else
28702   ac_cpp_err=yes
28703 fi
28704 if test -z "$ac_cpp_err"; then
28705   ac_header_preproc=yes
28706 else
28707   echo "$as_me: failed program was:" >&5
28708 sed 's/^/| /' conftest.$ac_ext >&5
28709
28710   ac_header_preproc=no
28711 fi
28712 rm -f conftest.err conftest.$ac_ext
28713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28714 echo "${ECHO_T}$ac_header_preproc" >&6
28715
28716 # So?  What about this header?
28717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28718   yes:no: )
28719     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28723     ac_header_preproc=yes
28724     ;;
28725   no:yes:* )
28726     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28728     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28729 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28730     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28732     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28733 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28736     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28738     (
28739       cat <<\_ASBOX
28740 ## ------------------------------------------ ##
28741 ## Report this to the AC_PACKAGE_NAME lists.  ##
28742 ## ------------------------------------------ ##
28743 _ASBOX
28744     ) |
28745       sed "s/^/$as_me: WARNING:     /" >&2
28746     ;;
28747 esac
28748 echo "$as_me:$LINENO: checking for $ac_header" >&5
28749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28751   echo $ECHO_N "(cached) $ECHO_C" >&6
28752 else
28753   eval "$as_ac_Header=\$ac_header_preproc"
28754 fi
28755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28757
28758 fi
28759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28760   cat >>confdefs.h <<_ACEOF
28761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28762 _ACEOF
28763
28764 fi
28765
28766 done
28767
28768 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28769 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
28770 if test "${ac_cv_lib_z_deflate+set}" = set; then
28771   echo $ECHO_N "(cached) $ECHO_C" >&6
28772 else
28773   ac_check_lib_save_LIBS=$LIBS
28774 LIBS="-lz  $LIBS"
28775 cat >conftest.$ac_ext <<_ACEOF
28776 /* confdefs.h.  */
28777 _ACEOF
28778 cat confdefs.h >>conftest.$ac_ext
28779 cat >>conftest.$ac_ext <<_ACEOF
28780 /* end confdefs.h.  */
28781
28782 /* Override any gcc2 internal prototype to avoid an error.  */
28783 #ifdef __cplusplus
28784 extern "C"
28785 #endif
28786 /* We use char because int might match the return type of a gcc2
28787    builtin and then its argument prototype would still apply.  */
28788 char deflate ();
28789 int
28790 main ()
28791 {
28792 deflate ();
28793   ;
28794   return 0;
28795 }
28796 _ACEOF
28797 rm -f conftest.$ac_objext conftest$ac_exeext
28798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28799   (eval $ac_link) 2>conftest.er1
28800   ac_status=$?
28801   grep -v '^ *+' conftest.er1 >conftest.err
28802   rm -f conftest.er1
28803   cat conftest.err >&5
28804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805   (exit $ac_status); } &&
28806          { ac_try='test -z "$ac_c_werror_flag"
28807                          || test ! -s conftest.err'
28808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28809   (eval $ac_try) 2>&5
28810   ac_status=$?
28811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812   (exit $ac_status); }; } &&
28813          { ac_try='test -s conftest$ac_exeext'
28814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28815   (eval $ac_try) 2>&5
28816   ac_status=$?
28817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818   (exit $ac_status); }; }; then
28819   ac_cv_lib_z_deflate=yes
28820 else
28821   echo "$as_me: failed program was:" >&5
28822 sed 's/^/| /' conftest.$ac_ext >&5
28823
28824 ac_cv_lib_z_deflate=no
28825 fi
28826 rm -f conftest.err conftest.$ac_objext \
28827       conftest$ac_exeext conftest.$ac_ext
28828 LIBS=$ac_check_lib_save_LIBS
28829 fi
28830 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28831 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
28832 if test $ac_cv_lib_z_deflate = yes; then
28833   FDLIBS="-lz"
28834 fi
28835
28836 have_zlib=no
28837 if test x$FDLIBS = x-lz; then
28838   cat >>confdefs.h <<\_ACEOF
28839 #define HAVE_LIBZ 1
28840 _ACEOF
28841
28842   have_zlib=yes
28843 fi
28844
28845 #
28846 # Check for ACL libraries
28847 #
28848 have_acl=no
28849 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28850   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28851 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28852 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28853   echo $ECHO_N "(cached) $ECHO_C" >&6
28854 fi
28855 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28856 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28857 else
28858   # Is the header compilable?
28859 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
28860 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
28861 cat >conftest.$ac_ext <<_ACEOF
28862 /* confdefs.h.  */
28863 _ACEOF
28864 cat confdefs.h >>conftest.$ac_ext
28865 cat >>conftest.$ac_ext <<_ACEOF
28866 /* end confdefs.h.  */
28867 $ac_includes_default
28868 #include <sys/acl.h>
28869 _ACEOF
28870 rm -f conftest.$ac_objext
28871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28872   (eval $ac_compile) 2>conftest.er1
28873   ac_status=$?
28874   grep -v '^ *+' conftest.er1 >conftest.err
28875   rm -f conftest.er1
28876   cat conftest.err >&5
28877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878   (exit $ac_status); } &&
28879          { ac_try='test -z "$ac_c_werror_flag"
28880                          || test ! -s conftest.err'
28881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28882   (eval $ac_try) 2>&5
28883   ac_status=$?
28884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885   (exit $ac_status); }; } &&
28886          { ac_try='test -s conftest.$ac_objext'
28887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28888   (eval $ac_try) 2>&5
28889   ac_status=$?
28890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891   (exit $ac_status); }; }; then
28892   ac_header_compiler=yes
28893 else
28894   echo "$as_me: failed program was:" >&5
28895 sed 's/^/| /' conftest.$ac_ext >&5
28896
28897 ac_header_compiler=no
28898 fi
28899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28901 echo "${ECHO_T}$ac_header_compiler" >&6
28902
28903 # Is the header present?
28904 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
28905 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
28906 cat >conftest.$ac_ext <<_ACEOF
28907 /* confdefs.h.  */
28908 _ACEOF
28909 cat confdefs.h >>conftest.$ac_ext
28910 cat >>conftest.$ac_ext <<_ACEOF
28911 /* end confdefs.h.  */
28912 #include <sys/acl.h>
28913 _ACEOF
28914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28915   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28916   ac_status=$?
28917   grep -v '^ *+' conftest.er1 >conftest.err
28918   rm -f conftest.er1
28919   cat conftest.err >&5
28920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921   (exit $ac_status); } >/dev/null; then
28922   if test -s conftest.err; then
28923     ac_cpp_err=$ac_c_preproc_warn_flag
28924     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28925   else
28926     ac_cpp_err=
28927   fi
28928 else
28929   ac_cpp_err=yes
28930 fi
28931 if test -z "$ac_cpp_err"; then
28932   ac_header_preproc=yes
28933 else
28934   echo "$as_me: failed program was:" >&5
28935 sed 's/^/| /' conftest.$ac_ext >&5
28936
28937   ac_header_preproc=no
28938 fi
28939 rm -f conftest.err conftest.$ac_ext
28940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28941 echo "${ECHO_T}$ac_header_preproc" >&6
28942
28943 # So?  What about this header?
28944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28945   yes:no: )
28946     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28947 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28948     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
28949 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
28950     ac_header_preproc=yes
28951     ;;
28952   no:yes:* )
28953     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
28954 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
28955     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
28956 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
28957     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
28958 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
28959     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
28960 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28961     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
28962 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
28963     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
28964 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
28965     (
28966       cat <<\_ASBOX
28967 ## ------------------------------------------ ##
28968 ## Report this to the AC_PACKAGE_NAME lists.  ##
28969 ## ------------------------------------------ ##
28970 _ASBOX
28971     ) |
28972       sed "s/^/$as_me: WARNING:     /" >&2
28973     ;;
28974 esac
28975 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28976 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28977 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28978   echo $ECHO_N "(cached) $ECHO_C" >&6
28979 else
28980   ac_cv_header_sys_acl_h=$ac_header_preproc
28981 fi
28982 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28983 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28984
28985 fi
28986
28987
28988 echo "$as_me:$LINENO: checking for acl_get_file" >&5
28989 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
28990 if test "${ac_cv_func_acl_get_file+set}" = set; then
28991   echo $ECHO_N "(cached) $ECHO_C" >&6
28992 else
28993   cat >conftest.$ac_ext <<_ACEOF
28994 /* confdefs.h.  */
28995 _ACEOF
28996 cat confdefs.h >>conftest.$ac_ext
28997 cat >>conftest.$ac_ext <<_ACEOF
28998 /* end confdefs.h.  */
28999 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29001 #define acl_get_file innocuous_acl_get_file
29002
29003 /* System header to define __stub macros and hopefully few prototypes,
29004     which can conflict with char acl_get_file (); below.
29005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29006     <limits.h> exists even on freestanding compilers.  */
29007
29008 #ifdef __STDC__
29009 # include <limits.h>
29010 #else
29011 # include <assert.h>
29012 #endif
29013
29014 #undef acl_get_file
29015
29016 /* Override any gcc2 internal prototype to avoid an error.  */
29017 #ifdef __cplusplus
29018 extern "C"
29019 {
29020 #endif
29021 /* We use char because int might match the return type of a gcc2
29022    builtin and then its argument prototype would still apply.  */
29023 char acl_get_file ();
29024 /* The GNU C library defines this for functions which it implements
29025     to always fail with ENOSYS.  Some functions are actually named
29026     something starting with __ and the normal name is an alias.  */
29027 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29028 choke me
29029 #else
29030 char (*f) () = acl_get_file;
29031 #endif
29032 #ifdef __cplusplus
29033 }
29034 #endif
29035
29036 int
29037 main ()
29038 {
29039 return f != acl_get_file;
29040   ;
29041   return 0;
29042 }
29043 _ACEOF
29044 rm -f conftest.$ac_objext conftest$ac_exeext
29045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29046   (eval $ac_link) 2>conftest.er1
29047   ac_status=$?
29048   grep -v '^ *+' conftest.er1 >conftest.err
29049   rm -f conftest.er1
29050   cat conftest.err >&5
29051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052   (exit $ac_status); } &&
29053          { ac_try='test -z "$ac_c_werror_flag"
29054                          || test ! -s conftest.err'
29055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29056   (eval $ac_try) 2>&5
29057   ac_status=$?
29058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29059   (exit $ac_status); }; } &&
29060          { ac_try='test -s conftest$ac_exeext'
29061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29062   (eval $ac_try) 2>&5
29063   ac_status=$?
29064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065   (exit $ac_status); }; }; then
29066   ac_cv_func_acl_get_file=yes
29067 else
29068   echo "$as_me: failed program was:" >&5
29069 sed 's/^/| /' conftest.$ac_ext >&5
29070
29071 ac_cv_func_acl_get_file=no
29072 fi
29073 rm -f conftest.err conftest.$ac_objext \
29074       conftest$ac_exeext conftest.$ac_ext
29075 fi
29076 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29077 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29078 if test $ac_cv_func_acl_get_file = yes; then
29079   have_acl=yes
29080 else
29081   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29082 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29083 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29084   echo $ECHO_N "(cached) $ECHO_C" >&6
29085 else
29086   ac_check_lib_save_LIBS=$LIBS
29087 LIBS="-lacl  $LIBS"
29088 cat >conftest.$ac_ext <<_ACEOF
29089 /* confdefs.h.  */
29090 _ACEOF
29091 cat confdefs.h >>conftest.$ac_ext
29092 cat >>conftest.$ac_ext <<_ACEOF
29093 /* end confdefs.h.  */
29094
29095 /* Override any gcc2 internal prototype to avoid an error.  */
29096 #ifdef __cplusplus
29097 extern "C"
29098 #endif
29099 /* We use char because int might match the return type of a gcc2
29100    builtin and then its argument prototype would still apply.  */
29101 char acl_get_file ();
29102 int
29103 main ()
29104 {
29105 acl_get_file ();
29106   ;
29107   return 0;
29108 }
29109 _ACEOF
29110 rm -f conftest.$ac_objext conftest$ac_exeext
29111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29112   (eval $ac_link) 2>conftest.er1
29113   ac_status=$?
29114   grep -v '^ *+' conftest.er1 >conftest.err
29115   rm -f conftest.er1
29116   cat conftest.err >&5
29117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118   (exit $ac_status); } &&
29119          { ac_try='test -z "$ac_c_werror_flag"
29120                          || test ! -s conftest.err'
29121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29122   (eval $ac_try) 2>&5
29123   ac_status=$?
29124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125   (exit $ac_status); }; } &&
29126          { ac_try='test -s conftest$ac_exeext'
29127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29128   (eval $ac_try) 2>&5
29129   ac_status=$?
29130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131   (exit $ac_status); }; }; then
29132   ac_cv_lib_acl_acl_get_file=yes
29133 else
29134   echo "$as_me: failed program was:" >&5
29135 sed 's/^/| /' conftest.$ac_ext >&5
29136
29137 ac_cv_lib_acl_acl_get_file=no
29138 fi
29139 rm -f conftest.err conftest.$ac_objext \
29140       conftest$ac_exeext conftest.$ac_ext
29141 LIBS=$ac_check_lib_save_LIBS
29142 fi
29143 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29144 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29145 if test $ac_cv_lib_acl_acl_get_file = yes; then
29146   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29147 else
29148   echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29149 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29150 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29151   echo $ECHO_N "(cached) $ECHO_C" >&6
29152 else
29153   ac_check_lib_save_LIBS=$LIBS
29154 LIBS="-lsec  $LIBS"
29155 cat >conftest.$ac_ext <<_ACEOF
29156 /* confdefs.h.  */
29157 _ACEOF
29158 cat confdefs.h >>conftest.$ac_ext
29159 cat >>conftest.$ac_ext <<_ACEOF
29160 /* end confdefs.h.  */
29161
29162 /* Override any gcc2 internal prototype to avoid an error.  */
29163 #ifdef __cplusplus
29164 extern "C"
29165 #endif
29166 /* We use char because int might match the return type of a gcc2
29167    builtin and then its argument prototype would still apply.  */
29168 char acltotext ();
29169 int
29170 main ()
29171 {
29172 acltotext ();
29173   ;
29174   return 0;
29175 }
29176 _ACEOF
29177 rm -f conftest.$ac_objext conftest$ac_exeext
29178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29179   (eval $ac_link) 2>conftest.er1
29180   ac_status=$?
29181   grep -v '^ *+' conftest.er1 >conftest.err
29182   rm -f conftest.er1
29183   cat conftest.err >&5
29184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185   (exit $ac_status); } &&
29186          { ac_try='test -z "$ac_c_werror_flag"
29187                          || test ! -s conftest.err'
29188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29189   (eval $ac_try) 2>&5
29190   ac_status=$?
29191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192   (exit $ac_status); }; } &&
29193          { ac_try='test -s conftest$ac_exeext'
29194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29195   (eval $ac_try) 2>&5
29196   ac_status=$?
29197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198   (exit $ac_status); }; }; then
29199   ac_cv_lib_sec_acltotext=yes
29200 else
29201   echo "$as_me: failed program was:" >&5
29202 sed 's/^/| /' conftest.$ac_ext >&5
29203
29204 ac_cv_lib_sec_acltotext=no
29205 fi
29206 rm -f conftest.err conftest.$ac_objext \
29207       conftest$ac_exeext conftest.$ac_ext
29208 LIBS=$ac_check_lib_save_LIBS
29209 fi
29210 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29211 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29212 if test $ac_cv_lib_sec_acltotext = yes; then
29213   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29214 fi
29215
29216
29217 fi
29218
29219
29220 fi
29221
29222 if test $have_acl = yes; then
29223    cat >>confdefs.h <<\_ACEOF
29224 #define HAVE_ACL 1
29225 _ACEOF
29226
29227 fi
29228
29229 PTHREAD_LIB=""
29230 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29231 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29232 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29233   echo $ECHO_N "(cached) $ECHO_C" >&6
29234 else
29235   ac_check_lib_save_LIBS=$LIBS
29236 LIBS="-lpthread  $LIBS"
29237 cat >conftest.$ac_ext <<_ACEOF
29238 /* confdefs.h.  */
29239 _ACEOF
29240 cat confdefs.h >>conftest.$ac_ext
29241 cat >>conftest.$ac_ext <<_ACEOF
29242 /* end confdefs.h.  */
29243
29244 /* Override any gcc2 internal prototype to avoid an error.  */
29245 #ifdef __cplusplus
29246 extern "C"
29247 #endif
29248 /* We use char because int might match the return type of a gcc2
29249    builtin and then its argument prototype would still apply.  */
29250 char pthread_create ();
29251 int
29252 main ()
29253 {
29254 pthread_create ();
29255   ;
29256   return 0;
29257 }
29258 _ACEOF
29259 rm -f conftest.$ac_objext conftest$ac_exeext
29260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29261   (eval $ac_link) 2>conftest.er1
29262   ac_status=$?
29263   grep -v '^ *+' conftest.er1 >conftest.err
29264   rm -f conftest.er1
29265   cat conftest.err >&5
29266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267   (exit $ac_status); } &&
29268          { ac_try='test -z "$ac_c_werror_flag"
29269                          || test ! -s conftest.err'
29270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271   (eval $ac_try) 2>&5
29272   ac_status=$?
29273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274   (exit $ac_status); }; } &&
29275          { ac_try='test -s conftest$ac_exeext'
29276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29277   (eval $ac_try) 2>&5
29278   ac_status=$?
29279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280   (exit $ac_status); }; }; then
29281   ac_cv_lib_pthread_pthread_create=yes
29282 else
29283   echo "$as_me: failed program was:" >&5
29284 sed 's/^/| /' conftest.$ac_ext >&5
29285
29286 ac_cv_lib_pthread_pthread_create=no
29287 fi
29288 rm -f conftest.err conftest.$ac_objext \
29289       conftest$ac_exeext conftest.$ac_ext
29290 LIBS=$ac_check_lib_save_LIBS
29291 fi
29292 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29293 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29294 if test $ac_cv_lib_pthread_pthread_create = yes; then
29295   PTHREAD_LIB="-lpthread"
29296 else
29297   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29298 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29299 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29300   echo $ECHO_N "(cached) $ECHO_C" >&6
29301 else
29302   ac_check_lib_save_LIBS=$LIBS
29303 LIBS="-lpthreads  $LIBS"
29304 cat >conftest.$ac_ext <<_ACEOF
29305 /* confdefs.h.  */
29306 _ACEOF
29307 cat confdefs.h >>conftest.$ac_ext
29308 cat >>conftest.$ac_ext <<_ACEOF
29309 /* end confdefs.h.  */
29310
29311 /* Override any gcc2 internal prototype to avoid an error.  */
29312 #ifdef __cplusplus
29313 extern "C"
29314 #endif
29315 /* We use char because int might match the return type of a gcc2
29316    builtin and then its argument prototype would still apply.  */
29317 char pthread_create ();
29318 int
29319 main ()
29320 {
29321 pthread_create ();
29322   ;
29323   return 0;
29324 }
29325 _ACEOF
29326 rm -f conftest.$ac_objext conftest$ac_exeext
29327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29328   (eval $ac_link) 2>conftest.er1
29329   ac_status=$?
29330   grep -v '^ *+' conftest.er1 >conftest.err
29331   rm -f conftest.er1
29332   cat conftest.err >&5
29333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334   (exit $ac_status); } &&
29335          { ac_try='test -z "$ac_c_werror_flag"
29336                          || test ! -s conftest.err'
29337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29338   (eval $ac_try) 2>&5
29339   ac_status=$?
29340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341   (exit $ac_status); }; } &&
29342          { ac_try='test -s conftest$ac_exeext'
29343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29344   (eval $ac_try) 2>&5
29345   ac_status=$?
29346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347   (exit $ac_status); }; }; then
29348   ac_cv_lib_pthreads_pthread_create=yes
29349 else
29350   echo "$as_me: failed program was:" >&5
29351 sed 's/^/| /' conftest.$ac_ext >&5
29352
29353 ac_cv_lib_pthreads_pthread_create=no
29354 fi
29355 rm -f conftest.err conftest.$ac_objext \
29356       conftest$ac_exeext conftest.$ac_ext
29357 LIBS=$ac_check_lib_save_LIBS
29358 fi
29359 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29360 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29361 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29362   PTHREAD_LIB="-lpthreads"
29363 else
29364   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29365 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29366 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29367   echo $ECHO_N "(cached) $ECHO_C" >&6
29368 else
29369   ac_check_lib_save_LIBS=$LIBS
29370 LIBS="-lc_r  $LIBS"
29371 cat >conftest.$ac_ext <<_ACEOF
29372 /* confdefs.h.  */
29373 _ACEOF
29374 cat confdefs.h >>conftest.$ac_ext
29375 cat >>conftest.$ac_ext <<_ACEOF
29376 /* end confdefs.h.  */
29377
29378 /* Override any gcc2 internal prototype to avoid an error.  */
29379 #ifdef __cplusplus
29380 extern "C"
29381 #endif
29382 /* We use char because int might match the return type of a gcc2
29383    builtin and then its argument prototype would still apply.  */
29384 char pthread_create ();
29385 int
29386 main ()
29387 {
29388 pthread_create ();
29389   ;
29390   return 0;
29391 }
29392 _ACEOF
29393 rm -f conftest.$ac_objext conftest$ac_exeext
29394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29395   (eval $ac_link) 2>conftest.er1
29396   ac_status=$?
29397   grep -v '^ *+' conftest.er1 >conftest.err
29398   rm -f conftest.er1
29399   cat conftest.err >&5
29400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401   (exit $ac_status); } &&
29402          { ac_try='test -z "$ac_c_werror_flag"
29403                          || test ! -s conftest.err'
29404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405   (eval $ac_try) 2>&5
29406   ac_status=$?
29407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408   (exit $ac_status); }; } &&
29409          { ac_try='test -s conftest$ac_exeext'
29410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411   (eval $ac_try) 2>&5
29412   ac_status=$?
29413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414   (exit $ac_status); }; }; then
29415   ac_cv_lib_c_r_pthread_create=yes
29416 else
29417   echo "$as_me: failed program was:" >&5
29418 sed 's/^/| /' conftest.$ac_ext >&5
29419
29420 ac_cv_lib_c_r_pthread_create=no
29421 fi
29422 rm -f conftest.err conftest.$ac_objext \
29423       conftest$ac_exeext conftest.$ac_ext
29424 LIBS=$ac_check_lib_save_LIBS
29425 fi
29426 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29427 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
29428 if test $ac_cv_lib_c_r_pthread_create = yes; then
29429   PTHREAD_LIB="-lc_r"
29430 else
29431   echo "$as_me:$LINENO: checking for pthread_create" >&5
29432 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
29433 if test "${ac_cv_func_pthread_create+set}" = set; then
29434   echo $ECHO_N "(cached) $ECHO_C" >&6
29435 else
29436   cat >conftest.$ac_ext <<_ACEOF
29437 /* confdefs.h.  */
29438 _ACEOF
29439 cat confdefs.h >>conftest.$ac_ext
29440 cat >>conftest.$ac_ext <<_ACEOF
29441 /* end confdefs.h.  */
29442 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29444 #define pthread_create innocuous_pthread_create
29445
29446 /* System header to define __stub macros and hopefully few prototypes,
29447     which can conflict with char pthread_create (); below.
29448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29449     <limits.h> exists even on freestanding compilers.  */
29450
29451 #ifdef __STDC__
29452 # include <limits.h>
29453 #else
29454 # include <assert.h>
29455 #endif
29456
29457 #undef pthread_create
29458
29459 /* Override any gcc2 internal prototype to avoid an error.  */
29460 #ifdef __cplusplus
29461 extern "C"
29462 {
29463 #endif
29464 /* We use char because int might match the return type of a gcc2
29465    builtin and then its argument prototype would still apply.  */
29466 char pthread_create ();
29467 /* The GNU C library defines this for functions which it implements
29468     to always fail with ENOSYS.  Some functions are actually named
29469     something starting with __ and the normal name is an alias.  */
29470 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
29471 choke me
29472 #else
29473 char (*f) () = pthread_create;
29474 #endif
29475 #ifdef __cplusplus
29476 }
29477 #endif
29478
29479 int
29480 main ()
29481 {
29482 return f != pthread_create;
29483   ;
29484   return 0;
29485 }
29486 _ACEOF
29487 rm -f conftest.$ac_objext conftest$ac_exeext
29488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29489   (eval $ac_link) 2>conftest.er1
29490   ac_status=$?
29491   grep -v '^ *+' conftest.er1 >conftest.err
29492   rm -f conftest.er1
29493   cat conftest.err >&5
29494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495   (exit $ac_status); } &&
29496          { ac_try='test -z "$ac_c_werror_flag"
29497                          || test ! -s conftest.err'
29498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29499   (eval $ac_try) 2>&5
29500   ac_status=$?
29501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502   (exit $ac_status); }; } &&
29503          { ac_try='test -s conftest$ac_exeext'
29504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29505   (eval $ac_try) 2>&5
29506   ac_status=$?
29507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508   (exit $ac_status); }; }; then
29509   ac_cv_func_pthread_create=yes
29510 else
29511   echo "$as_me: failed program was:" >&5
29512 sed 's/^/| /' conftest.$ac_ext >&5
29513
29514 ac_cv_func_pthread_create=no
29515 fi
29516 rm -f conftest.err conftest.$ac_objext \
29517       conftest$ac_exeext conftest.$ac_ext
29518 fi
29519 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29520 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
29521
29522
29523 fi
29524
29525
29526 fi
29527
29528
29529 fi
29530
29531
29532
29533 cat >>confdefs.h <<\_ACEOF
29534 #define FDLIBS 1
29535 _ACEOF
29536
29537
29538
29539 CFLAGS=${CFLAGS--O}
29540 LDFLAGS=${LDFLAGS--O}
29541 DB_LIBS="${SQL_LFLAGS}"
29542
29543 CPPFLAGS="$CPPFLAGS"
29544
29545
29546
29547
29548
29549
29550
29551
29552
29553
29554
29555
29556
29557
29558
29559
29560 OBJLIST=
29561
29562
29563 lld="lld"
29564 llu="llu"
29565
29566 WCFLAGS=
29567 WLDFLAGS=
29568
29569 #
29570 # Finally we set appropriate distribution specific
29571 #  variables and defaults
29572 #
29573 # PFILES are platform specific files
29574 PFILES="platforms/Makefile"
29575 PSCMD="ps -e"
29576 WIN32=
29577 MACOSX=
29578 hostname=`uname -n | cut -d '.' -f 1`
29579 if test x${hostname} = x ; then
29580   hostname="localhost"
29581 fi
29582 case "$DISTNAME" in
29583 aix)
29584         DISTVER=`uname -r`
29585         PSCMD="ps -e -o pid,comm"
29586         PFILES="${PFILES} \
29587            platforms/aix/Makefile"
29588         TAPEDRIVE="/dev/rmt0.1"
29589   ;;
29590 alpha)
29591         DISTVER=`uname -r`
29592         PTHREAD_LIB="-lpthread -lexc"
29593         if test "${CC}" = "gcc" ; then
29594            lld="lld"
29595            llu="llu"
29596         else
29597            lld="ld"
29598            llu="lu"
29599         fi
29600         TAPEDRIVE="/dev/nrmt0"
29601   ;;
29602 bsdi)
29603         DISTVER=`uname -a |awk '{print $3}'`
29604         TAPEDRIVE="/dev/nrmt0"
29605         PTHREAD_LIB="-pthread"
29606         CFLAGS="${CFLAGS} -pthread"
29607         PSCMD="ps -ax -o pid,command"
29608         lld="qd"
29609         llu="qu"
29610         PFILES="${PFILES} \
29611             platforms/bsdi/Makefile \
29612             platforms/bsdi/bacula-fd \
29613             platforms/bsdi/bacula-sd \
29614             platforms/bsdi/bacula-dir"
29615         largefile_support="yes"
29616   ;;
29617 cygwin)
29618         DISTVER=`uname -a |awk '{print $3}'`
29619         TAPEDRIVE="/dev/nrst0"
29620         WIN32=win32
29621         WCFLAGS="-mwindows"
29622         WLDFLAGS="-mwindows"
29623   ;;
29624 darwin)
29625         DISTVER=`uname -r`
29626         TAPEDRIVE="/dev/nst0"
29627         PSCMD="ps -e -o pid,command"
29628         MACOSX=macosx
29629         PFILES="${PFILES} \
29630            platforms/darwin/Makefile"
29631   ;;
29632 debian)
29633         DISTVER=`cat /etc/debian_version`
29634         TAPEDRIVE="/dev/nrst0"
29635         PSCMD="ps -e -o pid,command"
29636   ;;
29637 freebsd)
29638         DISTVER=`uname -a |awk '{print $3}'`
29639         VER=`echo $DISTVER | cut -c 1`
29640         if test x$VER = x4 ; then
29641            PTHREAD_LIB="-pthread"
29642            CFLAGS="${CFLAGS} -pthread"
29643         fi
29644         lld="qd"
29645         llu="qu"
29646         TAPEDRIVE="/dev/nrsa0"
29647         PSCMD="ps -ax -o pid,command"
29648         PFILES="${PFILES} \
29649             platforms/freebsd/Makefile \
29650             platforms/freebsd/bacula-fd \
29651             platforms/freebsd/bacula-sd \
29652             platforms/freebsd/bacula-dir"
29653         largefile_support="yes"
29654   ;;
29655 hpux)
29656         PSCMD="UNIX95=1 ps -e -o pid,comm"
29657         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
29658         DISTVER=`uname -r`
29659         TAPEDRIVE="/dev/rmt/0hnb"
29660         PTHREAD_LIB="-lpthread"
29661         cat >>confdefs.h <<\_ACEOF
29662 #define _INCLUDE_LONGLONG 1
29663 _ACEOF
29664
29665   ;;
29666 irix)
29667         DISTVER=`uname -r`
29668         TAPEDRIVE="/dev/rmt/0cbn"
29669         PSCMD="ps -e -o pid,comm"
29670         PFILES="${PFILES} \
29671             platforms/irix/Makefile \
29672             platforms/irix/bacula-fd \
29673             platforms/irix/bacula-sd \
29674             platforms/irix/bacula-dir"
29675   ;;
29676 netbsd)
29677         DISTVER=`uname -a |awk '{print $3}'`
29678         lld="qd"
29679         llu="qu"
29680         TAPEDRIVE="/dev/nrst0"
29681         PSCMD="ps -ax -o pid,command"
29682         PTHREAD_LIB="-pthread"
29683         CFLAGS="${CFLAGS} -pthread"
29684   ;;
29685 openbsd)
29686         DISTVER=`uname -a |awk '{print $3}'`
29687         lld="qd"
29688         llu="qu"
29689         TAPEDRIVE="/dev/nrst0"
29690         PSCMD="ps -ax -o pid,command"
29691         PTHREAD_LIB="-pthread"
29692         CFLAGS="${CFLAGS} -pthread"
29693         PFILES="${PFILES} \
29694             platforms/openbsd/Makefile \
29695             platforms/openbsd/bacula-fd \
29696             platforms/openbsd/bacula-sd \
29697             platforms/openbsd/bacula-dir"
29698   ;;
29699 redhat)
29700         if test -f /etc/whitebox-release ; then
29701            f=/etc/whitebox-release
29702         else
29703            f=/etc/redhat-release
29704         fi
29705         if test `cat $f | grep release |\
29706                    cut -f 3 -d ' '`x = "Enterprise"x ; then
29707            DISTVER="Enterprise "`cat $f | grep release |\
29708                     cut -f 6 -d ' '`
29709         else
29710             DISTVER=`cat /etc/redhat-release | grep release |\
29711                      cut -f 5 -d ' '`
29712         fi
29713         TAPEDRIVE="/dev/nst0"
29714         PSCMD="ps -e -o pid,command"
29715         PFILES="${PFILES} \
29716             platforms/redhat/Makefile \
29717             platforms/redhat/bacula-fd \
29718             platforms/redhat/bacula-sd \
29719             platforms/redhat/bacula-dir \
29720             platforms/redhat/bacula.spec \
29721             "
29722   ;;
29723 mandrake)
29724         DISTVER=`cat /etc/mandrake-release | grep release |\
29725            cut -f 5 -d ' '`
29726         TAPEDRIVE="/dev/nst0"
29727         PSCMD="ps -e -o pid,command"
29728         PFILES="${PFILES} \
29729             platforms/mandrake/Makefile \
29730             platforms/mandrake/bacula-fd \
29731             platforms/mandrake/bacula-sd \
29732             platforms/mandrake/bacula-dir \
29733             platforms/mandrake/bacula.spec \
29734             "
29735   ;;
29736 gentoo)
29737         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29738         TAPEDRIVE="/dev/nst0"
29739         PSCMD="ps -e -o pid,command"
29740         PFILES="${PFILES} \
29741             platforms/gentoo/Makefile \
29742          platforms/gentoo/bacula-init \
29743             platforms/gentoo/bacula-fd \
29744             platforms/gentoo/bacula-sd \
29745             platforms/gentoo/bacula-dir"
29746   ;;
29747 slackware)
29748         DISTVER=`cat /etc/slackware-version`
29749         TAPEDRIVE="/dev/nst0"
29750         PSCMD="ps -e -o pid,command"
29751         PFILES="${PFILES} \
29752             platforms/slackware/Makefile \
29753             platforms/slackware/rc.bacula-fd \
29754             platforms/slackware/rc.bacula-sd \
29755             platforms/slackware/rc.bacula-dir\
29756             platforms/slackware/functions.bacula"
29757   ;;
29758 solaris)
29759         DISTVER=`uname -r`
29760         TAPEDRIVE="/dev/rmt/0cbn"
29761         PSCMD="ps -e -o pid,comm"
29762         PFILES="${PFILES} \
29763             platforms/solaris/Makefile \
29764             platforms/solaris/bacula-fd \
29765             platforms/solaris/bacula-sd \
29766             platforms/solaris/bacula-dir"
29767         if test x$DISTVER = x5.6 ; then
29768             cat >>confdefs.h <<\_ACEOF
29769 #define HAVE_OLD_SOCKOPT 1
29770 _ACEOF
29771
29772         fi
29773         LIBS="$LIBS -lresolv"
29774   ;;
29775 suse)
29776         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29777             cut -f 3 -d ' '`
29778         TAPEDRIVE="/dev/nst0"
29779         PSCMD="ps -e -o pid,command"
29780         PFILES="${PFILES} \
29781             platforms/suse/Makefile \
29782             platforms/suse/bacula-fd \
29783             platforms/suse/bacula-sd \
29784             platforms/suse/bacula-dir \
29785             platforms/suse/bacula \
29786             platforms/suse/bacula.spec"
29787   ;;
29788 suse5)
29789         DISTNAME=suse
29790         DISTVER=5.x
29791         TAPEDRIVE="/dev/nst0"
29792         PSCMD="ps -e -o pid,command"
29793         PFILES="${PFILES} \
29794             platforms/suse/Makefile \
29795             platforms/suse/bacula-fd \
29796             platforms/suse/bacula-sd \
29797             platforms/suse/bacula-dir"
29798   ;;
29799 unknown)
29800         DISTVER=unknown
29801         TAPEDRIVE="/dev/nst0"
29802   ;;
29803 *)
29804   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29805   ;;
29806 esac
29807
29808
29809
29810 LIBS="$PTHREAD_LIB $LIBS"
29811
29812 cat >>confdefs.h <<_ACEOF
29813 #define lld "$lld"
29814 _ACEOF
29815
29816 cat >>confdefs.h <<_ACEOF
29817 #define llu "$llu"
29818 _ACEOF
29819
29820
29821
29822
29823
29824
29825
29826
29827 MCOMMON=./autoconf/Make.common
29828
29829
29830 if test "x${subsysdir}" = "x${sbindir}" ; then
29831    echo " "
29832    echo " "
29833    echo "You have set both --sbindir and --with-subsys-dir"
29834    echo "  equal to: ${subsysdir} "
29835    echo "This is not permitted. Please reconfigure."
29836    echo " "
29837    echo "Aborting configuration ..."
29838    echo " "
29839    echo " "
29840    exit 1
29841 fi
29842
29843                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/pygtk-console/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/Makefile.vcpp src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile po/Makefile.in $PFILES"
29844           ac_config_commands="$ac_config_commands default"
29845 cat >confcache <<\_ACEOF
29846 # This file is a shell script that caches the results of configure
29847 # tests run on this system so they can be shared between configure
29848 # scripts and configure runs, see configure's option --config-cache.
29849 # It is not useful on other systems.  If it contains results you don't
29850 # want to keep, you may remove or edit it.
29851 #
29852 # config.status only pays attention to the cache file if you give it
29853 # the --recheck option to rerun configure.
29854 #
29855 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29856 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29857 # following values.
29858
29859 _ACEOF
29860
29861 # The following way of writing the cache mishandles newlines in values,
29862 # but we know of no workaround that is simple, portable, and efficient.
29863 # So, don't put newlines in cache variables' values.
29864 # Ultrix sh set writes to stderr and can't be redirected directly,
29865 # and sets the high bit in the cache file unless we assign to the vars.
29866 {
29867   (set) 2>&1 |
29868     case `(ac_space=' '; set | grep ac_space) 2>&1` in
29869     *ac_space=\ *)
29870       # `set' does not quote correctly, so add quotes (double-quote
29871       # substitution turns \\\\ into \\, and sed turns \\ into \).
29872       sed -n \
29873         "s/'/'\\\\''/g;
29874           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29875       ;;
29876     *)
29877       # `set' quotes correctly as required by POSIX, so do not add quotes.
29878       sed -n \
29879         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29880       ;;
29881     esac;
29882 } |
29883   sed '
29884      t clear
29885      : clear
29886      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29887      t end
29888      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29889      : end' >>confcache
29890 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29891   if test -w $cache_file; then
29892     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29893     cat confcache >$cache_file
29894   else
29895     echo "not updating unwritable cache $cache_file"
29896   fi
29897 fi
29898 rm -f confcache
29899
29900 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29901 # Let make expand exec_prefix.
29902 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29903
29904 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29905 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29906 # trailing colons and then remove the whole line if VPATH becomes empty
29907 # (actually we leave an empty line to preserve line numbers).
29908 if test "x$srcdir" = x.; then
29909   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29910 s/:*\$(srcdir):*/:/;
29911 s/:*\${srcdir}:*/:/;
29912 s/:*@srcdir@:*/:/;
29913 s/^\([^=]*=[     ]*\):*/\1/;
29914 s/:*$//;
29915 s/^[^=]*=[       ]*$//;
29916 }'
29917 fi
29918
29919 DEFS=-DHAVE_CONFIG_H
29920
29921 ac_libobjs=
29922 ac_ltlibobjs=
29923 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29924   # 1. Remove the extension, and $U if already installed.
29925   ac_i=`echo "$ac_i" |
29926          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29927   # 2. Add them.
29928   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29929   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29930 done
29931 LIBOBJS=$ac_libobjs
29932
29933 LTLIBOBJS=$ac_ltlibobjs
29934
29935
29936
29937 : ${CONFIG_STATUS=./config.status}
29938 ac_clean_files_save=$ac_clean_files
29939 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29940 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29941 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29942 cat >$CONFIG_STATUS <<_ACEOF
29943 #! $SHELL
29944 # Generated by $as_me.
29945 # Run this file to recreate the current configuration.
29946 # Compiler output produced by configure, useful for debugging
29947 # configure, is in config.log if it exists.
29948
29949 debug=false
29950 ac_cs_recheck=false
29951 ac_cs_silent=false
29952 SHELL=\${CONFIG_SHELL-$SHELL}
29953 _ACEOF
29954
29955 cat >>$CONFIG_STATUS <<\_ACEOF
29956 ## --------------------- ##
29957 ## M4sh Initialization.  ##
29958 ## --------------------- ##
29959
29960 # Be Bourne compatible
29961 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29962   emulate sh
29963   NULLCMD=:
29964   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29965   # is contrary to our usage.  Disable this feature.
29966   alias -g '${1+"$@"}'='"$@"'
29967 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29968   set -o posix
29969 fi
29970 DUALCASE=1; export DUALCASE # for MKS sh
29971
29972 # Support unset when possible.
29973 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29974   as_unset=unset
29975 else
29976   as_unset=false
29977 fi
29978
29979
29980 # Work around bugs in pre-3.0 UWIN ksh.
29981 $as_unset ENV MAIL MAILPATH
29982 PS1='$ '
29983 PS2='> '
29984 PS4='+ '
29985
29986 # NLS nuisances.
29987 for as_var in \
29988   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29989   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29990   LC_TELEPHONE LC_TIME
29991 do
29992   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29993     eval $as_var=C; export $as_var
29994   else
29995     $as_unset $as_var
29996   fi
29997 done
29998
29999 # Required to use basename.
30000 if expr a : '\(a\)' >/dev/null 2>&1; then
30001   as_expr=expr
30002 else
30003   as_expr=false
30004 fi
30005
30006 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30007   as_basename=basename
30008 else
30009   as_basename=false
30010 fi
30011
30012
30013 # Name of the executable.
30014 as_me=`$as_basename "$0" ||
30015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30016          X"$0" : 'X\(//\)$' \| \
30017          X"$0" : 'X\(/\)$' \| \
30018          .     : '\(.\)' 2>/dev/null ||
30019 echo X/"$0" |
30020     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30021           /^X\/\(\/\/\)$/{ s//\1/; q; }
30022           /^X\/\(\/\).*/{ s//\1/; q; }
30023           s/.*/./; q'`
30024
30025
30026 # PATH needs CR, and LINENO needs CR and PATH.
30027 # Avoid depending upon Character Ranges.
30028 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30029 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30030 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30031 as_cr_digits='0123456789'
30032 as_cr_alnum=$as_cr_Letters$as_cr_digits
30033
30034 # The user is always right.
30035 if test "${PATH_SEPARATOR+set}" != set; then
30036   echo "#! /bin/sh" >conf$$.sh
30037   echo  "exit 0"   >>conf$$.sh
30038   chmod +x conf$$.sh
30039   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30040     PATH_SEPARATOR=';'
30041   else
30042     PATH_SEPARATOR=:
30043   fi
30044   rm -f conf$$.sh
30045 fi
30046
30047
30048   as_lineno_1=$LINENO
30049   as_lineno_2=$LINENO
30050   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30051   test "x$as_lineno_1" != "x$as_lineno_2" &&
30052   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30053   # Find who we are.  Look in the path if we contain no path at all
30054   # relative or not.
30055   case $0 in
30056     *[\\/]* ) as_myself=$0 ;;
30057     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30058 for as_dir in $PATH
30059 do
30060   IFS=$as_save_IFS
30061   test -z "$as_dir" && as_dir=.
30062   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30063 done
30064
30065        ;;
30066   esac
30067   # We did not find ourselves, most probably we were run as `sh COMMAND'
30068   # in which case we are not to be found in the path.
30069   if test "x$as_myself" = x; then
30070     as_myself=$0
30071   fi
30072   if test ! -f "$as_myself"; then
30073     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30074 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30075    { (exit 1); exit 1; }; }
30076   fi
30077   case $CONFIG_SHELL in
30078   '')
30079     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30080 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30081 do
30082   IFS=$as_save_IFS
30083   test -z "$as_dir" && as_dir=.
30084   for as_base in sh bash ksh sh5; do
30085          case $as_dir in
30086          /*)
30087            if ("$as_dir/$as_base" -c '
30088   as_lineno_1=$LINENO
30089   as_lineno_2=$LINENO
30090   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30091   test "x$as_lineno_1" != "x$as_lineno_2" &&
30092   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30093              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30094              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30095              CONFIG_SHELL=$as_dir/$as_base
30096              export CONFIG_SHELL
30097              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30098            fi;;
30099          esac
30100        done
30101 done
30102 ;;
30103   esac
30104
30105   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30106   # uniformly replaced by the line number.  The first 'sed' inserts a
30107   # line-number line before each line; the second 'sed' does the real
30108   # work.  The second script uses 'N' to pair each line-number line
30109   # with the numbered line, and appends trailing '-' during
30110   # substitution so that $LINENO is not a special case at line end.
30111   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30112   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30113   sed '=' <$as_myself |
30114     sed '
30115       N
30116       s,$,-,
30117       : loop
30118       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30119       t loop
30120       s,-$,,
30121       s,^['$as_cr_digits']*\n,,
30122     ' >$as_me.lineno &&
30123   chmod +x $as_me.lineno ||
30124     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30125 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30126    { (exit 1); exit 1; }; }
30127
30128   # Don't try to exec as it changes $[0], causing all sort of problems
30129   # (the dirname of $[0] is not the place where we might find the
30130   # original and so on.  Autoconf is especially sensible to this).
30131   . ./$as_me.lineno
30132   # Exit status is that of the last command.
30133   exit
30134 }
30135
30136
30137 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30138   *c*,-n*) ECHO_N= ECHO_C='
30139 ' ECHO_T='      ' ;;
30140   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30141   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30142 esac
30143
30144 if expr a : '\(a\)' >/dev/null 2>&1; then
30145   as_expr=expr
30146 else
30147   as_expr=false
30148 fi
30149
30150 rm -f conf$$ conf$$.exe conf$$.file
30151 echo >conf$$.file
30152 if ln -s conf$$.file conf$$ 2>/dev/null; then
30153   # We could just check for DJGPP; but this test a) works b) is more generic
30154   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30155   if test -f conf$$.exe; then
30156     # Don't use ln at all; we don't have any links
30157     as_ln_s='cp -p'
30158   else
30159     as_ln_s='ln -s'
30160   fi
30161 elif ln conf$$.file conf$$ 2>/dev/null; then
30162   as_ln_s=ln
30163 else
30164   as_ln_s='cp -p'
30165 fi
30166 rm -f conf$$ conf$$.exe conf$$.file
30167
30168 if mkdir -p . 2>/dev/null; then
30169   as_mkdir_p=:
30170 else
30171   test -d ./-p && rmdir ./-p
30172   as_mkdir_p=false
30173 fi
30174
30175 as_executable_p="test -f"
30176
30177 # Sed expression to map a string onto a valid CPP name.
30178 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30179
30180 # Sed expression to map a string onto a valid variable name.
30181 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30182
30183
30184 # IFS
30185 # We need space, tab and new line, in precisely that order.
30186 as_nl='
30187 '
30188 IFS="   $as_nl"
30189
30190 # CDPATH.
30191 $as_unset CDPATH
30192
30193 exec 6>&1
30194
30195 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30196 # report actual input values of CONFIG_FILES etc. instead of their
30197 # values after options handling.  Logging --version etc. is OK.
30198 exec 5>>config.log
30199 {
30200   echo
30201   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30202 ## Running $as_me. ##
30203 _ASBOX
30204 } >&5
30205 cat >&5 <<_CSEOF
30206
30207 This file was extended by $as_me, which was
30208 generated by GNU Autoconf 2.59.  Invocation command line was
30209
30210   CONFIG_FILES    = $CONFIG_FILES
30211   CONFIG_HEADERS  = $CONFIG_HEADERS
30212   CONFIG_LINKS    = $CONFIG_LINKS
30213   CONFIG_COMMANDS = $CONFIG_COMMANDS
30214   $ $0 $@
30215
30216 _CSEOF
30217 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30218 echo >&5
30219 _ACEOF
30220
30221 # Files that config.status was made for.
30222 if test -n "$ac_config_files"; then
30223   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30224 fi
30225
30226 if test -n "$ac_config_headers"; then
30227   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30228 fi
30229
30230 if test -n "$ac_config_links"; then
30231   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30232 fi
30233
30234 if test -n "$ac_config_commands"; then
30235   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30236 fi
30237
30238 cat >>$CONFIG_STATUS <<\_ACEOF
30239
30240 ac_cs_usage="\
30241 \`$as_me' instantiates files from templates according to the
30242 current configuration.
30243
30244 Usage: $0 [OPTIONS] [FILE]...
30245
30246   -h, --help       print this help, then exit
30247   -V, --version    print version number, then exit
30248   -q, --quiet      do not print progress messages
30249   -d, --debug      don't remove temporary files
30250       --recheck    update $as_me by reconfiguring in the same conditions
30251   --file=FILE[:TEMPLATE]
30252                    instantiate the configuration file FILE
30253   --header=FILE[:TEMPLATE]
30254                    instantiate the configuration header FILE
30255
30256 Configuration files:
30257 $config_files
30258
30259 Configuration headers:
30260 $config_headers
30261
30262 Configuration commands:
30263 $config_commands
30264
30265 Report bugs to <bug-autoconf@gnu.org>."
30266 _ACEOF
30267
30268 cat >>$CONFIG_STATUS <<_ACEOF
30269 ac_cs_version="\\
30270 config.status
30271 configured by $0, generated by GNU Autoconf 2.59,
30272   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30273
30274 Copyright (C) 2003 Free Software Foundation, Inc.
30275 This config.status script is free software; the Free Software Foundation
30276 gives unlimited permission to copy, distribute and modify it."
30277 srcdir=$srcdir
30278 INSTALL="$INSTALL"
30279 _ACEOF
30280
30281 cat >>$CONFIG_STATUS <<\_ACEOF
30282 # If no file are specified by the user, then we need to provide default
30283 # value.  By we need to know if files were specified by the user.
30284 ac_need_defaults=:
30285 while test $# != 0
30286 do
30287   case $1 in
30288   --*=*)
30289     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30290     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30291     ac_shift=:
30292     ;;
30293   -*)
30294     ac_option=$1
30295     ac_optarg=$2
30296     ac_shift=shift
30297     ;;
30298   *) # This is not an option, so the user has probably given explicit
30299      # arguments.
30300      ac_option=$1
30301      ac_need_defaults=false;;
30302   esac
30303
30304   case $ac_option in
30305   # Handling of the options.
30306 _ACEOF
30307 cat >>$CONFIG_STATUS <<\_ACEOF
30308   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30309     ac_cs_recheck=: ;;
30310   --version | --vers* | -V )
30311     echo "$ac_cs_version"; exit 0 ;;
30312   --he | --h)
30313     # Conflict between --help and --header
30314     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30315 Try \`$0 --help' for more information." >&5
30316 echo "$as_me: error: ambiguous option: $1
30317 Try \`$0 --help' for more information." >&2;}
30318    { (exit 1); exit 1; }; };;
30319   --help | --hel | -h )
30320     echo "$ac_cs_usage"; exit 0 ;;
30321   --debug | --d* | -d )
30322     debug=: ;;
30323   --file | --fil | --fi | --f )
30324     $ac_shift
30325     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30326     ac_need_defaults=false;;
30327   --header | --heade | --head | --hea )
30328     $ac_shift
30329     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30330     ac_need_defaults=false;;
30331   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30332   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30333     ac_cs_silent=: ;;
30334
30335   # This is an error.
30336   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30337 Try \`$0 --help' for more information." >&5
30338 echo "$as_me: error: unrecognized option: $1
30339 Try \`$0 --help' for more information." >&2;}
30340    { (exit 1); exit 1; }; } ;;
30341
30342   *) ac_config_targets="$ac_config_targets $1" ;;
30343
30344   esac
30345   shift
30346 done
30347
30348 ac_configure_extra_args=
30349
30350 if $ac_cs_silent; then
30351   exec 6>/dev/null
30352   ac_configure_extra_args="$ac_configure_extra_args --silent"
30353 fi
30354
30355 _ACEOF
30356 cat >>$CONFIG_STATUS <<_ACEOF
30357 if \$ac_cs_recheck; then
30358   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30359   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30360 fi
30361
30362 _ACEOF
30363
30364 cat >>$CONFIG_STATUS <<_ACEOF
30365 #
30366 # INIT-COMMANDS section.
30367 #
30368
30369 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30370     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30371     # from automake.
30372     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30373     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30374     LINGUAS="${LINGUAS-%UNSET%}"
30375
30376
30377 _ACEOF
30378
30379
30380
30381 cat >>$CONFIG_STATUS <<\_ACEOF
30382 for ac_config_target in $ac_config_targets
30383 do
30384   case "$ac_config_target" in
30385   # Handling of arguments.
30386   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30387   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30388   "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30389   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30390   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30391   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30392   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30393   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30394   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30395   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30396   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30397   "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30398   "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30399   "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30400   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30401   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30402   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30403   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30404   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30405   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30406   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30407   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30408   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30409   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
30410   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30411   "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30412   "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30413   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30414   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30415   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30416   "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30417   "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30418   "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30419   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30420   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30421   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30422   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30423   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30424   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
30425   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30426   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
30427   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30428   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30429   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30430   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30431   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30432   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30433   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30434   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30435   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30436   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
30437   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30438   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30439   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30440   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30441   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30442   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30443   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30444   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30445   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30446   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30447   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30448   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30449   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30450   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30451   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30452   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30453   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30454   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30455   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30456   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30457   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30458   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30459   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30460   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30461   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30462   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30463   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30464   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30465   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30466   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30467   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30468   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30469   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30470   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30471   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30472   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30473   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30474   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30475   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30476   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30477   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30478   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30479   "src/pygtk-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pygtk-console/Makefile" ;;
30480   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30481   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
30482   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
30483   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
30484   "src/win32/Makefile.vcpp" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.vcpp" ;;
30485   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
30486   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
30487   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
30488   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30489   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30490   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30491   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30492   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30493   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30494 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30495    { (exit 1); exit 1; }; };;
30496   esac
30497 done
30498
30499 # If the user did not use the arguments to specify the items to instantiate,
30500 # then the envvar interface is used.  Set only those that are not.
30501 # We use the long form for the default assignment because of an extremely
30502 # bizarre bug on SunOS 4.1.3.
30503 if $ac_need_defaults; then
30504   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30505   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30506   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30507 fi
30508
30509 # Have a temporary directory for convenience.  Make it in the build tree
30510 # simply because there is no reason to put it here, and in addition,
30511 # creating and moving files from /tmp can sometimes cause problems.
30512 # Create a temporary directory, and hook for its removal unless debugging.
30513 $debug ||
30514 {
30515   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30516   trap '{ (exit 1); exit 1; }' 1 2 13 15
30517 }
30518
30519 # Create a (secure) tmp directory for tmp files.
30520
30521 {
30522   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30523   test -n "$tmp" && test -d "$tmp"
30524 }  ||
30525 {
30526   tmp=./confstat$$-$RANDOM
30527   (umask 077 && mkdir $tmp)
30528 } ||
30529 {
30530    echo "$me: cannot create a temporary directory in ." >&2
30531    { (exit 1); exit 1; }
30532 }
30533
30534 _ACEOF
30535
30536 cat >>$CONFIG_STATUS <<_ACEOF
30537
30538 #
30539 # CONFIG_FILES section.
30540 #
30541
30542 # No need to generate the scripts if there are no CONFIG_FILES.
30543 # This happens for instance when ./config.status config.h
30544 if test -n "\$CONFIG_FILES"; then
30545   # Protect against being on the right side of a sed subst in config.status.
30546   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30547    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30548 s,@SHELL@,$SHELL,;t t
30549 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30550 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30551 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30552 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30553 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30554 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30555 s,@exec_prefix@,$exec_prefix,;t t
30556 s,@prefix@,$prefix,;t t
30557 s,@program_transform_name@,$program_transform_name,;t t
30558 s,@bindir@,$bindir,;t t
30559 s,@sbindir@,$sbindir,;t t
30560 s,@libexecdir@,$libexecdir,;t t
30561 s,@datadir@,$datadir,;t t
30562 s,@sysconfdir@,$sysconfdir,;t t
30563 s,@sharedstatedir@,$sharedstatedir,;t t
30564 s,@localstatedir@,$localstatedir,;t t
30565 s,@libdir@,$libdir,;t t
30566 s,@includedir@,$includedir,;t t
30567 s,@oldincludedir@,$oldincludedir,;t t
30568 s,@infodir@,$infodir,;t t
30569 s,@mandir@,$mandir,;t t
30570 s,@build_alias@,$build_alias,;t t
30571 s,@host_alias@,$host_alias,;t t
30572 s,@target_alias@,$target_alias,;t t
30573 s,@DEFS@,$DEFS,;t t
30574 s,@ECHO_C@,$ECHO_C,;t t
30575 s,@ECHO_N@,$ECHO_N,;t t
30576 s,@ECHO_T@,$ECHO_T,;t t
30577 s,@LIBS@,$LIBS,;t t
30578 s,@BUILD_DIR@,$BUILD_DIR,;t t
30579 s,@TOP_DIR@,$TOP_DIR,;t t
30580 s,@TRUEPRG@,$TRUEPRG,;t t
30581 s,@FALSEPRG@,$FALSEPRG,;t t
30582 s,@VERSION@,$VERSION,;t t
30583 s,@DATE@,$DATE,;t t
30584 s,@LSMDATE@,$LSMDATE,;t t
30585 s,@CC@,$CC,;t t
30586 s,@CFLAGS@,$CFLAGS,;t t
30587 s,@LDFLAGS@,$LDFLAGS,;t t
30588 s,@CPPFLAGS@,$CPPFLAGS,;t t
30589 s,@ac_ct_CC@,$ac_ct_CC,;t t
30590 s,@EXEEXT@,$EXEEXT,;t t
30591 s,@OBJEXT@,$OBJEXT,;t t
30592 s,@CXX@,$CXX,;t t
30593 s,@CXXFLAGS@,$CXXFLAGS,;t t
30594 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30595 s,@CPP@,$CPP,;t t
30596 s,@EGREP@,$EGREP,;t t
30597 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30598 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30599 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30600 s,@RANLIB@,$RANLIB,;t t
30601 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30602 s,@MV@,$MV,;t t
30603 s,@RM@,$RM,;t t
30604 s,@CP@,$CP,;t t
30605 s,@SED@,$SED,;t t
30606 s,@ECHO@,$ECHO,;t t
30607 s,@CMP@,$CMP,;t t
30608 s,@TBL@,$TBL,;t t
30609 s,@AR@,$AR,;t t
30610 s,@OPENSSL@,$OPENSSL,;t t
30611 s,@MTX@,$MTX,;t t
30612 s,@DD@,$DD,;t t
30613 s,@MKISOFS@,$MKISOFS,;t t
30614 s,@PYTHON@,$PYTHON,;t t
30615 s,@GROWISOFS@,$GROWISOFS,;t t
30616 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
30617 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
30618 s,@PKGCONFIG@,$PKGCONFIG,;t t
30619 s,@WXCONFIG@,$WXCONFIG,;t t
30620 s,@WXFLAGS@,$WXFLAGS,;t t
30621 s,@CDRECORD@,$CDRECORD,;t t
30622 s,@PIDOF@,$PIDOF,;t t
30623 s,@AWK@,$AWK,;t t
30624 s,@ARFLAGS@,$ARFLAGS,;t t
30625 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
30626 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
30627 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
30628 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
30629 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
30630 s,@build@,$build,;t t
30631 s,@build_cpu@,$build_cpu,;t t
30632 s,@build_vendor@,$build_vendor,;t t
30633 s,@build_os@,$build_os,;t t
30634 s,@host@,$host,;t t
30635 s,@host_cpu@,$host_cpu,;t t
30636 s,@host_vendor@,$host_vendor,;t t
30637 s,@host_os@,$host_os,;t t
30638 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
30639 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
30640 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
30641 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
30642 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
30643 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
30644 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
30645 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
30646 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
30647 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
30648 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
30649 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
30650 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
30651 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
30652 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
30653 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
30654 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
30655 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
30656 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
30657 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
30658 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
30659 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
30660 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
30661 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
30662 s,@SET_MAKE@,$SET_MAKE,;t t
30663 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
30664 s,@USE_NLS@,$USE_NLS,;t t
30665 s,@MSGFMT@,$MSGFMT,;t t
30666 s,@GMSGFMT@,$GMSGFMT,;t t
30667 s,@XGETTEXT@,$XGETTEXT,;t t
30668 s,@MSGMERGE@,$MSGMERGE,;t t
30669 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
30670 s,@LIBICONV@,$LIBICONV,;t t
30671 s,@LTLIBICONV@,$LTLIBICONV,;t t
30672 s,@INTLLIBS@,$INTLLIBS,;t t
30673 s,@LIBINTL@,$LIBINTL,;t t
30674 s,@LTLIBINTL@,$LTLIBINTL,;t t
30675 s,@POSUB@,$POSUB,;t t
30676 s,@GLIBC2@,$GLIBC2,;t t
30677 s,@ALLOCA@,$ALLOCA,;t t
30678 s,@GLIBC21@,$GLIBC21,;t t
30679 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
30680 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
30681 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
30682 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
30683 s,@INTLBISON@,$INTLBISON,;t t
30684 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
30685 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
30686 s,@CATOBJEXT@,$CATOBJEXT,;t t
30687 s,@DATADIRNAME@,$DATADIRNAME,;t t
30688 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
30689 s,@GENCAT@,$GENCAT,;t t
30690 s,@INTLOBJS@,$INTLOBJS,;t t
30691 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
30692 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
30693 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
30694 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
30695 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
30696 s,@GNOME_DIR@,$GNOME_DIR,;t t
30697 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
30698 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
30699 s,@WX_DIR@,$WX_DIR,;t t
30700 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
30701 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
30702 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
30703 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
30704 s,@STATIC_FD@,$STATIC_FD,;t t
30705 s,@STATIC_SD@,$STATIC_SD,;t t
30706 s,@STATIC_DIR@,$STATIC_DIR,;t t
30707 s,@STATIC_CONS@,$STATIC_CONS,;t t
30708 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
30709 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
30710 s,@ALL_DIRS@,$ALL_DIRS,;t t
30711 s,@DIRD_DIR@,$DIRD_DIR,;t t
30712 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
30713 s,@STORED_DIR@,$STORED_DIR,;t t
30714 s,@CONS_INC@,$CONS_INC,;t t
30715 s,@CONS_OBJ@,$CONS_OBJ,;t t
30716 s,@CONS_SRC@,$CONS_SRC,;t t
30717 s,@CONS_LIBS@,$CONS_LIBS,;t t
30718 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
30719 s,@READLINE_SRC@,$READLINE_SRC,;t t
30720 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
30721 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
30722 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
30723 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
30724 s,@working_dir@,$working_dir,;t t
30725 s,@scriptdir@,$scriptdir,;t t
30726 s,@dump_email@,$dump_email,;t t
30727 s,@job_email@,$job_email,;t t
30728 s,@smtp_host@,$smtp_host,;t t
30729 s,@piddir@,$piddir,;t t
30730 s,@subsysdir@,$subsysdir,;t t
30731 s,@baseport@,$baseport,;t t
30732 s,@dir_port@,$dir_port,;t t
30733 s,@fd_port@,$fd_port,;t t
30734 s,@sd_port@,$sd_port,;t t
30735 s,@dir_password@,$dir_password,;t t
30736 s,@fd_password@,$fd_password,;t t
30737 s,@sd_password@,$sd_password,;t t
30738 s,@mon_dir_password@,$mon_dir_password,;t t
30739 s,@mon_fd_password@,$mon_fd_password,;t t
30740 s,@mon_sd_password@,$mon_sd_password,;t t
30741 s,@dir_user@,$dir_user,;t t
30742 s,@dir_group@,$dir_group,;t t
30743 s,@sd_user@,$sd_user,;t t
30744 s,@sd_group@,$sd_group,;t t
30745 s,@fd_user@,$fd_user,;t t
30746 s,@fd_group@,$fd_group,;t t
30747 s,@SBINPERM@,$SBINPERM,;t t
30748 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
30749 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
30750 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
30751 s,@cats@,$cats,;t t
30752 s,@DB_NAME@,$DB_NAME,;t t
30753 s,@GETCONF@,$GETCONF,;t t
30754 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
30755 s,@X_CFLAGS@,$X_CFLAGS,;t t
30756 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
30757 s,@X_LIBS@,$X_LIBS,;t t
30758 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
30759 s,@LIBOBJS@,$LIBOBJS,;t t
30760 s,@FDLIBS@,$FDLIBS,;t t
30761 s,@DEBUG@,$DEBUG,;t t
30762 s,@DINCLUDE@,$DINCLUDE,;t t
30763 s,@DLIB@,$DLIB,;t t
30764 s,@DB_LIBS@,$DB_LIBS,;t t
30765 s,@WCFLAGS@,$WCFLAGS,;t t
30766 s,@WLDFLAGS@,$WLDFLAGS,;t t
30767 s,@WRAPLIBS@,$WRAPLIBS,;t t
30768 s,@OBJLIST@,$OBJLIST,;t t
30769 s,@hostname@,$hostname,;t t
30770 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
30771 s,@PSCMD@,$PSCMD,;t t
30772 s,@WIN32@,$WIN32,;t t
30773 s,@MACOSX@,$MACOSX,;t t
30774 s,@DISTNAME@,$DISTNAME,;t t
30775 s,@DISTVER@,$DISTVER,;t t
30776 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30777 /@MCOMMON@/r $MCOMMON
30778 s,@MCOMMON@,,;t t
30779 CEOF
30780
30781 _ACEOF
30782
30783   cat >>$CONFIG_STATUS <<\_ACEOF
30784   # Split the substitutions into bite-sized pieces for seds with
30785   # small command number limits, like on Digital OSF/1 and HP-UX.
30786   ac_max_sed_lines=48
30787   ac_sed_frag=1 # Number of current file.
30788   ac_beg=1 # First line for current file.
30789   ac_end=$ac_max_sed_lines # Line after last line for current file.
30790   ac_more_lines=:
30791   ac_sed_cmds=
30792   while $ac_more_lines; do
30793     if test $ac_beg -gt 1; then
30794       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30795     else
30796       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30797     fi
30798     if test ! -s $tmp/subs.frag; then
30799       ac_more_lines=false
30800     else
30801       # The purpose of the label and of the branching condition is to
30802       # speed up the sed processing (if there are no `@' at all, there
30803       # is no need to browse any of the substitutions).
30804       # These are the two extra sed commands mentioned above.
30805       (echo ':t
30806   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30807       if test -z "$ac_sed_cmds"; then
30808         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30809       else
30810         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30811       fi
30812       ac_sed_frag=`expr $ac_sed_frag + 1`
30813       ac_beg=$ac_end
30814       ac_end=`expr $ac_end + $ac_max_sed_lines`
30815     fi
30816   done
30817   if test -z "$ac_sed_cmds"; then
30818     ac_sed_cmds=cat
30819   fi
30820 fi # test -n "$CONFIG_FILES"
30821
30822 _ACEOF
30823 cat >>$CONFIG_STATUS <<\_ACEOF
30824 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30825   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30826   case $ac_file in
30827   - | *:- | *:-:* ) # input from stdin
30828         cat >$tmp/stdin
30829         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30830         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30831   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30832         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30833   * )   ac_file_in=$ac_file.in ;;
30834   esac
30835
30836   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30837   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30839          X"$ac_file" : 'X\(//\)[^/]' \| \
30840          X"$ac_file" : 'X\(//\)$' \| \
30841          X"$ac_file" : 'X\(/\)' \| \
30842          .     : '\(.\)' 2>/dev/null ||
30843 echo X"$ac_file" |
30844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30845           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30846           /^X\(\/\/\)$/{ s//\1/; q; }
30847           /^X\(\/\).*/{ s//\1/; q; }
30848           s/.*/./; q'`
30849   { if $as_mkdir_p; then
30850     mkdir -p "$ac_dir"
30851   else
30852     as_dir="$ac_dir"
30853     as_dirs=
30854     while test ! -d "$as_dir"; do
30855       as_dirs="$as_dir $as_dirs"
30856       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30857 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30858          X"$as_dir" : 'X\(//\)[^/]' \| \
30859          X"$as_dir" : 'X\(//\)$' \| \
30860          X"$as_dir" : 'X\(/\)' \| \
30861          .     : '\(.\)' 2>/dev/null ||
30862 echo X"$as_dir" |
30863     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30864           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30865           /^X\(\/\/\)$/{ s//\1/; q; }
30866           /^X\(\/\).*/{ s//\1/; q; }
30867           s/.*/./; q'`
30868     done
30869     test ! -n "$as_dirs" || mkdir $as_dirs
30870   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30871 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30872    { (exit 1); exit 1; }; }; }
30873
30874   ac_builddir=.
30875
30876 if test "$ac_dir" != .; then
30877   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30878   # A "../" for each directory in $ac_dir_suffix.
30879   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30880 else
30881   ac_dir_suffix= ac_top_builddir=
30882 fi
30883
30884 case $srcdir in
30885   .)  # No --srcdir option.  We are building in place.
30886     ac_srcdir=.
30887     if test -z "$ac_top_builddir"; then
30888        ac_top_srcdir=.
30889     else
30890        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30891     fi ;;
30892   [\\/]* | ?:[\\/]* )  # Absolute path.
30893     ac_srcdir=$srcdir$ac_dir_suffix;
30894     ac_top_srcdir=$srcdir ;;
30895   *) # Relative path.
30896     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30897     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30898 esac
30899
30900 # Do not use `cd foo && pwd` to compute absolute paths, because
30901 # the directories may not exist.
30902 case `pwd` in
30903 .) ac_abs_builddir="$ac_dir";;
30904 *)
30905   case "$ac_dir" in
30906   .) ac_abs_builddir=`pwd`;;
30907   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30908   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30909   esac;;
30910 esac
30911 case $ac_abs_builddir in
30912 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30913 *)
30914   case ${ac_top_builddir}. in
30915   .) ac_abs_top_builddir=$ac_abs_builddir;;
30916   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30917   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30918   esac;;
30919 esac
30920 case $ac_abs_builddir in
30921 .) ac_abs_srcdir=$ac_srcdir;;
30922 *)
30923   case $ac_srcdir in
30924   .) ac_abs_srcdir=$ac_abs_builddir;;
30925   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30926   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30927   esac;;
30928 esac
30929 case $ac_abs_builddir in
30930 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30931 *)
30932   case $ac_top_srcdir in
30933   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30934   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30935   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30936   esac;;
30937 esac
30938
30939
30940   case $INSTALL in
30941   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30942   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30943   esac
30944
30945   if test x"$ac_file" != x-; then
30946     { echo "$as_me:$LINENO: creating $ac_file" >&5
30947 echo "$as_me: creating $ac_file" >&6;}
30948     rm -f "$ac_file"
30949   fi
30950   # Let's still pretend it is `configure' which instantiates (i.e., don't
30951   # use $as_me), people would be surprised to read:
30952   #    /* config.h.  Generated by config.status.  */
30953   if test x"$ac_file" = x-; then
30954     configure_input=
30955   else
30956     configure_input="$ac_file.  "
30957   fi
30958   configure_input=$configure_input"Generated from `echo $ac_file_in |
30959                                      sed 's,.*/,,'` by configure."
30960
30961   # First look for the input files in the build tree, otherwise in the
30962   # src tree.
30963   ac_file_inputs=`IFS=:
30964     for f in $ac_file_in; do
30965       case $f in
30966       -) echo $tmp/stdin ;;
30967       [\\/$]*)
30968          # Absolute (can't be DOS-style, as IFS=:)
30969          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30970 echo "$as_me: error: cannot find input file: $f" >&2;}
30971    { (exit 1); exit 1; }; }
30972          echo "$f";;
30973       *) # Relative
30974          if test -f "$f"; then
30975            # Build tree
30976            echo "$f"
30977          elif test -f "$srcdir/$f"; then
30978            # Source tree
30979            echo "$srcdir/$f"
30980          else
30981            # /dev/null tree
30982            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30983 echo "$as_me: error: cannot find input file: $f" >&2;}
30984    { (exit 1); exit 1; }; }
30985          fi;;
30986       esac
30987     done` || { (exit 1); exit 1; }
30988 _ACEOF
30989 cat >>$CONFIG_STATUS <<_ACEOF
30990   sed "$ac_vpsub
30991 $extrasub
30992 _ACEOF
30993 cat >>$CONFIG_STATUS <<\_ACEOF
30994 :t
30995 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30996 s,@configure_input@,$configure_input,;t t
30997 s,@srcdir@,$ac_srcdir,;t t
30998 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30999 s,@top_srcdir@,$ac_top_srcdir,;t t
31000 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31001 s,@builddir@,$ac_builddir,;t t
31002 s,@abs_builddir@,$ac_abs_builddir,;t t
31003 s,@top_builddir@,$ac_top_builddir,;t t
31004 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31005 s,@INSTALL@,$ac_INSTALL,;t t
31006 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31007   rm -f $tmp/stdin
31008   if test x"$ac_file" != x-; then
31009     mv $tmp/out $ac_file
31010   else
31011     cat $tmp/out
31012     rm -f $tmp/out
31013   fi
31014
31015 done
31016 _ACEOF
31017 cat >>$CONFIG_STATUS <<\_ACEOF
31018
31019 #
31020 # CONFIG_HEADER section.
31021 #
31022
31023 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31024 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31025 #
31026 # ac_d sets the value in "#define NAME VALUE" lines.
31027 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31028 ac_dB='[         ].*$,\1#\2'
31029 ac_dC=' '
31030 ac_dD=',;t'
31031 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31032 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31033 ac_uB='$,\1#\2define\3'
31034 ac_uC=' '
31035 ac_uD=',;t'
31036
31037 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31038   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31039   case $ac_file in
31040   - | *:- | *:-:* ) # input from stdin
31041         cat >$tmp/stdin
31042         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31043         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31044   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31045         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31046   * )   ac_file_in=$ac_file.in ;;
31047   esac
31048
31049   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31050 echo "$as_me: creating $ac_file" >&6;}
31051
31052   # First look for the input files in the build tree, otherwise in the
31053   # src tree.
31054   ac_file_inputs=`IFS=:
31055     for f in $ac_file_in; do
31056       case $f in
31057       -) echo $tmp/stdin ;;
31058       [\\/$]*)
31059          # Absolute (can't be DOS-style, as IFS=:)
31060          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31061 echo "$as_me: error: cannot find input file: $f" >&2;}
31062    { (exit 1); exit 1; }; }
31063          # Do quote $f, to prevent DOS paths from being IFS'd.
31064          echo "$f";;
31065       *) # Relative
31066          if test -f "$f"; then
31067            # Build tree
31068            echo "$f"
31069          elif test -f "$srcdir/$f"; then
31070            # Source tree
31071            echo "$srcdir/$f"
31072          else
31073            # /dev/null tree
31074            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31075 echo "$as_me: error: cannot find input file: $f" >&2;}
31076    { (exit 1); exit 1; }; }
31077          fi;;
31078       esac
31079     done` || { (exit 1); exit 1; }
31080   # Remove the trailing spaces.
31081   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31082
31083 _ACEOF
31084
31085 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31086 # `conftest.undefs', that substitutes the proper values into
31087 # config.h.in to produce config.h.  The first handles `#define'
31088 # templates, and the second `#undef' templates.
31089 # And first: Protect against being on the right side of a sed subst in
31090 # config.status.  Protect against being in an unquoted here document
31091 # in config.status.
31092 rm -f conftest.defines conftest.undefs
31093 # Using a here document instead of a string reduces the quoting nightmare.
31094 # Putting comments in sed scripts is not portable.
31095 #
31096 # `end' is used to avoid that the second main sed command (meant for
31097 # 0-ary CPP macros) applies to n-ary macro definitions.
31098 # See the Autoconf documentation for `clear'.
31099 cat >confdef2sed.sed <<\_ACEOF
31100 s/[\\&,]/\\&/g
31101 s,[\\$`],\\&,g
31102 t clear
31103 : clear
31104 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31105 t end
31106 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31107 : end
31108 _ACEOF
31109 # If some macros were called several times there might be several times
31110 # the same #defines, which is useless.  Nevertheless, we may not want to
31111 # sort them, since we want the *last* AC-DEFINE to be honored.
31112 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31113 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31114 rm -f confdef2sed.sed
31115
31116 # This sed command replaces #undef with comments.  This is necessary, for
31117 # example, in the case of _POSIX_SOURCE, which is predefined and required
31118 # on some systems where configure will not decide to define it.
31119 cat >>conftest.undefs <<\_ACEOF
31120 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31121 _ACEOF
31122
31123 # Break up conftest.defines because some shells have a limit on the size
31124 # of here documents, and old seds have small limits too (100 cmds).
31125 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31126 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31127 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31128 echo '  :' >>$CONFIG_STATUS
31129 rm -f conftest.tail
31130 while grep . conftest.defines >/dev/null
31131 do
31132   # Write a limited-size here document to $tmp/defines.sed.
31133   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31134   # Speed up: don't consider the non `#define' lines.
31135   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31136   # Work around the forget-to-reset-the-flag bug.
31137   echo 't clr' >>$CONFIG_STATUS
31138   echo ': clr' >>$CONFIG_STATUS
31139   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31140   echo 'CEOF
31141   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31142   rm -f $tmp/in
31143   mv $tmp/out $tmp/in
31144 ' >>$CONFIG_STATUS
31145   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31146   rm -f conftest.defines
31147   mv conftest.tail conftest.defines
31148 done
31149 rm -f conftest.defines
31150 echo '  fi # grep' >>$CONFIG_STATUS
31151 echo >>$CONFIG_STATUS
31152
31153 # Break up conftest.undefs because some shells have a limit on the size
31154 # of here documents, and old seds have small limits too (100 cmds).
31155 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31156 rm -f conftest.tail
31157 while grep . conftest.undefs >/dev/null
31158 do
31159   # Write a limited-size here document to $tmp/undefs.sed.
31160   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31161   # Speed up: don't consider the non `#undef'
31162   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31163   # Work around the forget-to-reset-the-flag bug.
31164   echo 't clr' >>$CONFIG_STATUS
31165   echo ': clr' >>$CONFIG_STATUS
31166   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31167   echo 'CEOF
31168   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31169   rm -f $tmp/in
31170   mv $tmp/out $tmp/in
31171 ' >>$CONFIG_STATUS
31172   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31173   rm -f conftest.undefs
31174   mv conftest.tail conftest.undefs
31175 done
31176 rm -f conftest.undefs
31177
31178 cat >>$CONFIG_STATUS <<\_ACEOF
31179   # Let's still pretend it is `configure' which instantiates (i.e., don't
31180   # use $as_me), people would be surprised to read:
31181   #    /* config.h.  Generated by config.status.  */
31182   if test x"$ac_file" = x-; then
31183     echo "/* Generated by configure.  */" >$tmp/config.h
31184   else
31185     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31186   fi
31187   cat $tmp/in >>$tmp/config.h
31188   rm -f $tmp/in
31189   if test x"$ac_file" != x-; then
31190     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31191       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31192 echo "$as_me: $ac_file is unchanged" >&6;}
31193     else
31194       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31195 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31196          X"$ac_file" : 'X\(//\)[^/]' \| \
31197          X"$ac_file" : 'X\(//\)$' \| \
31198          X"$ac_file" : 'X\(/\)' \| \
31199          .     : '\(.\)' 2>/dev/null ||
31200 echo X"$ac_file" |
31201     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31202           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31203           /^X\(\/\/\)$/{ s//\1/; q; }
31204           /^X\(\/\).*/{ s//\1/; q; }
31205           s/.*/./; q'`
31206       { if $as_mkdir_p; then
31207     mkdir -p "$ac_dir"
31208   else
31209     as_dir="$ac_dir"
31210     as_dirs=
31211     while test ! -d "$as_dir"; do
31212       as_dirs="$as_dir $as_dirs"
31213       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31214 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31215          X"$as_dir" : 'X\(//\)[^/]' \| \
31216          X"$as_dir" : 'X\(//\)$' \| \
31217          X"$as_dir" : 'X\(/\)' \| \
31218          .     : '\(.\)' 2>/dev/null ||
31219 echo X"$as_dir" |
31220     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31221           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31222           /^X\(\/\/\)$/{ s//\1/; q; }
31223           /^X\(\/\).*/{ s//\1/; q; }
31224           s/.*/./; q'`
31225     done
31226     test ! -n "$as_dirs" || mkdir $as_dirs
31227   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31228 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31229    { (exit 1); exit 1; }; }; }
31230
31231       rm -f $ac_file
31232       mv $tmp/config.h $ac_file
31233     fi
31234   else
31235     cat $tmp/config.h
31236     rm -f $tmp/config.h
31237   fi
31238 done
31239 _ACEOF
31240 cat >>$CONFIG_STATUS <<\_ACEOF
31241
31242 #
31243 # CONFIG_COMMANDS section.
31244 #
31245 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31246   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31247   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31248   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31249 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31250          X"$ac_dest" : 'X\(//\)[^/]' \| \
31251          X"$ac_dest" : 'X\(//\)$' \| \
31252          X"$ac_dest" : 'X\(/\)' \| \
31253          .     : '\(.\)' 2>/dev/null ||
31254 echo X"$ac_dest" |
31255     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31256           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31257           /^X\(\/\/\)$/{ s//\1/; q; }
31258           /^X\(\/\).*/{ s//\1/; q; }
31259           s/.*/./; q'`
31260   { if $as_mkdir_p; then
31261     mkdir -p "$ac_dir"
31262   else
31263     as_dir="$ac_dir"
31264     as_dirs=
31265     while test ! -d "$as_dir"; do
31266       as_dirs="$as_dir $as_dirs"
31267       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31268 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31269          X"$as_dir" : 'X\(//\)[^/]' \| \
31270          X"$as_dir" : 'X\(//\)$' \| \
31271          X"$as_dir" : 'X\(/\)' \| \
31272          .     : '\(.\)' 2>/dev/null ||
31273 echo X"$as_dir" |
31274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31275           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31276           /^X\(\/\/\)$/{ s//\1/; q; }
31277           /^X\(\/\).*/{ s//\1/; q; }
31278           s/.*/./; q'`
31279     done
31280     test ! -n "$as_dirs" || mkdir $as_dirs
31281   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31282 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31283    { (exit 1); exit 1; }; }; }
31284
31285   ac_builddir=.
31286
31287 if test "$ac_dir" != .; then
31288   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31289   # A "../" for each directory in $ac_dir_suffix.
31290   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31291 else
31292   ac_dir_suffix= ac_top_builddir=
31293 fi
31294
31295 case $srcdir in
31296   .)  # No --srcdir option.  We are building in place.
31297     ac_srcdir=.
31298     if test -z "$ac_top_builddir"; then
31299        ac_top_srcdir=.
31300     else
31301        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31302     fi ;;
31303   [\\/]* | ?:[\\/]* )  # Absolute path.
31304     ac_srcdir=$srcdir$ac_dir_suffix;
31305     ac_top_srcdir=$srcdir ;;
31306   *) # Relative path.
31307     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31308     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31309 esac
31310
31311 # Do not use `cd foo && pwd` to compute absolute paths, because
31312 # the directories may not exist.
31313 case `pwd` in
31314 .) ac_abs_builddir="$ac_dir";;
31315 *)
31316   case "$ac_dir" in
31317   .) ac_abs_builddir=`pwd`;;
31318   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31319   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31320   esac;;
31321 esac
31322 case $ac_abs_builddir in
31323 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31324 *)
31325   case ${ac_top_builddir}. in
31326   .) ac_abs_top_builddir=$ac_abs_builddir;;
31327   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31328   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31329   esac;;
31330 esac
31331 case $ac_abs_builddir in
31332 .) ac_abs_srcdir=$ac_srcdir;;
31333 *)
31334   case $ac_srcdir in
31335   .) ac_abs_srcdir=$ac_abs_builddir;;
31336   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31337   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31338   esac;;
31339 esac
31340 case $ac_abs_builddir in
31341 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31342 *)
31343   case $ac_top_srcdir in
31344   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31345   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31346   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31347   esac;;
31348 esac
31349
31350
31351   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31352 echo "$as_me: executing $ac_dest commands" >&6;}
31353   case $ac_dest in
31354     default-1 )
31355     for ac_file in $CONFIG_FILES; do
31356       # Support "outfile[:infile[:infile...]]"
31357       case "$ac_file" in
31358         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31359       esac
31360       # PO directories have a Makefile.in generated from Makefile.in.in.
31361       case "$ac_file" in */Makefile.in)
31362         # Adjust a relative srcdir.
31363         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31364         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31365         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31366         # In autoconf-2.13 it is called $ac_given_srcdir.
31367         # In autoconf-2.50 it is called $srcdir.
31368         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31369         case "$ac_given_srcdir" in
31370           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31371           /*) top_srcdir="$ac_given_srcdir" ;;
31372           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31373         esac
31374         # Treat a directory as a PO directory if and only if it has a
31375         # POTFILES.in file. This allows packages to have multiple PO
31376         # directories under different names or in different locations.
31377         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31378           rm -f "$ac_dir/POTFILES"
31379           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31380           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31381           POMAKEFILEDEPS="POTFILES.in"
31382           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31383           # on $ac_dir but don't depend on user-specified configuration
31384           # parameters.
31385           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31386             # The LINGUAS file contains the set of available languages.
31387             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31388               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31389             fi
31390             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31391             # Hide the ALL_LINGUAS assigment from automake.
31392             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31393             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31394           else
31395             # The set of available languages was given in configure.in.
31396             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31397           fi
31398           # Compute POFILES
31399           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31400           # Compute UPDATEPOFILES
31401           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31402           # Compute DUMMYPOFILES
31403           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31404           # Compute GMOFILES
31405           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31406           case "$ac_given_srcdir" in
31407             .) srcdirpre= ;;
31408             *) srcdirpre='$(srcdir)/' ;;
31409           esac
31410           POFILES=
31411           UPDATEPOFILES=
31412           DUMMYPOFILES=
31413           GMOFILES=
31414           for lang in $ALL_LINGUAS; do
31415             POFILES="$POFILES $srcdirpre$lang.po"
31416             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31417             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31418             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31419           done
31420           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31421           # environment variable.
31422           INST_LINGUAS=
31423           if test -n "$ALL_LINGUAS"; then
31424             for presentlang in $ALL_LINGUAS; do
31425               useit=no
31426               if test "%UNSET%" != "$LINGUAS"; then
31427                 desiredlanguages="$LINGUAS"
31428               else
31429                 desiredlanguages="$ALL_LINGUAS"
31430               fi
31431               for desiredlang in $desiredlanguages; do
31432                 # Use the presentlang catalog if desiredlang is
31433                 #   a. equal to presentlang, or
31434                 #   b. a variant of presentlang (because in this case,
31435                 #      presentlang can be used as a fallback for messages
31436                 #      which are not translated in the desiredlang catalog).
31437                 case "$desiredlang" in
31438                   "$presentlang"*) useit=yes;;
31439                 esac
31440               done
31441               if test $useit = yes; then
31442                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31443               fi
31444             done
31445           fi
31446           CATALOGS=
31447           if test -n "$INST_LINGUAS"; then
31448             for lang in $INST_LINGUAS; do
31449               CATALOGS="$CATALOGS $lang.gmo"
31450             done
31451           fi
31452           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31453           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
31454           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31455             if test -f "$f"; then
31456               case "$f" in
31457                 *.orig | *.bak | *~) ;;
31458                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31459               esac
31460             fi
31461           done
31462         fi
31463         ;;
31464       esac
31465     done ;;
31466     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
31467  ;;
31468   esac
31469 done
31470 _ACEOF
31471
31472 cat >>$CONFIG_STATUS <<\_ACEOF
31473
31474 { (exit 0); exit 0; }
31475 _ACEOF
31476 chmod +x $CONFIG_STATUS
31477 ac_clean_files=$ac_clean_files_save
31478
31479
31480 # configure is writing to config.log, and then calls config.status.
31481 # config.status does its own redirection, appending to config.log.
31482 # Unfortunately, on DOS this fails, as config.log is still kept open
31483 # by configure, so config.status won't be able to write to it; its
31484 # output is simply discarded.  So we exec the FD to /dev/null,
31485 # effectively closing config.log, so it can be properly (re)opened and
31486 # appended to by config.status.  When coming back to configure, we
31487 # need to make the FD available again.
31488 if test "$no_create" != yes; then
31489   ac_cs_success=:
31490   ac_config_status_args=
31491   test "$silent" = yes &&
31492     ac_config_status_args="$ac_config_status_args --quiet"
31493   exec 5>/dev/null
31494   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31495   exec 5>>config.log
31496   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31497   # would make configure fail if this is the last instruction.
31498   $ac_cs_success || { (exit 1); exit 1; }
31499 fi
31500
31501
31502 cd scripts
31503 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31504 chmod 755 dvd-handler
31505 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31506 cd ..
31507
31508 c=src/cats
31509
31510 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
31511 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
31512
31513 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
31514 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
31515
31516 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
31517 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
31518
31519 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
31520 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
31521
31522 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
31523 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
31524
31525 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
31526 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
31527
31528 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31529 chmod 755 $c/sqlite
31530 chmod 755 $c/mysql
31531
31532 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31533    largefile_support="yes"
31534 fi
31535
31536 #
31537 # A whole lot of hand springs to get the compiler version.
31538 #  This is because gcc changed the output in version 3.0
31539 #
31540 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31541 if test "x${CCVERSION}" = "x" ; then
31542   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31543 fi
31544 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31545 if test x"${CXXVERSION}" = x ; then
31546   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31547 fi
31548
31549 if test "x${subsysdir}" = "x${sbindir}" ; then
31550    echo " "
31551    echo " "
31552    echo "You have set --sbindir and --with-subsys-dir"
31553    echo "  both equal to: ${subsysdir} "
31554    echo "  This is not permitted. Please reconfigure."
31555    echo " "
31556    echo "Aborting configuration ..."
31557    echo " "
31558    echo " "
31559    exit 1
31560 fi
31561
31562 if test "x${db_name}" = "xInternal" ; then
31563    echo " "
31564    echo " "
31565    echo "You have not specified either --enable-client-only or one of the"
31566    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31567    echo "  This is not permitted. Please reconfigure."
31568    echo " "
31569    echo "Aborting the configuration ..."
31570    echo " "
31571    echo " "
31572    exit 1
31573 fi
31574
31575 echo "
31576 Configuration on `date`:
31577
31578   Host:                       $host -- ${DISTNAME} ${DISTVER}
31579   Bacula version:             ${VERSION} (${DATE})
31580   Source code location:       ${srcdir}
31581   Install binaries:           ${sbindir}
31582   Install config files:       ${sysconfdir}
31583   Scripts directory:          ${scriptdir}
31584   Working directory:          ${working_dir}
31585   PID directory:              ${piddir}
31586   Subsys directory:           ${subsysdir}
31587   Man directory:              ${mandir}
31588   Data directory:             ${datadir}
31589   C Compiler:                 ${CC} ${CCVERSION}
31590   C++ Compiler:               ${CXX} ${CXXVERSION}
31591   Compiler flags:             ${WCFLAGS} ${CFLAGS}
31592   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
31593   Libraries:                  ${LIBS}
31594   Statically Linked Tools:    ${support_static_tools}
31595   Statically Linked FD:       ${support_static_fd}
31596   Statically Linked SD:       ${support_static_sd}
31597   Statically Linked DIR:      ${support_static_dir}
31598   Statically Linked CONS:     ${support_static_cons}
31599   Database type:              ${db_name}
31600   Database lib:               ${DB_LIBS}
31601
31602   Job Output Email:           ${job_email}
31603   Traceback Email:            ${dump_email}
31604   SMTP Host Address:          ${smtp_host}
31605
31606   Director Port:              ${dir_port}
31607   File daemon Port:           ${fd_port}
31608   Storage daemon Port:        ${sd_port}
31609
31610   Director User:              ${dir_user}
31611   Director Group:             ${dir_group}
31612   Storage Daemon User:        ${sd_user}
31613   Storage DaemonGroup:        ${sd_group}
31614   File Daemon User:           ${fd_user}
31615   File Daemon Group:          ${fd_group}
31616
31617   SQL binaries Directory      ${SQL_BINDIR}
31618
31619   Large file support:         $largefile_support
31620   Bacula conio support:       ${got_conio} ${CONS_LIBS}
31621   readline support:           ${got_readline} ${PRTREADLINE_SRC}
31622   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
31623   TLS support:                ${support_tls}
31624   Encryption support:         ${support_crypto}
31625   ZLIB support:               ${have_zlib}
31626   enable-smartalloc:          ${support_smartalloc}
31627   enable-gnome:               ${support_gnome} ${gnome_version}
31628   enable-wx-console:          ${support_wx_console} ${wx_version}
31629   enable-tray-monitor:        ${support_tray_monitor}
31630   client-only:                ${build_client_only}
31631   build-dird:                 ${build_dird}
31632   build-stored:               ${build_stored}
31633   ACL support:                ${have_acl}
31634   Python support:             ${support_python} ${PYTHON_LIBS}
31635
31636   " > config.out
31637
31638 cat config.out