]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
c23bc0956309feb3231a4d7d301518b65c736be0
[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 BAT_DIR QWT_INC QWT_LDFLAGS 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 db_name db_user dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_TYPE 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 bgnome-console GUI disabled
870   --enable-bat  enable build of bat Qt4 GUI disabled
871   --enable-bwx-console     enable build of wxWidgets console disabled
872   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
873   --enable-smartalloc     enable smartalloc debugging support disabled
874   --enable-static-tools   enable static tape tools disabled
875   --enable-static-fd      enable static File daemon disabled
876   --enable-static-sd      enable static Storage daemon disabled
877   --enable-static-dir     enable static Director disabled
878   --enable-static-cons    enable static Console disabled
879   --enable-client-only    build client (File daemon) only disabled
880   --enable-build-dird     enable building of dird (Director) enabled
881   --enable-build-stored   enable building of stored (Storage daemon) enabled
882  --disable-conio disable conio support enabled
883
884   --enable-ipv6             enable ipv6 support enabled
885
886   --disable-readline      disable readline support disable
887
888         --enable-batch-insert       enable the DB batch insert code disabled
889   --disable-largefile     omit support for large files
890
891 Optional Packages:
892   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
893   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
894   --with-gnu-ld           assume the C compiler uses GNU ld default=no
895   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
896   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
897   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
898   --without-libintl-prefix     don't search for libintl in includedir and libdir
899   --with-included-gettext use the GNU gettext library included here
900  --with-qwt[=DIR]                 specify qwt library directory
901  --with-readline[=DIR]         specify readline library directory
902
903   --with-python[=DIR]   Include Python support.  DIR is the Python base
904                           install directory, default is to search through
905                           a number of common places for the Python files.
906   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
907   --with-openssl[=DIR]
908                           Include OpenSSL support. DIR is the OpenSSL base
909   --with-working-dir=PATH        specify path of Bacula working directory
910   --with-scriptdir=PATH    specify path of Bacula scripts directory
911   --with-dump-email=EMAIL        dump email address
912   --with-job-email=EMAIL         job output email address
913   --with-smtp-host=HOST          SMTP mail host address
914   --with-pid-dir=PATH            specify location of Bacula pid files
915   --with-subsys-dir=PATH         specify location of Bacula subsys file
916   --with-baseport=PORT           specify base port address for daemons
917   --with-dir-password=PASSWORD   specify Director's password
918   --with-fd-password=PASSWORD    specify Client's password
919   --with-sd-password=PASSWORD    specify Storage daemon's password
920   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
921   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
922   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
923   --with-db-name=DBNAME        specify database name (default bacula)
924   --with-db-user=UNAME         specify database user (default bacula)
925   --with-dir-user=USER           specify user for Director daemon
926   --with-dir-group=GROUP                 specify group for Director daemon
927   --with-sd-user=USER            specify user for Storage daemon
928   --with-sd-group=GROUP          specify group for Storage daemon
929   --with-fd-user=USER            specify user for File daemon
930   --with-fd-group=GROUP          specify group for File daemon
931   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
932   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
933                           base install directory, defaults to /usr/local/pgsql
934
935   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
936                           install directory, default is to search through
937                           a number of common places for the MySQL files.
938
939   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
940                           install directory, default is to search through
941                           a number of common places for the MySQL files.
942
943   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
944                           install directory, default is to search through
945                           a number of common places for the SQLite3 files.
946
947   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
948                           install directory, default is to search through
949                           a number of common places for the SQLite files.
950   --with-x                use the X Window System
951
952 Some influential environment variables:
953   CC          C compiler command
954   CFLAGS      C compiler flags
955   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
956               nonstandard directory <lib dir>
957   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
958               headers in a nonstandard directory <include dir>
959   CXX         C++ compiler command
960   CXXFLAGS    C++ compiler flags
961   CPP         C preprocessor
962   WXCONFIG    wx-config command. On some systems, you must set it to
963               wx-config-2.6 to use wxWidgets 2.6.
964   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
965
966 Use these variables to override the choices made by `configure' or to help
967 it to find libraries and programs with nonstandard names/locations.
968
969 _ACEOF
970 fi
971
972 if test "$ac_init_help" = "recursive"; then
973   # If there are subdirs, report their specific --help.
974   ac_popdir=`pwd`
975   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
976     test -d $ac_dir || continue
977     ac_builddir=.
978
979 if test "$ac_dir" != .; then
980   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
981   # A "../" for each directory in $ac_dir_suffix.
982   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
983 else
984   ac_dir_suffix= ac_top_builddir=
985 fi
986
987 case $srcdir in
988   .)  # No --srcdir option.  We are building in place.
989     ac_srcdir=.
990     if test -z "$ac_top_builddir"; then
991        ac_top_srcdir=.
992     else
993        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
994     fi ;;
995   [\\/]* | ?:[\\/]* )  # Absolute path.
996     ac_srcdir=$srcdir$ac_dir_suffix;
997     ac_top_srcdir=$srcdir ;;
998   *) # Relative path.
999     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1000     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1001 esac
1002
1003 # Do not use `cd foo && pwd` to compute absolute paths, because
1004 # the directories may not exist.
1005 case `pwd` in
1006 .) ac_abs_builddir="$ac_dir";;
1007 *)
1008   case "$ac_dir" in
1009   .) ac_abs_builddir=`pwd`;;
1010   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1011   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1012   esac;;
1013 esac
1014 case $ac_abs_builddir in
1015 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1016 *)
1017   case ${ac_top_builddir}. in
1018   .) ac_abs_top_builddir=$ac_abs_builddir;;
1019   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1020   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1021   esac;;
1022 esac
1023 case $ac_abs_builddir in
1024 .) ac_abs_srcdir=$ac_srcdir;;
1025 *)
1026   case $ac_srcdir in
1027   .) ac_abs_srcdir=$ac_abs_builddir;;
1028   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1029   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1030   esac;;
1031 esac
1032 case $ac_abs_builddir in
1033 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1034 *)
1035   case $ac_top_srcdir in
1036   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1037   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1038   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1039   esac;;
1040 esac
1041
1042     cd $ac_dir
1043     # Check for guested configure; otherwise get Cygnus style configure.
1044     if test -f $ac_srcdir/configure.gnu; then
1045       echo
1046       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1047     elif test -f $ac_srcdir/configure; then
1048       echo
1049       $SHELL $ac_srcdir/configure  --help=recursive
1050     elif test -f $ac_srcdir/configure.ac ||
1051            test -f $ac_srcdir/configure.in; then
1052       echo
1053       $ac_configure --help
1054     else
1055       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1056     fi
1057     cd $ac_popdir
1058   done
1059 fi
1060
1061 test -n "$ac_init_help" && exit 0
1062 if $ac_init_version; then
1063   cat <<\_ACEOF
1064
1065 Copyright (C) 2003 Free Software Foundation, Inc.
1066 This configure script is free software; the Free Software Foundation
1067 gives unlimited permission to copy, distribute and modify it.
1068 _ACEOF
1069   exit 0
1070 fi
1071 exec 5>config.log
1072 cat >&5 <<_ACEOF
1073 This file contains any messages produced by compilers while
1074 running configure, to aid debugging if configure makes a mistake.
1075
1076 It was created by $as_me, which was
1077 generated by GNU Autoconf 2.59.  Invocation command line was
1078
1079   $ $0 $@
1080
1081 _ACEOF
1082 {
1083 cat <<_ASUNAME
1084 ## --------- ##
1085 ## Platform. ##
1086 ## --------- ##
1087
1088 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1089 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1090 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1091 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1092 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1093
1094 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1095 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1096
1097 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1098 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1099 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1100 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1101 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1102 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1103 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1104
1105 _ASUNAME
1106
1107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1108 for as_dir in $PATH
1109 do
1110   IFS=$as_save_IFS
1111   test -z "$as_dir" && as_dir=.
1112   echo "PATH: $as_dir"
1113 done
1114
1115 } >&5
1116
1117 cat >&5 <<_ACEOF
1118
1119
1120 ## ----------- ##
1121 ## Core tests. ##
1122 ## ----------- ##
1123
1124 _ACEOF
1125
1126
1127 # Keep a trace of the command line.
1128 # Strip out --no-create and --no-recursion so they do not pile up.
1129 # Strip out --silent because we don't want to record it for future runs.
1130 # Also quote any args containing shell meta-characters.
1131 # Make two passes to allow for proper duplicate-argument suppression.
1132 ac_configure_args=
1133 ac_configure_args0=
1134 ac_configure_args1=
1135 ac_sep=
1136 ac_must_keep_next=false
1137 for ac_pass in 1 2
1138 do
1139   for ac_arg
1140   do
1141     case $ac_arg in
1142     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1143     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144     | -silent | --silent | --silen | --sile | --sil)
1145       continue ;;
1146     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1147       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1148     esac
1149     case $ac_pass in
1150     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1151     2)
1152       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1153       if test $ac_must_keep_next = true; then
1154         ac_must_keep_next=false # Got value, back to normal.
1155       else
1156         case $ac_arg in
1157           *=* | --config-cache | -C | -disable-* | --disable-* \
1158           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1159           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1160           | -with-* | --with-* | -without-* | --without-* | --x)
1161             case "$ac_configure_args0 " in
1162               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1163             esac
1164             ;;
1165           -* ) ac_must_keep_next=true ;;
1166         esac
1167       fi
1168       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1169       # Get rid of the leading space.
1170       ac_sep=" "
1171       ;;
1172     esac
1173   done
1174 done
1175 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1176 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1177
1178 # When interrupted or exit'd, cleanup temporary files, and complete
1179 # config.log.  We remove comments because anyway the quotes in there
1180 # would cause problems or look ugly.
1181 # WARNING: Be sure not to use single quotes in there, as some shells,
1182 # such as our DU 5.0 friend, will then `close' the trap.
1183 trap 'exit_status=$?
1184   # Save into config.log some information that might help in debugging.
1185   {
1186     echo
1187
1188     cat <<\_ASBOX
1189 ## ---------------- ##
1190 ## Cache variables. ##
1191 ## ---------------- ##
1192 _ASBOX
1193     echo
1194     # The following way of writing the cache mishandles newlines in values,
1195 {
1196   (set) 2>&1 |
1197     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1198     *ac_space=\ *)
1199       sed -n \
1200         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1201           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1202       ;;
1203     *)
1204       sed -n \
1205         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1206       ;;
1207     esac;
1208 }
1209     echo
1210
1211     cat <<\_ASBOX
1212 ## ----------------- ##
1213 ## Output variables. ##
1214 ## ----------------- ##
1215 _ASBOX
1216     echo
1217     for ac_var in $ac_subst_vars
1218     do
1219       eval ac_val=$`echo $ac_var`
1220       echo "$ac_var='"'"'$ac_val'"'"'"
1221     done | sort
1222     echo
1223
1224     if test -n "$ac_subst_files"; then
1225       cat <<\_ASBOX
1226 ## ------------- ##
1227 ## Output files. ##
1228 ## ------------- ##
1229 _ASBOX
1230       echo
1231       for ac_var in $ac_subst_files
1232       do
1233         eval ac_val=$`echo $ac_var`
1234         echo "$ac_var='"'"'$ac_val'"'"'"
1235       done | sort
1236       echo
1237     fi
1238
1239     if test -s confdefs.h; then
1240       cat <<\_ASBOX
1241 ## ----------- ##
1242 ## confdefs.h. ##
1243 ## ----------- ##
1244 _ASBOX
1245       echo
1246       sed "/^$/d" confdefs.h | sort
1247       echo
1248     fi
1249     test "$ac_signal" != 0 &&
1250       echo "$as_me: caught signal $ac_signal"
1251     echo "$as_me: exit $exit_status"
1252   } >&5
1253   rm -f core *.core &&
1254   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1255     exit $exit_status
1256      ' 0
1257 for ac_signal in 1 2 13 15; do
1258   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1259 done
1260 ac_signal=0
1261
1262 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1263 rm -rf conftest* confdefs.h
1264 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1265 echo >confdefs.h
1266
1267 # Predefined preprocessor variables.
1268
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_NAME "$PACKAGE_NAME"
1271 _ACEOF
1272
1273
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1276 _ACEOF
1277
1278
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1281 _ACEOF
1282
1283
1284 cat >>confdefs.h <<_ACEOF
1285 #define PACKAGE_STRING "$PACKAGE_STRING"
1286 _ACEOF
1287
1288
1289 cat >>confdefs.h <<_ACEOF
1290 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1291 _ACEOF
1292
1293
1294 # Let the site file select an alternate cache file if it wants to.
1295 # Prefer explicitly selected file to automatically selected ones.
1296 if test -z "$CONFIG_SITE"; then
1297   if test "x$prefix" != xNONE; then
1298     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1299   else
1300     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1301   fi
1302 fi
1303 for ac_site_file in $CONFIG_SITE; do
1304   if test -r "$ac_site_file"; then
1305     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1306 echo "$as_me: loading site script $ac_site_file" >&6;}
1307     sed 's/^/| /' "$ac_site_file" >&5
1308     . "$ac_site_file"
1309   fi
1310 done
1311
1312 if test -r "$cache_file"; then
1313   # Some versions of bash will fail to source /dev/null (special
1314   # files actually), so we avoid doing that.
1315   if test -f "$cache_file"; then
1316     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1317 echo "$as_me: loading cache $cache_file" >&6;}
1318     case $cache_file in
1319       [\\/]* | ?:[\\/]* ) . $cache_file;;
1320       *)                      . ./$cache_file;;
1321     esac
1322   fi
1323 else
1324   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1325 echo "$as_me: creating cache $cache_file" >&6;}
1326   >$cache_file
1327 fi
1328
1329 # Check that the precious variables saved in the cache have kept the same
1330 # value.
1331 ac_cache_corrupted=false
1332 for ac_var in `(set) 2>&1 |
1333                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1334   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1335   eval ac_new_set=\$ac_env_${ac_var}_set
1336   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1337   eval ac_new_val="\$ac_env_${ac_var}_value"
1338   case $ac_old_set,$ac_new_set in
1339     set,)
1340       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1341 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1342       ac_cache_corrupted=: ;;
1343     ,set)
1344       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1345 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1346       ac_cache_corrupted=: ;;
1347     ,);;
1348     *)
1349       if test "x$ac_old_val" != "x$ac_new_val"; then
1350         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1351 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1352         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1353 echo "$as_me:   former value:  $ac_old_val" >&2;}
1354         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1355 echo "$as_me:   current value: $ac_new_val" >&2;}
1356         ac_cache_corrupted=:
1357       fi;;
1358   esac
1359   # Pass precious variables to config.status.
1360   if test "$ac_new_set" = set; then
1361     case $ac_new_val in
1362     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1363       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1364     *) ac_arg=$ac_var=$ac_new_val ;;
1365     esac
1366     case " $ac_configure_args " in
1367       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1368       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1369     esac
1370   fi
1371 done
1372 if $ac_cache_corrupted; then
1373   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1374 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1375   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1376 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1377    { (exit 1); exit 1; }; }
1378 fi
1379
1380 ac_ext=c
1381 ac_cpp='$CPP $CPPFLAGS'
1382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404 BUILD_DIR=`pwd`
1405 cd ..
1406 TOP_DIR=`pwd`
1407 cd ${BUILD_DIR}
1408
1409
1410 ac_aux_dir=
1411 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1412   if test -f $ac_dir/install-sh; then
1413     ac_aux_dir=$ac_dir
1414     ac_install_sh="$ac_aux_dir/install-sh -c"
1415     break
1416   elif test -f $ac_dir/install.sh; then
1417     ac_aux_dir=$ac_dir
1418     ac_install_sh="$ac_aux_dir/install.sh -c"
1419     break
1420   elif test -f $ac_dir/shtool; then
1421     ac_aux_dir=$ac_dir
1422     ac_install_sh="$ac_aux_dir/shtool install -c"
1423     break
1424   fi
1425 done
1426 if test -z "$ac_aux_dir"; then
1427   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1428 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1429    { (exit 1); exit 1; }; }
1430 fi
1431 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1432 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1433 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1434
1435           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1436
1437
1438
1439
1440
1441 for ac_prog in true
1442 do
1443   # Extract the first word of "$ac_prog", so it can be a program name with args.
1444 set dummy $ac_prog; ac_word=$2
1445 echo "$as_me:$LINENO: checking for $ac_word" >&5
1446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1448   echo $ECHO_N "(cached) $ECHO_C" >&6
1449 else
1450   case $TRUEPRG in
1451   [\\/]* | ?:[\\/]*)
1452   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1453   ;;
1454   *)
1455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1456 for as_dir in $PATH
1457 do
1458   IFS=$as_save_IFS
1459   test -z "$as_dir" && as_dir=.
1460   for ac_exec_ext in '' $ac_executable_extensions; do
1461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1462     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464     break 2
1465   fi
1466 done
1467 done
1468
1469   ;;
1470 esac
1471 fi
1472 TRUEPRG=$ac_cv_path_TRUEPRG
1473
1474 if test -n "$TRUEPRG"; then
1475   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1476 echo "${ECHO_T}$TRUEPRG" >&6
1477 else
1478   echo "$as_me:$LINENO: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1480 fi
1481
1482   test -n "$TRUEPRG" && break
1483 done
1484 test -n "$TRUEPRG" || TRUEPRG=":"
1485
1486 for ac_prog in false
1487 do
1488   # Extract the first word of "$ac_prog", so it can be a program name with args.
1489 set dummy $ac_prog; ac_word=$2
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1493   echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495   case $FALSEPRG in
1496   [\\/]* | ?:[\\/]*)
1497   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1498   ;;
1499   *)
1500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501 for as_dir in $PATH
1502 do
1503   IFS=$as_save_IFS
1504   test -z "$as_dir" && as_dir=.
1505   for ac_exec_ext in '' $ac_executable_extensions; do
1506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1509     break 2
1510   fi
1511 done
1512 done
1513
1514   ;;
1515 esac
1516 fi
1517 FALSEPRG=$ac_cv_path_FALSEPRG
1518
1519 if test -n "$FALSEPRG"; then
1520   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1521 echo "${ECHO_T}$FALSEPRG" >&6
1522 else
1523   echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1525 fi
1526
1527   test -n "$FALSEPRG" && break
1528 done
1529 test -n "$FALSEPRG" || FALSEPRG=":"
1530
1531
1532
1533 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1534 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1535 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1536 echo "configuring for bacula $VERSION ($DATE)"
1537
1538
1539
1540 ac_ext=c
1541 ac_cpp='$CPP $CPPFLAGS'
1542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1545 if test -n "$ac_tool_prefix"; then
1546   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1547 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_CC+set}" = set; then
1551   echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553   if test -n "$CC"; then
1554   ac_cv_prog_CC="$CC" # Let the user override the test.
1555 else
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 for as_dir in $PATH
1558 do
1559   IFS=$as_save_IFS
1560   test -z "$as_dir" && as_dir=.
1561   for ac_exec_ext in '' $ac_executable_extensions; do
1562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565     break 2
1566   fi
1567 done
1568 done
1569
1570 fi
1571 fi
1572 CC=$ac_cv_prog_CC
1573 if test -n "$CC"; then
1574   echo "$as_me:$LINENO: result: $CC" >&5
1575 echo "${ECHO_T}$CC" >&6
1576 else
1577   echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1579 fi
1580
1581 fi
1582 if test -z "$ac_cv_prog_CC"; then
1583   ac_ct_CC=$CC
1584   # Extract the first word of "gcc", so it can be a program name with args.
1585 set dummy gcc; ac_word=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1589   echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591   if test -n "$ac_ct_CC"; then
1592   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1593 else
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1596 do
1597   IFS=$as_save_IFS
1598   test -z "$as_dir" && as_dir=.
1599   for ac_exec_ext in '' $ac_executable_extensions; do
1600   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601     ac_cv_prog_ac_ct_CC="gcc"
1602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603     break 2
1604   fi
1605 done
1606 done
1607
1608 fi
1609 fi
1610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1611 if test -n "$ac_ct_CC"; then
1612   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1613 echo "${ECHO_T}$ac_ct_CC" >&6
1614 else
1615   echo "$as_me:$LINENO: result: no" >&5
1616 echo "${ECHO_T}no" >&6
1617 fi
1618
1619   CC=$ac_ct_CC
1620 else
1621   CC="$ac_cv_prog_CC"
1622 fi
1623
1624 if test -z "$CC"; then
1625   if test -n "$ac_tool_prefix"; then
1626   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1627 set dummy ${ac_tool_prefix}cc; ac_word=$2
1628 echo "$as_me:$LINENO: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_CC+set}" = set; then
1631   echo $ECHO_N "(cached) $ECHO_C" >&6
1632 else
1633   if test -n "$CC"; then
1634   ac_cv_prog_CC="$CC" # Let the user override the test.
1635 else
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 for as_dir in $PATH
1638 do
1639   IFS=$as_save_IFS
1640   test -z "$as_dir" && as_dir=.
1641   for ac_exec_ext in '' $ac_executable_extensions; do
1642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643     ac_cv_prog_CC="${ac_tool_prefix}cc"
1644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645     break 2
1646   fi
1647 done
1648 done
1649
1650 fi
1651 fi
1652 CC=$ac_cv_prog_CC
1653 if test -n "$CC"; then
1654   echo "$as_me:$LINENO: result: $CC" >&5
1655 echo "${ECHO_T}$CC" >&6
1656 else
1657   echo "$as_me:$LINENO: result: no" >&5
1658 echo "${ECHO_T}no" >&6
1659 fi
1660
1661 fi
1662 if test -z "$ac_cv_prog_CC"; then
1663   ac_ct_CC=$CC
1664   # Extract the first word of "cc", so it can be a program name with args.
1665 set dummy cc; ac_word=$2
1666 echo "$as_me:$LINENO: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1669   echo $ECHO_N "(cached) $ECHO_C" >&6
1670 else
1671   if test -n "$ac_ct_CC"; then
1672   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1673 else
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 for as_dir in $PATH
1676 do
1677   IFS=$as_save_IFS
1678   test -z "$as_dir" && as_dir=.
1679   for ac_exec_ext in '' $ac_executable_extensions; do
1680   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681     ac_cv_prog_ac_ct_CC="cc"
1682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683     break 2
1684   fi
1685 done
1686 done
1687
1688 fi
1689 fi
1690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1691 if test -n "$ac_ct_CC"; then
1692   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1693 echo "${ECHO_T}$ac_ct_CC" >&6
1694 else
1695   echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1697 fi
1698
1699   CC=$ac_ct_CC
1700 else
1701   CC="$ac_cv_prog_CC"
1702 fi
1703
1704 fi
1705 if test -z "$CC"; then
1706   # Extract the first word of "cc", so it can be a program name with args.
1707 set dummy cc; ac_word=$2
1708 echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_CC+set}" = set; then
1711   echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713   if test -n "$CC"; then
1714   ac_cv_prog_CC="$CC" # Let the user override the test.
1715 else
1716   ac_prog_rejected=no
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 for as_dir in $PATH
1719 do
1720   IFS=$as_save_IFS
1721   test -z "$as_dir" && as_dir=.
1722   for ac_exec_ext in '' $ac_executable_extensions; do
1723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1725        ac_prog_rejected=yes
1726        continue
1727      fi
1728     ac_cv_prog_CC="cc"
1729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730     break 2
1731   fi
1732 done
1733 done
1734
1735 if test $ac_prog_rejected = yes; then
1736   # We found a bogon in the path, so make sure we never use it.
1737   set dummy $ac_cv_prog_CC
1738   shift
1739   if test $# != 0; then
1740     # We chose a different compiler from the bogus one.
1741     # However, it has the same basename, so the bogon will be chosen
1742     # first if we set CC to just the basename; use the full file name.
1743     shift
1744     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1745   fi
1746 fi
1747 fi
1748 fi
1749 CC=$ac_cv_prog_CC
1750 if test -n "$CC"; then
1751   echo "$as_me:$LINENO: result: $CC" >&5
1752 echo "${ECHO_T}$CC" >&6
1753 else
1754   echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1756 fi
1757
1758 fi
1759 if test -z "$CC"; then
1760   if test -n "$ac_tool_prefix"; then
1761   for ac_prog in cl
1762   do
1763     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_CC+set}" = set; then
1768   echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770   if test -n "$CC"; then
1771   ac_cv_prog_CC="$CC" # Let the user override the test.
1772 else
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 for as_dir in $PATH
1775 do
1776   IFS=$as_save_IFS
1777   test -z "$as_dir" && as_dir=.
1778   for ac_exec_ext in '' $ac_executable_extensions; do
1779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782     break 2
1783   fi
1784 done
1785 done
1786
1787 fi
1788 fi
1789 CC=$ac_cv_prog_CC
1790 if test -n "$CC"; then
1791   echo "$as_me:$LINENO: result: $CC" >&5
1792 echo "${ECHO_T}$CC" >&6
1793 else
1794   echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796 fi
1797
1798     test -n "$CC" && break
1799   done
1800 fi
1801 if test -z "$CC"; then
1802   ac_ct_CC=$CC
1803   for ac_prog in cl
1804 do
1805   # Extract the first word of "$ac_prog", so it can be a program name with args.
1806 set dummy $ac_prog; ac_word=$2
1807 echo "$as_me:$LINENO: checking for $ac_word" >&5
1808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1810   echo $ECHO_N "(cached) $ECHO_C" >&6
1811 else
1812   if test -n "$ac_ct_CC"; then
1813   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1814 else
1815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 for as_dir in $PATH
1817 do
1818   IFS=$as_save_IFS
1819   test -z "$as_dir" && as_dir=.
1820   for ac_exec_ext in '' $ac_executable_extensions; do
1821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822     ac_cv_prog_ac_ct_CC="$ac_prog"
1823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824     break 2
1825   fi
1826 done
1827 done
1828
1829 fi
1830 fi
1831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1832 if test -n "$ac_ct_CC"; then
1833   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1834 echo "${ECHO_T}$ac_ct_CC" >&6
1835 else
1836   echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6
1838 fi
1839
1840   test -n "$ac_ct_CC" && break
1841 done
1842
1843   CC=$ac_ct_CC
1844 fi
1845
1846 fi
1847
1848
1849 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1850 See \`config.log' for more details." >&5
1851 echo "$as_me: error: no acceptable C compiler found in \$PATH
1852 See \`config.log' for more details." >&2;}
1853    { (exit 1); exit 1; }; }
1854
1855 # Provide some information about the compiler.
1856 echo "$as_me:$LINENO:" \
1857      "checking for C compiler version" >&5
1858 ac_compiler=`set X $ac_compile; echo $2`
1859 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1860   (eval $ac_compiler --version </dev/null >&5) 2>&5
1861   ac_status=$?
1862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863   (exit $ac_status); }
1864 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1865   (eval $ac_compiler -v </dev/null >&5) 2>&5
1866   ac_status=$?
1867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868   (exit $ac_status); }
1869 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1870   (eval $ac_compiler -V </dev/null >&5) 2>&5
1871   ac_status=$?
1872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873   (exit $ac_status); }
1874
1875 cat >conftest.$ac_ext <<_ACEOF
1876 /* confdefs.h.  */
1877 _ACEOF
1878 cat confdefs.h >>conftest.$ac_ext
1879 cat >>conftest.$ac_ext <<_ACEOF
1880 /* end confdefs.h.  */
1881
1882 int
1883 main ()
1884 {
1885
1886   ;
1887   return 0;
1888 }
1889 _ACEOF
1890 ac_clean_files_save=$ac_clean_files
1891 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1892 # Try to create an executable without -o first, disregard a.out.
1893 # It will help us diagnose broken compilers, and finding out an intuition
1894 # of exeext.
1895 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1896 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1897 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1898 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1899   (eval $ac_link_default) 2>&5
1900   ac_status=$?
1901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902   (exit $ac_status); }; then
1903   # Find the output, starting from the most likely.  This scheme is
1904 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1905 # resort.
1906
1907 # Be careful to initialize this variable, since it used to be cached.
1908 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1909 ac_cv_exeext=
1910 # b.out is created by i960 compilers.
1911 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1912 do
1913   test -f "$ac_file" || continue
1914   case $ac_file in
1915     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1916         ;;
1917     conftest.$ac_ext )
1918         # This is the source file.
1919         ;;
1920     [ab].out )
1921         # We found the default executable, but exeext='' is most
1922         # certainly right.
1923         break;;
1924     *.* )
1925         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1926         # FIXME: I believe we export ac_cv_exeext for Libtool,
1927         # but it would be cool to find out if it's true.  Does anybody
1928         # maintain Libtool? --akim.
1929         export ac_cv_exeext
1930         break;;
1931     * )
1932         break;;
1933   esac
1934 done
1935 else
1936   echo "$as_me: failed program was:" >&5
1937 sed 's/^/| /' conftest.$ac_ext >&5
1938
1939 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: C compiler cannot create executables
1942 See \`config.log' for more details." >&2;}
1943    { (exit 77); exit 77; }; }
1944 fi
1945
1946 ac_exeext=$ac_cv_exeext
1947 echo "$as_me:$LINENO: result: $ac_file" >&5
1948 echo "${ECHO_T}$ac_file" >&6
1949
1950 # Check the compiler produces executables we can run.  If not, either
1951 # the compiler is broken, or we cross compile.
1952 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1953 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1954 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1955 # If not cross compiling, check that we can run a simple program.
1956 if test "$cross_compiling" != yes; then
1957   if { ac_try='./$ac_file'
1958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1959   (eval $ac_try) 2>&5
1960   ac_status=$?
1961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962   (exit $ac_status); }; }; then
1963     cross_compiling=no
1964   else
1965     if test "$cross_compiling" = maybe; then
1966         cross_compiling=yes
1967     else
1968         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1969 If you meant to cross compile, use \`--host'.
1970 See \`config.log' for more details." >&5
1971 echo "$as_me: error: cannot run C compiled programs.
1972 If you meant to cross compile, use \`--host'.
1973 See \`config.log' for more details." >&2;}
1974    { (exit 1); exit 1; }; }
1975     fi
1976   fi
1977 fi
1978 echo "$as_me:$LINENO: result: yes" >&5
1979 echo "${ECHO_T}yes" >&6
1980
1981 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1982 ac_clean_files=$ac_clean_files_save
1983 # Check the compiler produces executables we can run.  If not, either
1984 # the compiler is broken, or we cross compile.
1985 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1986 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1987 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1988 echo "${ECHO_T}$cross_compiling" >&6
1989
1990 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1991 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1993   (eval $ac_link) 2>&5
1994   ac_status=$?
1995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996   (exit $ac_status); }; then
1997   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1998 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1999 # work properly (i.e., refer to `conftest.exe'), while it won't with
2000 # `rm'.
2001 for ac_file in conftest.exe conftest conftest.*; do
2002   test -f "$ac_file" || continue
2003   case $ac_file in
2004     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2005     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2006           export ac_cv_exeext
2007           break;;
2008     * ) break;;
2009   esac
2010 done
2011 else
2012   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2013 See \`config.log' for more details." >&5
2014 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2015 See \`config.log' for more details." >&2;}
2016    { (exit 1); exit 1; }; }
2017 fi
2018
2019 rm -f conftest$ac_cv_exeext
2020 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2021 echo "${ECHO_T}$ac_cv_exeext" >&6
2022
2023 rm -f conftest.$ac_ext
2024 EXEEXT=$ac_cv_exeext
2025 ac_exeext=$EXEEXT
2026 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2027 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2028 if test "${ac_cv_objext+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   cat >conftest.$ac_ext <<_ACEOF
2032 /* confdefs.h.  */
2033 _ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h.  */
2037
2038 int
2039 main ()
2040 {
2041
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 rm -f conftest.o conftest.obj
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048   (eval $ac_compile) 2>&5
2049   ac_status=$?
2050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051   (exit $ac_status); }; then
2052   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2053   case $ac_file in
2054     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2055     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2056        break;;
2057   esac
2058 done
2059 else
2060   echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2062
2063 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2064 See \`config.log' for more details." >&5
2065 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2066 See \`config.log' for more details." >&2;}
2067    { (exit 1); exit 1; }; }
2068 fi
2069
2070 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2071 fi
2072 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2073 echo "${ECHO_T}$ac_cv_objext" >&6
2074 OBJEXT=$ac_cv_objext
2075 ac_objext=$OBJEXT
2076 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2077 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2078 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2079   echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081   cat >conftest.$ac_ext <<_ACEOF
2082 /* confdefs.h.  */
2083 _ACEOF
2084 cat confdefs.h >>conftest.$ac_ext
2085 cat >>conftest.$ac_ext <<_ACEOF
2086 /* end confdefs.h.  */
2087
2088 int
2089 main ()
2090 {
2091 #ifndef __GNUC__
2092        choke me
2093 #endif
2094
2095   ;
2096   return 0;
2097 }
2098 _ACEOF
2099 rm -f conftest.$ac_objext
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101   (eval $ac_compile) 2>conftest.er1
2102   ac_status=$?
2103   grep -v '^ *+' conftest.er1 >conftest.err
2104   rm -f conftest.er1
2105   cat conftest.err >&5
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); } &&
2108          { ac_try='test -z "$ac_c_werror_flag"
2109                          || test ! -s conftest.err'
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); }; } &&
2115          { ac_try='test -s conftest.$ac_objext'
2116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117   (eval $ac_try) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }; }; then
2121   ac_compiler_gnu=yes
2122 else
2123   echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126 ac_compiler_gnu=no
2127 fi
2128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2129 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2130
2131 fi
2132 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2133 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2134 GCC=`test $ac_compiler_gnu = yes && echo yes`
2135 ac_test_CFLAGS=${CFLAGS+set}
2136 ac_save_CFLAGS=$CFLAGS
2137 CFLAGS="-g"
2138 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2139 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2140 if test "${ac_cv_prog_cc_g+set}" = set; then
2141   echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143   cat >conftest.$ac_ext <<_ACEOF
2144 /* confdefs.h.  */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h.  */
2149
2150 int
2151 main ()
2152 {
2153
2154   ;
2155   return 0;
2156 }
2157 _ACEOF
2158 rm -f conftest.$ac_objext
2159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2160   (eval $ac_compile) 2>conftest.er1
2161   ac_status=$?
2162   grep -v '^ *+' conftest.er1 >conftest.err
2163   rm -f conftest.er1
2164   cat conftest.err >&5
2165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166   (exit $ac_status); } &&
2167          { ac_try='test -z "$ac_c_werror_flag"
2168                          || test ! -s conftest.err'
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); }; } &&
2174          { ac_try='test -s conftest.$ac_objext'
2175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176   (eval $ac_try) 2>&5
2177   ac_status=$?
2178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179   (exit $ac_status); }; }; then
2180   ac_cv_prog_cc_g=yes
2181 else
2182   echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2184
2185 ac_cv_prog_cc_g=no
2186 fi
2187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2188 fi
2189 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2190 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2191 if test "$ac_test_CFLAGS" = set; then
2192   CFLAGS=$ac_save_CFLAGS
2193 elif test $ac_cv_prog_cc_g = yes; then
2194   if test "$GCC" = yes; then
2195     CFLAGS="-g -O2"
2196   else
2197     CFLAGS="-g"
2198   fi
2199 else
2200   if test "$GCC" = yes; then
2201     CFLAGS="-O2"
2202   else
2203     CFLAGS=
2204   fi
2205 fi
2206 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2207 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2208 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2209   echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211   ac_cv_prog_cc_stdc=no
2212 ac_save_CC=$CC
2213 cat >conftest.$ac_ext <<_ACEOF
2214 /* confdefs.h.  */
2215 _ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h.  */
2219 #include <stdarg.h>
2220 #include <stdio.h>
2221 #include <sys/types.h>
2222 #include <sys/stat.h>
2223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2224 struct buf { int x; };
2225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2226 static char *e (p, i)
2227      char **p;
2228      int i;
2229 {
2230   return p[i];
2231 }
2232 static char *f (char * (*g) (char **, int), char **p, ...)
2233 {
2234   char *s;
2235   va_list v;
2236   va_start (v,p);
2237   s = g (p, va_arg (v,int));
2238   va_end (v);
2239   return s;
2240 }
2241
2242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2243    function prototypes and stuff, but not '\xHH' hex character constants.
2244    These don't provoke an error unfortunately, instead are silently treated
2245    as 'x'.  The following induces an error, until -std1 is added to get
2246    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2247    array size at least.  It's necessary to write '\x00'==0 to get something
2248    that's true only with -std1.  */
2249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2250
2251 int test (int i, double x);
2252 struct s1 {int (*f) (int a);};
2253 struct s2 {int (*f) (double a);};
2254 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2255 int argc;
2256 char **argv;
2257 int
2258 main ()
2259 {
2260 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 # Don't try gcc -ansi; that turns off useful extensions and
2266 # breaks some systems' header files.
2267 # AIX                   -qlanglvl=ansi
2268 # Ultrix and OSF/1      -std1
2269 # HP-UX 10.20 and later -Ae
2270 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2271 # SVR4                  -Xc -D__EXTENSIONS__
2272 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2273 do
2274   CC="$ac_save_CC $ac_arg"
2275   rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277   (eval $ac_compile) 2>conftest.er1
2278   ac_status=$?
2279   grep -v '^ *+' conftest.er1 >conftest.err
2280   rm -f conftest.er1
2281   cat conftest.err >&5
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); } &&
2284          { ac_try='test -z "$ac_c_werror_flag"
2285                          || test ! -s conftest.err'
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); }; } &&
2291          { ac_try='test -s conftest.$ac_objext'
2292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293   (eval $ac_try) 2>&5
2294   ac_status=$?
2295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296   (exit $ac_status); }; }; then
2297   ac_cv_prog_cc_stdc=$ac_arg
2298 break
2299 else
2300   echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2302
2303 fi
2304 rm -f conftest.err conftest.$ac_objext
2305 done
2306 rm -f conftest.$ac_ext conftest.$ac_objext
2307 CC=$ac_save_CC
2308
2309 fi
2310
2311 case "x$ac_cv_prog_cc_stdc" in
2312   x|xno)
2313     echo "$as_me:$LINENO: result: none needed" >&5
2314 echo "${ECHO_T}none needed" >&6 ;;
2315   *)
2316     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2317 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2318     CC="$CC $ac_cv_prog_cc_stdc" ;;
2319 esac
2320
2321 # Some people use a C++ compiler to compile C.  Since we use `exit',
2322 # in C++ we need to declare it.  In case someone uses the same compiler
2323 # for both compiling C and C++ we need to have the C++ compiler decide
2324 # the declaration of exit, since it's the most demanding environment.
2325 cat >conftest.$ac_ext <<_ACEOF
2326 #ifndef __cplusplus
2327   choke me
2328 #endif
2329 _ACEOF
2330 rm -f conftest.$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332   (eval $ac_compile) 2>conftest.er1
2333   ac_status=$?
2334   grep -v '^ *+' conftest.er1 >conftest.err
2335   rm -f conftest.er1
2336   cat conftest.err >&5
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); } &&
2339          { ac_try='test -z "$ac_c_werror_flag"
2340                          || test ! -s conftest.err'
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); }; } &&
2346          { ac_try='test -s conftest.$ac_objext'
2347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348   (eval $ac_try) 2>&5
2349   ac_status=$?
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); }; }; then
2352   for ac_declaration in \
2353    '' \
2354    'extern "C" void std::exit (int) throw (); using std::exit;' \
2355    'extern "C" void std::exit (int); using std::exit;' \
2356    'extern "C" void exit (int) throw ();' \
2357    'extern "C" void exit (int);' \
2358    'void exit (int);'
2359 do
2360   cat >conftest.$ac_ext <<_ACEOF
2361 /* confdefs.h.  */
2362 _ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h.  */
2366 $ac_declaration
2367 #include <stdlib.h>
2368 int
2369 main ()
2370 {
2371 exit (42);
2372   ;
2373   return 0;
2374 }
2375 _ACEOF
2376 rm -f conftest.$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378   (eval $ac_compile) 2>conftest.er1
2379   ac_status=$?
2380   grep -v '^ *+' conftest.er1 >conftest.err
2381   rm -f conftest.er1
2382   cat conftest.err >&5
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); } &&
2385          { ac_try='test -z "$ac_c_werror_flag"
2386                          || test ! -s conftest.err'
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); }; } &&
2392          { ac_try='test -s conftest.$ac_objext'
2393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394   (eval $ac_try) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; }; then
2398   :
2399 else
2400   echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 continue
2404 fi
2405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2406   cat >conftest.$ac_ext <<_ACEOF
2407 /* confdefs.h.  */
2408 _ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h.  */
2412 $ac_declaration
2413 int
2414 main ()
2415 {
2416 exit (42);
2417   ;
2418   return 0;
2419 }
2420 _ACEOF
2421 rm -f conftest.$ac_objext
2422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423   (eval $ac_compile) 2>conftest.er1
2424   ac_status=$?
2425   grep -v '^ *+' conftest.er1 >conftest.err
2426   rm -f conftest.er1
2427   cat conftest.err >&5
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); } &&
2430          { ac_try='test -z "$ac_c_werror_flag"
2431                          || test ! -s conftest.err'
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); }; } &&
2437          { ac_try='test -s conftest.$ac_objext'
2438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439   (eval $ac_try) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; }; then
2443   break
2444 else
2445   echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 fi
2449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2450 done
2451 rm -f conftest*
2452 if test -n "$ac_declaration"; then
2453   echo '#ifdef __cplusplus' >>confdefs.h
2454   echo $ac_declaration      >>confdefs.h
2455   echo '#endif'             >>confdefs.h
2456 fi
2457
2458 else
2459   echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2461
2462 fi
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2464 ac_ext=c
2465 ac_cpp='$CPP $CPPFLAGS'
2466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469
2470 ac_ext=cc
2471 ac_cpp='$CXXCPP $CPPFLAGS'
2472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2475 if test -n "$ac_tool_prefix"; then
2476   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2477   do
2478     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2480 echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2482 if test "${ac_cv_prog_CXX+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   if test -n "$CXX"; then
2486   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493   for ac_exec_ext in '' $ac_executable_extensions; do
2494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497     break 2
2498   fi
2499 done
2500 done
2501
2502 fi
2503 fi
2504 CXX=$ac_cv_prog_CXX
2505 if test -n "$CXX"; then
2506   echo "$as_me:$LINENO: result: $CXX" >&5
2507 echo "${ECHO_T}$CXX" >&6
2508 else
2509   echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6
2511 fi
2512
2513     test -n "$CXX" && break
2514   done
2515 fi
2516 if test -z "$CXX"; then
2517   ac_ct_CXX=$CXX
2518   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2519 do
2520   # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   if test -n "$ac_ct_CXX"; then
2528   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535   for ac_exec_ext in '' $ac_executable_extensions; do
2536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537     ac_cv_prog_ac_ct_CXX="$ac_prog"
2538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542 done
2543
2544 fi
2545 fi
2546 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2547 if test -n "$ac_ct_CXX"; then
2548   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2549 echo "${ECHO_T}$ac_ct_CXX" >&6
2550 else
2551   echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2553 fi
2554
2555   test -n "$ac_ct_CXX" && break
2556 done
2557 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2558
2559   CXX=$ac_ct_CXX
2560 fi
2561
2562
2563 # Provide some information about the compiler.
2564 echo "$as_me:$LINENO:" \
2565      "checking for C++ compiler version" >&5
2566 ac_compiler=`set X $ac_compile; echo $2`
2567 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2568   (eval $ac_compiler --version </dev/null >&5) 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }
2572 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2573   (eval $ac_compiler -v </dev/null >&5) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }
2577 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2578   (eval $ac_compiler -V </dev/null >&5) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }
2582
2583 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2584 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2585 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   cat >conftest.$ac_ext <<_ACEOF
2589 /* confdefs.h.  */
2590 _ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h.  */
2594
2595 int
2596 main ()
2597 {
2598 #ifndef __GNUC__
2599        choke me
2600 #endif
2601
2602   ;
2603   return 0;
2604 }
2605 _ACEOF
2606 rm -f conftest.$ac_objext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608   (eval $ac_compile) 2>conftest.er1
2609   ac_status=$?
2610   grep -v '^ *+' conftest.er1 >conftest.err
2611   rm -f conftest.er1
2612   cat conftest.err >&5
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); } &&
2615          { ac_try='test -z "$ac_cxx_werror_flag"
2616                          || test ! -s conftest.err'
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); }; } &&
2622          { ac_try='test -s conftest.$ac_objext'
2623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624   (eval $ac_try) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }; }; then
2628   ac_compiler_gnu=yes
2629 else
2630   echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2632
2633 ac_compiler_gnu=no
2634 fi
2635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2636 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2637
2638 fi
2639 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2640 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2641 GXX=`test $ac_compiler_gnu = yes && echo yes`
2642 ac_test_CXXFLAGS=${CXXFLAGS+set}
2643 ac_save_CXXFLAGS=$CXXFLAGS
2644 CXXFLAGS="-g"
2645 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2646 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2647 if test "${ac_cv_prog_cxx_g+set}" = set; then
2648   echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650   cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h.  */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h.  */
2656
2657 int
2658 main ()
2659 {
2660
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667   (eval $ac_compile) 2>conftest.er1
2668   ac_status=$?
2669   grep -v '^ *+' conftest.er1 >conftest.err
2670   rm -f conftest.er1
2671   cat conftest.err >&5
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); } &&
2674          { ac_try='test -z "$ac_cxx_werror_flag"
2675                          || test ! -s conftest.err'
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); }; } &&
2681          { ac_try='test -s conftest.$ac_objext'
2682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683   (eval $ac_try) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }; }; then
2687   ac_cv_prog_cxx_g=yes
2688 else
2689   echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2691
2692 ac_cv_prog_cxx_g=no
2693 fi
2694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695 fi
2696 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2697 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2698 if test "$ac_test_CXXFLAGS" = set; then
2699   CXXFLAGS=$ac_save_CXXFLAGS
2700 elif test $ac_cv_prog_cxx_g = yes; then
2701   if test "$GXX" = yes; then
2702     CXXFLAGS="-g -O2"
2703   else
2704     CXXFLAGS="-g"
2705   fi
2706 else
2707   if test "$GXX" = yes; then
2708     CXXFLAGS="-O2"
2709   else
2710     CXXFLAGS=
2711   fi
2712 fi
2713 for ac_declaration in \
2714    '' \
2715    'extern "C" void std::exit (int) throw (); using std::exit;' \
2716    'extern "C" void std::exit (int); using std::exit;' \
2717    'extern "C" void exit (int) throw ();' \
2718    'extern "C" void exit (int);' \
2719    'void exit (int);'
2720 do
2721   cat >conftest.$ac_ext <<_ACEOF
2722 /* confdefs.h.  */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h.  */
2727 $ac_declaration
2728 #include <stdlib.h>
2729 int
2730 main ()
2731 {
2732 exit (42);
2733   ;
2734   return 0;
2735 }
2736 _ACEOF
2737 rm -f conftest.$ac_objext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739   (eval $ac_compile) 2>conftest.er1
2740   ac_status=$?
2741   grep -v '^ *+' conftest.er1 >conftest.err
2742   rm -f conftest.er1
2743   cat conftest.err >&5
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); } &&
2746          { ac_try='test -z "$ac_cxx_werror_flag"
2747                          || test ! -s conftest.err'
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); }; } &&
2753          { ac_try='test -s conftest.$ac_objext'
2754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755   (eval $ac_try) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; }; then
2759   :
2760 else
2761   echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2763
2764 continue
2765 fi
2766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2767   cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h.  */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h.  */
2773 $ac_declaration
2774 int
2775 main ()
2776 {
2777 exit (42);
2778   ;
2779   return 0;
2780 }
2781 _ACEOF
2782 rm -f conftest.$ac_objext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784   (eval $ac_compile) 2>conftest.er1
2785   ac_status=$?
2786   grep -v '^ *+' conftest.er1 >conftest.err
2787   rm -f conftest.er1
2788   cat conftest.err >&5
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); } &&
2791          { ac_try='test -z "$ac_cxx_werror_flag"
2792                          || test ! -s conftest.err'
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); }; } &&
2798          { ac_try='test -s conftest.$ac_objext'
2799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; }; then
2804   break
2805 else
2806   echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809 fi
2810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811 done
2812 rm -f conftest*
2813 if test -n "$ac_declaration"; then
2814   echo '#ifdef __cplusplus' >>confdefs.h
2815   echo $ac_declaration      >>confdefs.h
2816   echo '#endif'             >>confdefs.h
2817 fi
2818
2819 ac_ext=c
2820 ac_cpp='$CPP $CPPFLAGS'
2821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2824
2825 if test "x$CC" != xcc; then
2826   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2827 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2828 else
2829   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2830 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2831 fi
2832 set dummy $CC; ac_cc=`echo $2 |
2833                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2834 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2835   echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837   cat >conftest.$ac_ext <<_ACEOF
2838 /* confdefs.h.  */
2839 _ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h.  */
2843
2844 int
2845 main ()
2846 {
2847
2848   ;
2849   return 0;
2850 }
2851 _ACEOF
2852 # Make sure it works both with $CC and with simple cc.
2853 # We do the test twice because some compilers refuse to overwrite an
2854 # existing .o file with -o, though they will create one.
2855 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2856 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857   (eval $ac_try) 2>&5
2858   ac_status=$?
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); } &&
2861    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862   (eval $ac_try) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); };
2866 then
2867   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2868   if test "x$CC" != xcc; then
2869     # Test first that cc exists at all.
2870     if { ac_try='cc -c conftest.$ac_ext >&5'
2871   { (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); }; }; then
2876       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2877       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878   (eval $ac_try) 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); } &&
2882          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883   (eval $ac_try) 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); };
2887       then
2888         # cc works too.
2889         :
2890       else
2891         # cc exists but doesn't like -o.
2892         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2893       fi
2894     fi
2895   fi
2896 else
2897   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2898 fi
2899 rm -f conftest*
2900
2901 fi
2902 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2903   echo "$as_me:$LINENO: result: yes" >&5
2904 echo "${ECHO_T}yes" >&6
2905 else
2906   echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2908
2909 cat >>confdefs.h <<\_ACEOF
2910 #define NO_MINUS_C_MINUS_O 1
2911 _ACEOF
2912
2913 fi
2914
2915 ac_ext=c
2916 ac_cpp='$CPP $CPPFLAGS'
2917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2921 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2922 # On Suns, sometimes $CPP names a directory.
2923 if test -n "$CPP" && test -d "$CPP"; then
2924   CPP=
2925 fi
2926 if test -z "$CPP"; then
2927   if test "${ac_cv_prog_CPP+set}" = set; then
2928   echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930       # Double quotes because CPP needs to be expanded
2931     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2932     do
2933       ac_preproc_ok=false
2934 for ac_c_preproc_warn_flag in '' yes
2935 do
2936   # Use a header file that comes with gcc, so configuring glibc
2937   # with a fresh cross-compiler works.
2938   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2939   # <limits.h> exists even on freestanding compilers.
2940   # On the NeXT, cc -E runs the code through the compiler's parser,
2941   # not just through cpp. "Syntax error" is here to catch this case.
2942   cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h.  */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h.  */
2948 #ifdef __STDC__
2949 # include <limits.h>
2950 #else
2951 # include <assert.h>
2952 #endif
2953                      Syntax error
2954 _ACEOF
2955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2957   ac_status=$?
2958   grep -v '^ *+' conftest.er1 >conftest.err
2959   rm -f conftest.er1
2960   cat conftest.err >&5
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); } >/dev/null; then
2963   if test -s conftest.err; then
2964     ac_cpp_err=$ac_c_preproc_warn_flag
2965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2966   else
2967     ac_cpp_err=
2968   fi
2969 else
2970   ac_cpp_err=yes
2971 fi
2972 if test -z "$ac_cpp_err"; then
2973   :
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978   # Broken: fails on valid input.
2979 continue
2980 fi
2981 rm -f conftest.err conftest.$ac_ext
2982
2983   # OK, works on sane cases.  Now check whether non-existent headers
2984   # can be detected and how.
2985   cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h.  */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h.  */
2991 #include <ac_nonexistent.h>
2992 _ACEOF
2993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2995   ac_status=$?
2996   grep -v '^ *+' conftest.er1 >conftest.err
2997   rm -f conftest.er1
2998   cat conftest.err >&5
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); } >/dev/null; then
3001   if test -s conftest.err; then
3002     ac_cpp_err=$ac_c_preproc_warn_flag
3003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3004   else
3005     ac_cpp_err=
3006   fi
3007 else
3008   ac_cpp_err=yes
3009 fi
3010 if test -z "$ac_cpp_err"; then
3011   # Broken: success on invalid input.
3012 continue
3013 else
3014   echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017   # Passes both tests.
3018 ac_preproc_ok=:
3019 break
3020 fi
3021 rm -f conftest.err conftest.$ac_ext
3022
3023 done
3024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3025 rm -f conftest.err conftest.$ac_ext
3026 if $ac_preproc_ok; then
3027   break
3028 fi
3029
3030     done
3031     ac_cv_prog_CPP=$CPP
3032
3033 fi
3034   CPP=$ac_cv_prog_CPP
3035 else
3036   ac_cv_prog_CPP=$CPP
3037 fi
3038 echo "$as_me:$LINENO: result: $CPP" >&5
3039 echo "${ECHO_T}$CPP" >&6
3040 ac_preproc_ok=false
3041 for ac_c_preproc_warn_flag in '' yes
3042 do
3043   # Use a header file that comes with gcc, so configuring glibc
3044   # with a fresh cross-compiler works.
3045   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3046   # <limits.h> exists even on freestanding compilers.
3047   # On the NeXT, cc -E runs the code through the compiler's parser,
3048   # not just through cpp. "Syntax error" is here to catch this case.
3049   cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055 #ifdef __STDC__
3056 # include <limits.h>
3057 #else
3058 # include <assert.h>
3059 #endif
3060                      Syntax error
3061 _ACEOF
3062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3064   ac_status=$?
3065   grep -v '^ *+' conftest.er1 >conftest.err
3066   rm -f conftest.er1
3067   cat conftest.err >&5
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } >/dev/null; then
3070   if test -s conftest.err; then
3071     ac_cpp_err=$ac_c_preproc_warn_flag
3072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3073   else
3074     ac_cpp_err=
3075   fi
3076 else
3077   ac_cpp_err=yes
3078 fi
3079 if test -z "$ac_cpp_err"; then
3080   :
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085   # Broken: fails on valid input.
3086 continue
3087 fi
3088 rm -f conftest.err conftest.$ac_ext
3089
3090   # OK, works on sane cases.  Now check whether non-existent headers
3091   # can be detected and how.
3092   cat >conftest.$ac_ext <<_ACEOF
3093 /* confdefs.h.  */
3094 _ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h.  */
3098 #include <ac_nonexistent.h>
3099 _ACEOF
3100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } >/dev/null; then
3108   if test -s conftest.err; then
3109     ac_cpp_err=$ac_c_preproc_warn_flag
3110     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3111   else
3112     ac_cpp_err=
3113   fi
3114 else
3115   ac_cpp_err=yes
3116 fi
3117 if test -z "$ac_cpp_err"; then
3118   # Broken: success on invalid input.
3119 continue
3120 else
3121   echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124   # Passes both tests.
3125 ac_preproc_ok=:
3126 break
3127 fi
3128 rm -f conftest.err conftest.$ac_ext
3129
3130 done
3131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3132 rm -f conftest.err conftest.$ac_ext
3133 if $ac_preproc_ok; then
3134   :
3135 else
3136   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3137 See \`config.log' for more details." >&5
3138 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3139 See \`config.log' for more details." >&2;}
3140    { (exit 1); exit 1; }; }
3141 fi
3142
3143 ac_ext=c
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148
3149
3150 echo "$as_me:$LINENO: checking for egrep" >&5
3151 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3152 if test "${ac_cv_prog_egrep+set}" = set; then
3153   echo $ECHO_N "(cached) $ECHO_C" >&6
3154 else
3155   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3156     then ac_cv_prog_egrep='grep -E'
3157     else ac_cv_prog_egrep='egrep'
3158     fi
3159 fi
3160 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3161 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3162  EGREP=$ac_cv_prog_egrep
3163
3164
3165 if test $ac_cv_c_compiler_gnu = yes; then
3166     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3167 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3168 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3169   echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171     ac_pattern="Autoconf.*'x'"
3172   cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h.  */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h.  */
3178 #include <sgtty.h>
3179 Autoconf TIOCGETP
3180 _ACEOF
3181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3182   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3183   ac_cv_prog_gcc_traditional=yes
3184 else
3185   ac_cv_prog_gcc_traditional=no
3186 fi
3187 rm -f conftest*
3188
3189
3190   if test $ac_cv_prog_gcc_traditional = no; then
3191     cat >conftest.$ac_ext <<_ACEOF
3192 /* confdefs.h.  */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h.  */
3197 #include <termio.h>
3198 Autoconf TCGETA
3199 _ACEOF
3200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3201   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3202   ac_cv_prog_gcc_traditional=yes
3203 fi
3204 rm -f conftest*
3205
3206   fi
3207 fi
3208 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3209 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3210   if test $ac_cv_prog_gcc_traditional = yes; then
3211     CC="$CC -traditional"
3212   fi
3213 fi
3214
3215 BASECC=`basename $CC`
3216 have_gcc=no
3217 if test "x$BASECC" = xgcc; then
3218    cat >>confdefs.h <<\_ACEOF
3219 #define HAVE_GCC 1
3220 _ACEOF
3221
3222    have_gcc=yes
3223 fi
3224 # Extract the first word of "$CXX", so it can be a program name with args.
3225 set dummy $CXX; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_path_CXX+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231   case $CXX in
3232   [\\/]* | ?:[\\/]*)
3233   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3234   ;;
3235   *)
3236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3238 do
3239   IFS=$as_save_IFS
3240   test -z "$as_dir" && as_dir=.
3241   for ac_exec_ext in '' $ac_executable_extensions; do
3242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245     break 2
3246   fi
3247 done
3248 done
3249
3250   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3251   ;;
3252 esac
3253 fi
3254 CXX=$ac_cv_path_CXX
3255
3256 if test -n "$CXX"; then
3257   echo "$as_me:$LINENO: result: $CXX" >&5
3258 echo "${ECHO_T}$CXX" >&6
3259 else
3260   echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3262 fi
3263
3264 if test ! -e $CXX; then
3265    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3266 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3267    { (exit 1); exit 1; }; }
3268 fi
3269
3270 # Find a good install program.  We prefer a C program (faster),
3271 # so one script is as good as another.  But avoid the broken or
3272 # incompatible versions:
3273 # SysV /etc/install, /usr/sbin/install
3274 # SunOS /usr/etc/install
3275 # IRIX /sbin/install
3276 # AIX /bin/install
3277 # AmigaOS /C/install, which installs bootblocks on floppy discs
3278 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3279 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3280 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3281 # OS/2's system install, which has a completely different semantic
3282 # ./install, which can be erroneously created by make from ./install.sh.
3283 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3284 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3285 if test -z "$INSTALL"; then
3286 if test "${ac_cv_path_install+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292   IFS=$as_save_IFS
3293   test -z "$as_dir" && as_dir=.
3294   # Account for people who put trailing slashes in PATH elements.
3295 case $as_dir/ in
3296   ./ | .// | /cC/* | \
3297   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3298   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3299   /usr/ucb/* ) ;;
3300   *)
3301     # OSF1 and SCO ODT 3.0 have their own names for install.
3302     # Don't use installbsd from OSF since it installs stuff as root
3303     # by default.
3304     for ac_prog in ginstall scoinst install; do
3305       for ac_exec_ext in '' $ac_executable_extensions; do
3306         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3307           if test $ac_prog = install &&
3308             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3309             # AIX install.  It has an incompatible calling convention.
3310             :
3311           elif test $ac_prog = install &&
3312             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3313             # program-specific install script used by HP pwplus--don't use.
3314             :
3315           else
3316             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3317             break 3
3318           fi
3319         fi
3320       done
3321     done
3322     ;;
3323 esac
3324 done
3325
3326
3327 fi
3328   if test "${ac_cv_path_install+set}" = set; then
3329     INSTALL=$ac_cv_path_install
3330   else
3331     # As a last resort, use the slow shell script.  We don't cache a
3332     # path for INSTALL within a source directory, because that will
3333     # break other packages using the cache if that directory is
3334     # removed, or if the path is relative.
3335     INSTALL=$ac_install_sh
3336   fi
3337 fi
3338 echo "$as_me:$LINENO: result: $INSTALL" >&5
3339 echo "${ECHO_T}$INSTALL" >&6
3340
3341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3342 # It thinks the first close brace ends the variable substitution.
3343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3344
3345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3346
3347 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3348
3349 if test -n "$ac_tool_prefix"; then
3350   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3352 echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3354 if test "${ac_cv_prog_RANLIB+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357   if test -n "$RANLIB"; then
3358   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363   IFS=$as_save_IFS
3364   test -z "$as_dir" && as_dir=.
3365   for ac_exec_ext in '' $ac_executable_extensions; do
3366   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369     break 2
3370   fi
3371 done
3372 done
3373
3374 fi
3375 fi
3376 RANLIB=$ac_cv_prog_RANLIB
3377 if test -n "$RANLIB"; then
3378   echo "$as_me:$LINENO: result: $RANLIB" >&5
3379 echo "${ECHO_T}$RANLIB" >&6
3380 else
3381   echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6
3383 fi
3384
3385 fi
3386 if test -z "$ac_cv_prog_RANLIB"; then
3387   ac_ct_RANLIB=$RANLIB
3388   # Extract the first word of "ranlib", so it can be a program name with args.
3389 set dummy ranlib; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3393   echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395   if test -n "$ac_ct_RANLIB"; then
3396   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401   IFS=$as_save_IFS
3402   test -z "$as_dir" && as_dir=.
3403   for ac_exec_ext in '' $ac_executable_extensions; do
3404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405     ac_cv_prog_ac_ct_RANLIB="ranlib"
3406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3407     break 2
3408   fi
3409 done
3410 done
3411
3412   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3413 fi
3414 fi
3415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3416 if test -n "$ac_ct_RANLIB"; then
3417   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3418 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3419 else
3420   echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422 fi
3423
3424   RANLIB=$ac_ct_RANLIB
3425 else
3426   RANLIB="$ac_cv_prog_RANLIB"
3427 fi
3428
3429 # Extract the first word of "mv", so it can be a program name with args.
3430 set dummy mv; ac_word=$2
3431 echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3433 if test "${ac_cv_path_MV+set}" = set; then
3434   echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436   case $MV in
3437   [\\/]* | ?:[\\/]*)
3438   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3439   ;;
3440   *)
3441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444   IFS=$as_save_IFS
3445   test -z "$as_dir" && as_dir=.
3446   for ac_exec_ext in '' $ac_executable_extensions; do
3447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450     break 2
3451   fi
3452 done
3453 done
3454
3455   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3456   ;;
3457 esac
3458 fi
3459 MV=$ac_cv_path_MV
3460
3461 if test -n "$MV"; then
3462   echo "$as_me:$LINENO: result: $MV" >&5
3463 echo "${ECHO_T}$MV" >&6
3464 else
3465   echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6
3467 fi
3468
3469 # Extract the first word of "rm", so it can be a program name with args.
3470 set dummy rm; ac_word=$2
3471 echo "$as_me:$LINENO: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473 if test "${ac_cv_path_RM+set}" = set; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476   case $RM in
3477   [\\/]* | ?:[\\/]*)
3478   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3479   ;;
3480   *)
3481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3483 do
3484   IFS=$as_save_IFS
3485   test -z "$as_dir" && as_dir=.
3486   for ac_exec_ext in '' $ac_executable_extensions; do
3487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490     break 2
3491   fi
3492 done
3493 done
3494
3495   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3496   ;;
3497 esac
3498 fi
3499 RM=$ac_cv_path_RM
3500
3501 if test -n "$RM"; then
3502   echo "$as_me:$LINENO: result: $RM" >&5
3503 echo "${ECHO_T}$RM" >&6
3504 else
3505   echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6
3507 fi
3508
3509 # Extract the first word of "cp", so it can be a program name with args.
3510 set dummy cp; ac_word=$2
3511 echo "$as_me:$LINENO: checking for $ac_word" >&5
3512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3513 if test "${ac_cv_path_CP+set}" = set; then
3514   echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516   case $CP in
3517   [\\/]* | ?:[\\/]*)
3518   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3519   ;;
3520   *)
3521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3523 do
3524   IFS=$as_save_IFS
3525   test -z "$as_dir" && as_dir=.
3526   for ac_exec_ext in '' $ac_executable_extensions; do
3527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530     break 2
3531   fi
3532 done
3533 done
3534
3535   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3536   ;;
3537 esac
3538 fi
3539 CP=$ac_cv_path_CP
3540
3541 if test -n "$CP"; then
3542   echo "$as_me:$LINENO: result: $CP" >&5
3543 echo "${ECHO_T}$CP" >&6
3544 else
3545   echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6
3547 fi
3548
3549 # Extract the first word of "sed", so it can be a program name with args.
3550 set dummy sed; ac_word=$2
3551 echo "$as_me:$LINENO: checking for $ac_word" >&5
3552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3553 if test "${ac_cv_path_SED+set}" = set; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556   case $SED in
3557   [\\/]* | ?:[\\/]*)
3558   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3559   ;;
3560   *)
3561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564   IFS=$as_save_IFS
3565   test -z "$as_dir" && as_dir=.
3566   for ac_exec_ext in '' $ac_executable_extensions; do
3567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573 done
3574
3575   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3576   ;;
3577 esac
3578 fi
3579 SED=$ac_cv_path_SED
3580
3581 if test -n "$SED"; then
3582   echo "$as_me:$LINENO: result: $SED" >&5
3583 echo "${ECHO_T}$SED" >&6
3584 else
3585   echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3587 fi
3588
3589 # Extract the first word of "echo", so it can be a program name with args.
3590 set dummy echo; ac_word=$2
3591 echo "$as_me:$LINENO: checking for $ac_word" >&5
3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3593 if test "${ac_cv_path_ECHO+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596   case $ECHO in
3597   [\\/]* | ?:[\\/]*)
3598   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3599   ;;
3600   *)
3601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3603 do
3604   IFS=$as_save_IFS
3605   test -z "$as_dir" && as_dir=.
3606   for ac_exec_ext in '' $ac_executable_extensions; do
3607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610     break 2
3611   fi
3612 done
3613 done
3614
3615   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3616   ;;
3617 esac
3618 fi
3619 ECHO=$ac_cv_path_ECHO
3620
3621 if test -n "$ECHO"; then
3622   echo "$as_me:$LINENO: result: $ECHO" >&5
3623 echo "${ECHO_T}$ECHO" >&6
3624 else
3625   echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6
3627 fi
3628
3629 # Extract the first word of "cmp", so it can be a program name with args.
3630 set dummy cmp; ac_word=$2
3631 echo "$as_me:$LINENO: checking for $ac_word" >&5
3632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3633 if test "${ac_cv_path_CMP+set}" = set; then
3634   echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636   case $CMP in
3637   [\\/]* | ?:[\\/]*)
3638   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3639   ;;
3640   *)
3641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644   IFS=$as_save_IFS
3645   test -z "$as_dir" && as_dir=.
3646   for ac_exec_ext in '' $ac_executable_extensions; do
3647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650     break 2
3651   fi
3652 done
3653 done
3654
3655   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3656   ;;
3657 esac
3658 fi
3659 CMP=$ac_cv_path_CMP
3660
3661 if test -n "$CMP"; then
3662   echo "$as_me:$LINENO: result: $CMP" >&5
3663 echo "${ECHO_T}$CMP" >&6
3664 else
3665   echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6
3667 fi
3668
3669 # Extract the first word of "tbl", so it can be a program name with args.
3670 set dummy tbl; ac_word=$2
3671 echo "$as_me:$LINENO: checking for $ac_word" >&5
3672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3673 if test "${ac_cv_path_TBL+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   case $TBL in
3677   [\\/]* | ?:[\\/]*)
3678   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3679   ;;
3680   *)
3681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH
3683 do
3684   IFS=$as_save_IFS
3685   test -z "$as_dir" && as_dir=.
3686   for ac_exec_ext in '' $ac_executable_extensions; do
3687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3690     break 2
3691   fi
3692 done
3693 done
3694
3695   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3696   ;;
3697 esac
3698 fi
3699 TBL=$ac_cv_path_TBL
3700
3701 if test -n "$TBL"; then
3702   echo "$as_me:$LINENO: result: $TBL" >&5
3703 echo "${ECHO_T}$TBL" >&6
3704 else
3705   echo "$as_me:$LINENO: result: no" >&5
3706 echo "${ECHO_T}no" >&6
3707 fi
3708
3709 # Extract the first word of "ar", so it can be a program name with args.
3710 set dummy ar; ac_word=$2
3711 echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3713 if test "${ac_cv_path_AR+set}" = set; then
3714   echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716   case $AR in
3717   [\\/]* | ?:[\\/]*)
3718   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3719   ;;
3720   *)
3721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3723 do
3724   IFS=$as_save_IFS
3725   test -z "$as_dir" && as_dir=.
3726   for ac_exec_ext in '' $ac_executable_extensions; do
3727   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3728     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3730     break 2
3731   fi
3732 done
3733 done
3734
3735   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3736   ;;
3737 esac
3738 fi
3739 AR=$ac_cv_path_AR
3740
3741 if test -n "$AR"; then
3742   echo "$as_me:$LINENO: result: $AR" >&5
3743 echo "${ECHO_T}$AR" >&6
3744 else
3745   echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3747 fi
3748
3749 # Extract the first word of "openssl", so it can be a program name with args.
3750 set dummy openssl; ac_word=$2
3751 echo "$as_me:$LINENO: checking for $ac_word" >&5
3752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3753 if test "${ac_cv_path_OPENSSL+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756   case $OPENSSL in
3757   [\\/]* | ?:[\\/]*)
3758   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3759   ;;
3760   *)
3761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764   IFS=$as_save_IFS
3765   test -z "$as_dir" && as_dir=.
3766   for ac_exec_ext in '' $ac_executable_extensions; do
3767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770     break 2
3771   fi
3772 done
3773 done
3774
3775   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3776   ;;
3777 esac
3778 fi
3779 OPENSSL=$ac_cv_path_OPENSSL
3780
3781 if test -n "$OPENSSL"; then
3782   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3783 echo "${ECHO_T}$OPENSSL" >&6
3784 else
3785   echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6
3787 fi
3788
3789 # Extract the first word of "mtx", so it can be a program name with args.
3790 set dummy mtx; ac_word=$2
3791 echo "$as_me:$LINENO: checking for $ac_word" >&5
3792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3793 if test "${ac_cv_path_MTX+set}" = set; then
3794   echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796   case $MTX in
3797   [\\/]* | ?:[\\/]*)
3798   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3799   ;;
3800   *)
3801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3803 do
3804   IFS=$as_save_IFS
3805   test -z "$as_dir" && as_dir=.
3806   for ac_exec_ext in '' $ac_executable_extensions; do
3807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3810     break 2
3811   fi
3812 done
3813 done
3814
3815   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3816   ;;
3817 esac
3818 fi
3819 MTX=$ac_cv_path_MTX
3820
3821 if test -n "$MTX"; then
3822   echo "$as_me:$LINENO: result: $MTX" >&5
3823 echo "${ECHO_T}$MTX" >&6
3824 else
3825   echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3827 fi
3828
3829 # Extract the first word of "dd", so it can be a program name with args.
3830 set dummy dd; ac_word=$2
3831 echo "$as_me:$LINENO: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3833 if test "${ac_cv_path_DD+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   case $DD in
3837   [\\/]* | ?:[\\/]*)
3838   ac_cv_path_DD="$DD" # Let the user override the test with a path.
3839   ;;
3840   *)
3841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844   IFS=$as_save_IFS
3845   test -z "$as_dir" && as_dir=.
3846   for ac_exec_ext in '' $ac_executable_extensions; do
3847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850     break 2
3851   fi
3852 done
3853 done
3854
3855   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3856   ;;
3857 esac
3858 fi
3859 DD=$ac_cv_path_DD
3860
3861 if test -n "$DD"; then
3862   echo "$as_me:$LINENO: result: $DD" >&5
3863 echo "${ECHO_T}$DD" >&6
3864 else
3865   echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6
3867 fi
3868
3869 # Extract the first word of "mkisofs", so it can be a program name with args.
3870 set dummy mkisofs; ac_word=$2
3871 echo "$as_me:$LINENO: checking for $ac_word" >&5
3872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3873 if test "${ac_cv_path_MKISOFS+set}" = set; then
3874   echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876   case $MKISOFS in
3877   [\\/]* | ?:[\\/]*)
3878   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3879   ;;
3880   *)
3881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884   IFS=$as_save_IFS
3885   test -z "$as_dir" && as_dir=.
3886   for ac_exec_ext in '' $ac_executable_extensions; do
3887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3888     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3890     break 2
3891   fi
3892 done
3893 done
3894
3895   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3896   ;;
3897 esac
3898 fi
3899 MKISOFS=$ac_cv_path_MKISOFS
3900
3901 if test -n "$MKISOFS"; then
3902   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3903 echo "${ECHO_T}$MKISOFS" >&6
3904 else
3905   echo "$as_me:$LINENO: result: no" >&5
3906 echo "${ECHO_T}no" >&6
3907 fi
3908
3909 # Extract the first word of "python", so it can be a program name with args.
3910 set dummy python; ac_word=$2
3911 echo "$as_me:$LINENO: checking for $ac_word" >&5
3912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3913 if test "${ac_cv_path_PYTHON+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   case $PYTHON in
3917   [\\/]* | ?:[\\/]*)
3918   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3919   ;;
3920   *)
3921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926   for ac_exec_ext in '' $ac_executable_extensions; do
3927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3930     break 2
3931   fi
3932 done
3933 done
3934
3935   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3936   ;;
3937 esac
3938 fi
3939 PYTHON=$ac_cv_path_PYTHON
3940
3941 if test -n "$PYTHON"; then
3942   echo "$as_me:$LINENO: result: $PYTHON" >&5
3943 echo "${ECHO_T}$PYTHON" >&6
3944 else
3945   echo "$as_me:$LINENO: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3947 fi
3948
3949 # Extract the first word of "growisofs", so it can be a program name with args.
3950 set dummy growisofs; ac_word=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   case $GROWISOFS in
3957   [\\/]* | ?:[\\/]*)
3958   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3959   ;;
3960   *)
3961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966   for ac_exec_ext in '' $ac_executable_extensions; do
3967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970     break 2
3971   fi
3972 done
3973 done
3974
3975   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3976   ;;
3977 esac
3978 fi
3979 GROWISOFS=$ac_cv_path_GROWISOFS
3980
3981 if test -n "$GROWISOFS"; then
3982   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3983 echo "${ECHO_T}$GROWISOFS" >&6
3984 else
3985   echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6
3987 fi
3988
3989 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3990 set dummy dvd+rw-mediainfo; ac_word=$2
3991 echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   case $DVDRWMEDIAINFO in
3997   [\\/]* | ?:[\\/]*)
3998   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3999   ;;
4000   *)
4001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004   IFS=$as_save_IFS
4005   test -z "$as_dir" && as_dir=.
4006   for ac_exec_ext in '' $ac_executable_extensions; do
4007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010     break 2
4011   fi
4012 done
4013 done
4014
4015   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4016   ;;
4017 esac
4018 fi
4019 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4020
4021 if test -n "$DVDRWMEDIAINFO"; then
4022   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4023 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4024 else
4025   echo "$as_me:$LINENO: result: no" >&5
4026 echo "${ECHO_T}no" >&6
4027 fi
4028
4029 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4030 set dummy dvd+rw-format; ac_word=$2
4031 echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4034   echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036   case $DVDRWFORMAT in
4037   [\\/]* | ?:[\\/]*)
4038   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4039   ;;
4040   *)
4041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4043 do
4044   IFS=$as_save_IFS
4045   test -z "$as_dir" && as_dir=.
4046   for ac_exec_ext in '' $ac_executable_extensions; do
4047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4048     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050     break 2
4051   fi
4052 done
4053 done
4054
4055   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4056   ;;
4057 esac
4058 fi
4059 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4060
4061 if test -n "$DVDRWFORMAT"; then
4062   echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4063 echo "${ECHO_T}$DVDRWFORMAT" >&6
4064 else
4065   echo "$as_me:$LINENO: result: no" >&5
4066 echo "${ECHO_T}no" >&6
4067 fi
4068
4069 # Extract the first word of "pkg-config", so it can be a program name with args.
4070 set dummy pkg-config; ac_word=$2
4071 echo "$as_me:$LINENO: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4074   echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076   case $PKGCONFIG in
4077   [\\/]* | ?:[\\/]*)
4078   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4079   ;;
4080   *)
4081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084   IFS=$as_save_IFS
4085   test -z "$as_dir" && as_dir=.
4086   for ac_exec_ext in '' $ac_executable_extensions; do
4087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4090     break 2
4091   fi
4092 done
4093 done
4094
4095   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4096   ;;
4097 esac
4098 fi
4099 PKGCONFIG=$ac_cv_path_PKGCONFIG
4100
4101 if test -n "$PKGCONFIG"; then
4102   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4103 echo "${ECHO_T}$PKGCONFIG" >&6
4104 else
4105   echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6
4107 fi
4108
4109
4110 if test "x$WXCONFIG" = x; then
4111   WXCONFIG=wx-config
4112 fi
4113 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4114 set dummy ${WXCONFIG}; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4118   echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120   case $WXCONFIG in
4121   [\\/]* | ?:[\\/]*)
4122   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4123   ;;
4124   *)
4125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128   IFS=$as_save_IFS
4129   test -z "$as_dir" && as_dir=.
4130   for ac_exec_ext in '' $ac_executable_extensions; do
4131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134     break 2
4135   fi
4136 done
4137 done
4138
4139   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4140   ;;
4141 esac
4142 fi
4143 WXCONFIG=$ac_cv_path_WXCONFIG
4144
4145 if test -n "$WXCONFIG"; then
4146   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4147 echo "${ECHO_T}$WXCONFIG" >&6
4148 else
4149   echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4151 fi
4152
4153
4154 # Extract the first word of "cdrecord", so it can be a program name with args.
4155 set dummy cdrecord; ac_word=$2
4156 echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158 if test "${ac_cv_path_CDRECORD+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   case $CDRECORD in
4162   [\\/]* | ?:[\\/]*)
4163   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4164   ;;
4165   *)
4166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4168 do
4169   IFS=$as_save_IFS
4170   test -z "$as_dir" && as_dir=.
4171   for ac_exec_ext in '' $ac_executable_extensions; do
4172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175     break 2
4176   fi
4177 done
4178 done
4179
4180   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4181   ;;
4182 esac
4183 fi
4184 CDRECORD=$ac_cv_path_CDRECORD
4185
4186 if test -n "$CDRECORD"; then
4187   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4188 echo "${ECHO_T}$CDRECORD" >&6
4189 else
4190   echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6
4192 fi
4193
4194 # Extract the first word of "pidof", so it can be a program name with args.
4195 set dummy pidof; ac_word=$2
4196 echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_path_PIDOF+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   case $PIDOF in
4202   [\\/]* | ?:[\\/]*)
4203   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4204   ;;
4205   *)
4206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211   for ac_exec_ext in '' $ac_executable_extensions; do
4212   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218 done
4219
4220   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4221   ;;
4222 esac
4223 fi
4224 PIDOF=$ac_cv_path_PIDOF
4225
4226 if test -n "$PIDOF"; then
4227   echo "$as_me:$LINENO: result: $PIDOF" >&5
4228 echo "${ECHO_T}$PIDOF" >&6
4229 else
4230   echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6
4232 fi
4233
4234 for ac_prog in gawk mawk nawk awk
4235 do
4236   # Extract the first word of "$ac_prog", so it can be a program name with args.
4237 set dummy $ac_prog; ac_word=$2
4238 echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4240 if test "${ac_cv_prog_AWK+set}" = set; then
4241   echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243   if test -n "$AWK"; then
4244   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4245 else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4248 do
4249   IFS=$as_save_IFS
4250   test -z "$as_dir" && as_dir=.
4251   for ac_exec_ext in '' $ac_executable_extensions; do
4252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253     ac_cv_prog_AWK="$ac_prog"
4254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255     break 2
4256   fi
4257 done
4258 done
4259
4260 fi
4261 fi
4262 AWK=$ac_cv_prog_AWK
4263 if test -n "$AWK"; then
4264   echo "$as_me:$LINENO: result: $AWK" >&5
4265 echo "${ECHO_T}$AWK" >&6
4266 else
4267   echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4269 fi
4270
4271   test -n "$AWK" && break
4272 done
4273
4274 # Some AWK programs fail, so test it and warn the user
4275 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4276       { if ((prog == $2) || (("(" prog ")") == $2) ||
4277            (("" prog "") == $2) ||
4278            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4279 else
4280   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4281    The regex engine of $AWK is too broken to be used you
4282    might want to install GNU AWK.
4283    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4284 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4285    The regex engine of $AWK is too broken to be used you
4286    might want to install GNU AWK.
4287    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4288    { (exit 1); exit 1; }; }
4289 fi
4290 THE_AWK=$AWK
4291 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4292 set dummy $THE_AWK; ac_word=$2
4293 echo "$as_me:$LINENO: checking for $ac_word" >&5
4294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4295 if test "${ac_cv_path_AWK+set}" = set; then
4296   echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298   case $AWK in
4299   [\\/]* | ?:[\\/]*)
4300   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4301   ;;
4302   *)
4303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4305 do
4306   IFS=$as_save_IFS
4307   test -z "$as_dir" && as_dir=.
4308   for ac_exec_ext in '' $ac_executable_extensions; do
4309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312     break 2
4313   fi
4314 done
4315 done
4316
4317   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4318   ;;
4319 esac
4320 fi
4321 AWK=$ac_cv_path_AWK
4322
4323 if test -n "$AWK"; then
4324   echo "$as_me:$LINENO: result: $AWK" >&5
4325 echo "${ECHO_T}$AWK" >&6
4326 else
4327   echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6
4329 fi
4330
4331
4332
4333 test -n "$ARFLAG" || ARFLAGS="cr"
4334
4335
4336 MAKE_SHELL=/bin/sh
4337
4338
4339
4340
4341
4342
4343
4344 # Make sure we can run config.sub.
4345 $ac_config_sub sun4 >/dev/null 2>&1 ||
4346   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4347 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4348    { (exit 1); exit 1; }; }
4349
4350 echo "$as_me:$LINENO: checking build system type" >&5
4351 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4352 if test "${ac_cv_build+set}" = set; then
4353   echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355   ac_cv_build_alias=$build_alias
4356 test -z "$ac_cv_build_alias" &&
4357   ac_cv_build_alias=`$ac_config_guess`
4358 test -z "$ac_cv_build_alias" &&
4359   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4360 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4361    { (exit 1); exit 1; }; }
4362 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4363   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4364 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4365    { (exit 1); exit 1; }; }
4366
4367 fi
4368 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4369 echo "${ECHO_T}$ac_cv_build" >&6
4370 build=$ac_cv_build
4371 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4372 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4373 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4374
4375
4376
4377 echo "$as_me:$LINENO: checking host system type" >&5
4378 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4379 if test "${ac_cv_host+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   ac_cv_host_alias=$host_alias
4383 test -z "$ac_cv_host_alias" &&
4384   ac_cv_host_alias=$ac_cv_build_alias
4385 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4386   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4387 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4388    { (exit 1); exit 1; }; }
4389
4390 fi
4391 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4392 echo "${ECHO_T}$ac_cv_host" >&6
4393 host=$ac_cv_host
4394 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4395 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4396 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4397
4398
4399 case $host_os in
4400   *cygwin* ) CYGWIN=yes;;
4401          * ) CYGWIN=no;;
4402 esac
4403
4404 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4405 then
4406
4407
4408 if $TRUEPRG; then
4409   HAVE_SUN_OS_TRUE=
4410   HAVE_SUN_OS_FALSE='#'
4411 else
4412   HAVE_SUN_OS_TRUE='#'
4413   HAVE_SUN_OS_FALSE=
4414 fi
4415         cat >>confdefs.h <<\_ACEOF
4416 #define HAVE_SUN_OS 1
4417 _ACEOF
4418
4419 else
4420
4421
4422 if $FALSEPRG; then
4423   HAVE_SUN_OS_TRUE=
4424   HAVE_SUN_OS_FALSE='#'
4425 else
4426   HAVE_SUN_OS_TRUE='#'
4427   HAVE_SUN_OS_FALSE=
4428 fi
4429 fi
4430
4431 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4432 then
4433
4434
4435 if $TRUEPRG; then
4436   HAVE_OSF1_OS_TRUE=
4437   HAVE_OSF1_OS_FALSE='#'
4438 else
4439   HAVE_OSF1_OS_TRUE='#'
4440   HAVE_OSF1_OS_FALSE=
4441 fi
4442         cat >>confdefs.h <<\_ACEOF
4443 #define HAVE_OSF1_OS 1
4444 _ACEOF
4445
4446 else
4447
4448
4449 if $FALSEPRG; then
4450   HAVE_OSF1_OS_TRUE=
4451   HAVE_OSF1_OS_FALSE='#'
4452 else
4453   HAVE_OSF1_OS_TRUE='#'
4454   HAVE_OSF1_OS_FALSE=
4455 fi
4456 fi
4457
4458 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4459 then
4460
4461
4462 if $TRUEPRG; then
4463   HAVE_AIX_OS_TRUE=
4464   HAVE_AIX_OS_FALSE='#'
4465 else
4466   HAVE_AIX_OS_TRUE='#'
4467   HAVE_AIX_OS_FALSE=
4468 fi
4469         cat >>confdefs.h <<\_ACEOF
4470 #define HAVE_AIX_OS 1
4471 _ACEOF
4472
4473 else
4474
4475
4476 if $FALSEPRG; then
4477   HAVE_AIX_OS_TRUE=
4478   HAVE_AIX_OS_FALSE='#'
4479 else
4480   HAVE_AIX_OS_TRUE='#'
4481   HAVE_AIX_OS_FALSE=
4482 fi
4483 fi
4484
4485 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4486 then
4487
4488
4489 if $TRUEPRG; then
4490   HAVE_HPUX_OS_TRUE=
4491   HAVE_HPUX_OS_FALSE='#'
4492 else
4493   HAVE_HPUX_OS_TRUE='#'
4494   HAVE_HPUX_OS_FALSE=
4495 fi
4496         cat >>confdefs.h <<\_ACEOF
4497 #define HAVE_HPUX_OS 1
4498 _ACEOF
4499
4500 else
4501
4502
4503 if $FALSEPRG; then
4504   HAVE_HPUX_OS_TRUE=
4505   HAVE_HPUX_OS_FALSE='#'
4506 else
4507   HAVE_HPUX_OS_TRUE='#'
4508   HAVE_HPUX_OS_FALSE=
4509 fi
4510 fi
4511
4512 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4513 then
4514
4515
4516 if $TRUEPRG; then
4517   HAVE_LINUX_OS_TRUE=
4518   HAVE_LINUX_OS_FALSE='#'
4519 else
4520   HAVE_LINUX_OS_TRUE='#'
4521   HAVE_LINUX_OS_FALSE=
4522 fi
4523         cat >>confdefs.h <<\_ACEOF
4524 #define HAVE_LINUX_OS 1
4525 _ACEOF
4526
4527 else
4528
4529
4530 if $FALSEPRG; then
4531   HAVE_LINUX_OS_TRUE=
4532   HAVE_LINUX_OS_FALSE='#'
4533 else
4534   HAVE_LINUX_OS_TRUE='#'
4535   HAVE_LINUX_OS_FALSE=
4536 fi
4537 fi
4538
4539 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4540 then
4541
4542
4543 if $TRUEPRG; then
4544   HAVE_FREEBSD_OS_TRUE=
4545   HAVE_FREEBSD_OS_FALSE='#'
4546 else
4547   HAVE_FREEBSD_OS_TRUE='#'
4548   HAVE_FREEBSD_OS_FALSE=
4549 fi
4550         cat >>confdefs.h <<\_ACEOF
4551 #define HAVE_FREEBSD_OS 1
4552 _ACEOF
4553
4554 else
4555
4556
4557 if $FALSEPRG; then
4558   HAVE_FREEBSD_OS_TRUE=
4559   HAVE_FREEBSD_OS_FALSE='#'
4560 else
4561   HAVE_FREEBSD_OS_TRUE='#'
4562   HAVE_FREEBSD_OS_FALSE=
4563 fi
4564 fi
4565
4566 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4567 then
4568
4569
4570 if $TRUEPRG; then
4571   HAVE_NETBSD_OS_TRUE=
4572   HAVE_NETBSD_OS_FALSE='#'
4573 else
4574   HAVE_NETBSD_OS_TRUE='#'
4575   HAVE_NETBSD_OS_FALSE=
4576 fi
4577         cat >>confdefs.h <<\_ACEOF
4578 #define HAVE_NETBSD_OS 1
4579 _ACEOF
4580
4581 else
4582
4583
4584 if $FALSEPRG; then
4585   HAVE_NETBSD_OS_TRUE=
4586   HAVE_NETBSD_OS_FALSE='#'
4587 else
4588   HAVE_NETBSD_OS_TRUE='#'
4589   HAVE_NETBSD_OS_FALSE=
4590 fi
4591 fi
4592
4593 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4594 then
4595
4596
4597 if $TRUEPRG; then
4598   HAVE_OPENBSD_OS_TRUE=
4599   HAVE_OPENBSD_OS_FALSE='#'
4600 else
4601   HAVE_OPENBSD_OS_TRUE='#'
4602   HAVE_OPENBSD_OS_FALSE=
4603 fi
4604         cat >>confdefs.h <<\_ACEOF
4605 #define HAVE_OPENBSD_OS 1
4606 _ACEOF
4607
4608 else
4609
4610
4611 if $FALSEPRG; then
4612   HAVE_OPENBSD_OS_TRUE=
4613   HAVE_OPENBSD_OS_FALSE='#'
4614 else
4615   HAVE_OPENBSD_OS_TRUE='#'
4616   HAVE_OPENBSD_OS_FALSE=
4617 fi
4618 fi
4619
4620 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4621 then
4622
4623
4624 if $TRUEPRG; then
4625   HAVE_BSDI_OS_TRUE=
4626   HAVE_BSDI_OS_FALSE='#'
4627 else
4628   HAVE_BSDI_OS_TRUE='#'
4629   HAVE_BSDI_OS_FALSE=
4630 fi
4631         cat >>confdefs.h <<\_ACEOF
4632 #define HAVE_BSDI_OS 1
4633 _ACEOF
4634
4635 else
4636
4637
4638 if $FALSEPRG; then
4639   HAVE_BSDI_OS_TRUE=
4640   HAVE_BSDI_OS_FALSE='#'
4641 else
4642   HAVE_BSDI_OS_TRUE='#'
4643   HAVE_BSDI_OS_FALSE=
4644 fi
4645 fi
4646
4647 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4648 then
4649
4650
4651 if $TRUEPRG; then
4652   HAVE_SGI_OS_TRUE=
4653   HAVE_SGI_OS_FALSE='#'
4654 else
4655   HAVE_SGI_OS_TRUE='#'
4656   HAVE_SGI_OS_FALSE=
4657 fi
4658         cat >>confdefs.h <<\_ACEOF
4659 #define HAVE_SGI_OS 1
4660 _ACEOF
4661
4662 else
4663
4664
4665 if $FALSEPRG; then
4666   HAVE_SGI_OS_TRUE=
4667   HAVE_SGI_OS_FALSE='#'
4668 else
4669   HAVE_SGI_OS_TRUE='#'
4670   HAVE_SGI_OS_FALSE=
4671 fi
4672 fi
4673
4674 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
4675 then
4676
4677
4678 if $TRUEPRG; then
4679   HAVE_IRIX_OS_TRUE=
4680   HAVE_IRIX_OS_FALSE='#'
4681 else
4682   HAVE_IRIX_OS_TRUE='#'
4683   HAVE_IRIX_OS_FALSE=
4684 fi
4685         cat >>confdefs.h <<\_ACEOF
4686 #define HAVE_IRIX_OS 1
4687 _ACEOF
4688
4689 else
4690
4691
4692 if $FALSEPRG; then
4693   HAVE_IRIX_OS_TRUE=
4694   HAVE_IRIX_OS_FALSE='#'
4695 else
4696   HAVE_IRIX_OS_TRUE='#'
4697   HAVE_IRIX_OS_FALSE=
4698 fi
4699 fi
4700
4701 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4702 then
4703
4704
4705 if $TRUEPRG; then
4706   HAVE_DARWIN_OS_TRUE=
4707   HAVE_DARWIN_OS_FALSE='#'
4708 else
4709   HAVE_DARWIN_OS_TRUE='#'
4710   HAVE_DARWIN_OS_FALSE=
4711 fi
4712     cat >>confdefs.h <<\_ACEOF
4713 #define HAVE_DARWIN_OS 1
4714 _ACEOF
4715
4716 else
4717
4718
4719 if $FALSEPRG; then
4720   HAVE_DARWIN_OS_TRUE=
4721   HAVE_DARWIN_OS_FALSE='#'
4722 else
4723   HAVE_DARWIN_OS_TRUE='#'
4724   HAVE_DARWIN_OS_FALSE=
4725 fi
4726 fi
4727
4728
4729 # -----------------------------------------------------------
4730 # ----------------------------------------------------------
4731 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4732 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4733 if test "x$DISTNAME" != "x"
4734 then
4735         echo "distname set to $DISTNAME"
4736 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4737 then
4738         DISTNAME=alpha
4739 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4740 then
4741         DISTNAME=aix
4742 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4743 then
4744         DISTNAME=hpux
4745 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4746 then
4747         DISTNAME=solaris
4748 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4749 then
4750         DISTNAME=freebsd
4751 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4752 then
4753         DISTNAME=netbsd
4754 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4755 then
4756         DISTNAME=openbsd
4757 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4758 then
4759         DISTNAME=irix
4760 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4761 then
4762         DISTNAME=bsdi
4763 elif test -f /etc/SuSE-release
4764 then
4765         DISTNAME=suse
4766 elif test -d /etc/SuSEconfig
4767 then
4768         DISTNAME=suse5
4769 elif test -f /etc/mandrake-release
4770 then
4771         DISTNAME=mandrake
4772 elif test -f /etc/whitebox-release
4773 then
4774        DISTNAME=redhat
4775 elif test -f /etc/redhat-release
4776 then
4777         DISTNAME=redhat
4778 elif test -f /etc/gentoo-release
4779 then
4780         DISTNAME=gentoo
4781 elif test -f /etc/debian_version
4782 then
4783         DISTNAME=debian
4784 elif test -f /etc/slackware-version
4785 then
4786         DISTNAME=slackware
4787 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4788 then
4789     DISTNAME=darwin
4790 elif test -f /etc/engarde-version
4791 then
4792         DISTNAME=engarde
4793 elif test "$CYGWIN" = yes
4794 then
4795         DISTNAME=cygwin
4796         cat >>confdefs.h <<\_ACEOF
4797 #define HAVE_CYGWIN 1
4798 _ACEOF
4799
4800 else
4801         DISTNAME=unknown
4802 fi
4803 echo "$as_me:$LINENO: result: done" >&5
4804 echo "${ECHO_T}done" >&6
4805
4806
4807 # --------------------------------------------------
4808 # Suppport for gettext (translations)
4809 # By default, $datadir is ${prefix}/share
4810 # --------------------------------------------------
4811 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4812 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4813 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4814 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4815   echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817   cat >conftest.make <<\_ACEOF
4818 all:
4819         @echo 'ac_maketemp="$(MAKE)"'
4820 _ACEOF
4821 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4822 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4823 if test -n "$ac_maketemp"; then
4824   eval ac_cv_prog_make_${ac_make}_set=yes
4825 else
4826   eval ac_cv_prog_make_${ac_make}_set=no
4827 fi
4828 rm -f conftest.make
4829 fi
4830 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4831   echo "$as_me:$LINENO: result: yes" >&5
4832 echo "${ECHO_T}yes" >&6
4833   SET_MAKE=
4834 else
4835   echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6
4837   SET_MAKE="MAKE=${MAKE-make}"
4838 fi
4839
4840
4841
4842         MKINSTALLDIRS=
4843   if test -n "$ac_aux_dir"; then
4844     case "$ac_aux_dir" in
4845       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4846       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4847     esac
4848   fi
4849   if test -z "$MKINSTALLDIRS"; then
4850     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4851   fi
4852
4853
4854
4855   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4856 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4857     # Check whether --enable-nls or --disable-nls was given.
4858 if test "${enable_nls+set}" = set; then
4859   enableval="$enable_nls"
4860   USE_NLS=$enableval
4861 else
4862   USE_NLS=yes
4863 fi;
4864   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4865 echo "${ECHO_T}$USE_NLS" >&6
4866
4867
4868
4869
4870
4871
4872 # Prepare PATH_SEPARATOR.
4873 # The user is always right.
4874 if test "${PATH_SEPARATOR+set}" != set; then
4875   echo "#! /bin/sh" >conf$$.sh
4876   echo  "exit 0"   >>conf$$.sh
4877   chmod +x conf$$.sh
4878   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4879     PATH_SEPARATOR=';'
4880   else
4881     PATH_SEPARATOR=:
4882   fi
4883   rm -f conf$$.sh
4884 fi
4885
4886 # Find out how to test for executable files. Don't use a zero-byte file,
4887 # as systems may use methods other than mode bits to determine executability.
4888 cat >conf$$.file <<_ASEOF
4889 #! /bin/sh
4890 exit 0
4891 _ASEOF
4892 chmod +x conf$$.file
4893 if test -x conf$$.file >/dev/null 2>&1; then
4894   ac_executable_p="test -x"
4895 else
4896   ac_executable_p="test -f"
4897 fi
4898 rm -f conf$$.file
4899
4900 # Extract the first word of "msgfmt", so it can be a program name with args.
4901 set dummy msgfmt; ac_word=$2
4902 echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4904 if test "${ac_cv_path_MSGFMT+set}" = set; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   case "$MSGFMT" in
4908   [\\/]* | ?:[\\/]*)
4909     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4910     ;;
4911   *)
4912     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4913     for ac_dir in $PATH; do
4914       IFS="$ac_save_IFS"
4915       test -z "$ac_dir" && ac_dir=.
4916       for ac_exec_ext in '' $ac_executable_extensions; do
4917         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4918           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4919           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4920      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4921             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4922             break 2
4923           fi
4924         fi
4925       done
4926     done
4927     IFS="$ac_save_IFS"
4928   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4929     ;;
4930 esac
4931 fi
4932 MSGFMT="$ac_cv_path_MSGFMT"
4933 if test "$MSGFMT" != ":"; then
4934   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4935 echo "${ECHO_T}$MSGFMT" >&6
4936 else
4937   echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6
4939 fi
4940
4941   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4942 set dummy gmsgfmt; ac_word=$2
4943 echo "$as_me:$LINENO: checking for $ac_word" >&5
4944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4945 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4946   echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948   case $GMSGFMT in
4949   [\\/]* | ?:[\\/]*)
4950   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4951   ;;
4952   *)
4953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4955 do
4956   IFS=$as_save_IFS
4957   test -z "$as_dir" && as_dir=.
4958   for ac_exec_ext in '' $ac_executable_extensions; do
4959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962     break 2
4963   fi
4964 done
4965 done
4966
4967   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4968   ;;
4969 esac
4970 fi
4971 GMSGFMT=$ac_cv_path_GMSGFMT
4972
4973 if test -n "$GMSGFMT"; then
4974   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4975 echo "${ECHO_T}$GMSGFMT" >&6
4976 else
4977   echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6
4979 fi
4980
4981
4982
4983 # Prepare PATH_SEPARATOR.
4984 # The user is always right.
4985 if test "${PATH_SEPARATOR+set}" != set; then
4986   echo "#! /bin/sh" >conf$$.sh
4987   echo  "exit 0"   >>conf$$.sh
4988   chmod +x conf$$.sh
4989   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4990     PATH_SEPARATOR=';'
4991   else
4992     PATH_SEPARATOR=:
4993   fi
4994   rm -f conf$$.sh
4995 fi
4996
4997 # Find out how to test for executable files. Don't use a zero-byte file,
4998 # as systems may use methods other than mode bits to determine executability.
4999 cat >conf$$.file <<_ASEOF
5000 #! /bin/sh
5001 exit 0
5002 _ASEOF
5003 chmod +x conf$$.file
5004 if test -x conf$$.file >/dev/null 2>&1; then
5005   ac_executable_p="test -x"
5006 else
5007   ac_executable_p="test -f"
5008 fi
5009 rm -f conf$$.file
5010
5011 # Extract the first word of "xgettext", so it can be a program name with args.
5012 set dummy xgettext; ac_word=$2
5013 echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   case "$XGETTEXT" in
5019   [\\/]* | ?:[\\/]*)
5020     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5021     ;;
5022   *)
5023     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5024     for ac_dir in $PATH; do
5025       IFS="$ac_save_IFS"
5026       test -z "$ac_dir" && ac_dir=.
5027       for ac_exec_ext in '' $ac_executable_extensions; do
5028         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5029           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5030           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5031      (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
5032             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5033             break 2
5034           fi
5035         fi
5036       done
5037     done
5038     IFS="$ac_save_IFS"
5039   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5040     ;;
5041 esac
5042 fi
5043 XGETTEXT="$ac_cv_path_XGETTEXT"
5044 if test "$XGETTEXT" != ":"; then
5045   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5046 echo "${ECHO_T}$XGETTEXT" >&6
5047 else
5048   echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5050 fi
5051
5052     rm -f messages.po
5053
5054
5055 # Prepare PATH_SEPARATOR.
5056 # The user is always right.
5057 if test "${PATH_SEPARATOR+set}" != set; then
5058   echo "#! /bin/sh" >conf$$.sh
5059   echo  "exit 0"   >>conf$$.sh
5060   chmod +x conf$$.sh
5061   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5062     PATH_SEPARATOR=';'
5063   else
5064     PATH_SEPARATOR=:
5065   fi
5066   rm -f conf$$.sh
5067 fi
5068
5069 # Find out how to test for executable files. Don't use a zero-byte file,
5070 # as systems may use methods other than mode bits to determine executability.
5071 cat >conf$$.file <<_ASEOF
5072 #! /bin/sh
5073 exit 0
5074 _ASEOF
5075 chmod +x conf$$.file
5076 if test -x conf$$.file >/dev/null 2>&1; then
5077   ac_executable_p="test -x"
5078 else
5079   ac_executable_p="test -f"
5080 fi
5081 rm -f conf$$.file
5082
5083 # Extract the first word of "msgmerge", so it can be a program name with args.
5084 set dummy msgmerge; ac_word=$2
5085 echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5087 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5088   echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090   case "$MSGMERGE" in
5091   [\\/]* | ?:[\\/]*)
5092     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5093     ;;
5094   *)
5095     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5096     for ac_dir in $PATH; do
5097       IFS="$ac_save_IFS"
5098       test -z "$ac_dir" && ac_dir=.
5099       for ac_exec_ext in '' $ac_executable_extensions; do
5100         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5101           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5102           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5103             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5104             break 2
5105           fi
5106         fi
5107       done
5108     done
5109     IFS="$ac_save_IFS"
5110   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5111     ;;
5112 esac
5113 fi
5114 MSGMERGE="$ac_cv_path_MSGMERGE"
5115 if test "$MSGMERGE" != ":"; then
5116   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5117 echo "${ECHO_T}$MSGMERGE" >&6
5118 else
5119   echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6
5121 fi
5122
5123
5124       if test "$GMSGFMT" != ":"; then
5125             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5126        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5127       : ;
5128     else
5129       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5130       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5131 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5132       GMSGFMT=":"
5133     fi
5134   fi
5135
5136       if test "$XGETTEXT" != ":"; then
5137             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5138        (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
5139       : ;
5140     else
5141       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5142 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5143       XGETTEXT=":"
5144     fi
5145         rm -f messages.po
5146   fi
5147
5148             ac_config_commands="$ac_config_commands default-1"
5149
5150
5151
5152       if test "X$prefix" = "XNONE"; then
5153     acl_final_prefix="$ac_default_prefix"
5154   else
5155     acl_final_prefix="$prefix"
5156   fi
5157   if test "X$exec_prefix" = "XNONE"; then
5158     acl_final_exec_prefix='${prefix}'
5159   else
5160     acl_final_exec_prefix="$exec_prefix"
5161   fi
5162   acl_save_prefix="$prefix"
5163   prefix="$acl_final_prefix"
5164   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5165   prefix="$acl_save_prefix"
5166
5167
5168 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5169 if test "${with_gnu_ld+set}" = set; then
5170   withval="$with_gnu_ld"
5171   test "$withval" = no || with_gnu_ld=yes
5172 else
5173   with_gnu_ld=no
5174 fi;
5175 # Prepare PATH_SEPARATOR.
5176 # The user is always right.
5177 if test "${PATH_SEPARATOR+set}" != set; then
5178   echo "#! /bin/sh" >conf$$.sh
5179   echo  "exit 0"   >>conf$$.sh
5180   chmod +x conf$$.sh
5181   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5182     PATH_SEPARATOR=';'
5183   else
5184     PATH_SEPARATOR=:
5185   fi
5186   rm -f conf$$.sh
5187 fi
5188 ac_prog=ld
5189 if test "$GCC" = yes; then
5190   # Check if gcc -print-prog-name=ld gives a path.
5191   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5192 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5193   case $host in
5194   *-*-mingw*)
5195     # gcc leaves a trailing carriage return which upsets mingw
5196     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5197   *)
5198     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5199   esac
5200   case $ac_prog in
5201     # Accept absolute paths.
5202     [\\/]* | [A-Za-z]:[\\/]*)
5203       re_direlt='/[^/][^/]*/\.\./'
5204       # Canonicalize the path of ld
5205       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5206       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5207         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5208       done
5209       test -z "$LD" && LD="$ac_prog"
5210       ;;
5211   "")
5212     # If it fails, then pretend we aren't using GCC.
5213     ac_prog=ld
5214     ;;
5215   *)
5216     # If it is relative, then search for the first ld in PATH.
5217     with_gnu_ld=unknown
5218     ;;
5219   esac
5220 elif test "$with_gnu_ld" = yes; then
5221   echo "$as_me:$LINENO: checking for GNU ld" >&5
5222 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5223 else
5224   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5225 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5226 fi
5227 if test "${acl_cv_path_LD+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230   if test -z "$LD"; then
5231   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5232   for ac_dir in $PATH; do
5233     test -z "$ac_dir" && ac_dir=.
5234     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5235       acl_cv_path_LD="$ac_dir/$ac_prog"
5236       # Check to see if the program is GNU ld.  I'd rather use --version,
5237       # but apparently some GNU ld's only accept -v.
5238       # Break only if it was the GNU/non-GNU ld that we prefer.
5239       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5240       *GNU* | *'with BFD'*)
5241         test "$with_gnu_ld" != no && break ;;
5242       *)
5243         test "$with_gnu_ld" != yes && break ;;
5244       esac
5245     fi
5246   done
5247   IFS="$ac_save_ifs"
5248 else
5249   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5250 fi
5251 fi
5252
5253 LD="$acl_cv_path_LD"
5254 if test -n "$LD"; then
5255   echo "$as_me:$LINENO: result: $LD" >&5
5256 echo "${ECHO_T}$LD" >&6
5257 else
5258   echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6
5260 fi
5261 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5262 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5263    { (exit 1); exit 1; }; }
5264 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5265 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5266 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5270 case `$LD -v 2>&1 </dev/null` in
5271 *GNU* | *'with BFD'*)
5272   acl_cv_prog_gnu_ld=yes ;;
5273 *)
5274   acl_cv_prog_gnu_ld=no ;;
5275 esac
5276 fi
5277 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5278 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5279 with_gnu_ld=$acl_cv_prog_gnu_ld
5280
5281
5282
5283
5284                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5285 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5286 if test "${acl_cv_rpath+set}" = set; then
5287   echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289
5290     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5291     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5292     . ./conftest.sh
5293     rm -f ./conftest.sh
5294     acl_cv_rpath=done
5295
5296 fi
5297 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5298 echo "${ECHO_T}$acl_cv_rpath" >&6
5299   wl="$acl_cv_wl"
5300   libext="$acl_cv_libext"
5301   shlibext="$acl_cv_shlibext"
5302   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5303   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5304   hardcode_direct="$acl_cv_hardcode_direct"
5305   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5306     # Check whether --enable-rpath or --disable-rpath was given.
5307 if test "${enable_rpath+set}" = set; then
5308   enableval="$enable_rpath"
5309   :
5310 else
5311   enable_rpath=yes
5312 fi;
5313
5314
5315
5316
5317
5318
5319
5320     use_additional=yes
5321
5322   acl_save_prefix="$prefix"
5323   prefix="$acl_final_prefix"
5324   acl_save_exec_prefix="$exec_prefix"
5325   exec_prefix="$acl_final_exec_prefix"
5326
5327     eval additional_includedir=\"$includedir\"
5328     eval additional_libdir=\"$libdir\"
5329
5330   exec_prefix="$acl_save_exec_prefix"
5331   prefix="$acl_save_prefix"
5332
5333
5334 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5335 if test "${with_libiconv_prefix+set}" = set; then
5336   withval="$with_libiconv_prefix"
5337
5338     if test "X$withval" = "Xno"; then
5339       use_additional=no
5340     else
5341       if test "X$withval" = "X"; then
5342
5343   acl_save_prefix="$prefix"
5344   prefix="$acl_final_prefix"
5345   acl_save_exec_prefix="$exec_prefix"
5346   exec_prefix="$acl_final_exec_prefix"
5347
5348           eval additional_includedir=\"$includedir\"
5349           eval additional_libdir=\"$libdir\"
5350
5351   exec_prefix="$acl_save_exec_prefix"
5352   prefix="$acl_save_prefix"
5353
5354       else
5355         additional_includedir="$withval/include"
5356         additional_libdir="$withval/lib"
5357       fi
5358     fi
5359
5360 fi;
5361       LIBICONV=
5362   LTLIBICONV=
5363   INCICONV=
5364   rpathdirs=
5365   ltrpathdirs=
5366   names_already_handled=
5367   names_next_round='iconv '
5368   while test -n "$names_next_round"; do
5369     names_this_round="$names_next_round"
5370     names_next_round=
5371     for name in $names_this_round; do
5372       already_handled=
5373       for n in $names_already_handled; do
5374         if test "$n" = "$name"; then
5375           already_handled=yes
5376           break
5377         fi
5378       done
5379       if test -z "$already_handled"; then
5380         names_already_handled="$names_already_handled $name"
5381                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5382         eval value=\"\$HAVE_LIB$uppername\"
5383         if test -n "$value"; then
5384           if test "$value" = yes; then
5385             eval value=\"\$LIB$uppername\"
5386             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5387             eval value=\"\$LTLIB$uppername\"
5388             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5389           else
5390                                     :
5391           fi
5392         else
5393                               found_dir=
5394           found_la=
5395           found_so=
5396           found_a=
5397           if test $use_additional = yes; then
5398             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5399               found_dir="$additional_libdir"
5400               found_so="$additional_libdir/lib$name.$shlibext"
5401               if test -f "$additional_libdir/lib$name.la"; then
5402                 found_la="$additional_libdir/lib$name.la"
5403               fi
5404             else
5405               if test -f "$additional_libdir/lib$name.$libext"; then
5406                 found_dir="$additional_libdir"
5407                 found_a="$additional_libdir/lib$name.$libext"
5408                 if test -f "$additional_libdir/lib$name.la"; then
5409                   found_la="$additional_libdir/lib$name.la"
5410                 fi
5411               fi
5412             fi
5413           fi
5414           if test "X$found_dir" = "X"; then
5415             for x in $LDFLAGS $LTLIBICONV; do
5416
5417   acl_save_prefix="$prefix"
5418   prefix="$acl_final_prefix"
5419   acl_save_exec_prefix="$exec_prefix"
5420   exec_prefix="$acl_final_exec_prefix"
5421   eval x=\"$x\"
5422   exec_prefix="$acl_save_exec_prefix"
5423   prefix="$acl_save_prefix"
5424
5425               case "$x" in
5426                 -L*)
5427                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5428                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5429                     found_dir="$dir"
5430                     found_so="$dir/lib$name.$shlibext"
5431                     if test -f "$dir/lib$name.la"; then
5432                       found_la="$dir/lib$name.la"
5433                     fi
5434                   else
5435                     if test -f "$dir/lib$name.$libext"; then
5436                       found_dir="$dir"
5437                       found_a="$dir/lib$name.$libext"
5438                       if test -f "$dir/lib$name.la"; then
5439                         found_la="$dir/lib$name.la"
5440                       fi
5441                     fi
5442                   fi
5443                   ;;
5444               esac
5445               if test "X$found_dir" != "X"; then
5446                 break
5447               fi
5448             done
5449           fi
5450           if test "X$found_dir" != "X"; then
5451                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5452             if test "X$found_so" != "X"; then
5453                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5454                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5455               else
5456                                                                                 haveit=
5457                 for x in $ltrpathdirs; do
5458                   if test "X$x" = "X$found_dir"; then
5459                     haveit=yes
5460                     break
5461                   fi
5462                 done
5463                 if test -z "$haveit"; then
5464                   ltrpathdirs="$ltrpathdirs $found_dir"
5465                 fi
5466                                 if test "$hardcode_direct" = yes; then
5467                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5468                 else
5469                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5470                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5471                                                             haveit=
5472                     for x in $rpathdirs; do
5473                       if test "X$x" = "X$found_dir"; then
5474                         haveit=yes
5475                         break
5476                       fi
5477                     done
5478                     if test -z "$haveit"; then
5479                       rpathdirs="$rpathdirs $found_dir"
5480                     fi
5481                   else
5482                                                                                 haveit=
5483                     for x in $LDFLAGS $LIBICONV; do
5484
5485   acl_save_prefix="$prefix"
5486   prefix="$acl_final_prefix"
5487   acl_save_exec_prefix="$exec_prefix"
5488   exec_prefix="$acl_final_exec_prefix"
5489   eval x=\"$x\"
5490   exec_prefix="$acl_save_exec_prefix"
5491   prefix="$acl_save_prefix"
5492
5493                       if test "X$x" = "X-L$found_dir"; then
5494                         haveit=yes
5495                         break
5496                       fi
5497                     done
5498                     if test -z "$haveit"; then
5499                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5500                     fi
5501                     if test "$hardcode_minus_L" != no; then
5502                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5503                     else
5504                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5505                     fi
5506                   fi
5507                 fi
5508               fi
5509             else
5510               if test "X$found_a" != "X"; then
5511                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5512               else
5513                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5514               fi
5515             fi
5516                         additional_includedir=
5517             case "$found_dir" in
5518               */lib | */lib/)
5519                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5520                 additional_includedir="$basedir/include"
5521                 ;;
5522             esac
5523             if test "X$additional_includedir" != "X"; then
5524                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5525                 haveit=
5526                 if test "X$additional_includedir" = "X/usr/local/include"; then
5527                   if test -n "$GCC"; then
5528                     case $host_os in
5529                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5530                     esac
5531                   fi
5532                 fi
5533                 if test -z "$haveit"; then
5534                   for x in $CPPFLAGS $INCICONV; do
5535
5536   acl_save_prefix="$prefix"
5537   prefix="$acl_final_prefix"
5538   acl_save_exec_prefix="$exec_prefix"
5539   exec_prefix="$acl_final_exec_prefix"
5540   eval x=\"$x\"
5541   exec_prefix="$acl_save_exec_prefix"
5542   prefix="$acl_save_prefix"
5543
5544                     if test "X$x" = "X-I$additional_includedir"; then
5545                       haveit=yes
5546                       break
5547                     fi
5548                   done
5549                   if test -z "$haveit"; then
5550                     if test -d "$additional_includedir"; then
5551                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5552                     fi
5553                   fi
5554                 fi
5555               fi
5556             fi
5557                         if test -n "$found_la"; then
5558                                                         save_libdir="$libdir"
5559               case "$found_la" in
5560                 */* | *\\*) . "$found_la" ;;
5561                 *) . "./$found_la" ;;
5562               esac
5563               libdir="$save_libdir"
5564                             for dep in $dependency_libs; do
5565                 case "$dep" in
5566                   -L*)
5567                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5568                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5569                       haveit=
5570                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5571                         if test -n "$GCC"; then
5572                           case $host_os in
5573                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5574                           esac
5575                         fi
5576                       fi
5577                       if test -z "$haveit"; then
5578                         haveit=
5579                         for x in $LDFLAGS $LIBICONV; do
5580
5581   acl_save_prefix="$prefix"
5582   prefix="$acl_final_prefix"
5583   acl_save_exec_prefix="$exec_prefix"
5584   exec_prefix="$acl_final_exec_prefix"
5585   eval x=\"$x\"
5586   exec_prefix="$acl_save_exec_prefix"
5587   prefix="$acl_save_prefix"
5588
5589                           if test "X$x" = "X-L$additional_libdir"; then
5590                             haveit=yes
5591                             break
5592                           fi
5593                         done
5594                         if test -z "$haveit"; then
5595                           if test -d "$additional_libdir"; then
5596                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5597                           fi
5598                         fi
5599                         haveit=
5600                         for x in $LDFLAGS $LTLIBICONV; do
5601
5602   acl_save_prefix="$prefix"
5603   prefix="$acl_final_prefix"
5604   acl_save_exec_prefix="$exec_prefix"
5605   exec_prefix="$acl_final_exec_prefix"
5606   eval x=\"$x\"
5607   exec_prefix="$acl_save_exec_prefix"
5608   prefix="$acl_save_prefix"
5609
5610                           if test "X$x" = "X-L$additional_libdir"; then
5611                             haveit=yes
5612                             break
5613                           fi
5614                         done
5615                         if test -z "$haveit"; then
5616                           if test -d "$additional_libdir"; then
5617                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5618                           fi
5619                         fi
5620                       fi
5621                     fi
5622                     ;;
5623                   -R*)
5624                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5625                     if test "$enable_rpath" != no; then
5626                                                                   haveit=
5627                       for x in $rpathdirs; 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                         rpathdirs="$rpathdirs $dir"
5635                       fi
5636                                                                   haveit=
5637                       for x in $ltrpathdirs; do
5638                         if test "X$x" = "X$dir"; then
5639                           haveit=yes
5640                           break
5641                         fi
5642                       done
5643                       if test -z "$haveit"; then
5644                         ltrpathdirs="$ltrpathdirs $dir"
5645                       fi
5646                     fi
5647                     ;;
5648                   -l*)
5649                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5650                     ;;
5651                   *.la)
5652                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5653                     ;;
5654                   *)
5655                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5656                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5657                     ;;
5658                 esac
5659               done
5660             fi
5661           else
5662                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5663             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5664           fi
5665         fi
5666       fi
5667     done
5668   done
5669   if test "X$rpathdirs" != "X"; then
5670     if test -n "$hardcode_libdir_separator"; then
5671                         alldirs=
5672       for found_dir in $rpathdirs; do
5673         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5674       done
5675             acl_save_libdir="$libdir"
5676       libdir="$alldirs"
5677       eval flag=\"$hardcode_libdir_flag_spec\"
5678       libdir="$acl_save_libdir"
5679       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5680     else
5681             for found_dir in $rpathdirs; do
5682         acl_save_libdir="$libdir"
5683         libdir="$found_dir"
5684         eval flag=\"$hardcode_libdir_flag_spec\"
5685         libdir="$acl_save_libdir"
5686         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5687       done
5688     fi
5689   fi
5690   if test "X$ltrpathdirs" != "X"; then
5691             for found_dir in $ltrpathdirs; do
5692       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5693     done
5694   fi
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5714 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5715 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718   gt_save_CPPFLAGS="$CPPFLAGS"
5719      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5720      gt_save_LIBS="$LIBS"
5721      LIBS="$LIBS -framework CoreFoundation"
5722      cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h.  */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h.  */
5728 #include <CFPreferences.h>
5729 int
5730 main ()
5731 {
5732 CFPreferencesCopyAppValue(NULL, NULL)
5733   ;
5734   return 0;
5735 }
5736 _ACEOF
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5739   (eval $ac_link) 2>conftest.er1
5740   ac_status=$?
5741   grep -v '^ *+' conftest.er1 >conftest.err
5742   rm -f conftest.er1
5743   cat conftest.err >&5
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); } &&
5746          { ac_try='test -z "$ac_c_werror_flag"
5747                          || test ! -s conftest.err'
5748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749   (eval $ac_try) 2>&5
5750   ac_status=$?
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); }; } &&
5753          { ac_try='test -s conftest$ac_exeext'
5754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755   (eval $ac_try) 2>&5
5756   ac_status=$?
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); }; }; then
5759   gt_cv_func_CFPreferencesCopyAppValue=yes
5760 else
5761   echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5763
5764 gt_cv_func_CFPreferencesCopyAppValue=no
5765 fi
5766 rm -f conftest.err conftest.$ac_objext \
5767       conftest$ac_exeext conftest.$ac_ext
5768      CPPFLAGS="$gt_save_CPPFLAGS"
5769      LIBS="$gt_save_LIBS"
5770 fi
5771 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5772 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5773   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5774
5775 cat >>confdefs.h <<\_ACEOF
5776 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5777 _ACEOF
5778
5779   fi
5780     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5781 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5782 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   gt_save_CPPFLAGS="$CPPFLAGS"
5786      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5787      gt_save_LIBS="$LIBS"
5788      LIBS="$LIBS -framework CoreFoundation"
5789      cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h.  */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h.  */
5795 #include <CFLocale.h>
5796 int
5797 main ()
5798 {
5799 CFLocaleCopyCurrent();
5800   ;
5801   return 0;
5802 }
5803 _ACEOF
5804 rm -f conftest.$ac_objext conftest$ac_exeext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806   (eval $ac_link) 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } &&
5813          { ac_try='test -z "$ac_c_werror_flag"
5814                          || test ! -s conftest.err'
5815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816   (eval $ac_try) 2>&5
5817   ac_status=$?
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); }; } &&
5820          { ac_try='test -s conftest$ac_exeext'
5821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822   (eval $ac_try) 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); }; }; then
5826   gt_cv_func_CFLocaleCopyCurrent=yes
5827 else
5828   echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 gt_cv_func_CFLocaleCopyCurrent=no
5832 fi
5833 rm -f conftest.err conftest.$ac_objext \
5834       conftest$ac_exeext conftest.$ac_ext
5835      CPPFLAGS="$gt_save_CPPFLAGS"
5836      LIBS="$gt_save_LIBS"
5837 fi
5838 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5839 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5840   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5841
5842 cat >>confdefs.h <<\_ACEOF
5843 #define HAVE_CFLOCALECOPYCURRENT 1
5844 _ACEOF
5845
5846   fi
5847   INTL_MACOSX_LIBS=
5848   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5849     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5850   fi
5851
5852
5853
5854
5855   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5856 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5857     # Check whether --enable-nls or --disable-nls was given.
5858 if test "${enable_nls+set}" = set; then
5859   enableval="$enable_nls"
5860   USE_NLS=$enableval
5861 else
5862   USE_NLS=yes
5863 fi;
5864   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5865 echo "${ECHO_T}$USE_NLS" >&6
5866
5867
5868
5869
5870   LIBINTL=
5871   LTLIBINTL=
5872   POSUB=
5873
5874     if test "$USE_NLS" = "yes"; then
5875     gt_use_preinstalled_gnugettext=no
5876
5877
5878
5879
5880
5881
5882         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5883 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5884 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5885   echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887   cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h.  */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h.  */
5893 #include <libintl.h>
5894 extern int _nl_msg_cat_cntr;
5895 extern int *_nl_domain_bindings;
5896 int
5897 main ()
5898 {
5899 bindtextdomain ("", "");
5900 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5901   ;
5902   return 0;
5903 }
5904 _ACEOF
5905 rm -f conftest.$ac_objext conftest$ac_exeext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5907   (eval $ac_link) 2>conftest.er1
5908   ac_status=$?
5909   grep -v '^ *+' conftest.er1 >conftest.err
5910   rm -f conftest.er1
5911   cat conftest.err >&5
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); } &&
5914          { ac_try='test -z "$ac_c_werror_flag"
5915                          || test ! -s conftest.err'
5916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917   (eval $ac_try) 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }; } &&
5921          { ac_try='test -s conftest$ac_exeext'
5922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923   (eval $ac_try) 2>&5
5924   ac_status=$?
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); }; }; then
5927   gt_cv_func_gnugettext1_libc=yes
5928 else
5929   echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5931
5932 gt_cv_func_gnugettext1_libc=no
5933 fi
5934 rm -f conftest.err conftest.$ac_objext \
5935       conftest$ac_exeext conftest.$ac_ext
5936 fi
5937 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5938 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5939
5940         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5941
5942
5943
5944
5945
5946           am_save_CPPFLAGS="$CPPFLAGS"
5947
5948   for element in $INCICONV; do
5949     haveit=
5950     for x in $CPPFLAGS; do
5951
5952   acl_save_prefix="$prefix"
5953   prefix="$acl_final_prefix"
5954   acl_save_exec_prefix="$exec_prefix"
5955   exec_prefix="$acl_final_exec_prefix"
5956   eval x=\"$x\"
5957   exec_prefix="$acl_save_exec_prefix"
5958   prefix="$acl_save_prefix"
5959
5960       if test "X$x" = "X$element"; then
5961         haveit=yes
5962         break
5963       fi
5964     done
5965     if test -z "$haveit"; then
5966       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5967     fi
5968   done
5969
5970
5971   echo "$as_me:$LINENO: checking for iconv" >&5
5972 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5973 if test "${am_cv_func_iconv+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976
5977     am_cv_func_iconv="no, consider installing GNU libiconv"
5978     am_cv_lib_iconv=no
5979     cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h.  */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h.  */
5985 #include <stdlib.h>
5986 #include <iconv.h>
5987 int
5988 main ()
5989 {
5990 iconv_t cd = iconv_open("","");
5991        iconv(cd,NULL,NULL,NULL,NULL);
5992        iconv_close(cd);
5993   ;
5994   return 0;
5995 }
5996 _ACEOF
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999   (eval $ac_link) 2>conftest.er1
6000   ac_status=$?
6001   grep -v '^ *+' conftest.er1 >conftest.err
6002   rm -f conftest.er1
6003   cat conftest.err >&5
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } &&
6006          { ac_try='test -z "$ac_c_werror_flag"
6007                          || test ! -s conftest.err'
6008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009   (eval $ac_try) 2>&5
6010   ac_status=$?
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); }; } &&
6013          { ac_try='test -s conftest$ac_exeext'
6014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015   (eval $ac_try) 2>&5
6016   ac_status=$?
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); }; }; then
6019   am_cv_func_iconv=yes
6020 else
6021   echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6023
6024 fi
6025 rm -f conftest.err conftest.$ac_objext \
6026       conftest$ac_exeext conftest.$ac_ext
6027     if test "$am_cv_func_iconv" != yes; then
6028       am_save_LIBS="$LIBS"
6029       LIBS="$LIBS $LIBICONV"
6030       cat >conftest.$ac_ext <<_ACEOF
6031 /* confdefs.h.  */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h.  */
6036 #include <stdlib.h>
6037 #include <iconv.h>
6038 int
6039 main ()
6040 {
6041 iconv_t cd = iconv_open("","");
6042          iconv(cd,NULL,NULL,NULL,NULL);
6043          iconv_close(cd);
6044   ;
6045   return 0;
6046 }
6047 _ACEOF
6048 rm -f conftest.$ac_objext conftest$ac_exeext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050   (eval $ac_link) 2>conftest.er1
6051   ac_status=$?
6052   grep -v '^ *+' conftest.er1 >conftest.err
6053   rm -f conftest.er1
6054   cat conftest.err >&5
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); } &&
6057          { ac_try='test -z "$ac_c_werror_flag"
6058                          || test ! -s conftest.err'
6059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060   (eval $ac_try) 2>&5
6061   ac_status=$?
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); }; } &&
6064          { ac_try='test -s conftest$ac_exeext'
6065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066   (eval $ac_try) 2>&5
6067   ac_status=$?
6068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069   (exit $ac_status); }; }; then
6070   am_cv_lib_iconv=yes
6071         am_cv_func_iconv=yes
6072 else
6073   echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6075
6076 fi
6077 rm -f conftest.err conftest.$ac_objext \
6078       conftest$ac_exeext conftest.$ac_ext
6079       LIBS="$am_save_LIBS"
6080     fi
6081
6082 fi
6083 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6084 echo "${ECHO_T}$am_cv_func_iconv" >&6
6085   if test "$am_cv_func_iconv" = yes; then
6086
6087 cat >>confdefs.h <<\_ACEOF
6088 #define HAVE_ICONV 1
6089 _ACEOF
6090
6091   fi
6092   if test "$am_cv_lib_iconv" = yes; then
6093     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6094 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6095     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6096 echo "${ECHO_T}$LIBICONV" >&6
6097   else
6098             CPPFLAGS="$am_save_CPPFLAGS"
6099     LIBICONV=
6100     LTLIBICONV=
6101   fi
6102
6103
6104
6105
6106
6107
6108     use_additional=yes
6109
6110   acl_save_prefix="$prefix"
6111   prefix="$acl_final_prefix"
6112   acl_save_exec_prefix="$exec_prefix"
6113   exec_prefix="$acl_final_exec_prefix"
6114
6115     eval additional_includedir=\"$includedir\"
6116     eval additional_libdir=\"$libdir\"
6117
6118   exec_prefix="$acl_save_exec_prefix"
6119   prefix="$acl_save_prefix"
6120
6121
6122 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6123 if test "${with_libintl_prefix+set}" = set; then
6124   withval="$with_libintl_prefix"
6125
6126     if test "X$withval" = "Xno"; then
6127       use_additional=no
6128     else
6129       if test "X$withval" = "X"; then
6130
6131   acl_save_prefix="$prefix"
6132   prefix="$acl_final_prefix"
6133   acl_save_exec_prefix="$exec_prefix"
6134   exec_prefix="$acl_final_exec_prefix"
6135
6136           eval additional_includedir=\"$includedir\"
6137           eval additional_libdir=\"$libdir\"
6138
6139   exec_prefix="$acl_save_exec_prefix"
6140   prefix="$acl_save_prefix"
6141
6142       else
6143         additional_includedir="$withval/include"
6144         additional_libdir="$withval/lib"
6145       fi
6146     fi
6147
6148 fi;
6149       LIBINTL=
6150   LTLIBINTL=
6151   INCINTL=
6152   rpathdirs=
6153   ltrpathdirs=
6154   names_already_handled=
6155   names_next_round='intl '
6156   while test -n "$names_next_round"; do
6157     names_this_round="$names_next_round"
6158     names_next_round=
6159     for name in $names_this_round; do
6160       already_handled=
6161       for n in $names_already_handled; do
6162         if test "$n" = "$name"; then
6163           already_handled=yes
6164           break
6165         fi
6166       done
6167       if test -z "$already_handled"; then
6168         names_already_handled="$names_already_handled $name"
6169                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6170         eval value=\"\$HAVE_LIB$uppername\"
6171         if test -n "$value"; then
6172           if test "$value" = yes; then
6173             eval value=\"\$LIB$uppername\"
6174             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6175             eval value=\"\$LTLIB$uppername\"
6176             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6177           else
6178                                     :
6179           fi
6180         else
6181                               found_dir=
6182           found_la=
6183           found_so=
6184           found_a=
6185           if test $use_additional = yes; then
6186             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6187               found_dir="$additional_libdir"
6188               found_so="$additional_libdir/lib$name.$shlibext"
6189               if test -f "$additional_libdir/lib$name.la"; then
6190                 found_la="$additional_libdir/lib$name.la"
6191               fi
6192             else
6193               if test -f "$additional_libdir/lib$name.$libext"; then
6194                 found_dir="$additional_libdir"
6195                 found_a="$additional_libdir/lib$name.$libext"
6196                 if test -f "$additional_libdir/lib$name.la"; then
6197                   found_la="$additional_libdir/lib$name.la"
6198                 fi
6199               fi
6200             fi
6201           fi
6202           if test "X$found_dir" = "X"; then
6203             for x in $LDFLAGS $LTLIBINTL; do
6204
6205   acl_save_prefix="$prefix"
6206   prefix="$acl_final_prefix"
6207   acl_save_exec_prefix="$exec_prefix"
6208   exec_prefix="$acl_final_exec_prefix"
6209   eval x=\"$x\"
6210   exec_prefix="$acl_save_exec_prefix"
6211   prefix="$acl_save_prefix"
6212
6213               case "$x" in
6214                 -L*)
6215                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6216                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6217                     found_dir="$dir"
6218                     found_so="$dir/lib$name.$shlibext"
6219                     if test -f "$dir/lib$name.la"; then
6220                       found_la="$dir/lib$name.la"
6221                     fi
6222                   else
6223                     if test -f "$dir/lib$name.$libext"; then
6224                       found_dir="$dir"
6225                       found_a="$dir/lib$name.$libext"
6226                       if test -f "$dir/lib$name.la"; then
6227                         found_la="$dir/lib$name.la"
6228                       fi
6229                     fi
6230                   fi
6231                   ;;
6232               esac
6233               if test "X$found_dir" != "X"; then
6234                 break
6235               fi
6236             done
6237           fi
6238           if test "X$found_dir" != "X"; then
6239                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6240             if test "X$found_so" != "X"; then
6241                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6242                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6243               else
6244                                                                                 haveit=
6245                 for x in $ltrpathdirs; do
6246                   if test "X$x" = "X$found_dir"; then
6247                     haveit=yes
6248                     break
6249                   fi
6250                 done
6251                 if test -z "$haveit"; then
6252                   ltrpathdirs="$ltrpathdirs $found_dir"
6253                 fi
6254                                 if test "$hardcode_direct" = yes; then
6255                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6256                 else
6257                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6258                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6259                                                             haveit=
6260                     for x in $rpathdirs; do
6261                       if test "X$x" = "X$found_dir"; then
6262                         haveit=yes
6263                         break
6264                       fi
6265                     done
6266                     if test -z "$haveit"; then
6267                       rpathdirs="$rpathdirs $found_dir"
6268                     fi
6269                   else
6270                                                                                 haveit=
6271                     for x in $LDFLAGS $LIBINTL; do
6272
6273   acl_save_prefix="$prefix"
6274   prefix="$acl_final_prefix"
6275   acl_save_exec_prefix="$exec_prefix"
6276   exec_prefix="$acl_final_exec_prefix"
6277   eval x=\"$x\"
6278   exec_prefix="$acl_save_exec_prefix"
6279   prefix="$acl_save_prefix"
6280
6281                       if test "X$x" = "X-L$found_dir"; then
6282                         haveit=yes
6283                         break
6284                       fi
6285                     done
6286                     if test -z "$haveit"; then
6287                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6288                     fi
6289                     if test "$hardcode_minus_L" != no; then
6290                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6291                     else
6292                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6293                     fi
6294                   fi
6295                 fi
6296               fi
6297             else
6298               if test "X$found_a" != "X"; then
6299                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6300               else
6301                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6302               fi
6303             fi
6304                         additional_includedir=
6305             case "$found_dir" in
6306               */lib | */lib/)
6307                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6308                 additional_includedir="$basedir/include"
6309                 ;;
6310             esac
6311             if test "X$additional_includedir" != "X"; then
6312                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6313                 haveit=
6314                 if test "X$additional_includedir" = "X/usr/local/include"; then
6315                   if test -n "$GCC"; then
6316                     case $host_os in
6317                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6318                     esac
6319                   fi
6320                 fi
6321                 if test -z "$haveit"; then
6322                   for x in $CPPFLAGS $INCINTL; do
6323
6324   acl_save_prefix="$prefix"
6325   prefix="$acl_final_prefix"
6326   acl_save_exec_prefix="$exec_prefix"
6327   exec_prefix="$acl_final_exec_prefix"
6328   eval x=\"$x\"
6329   exec_prefix="$acl_save_exec_prefix"
6330   prefix="$acl_save_prefix"
6331
6332                     if test "X$x" = "X-I$additional_includedir"; then
6333                       haveit=yes
6334                       break
6335                     fi
6336                   done
6337                   if test -z "$haveit"; then
6338                     if test -d "$additional_includedir"; then
6339                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6340                     fi
6341                   fi
6342                 fi
6343               fi
6344             fi
6345                         if test -n "$found_la"; then
6346                                                         save_libdir="$libdir"
6347               case "$found_la" in
6348                 */* | *\\*) . "$found_la" ;;
6349                 *) . "./$found_la" ;;
6350               esac
6351               libdir="$save_libdir"
6352                             for dep in $dependency_libs; do
6353                 case "$dep" in
6354                   -L*)
6355                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6356                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6357                       haveit=
6358                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6359                         if test -n "$GCC"; then
6360                           case $host_os in
6361                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6362                           esac
6363                         fi
6364                       fi
6365                       if test -z "$haveit"; then
6366                         haveit=
6367                         for x in $LDFLAGS $LIBINTL; do
6368
6369   acl_save_prefix="$prefix"
6370   prefix="$acl_final_prefix"
6371   acl_save_exec_prefix="$exec_prefix"
6372   exec_prefix="$acl_final_exec_prefix"
6373   eval x=\"$x\"
6374   exec_prefix="$acl_save_exec_prefix"
6375   prefix="$acl_save_prefix"
6376
6377                           if test "X$x" = "X-L$additional_libdir"; then
6378                             haveit=yes
6379                             break
6380                           fi
6381                         done
6382                         if test -z "$haveit"; then
6383                           if test -d "$additional_libdir"; then
6384                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6385                           fi
6386                         fi
6387                         haveit=
6388                         for x in $LDFLAGS $LTLIBINTL; do
6389
6390   acl_save_prefix="$prefix"
6391   prefix="$acl_final_prefix"
6392   acl_save_exec_prefix="$exec_prefix"
6393   exec_prefix="$acl_final_exec_prefix"
6394   eval x=\"$x\"
6395   exec_prefix="$acl_save_exec_prefix"
6396   prefix="$acl_save_prefix"
6397
6398                           if test "X$x" = "X-L$additional_libdir"; then
6399                             haveit=yes
6400                             break
6401                           fi
6402                         done
6403                         if test -z "$haveit"; then
6404                           if test -d "$additional_libdir"; then
6405                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6406                           fi
6407                         fi
6408                       fi
6409                     fi
6410                     ;;
6411                   -R*)
6412                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6413                     if test "$enable_rpath" != no; then
6414                                                                   haveit=
6415                       for x in $rpathdirs; 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                         rpathdirs="$rpathdirs $dir"
6423                       fi
6424                                                                   haveit=
6425                       for x in $ltrpathdirs; do
6426                         if test "X$x" = "X$dir"; then
6427                           haveit=yes
6428                           break
6429                         fi
6430                       done
6431                       if test -z "$haveit"; then
6432                         ltrpathdirs="$ltrpathdirs $dir"
6433                       fi
6434                     fi
6435                     ;;
6436                   -l*)
6437                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6438                     ;;
6439                   *.la)
6440                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6441                     ;;
6442                   *)
6443                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6444                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6445                     ;;
6446                 esac
6447               done
6448             fi
6449           else
6450                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6451             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6452           fi
6453         fi
6454       fi
6455     done
6456   done
6457   if test "X$rpathdirs" != "X"; then
6458     if test -n "$hardcode_libdir_separator"; then
6459                         alldirs=
6460       for found_dir in $rpathdirs; do
6461         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6462       done
6463             acl_save_libdir="$libdir"
6464       libdir="$alldirs"
6465       eval flag=\"$hardcode_libdir_flag_spec\"
6466       libdir="$acl_save_libdir"
6467       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6468     else
6469             for found_dir in $rpathdirs; do
6470         acl_save_libdir="$libdir"
6471         libdir="$found_dir"
6472         eval flag=\"$hardcode_libdir_flag_spec\"
6473         libdir="$acl_save_libdir"
6474         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6475       done
6476     fi
6477   fi
6478   if test "X$ltrpathdirs" != "X"; then
6479             for found_dir in $ltrpathdirs; do
6480       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6481     done
6482   fi
6483
6484           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6485 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6486 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   gt_save_CPPFLAGS="$CPPFLAGS"
6490             CPPFLAGS="$CPPFLAGS $INCINTL"
6491             gt_save_LIBS="$LIBS"
6492             LIBS="$LIBS $LIBINTL"
6493                         cat >conftest.$ac_ext <<_ACEOF
6494 /* confdefs.h.  */
6495 _ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h.  */
6499 #include <libintl.h>
6500 extern int _nl_msg_cat_cntr;
6501 extern
6502 #ifdef __cplusplus
6503 "C"
6504 #endif
6505 const char *_nl_expand_alias (const char *);
6506 int
6507 main ()
6508 {
6509 bindtextdomain ("", "");
6510 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6511   ;
6512   return 0;
6513 }
6514 _ACEOF
6515 rm -f conftest.$ac_objext conftest$ac_exeext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6517   (eval $ac_link) 2>conftest.er1
6518   ac_status=$?
6519   grep -v '^ *+' conftest.er1 >conftest.err
6520   rm -f conftest.er1
6521   cat conftest.err >&5
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); } &&
6524          { ac_try='test -z "$ac_c_werror_flag"
6525                          || test ! -s conftest.err'
6526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527   (eval $ac_try) 2>&5
6528   ac_status=$?
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); }; } &&
6531          { ac_try='test -s conftest$ac_exeext'
6532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533   (eval $ac_try) 2>&5
6534   ac_status=$?
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); }; }; then
6537   gt_cv_func_gnugettext1_libintl=yes
6538 else
6539   echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6541
6542 gt_cv_func_gnugettext1_libintl=no
6543 fi
6544 rm -f conftest.err conftest.$ac_objext \
6545       conftest$ac_exeext conftest.$ac_ext
6546                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6547               LIBS="$LIBS $LIBICONV"
6548               cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h.  */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h.  */
6554 #include <libintl.h>
6555 extern int _nl_msg_cat_cntr;
6556 extern
6557 #ifdef __cplusplus
6558 "C"
6559 #endif
6560 const char *_nl_expand_alias (const char *);
6561 int
6562 main ()
6563 {
6564 bindtextdomain ("", "");
6565 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6566   ;
6567   return 0;
6568 }
6569 _ACEOF
6570 rm -f conftest.$ac_objext conftest$ac_exeext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572   (eval $ac_link) 2>conftest.er1
6573   ac_status=$?
6574   grep -v '^ *+' conftest.er1 >conftest.err
6575   rm -f conftest.er1
6576   cat conftest.err >&5
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); } &&
6579          { ac_try='test -z "$ac_c_werror_flag"
6580                          || test ! -s conftest.err'
6581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582   (eval $ac_try) 2>&5
6583   ac_status=$?
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); }; } &&
6586          { ac_try='test -s conftest$ac_exeext'
6587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588   (eval $ac_try) 2>&5
6589   ac_status=$?
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); }; }; then
6592   LIBINTL="$LIBINTL $LIBICONV"
6593                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6594                 gt_cv_func_gnugettext1_libintl=yes
6595
6596 else
6597   echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6599
6600 fi
6601 rm -f conftest.err conftest.$ac_objext \
6602       conftest$ac_exeext conftest.$ac_ext
6603             fi
6604             CPPFLAGS="$gt_save_CPPFLAGS"
6605             LIBS="$gt_save_LIBS"
6606 fi
6607 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6608 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6609         fi
6610
6611                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6612            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6613                 && test "$PACKAGE" != gettext-runtime \
6614                 && test "$PACKAGE" != gettext-tools; }; then
6615           gt_use_preinstalled_gnugettext=yes
6616         else
6617                     LIBINTL=
6618           LTLIBINTL=
6619           INCINTL=
6620         fi
6621
6622
6623
6624     if test -n "$INTL_MACOSX_LIBS"; then
6625       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6626          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6627                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6628         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6629       fi
6630     fi
6631
6632     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6633        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6634
6635 cat >>confdefs.h <<\_ACEOF
6636 #define ENABLE_NLS 1
6637 _ACEOF
6638
6639     else
6640       USE_NLS=no
6641     fi
6642   fi
6643
6644   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6645 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6646   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6647 echo "${ECHO_T}$USE_NLS" >&6
6648   if test "$USE_NLS" = "yes"; then
6649     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6650 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6651     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6652       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6653         gt_source="external libintl"
6654       else
6655         gt_source="libc"
6656       fi
6657     else
6658       gt_source="included intl directory"
6659     fi
6660     echo "$as_me:$LINENO: result: $gt_source" >&5
6661 echo "${ECHO_T}$gt_source" >&6
6662   fi
6663
6664   if test "$USE_NLS" = "yes"; then
6665
6666     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6667       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6668         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6669 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6670         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6671 echo "${ECHO_T}$LIBINTL" >&6
6672
6673   for element in $INCINTL; do
6674     haveit=
6675     for x in $CPPFLAGS; do
6676
6677   acl_save_prefix="$prefix"
6678   prefix="$acl_final_prefix"
6679   acl_save_exec_prefix="$exec_prefix"
6680   exec_prefix="$acl_final_exec_prefix"
6681   eval x=\"$x\"
6682   exec_prefix="$acl_save_exec_prefix"
6683   prefix="$acl_save_prefix"
6684
6685       if test "X$x" = "X$element"; then
6686         haveit=yes
6687         break
6688       fi
6689     done
6690     if test -z "$haveit"; then
6691       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6692     fi
6693   done
6694
6695       fi
6696
6697
6698 cat >>confdefs.h <<\_ACEOF
6699 #define HAVE_GETTEXT 1
6700 _ACEOF
6701
6702
6703 cat >>confdefs.h <<\_ACEOF
6704 #define HAVE_DCGETTEXT 1
6705 _ACEOF
6706
6707     fi
6708
6709         POSUB=po
6710   fi
6711
6712
6713
6714     INTLLIBS="$LIBINTL"
6715
6716
6717
6718
6719
6720
6721 if test x${prefix} = xNONE ; then
6722    if test `eval echo ${datadir}` = NONE/share ; then
6723       datadir=/usr/share
6724    fi
6725 fi
6726
6727 # ------------------------------------------------------------------
6728 #  If the user has not set --prefix, we set our default to nothing.
6729 #  In this case, if the user has not set --sysconfdir, we set it
6730 #  to the package default of /etc/bacula.  If either --prefix or
6731 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6732 # ------------------------------------------------------------------
6733 if test x${prefix} = xNONE ; then
6734     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6735         sysconfdir=/etc/bacula
6736     fi
6737     prefix=
6738 fi
6739 sysconfdir=`eval echo ${sysconfdir}`
6740 datadir=`eval echo ${datadir}`
6741 localedir=`eval echo ${datadir}/locale`
6742 cat >>confdefs.h <<_ACEOF
6743 #define LOCALEDIR "$localedir"
6744 _ACEOF
6745
6746 cat >>confdefs.h <<_ACEOF
6747 #define SYSCONFDIR "$sysconfdir"
6748 _ACEOF
6749
6750
6751 # -------------------------------------------------------------------------
6752 #  If the user has not set --exec-prefix, we default to ${prefix}
6753 # -------------------------------------------------------------------------
6754 if test x${exec_prefix} = xNONE ; then
6755     exec_prefix=${prefix}
6756 fi
6757
6758 # ------------------------------------------------------------------
6759 # If the user has not set --sbindir, we set our default as /sbin
6760 # ------------------------------------------------------------------
6761 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6762     sbindir=${exec_prefix}/sbin
6763 fi
6764 sbindir=`eval echo ${sbindir}`
6765
6766 # -------------------------------------------------------------------------
6767 #  If the user has not set --mandir, we default to /usr/share/man
6768 # -------------------------------------------------------------------------
6769 if test x$mandir = x'${prefix}/man' ; then
6770    mandir=/usr/share/man
6771 fi
6772
6773
6774 for ac_prog in msgfmt
6775 do
6776   # Extract the first word of "$ac_prog", so it can be a program name with args.
6777 set dummy $ac_prog; ac_word=$2
6778 echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6780 if test "${ac_cv_path_MSGFMT+set}" = set; then
6781   echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783   case $MSGFMT in
6784   [\\/]* | ?:[\\/]*)
6785   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6786   ;;
6787   *)
6788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 for as_dir in $PATH
6790 do
6791   IFS=$as_save_IFS
6792   test -z "$as_dir" && as_dir=.
6793   for ac_exec_ext in '' $ac_executable_extensions; do
6794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797     break 2
6798   fi
6799 done
6800 done
6801
6802   ;;
6803 esac
6804 fi
6805 MSGFMT=$ac_cv_path_MSGFMT
6806
6807 if test -n "$MSGFMT"; then
6808   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6809 echo "${ECHO_T}$MSGFMT" >&6
6810 else
6811   echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6
6813 fi
6814
6815   test -n "$MSGFMT" && break
6816 done
6817 test -n "$MSGFMT" || MSGFMT="no"
6818
6819 if test "$MSGFMT" = "no"
6820 then
6821    echo 'msgfmt program not found, disabling NLS !'
6822    USE_NLS=no
6823    USE_INCLUDED_LIBINTL=no
6824 #else
6825
6826     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6827 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6828 if test "${ac_cv_gnu_library_2+set}" = set; then
6829   echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831   cat >conftest.$ac_ext <<_ACEOF
6832 /* confdefs.h.  */
6833 _ACEOF
6834 cat confdefs.h >>conftest.$ac_ext
6835 cat >>conftest.$ac_ext <<_ACEOF
6836 /* end confdefs.h.  */
6837
6838 #include <features.h>
6839 #ifdef __GNU_LIBRARY__
6840  #if (__GLIBC__ >= 2)
6841   Lucky GNU user
6842  #endif
6843 #endif
6844
6845 _ACEOF
6846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6847   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6848   ac_cv_gnu_library_2=yes
6849 else
6850   ac_cv_gnu_library_2=no
6851 fi
6852 rm -f conftest*
6853
6854
6855
6856 fi
6857 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6858 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6859
6860     GLIBC2="$ac_cv_gnu_library_2"
6861
6862
6863
6864         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
6865 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
6866 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
6867   echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869   ac_check_lib_save_LIBS=$LIBS
6870 LIBS="-lcposix  $LIBS"
6871 cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h.  */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h.  */
6877
6878 /* Override any gcc2 internal prototype to avoid an error.  */
6879 #ifdef __cplusplus
6880 extern "C"
6881 #endif
6882 /* We use char because int might match the return type of a gcc2
6883    builtin and then its argument prototype would still apply.  */
6884 char strerror ();
6885 int
6886 main ()
6887 {
6888 strerror ();
6889   ;
6890   return 0;
6891 }
6892 _ACEOF
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895   (eval $ac_link) 2>conftest.er1
6896   ac_status=$?
6897   grep -v '^ *+' conftest.er1 >conftest.err
6898   rm -f conftest.er1
6899   cat conftest.err >&5
6900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901   (exit $ac_status); } &&
6902          { ac_try='test -z "$ac_c_werror_flag"
6903                          || test ! -s conftest.err'
6904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905   (eval $ac_try) 2>&5
6906   ac_status=$?
6907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908   (exit $ac_status); }; } &&
6909          { ac_try='test -s conftest$ac_exeext'
6910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911   (eval $ac_try) 2>&5
6912   ac_status=$?
6913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914   (exit $ac_status); }; }; then
6915   ac_cv_lib_cposix_strerror=yes
6916 else
6917   echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6919
6920 ac_cv_lib_cposix_strerror=no
6921 fi
6922 rm -f conftest.err conftest.$ac_objext \
6923       conftest$ac_exeext conftest.$ac_ext
6924 LIBS=$ac_check_lib_save_LIBS
6925 fi
6926 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
6927 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
6928 if test $ac_cv_lib_cposix_strerror = yes; then
6929   LIBS="$LIBS -lcposix"
6930 fi
6931
6932
6933
6934 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6935 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6936 if test "${ac_cv_header_stdc+set}" = set; then
6937   echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939   cat >conftest.$ac_ext <<_ACEOF
6940 /* confdefs.h.  */
6941 _ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h.  */
6945 #include <stdlib.h>
6946 #include <stdarg.h>
6947 #include <string.h>
6948 #include <float.h>
6949
6950 int
6951 main ()
6952 {
6953
6954   ;
6955   return 0;
6956 }
6957 _ACEOF
6958 rm -f conftest.$ac_objext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6960   (eval $ac_compile) 2>conftest.er1
6961   ac_status=$?
6962   grep -v '^ *+' conftest.er1 >conftest.err
6963   rm -f conftest.er1
6964   cat conftest.err >&5
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); } &&
6967          { ac_try='test -z "$ac_c_werror_flag"
6968                          || test ! -s conftest.err'
6969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970   (eval $ac_try) 2>&5
6971   ac_status=$?
6972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973   (exit $ac_status); }; } &&
6974          { ac_try='test -s conftest.$ac_objext'
6975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976   (eval $ac_try) 2>&5
6977   ac_status=$?
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); }; }; then
6980   ac_cv_header_stdc=yes
6981 else
6982   echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6984
6985 ac_cv_header_stdc=no
6986 fi
6987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6988
6989 if test $ac_cv_header_stdc = yes; then
6990   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6991   cat >conftest.$ac_ext <<_ACEOF
6992 /* confdefs.h.  */
6993 _ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h.  */
6997 #include <string.h>
6998
6999 _ACEOF
7000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7001   $EGREP "memchr" >/dev/null 2>&1; then
7002   :
7003 else
7004   ac_cv_header_stdc=no
7005 fi
7006 rm -f conftest*
7007
7008 fi
7009
7010 if test $ac_cv_header_stdc = yes; then
7011   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7012   cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h.  */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h.  */
7018 #include <stdlib.h>
7019
7020 _ACEOF
7021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7022   $EGREP "free" >/dev/null 2>&1; then
7023   :
7024 else
7025   ac_cv_header_stdc=no
7026 fi
7027 rm -f conftest*
7028
7029 fi
7030
7031 if test $ac_cv_header_stdc = yes; then
7032   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7033   if test "$cross_compiling" = yes; then
7034   :
7035 else
7036   cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h.  */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h.  */
7042 #include <ctype.h>
7043 #if ((' ' & 0x0FF) == 0x020)
7044 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7045 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7046 #else
7047 # define ISLOWER(c) \
7048                    (('a' <= (c) && (c) <= 'i') \
7049                      || ('j' <= (c) && (c) <= 'r') \
7050                      || ('s' <= (c) && (c) <= 'z'))
7051 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7052 #endif
7053
7054 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7055 int
7056 main ()
7057 {
7058   int i;
7059   for (i = 0; i < 256; i++)
7060     if (XOR (islower (i), ISLOWER (i))
7061         || toupper (i) != TOUPPER (i))
7062       exit(2);
7063   exit (0);
7064 }
7065 _ACEOF
7066 rm -f conftest$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068   (eval $ac_link) 2>&5
7069   ac_status=$?
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073   (eval $ac_try) 2>&5
7074   ac_status=$?
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); }; }; then
7077   :
7078 else
7079   echo "$as_me: program exited with status $ac_status" >&5
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7082
7083 ( exit $ac_status )
7084 ac_cv_header_stdc=no
7085 fi
7086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7087 fi
7088 fi
7089 fi
7090 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7091 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7092 if test $ac_cv_header_stdc = yes; then
7093
7094 cat >>confdefs.h <<\_ACEOF
7095 #define STDC_HEADERS 1
7096 _ACEOF
7097
7098 fi
7099
7100 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7101 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7102 if test "${ac_cv_c_const+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   cat >conftest.$ac_ext <<_ACEOF
7106 /* confdefs.h.  */
7107 _ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h.  */
7111
7112 int
7113 main ()
7114 {
7115 /* FIXME: Include the comments suggested by Paul. */
7116 #ifndef __cplusplus
7117   /* Ultrix mips cc rejects this.  */
7118   typedef int charset[2];
7119   const charset x;
7120   /* SunOS 4.1.1 cc rejects this.  */
7121   char const *const *ccp;
7122   char **p;
7123   /* NEC SVR4.0.2 mips cc rejects this.  */
7124   struct point {int x, y;};
7125   static struct point const zero = {0,0};
7126   /* AIX XL C 1.02.0.0 rejects this.
7127      It does not let you subtract one const X* pointer from another in
7128      an arm of an if-expression whose if-part is not a constant
7129      expression */
7130   const char *g = "string";
7131   ccp = &g + (g ? g-g : 0);
7132   /* HPUX 7.0 cc rejects these. */
7133   ++ccp;
7134   p = (char**) ccp;
7135   ccp = (char const *const *) p;
7136   { /* SCO 3.2v4 cc rejects this.  */
7137     char *t;
7138     char const *s = 0 ? (char *) 0 : (char const *) 0;
7139
7140     *t++ = 0;
7141   }
7142   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7143     int x[] = {25, 17};
7144     const int *foo = &x[0];
7145     ++foo;
7146   }
7147   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7148     typedef const int *iptr;
7149     iptr p = 0;
7150     ++p;
7151   }
7152   { /* AIX XL C 1.02.0.0 rejects this saying
7153        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7154     struct s { int j; const int *ap[3]; };
7155     struct s *b; b->j = 5;
7156   }
7157   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7158     const int foo = 10;
7159   }
7160 #endif
7161
7162   ;
7163   return 0;
7164 }
7165 _ACEOF
7166 rm -f conftest.$ac_objext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7168   (eval $ac_compile) 2>conftest.er1
7169   ac_status=$?
7170   grep -v '^ *+' conftest.er1 >conftest.err
7171   rm -f conftest.er1
7172   cat conftest.err >&5
7173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174   (exit $ac_status); } &&
7175          { ac_try='test -z "$ac_c_werror_flag"
7176                          || test ! -s conftest.err'
7177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178   (eval $ac_try) 2>&5
7179   ac_status=$?
7180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181   (exit $ac_status); }; } &&
7182          { ac_try='test -s conftest.$ac_objext'
7183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184   (eval $ac_try) 2>&5
7185   ac_status=$?
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); }; }; then
7188   ac_cv_c_const=yes
7189 else
7190   echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7192
7193 ac_cv_c_const=no
7194 fi
7195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7196 fi
7197 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7198 echo "${ECHO_T}$ac_cv_c_const" >&6
7199 if test $ac_cv_c_const = no; then
7200
7201 cat >>confdefs.h <<\_ACEOF
7202 #define const
7203 _ACEOF
7204
7205 fi
7206
7207
7208   echo "$as_me:$LINENO: checking for signed" >&5
7209 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7210 if test "${bh_cv_c_signed+set}" = set; then
7211   echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213   cat >conftest.$ac_ext <<_ACEOF
7214 /* confdefs.h.  */
7215 _ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h.  */
7219
7220 int
7221 main ()
7222 {
7223 signed char x;
7224   ;
7225   return 0;
7226 }
7227 _ACEOF
7228 rm -f conftest.$ac_objext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230   (eval $ac_compile) 2>conftest.er1
7231   ac_status=$?
7232   grep -v '^ *+' conftest.er1 >conftest.err
7233   rm -f conftest.er1
7234   cat conftest.err >&5
7235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236   (exit $ac_status); } &&
7237          { ac_try='test -z "$ac_c_werror_flag"
7238                          || test ! -s conftest.err'
7239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240   (eval $ac_try) 2>&5
7241   ac_status=$?
7242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243   (exit $ac_status); }; } &&
7244          { ac_try='test -s conftest.$ac_objext'
7245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246   (eval $ac_try) 2>&5
7247   ac_status=$?
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); }; }; then
7250   bh_cv_c_signed=yes
7251 else
7252   echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7254
7255 bh_cv_c_signed=no
7256 fi
7257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7258 fi
7259 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7260 echo "${ECHO_T}$bh_cv_c_signed" >&6
7261   if test $bh_cv_c_signed = no; then
7262
7263 cat >>confdefs.h <<\_ACEOF
7264 #define signed
7265 _ACEOF
7266
7267   fi
7268
7269 echo "$as_me:$LINENO: checking for inline" >&5
7270 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7271 if test "${ac_cv_c_inline+set}" = set; then
7272   echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274   ac_cv_c_inline=no
7275 for ac_kw in inline __inline__ __inline; do
7276   cat >conftest.$ac_ext <<_ACEOF
7277 /* confdefs.h.  */
7278 _ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h.  */
7282 #ifndef __cplusplus
7283 typedef int foo_t;
7284 static $ac_kw foo_t static_foo () {return 0; }
7285 $ac_kw foo_t foo () {return 0; }
7286 #endif
7287
7288 _ACEOF
7289 rm -f conftest.$ac_objext
7290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7291   (eval $ac_compile) 2>conftest.er1
7292   ac_status=$?
7293   grep -v '^ *+' conftest.er1 >conftest.err
7294   rm -f conftest.er1
7295   cat conftest.err >&5
7296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297   (exit $ac_status); } &&
7298          { ac_try='test -z "$ac_c_werror_flag"
7299                          || test ! -s conftest.err'
7300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301   (eval $ac_try) 2>&5
7302   ac_status=$?
7303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304   (exit $ac_status); }; } &&
7305          { ac_try='test -s conftest.$ac_objext'
7306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307   (eval $ac_try) 2>&5
7308   ac_status=$?
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); }; }; then
7311   ac_cv_c_inline=$ac_kw; break
7312 else
7313   echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7315
7316 fi
7317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7318 done
7319
7320 fi
7321 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7322 echo "${ECHO_T}$ac_cv_c_inline" >&6
7323
7324
7325 case $ac_cv_c_inline in
7326   inline | yes) ;;
7327   *)
7328     case $ac_cv_c_inline in
7329       no) ac_val=;;
7330       *) ac_val=$ac_cv_c_inline;;
7331     esac
7332     cat >>confdefs.h <<_ACEOF
7333 #ifndef __cplusplus
7334 #define inline $ac_val
7335 #endif
7336 _ACEOF
7337     ;;
7338 esac
7339
7340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7351                   inttypes.h stdint.h unistd.h
7352 do
7353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7354 echo "$as_me:$LINENO: checking for $ac_header" >&5
7355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359   cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h.  */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h.  */
7365 $ac_includes_default
7366
7367 #include <$ac_header>
7368 _ACEOF
7369 rm -f conftest.$ac_objext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371   (eval $ac_compile) 2>conftest.er1
7372   ac_status=$?
7373   grep -v '^ *+' conftest.er1 >conftest.err
7374   rm -f conftest.er1
7375   cat conftest.err >&5
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); } &&
7378          { ac_try='test -z "$ac_c_werror_flag"
7379                          || test ! -s conftest.err'
7380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381   (eval $ac_try) 2>&5
7382   ac_status=$?
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); }; } &&
7385          { ac_try='test -s conftest.$ac_objext'
7386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387   (eval $ac_try) 2>&5
7388   ac_status=$?
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); }; }; then
7391   eval "$as_ac_Header=yes"
7392 else
7393   echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396 eval "$as_ac_Header=no"
7397 fi
7398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7399 fi
7400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7403   cat >>confdefs.h <<_ACEOF
7404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7405 _ACEOF
7406
7407 fi
7408
7409 done
7410
7411
7412 echo "$as_me:$LINENO: checking for off_t" >&5
7413 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7414 if test "${ac_cv_type_off_t+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h.  */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h.  */
7423 $ac_includes_default
7424 int
7425 main ()
7426 {
7427 if ((off_t *) 0)
7428   return 0;
7429 if (sizeof (off_t))
7430   return 0;
7431   ;
7432   return 0;
7433 }
7434 _ACEOF
7435 rm -f conftest.$ac_objext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7437   (eval $ac_compile) 2>conftest.er1
7438   ac_status=$?
7439   grep -v '^ *+' conftest.er1 >conftest.err
7440   rm -f conftest.er1
7441   cat conftest.err >&5
7442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443   (exit $ac_status); } &&
7444          { ac_try='test -z "$ac_c_werror_flag"
7445                          || test ! -s conftest.err'
7446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447   (eval $ac_try) 2>&5
7448   ac_status=$?
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); }; } &&
7451          { ac_try='test -s conftest.$ac_objext'
7452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453   (eval $ac_try) 2>&5
7454   ac_status=$?
7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); }; }; then
7457   ac_cv_type_off_t=yes
7458 else
7459   echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7461
7462 ac_cv_type_off_t=no
7463 fi
7464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7465 fi
7466 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7467 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7468 if test $ac_cv_type_off_t = yes; then
7469   :
7470 else
7471
7472 cat >>confdefs.h <<_ACEOF
7473 #define off_t long
7474 _ACEOF
7475
7476 fi
7477
7478 echo "$as_me:$LINENO: checking for size_t" >&5
7479 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7480 if test "${ac_cv_type_size_t+set}" = set; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483   cat >conftest.$ac_ext <<_ACEOF
7484 /* confdefs.h.  */
7485 _ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h.  */
7489 $ac_includes_default
7490 int
7491 main ()
7492 {
7493 if ((size_t *) 0)
7494   return 0;
7495 if (sizeof (size_t))
7496   return 0;
7497   ;
7498   return 0;
7499 }
7500 _ACEOF
7501 rm -f conftest.$ac_objext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7503   (eval $ac_compile) 2>conftest.er1
7504   ac_status=$?
7505   grep -v '^ *+' conftest.er1 >conftest.err
7506   rm -f conftest.er1
7507   cat conftest.err >&5
7508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509   (exit $ac_status); } &&
7510          { ac_try='test -z "$ac_c_werror_flag"
7511                          || test ! -s conftest.err'
7512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513   (eval $ac_try) 2>&5
7514   ac_status=$?
7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516   (exit $ac_status); }; } &&
7517          { ac_try='test -s conftest.$ac_objext'
7518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519   (eval $ac_try) 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); }; }; then
7523   ac_cv_type_size_t=yes
7524 else
7525   echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7527
7528 ac_cv_type_size_t=no
7529 fi
7530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7531 fi
7532 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7533 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7534 if test $ac_cv_type_size_t = yes; then
7535   :
7536 else
7537
7538 cat >>confdefs.h <<_ACEOF
7539 #define size_t unsigned
7540 _ACEOF
7541
7542 fi
7543
7544
7545   echo "$as_me:$LINENO: checking for long long" >&5
7546 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7547 if test "${ac_cv_type_long_long+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   cat >conftest.$ac_ext <<_ACEOF
7551 /* confdefs.h.  */
7552 _ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h.  */
7556 long long ll = 1LL; int i = 63;
7557 int
7558 main ()
7559 {
7560 long long llmax = (long long) -1;
7561      return ll << i | ll >> i | llmax / ll | llmax % ll;
7562   ;
7563   return 0;
7564 }
7565 _ACEOF
7566 rm -f conftest.$ac_objext conftest$ac_exeext
7567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7568   (eval $ac_link) 2>conftest.er1
7569   ac_status=$?
7570   grep -v '^ *+' conftest.er1 >conftest.err
7571   rm -f conftest.er1
7572   cat conftest.err >&5
7573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574   (exit $ac_status); } &&
7575          { ac_try='test -z "$ac_c_werror_flag"
7576                          || test ! -s conftest.err'
7577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578   (eval $ac_try) 2>&5
7579   ac_status=$?
7580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581   (exit $ac_status); }; } &&
7582          { ac_try='test -s conftest$ac_exeext'
7583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584   (eval $ac_try) 2>&5
7585   ac_status=$?
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); }; }; then
7588   ac_cv_type_long_long=yes
7589 else
7590   echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7592
7593 ac_cv_type_long_long=no
7594 fi
7595 rm -f conftest.err conftest.$ac_objext \
7596       conftest$ac_exeext conftest.$ac_ext
7597 fi
7598 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7599 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7600   if test $ac_cv_type_long_long = yes; then
7601
7602 cat >>confdefs.h <<\_ACEOF
7603 #define HAVE_LONG_LONG 1
7604 _ACEOF
7605
7606   fi
7607
7608
7609   echo "$as_me:$LINENO: checking for long double" >&5
7610 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7611 if test "${gt_cv_c_long_double+set}" = set; then
7612   echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614   if test "$GCC" = yes; then
7615        gt_cv_c_long_double=yes
7616      else
7617        cat >conftest.$ac_ext <<_ACEOF
7618 /* confdefs.h.  */
7619 _ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h.  */
7623
7624          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
7625          long double foo = 0.0;
7626          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7627          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7628
7629 int
7630 main ()
7631 {
7632
7633   ;
7634   return 0;
7635 }
7636 _ACEOF
7637 rm -f conftest.$ac_objext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639   (eval $ac_compile) 2>conftest.er1
7640   ac_status=$?
7641   grep -v '^ *+' conftest.er1 >conftest.err
7642   rm -f conftest.er1
7643   cat conftest.err >&5
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); } &&
7646          { ac_try='test -z "$ac_c_werror_flag"
7647                          || test ! -s conftest.err'
7648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649   (eval $ac_try) 2>&5
7650   ac_status=$?
7651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652   (exit $ac_status); }; } &&
7653          { ac_try='test -s conftest.$ac_objext'
7654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655   (eval $ac_try) 2>&5
7656   ac_status=$?
7657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658   (exit $ac_status); }; }; then
7659   gt_cv_c_long_double=yes
7660 else
7661   echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7663
7664 gt_cv_c_long_double=no
7665 fi
7666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7667      fi
7668 fi
7669 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7670 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7671   if test $gt_cv_c_long_double = yes; then
7672
7673 cat >>confdefs.h <<\_ACEOF
7674 #define HAVE_LONG_DOUBLE 1
7675 _ACEOF
7676
7677   fi
7678
7679
7680   echo "$as_me:$LINENO: checking for wchar_t" >&5
7681 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7682 if test "${gt_cv_c_wchar_t+set}" = set; then
7683   echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685   cat >conftest.$ac_ext <<_ACEOF
7686 /* confdefs.h.  */
7687 _ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h.  */
7691 #include <stddef.h>
7692        wchar_t foo = (wchar_t)'\0';
7693 int
7694 main ()
7695 {
7696
7697   ;
7698   return 0;
7699 }
7700 _ACEOF
7701 rm -f conftest.$ac_objext
7702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7703   (eval $ac_compile) 2>conftest.er1
7704   ac_status=$?
7705   grep -v '^ *+' conftest.er1 >conftest.err
7706   rm -f conftest.er1
7707   cat conftest.err >&5
7708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709   (exit $ac_status); } &&
7710          { ac_try='test -z "$ac_c_werror_flag"
7711                          || test ! -s conftest.err'
7712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713   (eval $ac_try) 2>&5
7714   ac_status=$?
7715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716   (exit $ac_status); }; } &&
7717          { ac_try='test -s conftest.$ac_objext'
7718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719   (eval $ac_try) 2>&5
7720   ac_status=$?
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); }; }; then
7723   gt_cv_c_wchar_t=yes
7724 else
7725   echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7727
7728 gt_cv_c_wchar_t=no
7729 fi
7730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7731 fi
7732 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7733 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7734   if test $gt_cv_c_wchar_t = yes; then
7735
7736 cat >>confdefs.h <<\_ACEOF
7737 #define HAVE_WCHAR_T 1
7738 _ACEOF
7739
7740   fi
7741
7742
7743   echo "$as_me:$LINENO: checking for wint_t" >&5
7744 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7745 if test "${gt_cv_c_wint_t+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   cat >conftest.$ac_ext <<_ACEOF
7749 /* confdefs.h.  */
7750 _ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h.  */
7754 #include <wchar.h>
7755        wint_t foo = (wchar_t)'\0';
7756 int
7757 main ()
7758 {
7759
7760   ;
7761   return 0;
7762 }
7763 _ACEOF
7764 rm -f conftest.$ac_objext
7765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7766   (eval $ac_compile) 2>conftest.er1
7767   ac_status=$?
7768   grep -v '^ *+' conftest.er1 >conftest.err
7769   rm -f conftest.er1
7770   cat conftest.err >&5
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); } &&
7773          { ac_try='test -z "$ac_c_werror_flag"
7774                          || test ! -s conftest.err'
7775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776   (eval $ac_try) 2>&5
7777   ac_status=$?
7778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779   (exit $ac_status); }; } &&
7780          { ac_try='test -s conftest.$ac_objext'
7781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782   (eval $ac_try) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); }; }; then
7786   gt_cv_c_wint_t=yes
7787 else
7788   echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791 gt_cv_c_wint_t=no
7792 fi
7793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7794 fi
7795 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7796 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7797   if test $gt_cv_c_wint_t = yes; then
7798
7799 cat >>confdefs.h <<\_ACEOF
7800 #define HAVE_WINT_T 1
7801 _ACEOF
7802
7803   fi
7804
7805
7806   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7807 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7808 if test "${gl_cv_header_inttypes_h+set}" = set; then
7809   echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811   cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h.  */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h.  */
7817 #include <sys/types.h>
7818 #include <inttypes.h>
7819 int
7820 main ()
7821 {
7822 uintmax_t i = (uintmax_t) -1;
7823   ;
7824   return 0;
7825 }
7826 _ACEOF
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829   (eval $ac_compile) 2>conftest.er1
7830   ac_status=$?
7831   grep -v '^ *+' conftest.er1 >conftest.err
7832   rm -f conftest.er1
7833   cat conftest.err >&5
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); } &&
7836          { ac_try='test -z "$ac_c_werror_flag"
7837                          || test ! -s conftest.err'
7838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839   (eval $ac_try) 2>&5
7840   ac_status=$?
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); }; } &&
7843          { ac_try='test -s conftest.$ac_objext'
7844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845   (eval $ac_try) 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; }; then
7849   gl_cv_header_inttypes_h=yes
7850 else
7851   echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7853
7854 gl_cv_header_inttypes_h=no
7855 fi
7856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7857 fi
7858 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7859 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7860   if test $gl_cv_header_inttypes_h = yes; then
7861
7862 cat >>confdefs.h <<_ACEOF
7863 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7864 _ACEOF
7865
7866   fi
7867
7868
7869   echo "$as_me:$LINENO: checking for stdint.h" >&5
7870 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7871 if test "${gl_cv_header_stdint_h+set}" = set; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874   cat >conftest.$ac_ext <<_ACEOF
7875 /* confdefs.h.  */
7876 _ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h.  */
7880 #include <sys/types.h>
7881 #include <stdint.h>
7882 int
7883 main ()
7884 {
7885 uintmax_t i = (uintmax_t) -1;
7886   ;
7887   return 0;
7888 }
7889 _ACEOF
7890 rm -f conftest.$ac_objext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892   (eval $ac_compile) 2>conftest.er1
7893   ac_status=$?
7894   grep -v '^ *+' conftest.er1 >conftest.err
7895   rm -f conftest.er1
7896   cat conftest.err >&5
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); } &&
7899          { ac_try='test -z "$ac_c_werror_flag"
7900                          || test ! -s conftest.err'
7901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902   (eval $ac_try) 2>&5
7903   ac_status=$?
7904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); }; } &&
7906          { ac_try='test -s conftest.$ac_objext'
7907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908   (eval $ac_try) 2>&5
7909   ac_status=$?
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); }; }; then
7912   gl_cv_header_stdint_h=yes
7913 else
7914   echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.$ac_ext >&5
7916
7917 gl_cv_header_stdint_h=no
7918 fi
7919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7920 fi
7921 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7922 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7923   if test $gl_cv_header_stdint_h = yes; then
7924
7925 cat >>confdefs.h <<_ACEOF
7926 #define HAVE_STDINT_H_WITH_UINTMAX 1
7927 _ACEOF
7928
7929   fi
7930
7931
7932
7933
7934   echo "$as_me:$LINENO: checking for intmax_t" >&5
7935 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7936 if test "${gt_cv_c_intmax_t+set}" = set; then
7937   echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939   cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h.  */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h.  */
7945
7946 #include <stddef.h>
7947 #include <stdlib.h>
7948 #if HAVE_STDINT_H_WITH_UINTMAX
7949 #include <stdint.h>
7950 #endif
7951 #if HAVE_INTTYPES_H_WITH_UINTMAX
7952 #include <inttypes.h>
7953 #endif
7954
7955 int
7956 main ()
7957 {
7958 intmax_t x = -1;
7959   ;
7960   return 0;
7961 }
7962 _ACEOF
7963 rm -f conftest.$ac_objext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7965   (eval $ac_compile) 2>conftest.er1
7966   ac_status=$?
7967   grep -v '^ *+' conftest.er1 >conftest.err
7968   rm -f conftest.er1
7969   cat conftest.err >&5
7970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971   (exit $ac_status); } &&
7972          { ac_try='test -z "$ac_c_werror_flag"
7973                          || test ! -s conftest.err'
7974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975   (eval $ac_try) 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); }; } &&
7979          { ac_try='test -s conftest.$ac_objext'
7980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981   (eval $ac_try) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; }; then
7985   gt_cv_c_intmax_t=yes
7986 else
7987   echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990 gt_cv_c_intmax_t=no
7991 fi
7992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7993 fi
7994 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
7995 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
7996   if test $gt_cv_c_intmax_t = yes; then
7997
7998 cat >>confdefs.h <<\_ACEOF
7999 #define HAVE_INTMAX_T 1
8000 _ACEOF
8001
8002   fi
8003
8004
8005
8006   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8007 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8008 if test "${gt_cv_func_printf_posix+set}" = set; then
8009   echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011
8012       if test "$cross_compiling" = yes; then
8013
8014         cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h.  */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h.  */
8020
8021 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8022   notposix
8023 #endif
8024
8025 _ACEOF
8026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8027   $EGREP "notposix" >/dev/null 2>&1; then
8028   gt_cv_func_printf_posix="guessing no"
8029 else
8030   gt_cv_func_printf_posix="guessing yes"
8031 fi
8032 rm -f conftest*
8033
8034
8035 else
8036   cat >conftest.$ac_ext <<_ACEOF
8037 /* confdefs.h.  */
8038 _ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h.  */
8042
8043 #include <stdio.h>
8044 #include <string.h>
8045 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8046    dollar expansion (possibly an autoconf bug).  */
8047 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8048 static char buf[100];
8049 int main ()
8050 {
8051   sprintf (buf, format, 33, 55);
8052   return (strcmp (buf, "55 33") != 0);
8053 }
8054 _ACEOF
8055 rm -f conftest$ac_exeext
8056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8057   (eval $ac_link) 2>&5
8058   ac_status=$?
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062   (eval $ac_try) 2>&5
8063   ac_status=$?
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); }; }; then
8066   gt_cv_func_printf_posix=yes
8067 else
8068   echo "$as_me: program exited with status $ac_status" >&5
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8071
8072 ( exit $ac_status )
8073 gt_cv_func_printf_posix=no
8074 fi
8075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8076 fi
8077
8078 fi
8079 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8080 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8081   case $gt_cv_func_printf_posix in
8082     *yes)
8083
8084 cat >>confdefs.h <<\_ACEOF
8085 #define HAVE_POSIX_PRINTF 1
8086 _ACEOF
8087
8088       ;;
8089   esac
8090
8091 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8092 # for constant arguments.  Useless!
8093 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8094 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8095 if test "${ac_cv_working_alloca_h+set}" = set; then
8096   echo $ECHO_N "(cached) $ECHO_C" >&6
8097 else
8098   cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h.  */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h.  */
8104 #include <alloca.h>
8105 int
8106 main ()
8107 {
8108 char *p = (char *) alloca (2 * sizeof (int));
8109   ;
8110   return 0;
8111 }
8112 _ACEOF
8113 rm -f conftest.$ac_objext conftest$ac_exeext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8115   (eval $ac_link) 2>conftest.er1
8116   ac_status=$?
8117   grep -v '^ *+' conftest.er1 >conftest.err
8118   rm -f conftest.er1
8119   cat conftest.err >&5
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } &&
8122          { ac_try='test -z "$ac_c_werror_flag"
8123                          || test ! -s conftest.err'
8124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125   (eval $ac_try) 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); }; } &&
8129          { ac_try='test -s conftest$ac_exeext'
8130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131   (eval $ac_try) 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; }; then
8135   ac_cv_working_alloca_h=yes
8136 else
8137   echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8139
8140 ac_cv_working_alloca_h=no
8141 fi
8142 rm -f conftest.err conftest.$ac_objext \
8143       conftest$ac_exeext conftest.$ac_ext
8144 fi
8145 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8146 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8147 if test $ac_cv_working_alloca_h = yes; then
8148
8149 cat >>confdefs.h <<\_ACEOF
8150 #define HAVE_ALLOCA_H 1
8151 _ACEOF
8152
8153 fi
8154
8155 echo "$as_me:$LINENO: checking for alloca" >&5
8156 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8157 if test "${ac_cv_func_alloca_works+set}" = set; then
8158   echo $ECHO_N "(cached) $ECHO_C" >&6
8159 else
8160   cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h.  */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h.  */
8166 #ifdef __GNUC__
8167 # define alloca __builtin_alloca
8168 #else
8169 # ifdef _MSC_VER
8170 #  include <malloc.h>
8171 #  define alloca _alloca
8172 # else
8173 #  if HAVE_ALLOCA_H
8174 #   include <alloca.h>
8175 #  else
8176 #   ifdef _AIX
8177  #pragma alloca
8178 #   else
8179 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8180 char *alloca ();
8181 #    endif
8182 #   endif
8183 #  endif
8184 # endif
8185 #endif
8186
8187 int
8188 main ()
8189 {
8190 char *p = (char *) alloca (1);
8191   ;
8192   return 0;
8193 }
8194 _ACEOF
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8197   (eval $ac_link) 2>conftest.er1
8198   ac_status=$?
8199   grep -v '^ *+' conftest.er1 >conftest.err
8200   rm -f conftest.er1
8201   cat conftest.err >&5
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } &&
8204          { ac_try='test -z "$ac_c_werror_flag"
8205                          || test ! -s conftest.err'
8206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207   (eval $ac_try) 2>&5
8208   ac_status=$?
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); }; } &&
8211          { ac_try='test -s conftest$ac_exeext'
8212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213   (eval $ac_try) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; }; then
8217   ac_cv_func_alloca_works=yes
8218 else
8219   echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8221
8222 ac_cv_func_alloca_works=no
8223 fi
8224 rm -f conftest.err conftest.$ac_objext \
8225       conftest$ac_exeext conftest.$ac_ext
8226 fi
8227 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8228 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8229
8230 if test $ac_cv_func_alloca_works = yes; then
8231
8232 cat >>confdefs.h <<\_ACEOF
8233 #define HAVE_ALLOCA 1
8234 _ACEOF
8235
8236 else
8237   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8238 # that cause trouble.  Some versions do not even contain alloca or
8239 # contain a buggy version.  If you still want to use their alloca,
8240 # use ar to extract alloca.o from them instead of compiling alloca.c.
8241
8242 ALLOCA=alloca.$ac_objext
8243
8244 cat >>confdefs.h <<\_ACEOF
8245 #define C_ALLOCA 1
8246 _ACEOF
8247
8248
8249 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8250 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8251 if test "${ac_cv_os_cray+set}" = set; then
8252   echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254   cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h.  */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h.  */
8260 #if defined(CRAY) && ! defined(CRAY2)
8261 webecray
8262 #else
8263 wenotbecray
8264 #endif
8265
8266 _ACEOF
8267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8268   $EGREP "webecray" >/dev/null 2>&1; then
8269   ac_cv_os_cray=yes
8270 else
8271   ac_cv_os_cray=no
8272 fi
8273 rm -f conftest*
8274
8275 fi
8276 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8277 echo "${ECHO_T}$ac_cv_os_cray" >&6
8278 if test $ac_cv_os_cray = yes; then
8279   for ac_func in _getb67 GETB67 getb67; do
8280     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8281 echo "$as_me:$LINENO: checking for $ac_func" >&5
8282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8283 if eval "test \"\${$as_ac_var+set}\" = set"; then
8284   echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
8286   cat >conftest.$ac_ext <<_ACEOF
8287 /* confdefs.h.  */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h.  */
8292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8294 #define $ac_func innocuous_$ac_func
8295
8296 /* System header to define __stub macros and hopefully few prototypes,
8297     which can conflict with char $ac_func (); below.
8298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8299     <limits.h> exists even on freestanding compilers.  */
8300
8301 #ifdef __STDC__
8302 # include <limits.h>
8303 #else
8304 # include <assert.h>
8305 #endif
8306
8307 #undef $ac_func
8308
8309 /* Override any gcc2 internal prototype to avoid an error.  */
8310 #ifdef __cplusplus
8311 extern "C"
8312 {
8313 #endif
8314 /* We use char because int might match the return type of a gcc2
8315    builtin and then its argument prototype would still apply.  */
8316 char $ac_func ();
8317 /* The GNU C library defines this for functions which it implements
8318     to always fail with ENOSYS.  Some functions are actually named
8319     something starting with __ and the normal name is an alias.  */
8320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8321 choke me
8322 #else
8323 char (*f) () = $ac_func;
8324 #endif
8325 #ifdef __cplusplus
8326 }
8327 #endif
8328
8329 int
8330 main ()
8331 {
8332 return f != $ac_func;
8333   ;
8334   return 0;
8335 }
8336 _ACEOF
8337 rm -f conftest.$ac_objext conftest$ac_exeext
8338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8339   (eval $ac_link) 2>conftest.er1
8340   ac_status=$?
8341   grep -v '^ *+' conftest.er1 >conftest.err
8342   rm -f conftest.er1
8343   cat conftest.err >&5
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); } &&
8346          { ac_try='test -z "$ac_c_werror_flag"
8347                          || test ! -s conftest.err'
8348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349   (eval $ac_try) 2>&5
8350   ac_status=$?
8351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352   (exit $ac_status); }; } &&
8353          { ac_try='test -s conftest$ac_exeext'
8354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355   (eval $ac_try) 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); }; }; then
8359   eval "$as_ac_var=yes"
8360 else
8361   echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8363
8364 eval "$as_ac_var=no"
8365 fi
8366 rm -f conftest.err conftest.$ac_objext \
8367       conftest$ac_exeext conftest.$ac_ext
8368 fi
8369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8371 if test `eval echo '${'$as_ac_var'}'` = yes; then
8372
8373 cat >>confdefs.h <<_ACEOF
8374 #define CRAY_STACKSEG_END $ac_func
8375 _ACEOF
8376
8377     break
8378 fi
8379
8380   done
8381 fi
8382
8383 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8384 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8385 if test "${ac_cv_c_stack_direction+set}" = set; then
8386   echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388   if test "$cross_compiling" = yes; then
8389   ac_cv_c_stack_direction=0
8390 else
8391   cat >conftest.$ac_ext <<_ACEOF
8392 /* confdefs.h.  */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h.  */
8397 int
8398 find_stack_direction ()
8399 {
8400   static char *addr = 0;
8401   auto char dummy;
8402   if (addr == 0)
8403     {
8404       addr = &dummy;
8405       return find_stack_direction ();
8406     }
8407   else
8408     return (&dummy > addr) ? 1 : -1;
8409 }
8410
8411 int
8412 main ()
8413 {
8414   exit (find_stack_direction () < 0);
8415 }
8416 _ACEOF
8417 rm -f conftest$ac_exeext
8418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8419   (eval $ac_link) 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424   (eval $ac_try) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }; }; then
8428   ac_cv_c_stack_direction=1
8429 else
8430   echo "$as_me: program exited with status $ac_status" >&5
8431 echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8433
8434 ( exit $ac_status )
8435 ac_cv_c_stack_direction=-1
8436 fi
8437 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8438 fi
8439 fi
8440 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8441 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8442
8443 cat >>confdefs.h <<_ACEOF
8444 #define STACK_DIRECTION $ac_cv_c_stack_direction
8445 _ACEOF
8446
8447
8448 fi
8449
8450
8451
8452 for ac_header in stdlib.h unistd.h
8453 do
8454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8456   echo "$as_me:$LINENO: checking for $ac_header" >&5
8457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8459   echo $ECHO_N "(cached) $ECHO_C" >&6
8460 fi
8461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8463 else
8464   # Is the header compilable?
8465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8467 cat >conftest.$ac_ext <<_ACEOF
8468 /* confdefs.h.  */
8469 _ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h.  */
8473 $ac_includes_default
8474 #include <$ac_header>
8475 _ACEOF
8476 rm -f conftest.$ac_objext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8478   (eval $ac_compile) 2>conftest.er1
8479   ac_status=$?
8480   grep -v '^ *+' conftest.er1 >conftest.err
8481   rm -f conftest.er1
8482   cat conftest.err >&5
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); } &&
8485          { ac_try='test -z "$ac_c_werror_flag"
8486                          || test ! -s conftest.err'
8487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488   (eval $ac_try) 2>&5
8489   ac_status=$?
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); }; } &&
8492          { ac_try='test -s conftest.$ac_objext'
8493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494   (eval $ac_try) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); }; }; then
8498   ac_header_compiler=yes
8499 else
8500   echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8502
8503 ac_header_compiler=no
8504 fi
8505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8507 echo "${ECHO_T}$ac_header_compiler" >&6
8508
8509 # Is the header present?
8510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8512 cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h.  */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h.  */
8518 #include <$ac_header>
8519 _ACEOF
8520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8521   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8522   ac_status=$?
8523   grep -v '^ *+' conftest.er1 >conftest.err
8524   rm -f conftest.er1
8525   cat conftest.err >&5
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); } >/dev/null; then
8528   if test -s conftest.err; then
8529     ac_cpp_err=$ac_c_preproc_warn_flag
8530     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8531   else
8532     ac_cpp_err=
8533   fi
8534 else
8535   ac_cpp_err=yes
8536 fi
8537 if test -z "$ac_cpp_err"; then
8538   ac_header_preproc=yes
8539 else
8540   echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8542
8543   ac_header_preproc=no
8544 fi
8545 rm -f conftest.err conftest.$ac_ext
8546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8547 echo "${ECHO_T}$ac_header_preproc" >&6
8548
8549 # So?  What about this header?
8550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8551   yes:no: )
8552     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8556     ac_header_preproc=yes
8557     ;;
8558   no:yes:* )
8559     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8561     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8562 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8563     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8565     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8566 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8569     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8571     (
8572       cat <<\_ASBOX
8573 ## ------------------------------------------ ##
8574 ## Report this to the AC_PACKAGE_NAME lists.  ##
8575 ## ------------------------------------------ ##
8576 _ASBOX
8577     ) |
8578       sed "s/^/$as_me: WARNING:     /" >&2
8579     ;;
8580 esac
8581 echo "$as_me:$LINENO: checking for $ac_header" >&5
8582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8584   echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586   eval "$as_ac_Header=\$ac_header_preproc"
8587 fi
8588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8590
8591 fi
8592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8593   cat >>confdefs.h <<_ACEOF
8594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8595 _ACEOF
8596
8597 fi
8598
8599 done
8600
8601
8602 for ac_func in getpagesize
8603 do
8604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8605 echo "$as_me:$LINENO: checking for $ac_func" >&5
8606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8607 if eval "test \"\${$as_ac_var+set}\" = set"; then
8608   echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610   cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h.  */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h.  */
8616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8618 #define $ac_func innocuous_$ac_func
8619
8620 /* System header to define __stub macros and hopefully few prototypes,
8621     which can conflict with char $ac_func (); below.
8622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8623     <limits.h> exists even on freestanding compilers.  */
8624
8625 #ifdef __STDC__
8626 # include <limits.h>
8627 #else
8628 # include <assert.h>
8629 #endif
8630
8631 #undef $ac_func
8632
8633 /* Override any gcc2 internal prototype to avoid an error.  */
8634 #ifdef __cplusplus
8635 extern "C"
8636 {
8637 #endif
8638 /* We use char because int might match the return type of a gcc2
8639    builtin and then its argument prototype would still apply.  */
8640 char $ac_func ();
8641 /* The GNU C library defines this for functions which it implements
8642     to always fail with ENOSYS.  Some functions are actually named
8643     something starting with __ and the normal name is an alias.  */
8644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8645 choke me
8646 #else
8647 char (*f) () = $ac_func;
8648 #endif
8649 #ifdef __cplusplus
8650 }
8651 #endif
8652
8653 int
8654 main ()
8655 {
8656 return f != $ac_func;
8657   ;
8658   return 0;
8659 }
8660 _ACEOF
8661 rm -f conftest.$ac_objext conftest$ac_exeext
8662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663   (eval $ac_link) 2>conftest.er1
8664   ac_status=$?
8665   grep -v '^ *+' conftest.er1 >conftest.err
8666   rm -f conftest.er1
8667   cat conftest.err >&5
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   (exit $ac_status); } &&
8670          { ac_try='test -z "$ac_c_werror_flag"
8671                          || test ! -s conftest.err'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; } &&
8677          { ac_try='test -s conftest$ac_exeext'
8678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679   (eval $ac_try) 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); }; }; then
8683   eval "$as_ac_var=yes"
8684 else
8685   echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8687
8688 eval "$as_ac_var=no"
8689 fi
8690 rm -f conftest.err conftest.$ac_objext \
8691       conftest$ac_exeext conftest.$ac_ext
8692 fi
8693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8695 if test `eval echo '${'$as_ac_var'}'` = yes; then
8696   cat >>confdefs.h <<_ACEOF
8697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8698 _ACEOF
8699
8700 fi
8701 done
8702
8703 echo "$as_me:$LINENO: checking for working mmap" >&5
8704 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8705 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8706   echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708   if test "$cross_compiling" = yes; then
8709   ac_cv_func_mmap_fixed_mapped=no
8710 else
8711   cat >conftest.$ac_ext <<_ACEOF
8712 /* confdefs.h.  */
8713 _ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h.  */
8717 $ac_includes_default
8718 /* malloc might have been renamed as rpl_malloc. */
8719 #undef malloc
8720
8721 /* Thanks to Mike Haertel and Jim Avera for this test.
8722    Here is a matrix of mmap possibilities:
8723         mmap private not fixed
8724         mmap private fixed at somewhere currently unmapped
8725         mmap private fixed at somewhere already mapped
8726         mmap shared not fixed
8727         mmap shared fixed at somewhere currently unmapped
8728         mmap shared fixed at somewhere already mapped
8729    For private mappings, we should verify that changes cannot be read()
8730    back from the file, nor mmap's back from the file at a different
8731    address.  (There have been systems where private was not correctly
8732    implemented like the infamous i386 svr4.0, and systems where the
8733    VM page cache was not coherent with the file system buffer cache
8734    like early versions of FreeBSD and possibly contemporary NetBSD.)
8735    For shared mappings, we should conversely verify that changes get
8736    propagated back to all the places they're supposed to be.
8737
8738    Grep wants private fixed already mapped.
8739    The main things grep needs to know about mmap are:
8740    * does it exist and is it safe to write into the mmap'd area
8741    * how to use it (BSD variants)  */
8742
8743 #include <fcntl.h>
8744 #include <sys/mman.h>
8745
8746 #if !STDC_HEADERS && !HAVE_STDLIB_H
8747 char *malloc ();
8748 #endif
8749
8750 /* This mess was copied from the GNU getpagesize.h.  */
8751 #if !HAVE_GETPAGESIZE
8752 /* Assume that all systems that can run configure have sys/param.h.  */
8753 # if !HAVE_SYS_PARAM_H
8754 #  define HAVE_SYS_PARAM_H 1
8755 # endif
8756
8757 # ifdef _SC_PAGESIZE
8758 #  define getpagesize() sysconf(_SC_PAGESIZE)
8759 # else /* no _SC_PAGESIZE */
8760 #  if HAVE_SYS_PARAM_H
8761 #   include <sys/param.h>
8762 #   ifdef EXEC_PAGESIZE
8763 #    define getpagesize() EXEC_PAGESIZE
8764 #   else /* no EXEC_PAGESIZE */
8765 #    ifdef NBPG
8766 #     define getpagesize() NBPG * CLSIZE
8767 #     ifndef CLSIZE
8768 #      define CLSIZE 1
8769 #     endif /* no CLSIZE */
8770 #    else /* no NBPG */
8771 #     ifdef NBPC
8772 #      define getpagesize() NBPC
8773 #     else /* no NBPC */
8774 #      ifdef PAGESIZE
8775 #       define getpagesize() PAGESIZE
8776 #      endif /* PAGESIZE */
8777 #     endif /* no NBPC */
8778 #    endif /* no NBPG */
8779 #   endif /* no EXEC_PAGESIZE */
8780 #  else /* no HAVE_SYS_PARAM_H */
8781 #   define getpagesize() 8192   /* punt totally */
8782 #  endif /* no HAVE_SYS_PARAM_H */
8783 # endif /* no _SC_PAGESIZE */
8784
8785 #endif /* no HAVE_GETPAGESIZE */
8786
8787 int
8788 main ()
8789 {
8790   char *data, *data2, *data3;
8791   int i, pagesize;
8792   int fd;
8793
8794   pagesize = getpagesize ();
8795
8796   /* First, make a file with some known garbage in it. */
8797   data = (char *) malloc (pagesize);
8798   if (!data)
8799     exit (1);
8800   for (i = 0; i < pagesize; ++i)
8801     *(data + i) = rand ();
8802   umask (0);
8803   fd = creat ("conftest.mmap", 0600);
8804   if (fd < 0)
8805     exit (1);
8806   if (write (fd, data, pagesize) != pagesize)
8807     exit (1);
8808   close (fd);
8809
8810   /* Next, try to mmap the file at a fixed address which already has
8811      something else allocated at it.  If we can, also make sure that
8812      we see the same garbage.  */
8813   fd = open ("conftest.mmap", O_RDWR);
8814   if (fd < 0)
8815     exit (1);
8816   data2 = (char *) malloc (2 * pagesize);
8817   if (!data2)
8818     exit (1);
8819   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8820   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8821                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8822     exit (1);
8823   for (i = 0; i < pagesize; ++i)
8824     if (*(data + i) != *(data2 + i))
8825       exit (1);
8826
8827   /* Finally, make sure that changes to the mapped area do not
8828      percolate back to the file as seen by read().  (This is a bug on
8829      some variants of i386 svr4.0.)  */
8830   for (i = 0; i < pagesize; ++i)
8831     *(data2 + i) = *(data2 + i) + 1;
8832   data3 = (char *) malloc (pagesize);
8833   if (!data3)
8834     exit (1);
8835   if (read (fd, data3, pagesize) != pagesize)
8836     exit (1);
8837   for (i = 0; i < pagesize; ++i)
8838     if (*(data + i) != *(data3 + i))
8839       exit (1);
8840   close (fd);
8841   exit (0);
8842 }
8843 _ACEOF
8844 rm -f conftest$ac_exeext
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846   (eval $ac_link) 2>&5
8847   ac_status=$?
8848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851   (eval $ac_try) 2>&5
8852   ac_status=$?
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); }; }; then
8855   ac_cv_func_mmap_fixed_mapped=yes
8856 else
8857   echo "$as_me: program exited with status $ac_status" >&5
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8860
8861 ( exit $ac_status )
8862 ac_cv_func_mmap_fixed_mapped=no
8863 fi
8864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8865 fi
8866 fi
8867 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8868 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8869 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8870
8871 cat >>confdefs.h <<\_ACEOF
8872 #define HAVE_MMAP 1
8873 _ACEOF
8874
8875 fi
8876 rm -f conftest.mmap
8877
8878
8879     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8880 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8881 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8882   echo $ECHO_N "(cached) $ECHO_C" >&6
8883 else
8884   cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h.  */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h.  */
8890
8891 #include <features.h>
8892 #ifdef __GNU_LIBRARY__
8893  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8894   Lucky GNU user
8895  #endif
8896 #endif
8897
8898 _ACEOF
8899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8900   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8901   ac_cv_gnu_library_2_1=yes
8902 else
8903   ac_cv_gnu_library_2_1=no
8904 fi
8905 rm -f conftest*
8906
8907
8908
8909 fi
8910 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8911 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8912
8913     GLIBC21="$ac_cv_gnu_library_2_1"
8914
8915
8916
8917
8918   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8919 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8920 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8921   echo $ECHO_N "(cached) $ECHO_C" >&6
8922 else
8923
8924       if test "$cross_compiling" = yes; then
8925
8926           # Guess based on the CPU.
8927           case "$host_cpu" in
8928             alpha* | i3456786 | m68k | s390*)
8929               gt_cv_int_divbyzero_sigfpe="guessing yes";;
8930             *)
8931               gt_cv_int_divbyzero_sigfpe="guessing no";;
8932           esac
8933
8934 else
8935   cat >conftest.$ac_ext <<_ACEOF
8936 /* confdefs.h.  */
8937 _ACEOF
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h.  */
8941
8942 #include <stdlib.h>
8943 #include <signal.h>
8944
8945 static void
8946 #ifdef __cplusplus
8947 sigfpe_handler (int sig)
8948 #else
8949 sigfpe_handler (sig) int sig;
8950 #endif
8951 {
8952   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
8953   exit (sig != SIGFPE);
8954 }
8955
8956 int x = 1;
8957 int y = 0;
8958 int z;
8959 int nan;
8960
8961 int main ()
8962 {
8963   signal (SIGFPE, sigfpe_handler);
8964 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
8965 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8966   signal (SIGTRAP, sigfpe_handler);
8967 #endif
8968 /* Linux/SPARC yields signal SIGILL.  */
8969 #if defined (__sparc__) && defined (__linux__)
8970   signal (SIGILL, sigfpe_handler);
8971 #endif
8972
8973   z = x / y;
8974   nan = y / y;
8975   exit (1);
8976 }
8977
8978 _ACEOF
8979 rm -f conftest$ac_exeext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8981   (eval $ac_link) 2>&5
8982   ac_status=$?
8983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986   (eval $ac_try) 2>&5
8987   ac_status=$?
8988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); }; }; then
8990   gt_cv_int_divbyzero_sigfpe=yes
8991 else
8992   echo "$as_me: program exited with status $ac_status" >&5
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8995
8996 ( exit $ac_status )
8997 gt_cv_int_divbyzero_sigfpe=no
8998 fi
8999 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9000 fi
9001
9002 fi
9003 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9004 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9005   case "$gt_cv_int_divbyzero_sigfpe" in
9006     *yes) value=1;;
9007     *) value=0;;
9008   esac
9009
9010 cat >>confdefs.h <<_ACEOF
9011 #define INTDIV0_RAISES_SIGFPE $value
9012 _ACEOF
9013
9014
9015
9016   echo "$as_me:$LINENO: checking for unsigned long long" >&5
9017 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9018 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9019   echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021   cat >conftest.$ac_ext <<_ACEOF
9022 /* confdefs.h.  */
9023 _ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h.  */
9027 unsigned long long ull = 1ULL; int i = 63;
9028 int
9029 main ()
9030 {
9031 unsigned long long ullmax = (unsigned long long) -1;
9032      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9033   ;
9034   return 0;
9035 }
9036 _ACEOF
9037 rm -f conftest.$ac_objext conftest$ac_exeext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9039   (eval $ac_link) 2>conftest.er1
9040   ac_status=$?
9041   grep -v '^ *+' conftest.er1 >conftest.err
9042   rm -f conftest.er1
9043   cat conftest.err >&5
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); } &&
9046          { ac_try='test -z "$ac_c_werror_flag"
9047                          || test ! -s conftest.err'
9048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049   (eval $ac_try) 2>&5
9050   ac_status=$?
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); }; } &&
9053          { ac_try='test -s conftest$ac_exeext'
9054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055   (eval $ac_try) 2>&5
9056   ac_status=$?
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); }; }; then
9059   ac_cv_type_unsigned_long_long=yes
9060 else
9061   echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9063
9064 ac_cv_type_unsigned_long_long=no
9065 fi
9066 rm -f conftest.err conftest.$ac_objext \
9067       conftest$ac_exeext conftest.$ac_ext
9068 fi
9069 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9070 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9071   if test $ac_cv_type_unsigned_long_long = yes; then
9072
9073 cat >>confdefs.h <<\_ACEOF
9074 #define HAVE_UNSIGNED_LONG_LONG 1
9075 _ACEOF
9076
9077   fi
9078
9079
9080
9081
9082   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9083
9084     test $ac_cv_type_unsigned_long_long = yes \
9085       && ac_type='unsigned long long' \
9086       || ac_type='unsigned long'
9087
9088 cat >>confdefs.h <<_ACEOF
9089 #define uintmax_t $ac_type
9090 _ACEOF
9091
9092   else
9093
9094 cat >>confdefs.h <<\_ACEOF
9095 #define HAVE_UINTMAX_T 1
9096 _ACEOF
9097
9098   fi
9099
9100
9101   echo "$as_me:$LINENO: checking for inttypes.h" >&5
9102 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9103 if test "${gt_cv_header_inttypes_h+set}" = set; then
9104   echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106
9107     cat >conftest.$ac_ext <<_ACEOF
9108 /* confdefs.h.  */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h.  */
9113 #include <sys/types.h>
9114 #include <inttypes.h>
9115 int
9116 main ()
9117 {
9118
9119   ;
9120   return 0;
9121 }
9122 _ACEOF
9123 rm -f conftest.$ac_objext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9125   (eval $ac_compile) 2>conftest.er1
9126   ac_status=$?
9127   grep -v '^ *+' conftest.er1 >conftest.err
9128   rm -f conftest.er1
9129   cat conftest.err >&5
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); } &&
9132          { ac_try='test -z "$ac_c_werror_flag"
9133                          || test ! -s conftest.err'
9134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135   (eval $ac_try) 2>&5
9136   ac_status=$?
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); }; } &&
9139          { ac_try='test -s conftest.$ac_objext'
9140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141   (eval $ac_try) 2>&5
9142   ac_status=$?
9143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); }; }; then
9145   gt_cv_header_inttypes_h=yes
9146 else
9147   echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9149
9150 gt_cv_header_inttypes_h=no
9151 fi
9152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9153
9154 fi
9155 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9156 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9157   if test $gt_cv_header_inttypes_h = yes; then
9158
9159 cat >>confdefs.h <<_ACEOF
9160 #define HAVE_INTTYPES_H 1
9161 _ACEOF
9162
9163   fi
9164
9165
9166
9167   if test $gt_cv_header_inttypes_h = yes; then
9168     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9169 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9170 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9171   echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173
9174         cat >conftest.$ac_ext <<_ACEOF
9175 /* confdefs.h.  */
9176 _ACEOF
9177 cat confdefs.h >>conftest.$ac_ext
9178 cat >>conftest.$ac_ext <<_ACEOF
9179 /* end confdefs.h.  */
9180 #include <inttypes.h>
9181 #ifdef PRId32
9182 char *p = PRId32;
9183 #endif
9184
9185 int
9186 main ()
9187 {
9188
9189   ;
9190   return 0;
9191 }
9192 _ACEOF
9193 rm -f conftest.$ac_objext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9195   (eval $ac_compile) 2>conftest.er1
9196   ac_status=$?
9197   grep -v '^ *+' conftest.er1 >conftest.err
9198   rm -f conftest.er1
9199   cat conftest.err >&5
9200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201   (exit $ac_status); } &&
9202          { ac_try='test -z "$ac_c_werror_flag"
9203                          || test ! -s conftest.err'
9204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205   (eval $ac_try) 2>&5
9206   ac_status=$?
9207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208   (exit $ac_status); }; } &&
9209          { ac_try='test -s conftest.$ac_objext'
9210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211   (eval $ac_try) 2>&5
9212   ac_status=$?
9213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214   (exit $ac_status); }; }; then
9215   gt_cv_inttypes_pri_broken=no
9216 else
9217   echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9219
9220 gt_cv_inttypes_pri_broken=yes
9221 fi
9222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9223
9224 fi
9225 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9226 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9227   fi
9228   if test "$gt_cv_inttypes_pri_broken" = yes; then
9229
9230 cat >>confdefs.h <<_ACEOF
9231 #define PRI_MACROS_BROKEN 1
9232 _ACEOF
9233
9234   fi
9235
9236
9237
9238 for ac_header in stdint.h
9239 do
9240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9242   echo "$as_me:$LINENO: checking for $ac_header" >&5
9243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9245   echo $ECHO_N "(cached) $ECHO_C" >&6
9246 fi
9247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9249 else
9250   # Is the header compilable?
9251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9253 cat >conftest.$ac_ext <<_ACEOF
9254 /* confdefs.h.  */
9255 _ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h.  */
9259 $ac_includes_default
9260 #include <$ac_header>
9261 _ACEOF
9262 rm -f conftest.$ac_objext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9264   (eval $ac_compile) 2>conftest.er1
9265   ac_status=$?
9266   grep -v '^ *+' conftest.er1 >conftest.err
9267   rm -f conftest.er1
9268   cat conftest.err >&5
9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); } &&
9271          { ac_try='test -z "$ac_c_werror_flag"
9272                          || test ! -s conftest.err'
9273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274   (eval $ac_try) 2>&5
9275   ac_status=$?
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   (exit $ac_status); }; } &&
9278          { ac_try='test -s conftest.$ac_objext'
9279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280   (eval $ac_try) 2>&5
9281   ac_status=$?
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); }; }; then
9284   ac_header_compiler=yes
9285 else
9286   echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9288
9289 ac_header_compiler=no
9290 fi
9291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9293 echo "${ECHO_T}$ac_header_compiler" >&6
9294
9295 # Is the header present?
9296 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9298 cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h.  */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h.  */
9304 #include <$ac_header>
9305 _ACEOF
9306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9307   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9308   ac_status=$?
9309   grep -v '^ *+' conftest.er1 >conftest.err
9310   rm -f conftest.er1
9311   cat conftest.err >&5
9312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313   (exit $ac_status); } >/dev/null; then
9314   if test -s conftest.err; then
9315     ac_cpp_err=$ac_c_preproc_warn_flag
9316     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9317   else
9318     ac_cpp_err=
9319   fi
9320 else
9321   ac_cpp_err=yes
9322 fi
9323 if test -z "$ac_cpp_err"; then
9324   ac_header_preproc=yes
9325 else
9326   echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329   ac_header_preproc=no
9330 fi
9331 rm -f conftest.err conftest.$ac_ext
9332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9333 echo "${ECHO_T}$ac_header_preproc" >&6
9334
9335 # So?  What about this header?
9336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9337   yes:no: )
9338     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9340     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9341 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9342     ac_header_preproc=yes
9343     ;;
9344   no:yes:* )
9345     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9347     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9348 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9349     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9350 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9351     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9352 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9353     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9355     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9356 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9357     (
9358       cat <<\_ASBOX
9359 ## ------------------------------------------ ##
9360 ## Report this to the AC_PACKAGE_NAME lists.  ##
9361 ## ------------------------------------------ ##
9362 _ASBOX
9363     ) |
9364       sed "s/^/$as_me: WARNING:     /" >&2
9365     ;;
9366 esac
9367 echo "$as_me:$LINENO: checking for $ac_header" >&5
9368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9370   echo $ECHO_N "(cached) $ECHO_C" >&6
9371 else
9372   eval "$as_ac_Header=\$ac_header_preproc"
9373 fi
9374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9376
9377 fi
9378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9379   cat >>confdefs.h <<_ACEOF
9380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9381 _ACEOF
9382
9383 fi
9384
9385 done
9386
9387     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9388 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9389   result=
9390   cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h.  */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h.  */
9396
9397 #include <limits.h>
9398 #if HAVE_STDINT_H
9399 #include <stdint.h>
9400 #endif
9401 #ifdef SIZE_MAX
9402 Found it
9403 #endif
9404
9405 _ACEOF
9406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9407   $EGREP "Found it" >/dev/null 2>&1; then
9408   result=yes
9409 fi
9410 rm -f conftest*
9411
9412   if test -z "$result"; then
9413                     if test "$cross_compiling" = yes; then
9414   # Depending upon the size, compute the lo and hi bounds.
9415 cat >conftest.$ac_ext <<_ACEOF
9416 /* confdefs.h.  */
9417 _ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h.  */
9421 #include <stddef.h>
9422 int
9423 main ()
9424 {
9425 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9426 test_array [0] = 0
9427
9428   ;
9429   return 0;
9430 }
9431 _ACEOF
9432 rm -f conftest.$ac_objext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9434   (eval $ac_compile) 2>conftest.er1
9435   ac_status=$?
9436   grep -v '^ *+' conftest.er1 >conftest.err
9437   rm -f conftest.er1
9438   cat conftest.err >&5
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); } &&
9441          { ac_try='test -z "$ac_c_werror_flag"
9442                          || test ! -s conftest.err'
9443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444   (eval $ac_try) 2>&5
9445   ac_status=$?
9446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447   (exit $ac_status); }; } &&
9448          { ac_try='test -s conftest.$ac_objext'
9449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450   (eval $ac_try) 2>&5
9451   ac_status=$?
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); }; }; then
9454   ac_lo=0 ac_mid=0
9455   while :; do
9456     cat >conftest.$ac_ext <<_ACEOF
9457 /* confdefs.h.  */
9458 _ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h.  */
9462 #include <stddef.h>
9463 int
9464 main ()
9465 {
9466 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9467 test_array [0] = 0
9468
9469   ;
9470   return 0;
9471 }
9472 _ACEOF
9473 rm -f conftest.$ac_objext
9474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9475   (eval $ac_compile) 2>conftest.er1
9476   ac_status=$?
9477   grep -v '^ *+' conftest.er1 >conftest.err
9478   rm -f conftest.er1
9479   cat conftest.err >&5
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); } &&
9482          { ac_try='test -z "$ac_c_werror_flag"
9483                          || test ! -s conftest.err'
9484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485   (eval $ac_try) 2>&5
9486   ac_status=$?
9487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488   (exit $ac_status); }; } &&
9489          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9495   ac_hi=$ac_mid; break
9496 else
9497   echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9499
9500 ac_lo=`expr $ac_mid + 1`
9501                     if test $ac_lo -le $ac_mid; then
9502                       ac_lo= ac_hi=
9503                       break
9504                     fi
9505                     ac_mid=`expr 2 '*' $ac_mid + 1`
9506 fi
9507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9508   done
9509 else
9510   echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9512
9513 cat >conftest.$ac_ext <<_ACEOF
9514 /* confdefs.h.  */
9515 _ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h.  */
9519 #include <stddef.h>
9520 int
9521 main ()
9522 {
9523 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9524 test_array [0] = 0
9525
9526   ;
9527   return 0;
9528 }
9529 _ACEOF
9530 rm -f conftest.$ac_objext
9531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9532   (eval $ac_compile) 2>conftest.er1
9533   ac_status=$?
9534   grep -v '^ *+' conftest.er1 >conftest.err
9535   rm -f conftest.er1
9536   cat conftest.err >&5
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); } &&
9539          { ac_try='test -z "$ac_c_werror_flag"
9540                          || test ! -s conftest.err'
9541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542   (eval $ac_try) 2>&5
9543   ac_status=$?
9544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545   (exit $ac_status); }; } &&
9546          { ac_try='test -s conftest.$ac_objext'
9547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548   (eval $ac_try) 2>&5
9549   ac_status=$?
9550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551   (exit $ac_status); }; }; then
9552   ac_hi=-1 ac_mid=-1
9553   while :; do
9554     cat >conftest.$ac_ext <<_ACEOF
9555 /* confdefs.h.  */
9556 _ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h.  */
9560 #include <stddef.h>
9561 int
9562 main ()
9563 {
9564 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9565 test_array [0] = 0
9566
9567   ;
9568   return 0;
9569 }
9570 _ACEOF
9571 rm -f conftest.$ac_objext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9573   (eval $ac_compile) 2>conftest.er1
9574   ac_status=$?
9575   grep -v '^ *+' conftest.er1 >conftest.err
9576   rm -f conftest.er1
9577   cat conftest.err >&5
9578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579   (exit $ac_status); } &&
9580          { ac_try='test -z "$ac_c_werror_flag"
9581                          || test ! -s conftest.err'
9582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583   (eval $ac_try) 2>&5
9584   ac_status=$?
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); }; } &&
9587          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9593   ac_lo=$ac_mid; break
9594 else
9595   echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9597
9598 ac_hi=`expr '(' $ac_mid ')' - 1`
9599                        if test $ac_mid -le $ac_hi; then
9600                          ac_lo= ac_hi=
9601                          break
9602                        fi
9603                        ac_mid=`expr 2 '*' $ac_mid`
9604 fi
9605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9606   done
9607 else
9608   echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9610
9611 ac_lo= ac_hi=
9612 fi
9613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9614 fi
9615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9616 # Binary search between lo and hi bounds.
9617 while test "x$ac_lo" != "x$ac_hi"; do
9618   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9619   cat >conftest.$ac_ext <<_ACEOF
9620 /* confdefs.h.  */
9621 _ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h.  */
9625 #include <stddef.h>
9626 int
9627 main ()
9628 {
9629 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9630 test_array [0] = 0
9631
9632   ;
9633   return 0;
9634 }
9635 _ACEOF
9636 rm -f conftest.$ac_objext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9638   (eval $ac_compile) 2>conftest.er1
9639   ac_status=$?
9640   grep -v '^ *+' conftest.er1 >conftest.err
9641   rm -f conftest.er1
9642   cat conftest.err >&5
9643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644   (exit $ac_status); } &&
9645          { ac_try='test -z "$ac_c_werror_flag"
9646                          || test ! -s conftest.err'
9647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648   (eval $ac_try) 2>&5
9649   ac_status=$?
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); }; } &&
9652          { ac_try='test -s conftest.$ac_objext'
9653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654   (eval $ac_try) 2>&5
9655   ac_status=$?
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); }; }; then
9658   ac_hi=$ac_mid
9659 else
9660   echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9662
9663 ac_lo=`expr '(' $ac_mid ')' + 1`
9664 fi
9665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9666 done
9667 case $ac_lo in
9668 ?*) res_hi=$ac_lo;;
9669 '') result=? ;;
9670 esac
9671 else
9672   if test "$cross_compiling" = yes; then
9673   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9674 See \`config.log' for more details." >&5
9675 echo "$as_me: error: cannot run test program while cross compiling
9676 See \`config.log' for more details." >&2;}
9677    { (exit 1); exit 1; }; }
9678 else
9679   cat >conftest.$ac_ext <<_ACEOF
9680 /* confdefs.h.  */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h.  */
9685 #include <stddef.h>
9686 long longval () { return ~(size_t)0 / 10; }
9687 unsigned long ulongval () { return ~(size_t)0 / 10; }
9688 #include <stdio.h>
9689 #include <stdlib.h>
9690 int
9691 main ()
9692 {
9693
9694   FILE *f = fopen ("conftest.val", "w");
9695   if (! f)
9696     exit (1);
9697   if ((~(size_t)0 / 10) < 0)
9698     {
9699       long i = longval ();
9700       if (i != (~(size_t)0 / 10))
9701         exit (1);
9702       fprintf (f, "%ld\n", i);
9703     }
9704   else
9705     {
9706       unsigned long i = ulongval ();
9707       if (i != (~(size_t)0 / 10))
9708         exit (1);
9709       fprintf (f, "%lu\n", i);
9710     }
9711   exit (ferror (f) || fclose (f) != 0);
9712
9713   ;
9714   return 0;
9715 }
9716 _ACEOF
9717 rm -f conftest$ac_exeext
9718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9719   (eval $ac_link) 2>&5
9720   ac_status=$?
9721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724   (eval $ac_try) 2>&5
9725   ac_status=$?
9726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727   (exit $ac_status); }; }; then
9728   res_hi=`cat conftest.val`
9729 else
9730   echo "$as_me: program exited with status $ac_status" >&5
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9733
9734 ( exit $ac_status )
9735 result=?
9736 fi
9737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9738 fi
9739 fi
9740 rm -f conftest.val
9741     if test "$cross_compiling" = yes; then
9742   # Depending upon the size, compute the lo and hi bounds.
9743 cat >conftest.$ac_ext <<_ACEOF
9744 /* confdefs.h.  */
9745 _ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h.  */
9749 #include <stddef.h>
9750 int
9751 main ()
9752 {
9753 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9754 test_array [0] = 0
9755
9756   ;
9757   return 0;
9758 }
9759 _ACEOF
9760 rm -f conftest.$ac_objext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9762   (eval $ac_compile) 2>conftest.er1
9763   ac_status=$?
9764   grep -v '^ *+' conftest.er1 >conftest.err
9765   rm -f conftest.er1
9766   cat conftest.err >&5
9767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768   (exit $ac_status); } &&
9769          { ac_try='test -z "$ac_c_werror_flag"
9770                          || test ! -s conftest.err'
9771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772   (eval $ac_try) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); }; } &&
9776          { ac_try='test -s conftest.$ac_objext'
9777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778   (eval $ac_try) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; }; then
9782   ac_lo=0 ac_mid=0
9783   while :; do
9784     cat >conftest.$ac_ext <<_ACEOF
9785 /* confdefs.h.  */
9786 _ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h.  */
9790 #include <stddef.h>
9791 int
9792 main ()
9793 {
9794 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9795 test_array [0] = 0
9796
9797   ;
9798   return 0;
9799 }
9800 _ACEOF
9801 rm -f conftest.$ac_objext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9803   (eval $ac_compile) 2>conftest.er1
9804   ac_status=$?
9805   grep -v '^ *+' conftest.er1 >conftest.err
9806   rm -f conftest.er1
9807   cat conftest.err >&5
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); } &&
9810          { ac_try='test -z "$ac_c_werror_flag"
9811                          || test ! -s conftest.err'
9812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813   (eval $ac_try) 2>&5
9814   ac_status=$?
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); }; } &&
9817          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9823   ac_hi=$ac_mid; break
9824 else
9825   echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9827
9828 ac_lo=`expr $ac_mid + 1`
9829                     if test $ac_lo -le $ac_mid; then
9830                       ac_lo= ac_hi=
9831                       break
9832                     fi
9833                     ac_mid=`expr 2 '*' $ac_mid + 1`
9834 fi
9835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9836   done
9837 else
9838   echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9840
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h.  */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h.  */
9847 #include <stddef.h>
9848 int
9849 main ()
9850 {
9851 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9852 test_array [0] = 0
9853
9854   ;
9855   return 0;
9856 }
9857 _ACEOF
9858 rm -f conftest.$ac_objext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9860   (eval $ac_compile) 2>conftest.er1
9861   ac_status=$?
9862   grep -v '^ *+' conftest.er1 >conftest.err
9863   rm -f conftest.er1
9864   cat conftest.err >&5
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); } &&
9867          { ac_try='test -z "$ac_c_werror_flag"
9868                          || test ! -s conftest.err'
9869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870   (eval $ac_try) 2>&5
9871   ac_status=$?
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); }; } &&
9874          { ac_try='test -s conftest.$ac_objext'
9875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876   (eval $ac_try) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }; }; then
9880   ac_hi=-1 ac_mid=-1
9881   while :; do
9882     cat >conftest.$ac_ext <<_ACEOF
9883 /* confdefs.h.  */
9884 _ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h.  */
9888 #include <stddef.h>
9889 int
9890 main ()
9891 {
9892 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9893 test_array [0] = 0
9894
9895   ;
9896   return 0;
9897 }
9898 _ACEOF
9899 rm -f conftest.$ac_objext
9900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9901   (eval $ac_compile) 2>conftest.er1
9902   ac_status=$?
9903   grep -v '^ *+' conftest.er1 >conftest.err
9904   rm -f conftest.er1
9905   cat conftest.err >&5
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); } &&
9908          { ac_try='test -z "$ac_c_werror_flag"
9909                          || test ! -s conftest.err'
9910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911   (eval $ac_try) 2>&5
9912   ac_status=$?
9913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914   (exit $ac_status); }; } &&
9915          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9921   ac_lo=$ac_mid; break
9922 else
9923   echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9925
9926 ac_hi=`expr '(' $ac_mid ')' - 1`
9927                        if test $ac_mid -le $ac_hi; then
9928                          ac_lo= ac_hi=
9929                          break
9930                        fi
9931                        ac_mid=`expr 2 '*' $ac_mid`
9932 fi
9933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9934   done
9935 else
9936   echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 ac_lo= ac_hi=
9940 fi
9941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9942 fi
9943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9944 # Binary search between lo and hi bounds.
9945 while test "x$ac_lo" != "x$ac_hi"; do
9946   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9947   cat >conftest.$ac_ext <<_ACEOF
9948 /* confdefs.h.  */
9949 _ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h.  */
9953 #include <stddef.h>
9954 int
9955 main ()
9956 {
9957 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9958 test_array [0] = 0
9959
9960   ;
9961   return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966   (eval $ac_compile) 2>conftest.er1
9967   ac_status=$?
9968   grep -v '^ *+' conftest.er1 >conftest.err
9969   rm -f conftest.er1
9970   cat conftest.err >&5
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); } &&
9973          { ac_try='test -z "$ac_c_werror_flag"
9974                          || test ! -s conftest.err'
9975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976   (eval $ac_try) 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); }; } &&
9980          { ac_try='test -s conftest.$ac_objext'
9981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982   (eval $ac_try) 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; }; then
9986   ac_hi=$ac_mid
9987 else
9988   echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991 ac_lo=`expr '(' $ac_mid ')' + 1`
9992 fi
9993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9994 done
9995 case $ac_lo in
9996 ?*) res_lo=$ac_lo;;
9997 '') result=? ;;
9998 esac
9999 else
10000   if test "$cross_compiling" = yes; then
10001   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10002 See \`config.log' for more details." >&5
10003 echo "$as_me: error: cannot run test program while cross compiling
10004 See \`config.log' for more details." >&2;}
10005    { (exit 1); exit 1; }; }
10006 else
10007   cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h.  */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h.  */
10013 #include <stddef.h>
10014 long longval () { return ~(size_t)0 % 10; }
10015 unsigned long ulongval () { return ~(size_t)0 % 10; }
10016 #include <stdio.h>
10017 #include <stdlib.h>
10018 int
10019 main ()
10020 {
10021
10022   FILE *f = fopen ("conftest.val", "w");
10023   if (! f)
10024     exit (1);
10025   if ((~(size_t)0 % 10) < 0)
10026     {
10027       long i = longval ();
10028       if (i != (~(size_t)0 % 10))
10029         exit (1);
10030       fprintf (f, "%ld\n", i);
10031     }
10032   else
10033     {
10034       unsigned long i = ulongval ();
10035       if (i != (~(size_t)0 % 10))
10036         exit (1);
10037       fprintf (f, "%lu\n", i);
10038     }
10039   exit (ferror (f) || fclose (f) != 0);
10040
10041   ;
10042   return 0;
10043 }
10044 _ACEOF
10045 rm -f conftest$ac_exeext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047   (eval $ac_link) 2>&5
10048   ac_status=$?
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052   (eval $ac_try) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); }; }; then
10056   res_lo=`cat conftest.val`
10057 else
10058   echo "$as_me: program exited with status $ac_status" >&5
10059 echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10061
10062 ( exit $ac_status )
10063 result=?
10064 fi
10065 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10066 fi
10067 fi
10068 rm -f conftest.val
10069     if test "$cross_compiling" = yes; then
10070   # Depending upon the size, compute the lo and hi bounds.
10071 cat >conftest.$ac_ext <<_ACEOF
10072 /* confdefs.h.  */
10073 _ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h.  */
10077 #include <stddef.h>
10078 int
10079 main ()
10080 {
10081 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10082 test_array [0] = 0
10083
10084   ;
10085   return 0;
10086 }
10087 _ACEOF
10088 rm -f conftest.$ac_objext
10089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10090   (eval $ac_compile) 2>conftest.er1
10091   ac_status=$?
10092   grep -v '^ *+' conftest.er1 >conftest.err
10093   rm -f conftest.er1
10094   cat conftest.err >&5
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); } &&
10097          { ac_try='test -z "$ac_c_werror_flag"
10098                          || test ! -s conftest.err'
10099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100   (eval $ac_try) 2>&5
10101   ac_status=$?
10102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103   (exit $ac_status); }; } &&
10104          { ac_try='test -s conftest.$ac_objext'
10105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106   (eval $ac_try) 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); }; }; then
10110   ac_lo=0 ac_mid=0
10111   while :; do
10112     cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h.  */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h.  */
10118 #include <stddef.h>
10119 int
10120 main ()
10121 {
10122 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10123 test_array [0] = 0
10124
10125   ;
10126   return 0;
10127 }
10128 _ACEOF
10129 rm -f conftest.$ac_objext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10131   (eval $ac_compile) 2>conftest.er1
10132   ac_status=$?
10133   grep -v '^ *+' conftest.er1 >conftest.err
10134   rm -f conftest.er1
10135   cat conftest.err >&5
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); } &&
10138          { ac_try='test -z "$ac_c_werror_flag"
10139                          || test ! -s conftest.err'
10140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141   (eval $ac_try) 2>&5
10142   ac_status=$?
10143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144   (exit $ac_status); }; } &&
10145          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10151   ac_hi=$ac_mid; break
10152 else
10153   echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10155
10156 ac_lo=`expr $ac_mid + 1`
10157                     if test $ac_lo -le $ac_mid; then
10158                       ac_lo= ac_hi=
10159                       break
10160                     fi
10161                     ac_mid=`expr 2 '*' $ac_mid + 1`
10162 fi
10163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10164   done
10165 else
10166   echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10168
10169 cat >conftest.$ac_ext <<_ACEOF
10170 /* confdefs.h.  */
10171 _ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h.  */
10175 #include <stddef.h>
10176 int
10177 main ()
10178 {
10179 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10180 test_array [0] = 0
10181
10182   ;
10183   return 0;
10184 }
10185 _ACEOF
10186 rm -f conftest.$ac_objext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10188   (eval $ac_compile) 2>conftest.er1
10189   ac_status=$?
10190   grep -v '^ *+' conftest.er1 >conftest.err
10191   rm -f conftest.er1
10192   cat conftest.err >&5
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); } &&
10195          { ac_try='test -z "$ac_c_werror_flag"
10196                          || test ! -s conftest.err'
10197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198   (eval $ac_try) 2>&5
10199   ac_status=$?
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); }; } &&
10202          { ac_try='test -s conftest.$ac_objext'
10203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204   (eval $ac_try) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; }; then
10208   ac_hi=-1 ac_mid=-1
10209   while :; do
10210     cat >conftest.$ac_ext <<_ACEOF
10211 /* confdefs.h.  */
10212 _ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h.  */
10216 #include <stddef.h>
10217 int
10218 main ()
10219 {
10220 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10221 test_array [0] = 0
10222
10223   ;
10224   return 0;
10225 }
10226 _ACEOF
10227 rm -f conftest.$ac_objext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10229   (eval $ac_compile) 2>conftest.er1
10230   ac_status=$?
10231   grep -v '^ *+' conftest.er1 >conftest.err
10232   rm -f conftest.er1
10233   cat conftest.err >&5
10234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235   (exit $ac_status); } &&
10236          { ac_try='test -z "$ac_c_werror_flag"
10237                          || test ! -s conftest.err'
10238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239   (eval $ac_try) 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); }; } &&
10243          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10249   ac_lo=$ac_mid; break
10250 else
10251   echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10253
10254 ac_hi=`expr '(' $ac_mid ')' - 1`
10255                        if test $ac_mid -le $ac_hi; then
10256                          ac_lo= ac_hi=
10257                          break
10258                        fi
10259                        ac_mid=`expr 2 '*' $ac_mid`
10260 fi
10261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10262   done
10263 else
10264   echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10266
10267 ac_lo= ac_hi=
10268 fi
10269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10270 fi
10271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10272 # Binary search between lo and hi bounds.
10273 while test "x$ac_lo" != "x$ac_hi"; do
10274   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10275   cat >conftest.$ac_ext <<_ACEOF
10276 /* confdefs.h.  */
10277 _ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h.  */
10281 #include <stddef.h>
10282 int
10283 main ()
10284 {
10285 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10286 test_array [0] = 0
10287
10288   ;
10289   return 0;
10290 }
10291 _ACEOF
10292 rm -f conftest.$ac_objext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10294   (eval $ac_compile) 2>conftest.er1
10295   ac_status=$?
10296   grep -v '^ *+' conftest.er1 >conftest.err
10297   rm -f conftest.er1
10298   cat conftest.err >&5
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } &&
10301          { ac_try='test -z "$ac_c_werror_flag"
10302                          || test ! -s conftest.err'
10303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304   (eval $ac_try) 2>&5
10305   ac_status=$?
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); }; } &&
10308          { ac_try='test -s conftest.$ac_objext'
10309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310   (eval $ac_try) 2>&5
10311   ac_status=$?
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); }; }; then
10314   ac_hi=$ac_mid
10315 else
10316   echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10318
10319 ac_lo=`expr '(' $ac_mid ')' + 1`
10320 fi
10321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10322 done
10323 case $ac_lo in
10324 ?*) fits_in_uint=$ac_lo;;
10325 '') result=? ;;
10326 esac
10327 else
10328   if test "$cross_compiling" = yes; then
10329   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10330 See \`config.log' for more details." >&5
10331 echo "$as_me: error: cannot run test program while cross compiling
10332 See \`config.log' for more details." >&2;}
10333    { (exit 1); exit 1; }; }
10334 else
10335   cat >conftest.$ac_ext <<_ACEOF
10336 /* confdefs.h.  */
10337 _ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h.  */
10341 #include <stddef.h>
10342 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10343 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10344 #include <stdio.h>
10345 #include <stdlib.h>
10346 int
10347 main ()
10348 {
10349
10350   FILE *f = fopen ("conftest.val", "w");
10351   if (! f)
10352     exit (1);
10353   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10354     {
10355       long i = longval ();
10356       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10357         exit (1);
10358       fprintf (f, "%ld\n", i);
10359     }
10360   else
10361     {
10362       unsigned long i = ulongval ();
10363       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10364         exit (1);
10365       fprintf (f, "%lu\n", i);
10366     }
10367   exit (ferror (f) || fclose (f) != 0);
10368
10369   ;
10370   return 0;
10371 }
10372 _ACEOF
10373 rm -f conftest$ac_exeext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375   (eval $ac_link) 2>&5
10376   ac_status=$?
10377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380   (eval $ac_try) 2>&5
10381   ac_status=$?
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); }; }; then
10384   fits_in_uint=`cat conftest.val`
10385 else
10386   echo "$as_me: program exited with status $ac_status" >&5
10387 echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10389
10390 ( exit $ac_status )
10391 result=?
10392 fi
10393 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10394 fi
10395 fi
10396 rm -f conftest.val
10397     if test "$fits_in_uint" = 1; then
10398                   cat >conftest.$ac_ext <<_ACEOF
10399 /* confdefs.h.  */
10400 _ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h.  */
10404 #include <stddef.h>
10405         extern size_t foo;
10406         extern unsigned long foo;
10407
10408 int
10409 main ()
10410 {
10411
10412   ;
10413   return 0;
10414 }
10415 _ACEOF
10416 rm -f conftest.$ac_objext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10418   (eval $ac_compile) 2>conftest.er1
10419   ac_status=$?
10420   grep -v '^ *+' conftest.er1 >conftest.err
10421   rm -f conftest.er1
10422   cat conftest.err >&5
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } &&
10425          { ac_try='test -z "$ac_c_werror_flag"
10426                          || test ! -s conftest.err'
10427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428   (eval $ac_try) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); }; } &&
10432          { ac_try='test -s conftest.$ac_objext'
10433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434   (eval $ac_try) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; }; then
10438   fits_in_uint=0
10439 else
10440   echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443 fi
10444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10445     fi
10446     if test -z "$result"; then
10447       if test "$fits_in_uint" = 1; then
10448         result="$res_hi$res_lo"U
10449       else
10450         result="$res_hi$res_lo"UL
10451       fi
10452     else
10453             result='~(size_t)0'
10454     fi
10455   fi
10456   echo "$as_me:$LINENO: result: $result" >&5
10457 echo "${ECHO_T}$result" >&6
10458   if test "$result" != yes; then
10459
10460 cat >>confdefs.h <<_ACEOF
10461 #define SIZE_MAX $result
10462 _ACEOF
10463
10464   fi
10465
10466
10467
10468
10469
10470 for ac_header in stdint.h
10471 do
10472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10474   echo "$as_me:$LINENO: checking for $ac_header" >&5
10475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10477   echo $ECHO_N "(cached) $ECHO_C" >&6
10478 fi
10479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10481 else
10482   # Is the header compilable?
10483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10485 cat >conftest.$ac_ext <<_ACEOF
10486 /* confdefs.h.  */
10487 _ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h.  */
10491 $ac_includes_default
10492 #include <$ac_header>
10493 _ACEOF
10494 rm -f conftest.$ac_objext
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496   (eval $ac_compile) 2>conftest.er1
10497   ac_status=$?
10498   grep -v '^ *+' conftest.er1 >conftest.err
10499   rm -f conftest.er1
10500   cat conftest.err >&5
10501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502   (exit $ac_status); } &&
10503          { ac_try='test -z "$ac_c_werror_flag"
10504                          || test ! -s conftest.err'
10505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506   (eval $ac_try) 2>&5
10507   ac_status=$?
10508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509   (exit $ac_status); }; } &&
10510          { ac_try='test -s conftest.$ac_objext'
10511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512   (eval $ac_try) 2>&5
10513   ac_status=$?
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); }; }; then
10516   ac_header_compiler=yes
10517 else
10518   echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10520
10521 ac_header_compiler=no
10522 fi
10523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10525 echo "${ECHO_T}$ac_header_compiler" >&6
10526
10527 # Is the header present?
10528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10530 cat >conftest.$ac_ext <<_ACEOF
10531 /* confdefs.h.  */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h.  */
10536 #include <$ac_header>
10537 _ACEOF
10538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10539   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10540   ac_status=$?
10541   grep -v '^ *+' conftest.er1 >conftest.err
10542   rm -f conftest.er1
10543   cat conftest.err >&5
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); } >/dev/null; then
10546   if test -s conftest.err; then
10547     ac_cpp_err=$ac_c_preproc_warn_flag
10548     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10549   else
10550     ac_cpp_err=
10551   fi
10552 else
10553   ac_cpp_err=yes
10554 fi
10555 if test -z "$ac_cpp_err"; then
10556   ac_header_preproc=yes
10557 else
10558   echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10560
10561   ac_header_preproc=no
10562 fi
10563 rm -f conftest.err conftest.$ac_ext
10564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10565 echo "${ECHO_T}$ac_header_preproc" >&6
10566
10567 # So?  What about this header?
10568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10569   yes:no: )
10570     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10574     ac_header_preproc=yes
10575     ;;
10576   no:yes:* )
10577     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10579     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10580 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10581     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10583     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10584 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10587     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10589     (
10590       cat <<\_ASBOX
10591 ## ------------------------------------------ ##
10592 ## Report this to the AC_PACKAGE_NAME lists.  ##
10593 ## ------------------------------------------ ##
10594 _ASBOX
10595     ) |
10596       sed "s/^/$as_me: WARNING:     /" >&2
10597     ;;
10598 esac
10599 echo "$as_me:$LINENO: checking for $ac_header" >&5
10600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10602   echo $ECHO_N "(cached) $ECHO_C" >&6
10603 else
10604   eval "$as_ac_Header=\$ac_header_preproc"
10605 fi
10606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10608
10609 fi
10610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10611   cat >>confdefs.h <<_ACEOF
10612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10613 _ACEOF
10614
10615 fi
10616
10617 done
10618
10619
10620
10621
10622
10623
10624
10625
10626   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10627 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10628 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10629   echo $ECHO_N "(cached) $ECHO_C" >&6
10630 else
10631   cat >conftest.$ac_ext <<_ACEOF
10632 /* confdefs.h.  */
10633 _ACEOF
10634 cat confdefs.h >>conftest.$ac_ext
10635 cat >>conftest.$ac_ext <<_ACEOF
10636 /* end confdefs.h.  */
10637 $ac_includes_default
10638 int
10639 main ()
10640 {
10641 if ((ptrdiff_t *) 0)
10642   return 0;
10643 if (sizeof (ptrdiff_t))
10644   return 0;
10645   ;
10646   return 0;
10647 }
10648 _ACEOF
10649 rm -f conftest.$ac_objext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10651   (eval $ac_compile) 2>conftest.er1
10652   ac_status=$?
10653   grep -v '^ *+' conftest.er1 >conftest.err
10654   rm -f conftest.er1
10655   cat conftest.err >&5
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); } &&
10658          { ac_try='test -z "$ac_c_werror_flag"
10659                          || test ! -s conftest.err'
10660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661   (eval $ac_try) 2>&5
10662   ac_status=$?
10663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); }; } &&
10665          { ac_try='test -s conftest.$ac_objext'
10666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667   (eval $ac_try) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); }; }; then
10671   ac_cv_type_ptrdiff_t=yes
10672 else
10673   echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10675
10676 ac_cv_type_ptrdiff_t=no
10677 fi
10678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10679 fi
10680 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10681 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10682 if test $ac_cv_type_ptrdiff_t = yes; then
10683   :
10684 else
10685
10686 cat >>confdefs.h <<\_ACEOF
10687 #define ptrdiff_t long
10688 _ACEOF
10689
10690
10691 fi
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10704 stdlib.h string.h unistd.h sys/param.h
10705 do
10706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10708   echo "$as_me:$LINENO: checking for $ac_header" >&5
10709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10711   echo $ECHO_N "(cached) $ECHO_C" >&6
10712 fi
10713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10715 else
10716   # Is the header compilable?
10717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10719 cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h.  */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h.  */
10725 $ac_includes_default
10726 #include <$ac_header>
10727 _ACEOF
10728 rm -f conftest.$ac_objext
10729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10730   (eval $ac_compile) 2>conftest.er1
10731   ac_status=$?
10732   grep -v '^ *+' conftest.er1 >conftest.err
10733   rm -f conftest.er1
10734   cat conftest.err >&5
10735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); } &&
10737          { ac_try='test -z "$ac_c_werror_flag"
10738                          || test ! -s conftest.err'
10739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740   (eval $ac_try) 2>&5
10741   ac_status=$?
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); }; } &&
10744          { ac_try='test -s conftest.$ac_objext'
10745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746   (eval $ac_try) 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); }; }; then
10750   ac_header_compiler=yes
10751 else
10752   echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10754
10755 ac_header_compiler=no
10756 fi
10757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10759 echo "${ECHO_T}$ac_header_compiler" >&6
10760
10761 # Is the header present?
10762 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10764 cat >conftest.$ac_ext <<_ACEOF
10765 /* confdefs.h.  */
10766 _ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h.  */
10770 #include <$ac_header>
10771 _ACEOF
10772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10773   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10774   ac_status=$?
10775   grep -v '^ *+' conftest.er1 >conftest.err
10776   rm -f conftest.er1
10777   cat conftest.err >&5
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); } >/dev/null; then
10780   if test -s conftest.err; then
10781     ac_cpp_err=$ac_c_preproc_warn_flag
10782     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10783   else
10784     ac_cpp_err=
10785   fi
10786 else
10787   ac_cpp_err=yes
10788 fi
10789 if test -z "$ac_cpp_err"; then
10790   ac_header_preproc=yes
10791 else
10792   echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10794
10795   ac_header_preproc=no
10796 fi
10797 rm -f conftest.err conftest.$ac_ext
10798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10799 echo "${ECHO_T}$ac_header_preproc" >&6
10800
10801 # So?  What about this header?
10802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10803   yes:no: )
10804     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10808     ac_header_preproc=yes
10809     ;;
10810   no:yes:* )
10811     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10813     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10814 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10815     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10817     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10818 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10821     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10823     (
10824       cat <<\_ASBOX
10825 ## ------------------------------------------ ##
10826 ## Report this to the AC_PACKAGE_NAME lists.  ##
10827 ## ------------------------------------------ ##
10828 _ASBOX
10829     ) |
10830       sed "s/^/$as_me: WARNING:     /" >&2
10831     ;;
10832 esac
10833 echo "$as_me:$LINENO: checking for $ac_header" >&5
10834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10836   echo $ECHO_N "(cached) $ECHO_C" >&6
10837 else
10838   eval "$as_ac_Header=\$ac_header_preproc"
10839 fi
10840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10842
10843 fi
10844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10845   cat >>confdefs.h <<_ACEOF
10846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10847 _ACEOF
10848
10849 fi
10850
10851 done
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10877 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10878 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10879 __fsetlocking
10880 do
10881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10882 echo "$as_me:$LINENO: checking for $ac_func" >&5
10883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10884 if eval "test \"\${$as_ac_var+set}\" = set"; then
10885   echo $ECHO_N "(cached) $ECHO_C" >&6
10886 else
10887   cat >conftest.$ac_ext <<_ACEOF
10888 /* confdefs.h.  */
10889 _ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h.  */
10893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10895 #define $ac_func innocuous_$ac_func
10896
10897 /* System header to define __stub macros and hopefully few prototypes,
10898     which can conflict with char $ac_func (); below.
10899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10900     <limits.h> exists even on freestanding compilers.  */
10901
10902 #ifdef __STDC__
10903 # include <limits.h>
10904 #else
10905 # include <assert.h>
10906 #endif
10907
10908 #undef $ac_func
10909
10910 /* Override any gcc2 internal prototype to avoid an error.  */
10911 #ifdef __cplusplus
10912 extern "C"
10913 {
10914 #endif
10915 /* We use char because int might match the return type of a gcc2
10916    builtin and then its argument prototype would still apply.  */
10917 char $ac_func ();
10918 /* The GNU C library defines this for functions which it implements
10919     to always fail with ENOSYS.  Some functions are actually named
10920     something starting with __ and the normal name is an alias.  */
10921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10922 choke me
10923 #else
10924 char (*f) () = $ac_func;
10925 #endif
10926 #ifdef __cplusplus
10927 }
10928 #endif
10929
10930 int
10931 main ()
10932 {
10933 return f != $ac_func;
10934   ;
10935   return 0;
10936 }
10937 _ACEOF
10938 rm -f conftest.$ac_objext conftest$ac_exeext
10939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10940   (eval $ac_link) 2>conftest.er1
10941   ac_status=$?
10942   grep -v '^ *+' conftest.er1 >conftest.err
10943   rm -f conftest.er1
10944   cat conftest.err >&5
10945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946   (exit $ac_status); } &&
10947          { ac_try='test -z "$ac_c_werror_flag"
10948                          || test ! -s conftest.err'
10949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950   (eval $ac_try) 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; } &&
10954          { ac_try='test -s conftest$ac_exeext'
10955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956   (eval $ac_try) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; }; then
10960   eval "$as_ac_var=yes"
10961 else
10962   echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10964
10965 eval "$as_ac_var=no"
10966 fi
10967 rm -f conftest.err conftest.$ac_objext \
10968       conftest$ac_exeext conftest.$ac_ext
10969 fi
10970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10972 if test `eval echo '${'$as_ac_var'}'` = yes; then
10973   cat >>confdefs.h <<_ACEOF
10974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10975 _ACEOF
10976
10977 fi
10978 done
10979
10980
10981
10982   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10983 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
10984 if test "${ac_cv_have_decl__snprintf+set}" = set; then
10985   echo $ECHO_N "(cached) $ECHO_C" >&6
10986 else
10987   cat >conftest.$ac_ext <<_ACEOF
10988 /* confdefs.h.  */
10989 _ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h.  */
10993 #include <stdio.h>
10994 int
10995 main ()
10996 {
10997
10998 #ifndef _snprintf
10999   char *p = (char *) _snprintf;
11000 #endif
11001
11002   ;
11003   return 0;
11004 }
11005 _ACEOF
11006 rm -f conftest.$ac_objext
11007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008   (eval $ac_compile) 2>conftest.er1
11009   ac_status=$?
11010   grep -v '^ *+' conftest.er1 >conftest.err
11011   rm -f conftest.er1
11012   cat conftest.err >&5
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } &&
11015          { ac_try='test -z "$ac_c_werror_flag"
11016                          || test ! -s conftest.err'
11017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018   (eval $ac_try) 2>&5
11019   ac_status=$?
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); }; } &&
11022          { ac_try='test -s conftest.$ac_objext'
11023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024   (eval $ac_try) 2>&5
11025   ac_status=$?
11026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); }; }; then
11028   ac_cv_have_decl__snprintf=yes
11029 else
11030   echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11032
11033 ac_cv_have_decl__snprintf=no
11034 fi
11035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11036 fi
11037 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11038 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11039   if test $ac_cv_have_decl__snprintf = yes; then
11040     gt_value=1
11041   else
11042     gt_value=0
11043   fi
11044
11045 cat >>confdefs.h <<_ACEOF
11046 #define HAVE_DECL__SNPRINTF $gt_value
11047 _ACEOF
11048
11049
11050
11051   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11052 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11053 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11054   echo $ECHO_N "(cached) $ECHO_C" >&6
11055 else
11056   cat >conftest.$ac_ext <<_ACEOF
11057 /* confdefs.h.  */
11058 _ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h.  */
11062 #include <stdio.h>
11063 int
11064 main ()
11065 {
11066
11067 #ifndef _snwprintf
11068   char *p = (char *) _snwprintf;
11069 #endif
11070
11071   ;
11072   return 0;
11073 }
11074 _ACEOF
11075 rm -f conftest.$ac_objext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11077   (eval $ac_compile) 2>conftest.er1
11078   ac_status=$?
11079   grep -v '^ *+' conftest.er1 >conftest.err
11080   rm -f conftest.er1
11081   cat conftest.err >&5
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); } &&
11084          { ac_try='test -z "$ac_c_werror_flag"
11085                          || test ! -s conftest.err'
11086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087   (eval $ac_try) 2>&5
11088   ac_status=$?
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); }; } &&
11091          { ac_try='test -s conftest.$ac_objext'
11092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093   (eval $ac_try) 2>&5
11094   ac_status=$?
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); }; }; then
11097   ac_cv_have_decl__snwprintf=yes
11098 else
11099   echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11101
11102 ac_cv_have_decl__snwprintf=no
11103 fi
11104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11105 fi
11106 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11107 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11108   if test $ac_cv_have_decl__snwprintf = yes; then
11109     gt_value=1
11110   else
11111     gt_value=0
11112   fi
11113
11114 cat >>confdefs.h <<_ACEOF
11115 #define HAVE_DECL__SNWPRINTF $gt_value
11116 _ACEOF
11117
11118
11119
11120
11121   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11122 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11123 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11124   echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126   cat >conftest.$ac_ext <<_ACEOF
11127 /* confdefs.h.  */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h.  */
11132 #include <stdio.h>
11133 int
11134 main ()
11135 {
11136
11137 #ifndef feof_unlocked
11138   char *p = (char *) feof_unlocked;
11139 #endif
11140
11141   ;
11142   return 0;
11143 }
11144 _ACEOF
11145 rm -f conftest.$ac_objext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147   (eval $ac_compile) 2>conftest.er1
11148   ac_status=$?
11149   grep -v '^ *+' conftest.er1 >conftest.err
11150   rm -f conftest.er1
11151   cat conftest.err >&5
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); } &&
11154          { ac_try='test -z "$ac_c_werror_flag"
11155                          || test ! -s conftest.err'
11156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157   (eval $ac_try) 2>&5
11158   ac_status=$?
11159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160   (exit $ac_status); }; } &&
11161          { ac_try='test -s conftest.$ac_objext'
11162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163   (eval $ac_try) 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); }; }; then
11167   ac_cv_have_decl_feof_unlocked=yes
11168 else
11169   echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11171
11172 ac_cv_have_decl_feof_unlocked=no
11173 fi
11174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11175 fi
11176 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11177 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11178   if test $ac_cv_have_decl_feof_unlocked = yes; then
11179     gt_value=1
11180   else
11181     gt_value=0
11182   fi
11183
11184 cat >>confdefs.h <<_ACEOF
11185 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11186 _ACEOF
11187
11188
11189
11190   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11191 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11192 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11193   echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195   cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h.  */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h.  */
11201 #include <stdio.h>
11202 int
11203 main ()
11204 {
11205
11206 #ifndef fgets_unlocked
11207   char *p = (char *) fgets_unlocked;
11208 #endif
11209
11210   ;
11211   return 0;
11212 }
11213 _ACEOF
11214 rm -f conftest.$ac_objext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11216   (eval $ac_compile) 2>conftest.er1
11217   ac_status=$?
11218   grep -v '^ *+' conftest.er1 >conftest.err
11219   rm -f conftest.er1
11220   cat conftest.err >&5
11221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222   (exit $ac_status); } &&
11223          { ac_try='test -z "$ac_c_werror_flag"
11224                          || test ! -s conftest.err'
11225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226   (eval $ac_try) 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); }; } &&
11230          { ac_try='test -s conftest.$ac_objext'
11231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232   (eval $ac_try) 2>&5
11233   ac_status=$?
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); }; }; then
11236   ac_cv_have_decl_fgets_unlocked=yes
11237 else
11238   echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11240
11241 ac_cv_have_decl_fgets_unlocked=no
11242 fi
11243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11244 fi
11245 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11246 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11247   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11248     gt_value=1
11249   else
11250     gt_value=0
11251   fi
11252
11253 cat >>confdefs.h <<_ACEOF
11254 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11255 _ACEOF
11256
11257
11258
11259   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11260 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11261 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11262   echo $ECHO_N "(cached) $ECHO_C" >&6
11263 else
11264   cat >conftest.$ac_ext <<_ACEOF
11265 /* confdefs.h.  */
11266 _ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h.  */
11270 #include <stdio.h>
11271 int
11272 main ()
11273 {
11274
11275 #ifndef getc_unlocked
11276   char *p = (char *) getc_unlocked;
11277 #endif
11278
11279   ;
11280   return 0;
11281 }
11282 _ACEOF
11283 rm -f conftest.$ac_objext
11284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11285   (eval $ac_compile) 2>conftest.er1
11286   ac_status=$?
11287   grep -v '^ *+' conftest.er1 >conftest.err
11288   rm -f conftest.er1
11289   cat conftest.err >&5
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); } &&
11292          { ac_try='test -z "$ac_c_werror_flag"
11293                          || test ! -s conftest.err'
11294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295   (eval $ac_try) 2>&5
11296   ac_status=$?
11297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298   (exit $ac_status); }; } &&
11299          { ac_try='test -s conftest.$ac_objext'
11300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301   (eval $ac_try) 2>&5
11302   ac_status=$?
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); }; }; then
11305   ac_cv_have_decl_getc_unlocked=yes
11306 else
11307   echo "$as_me: failed program was:" >&5
11308 sed 's/^/| /' conftest.$ac_ext >&5
11309
11310 ac_cv_have_decl_getc_unlocked=no
11311 fi
11312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11313 fi
11314 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11315 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11316   if test $ac_cv_have_decl_getc_unlocked = yes; then
11317     gt_value=1
11318   else
11319     gt_value=0
11320   fi
11321
11322 cat >>confdefs.h <<_ACEOF
11323 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11324 _ACEOF
11325
11326
11327
11328   case $gt_cv_func_printf_posix in
11329     *yes) HAVE_POSIX_PRINTF=1 ;;
11330     *) HAVE_POSIX_PRINTF=0 ;;
11331   esac
11332
11333   if test "$ac_cv_func_asprintf" = yes; then
11334     HAVE_ASPRINTF=1
11335   else
11336     HAVE_ASPRINTF=0
11337   fi
11338
11339   if test "$ac_cv_func_snprintf" = yes; then
11340     HAVE_SNPRINTF=1
11341   else
11342     HAVE_SNPRINTF=0
11343   fi
11344
11345   if test "$ac_cv_func_wprintf" = yes; then
11346     HAVE_WPRINTF=1
11347   else
11348     HAVE_WPRINTF=0
11349   fi
11350
11351
11352
11353
11354
11355
11356
11357           am_save_CPPFLAGS="$CPPFLAGS"
11358
11359   for element in $INCICONV; do
11360     haveit=
11361     for x in $CPPFLAGS; do
11362
11363   acl_save_prefix="$prefix"
11364   prefix="$acl_final_prefix"
11365   acl_save_exec_prefix="$exec_prefix"
11366   exec_prefix="$acl_final_exec_prefix"
11367   eval x=\"$x\"
11368   exec_prefix="$acl_save_exec_prefix"
11369   prefix="$acl_save_prefix"
11370
11371       if test "X$x" = "X$element"; then
11372         haveit=yes
11373         break
11374       fi
11375     done
11376     if test -z "$haveit"; then
11377       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11378     fi
11379   done
11380
11381
11382   echo "$as_me:$LINENO: checking for iconv" >&5
11383 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11384 if test "${am_cv_func_iconv+set}" = set; then
11385   echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387
11388     am_cv_func_iconv="no, consider installing GNU libiconv"
11389     am_cv_lib_iconv=no
11390     cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h.  */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h.  */
11396 #include <stdlib.h>
11397 #include <iconv.h>
11398 int
11399 main ()
11400 {
11401 iconv_t cd = iconv_open("","");
11402        iconv(cd,NULL,NULL,NULL,NULL);
11403        iconv_close(cd);
11404   ;
11405   return 0;
11406 }
11407 _ACEOF
11408 rm -f conftest.$ac_objext conftest$ac_exeext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11410   (eval $ac_link) 2>conftest.er1
11411   ac_status=$?
11412   grep -v '^ *+' conftest.er1 >conftest.err
11413   rm -f conftest.er1
11414   cat conftest.err >&5
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); } &&
11417          { ac_try='test -z "$ac_c_werror_flag"
11418                          || test ! -s conftest.err'
11419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420   (eval $ac_try) 2>&5
11421   ac_status=$?
11422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); }; } &&
11424          { ac_try='test -s conftest$ac_exeext'
11425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426   (eval $ac_try) 2>&5
11427   ac_status=$?
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); }; }; then
11430   am_cv_func_iconv=yes
11431 else
11432   echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11434
11435 fi
11436 rm -f conftest.err conftest.$ac_objext \
11437       conftest$ac_exeext conftest.$ac_ext
11438     if test "$am_cv_func_iconv" != yes; then
11439       am_save_LIBS="$LIBS"
11440       LIBS="$LIBS $LIBICONV"
11441       cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h.  */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h.  */
11447 #include <stdlib.h>
11448 #include <iconv.h>
11449 int
11450 main ()
11451 {
11452 iconv_t cd = iconv_open("","");
11453          iconv(cd,NULL,NULL,NULL,NULL);
11454          iconv_close(cd);
11455   ;
11456   return 0;
11457 }
11458 _ACEOF
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461   (eval $ac_link) 2>conftest.er1
11462   ac_status=$?
11463   grep -v '^ *+' conftest.er1 >conftest.err
11464   rm -f conftest.er1
11465   cat conftest.err >&5
11466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467   (exit $ac_status); } &&
11468          { ac_try='test -z "$ac_c_werror_flag"
11469                          || test ! -s conftest.err'
11470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471   (eval $ac_try) 2>&5
11472   ac_status=$?
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); }; } &&
11475          { ac_try='test -s conftest$ac_exeext'
11476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477   (eval $ac_try) 2>&5
11478   ac_status=$?
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); }; }; then
11481   am_cv_lib_iconv=yes
11482         am_cv_func_iconv=yes
11483 else
11484   echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11486
11487 fi
11488 rm -f conftest.err conftest.$ac_objext \
11489       conftest$ac_exeext conftest.$ac_ext
11490       LIBS="$am_save_LIBS"
11491     fi
11492
11493 fi
11494 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11495 echo "${ECHO_T}$am_cv_func_iconv" >&6
11496   if test "$am_cv_func_iconv" = yes; then
11497
11498 cat >>confdefs.h <<\_ACEOF
11499 #define HAVE_ICONV 1
11500 _ACEOF
11501
11502   fi
11503   if test "$am_cv_lib_iconv" = yes; then
11504     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11505 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11506     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11507 echo "${ECHO_T}$LIBICONV" >&6
11508   else
11509             CPPFLAGS="$am_save_CPPFLAGS"
11510     LIBICONV=
11511     LTLIBICONV=
11512   fi
11513
11514
11515
11516   if test "$am_cv_func_iconv" = yes; then
11517     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11518 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11519     if test "${am_cv_proto_iconv+set}" = set; then
11520   echo $ECHO_N "(cached) $ECHO_C" >&6
11521 else
11522
11523       cat >conftest.$ac_ext <<_ACEOF
11524 /* confdefs.h.  */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h.  */
11529
11530 #include <stdlib.h>
11531 #include <iconv.h>
11532 extern
11533 #ifdef __cplusplus
11534 "C"
11535 #endif
11536 #if defined(__STDC__) || defined(__cplusplus)
11537 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11538 #else
11539 size_t iconv();
11540 #endif
11541
11542 int
11543 main ()
11544 {
11545
11546   ;
11547   return 0;
11548 }
11549 _ACEOF
11550 rm -f conftest.$ac_objext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11552   (eval $ac_compile) 2>conftest.er1
11553   ac_status=$?
11554   grep -v '^ *+' conftest.er1 >conftest.err
11555   rm -f conftest.er1
11556   cat conftest.err >&5
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); } &&
11559          { ac_try='test -z "$ac_c_werror_flag"
11560                          || test ! -s conftest.err'
11561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562   (eval $ac_try) 2>&5
11563   ac_status=$?
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); }; } &&
11566          { ac_try='test -s conftest.$ac_objext'
11567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568   (eval $ac_try) 2>&5
11569   ac_status=$?
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); }; }; then
11572   am_cv_proto_iconv_arg1=""
11573 else
11574   echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11576
11577 am_cv_proto_iconv_arg1="const"
11578 fi
11579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11580       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);"
11581 fi
11582
11583     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11584     echo "$as_me:$LINENO: result: ${ac_t:-
11585          }$am_cv_proto_iconv" >&5
11586 echo "${ECHO_T}${ac_t:-
11587          }$am_cv_proto_iconv" >&6
11588
11589 cat >>confdefs.h <<_ACEOF
11590 #define ICONV_CONST $am_cv_proto_iconv_arg1
11591 _ACEOF
11592
11593   fi
11594
11595
11596   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11597 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11598 if test "${am_cv_langinfo_codeset+set}" = set; then
11599   echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601   cat >conftest.$ac_ext <<_ACEOF
11602 /* confdefs.h.  */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h.  */
11607 #include <langinfo.h>
11608 int
11609 main ()
11610 {
11611 char* cs = nl_langinfo(CODESET);
11612   ;
11613   return 0;
11614 }
11615 _ACEOF
11616 rm -f conftest.$ac_objext conftest$ac_exeext
11617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11618   (eval $ac_link) 2>conftest.er1
11619   ac_status=$?
11620   grep -v '^ *+' conftest.er1 >conftest.err
11621   rm -f conftest.er1
11622   cat conftest.err >&5
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); } &&
11625          { ac_try='test -z "$ac_c_werror_flag"
11626                          || test ! -s conftest.err'
11627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628   (eval $ac_try) 2>&5
11629   ac_status=$?
11630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631   (exit $ac_status); }; } &&
11632          { ac_try='test -s conftest$ac_exeext'
11633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634   (eval $ac_try) 2>&5
11635   ac_status=$?
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); }; }; then
11638   am_cv_langinfo_codeset=yes
11639 else
11640   echo "$as_me: failed program was:" >&5
11641 sed 's/^/| /' conftest.$ac_ext >&5
11642
11643 am_cv_langinfo_codeset=no
11644 fi
11645 rm -f conftest.err conftest.$ac_objext \
11646       conftest$ac_exeext conftest.$ac_ext
11647
11648 fi
11649 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11650 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11651   if test $am_cv_langinfo_codeset = yes; then
11652
11653 cat >>confdefs.h <<\_ACEOF
11654 #define HAVE_LANGINFO_CODESET 1
11655 _ACEOF
11656
11657   fi
11658
11659   if test $ac_cv_header_locale_h = yes; then
11660
11661   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11662 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11663 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11664   echo $ECHO_N "(cached) $ECHO_C" >&6
11665 else
11666   cat >conftest.$ac_ext <<_ACEOF
11667 /* confdefs.h.  */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h.  */
11672 #include <locale.h>
11673 int
11674 main ()
11675 {
11676 return LC_MESSAGES
11677   ;
11678   return 0;
11679 }
11680 _ACEOF
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11683   (eval $ac_link) 2>conftest.er1
11684   ac_status=$?
11685   grep -v '^ *+' conftest.er1 >conftest.err
11686   rm -f conftest.er1
11687   cat conftest.err >&5
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); } &&
11690          { ac_try='test -z "$ac_c_werror_flag"
11691                          || test ! -s conftest.err'
11692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693   (eval $ac_try) 2>&5
11694   ac_status=$?
11695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696   (exit $ac_status); }; } &&
11697          { ac_try='test -s conftest$ac_exeext'
11698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699   (eval $ac_try) 2>&5
11700   ac_status=$?
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); }; }; then
11703   gt_cv_val_LC_MESSAGES=yes
11704 else
11705   echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11707
11708 gt_cv_val_LC_MESSAGES=no
11709 fi
11710 rm -f conftest.err conftest.$ac_objext \
11711       conftest$ac_exeext conftest.$ac_ext
11712 fi
11713 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11714 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11715   if test $gt_cv_val_LC_MESSAGES = yes; then
11716
11717 cat >>confdefs.h <<\_ACEOF
11718 #define HAVE_LC_MESSAGES 1
11719 _ACEOF
11720
11721   fi
11722
11723   fi
11724
11725   if test -n "$INTL_MACOSX_LIBS"; then
11726     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11727   fi
11728
11729                       for ac_prog in bison
11730 do
11731   # Extract the first word of "$ac_prog", so it can be a program name with args.
11732 set dummy $ac_prog; ac_word=$2
11733 echo "$as_me:$LINENO: checking for $ac_word" >&5
11734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11735 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11736   echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738   if test -n "$INTLBISON"; then
11739   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11740 else
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH
11743 do
11744   IFS=$as_save_IFS
11745   test -z "$as_dir" && as_dir=.
11746   for ac_exec_ext in '' $ac_executable_extensions; do
11747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11748     ac_cv_prog_INTLBISON="$ac_prog"
11749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11750     break 2
11751   fi
11752 done
11753 done
11754
11755 fi
11756 fi
11757 INTLBISON=$ac_cv_prog_INTLBISON
11758 if test -n "$INTLBISON"; then
11759   echo "$as_me:$LINENO: result: $INTLBISON" >&5
11760 echo "${ECHO_T}$INTLBISON" >&6
11761 else
11762   echo "$as_me:$LINENO: result: no" >&5
11763 echo "${ECHO_T}no" >&6
11764 fi
11765
11766   test -n "$INTLBISON" && break
11767 done
11768
11769   if test -z "$INTLBISON"; then
11770     ac_verc_fail=yes
11771   else
11772         echo "$as_me:$LINENO: checking version of bison" >&5
11773 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11774     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11775     case $ac_prog_version in
11776       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11777       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11778          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11779       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11780     esac
11781     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11782 echo "${ECHO_T}$ac_prog_version" >&6
11783   fi
11784   if test $ac_verc_fail = yes; then
11785     INTLBISON=:
11786   fi
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11804 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11805 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11806   echo $ECHO_N "(cached) $ECHO_C" >&6
11807 else
11808   gt_save_CPPFLAGS="$CPPFLAGS"
11809      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11810      gt_save_LIBS="$LIBS"
11811      LIBS="$LIBS -framework CoreFoundation"
11812      cat >conftest.$ac_ext <<_ACEOF
11813 /* confdefs.h.  */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h.  */
11818 #include <CFPreferences.h>
11819 int
11820 main ()
11821 {
11822 CFPreferencesCopyAppValue(NULL, NULL)
11823   ;
11824   return 0;
11825 }
11826 _ACEOF
11827 rm -f conftest.$ac_objext conftest$ac_exeext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11829   (eval $ac_link) 2>conftest.er1
11830   ac_status=$?
11831   grep -v '^ *+' conftest.er1 >conftest.err
11832   rm -f conftest.er1
11833   cat conftest.err >&5
11834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835   (exit $ac_status); } &&
11836          { ac_try='test -z "$ac_c_werror_flag"
11837                          || test ! -s conftest.err'
11838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839   (eval $ac_try) 2>&5
11840   ac_status=$?
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); }; } &&
11843          { ac_try='test -s conftest$ac_exeext'
11844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845   (eval $ac_try) 2>&5
11846   ac_status=$?
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); }; }; then
11849   gt_cv_func_CFPreferencesCopyAppValue=yes
11850 else
11851   echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11853
11854 gt_cv_func_CFPreferencesCopyAppValue=no
11855 fi
11856 rm -f conftest.err conftest.$ac_objext \
11857       conftest$ac_exeext conftest.$ac_ext
11858      CPPFLAGS="$gt_save_CPPFLAGS"
11859      LIBS="$gt_save_LIBS"
11860 fi
11861 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11862 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11863   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11864
11865 cat >>confdefs.h <<\_ACEOF
11866 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11867 _ACEOF
11868
11869   fi
11870     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11871 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11872 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11873   echo $ECHO_N "(cached) $ECHO_C" >&6
11874 else
11875   gt_save_CPPFLAGS="$CPPFLAGS"
11876      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11877      gt_save_LIBS="$LIBS"
11878      LIBS="$LIBS -framework CoreFoundation"
11879      cat >conftest.$ac_ext <<_ACEOF
11880 /* confdefs.h.  */
11881 _ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h.  */
11885 #include <CFLocale.h>
11886 int
11887 main ()
11888 {
11889 CFLocaleCopyCurrent();
11890   ;
11891   return 0;
11892 }
11893 _ACEOF
11894 rm -f conftest.$ac_objext conftest$ac_exeext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896   (eval $ac_link) 2>conftest.er1
11897   ac_status=$?
11898   grep -v '^ *+' conftest.er1 >conftest.err
11899   rm -f conftest.er1
11900   cat conftest.err >&5
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); } &&
11903          { ac_try='test -z "$ac_c_werror_flag"
11904                          || test ! -s conftest.err'
11905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906   (eval $ac_try) 2>&5
11907   ac_status=$?
11908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909   (exit $ac_status); }; } &&
11910          { ac_try='test -s conftest$ac_exeext'
11911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912   (eval $ac_try) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; }; then
11916   gt_cv_func_CFLocaleCopyCurrent=yes
11917 else
11918   echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11920
11921 gt_cv_func_CFLocaleCopyCurrent=no
11922 fi
11923 rm -f conftest.err conftest.$ac_objext \
11924       conftest$ac_exeext conftest.$ac_ext
11925      CPPFLAGS="$gt_save_CPPFLAGS"
11926      LIBS="$gt_save_LIBS"
11927 fi
11928 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11929 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11930   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11931
11932 cat >>confdefs.h <<\_ACEOF
11933 #define HAVE_CFLOCALECOPYCURRENT 1
11934 _ACEOF
11935
11936   fi
11937   INTL_MACOSX_LIBS=
11938   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11939     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11940   fi
11941
11942
11943
11944
11945   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11946 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11947     # Check whether --enable-nls or --disable-nls was given.
11948 if test "${enable_nls+set}" = set; then
11949   enableval="$enable_nls"
11950   USE_NLS=$enableval
11951 else
11952   USE_NLS=yes
11953 fi;
11954   echo "$as_me:$LINENO: result: $USE_NLS" >&5
11955 echo "${ECHO_T}$USE_NLS" >&6
11956
11957
11958
11959
11960     BUILD_INCLUDED_LIBINTL=no
11961     USE_INCLUDED_LIBINTL=no
11962
11963   LIBINTL=
11964   LTLIBINTL=
11965   POSUB=
11966
11967     if test "$USE_NLS" = "yes"; then
11968     gt_use_preinstalled_gnugettext=no
11969
11970       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11971 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11972
11973 # Check whether --with-included-gettext or --without-included-gettext was given.
11974 if test "${with_included_gettext+set}" = set; then
11975   withval="$with_included_gettext"
11976   nls_cv_force_use_gnu_gettext=$withval
11977 else
11978   nls_cv_force_use_gnu_gettext=no
11979 fi;
11980       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11981 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
11982
11983       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11984       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11985
11986
11987
11988
11989
11990
11991         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11992 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11993 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11994   echo $ECHO_N "(cached) $ECHO_C" >&6
11995 else
11996   cat >conftest.$ac_ext <<_ACEOF
11997 /* confdefs.h.  */
11998 _ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h.  */
12002 #include <libintl.h>
12003 extern int _nl_msg_cat_cntr;
12004 extern int *_nl_domain_bindings;
12005 int
12006 main ()
12007 {
12008 bindtextdomain ("", "");
12009 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12010   ;
12011   return 0;
12012 }
12013 _ACEOF
12014 rm -f conftest.$ac_objext conftest$ac_exeext
12015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12016   (eval $ac_link) 2>conftest.er1
12017   ac_status=$?
12018   grep -v '^ *+' conftest.er1 >conftest.err
12019   rm -f conftest.er1
12020   cat conftest.err >&5
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); } &&
12023          { ac_try='test -z "$ac_c_werror_flag"
12024                          || test ! -s conftest.err'
12025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026   (eval $ac_try) 2>&5
12027   ac_status=$?
12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); }; } &&
12030          { ac_try='test -s conftest$ac_exeext'
12031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032   (eval $ac_try) 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); }; }; then
12036   gt_cv_func_gnugettext1_libc=yes
12037 else
12038   echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12040
12041 gt_cv_func_gnugettext1_libc=no
12042 fi
12043 rm -f conftest.err conftest.$ac_objext \
12044       conftest$ac_exeext conftest.$ac_ext
12045 fi
12046 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12047 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12048
12049         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12050
12051
12052
12053     use_additional=yes
12054
12055   acl_save_prefix="$prefix"
12056   prefix="$acl_final_prefix"
12057   acl_save_exec_prefix="$exec_prefix"
12058   exec_prefix="$acl_final_exec_prefix"
12059
12060     eval additional_includedir=\"$includedir\"
12061     eval additional_libdir=\"$libdir\"
12062
12063   exec_prefix="$acl_save_exec_prefix"
12064   prefix="$acl_save_prefix"
12065
12066
12067 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12068 if test "${with_libintl_prefix+set}" = set; then
12069   withval="$with_libintl_prefix"
12070
12071     if test "X$withval" = "Xno"; then
12072       use_additional=no
12073     else
12074       if test "X$withval" = "X"; then
12075
12076   acl_save_prefix="$prefix"
12077   prefix="$acl_final_prefix"
12078   acl_save_exec_prefix="$exec_prefix"
12079   exec_prefix="$acl_final_exec_prefix"
12080
12081           eval additional_includedir=\"$includedir\"
12082           eval additional_libdir=\"$libdir\"
12083
12084   exec_prefix="$acl_save_exec_prefix"
12085   prefix="$acl_save_prefix"
12086
12087       else
12088         additional_includedir="$withval/include"
12089         additional_libdir="$withval/lib"
12090       fi
12091     fi
12092
12093 fi;
12094       LIBINTL=
12095   LTLIBINTL=
12096   INCINTL=
12097   rpathdirs=
12098   ltrpathdirs=
12099   names_already_handled=
12100   names_next_round='intl '
12101   while test -n "$names_next_round"; do
12102     names_this_round="$names_next_round"
12103     names_next_round=
12104     for name in $names_this_round; do
12105       already_handled=
12106       for n in $names_already_handled; do
12107         if test "$n" = "$name"; then
12108           already_handled=yes
12109           break
12110         fi
12111       done
12112       if test -z "$already_handled"; then
12113         names_already_handled="$names_already_handled $name"
12114                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12115         eval value=\"\$HAVE_LIB$uppername\"
12116         if test -n "$value"; then
12117           if test "$value" = yes; then
12118             eval value=\"\$LIB$uppername\"
12119             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12120             eval value=\"\$LTLIB$uppername\"
12121             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12122           else
12123                                     :
12124           fi
12125         else
12126                               found_dir=
12127           found_la=
12128           found_so=
12129           found_a=
12130           if test $use_additional = yes; then
12131             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12132               found_dir="$additional_libdir"
12133               found_so="$additional_libdir/lib$name.$shlibext"
12134               if test -f "$additional_libdir/lib$name.la"; then
12135                 found_la="$additional_libdir/lib$name.la"
12136               fi
12137             else
12138               if test -f "$additional_libdir/lib$name.$libext"; then
12139                 found_dir="$additional_libdir"
12140                 found_a="$additional_libdir/lib$name.$libext"
12141                 if test -f "$additional_libdir/lib$name.la"; then
12142                   found_la="$additional_libdir/lib$name.la"
12143                 fi
12144               fi
12145             fi
12146           fi
12147           if test "X$found_dir" = "X"; then
12148             for x in $LDFLAGS $LTLIBINTL; do
12149
12150   acl_save_prefix="$prefix"
12151   prefix="$acl_final_prefix"
12152   acl_save_exec_prefix="$exec_prefix"
12153   exec_prefix="$acl_final_exec_prefix"
12154   eval x=\"$x\"
12155   exec_prefix="$acl_save_exec_prefix"
12156   prefix="$acl_save_prefix"
12157
12158               case "$x" in
12159                 -L*)
12160                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12161                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12162                     found_dir="$dir"
12163                     found_so="$dir/lib$name.$shlibext"
12164                     if test -f "$dir/lib$name.la"; then
12165                       found_la="$dir/lib$name.la"
12166                     fi
12167                   else
12168                     if test -f "$dir/lib$name.$libext"; then
12169                       found_dir="$dir"
12170                       found_a="$dir/lib$name.$libext"
12171                       if test -f "$dir/lib$name.la"; then
12172                         found_la="$dir/lib$name.la"
12173                       fi
12174                     fi
12175                   fi
12176                   ;;
12177               esac
12178               if test "X$found_dir" != "X"; then
12179                 break
12180               fi
12181             done
12182           fi
12183           if test "X$found_dir" != "X"; then
12184                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12185             if test "X$found_so" != "X"; then
12186                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12187                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12188               else
12189                                                                                 haveit=
12190                 for x in $ltrpathdirs; do
12191                   if test "X$x" = "X$found_dir"; then
12192                     haveit=yes
12193                     break
12194                   fi
12195                 done
12196                 if test -z "$haveit"; then
12197                   ltrpathdirs="$ltrpathdirs $found_dir"
12198                 fi
12199                                 if test "$hardcode_direct" = yes; then
12200                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12201                 else
12202                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12203                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12204                                                             haveit=
12205                     for x in $rpathdirs; do
12206                       if test "X$x" = "X$found_dir"; then
12207                         haveit=yes
12208                         break
12209                       fi
12210                     done
12211                     if test -z "$haveit"; then
12212                       rpathdirs="$rpathdirs $found_dir"
12213                     fi
12214                   else
12215                                                                                 haveit=
12216                     for x in $LDFLAGS $LIBINTL; do
12217
12218   acl_save_prefix="$prefix"
12219   prefix="$acl_final_prefix"
12220   acl_save_exec_prefix="$exec_prefix"
12221   exec_prefix="$acl_final_exec_prefix"
12222   eval x=\"$x\"
12223   exec_prefix="$acl_save_exec_prefix"
12224   prefix="$acl_save_prefix"
12225
12226                       if test "X$x" = "X-L$found_dir"; then
12227                         haveit=yes
12228                         break
12229                       fi
12230                     done
12231                     if test -z "$haveit"; then
12232                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12233                     fi
12234                     if test "$hardcode_minus_L" != no; then
12235                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12236                     else
12237                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12238                     fi
12239                   fi
12240                 fi
12241               fi
12242             else
12243               if test "X$found_a" != "X"; then
12244                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12245               else
12246                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12247               fi
12248             fi
12249                         additional_includedir=
12250             case "$found_dir" in
12251               */lib | */lib/)
12252                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12253                 additional_includedir="$basedir/include"
12254                 ;;
12255             esac
12256             if test "X$additional_includedir" != "X"; then
12257                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12258                 haveit=
12259                 if test "X$additional_includedir" = "X/usr/local/include"; then
12260                   if test -n "$GCC"; then
12261                     case $host_os in
12262                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12263                     esac
12264                   fi
12265                 fi
12266                 if test -z "$haveit"; then
12267                   for x in $CPPFLAGS $INCINTL; do
12268
12269   acl_save_prefix="$prefix"
12270   prefix="$acl_final_prefix"
12271   acl_save_exec_prefix="$exec_prefix"
12272   exec_prefix="$acl_final_exec_prefix"
12273   eval x=\"$x\"
12274   exec_prefix="$acl_save_exec_prefix"
12275   prefix="$acl_save_prefix"
12276
12277                     if test "X$x" = "X-I$additional_includedir"; then
12278                       haveit=yes
12279                       break
12280                     fi
12281                   done
12282                   if test -z "$haveit"; then
12283                     if test -d "$additional_includedir"; then
12284                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12285                     fi
12286                   fi
12287                 fi
12288               fi
12289             fi
12290                         if test -n "$found_la"; then
12291                                                         save_libdir="$libdir"
12292               case "$found_la" in
12293                 */* | *\\*) . "$found_la" ;;
12294                 *) . "./$found_la" ;;
12295               esac
12296               libdir="$save_libdir"
12297                             for dep in $dependency_libs; do
12298                 case "$dep" in
12299                   -L*)
12300                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12301                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
12302                       haveit=
12303                       if test "X$additional_libdir" = "X/usr/local/lib"; then
12304                         if test -n "$GCC"; then
12305                           case $host_os in
12306                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12307                           esac
12308                         fi
12309                       fi
12310                       if test -z "$haveit"; then
12311                         haveit=
12312                         for x in $LDFLAGS $LIBINTL; do
12313
12314   acl_save_prefix="$prefix"
12315   prefix="$acl_final_prefix"
12316   acl_save_exec_prefix="$exec_prefix"
12317   exec_prefix="$acl_final_exec_prefix"
12318   eval x=\"$x\"
12319   exec_prefix="$acl_save_exec_prefix"
12320   prefix="$acl_save_prefix"
12321
12322                           if test "X$x" = "X-L$additional_libdir"; then
12323                             haveit=yes
12324                             break
12325                           fi
12326                         done
12327                         if test -z "$haveit"; then
12328                           if test -d "$additional_libdir"; then
12329                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12330                           fi
12331                         fi
12332                         haveit=
12333                         for x in $LDFLAGS $LTLIBINTL; do
12334
12335   acl_save_prefix="$prefix"
12336   prefix="$acl_final_prefix"
12337   acl_save_exec_prefix="$exec_prefix"
12338   exec_prefix="$acl_final_exec_prefix"
12339   eval x=\"$x\"
12340   exec_prefix="$acl_save_exec_prefix"
12341   prefix="$acl_save_prefix"
12342
12343                           if test "X$x" = "X-L$additional_libdir"; then
12344                             haveit=yes
12345                             break
12346                           fi
12347                         done
12348                         if test -z "$haveit"; then
12349                           if test -d "$additional_libdir"; then
12350                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12351                           fi
12352                         fi
12353                       fi
12354                     fi
12355                     ;;
12356                   -R*)
12357                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12358                     if test "$enable_rpath" != no; then
12359                                                                   haveit=
12360                       for x in $rpathdirs; do
12361                         if test "X$x" = "X$dir"; then
12362                           haveit=yes
12363                           break
12364                         fi
12365                       done
12366                       if test -z "$haveit"; then
12367                         rpathdirs="$rpathdirs $dir"
12368                       fi
12369                                                                   haveit=
12370                       for x in $ltrpathdirs; do
12371                         if test "X$x" = "X$dir"; then
12372                           haveit=yes
12373                           break
12374                         fi
12375                       done
12376                       if test -z "$haveit"; then
12377                         ltrpathdirs="$ltrpathdirs $dir"
12378                       fi
12379                     fi
12380                     ;;
12381                   -l*)
12382                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12383                     ;;
12384                   *.la)
12385                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12386                     ;;
12387                   *)
12388                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12389                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12390                     ;;
12391                 esac
12392               done
12393             fi
12394           else
12395                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12396             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12397           fi
12398         fi
12399       fi
12400     done
12401   done
12402   if test "X$rpathdirs" != "X"; then
12403     if test -n "$hardcode_libdir_separator"; then
12404                         alldirs=
12405       for found_dir in $rpathdirs; do
12406         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12407       done
12408             acl_save_libdir="$libdir"
12409       libdir="$alldirs"
12410       eval flag=\"$hardcode_libdir_flag_spec\"
12411       libdir="$acl_save_libdir"
12412       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12413     else
12414             for found_dir in $rpathdirs; do
12415         acl_save_libdir="$libdir"
12416         libdir="$found_dir"
12417         eval flag=\"$hardcode_libdir_flag_spec\"
12418         libdir="$acl_save_libdir"
12419         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12420       done
12421     fi
12422   fi
12423   if test "X$ltrpathdirs" != "X"; then
12424             for found_dir in $ltrpathdirs; do
12425       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12426     done
12427   fi
12428
12429           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12430 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12431 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12432   echo $ECHO_N "(cached) $ECHO_C" >&6
12433 else
12434   gt_save_CPPFLAGS="$CPPFLAGS"
12435             CPPFLAGS="$CPPFLAGS $INCINTL"
12436             gt_save_LIBS="$LIBS"
12437             LIBS="$LIBS $LIBINTL"
12438                         cat >conftest.$ac_ext <<_ACEOF
12439 /* confdefs.h.  */
12440 _ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h.  */
12444 #include <libintl.h>
12445 extern int _nl_msg_cat_cntr;
12446 extern
12447 #ifdef __cplusplus
12448 "C"
12449 #endif
12450 const char *_nl_expand_alias (const char *);
12451 int
12452 main ()
12453 {
12454 bindtextdomain ("", "");
12455 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12456   ;
12457   return 0;
12458 }
12459 _ACEOF
12460 rm -f conftest.$ac_objext conftest$ac_exeext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12462   (eval $ac_link) 2>conftest.er1
12463   ac_status=$?
12464   grep -v '^ *+' conftest.er1 >conftest.err
12465   rm -f conftest.er1
12466   cat conftest.err >&5
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); } &&
12469          { ac_try='test -z "$ac_c_werror_flag"
12470                          || test ! -s conftest.err'
12471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472   (eval $ac_try) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; } &&
12476          { ac_try='test -s conftest$ac_exeext'
12477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478   (eval $ac_try) 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); }; }; then
12482   gt_cv_func_gnugettext1_libintl=yes
12483 else
12484   echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12486
12487 gt_cv_func_gnugettext1_libintl=no
12488 fi
12489 rm -f conftest.err conftest.$ac_objext \
12490       conftest$ac_exeext conftest.$ac_ext
12491                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12492               LIBS="$LIBS $LIBICONV"
12493               cat >conftest.$ac_ext <<_ACEOF
12494 /* confdefs.h.  */
12495 _ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h.  */
12499 #include <libintl.h>
12500 extern int _nl_msg_cat_cntr;
12501 extern
12502 #ifdef __cplusplus
12503 "C"
12504 #endif
12505 const char *_nl_expand_alias (const char *);
12506 int
12507 main ()
12508 {
12509 bindtextdomain ("", "");
12510 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12511   ;
12512   return 0;
12513 }
12514 _ACEOF
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12517   (eval $ac_link) 2>conftest.er1
12518   ac_status=$?
12519   grep -v '^ *+' conftest.er1 >conftest.err
12520   rm -f conftest.er1
12521   cat conftest.err >&5
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); } &&
12524          { ac_try='test -z "$ac_c_werror_flag"
12525                          || test ! -s conftest.err'
12526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527   (eval $ac_try) 2>&5
12528   ac_status=$?
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); }; } &&
12531          { ac_try='test -s conftest$ac_exeext'
12532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533   (eval $ac_try) 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); }; }; then
12537   LIBINTL="$LIBINTL $LIBICONV"
12538                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12539                 gt_cv_func_gnugettext1_libintl=yes
12540
12541 else
12542   echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12544
12545 fi
12546 rm -f conftest.err conftest.$ac_objext \
12547       conftest$ac_exeext conftest.$ac_ext
12548             fi
12549             CPPFLAGS="$gt_save_CPPFLAGS"
12550             LIBS="$gt_save_LIBS"
12551 fi
12552 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12553 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12554         fi
12555
12556                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12557            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12558                 && test "$PACKAGE" != gettext-runtime \
12559                 && test "$PACKAGE" != gettext-tools; }; then
12560           gt_use_preinstalled_gnugettext=yes
12561         else
12562                     LIBINTL=
12563           LTLIBINTL=
12564           INCINTL=
12565         fi
12566
12567
12568         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12569                               nls_cv_use_gnu_gettext=yes
12570         fi
12571       fi
12572
12573       if test "$nls_cv_use_gnu_gettext" = "yes"; then
12574                 BUILD_INCLUDED_LIBINTL=yes
12575         USE_INCLUDED_LIBINTL=yes
12576         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12577         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12578         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12579       fi
12580
12581       CATOBJEXT=
12582       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12583          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12584                 CATOBJEXT=.gmo
12585       fi
12586
12587
12588     if test -n "$INTL_MACOSX_LIBS"; then
12589       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12590          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12591                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12592         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12593       fi
12594     fi
12595
12596     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12597        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12598
12599 cat >>confdefs.h <<\_ACEOF
12600 #define ENABLE_NLS 1
12601 _ACEOF
12602
12603     else
12604       USE_NLS=no
12605     fi
12606   fi
12607
12608   echo "$as_me:$LINENO: checking whether to use NLS" >&5
12609 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12610   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12611 echo "${ECHO_T}$USE_NLS" >&6
12612   if test "$USE_NLS" = "yes"; then
12613     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12614 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12615     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12616       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12617         gt_source="external libintl"
12618       else
12619         gt_source="libc"
12620       fi
12621     else
12622       gt_source="included intl directory"
12623     fi
12624     echo "$as_me:$LINENO: result: $gt_source" >&5
12625 echo "${ECHO_T}$gt_source" >&6
12626   fi
12627
12628   if test "$USE_NLS" = "yes"; then
12629
12630     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12631       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12632         echo "$as_me:$LINENO: checking how to link with libintl" >&5
12633 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12634         echo "$as_me:$LINENO: result: $LIBINTL" >&5
12635 echo "${ECHO_T}$LIBINTL" >&6
12636
12637   for element in $INCINTL; do
12638     haveit=
12639     for x in $CPPFLAGS; do
12640
12641   acl_save_prefix="$prefix"
12642   prefix="$acl_final_prefix"
12643   acl_save_exec_prefix="$exec_prefix"
12644   exec_prefix="$acl_final_exec_prefix"
12645   eval x=\"$x\"
12646   exec_prefix="$acl_save_exec_prefix"
12647   prefix="$acl_save_prefix"
12648
12649       if test "X$x" = "X$element"; then
12650         haveit=yes
12651         break
12652       fi
12653     done
12654     if test -z "$haveit"; then
12655       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12656     fi
12657   done
12658
12659       fi
12660
12661
12662 cat >>confdefs.h <<\_ACEOF
12663 #define HAVE_GETTEXT 1
12664 _ACEOF
12665
12666
12667 cat >>confdefs.h <<\_ACEOF
12668 #define HAVE_DCGETTEXT 1
12669 _ACEOF
12670
12671     fi
12672
12673         POSUB=po
12674   fi
12675
12676
12677             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12678       BUILD_INCLUDED_LIBINTL=yes
12679     fi
12680
12681
12682
12683
12684
12685         nls_cv_header_intl=
12686     nls_cv_header_libgt=
12687
12688         DATADIRNAME=share
12689
12690
12691         INSTOBJEXT=.mo
12692
12693
12694         GENCAT=gencat
12695
12696
12697         INTLOBJS=
12698     if test "$USE_INCLUDED_LIBINTL" = yes; then
12699       INTLOBJS="\$(GETTOBJS)"
12700     fi
12701
12702
12703         INTL_LIBTOOL_SUFFIX_PREFIX=
12704
12705
12706
12707     INTLLIBS="$LIBINTL"
12708
12709
12710
12711
12712
12713
12714 fi
12715
12716
12717 support_mysql=no
12718 support_sqlite=no
12719 support_sqlite3=no
12720 support_postgresql=no
12721 support_smartalloc=yes
12722 support_readline=yes
12723 support_conio=yes
12724 support_gnome=no
12725 support_bat=no
12726 support_wx_console=no
12727 support_tls=no
12728 support_crypto=no
12729 gnome_version=
12730 wx_version=
12731 support_static_tools=no
12732 support_static_fd=no
12733 support_static_sd=no
12734 support_static_dir=no
12735 support_static_cons=no
12736 support_python=no
12737 build_client_only=no
12738 build_dird=yes
12739 build_stored=yes
12740 cats=
12741 db_type=Internal
12742 DB_TYPE=bdb
12743
12744
12745 # -------------------------------------------
12746 # gnome (default off)
12747 # -------------------------------------------
12748 # Check whether --enable-gnome or --disable-gnome was given.
12749 if test "${enable_gnome+set}" = set; then
12750   enableval="$enable_gnome"
12751   if test x$enableval = xyes; then
12752     support_gnome=yes
12753   fi
12754 fi;
12755
12756 GNOME_DIR=
12757 if test x$support_gnome = xyes; then
12758   abc=`$PKGCONFIG --exists libgnomeui-2.0`
12759   pkg=$?
12760   if test $pkg = 0; then
12761      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12762      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12763      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12764      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12765
12766
12767
12768
12769      GNOME_DIR=src/gnome2-console
12770      gnome_version="Version 2.x"
12771   else
12772      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12773 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12774    { (exit 1); exit 1; }; }
12775   fi
12776 fi
12777
12778
12779 # -------------------------------------------
12780 # bat (default off)
12781 # -------------------------------------------
12782 # Check whether --enable-bat or --disable-bat was given.
12783 if test "${enable_bat+set}" = set; then
12784   enableval="$enable_bat"
12785   if test x$enableval = xyes; then
12786
12787 cat >>confdefs.h <<\_ACEOF
12788 #define HAVE_BAT 1
12789 _ACEOF
12790
12791     support_bat=yes
12792   fi
12793 fi;
12794
12795 BAT_DIR=
12796 if test x$support_bat = xyes; then
12797   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
12798   pkg=$?
12799   if test $pkg = 0; then
12800      BAT_DIR=src/qt-console
12801   else
12802      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
12803 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
12804    { (exit 1); exit 1; }; }
12805   fi
12806 fi
12807
12808 #
12809 #  If bat is enabled, we need the qwt library
12810 got_qwt=no
12811 QWT_INC=
12812 QWT_LDFLAGS=
12813 if test x$support_bat = xyes; then
12814    echo "$as_me:$LINENO: checking for qwt support" >&5
12815 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6
12816
12817 # Check whether --with-qwt or --without-qwt was given.
12818 if test "${with_qwt+set}" = set; then
12819   withval="$with_qwt"
12820
12821         case "$with_qwt" in
12822         no)
12823           ;;
12824         yes|*)
12825           if test -f ${with_qwt}/include/qwt.h; then
12826              QWT_INC="${with_qwt}/include"
12827              QWT_LDFLAGS="-L${with_qwt}/lib"
12828           fi
12829           ;;
12830         esac
12831
12832
12833 fi;
12834 #
12835 # Search in standard places, or --with-qwt not specified
12836 #
12837    if test x$QWT_INC = x; then
12838       for root in /usr /usr/local; do
12839          for ver in qwt qwt5; do
12840             if test -f ${root}/include/${ver}/qwt.h; then
12841                QWT_INC="${root}/include/${ver}"
12842                if test -d ${root}/lib64/; then
12843                   QWT_LDFLAGS="-L${root}/lib64"
12844                else
12845                   QWT_LDFLAGS="-L${root}/lib"
12846                fi
12847                got_qwt=yes
12848                break;
12849             fi
12850          done
12851       done
12852    fi
12853    if test x$QWT_INC = x; then
12854       echo "$as_me:$LINENO: result: no" >&5
12855 echo "${ECHO_T}no" >&6
12856       { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
12857 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
12858    { (exit 1); exit 1; }; }
12859       BAT_DIR=
12860       support_bat=no
12861    else
12862       echo "$as_me:$LINENO: result: yes" >&5
12863 echo "${ECHO_T}yes" >&6
12864    fi
12865 fi
12866
12867
12868
12869
12870
12871
12872 # -------------------------------------------
12873 # bwx-console (default off)
12874 # -------------------------------------------
12875 # Check whether --enable-bwx-console or --disable-bwx-console was given.
12876 if test "${enable_bwx_console+set}" = set; then
12877   enableval="$enable_bwx_console"
12878   if test x$enableval = xyes; then
12879     support_wx_console=yes
12880   fi
12881 fi;
12882
12883 WX_DIR=
12884 if test x$support_wx_console = xyes; then
12885   abc=`$WXCONFIG $WXFLAGS --cppflags`
12886   pkg=$?
12887   if test $pkg = 0; then
12888      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12889      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12890      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12891
12892
12893
12894      WX_DIR=src/wx-console
12895   else
12896      echo " "
12897      echo "wx-config program not found. bwx-console disabled."
12898      echo " "
12899      support_wx_console=no
12900   fi
12901 fi
12902
12903
12904
12905 # -------------------------------------------
12906 # tray-monitor (default off)
12907 # -------------------------------------------
12908 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12909 if test "${enable_tray_monitor+set}" = set; then
12910   enableval="$enable_tray_monitor"
12911   if test x$enableval = xyes; then
12912     support_tray_monitor=yes
12913   fi
12914 fi;
12915
12916 TRAY_MONITOR_DIR=
12917 if test x$support_tray_monitor = xyes; then
12918   abc=`$PKGCONFIG --exists gtk+-2.0`
12919   pkg=$?
12920   if test $pkg = 0; then
12921      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12922      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12923
12924
12925      TRAY_MONITOR_DIR=src/tray-monitor
12926      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12927      pkg=$?
12928      if test $pkg = 0; then
12929
12930 cat >>confdefs.h <<\_ACEOF
12931 #define HAVE_GTK_2_4 1
12932 _ACEOF
12933
12934      fi
12935   fi
12936 fi
12937
12938
12939 # -------------------------------------------
12940 # smartalloc (default off)
12941 # -------------------------------------------
12942 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12943 if test "${enable_smartalloc+set}" = set; then
12944   enableval="$enable_smartalloc"
12945   if test x$enableval = xno; then
12946     support_smartalloc=no
12947   fi
12948 fi;
12949
12950 if test x$support_smartalloc = xyes; then
12951
12952 cat >>confdefs.h <<\_ACEOF
12953 #define SMARTALLOC 1
12954 _ACEOF
12955
12956 fi
12957
12958 # -------------------------------------------
12959 # static-tools (default off)
12960 # -------------------------------------------
12961 # Check whether --enable-static-tools or --disable-static-tools was given.
12962 if test "${enable_static_tools+set}" = set; then
12963   enableval="$enable_static_tools"
12964   if test x$enableval = xyes; then
12965      support_static_tools=yes
12966    fi
12967 fi;
12968
12969 TTOOL_LDFLAGS=
12970 if test x$support_static_tools = xyes; then
12971    TTOOL_LDFLAGS="-static"
12972 fi
12973
12974
12975 # -------------------------------------------
12976 # static-fd    (default off)
12977 # -------------------------------------------
12978 # Check whether --enable-static-fd or --disable-static-fd was given.
12979 if test "${enable_static_fd+set}" = set; then
12980   enableval="$enable_static_fd"
12981   if test x$enableval = xyes; then
12982      support_static_fd=yes
12983    fi
12984 fi;
12985
12986 STATIC_FD=
12987 if test x$support_static_fd = xyes; then
12988    STATIC_FD="static-bacula-fd"
12989 fi
12990
12991
12992 # -------------------------------------------
12993 # static-sd    (default off)
12994 # -------------------------------------------
12995 # Check whether --enable-static-sd or --disable-static-sd was given.
12996 if test "${enable_static_sd+set}" = set; then
12997   enableval="$enable_static_sd"
12998   if test x$enableval = xyes; then
12999      support_static_sd=yes
13000    fi
13001 fi;
13002
13003 STATIC_SD=
13004 if test x$support_static_sd = xyes; then
13005    STATIC_SD="static-bacula-sd"
13006 fi
13007
13008
13009 # -------------------------------------------
13010 # static-dir   (default off)
13011 # -------------------------------------------
13012 # Check whether --enable-static-dir or --disable-static-dir was given.
13013 if test "${enable_static_dir+set}" = set; then
13014   enableval="$enable_static_dir"
13015   if test x$enableval = xyes; then
13016      support_static_dir=yes
13017    fi
13018 fi;
13019
13020 STATIC_DIR=
13021 if test x$support_static_dir = xyes; then
13022    STATIC_DIR="static-bacula-dir"
13023 fi
13024
13025
13026 # -------------------------------------------
13027 # static-cons  (default off)
13028 # -------------------------------------------
13029 # Check whether --enable-static-cons or --disable-static-cons was given.
13030 if test "${enable_static_cons+set}" = set; then
13031   enableval="$enable_static_cons"
13032   if test x$enableval = xyes; then
13033      support_static_cons=yes
13034    fi
13035 fi;
13036
13037 STATIC_CONS=
13038 STATIC_GNOME_CONS=
13039 STATIC_WX_CONS=
13040 if test x$support_static_cons = xyes; then
13041    STATIC_CONS="static-bconsole"
13042    STATIC_GNOME_CONS="static-bgnome-console"
13043    STATIC_WX_CONS="static-bwx-console"
13044 fi
13045
13046
13047
13048
13049 # -------------------------------------------
13050 # client_only  (default off)
13051 # -------------------------------------------
13052 # Check whether --enable-client-only or --disable-client-only was given.
13053 if test "${enable_client_only+set}" = set; then
13054   enableval="$enable_client_only"
13055   if test x$enableval = xyes; then
13056       build_client_only=yes
13057       db_type=None
13058       DB_TYPE=none
13059    fi
13060 fi;
13061 if test x$build_client_only = xno; then
13062    ALL_DIRS="subdirs"
13063 else
13064    ALL_DIRS=""
13065 fi
13066
13067
13068 # -------------------------------------------
13069 # director  (default on)
13070 # -------------------------------------------
13071 # Check whether --enable-build-dird or --disable-build-dird was given.
13072 if test "${enable_build_dird+set}" = set; then
13073   enableval="$enable_build_dird"
13074   if test x$enableval = xno; then
13075       build_dird=no
13076    fi
13077 fi;
13078 if test x$build_dird = xyes; then
13079    DIRD_DIR="src/dird"
13080    DIR_TOOLS="DIRTOOLS"
13081 else
13082    DIRD_DIR=""
13083    DIR_TOOLS="NODIRTOOLS"
13084 fi
13085
13086
13087
13088 # -------------------------------------------
13089 # stored  (default on)
13090 # -------------------------------------------
13091 # Check whether --enable-build-stored or --disable-build-stored was given.
13092 if test "${enable_build_stored+set}" = set; then
13093   enableval="$enable_build_stored"
13094   if test x$enableval = xno; then
13095       build_stored=no
13096    fi
13097 fi;
13098 if test x$build_stored = xyes; then
13099    STORED_DIR="src/stored"
13100 else
13101    STORED_DIR=""
13102 fi
13103
13104
13105 # ---------------------------------------------------
13106 # Check for conio (Bacula readline substitute)(
13107 # ---------------------------------------------------
13108 # this allows you to turn it completely off
13109 # Check whether --enable-conio or --disable-conio was given.
13110 if test "${enable_conio+set}" = set; then
13111   enableval="$enable_conio"
13112   if test x$enableval = xno; then
13113      support_conio=no
13114   fi
13115
13116 fi;
13117
13118
13119 # ---------------------------------------------------
13120 # Check for IPv6 support
13121 # ---------------------------------------------------
13122 # this allows you to turn it completely off
13123 support_ipv6=yes
13124 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13125 if test "${enable_ipv6+set}" = set; then
13126   enableval="$enable_ipv6"
13127   if test x$enableval = xno; then
13128      support_ipv6=no
13129   fi
13130
13131 fi;
13132
13133 if test x$support_ipv6 = xyes; then
13134     cat >conftest.$ac_ext <<_ACEOF
13135 /* confdefs.h.  */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h.  */
13140  #include <sys/types.h>
13141 #include <sys/socket.h>
13142 #include <netinet/in.h>
13143 int
13144 main ()
13145 {
13146 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13147   ;
13148   return 0;
13149 }
13150 _ACEOF
13151 rm -f conftest.$ac_objext conftest$ac_exeext
13152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13153   (eval $ac_link) 2>conftest.er1
13154   ac_status=$?
13155   grep -v '^ *+' conftest.er1 >conftest.err
13156   rm -f conftest.er1
13157   cat conftest.err >&5
13158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159   (exit $ac_status); } &&
13160          { ac_try='test -z "$ac_c_werror_flag"
13161                          || test ! -s conftest.err'
13162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163   (eval $ac_try) 2>&5
13164   ac_status=$?
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); }; } &&
13167          { ac_try='test -s conftest$ac_exeext'
13168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169   (eval $ac_try) 2>&5
13170   ac_status=$?
13171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172   (exit $ac_status); }; }; then
13173   support_ipv6=yes
13174 else
13175   echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13177
13178 support_ipv6=no
13179 fi
13180 rm -f conftest.err conftest.$ac_objext \
13181       conftest$ac_exeext conftest.$ac_ext
13182 fi
13183
13184 if test x$support_ipv6 = xyes; then
13185
13186 cat >>confdefs.h <<\_ACEOF
13187 #define HAVE_IPV6 1
13188 _ACEOF
13189
13190 fi
13191
13192
13193
13194 got_conio="no"
13195 if test x$support_conio = xyes; then
13196    if test "${ac_cv_header_termcap_h+set}" = set; then
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 fi
13202 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13203 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13204 else
13205   # Is the header compilable?
13206 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13207 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13208 cat >conftest.$ac_ext <<_ACEOF
13209 /* confdefs.h.  */
13210 _ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h.  */
13214 $ac_includes_default
13215 #include <termcap.h>
13216 _ACEOF
13217 rm -f conftest.$ac_objext
13218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13219   (eval $ac_compile) 2>conftest.er1
13220   ac_status=$?
13221   grep -v '^ *+' conftest.er1 >conftest.err
13222   rm -f conftest.er1
13223   cat conftest.err >&5
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); } &&
13226          { ac_try='test -z "$ac_c_werror_flag"
13227                          || test ! -s conftest.err'
13228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229   (eval $ac_try) 2>&5
13230   ac_status=$?
13231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232   (exit $ac_status); }; } &&
13233          { ac_try='test -s conftest.$ac_objext'
13234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235   (eval $ac_try) 2>&5
13236   ac_status=$?
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); }; }; then
13239   ac_header_compiler=yes
13240 else
13241   echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13243
13244 ac_header_compiler=no
13245 fi
13246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13248 echo "${ECHO_T}$ac_header_compiler" >&6
13249
13250 # Is the header present?
13251 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13252 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13253 cat >conftest.$ac_ext <<_ACEOF
13254 /* confdefs.h.  */
13255 _ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h.  */
13259 #include <termcap.h>
13260 _ACEOF
13261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13262   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13263   ac_status=$?
13264   grep -v '^ *+' conftest.er1 >conftest.err
13265   rm -f conftest.er1
13266   cat conftest.err >&5
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); } >/dev/null; then
13269   if test -s conftest.err; then
13270     ac_cpp_err=$ac_c_preproc_warn_flag
13271     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13272   else
13273     ac_cpp_err=
13274   fi
13275 else
13276   ac_cpp_err=yes
13277 fi
13278 if test -z "$ac_cpp_err"; then
13279   ac_header_preproc=yes
13280 else
13281   echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13283
13284   ac_header_preproc=no
13285 fi
13286 rm -f conftest.err conftest.$ac_ext
13287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13288 echo "${ECHO_T}$ac_header_preproc" >&6
13289
13290 # So?  What about this header?
13291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13292   yes:no: )
13293     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13294 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13295     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13296 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13297     ac_header_preproc=yes
13298     ;;
13299   no:yes:* )
13300     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13301 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13302     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
13303 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
13304     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13305 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13306     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
13307 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13308     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13309 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13310     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13311 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13312     (
13313       cat <<\_ASBOX
13314 ## ------------------------------------------ ##
13315 ## Report this to the AC_PACKAGE_NAME lists.  ##
13316 ## ------------------------------------------ ##
13317 _ASBOX
13318     ) |
13319       sed "s/^/$as_me: WARNING:     /" >&2
13320     ;;
13321 esac
13322 echo "$as_me:$LINENO: checking for termcap.h" >&5
13323 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13324 if test "${ac_cv_header_termcap_h+set}" = set; then
13325   echo $ECHO_N "(cached) $ECHO_C" >&6
13326 else
13327   ac_cv_header_termcap_h=$ac_header_preproc
13328 fi
13329 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13330 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13331
13332 fi
13333 if test $ac_cv_header_termcap_h = yes; then
13334    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13335 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13336 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13337   echo $ECHO_N "(cached) $ECHO_C" >&6
13338 else
13339   ac_check_lib_save_LIBS=$LIBS
13340 LIBS="-ltermcap  $LIBS"
13341 cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h.  */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h.  */
13347
13348 /* Override any gcc2 internal prototype to avoid an error.  */
13349 #ifdef __cplusplus
13350 extern "C"
13351 #endif
13352 /* We use char because int might match the return type of a gcc2
13353    builtin and then its argument prototype would still apply.  */
13354 char tgetent ();
13355 int
13356 main ()
13357 {
13358 tgetent ();
13359   ;
13360   return 0;
13361 }
13362 _ACEOF
13363 rm -f conftest.$ac_objext conftest$ac_exeext
13364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13365   (eval $ac_link) 2>conftest.er1
13366   ac_status=$?
13367   grep -v '^ *+' conftest.er1 >conftest.err
13368   rm -f conftest.er1
13369   cat conftest.err >&5
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); } &&
13372          { ac_try='test -z "$ac_c_werror_flag"
13373                          || test ! -s conftest.err'
13374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375   (eval $ac_try) 2>&5
13376   ac_status=$?
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); }; } &&
13379          { ac_try='test -s conftest$ac_exeext'
13380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381   (eval $ac_try) 2>&5
13382   ac_status=$?
13383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); }; }; then
13385   ac_cv_lib_termcap_tgetent=yes
13386 else
13387   echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13389
13390 ac_cv_lib_termcap_tgetent=no
13391 fi
13392 rm -f conftest.err conftest.$ac_objext \
13393       conftest$ac_exeext conftest.$ac_ext
13394 LIBS=$ac_check_lib_save_LIBS
13395 fi
13396 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13397 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13398 if test $ac_cv_lib_termcap_tgetent = yes; then
13399    CONS_LIBS="-ltermcap"
13400          CONS_OBJ="conio.o"
13401          CONS_SRC="conio.c"
13402          got_conio="yes"
13403          support_readline=no
13404
13405 cat >>confdefs.h <<\_ACEOF
13406 #define HAVE_CONIO 1
13407 _ACEOF
13408
13409
13410 else
13411    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13412 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13413 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13414   echo $ECHO_N "(cached) $ECHO_C" >&6
13415 else
13416   ac_check_lib_save_LIBS=$LIBS
13417 LIBS="-lncurses  $LIBS"
13418 cat >conftest.$ac_ext <<_ACEOF
13419 /* confdefs.h.  */
13420 _ACEOF
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h.  */
13424
13425 /* Override any gcc2 internal prototype to avoid an error.  */
13426 #ifdef __cplusplus
13427 extern "C"
13428 #endif
13429 /* We use char because int might match the return type of a gcc2
13430    builtin and then its argument prototype would still apply.  */
13431 char tgetent ();
13432 int
13433 main ()
13434 {
13435 tgetent ();
13436   ;
13437   return 0;
13438 }
13439 _ACEOF
13440 rm -f conftest.$ac_objext conftest$ac_exeext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13442   (eval $ac_link) 2>conftest.er1
13443   ac_status=$?
13444   grep -v '^ *+' conftest.er1 >conftest.err
13445   rm -f conftest.er1
13446   cat conftest.err >&5
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); } &&
13449          { ac_try='test -z "$ac_c_werror_flag"
13450                          || test ! -s conftest.err'
13451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452   (eval $ac_try) 2>&5
13453   ac_status=$?
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); }; } &&
13456          { ac_try='test -s conftest$ac_exeext'
13457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458   (eval $ac_try) 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; }; then
13462   ac_cv_lib_ncurses_tgetent=yes
13463 else
13464   echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13466
13467 ac_cv_lib_ncurses_tgetent=no
13468 fi
13469 rm -f conftest.err conftest.$ac_objext \
13470       conftest$ac_exeext conftest.$ac_ext
13471 LIBS=$ac_check_lib_save_LIBS
13472 fi
13473 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13474 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13475 if test $ac_cv_lib_ncurses_tgetent = yes; then
13476    CONS_LIBS="-lncurses"
13477            CONS_OBJ="conio.o"
13478            CONS_SRC="conio.c"
13479            got_conio="yes"
13480            support_readline=no
13481
13482 cat >>confdefs.h <<\_ACEOF
13483 #define HAVE_CONIO 1
13484 _ACEOF
13485
13486
13487 fi
13488
13489
13490 fi
13491
13492
13493 else
13494
13495
13496 for ac_header in curses.h
13497 do
13498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
13505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13507 else
13508   # Is the header compilable?
13509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13511 cat >conftest.$ac_ext <<_ACEOF
13512 /* confdefs.h.  */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h.  */
13517 $ac_includes_default
13518 #include <$ac_header>
13519 _ACEOF
13520 rm -f conftest.$ac_objext
13521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13522   (eval $ac_compile) 2>conftest.er1
13523   ac_status=$?
13524   grep -v '^ *+' conftest.er1 >conftest.err
13525   rm -f conftest.er1
13526   cat conftest.err >&5
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); } &&
13529          { ac_try='test -z "$ac_c_werror_flag"
13530                          || test ! -s conftest.err'
13531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532   (eval $ac_try) 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); }; } &&
13536          { ac_try='test -s conftest.$ac_objext'
13537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538   (eval $ac_try) 2>&5
13539   ac_status=$?
13540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541   (exit $ac_status); }; }; then
13542   ac_header_compiler=yes
13543 else
13544   echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13546
13547 ac_header_compiler=no
13548 fi
13549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13551 echo "${ECHO_T}$ac_header_compiler" >&6
13552
13553 # Is the header present?
13554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13556 cat >conftest.$ac_ext <<_ACEOF
13557 /* confdefs.h.  */
13558 _ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h.  */
13562 #include <$ac_header>
13563 _ACEOF
13564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13565   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13566   ac_status=$?
13567   grep -v '^ *+' conftest.er1 >conftest.err
13568   rm -f conftest.er1
13569   cat conftest.err >&5
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); } >/dev/null; then
13572   if test -s conftest.err; then
13573     ac_cpp_err=$ac_c_preproc_warn_flag
13574     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13575   else
13576     ac_cpp_err=
13577   fi
13578 else
13579   ac_cpp_err=yes
13580 fi
13581 if test -z "$ac_cpp_err"; then
13582   ac_header_preproc=yes
13583 else
13584   echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13586
13587   ac_header_preproc=no
13588 fi
13589 rm -f conftest.err conftest.$ac_ext
13590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13591 echo "${ECHO_T}$ac_header_preproc" >&6
13592
13593 # So?  What about this header?
13594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13595   yes:no: )
13596     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13600     ac_header_preproc=yes
13601     ;;
13602   no:yes:* )
13603     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13605     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13606 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13607     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13609     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13610 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13613     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13615     (
13616       cat <<\_ASBOX
13617 ## ------------------------------------------ ##
13618 ## Report this to the AC_PACKAGE_NAME lists.  ##
13619 ## ------------------------------------------ ##
13620 _ASBOX
13621     ) |
13622       sed "s/^/$as_me: WARNING:     /" >&2
13623     ;;
13624 esac
13625 echo "$as_me:$LINENO: checking for $ac_header" >&5
13626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13628   echo $ECHO_N "(cached) $ECHO_C" >&6
13629 else
13630   eval "$as_ac_Header=\$ac_header_preproc"
13631 fi
13632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13634
13635 fi
13636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13637   cat >>confdefs.h <<_ACEOF
13638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13639 _ACEOF
13640
13641 fi
13642
13643 done
13644
13645          echo "$as_me:$LINENO: checking for term.h" >&5
13646 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13647 if test "${ac_cv_header_term_h+set}" = set; then
13648   echo $ECHO_N "(cached) $ECHO_C" >&6
13649 else
13650   cat >conftest.$ac_ext <<_ACEOF
13651 /* confdefs.h.  */
13652 _ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h.  */
13656 #if HAVE_CURSES_H
13657 #include <curses.h>
13658 #endif
13659
13660
13661 #include <term.h>
13662 _ACEOF
13663 rm -f conftest.$ac_objext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13665   (eval $ac_compile) 2>conftest.er1
13666   ac_status=$?
13667   grep -v '^ *+' conftest.er1 >conftest.err
13668   rm -f conftest.er1
13669   cat conftest.err >&5
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); } &&
13672          { ac_try='test -z "$ac_c_werror_flag"
13673                          || test ! -s conftest.err'
13674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675   (eval $ac_try) 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); }; } &&
13679          { ac_try='test -s conftest.$ac_objext'
13680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681   (eval $ac_try) 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); }; }; then
13685   ac_cv_header_term_h=yes
13686 else
13687   echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13689
13690 ac_cv_header_term_h=no
13691 fi
13692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13693 fi
13694 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13695 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13696 if test $ac_cv_header_term_h = yes; then
13697    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13698 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13699 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13700   echo $ECHO_N "(cached) $ECHO_C" >&6
13701 else
13702   ac_check_lib_save_LIBS=$LIBS
13703 LIBS="-lcurses  $LIBS"
13704 cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h.  */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h.  */
13710
13711 /* Override any gcc2 internal prototype to avoid an error.  */
13712 #ifdef __cplusplus
13713 extern "C"
13714 #endif
13715 /* We use char because int might match the return type of a gcc2
13716    builtin and then its argument prototype would still apply.  */
13717 char tgetent ();
13718 int
13719 main ()
13720 {
13721 tgetent ();
13722   ;
13723   return 0;
13724 }
13725 _ACEOF
13726 rm -f conftest.$ac_objext conftest$ac_exeext
13727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13728   (eval $ac_link) 2>conftest.er1
13729   ac_status=$?
13730   grep -v '^ *+' conftest.er1 >conftest.err
13731   rm -f conftest.er1
13732   cat conftest.err >&5
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); } &&
13735          { ac_try='test -z "$ac_c_werror_flag"
13736                          || test ! -s conftest.err'
13737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738   (eval $ac_try) 2>&5
13739   ac_status=$?
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); }; } &&
13742          { ac_try='test -s conftest$ac_exeext'
13743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744   (eval $ac_try) 2>&5
13745   ac_status=$?
13746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747   (exit $ac_status); }; }; then
13748   ac_cv_lib_curses_tgetent=yes
13749 else
13750   echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13752
13753 ac_cv_lib_curses_tgetent=no
13754 fi
13755 rm -f conftest.err conftest.$ac_objext \
13756       conftest$ac_exeext conftest.$ac_ext
13757 LIBS=$ac_check_lib_save_LIBS
13758 fi
13759 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13760 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13761 if test $ac_cv_lib_curses_tgetent = yes; then
13762    CONS_LIBS="-lcurses"
13763                    CONS_OBJ="conio.o"
13764                    CONS_SRC="conio.c"
13765                    got_conio="yes"
13766                    support_readline=no
13767
13768 cat >>confdefs.h <<\_ACEOF
13769 #define HAVE_CONIO 1
13770 _ACEOF
13771
13772
13773 fi
13774
13775
13776 else
13777    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13778 fi
13779
13780
13781
13782 fi
13783
13784
13785 fi
13786
13787
13788 # ---------------------------------------------------
13789 # Check for readline support/directory (default off)
13790 # ---------------------------------------------------
13791 # this allows you to turn it completely off
13792 # Check whether --enable-readline or --disable-readline was given.
13793 if test "${enable_readline+set}" = set; then
13794   enableval="$enable_readline"
13795   if test x$enableval = xno; then
13796     support_readline=no
13797   fi
13798 fi;
13799
13800 got_readline="no"
13801 READLINE_SRC=
13802 if test x$support_readline = xyes; then
13803
13804 # Check whether --with-readline or --without-readline was given.
13805 if test "${with_readline+set}" = set; then
13806   withval="$with_readline"
13807
13808         case "$with_readline" in
13809         no) : ;;
13810         yes|*)
13811           if test -f ${with_readline}/readline.h; then
13812              CONS_INC="-I${with_readline}"
13813              CONS_LDFLAGS="-L$with_readline"
13814           elif test -f ${with_readline}/include/readline/readline.h; then
13815              CONS_INC="-I${with_readline}/include/readline"
13816              CONS_LDFLAGS="-L${with_readline}/lib"
13817              with_readline="${with_readline}/include/readline"
13818           else
13819              with_readline="/usr/include/readline"
13820           fi
13821           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
13828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13830 else
13831   # Is the header compilable?
13832 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13833 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13834 cat >conftest.$ac_ext <<_ACEOF
13835 /* confdefs.h.  */
13836 _ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h.  */
13840 $ac_includes_default
13841 #include <${with_readline}/readline.h>
13842 _ACEOF
13843 rm -f conftest.$ac_objext
13844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13845   (eval $ac_compile) 2>conftest.er1
13846   ac_status=$?
13847   grep -v '^ *+' conftest.er1 >conftest.err
13848   rm -f conftest.er1
13849   cat conftest.err >&5
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); } &&
13852          { ac_try='test -z "$ac_c_werror_flag"
13853                          || test ! -s conftest.err'
13854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855   (eval $ac_try) 2>&5
13856   ac_status=$?
13857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); }; } &&
13859          { ac_try='test -s conftest.$ac_objext'
13860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861   (eval $ac_try) 2>&5
13862   ac_status=$?
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); }; }; then
13865   ac_header_compiler=yes
13866 else
13867   echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13869
13870 ac_header_compiler=no
13871 fi
13872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13874 echo "${ECHO_T}$ac_header_compiler" >&6
13875
13876 # Is the header present?
13877 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13878 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13879 cat >conftest.$ac_ext <<_ACEOF
13880 /* confdefs.h.  */
13881 _ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h.  */
13885 #include <${with_readline}/readline.h>
13886 _ACEOF
13887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13888   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13889   ac_status=$?
13890   grep -v '^ *+' conftest.er1 >conftest.err
13891   rm -f conftest.er1
13892   cat conftest.err >&5
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); } >/dev/null; then
13895   if test -s conftest.err; then
13896     ac_cpp_err=$ac_c_preproc_warn_flag
13897     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13898   else
13899     ac_cpp_err=
13900   fi
13901 else
13902   ac_cpp_err=yes
13903 fi
13904 if test -z "$ac_cpp_err"; then
13905   ac_header_preproc=yes
13906 else
13907   echo "$as_me: failed program was:" >&5
13908 sed 's/^/| /' conftest.$ac_ext >&5
13909
13910   ac_header_preproc=no
13911 fi
13912 rm -f conftest.err conftest.$ac_ext
13913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13914 echo "${ECHO_T}$ac_header_preproc" >&6
13915
13916 # So?  What about this header?
13917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13918   yes:no: )
13919     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13920 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13921     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13922 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13923     ac_header_preproc=yes
13924     ;;
13925   no:yes:* )
13926     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13927 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13928     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
13929 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
13930     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13931 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13932     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13933 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13934     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13935 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13936     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13937 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13938     (
13939       cat <<\_ASBOX
13940 ## ------------------------------------------ ##
13941 ## Report this to the AC_PACKAGE_NAME lists.  ##
13942 ## ------------------------------------------ ##
13943 _ASBOX
13944     ) |
13945       sed "s/^/$as_me: WARNING:     /" >&2
13946     ;;
13947 esac
13948 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13949 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13951   echo $ECHO_N "(cached) $ECHO_C" >&6
13952 else
13953   eval "$as_ac_Header=\$ac_header_preproc"
13954 fi
13955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13957
13958 fi
13959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13960
13961 cat >>confdefs.h <<\_ACEOF
13962 #define HAVE_READLINE 1
13963 _ACEOF
13964
13965                CONS_LIBS="-lreadline -lhistory -ltermcap"
13966                got_readline="yes"
13967
13968 else
13969    echo " "
13970                echo "readline.h not found. readline turned off ..."
13971                echo " "
13972
13973
13974 fi
13975
13976
13977           ;;
13978         esac
13979
13980 else
13981
13982        # check for standard readline library
13983        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13984   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13985 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13986 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13987   echo $ECHO_N "(cached) $ECHO_C" >&6
13988 fi
13989 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13990 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13991 else
13992   # Is the header compilable?
13993 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13994 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13995 cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h.  */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h.  */
14001 $ac_includes_default
14002 #include </usr/include/readline/readline.h>
14003 _ACEOF
14004 rm -f conftest.$ac_objext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006   (eval $ac_compile) 2>conftest.er1
14007   ac_status=$?
14008   grep -v '^ *+' conftest.er1 >conftest.err
14009   rm -f conftest.er1
14010   cat conftest.err >&5
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); } &&
14013          { ac_try='test -z "$ac_c_werror_flag"
14014                          || test ! -s conftest.err'
14015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016   (eval $ac_try) 2>&5
14017   ac_status=$?
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); }; } &&
14020          { ac_try='test -s conftest.$ac_objext'
14021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022   (eval $ac_try) 2>&5
14023   ac_status=$?
14024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025   (exit $ac_status); }; }; then
14026   ac_header_compiler=yes
14027 else
14028   echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14030
14031 ac_header_compiler=no
14032 fi
14033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14035 echo "${ECHO_T}$ac_header_compiler" >&6
14036
14037 # Is the header present?
14038 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14039 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
14040 cat >conftest.$ac_ext <<_ACEOF
14041 /* confdefs.h.  */
14042 _ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h.  */
14046 #include </usr/include/readline/readline.h>
14047 _ACEOF
14048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14049   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14050   ac_status=$?
14051   grep -v '^ *+' conftest.er1 >conftest.err
14052   rm -f conftest.er1
14053   cat conftest.err >&5
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); } >/dev/null; then
14056   if test -s conftest.err; then
14057     ac_cpp_err=$ac_c_preproc_warn_flag
14058     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14059   else
14060     ac_cpp_err=
14061   fi
14062 else
14063   ac_cpp_err=yes
14064 fi
14065 if test -z "$ac_cpp_err"; then
14066   ac_header_preproc=yes
14067 else
14068   echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14070
14071   ac_header_preproc=no
14072 fi
14073 rm -f conftest.err conftest.$ac_ext
14074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14075 echo "${ECHO_T}$ac_header_preproc" >&6
14076
14077 # So?  What about this header?
14078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14079   yes:no: )
14080     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14081 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14082     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14083 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14084     ac_header_preproc=yes
14085     ;;
14086   no:yes:* )
14087     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14088 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14089     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14090 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14091     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14092 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14093     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14094 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14095     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14096 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14097     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14098 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14099     (
14100       cat <<\_ASBOX
14101 ## ------------------------------------------ ##
14102 ## Report this to the AC_PACKAGE_NAME lists.  ##
14103 ## ------------------------------------------ ##
14104 _ASBOX
14105     ) |
14106       sed "s/^/$as_me: WARNING:     /" >&2
14107     ;;
14108 esac
14109 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14110 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14111 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14112   echo $ECHO_N "(cached) $ECHO_C" >&6
14113 else
14114   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14115 fi
14116 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14117 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14118
14119 fi
14120 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14121
14122 cat >>confdefs.h <<\_ACEOF
14123 #define HAVE_READLINE 1
14124 _ACEOF
14125
14126            got_readline="yes"
14127            CONS_INC="-I/usr/include/readline"
14128            CONS_LIBS="-lreadline -ltermcap"
14129
14130 else
14131
14132            # Did not find standard library, so try Bacula's default
14133             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14135   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14136 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14138   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
14143   # Is the header compilable?
14144 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14145 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14146 cat >conftest.$ac_ext <<_ACEOF
14147 /* confdefs.h.  */
14148 _ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h.  */
14152 $ac_includes_default
14153 #include <${TOP_DIR}/depkgs/readline/readline.h>
14154 _ACEOF
14155 rm -f conftest.$ac_objext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14157   (eval $ac_compile) 2>conftest.er1
14158   ac_status=$?
14159   grep -v '^ *+' conftest.er1 >conftest.err
14160   rm -f conftest.er1
14161   cat conftest.err >&5
14162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); } &&
14164          { ac_try='test -z "$ac_c_werror_flag"
14165                          || test ! -s conftest.err'
14166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167   (eval $ac_try) 2>&5
14168   ac_status=$?
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); }; } &&
14171          { ac_try='test -s conftest.$ac_objext'
14172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173   (eval $ac_try) 2>&5
14174   ac_status=$?
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); }; }; then
14177   ac_header_compiler=yes
14178 else
14179   echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14181
14182 ac_header_compiler=no
14183 fi
14184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14186 echo "${ECHO_T}$ac_header_compiler" >&6
14187
14188 # Is the header present?
14189 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14190 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
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 <${TOP_DIR}/depkgs/readline/readline.h>
14198 _ACEOF
14199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14200   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14201   ac_status=$?
14202   grep -v '^ *+' conftest.er1 >conftest.err
14203   rm -f conftest.er1
14204   cat conftest.err >&5
14205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206   (exit $ac_status); } >/dev/null; then
14207   if test -s conftest.err; then
14208     ac_cpp_err=$ac_c_preproc_warn_flag
14209     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14210   else
14211     ac_cpp_err=
14212   fi
14213 else
14214   ac_cpp_err=yes
14215 fi
14216 if test -z "$ac_cpp_err"; then
14217   ac_header_preproc=yes
14218 else
14219   echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14221
14222   ac_header_preproc=no
14223 fi
14224 rm -f conftest.err conftest.$ac_ext
14225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14226 echo "${ECHO_T}$ac_header_preproc" >&6
14227
14228 # So?  What about this header?
14229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14230   yes:no: )
14231     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14232 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14233     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14234 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14235     ac_header_preproc=yes
14236     ;;
14237   no:yes:* )
14238     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14239 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14240     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14241 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14242     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14243 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14244     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14245 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14246     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14247 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14248     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14249 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14250     (
14251       cat <<\_ASBOX
14252 ## ------------------------------------------ ##
14253 ## Report this to the AC_PACKAGE_NAME lists.  ##
14254 ## ------------------------------------------ ##
14255 _ASBOX
14256     ) |
14257       sed "s/^/$as_me: WARNING:     /" >&2
14258     ;;
14259 esac
14260 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14261 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14263   echo $ECHO_N "(cached) $ECHO_C" >&6
14264 else
14265   eval "$as_ac_Header=\$ac_header_preproc"
14266 fi
14267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14269
14270 fi
14271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14272
14273 cat >>confdefs.h <<\_ACEOF
14274 #define HAVE_READLINE 1
14275 _ACEOF
14276
14277                  got_readline="yes"
14278                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14279                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14280                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14281                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14282
14283 else
14284    echo " "
14285                 echo "readline.h not found. readline turned off ..."
14286                 echo " "
14287
14288
14289 fi
14290
14291
14292
14293
14294 fi
14295
14296
14297
14298
14299 fi;
14300 fi
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311 # Minimal stuff for readline Makefile configuration
14312 MAKE_SHELL=/bin/sh
14313
14314 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14315 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14316 if test "${ac_cv_header_stat_broken+set}" = set; then
14317   echo $ECHO_N "(cached) $ECHO_C" >&6
14318 else
14319   cat >conftest.$ac_ext <<_ACEOF
14320 /* confdefs.h.  */
14321 _ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h.  */
14325 #include <sys/types.h>
14326 #include <sys/stat.h>
14327
14328 #if defined(S_ISBLK) && defined(S_IFDIR)
14329 # if S_ISBLK (S_IFDIR)
14330 You lose.
14331 # endif
14332 #endif
14333
14334 #if defined(S_ISBLK) && defined(S_IFCHR)
14335 # if S_ISBLK (S_IFCHR)
14336 You lose.
14337 # endif
14338 #endif
14339
14340 #if defined(S_ISLNK) && defined(S_IFREG)
14341 # if S_ISLNK (S_IFREG)
14342 You lose.
14343 # endif
14344 #endif
14345
14346 #if defined(S_ISSOCK) && defined(S_IFREG)
14347 # if S_ISSOCK (S_IFREG)
14348 You lose.
14349 # endif
14350 #endif
14351
14352 _ACEOF
14353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14354   $EGREP "You lose" >/dev/null 2>&1; then
14355   ac_cv_header_stat_broken=yes
14356 else
14357   ac_cv_header_stat_broken=no
14358 fi
14359 rm -f conftest*
14360
14361 fi
14362 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14363 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14364 if test $ac_cv_header_stat_broken = yes; then
14365
14366 cat >>confdefs.h <<\_ACEOF
14367 #define STAT_MACROS_BROKEN 1
14368 _ACEOF
14369
14370 fi
14371
14372
14373
14374
14375
14376
14377 ac_header_dirent=no
14378 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14379   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14380 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14381 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14383   echo $ECHO_N "(cached) $ECHO_C" >&6
14384 else
14385   cat >conftest.$ac_ext <<_ACEOF
14386 /* confdefs.h.  */
14387 _ACEOF
14388 cat confdefs.h >>conftest.$ac_ext
14389 cat >>conftest.$ac_ext <<_ACEOF
14390 /* end confdefs.h.  */
14391 #include <sys/types.h>
14392 #include <$ac_hdr>
14393
14394 int
14395 main ()
14396 {
14397 if ((DIR *) 0)
14398 return 0;
14399   ;
14400   return 0;
14401 }
14402 _ACEOF
14403 rm -f conftest.$ac_objext
14404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14405   (eval $ac_compile) 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_objext'
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   eval "$as_ac_Header=yes"
14426 else
14427   echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14429
14430 eval "$as_ac_Header=no"
14431 fi
14432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14433 fi
14434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14437   cat >>confdefs.h <<_ACEOF
14438 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14439 _ACEOF
14440
14441 ac_header_dirent=$ac_hdr; break
14442 fi
14443
14444 done
14445 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14446 if test $ac_header_dirent = dirent.h; then
14447   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14448 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14449 if test "${ac_cv_search_opendir+set}" = set; then
14450   echo $ECHO_N "(cached) $ECHO_C" >&6
14451 else
14452   ac_func_search_save_LIBS=$LIBS
14453 ac_cv_search_opendir=no
14454 cat >conftest.$ac_ext <<_ACEOF
14455 /* confdefs.h.  */
14456 _ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h.  */
14460
14461 /* Override any gcc2 internal prototype to avoid an error.  */
14462 #ifdef __cplusplus
14463 extern "C"
14464 #endif
14465 /* We use char because int might match the return type of a gcc2
14466    builtin and then its argument prototype would still apply.  */
14467 char opendir ();
14468 int
14469 main ()
14470 {
14471 opendir ();
14472   ;
14473   return 0;
14474 }
14475 _ACEOF
14476 rm -f conftest.$ac_objext conftest$ac_exeext
14477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14478   (eval $ac_link) 2>conftest.er1
14479   ac_status=$?
14480   grep -v '^ *+' conftest.er1 >conftest.err
14481   rm -f conftest.er1
14482   cat conftest.err >&5
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   (exit $ac_status); } &&
14485          { ac_try='test -z "$ac_c_werror_flag"
14486                          || test ! -s conftest.err'
14487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488   (eval $ac_try) 2>&5
14489   ac_status=$?
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); }; } &&
14492          { ac_try='test -s conftest$ac_exeext'
14493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494   (eval $ac_try) 2>&5
14495   ac_status=$?
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); }; }; then
14498   ac_cv_search_opendir="none required"
14499 else
14500   echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14502
14503 fi
14504 rm -f conftest.err conftest.$ac_objext \
14505       conftest$ac_exeext conftest.$ac_ext
14506 if test "$ac_cv_search_opendir" = no; then
14507   for ac_lib in dir; do
14508     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14509     cat >conftest.$ac_ext <<_ACEOF
14510 /* confdefs.h.  */
14511 _ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h.  */
14515
14516 /* Override any gcc2 internal prototype to avoid an error.  */
14517 #ifdef __cplusplus
14518 extern "C"
14519 #endif
14520 /* We use char because int might match the return type of a gcc2
14521    builtin and then its argument prototype would still apply.  */
14522 char opendir ();
14523 int
14524 main ()
14525 {
14526 opendir ();
14527   ;
14528   return 0;
14529 }
14530 _ACEOF
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14533   (eval $ac_link) 2>conftest.er1
14534   ac_status=$?
14535   grep -v '^ *+' conftest.er1 >conftest.err
14536   rm -f conftest.er1
14537   cat conftest.err >&5
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); } &&
14540          { ac_try='test -z "$ac_c_werror_flag"
14541                          || test ! -s conftest.err'
14542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543   (eval $ac_try) 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); }; } &&
14547          { ac_try='test -s conftest$ac_exeext'
14548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549   (eval $ac_try) 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); }; }; then
14553   ac_cv_search_opendir="-l$ac_lib"
14554 break
14555 else
14556   echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14558
14559 fi
14560 rm -f conftest.err conftest.$ac_objext \
14561       conftest$ac_exeext conftest.$ac_ext
14562   done
14563 fi
14564 LIBS=$ac_func_search_save_LIBS
14565 fi
14566 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14567 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14568 if test "$ac_cv_search_opendir" != no; then
14569   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14570
14571 fi
14572
14573 else
14574   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14575 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14576 if test "${ac_cv_search_opendir+set}" = set; then
14577   echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579   ac_func_search_save_LIBS=$LIBS
14580 ac_cv_search_opendir=no
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h.  */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h.  */
14587
14588 /* Override any gcc2 internal prototype to avoid an error.  */
14589 #ifdef __cplusplus
14590 extern "C"
14591 #endif
14592 /* We use char because int might match the return type of a gcc2
14593    builtin and then its argument prototype would still apply.  */
14594 char opendir ();
14595 int
14596 main ()
14597 {
14598 opendir ();
14599   ;
14600   return 0;
14601 }
14602 _ACEOF
14603 rm -f conftest.$ac_objext conftest$ac_exeext
14604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14605   (eval $ac_link) 2>conftest.er1
14606   ac_status=$?
14607   grep -v '^ *+' conftest.er1 >conftest.err
14608   rm -f conftest.er1
14609   cat conftest.err >&5
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); } &&
14612          { ac_try='test -z "$ac_c_werror_flag"
14613                          || test ! -s conftest.err'
14614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615   (eval $ac_try) 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; } &&
14619          { ac_try='test -s conftest$ac_exeext'
14620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621   (eval $ac_try) 2>&5
14622   ac_status=$?
14623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   (exit $ac_status); }; }; then
14625   ac_cv_search_opendir="none required"
14626 else
14627   echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14629
14630 fi
14631 rm -f conftest.err conftest.$ac_objext \
14632       conftest$ac_exeext conftest.$ac_ext
14633 if test "$ac_cv_search_opendir" = no; then
14634   for ac_lib in x; do
14635     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14636     cat >conftest.$ac_ext <<_ACEOF
14637 /* confdefs.h.  */
14638 _ACEOF
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h.  */
14642
14643 /* Override any gcc2 internal prototype to avoid an error.  */
14644 #ifdef __cplusplus
14645 extern "C"
14646 #endif
14647 /* We use char because int might match the return type of a gcc2
14648    builtin and then its argument prototype would still apply.  */
14649 char opendir ();
14650 int
14651 main ()
14652 {
14653 opendir ();
14654   ;
14655   return 0;
14656 }
14657 _ACEOF
14658 rm -f conftest.$ac_objext conftest$ac_exeext
14659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14660   (eval $ac_link) 2>conftest.er1
14661   ac_status=$?
14662   grep -v '^ *+' conftest.er1 >conftest.err
14663   rm -f conftest.er1
14664   cat conftest.err >&5
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); } &&
14667          { ac_try='test -z "$ac_c_werror_flag"
14668                          || test ! -s conftest.err'
14669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670   (eval $ac_try) 2>&5
14671   ac_status=$?
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); }; } &&
14674          { ac_try='test -s conftest$ac_exeext'
14675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676   (eval $ac_try) 2>&5
14677   ac_status=$?
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); }; }; then
14680   ac_cv_search_opendir="-l$ac_lib"
14681 break
14682 else
14683   echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14685
14686 fi
14687 rm -f conftest.err conftest.$ac_objext \
14688       conftest$ac_exeext conftest.$ac_ext
14689   done
14690 fi
14691 LIBS=$ac_func_search_save_LIBS
14692 fi
14693 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14694 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14695 if test "$ac_cv_search_opendir" != no; then
14696   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14697
14698 fi
14699
14700 fi
14701
14702
14703
14704
14705
14706
14707
14708
14709 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14710 do
14711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14712 echo "$as_me:$LINENO: checking for $ac_func" >&5
14713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14714 if eval "test \"\${$as_ac_var+set}\" = set"; then
14715   echo $ECHO_N "(cached) $ECHO_C" >&6
14716 else
14717   cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h.  */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h.  */
14723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14725 #define $ac_func innocuous_$ac_func
14726
14727 /* System header to define __stub macros and hopefully few prototypes,
14728     which can conflict with char $ac_func (); below.
14729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14730     <limits.h> exists even on freestanding compilers.  */
14731
14732 #ifdef __STDC__
14733 # include <limits.h>
14734 #else
14735 # include <assert.h>
14736 #endif
14737
14738 #undef $ac_func
14739
14740 /* Override any gcc2 internal prototype to avoid an error.  */
14741 #ifdef __cplusplus
14742 extern "C"
14743 {
14744 #endif
14745 /* We use char because int might match the return type of a gcc2
14746    builtin and then its argument prototype would still apply.  */
14747 char $ac_func ();
14748 /* The GNU C library defines this for functions which it implements
14749     to always fail with ENOSYS.  Some functions are actually named
14750     something starting with __ and the normal name is an alias.  */
14751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14752 choke me
14753 #else
14754 char (*f) () = $ac_func;
14755 #endif
14756 #ifdef __cplusplus
14757 }
14758 #endif
14759
14760 int
14761 main ()
14762 {
14763 return f != $ac_func;
14764   ;
14765   return 0;
14766 }
14767 _ACEOF
14768 rm -f conftest.$ac_objext conftest$ac_exeext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14770   (eval $ac_link) 2>conftest.er1
14771   ac_status=$?
14772   grep -v '^ *+' conftest.er1 >conftest.err
14773   rm -f conftest.er1
14774   cat conftest.err >&5
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); } &&
14777          { ac_try='test -z "$ac_c_werror_flag"
14778                          || test ! -s conftest.err'
14779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780   (eval $ac_try) 2>&5
14781   ac_status=$?
14782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783   (exit $ac_status); }; } &&
14784          { ac_try='test -s conftest$ac_exeext'
14785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786   (eval $ac_try) 2>&5
14787   ac_status=$?
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); }; }; then
14790   eval "$as_ac_var=yes"
14791 else
14792   echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14794
14795 eval "$as_ac_var=no"
14796 fi
14797 rm -f conftest.err conftest.$ac_objext \
14798       conftest$ac_exeext conftest.$ac_ext
14799 fi
14800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14802 if test `eval echo '${'$as_ac_var'}'` = yes; then
14803   cat >>confdefs.h <<_ACEOF
14804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14805 _ACEOF
14806
14807 fi
14808 done
14809
14810
14811
14812 for ac_func in nanosleep nl_langinfo
14813 do
14814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14815 echo "$as_me:$LINENO: checking for $ac_func" >&5
14816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14817 if eval "test \"\${$as_ac_var+set}\" = set"; then
14818   echo $ECHO_N "(cached) $ECHO_C" >&6
14819 else
14820   cat >conftest.$ac_ext <<_ACEOF
14821 /* confdefs.h.  */
14822 _ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h.  */
14826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14828 #define $ac_func innocuous_$ac_func
14829
14830 /* System header to define __stub macros and hopefully few prototypes,
14831     which can conflict with char $ac_func (); below.
14832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14833     <limits.h> exists even on freestanding compilers.  */
14834
14835 #ifdef __STDC__
14836 # include <limits.h>
14837 #else
14838 # include <assert.h>
14839 #endif
14840
14841 #undef $ac_func
14842
14843 /* Override any gcc2 internal prototype to avoid an error.  */
14844 #ifdef __cplusplus
14845 extern "C"
14846 {
14847 #endif
14848 /* We use char because int might match the return type of a gcc2
14849    builtin and then its argument prototype would still apply.  */
14850 char $ac_func ();
14851 /* The GNU C library defines this for functions which it implements
14852     to always fail with ENOSYS.  Some functions are actually named
14853     something starting with __ and the normal name is an alias.  */
14854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14855 choke me
14856 #else
14857 char (*f) () = $ac_func;
14858 #endif
14859 #ifdef __cplusplus
14860 }
14861 #endif
14862
14863 int
14864 main ()
14865 {
14866 return f != $ac_func;
14867   ;
14868   return 0;
14869 }
14870 _ACEOF
14871 rm -f conftest.$ac_objext conftest$ac_exeext
14872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14873   (eval $ac_link) 2>conftest.er1
14874   ac_status=$?
14875   grep -v '^ *+' conftest.er1 >conftest.err
14876   rm -f conftest.er1
14877   cat conftest.err >&5
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); } &&
14880          { ac_try='test -z "$ac_c_werror_flag"
14881                          || test ! -s conftest.err'
14882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883   (eval $ac_try) 2>&5
14884   ac_status=$?
14885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886   (exit $ac_status); }; } &&
14887          { ac_try='test -s conftest$ac_exeext'
14888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889   (eval $ac_try) 2>&5
14890   ac_status=$?
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); }; }; then
14893   eval "$as_ac_var=yes"
14894 else
14895   echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14897
14898 eval "$as_ac_var=no"
14899 fi
14900 rm -f conftest.err conftest.$ac_objext \
14901       conftest$ac_exeext conftest.$ac_ext
14902 fi
14903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14905 if test `eval echo '${'$as_ac_var'}'` = yes; then
14906   cat >>confdefs.h <<_ACEOF
14907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14908 _ACEOF
14909
14910 fi
14911 done
14912
14913
14914 for ac_header in varargs.h
14915 do
14916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14918   echo "$as_me:$LINENO: checking for $ac_header" >&5
14919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14921   echo $ECHO_N "(cached) $ECHO_C" >&6
14922 fi
14923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14925 else
14926   # Is the header compilable?
14927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14929 cat >conftest.$ac_ext <<_ACEOF
14930 /* confdefs.h.  */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h.  */
14935 $ac_includes_default
14936 #include <$ac_header>
14937 _ACEOF
14938 rm -f conftest.$ac_objext
14939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14940   (eval $ac_compile) 2>conftest.er1
14941   ac_status=$?
14942   grep -v '^ *+' conftest.er1 >conftest.err
14943   rm -f conftest.er1
14944   cat conftest.err >&5
14945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946   (exit $ac_status); } &&
14947          { ac_try='test -z "$ac_c_werror_flag"
14948                          || test ! -s conftest.err'
14949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950   (eval $ac_try) 2>&5
14951   ac_status=$?
14952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953   (exit $ac_status); }; } &&
14954          { ac_try='test -s conftest.$ac_objext'
14955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956   (eval $ac_try) 2>&5
14957   ac_status=$?
14958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959   (exit $ac_status); }; }; then
14960   ac_header_compiler=yes
14961 else
14962   echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14964
14965 ac_header_compiler=no
14966 fi
14967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14969 echo "${ECHO_T}$ac_header_compiler" >&6
14970
14971 # Is the header present?
14972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14974 cat >conftest.$ac_ext <<_ACEOF
14975 /* confdefs.h.  */
14976 _ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h.  */
14980 #include <$ac_header>
14981 _ACEOF
14982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14983   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14984   ac_status=$?
14985   grep -v '^ *+' conftest.er1 >conftest.err
14986   rm -f conftest.er1
14987   cat conftest.err >&5
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); } >/dev/null; then
14990   if test -s conftest.err; then
14991     ac_cpp_err=$ac_c_preproc_warn_flag
14992     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14993   else
14994     ac_cpp_err=
14995   fi
14996 else
14997   ac_cpp_err=yes
14998 fi
14999 if test -z "$ac_cpp_err"; then
15000   ac_header_preproc=yes
15001 else
15002   echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15004
15005   ac_header_preproc=no
15006 fi
15007 rm -f conftest.err conftest.$ac_ext
15008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15009 echo "${ECHO_T}$ac_header_preproc" >&6
15010
15011 # So?  What about this header?
15012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15013   yes:no: )
15014     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15018     ac_header_preproc=yes
15019     ;;
15020   no:yes:* )
15021     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15023     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15024 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15025     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15027     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15028 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15031     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15033     (
15034       cat <<\_ASBOX
15035 ## ------------------------------------------ ##
15036 ## Report this to the AC_PACKAGE_NAME lists.  ##
15037 ## ------------------------------------------ ##
15038 _ASBOX
15039     ) |
15040       sed "s/^/$as_me: WARNING:     /" >&2
15041     ;;
15042 esac
15043 echo "$as_me:$LINENO: checking for $ac_header" >&5
15044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15046   echo $ECHO_N "(cached) $ECHO_C" >&6
15047 else
15048   eval "$as_ac_Header=\$ac_header_preproc"
15049 fi
15050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15052
15053 fi
15054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15055   cat >>confdefs.h <<_ACEOF
15056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15057 _ACEOF
15058
15059 fi
15060
15061 done
15062
15063
15064 # End of readline/conio stuff
15065 # -----------------------------------------------------------------------
15066
15067 # -----------------------------------------------------------------------
15068 #  Check for Python support
15069 #
15070 echo "$as_me:$LINENO: checking for Python support" >&5
15071 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
15072
15073 # Check whether --with-python or --without-python was given.
15074 if test "${with_python+set}" = set; then
15075   withval="$with_python"
15076
15077   PYTHON_INCDIR=
15078   PYTHON_LIBS=
15079   if test "$withval" != "no"; then
15080      if test "$withval" = "yes"; then
15081         for python_root in /usr /usr/local /usr/sfw; do
15082           for ver in python2.2 python2.3 python2.4 python2.5; do
15083              if test -f $python_root/include/${ver}/Python.h; then
15084                 PYTHON_INCDIR=-I$python_root/include/${ver}
15085                 if test -d $python_root/lib64/${ver}/config; then
15086                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15087                 else
15088                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15089                 fi
15090                 break
15091              fi
15092           done
15093         done
15094         if test x$PYTHON_INCDIR = x; then
15095           if test -f $prefix/include/Python.h; then
15096              PYTHON_INCDIR=-I$prefix/include
15097              if test -d $prefix/lib64/config; then
15098                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15099              else
15100                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15101              fi
15102           else
15103            echo "$as_me:$LINENO: result: no" >&5
15104 echo "${ECHO_T}no" >&6
15105            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15106 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15107    { (exit 1); exit 1; }; }
15108           fi
15109         fi
15110      else
15111         if test -f $withval/Python.h; then
15112            PYTHON_INCDIR=-I$withval
15113            PYTHON_LIBS="-L$withval/config -lpython"
15114         elif test -f $withval/include/Python.h; then
15115            PYTHON_INCDIR=-I$withval/include
15116            if test -d $withval/lib64/config; then
15117               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15118            else
15119               PYTHON_LIBS="-L$withval/lib/config -lpython"
15120            fi
15121         elif test -f $withval/include/python/Python.h; then
15122            PYTHON_INCDIR=-I$withval/include/python
15123            if test -d $withval/lib64/python/config; then
15124               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15125            else
15126               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15127            fi
15128         else
15129            echo "$as_me:$LINENO: result: no" >&5
15130 echo "${ECHO_T}no" >&6
15131            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15132 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15133    { (exit 1); exit 1; }; }
15134         fi
15135      fi
15136      cat >>confdefs.h <<\_ACEOF
15137 #define HAVE_PYTHON 1
15138 _ACEOF
15139
15140      echo "$as_me:$LINENO: result: yes" >&5
15141 echo "${ECHO_T}yes" >&6
15142      support_python=yes
15143      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15144 echo "$as_me: checking for more Python libs" >&6;}
15145      saved_LIBS="$LIBS"; LIBS=
15146      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15147 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15148 if test "${ac_cv_search_shm_open+set}" = set; then
15149   echo $ECHO_N "(cached) $ECHO_C" >&6
15150 else
15151   ac_func_search_save_LIBS=$LIBS
15152 ac_cv_search_shm_open=no
15153 cat >conftest.$ac_ext <<_ACEOF
15154 /* confdefs.h.  */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h.  */
15159
15160 /* Override any gcc2 internal prototype to avoid an error.  */
15161 #ifdef __cplusplus
15162 extern "C"
15163 #endif
15164 /* We use char because int might match the return type of a gcc2
15165    builtin and then its argument prototype would still apply.  */
15166 char shm_open ();
15167 int
15168 main ()
15169 {
15170 shm_open ();
15171   ;
15172   return 0;
15173 }
15174 _ACEOF
15175 rm -f conftest.$ac_objext conftest$ac_exeext
15176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15177   (eval $ac_link) 2>conftest.er1
15178   ac_status=$?
15179   grep -v '^ *+' conftest.er1 >conftest.err
15180   rm -f conftest.er1
15181   cat conftest.err >&5
15182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); } &&
15184          { ac_try='test -z "$ac_c_werror_flag"
15185                          || test ! -s conftest.err'
15186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187   (eval $ac_try) 2>&5
15188   ac_status=$?
15189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190   (exit $ac_status); }; } &&
15191          { ac_try='test -s conftest$ac_exeext'
15192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193   (eval $ac_try) 2>&5
15194   ac_status=$?
15195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196   (exit $ac_status); }; }; then
15197   ac_cv_search_shm_open="none required"
15198 else
15199   echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15201
15202 fi
15203 rm -f conftest.err conftest.$ac_objext \
15204       conftest$ac_exeext conftest.$ac_ext
15205 if test "$ac_cv_search_shm_open" = no; then
15206   for ac_lib in rt; do
15207     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15208     cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h.  */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h.  */
15214
15215 /* Override any gcc2 internal prototype to avoid an error.  */
15216 #ifdef __cplusplus
15217 extern "C"
15218 #endif
15219 /* We use char because int might match the return type of a gcc2
15220    builtin and then its argument prototype would still apply.  */
15221 char shm_open ();
15222 int
15223 main ()
15224 {
15225 shm_open ();
15226   ;
15227   return 0;
15228 }
15229 _ACEOF
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15232   (eval $ac_link) 2>conftest.er1
15233   ac_status=$?
15234   grep -v '^ *+' conftest.er1 >conftest.err
15235   rm -f conftest.er1
15236   cat conftest.err >&5
15237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238   (exit $ac_status); } &&
15239          { ac_try='test -z "$ac_c_werror_flag"
15240                          || test ! -s conftest.err'
15241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242   (eval $ac_try) 2>&5
15243   ac_status=$?
15244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245   (exit $ac_status); }; } &&
15246          { ac_try='test -s conftest$ac_exeext'
15247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248   (eval $ac_try) 2>&5
15249   ac_status=$?
15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   (exit $ac_status); }; }; then
15252   ac_cv_search_shm_open="-l$ac_lib"
15253 break
15254 else
15255   echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15257
15258 fi
15259 rm -f conftest.err conftest.$ac_objext \
15260       conftest$ac_exeext conftest.$ac_ext
15261   done
15262 fi
15263 LIBS=$ac_func_search_save_LIBS
15264 fi
15265 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15266 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15267 if test "$ac_cv_search_shm_open" != no; then
15268   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15269
15270 fi
15271
15272
15273 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15274 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15275 if test "${ac_cv_lib_util_openpty+set}" = set; then
15276   echo $ECHO_N "(cached) $ECHO_C" >&6
15277 else
15278   ac_check_lib_save_LIBS=$LIBS
15279 LIBS="-lutil  $LIBS"
15280 cat >conftest.$ac_ext <<_ACEOF
15281 /* confdefs.h.  */
15282 _ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h.  */
15286
15287 /* Override any gcc2 internal prototype to avoid an error.  */
15288 #ifdef __cplusplus
15289 extern "C"
15290 #endif
15291 /* We use char because int might match the return type of a gcc2
15292    builtin and then its argument prototype would still apply.  */
15293 char openpty ();
15294 int
15295 main ()
15296 {
15297 openpty ();
15298   ;
15299   return 0;
15300 }
15301 _ACEOF
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15304   (eval $ac_link) 2>conftest.er1
15305   ac_status=$?
15306   grep -v '^ *+' conftest.er1 >conftest.err
15307   rm -f conftest.er1
15308   cat conftest.err >&5
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); } &&
15311          { ac_try='test -z "$ac_c_werror_flag"
15312                          || test ! -s conftest.err'
15313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314   (eval $ac_try) 2>&5
15315   ac_status=$?
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); }; } &&
15318          { ac_try='test -s conftest$ac_exeext'
15319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320   (eval $ac_try) 2>&5
15321   ac_status=$?
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); }; }; then
15324   ac_cv_lib_util_openpty=yes
15325 else
15326   echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15328
15329 ac_cv_lib_util_openpty=no
15330 fi
15331 rm -f conftest.err conftest.$ac_objext \
15332       conftest$ac_exeext conftest.$ac_ext
15333 LIBS=$ac_check_lib_save_LIBS
15334 fi
15335 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15336 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15337 if test $ac_cv_lib_util_openpty = yes; then
15338   cat >>confdefs.h <<_ACEOF
15339 #define HAVE_LIBUTIL 1
15340 _ACEOF
15341
15342   LIBS="-lutil $LIBS"
15343
15344 fi
15345
15346      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15347      LIBS="$saved_LIBS"
15348   else
15349      echo "$as_me:$LINENO: result: no" >&5
15350 echo "${ECHO_T}no" >&6
15351   fi
15352
15353 else
15354
15355   echo "$as_me:$LINENO: result: no" >&5
15356 echo "${ECHO_T}no" >&6
15357
15358 fi;
15359
15360
15361
15362 #
15363 # Find where sockets are (especially for Solaris)
15364 # Do this before the TCP Wrappers test since tcp wrappers
15365 # uses the socket library and some linkers are stupid.
15366 #
15367 echo "$as_me:$LINENO: checking for socket" >&5
15368 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15369 if test "${ac_cv_func_socket+set}" = set; then
15370   echo $ECHO_N "(cached) $ECHO_C" >&6
15371 else
15372   cat >conftest.$ac_ext <<_ACEOF
15373 /* confdefs.h.  */
15374 _ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h.  */
15378 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15380 #define socket innocuous_socket
15381
15382 /* System header to define __stub macros and hopefully few prototypes,
15383     which can conflict with char socket (); below.
15384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15385     <limits.h> exists even on freestanding compilers.  */
15386
15387 #ifdef __STDC__
15388 # include <limits.h>
15389 #else
15390 # include <assert.h>
15391 #endif
15392
15393 #undef socket
15394
15395 /* Override any gcc2 internal prototype to avoid an error.  */
15396 #ifdef __cplusplus
15397 extern "C"
15398 {
15399 #endif
15400 /* We use char because int might match the return type of a gcc2
15401    builtin and then its argument prototype would still apply.  */
15402 char socket ();
15403 /* The GNU C library defines this for functions which it implements
15404     to always fail with ENOSYS.  Some functions are actually named
15405     something starting with __ and the normal name is an alias.  */
15406 #if defined (__stub_socket) || defined (__stub___socket)
15407 choke me
15408 #else
15409 char (*f) () = socket;
15410 #endif
15411 #ifdef __cplusplus
15412 }
15413 #endif
15414
15415 int
15416 main ()
15417 {
15418 return f != socket;
15419   ;
15420   return 0;
15421 }
15422 _ACEOF
15423 rm -f conftest.$ac_objext conftest$ac_exeext
15424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15425   (eval $ac_link) 2>conftest.er1
15426   ac_status=$?
15427   grep -v '^ *+' conftest.er1 >conftest.err
15428   rm -f conftest.er1
15429   cat conftest.err >&5
15430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431   (exit $ac_status); } &&
15432          { ac_try='test -z "$ac_c_werror_flag"
15433                          || test ! -s conftest.err'
15434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435   (eval $ac_try) 2>&5
15436   ac_status=$?
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); }; } &&
15439          { ac_try='test -s conftest$ac_exeext'
15440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441   (eval $ac_try) 2>&5
15442   ac_status=$?
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); }; }; then
15445   ac_cv_func_socket=yes
15446 else
15447   echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15449
15450 ac_cv_func_socket=no
15451 fi
15452 rm -f conftest.err conftest.$ac_objext \
15453       conftest$ac_exeext conftest.$ac_ext
15454 fi
15455 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15456 echo "${ECHO_T}$ac_cv_func_socket" >&6
15457 if test $ac_cv_func_socket = yes; then
15458   echo "$as_me:$LINENO: result: using libc's socket" >&5
15459 echo "${ECHO_T}using libc's socket" >&6
15460 else
15461
15462 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15463 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15464 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15465   echo $ECHO_N "(cached) $ECHO_C" >&6
15466 else
15467   ac_check_lib_save_LIBS=$LIBS
15468 LIBS="-lxnet  $LIBS"
15469 cat >conftest.$ac_ext <<_ACEOF
15470 /* confdefs.h.  */
15471 _ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h.  */
15475
15476 /* Override any gcc2 internal prototype to avoid an error.  */
15477 #ifdef __cplusplus
15478 extern "C"
15479 #endif
15480 /* We use char because int might match the return type of a gcc2
15481    builtin and then its argument prototype would still apply.  */
15482 char socket ();
15483 int
15484 main ()
15485 {
15486 socket ();
15487   ;
15488   return 0;
15489 }
15490 _ACEOF
15491 rm -f conftest.$ac_objext conftest$ac_exeext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493   (eval $ac_link) 2>conftest.er1
15494   ac_status=$?
15495   grep -v '^ *+' conftest.er1 >conftest.err
15496   rm -f conftest.er1
15497   cat conftest.err >&5
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); } &&
15500          { ac_try='test -z "$ac_c_werror_flag"
15501                          || test ! -s conftest.err'
15502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503   (eval $ac_try) 2>&5
15504   ac_status=$?
15505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506   (exit $ac_status); }; } &&
15507          { ac_try='test -s conftest$ac_exeext'
15508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509   (eval $ac_try) 2>&5
15510   ac_status=$?
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); }; }; then
15513   ac_cv_lib_xnet_socket=yes
15514 else
15515   echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15517
15518 ac_cv_lib_xnet_socket=no
15519 fi
15520 rm -f conftest.err conftest.$ac_objext \
15521       conftest$ac_exeext conftest.$ac_ext
15522 LIBS=$ac_check_lib_save_LIBS
15523 fi
15524 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15525 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15526 if test $ac_cv_lib_xnet_socket = yes; then
15527   cat >>confdefs.h <<_ACEOF
15528 #define HAVE_LIBXNET 1
15529 _ACEOF
15530
15531   LIBS="-lxnet $LIBS"
15532
15533 fi
15534
15535
15536 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15537 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15538 if test "${ac_cv_lib_socket_socket+set}" = set; then
15539   echo $ECHO_N "(cached) $ECHO_C" >&6
15540 else
15541   ac_check_lib_save_LIBS=$LIBS
15542 LIBS="-lsocket  $LIBS"
15543 cat >conftest.$ac_ext <<_ACEOF
15544 /* confdefs.h.  */
15545 _ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h.  */
15549
15550 /* Override any gcc2 internal prototype to avoid an error.  */
15551 #ifdef __cplusplus
15552 extern "C"
15553 #endif
15554 /* We use char because int might match the return type of a gcc2
15555    builtin and then its argument prototype would still apply.  */
15556 char socket ();
15557 int
15558 main ()
15559 {
15560 socket ();
15561   ;
15562   return 0;
15563 }
15564 _ACEOF
15565 rm -f conftest.$ac_objext conftest$ac_exeext
15566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15567   (eval $ac_link) 2>conftest.er1
15568   ac_status=$?
15569   grep -v '^ *+' conftest.er1 >conftest.err
15570   rm -f conftest.er1
15571   cat conftest.err >&5
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); } &&
15574          { ac_try='test -z "$ac_c_werror_flag"
15575                          || test ! -s conftest.err'
15576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577   (eval $ac_try) 2>&5
15578   ac_status=$?
15579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); }; } &&
15581          { ac_try='test -s conftest$ac_exeext'
15582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15583   (eval $ac_try) 2>&5
15584   ac_status=$?
15585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586   (exit $ac_status); }; }; then
15587   ac_cv_lib_socket_socket=yes
15588 else
15589   echo "$as_me: failed program was:" >&5
15590 sed 's/^/| /' conftest.$ac_ext >&5
15591
15592 ac_cv_lib_socket_socket=no
15593 fi
15594 rm -f conftest.err conftest.$ac_objext \
15595       conftest$ac_exeext conftest.$ac_ext
15596 LIBS=$ac_check_lib_save_LIBS
15597 fi
15598 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15599 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15600 if test $ac_cv_lib_socket_socket = yes; then
15601   cat >>confdefs.h <<_ACEOF
15602 #define HAVE_LIBSOCKET 1
15603 _ACEOF
15604
15605   LIBS="-lsocket $LIBS"
15606
15607 fi
15608
15609
15610 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15611 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15612 if test "${ac_cv_lib_inet_socket+set}" = set; then
15613   echo $ECHO_N "(cached) $ECHO_C" >&6
15614 else
15615   ac_check_lib_save_LIBS=$LIBS
15616 LIBS="-linet  $LIBS"
15617 cat >conftest.$ac_ext <<_ACEOF
15618 /* confdefs.h.  */
15619 _ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h.  */
15623
15624 /* Override any gcc2 internal prototype to avoid an error.  */
15625 #ifdef __cplusplus
15626 extern "C"
15627 #endif
15628 /* We use char because int might match the return type of a gcc2
15629    builtin and then its argument prototype would still apply.  */
15630 char socket ();
15631 int
15632 main ()
15633 {
15634 socket ();
15635   ;
15636   return 0;
15637 }
15638 _ACEOF
15639 rm -f conftest.$ac_objext conftest$ac_exeext
15640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15641   (eval $ac_link) 2>conftest.er1
15642   ac_status=$?
15643   grep -v '^ *+' conftest.er1 >conftest.err
15644   rm -f conftest.er1
15645   cat conftest.err >&5
15646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647   (exit $ac_status); } &&
15648          { ac_try='test -z "$ac_c_werror_flag"
15649                          || test ! -s conftest.err'
15650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651   (eval $ac_try) 2>&5
15652   ac_status=$?
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); }; } &&
15655          { ac_try='test -s conftest$ac_exeext'
15656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657   (eval $ac_try) 2>&5
15658   ac_status=$?
15659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660   (exit $ac_status); }; }; then
15661   ac_cv_lib_inet_socket=yes
15662 else
15663   echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15665
15666 ac_cv_lib_inet_socket=no
15667 fi
15668 rm -f conftest.err conftest.$ac_objext \
15669       conftest$ac_exeext conftest.$ac_ext
15670 LIBS=$ac_check_lib_save_LIBS
15671 fi
15672 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15673 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15674 if test $ac_cv_lib_inet_socket = yes; then
15675   cat >>confdefs.h <<_ACEOF
15676 #define HAVE_LIBINET 1
15677 _ACEOF
15678
15679   LIBS="-linet $LIBS"
15680
15681 fi
15682
15683 fi
15684
15685
15686
15687 # -----------------------------------------------------------
15688 # Check whether user wants TCP wrappers support (default off)
15689 # -----------------------------------------------------------
15690 TCPW_MSG="no"
15691 WRAPLIBS=""
15692
15693 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15694 if test "${with_tcp_wrappers+set}" = set; then
15695   withval="$with_tcp_wrappers"
15696
15697     if test "x$withval" != "xno" ; then
15698        saved_LIBS="$LIBS"
15699        LIBS="$saved_LIBS -lwrap"
15700        echo "$as_me:$LINENO: checking for libwrap" >&5
15701 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15702        echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15703 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15704 if test "${ac_cv_search_nanosleep+set}" = set; then
15705   echo $ECHO_N "(cached) $ECHO_C" >&6
15706 else
15707   ac_func_search_save_LIBS=$LIBS
15708 ac_cv_search_nanosleep=no
15709 cat >conftest.$ac_ext <<_ACEOF
15710 /* confdefs.h.  */
15711 _ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h.  */
15715
15716 /* Override any gcc2 internal prototype to avoid an error.  */
15717 #ifdef __cplusplus
15718 extern "C"
15719 #endif
15720 /* We use char because int might match the return type of a gcc2
15721    builtin and then its argument prototype would still apply.  */
15722 char nanosleep ();
15723 int
15724 main ()
15725 {
15726 nanosleep ();
15727   ;
15728   return 0;
15729 }
15730 _ACEOF
15731 rm -f conftest.$ac_objext conftest$ac_exeext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15733   (eval $ac_link) 2>conftest.er1
15734   ac_status=$?
15735   grep -v '^ *+' conftest.er1 >conftest.err
15736   rm -f conftest.er1
15737   cat conftest.err >&5
15738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739   (exit $ac_status); } &&
15740          { ac_try='test -z "$ac_c_werror_flag"
15741                          || test ! -s conftest.err'
15742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743   (eval $ac_try) 2>&5
15744   ac_status=$?
15745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746   (exit $ac_status); }; } &&
15747          { ac_try='test -s conftest$ac_exeext'
15748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749   (eval $ac_try) 2>&5
15750   ac_status=$?
15751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752   (exit $ac_status); }; }; then
15753   ac_cv_search_nanosleep="none required"
15754 else
15755   echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15757
15758 fi
15759 rm -f conftest.err conftest.$ac_objext \
15760       conftest$ac_exeext conftest.$ac_ext
15761 if test "$ac_cv_search_nanosleep" = no; then
15762   for ac_lib in rt; do
15763     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15764     cat >conftest.$ac_ext <<_ACEOF
15765 /* confdefs.h.  */
15766 _ACEOF
15767 cat confdefs.h >>conftest.$ac_ext
15768 cat >>conftest.$ac_ext <<_ACEOF
15769 /* end confdefs.h.  */
15770
15771 /* Override any gcc2 internal prototype to avoid an error.  */
15772 #ifdef __cplusplus
15773 extern "C"
15774 #endif
15775 /* We use char because int might match the return type of a gcc2
15776    builtin and then its argument prototype would still apply.  */
15777 char nanosleep ();
15778 int
15779 main ()
15780 {
15781 nanosleep ();
15782   ;
15783   return 0;
15784 }
15785 _ACEOF
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15788   (eval $ac_link) 2>conftest.er1
15789   ac_status=$?
15790   grep -v '^ *+' conftest.er1 >conftest.err
15791   rm -f conftest.er1
15792   cat conftest.err >&5
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); } &&
15795          { ac_try='test -z "$ac_c_werror_flag"
15796                          || test ! -s conftest.err'
15797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798   (eval $ac_try) 2>&5
15799   ac_status=$?
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); }; } &&
15802          { ac_try='test -s conftest$ac_exeext'
15803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804   (eval $ac_try) 2>&5
15805   ac_status=$?
15806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807   (exit $ac_status); }; }; then
15808   ac_cv_search_nanosleep="-l$ac_lib"
15809 break
15810 else
15811   echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15813
15814 fi
15815 rm -f conftest.err conftest.$ac_objext \
15816       conftest$ac_exeext conftest.$ac_ext
15817   done
15818 fi
15819 LIBS=$ac_func_search_save_LIBS
15820 fi
15821 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15822 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15823 if test "$ac_cv_search_nanosleep" != no; then
15824   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15825
15826 fi
15827
15828        cat >conftest.$ac_ext <<_ACEOF
15829 /* confdefs.h.  */
15830 _ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h.  */
15834  #include <sys/types.h>
15835             #include <tcpd.h>
15836              int deny_severity = 0;
15837              int allow_severity = 0;
15838              struct request_info *req;
15839 int
15840 main ()
15841 {
15842  hosts_access(req);
15843   ;
15844   return 0;
15845 }
15846 _ACEOF
15847 rm -f conftest.$ac_objext conftest$ac_exeext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15849   (eval $ac_link) 2>conftest.er1
15850   ac_status=$?
15851   grep -v '^ *+' conftest.er1 >conftest.err
15852   rm -f conftest.er1
15853   cat conftest.err >&5
15854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855   (exit $ac_status); } &&
15856          { ac_try='test -z "$ac_c_werror_flag"
15857                          || test ! -s conftest.err'
15858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859   (eval $ac_try) 2>&5
15860   ac_status=$?
15861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862   (exit $ac_status); }; } &&
15863          { ac_try='test -s conftest$ac_exeext'
15864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865   (eval $ac_try) 2>&5
15866   ac_status=$?
15867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868   (exit $ac_status); }; }; then
15869
15870             echo "$as_me:$LINENO: result: yes" >&5
15871 echo "${ECHO_T}yes" >&6
15872
15873 cat >>confdefs.h <<\_ACEOF
15874 #define HAVE_LIBWRAP 1
15875 _ACEOF
15876
15877             TCPW_MSG="yes"
15878             LIBS="$saved_LIBS"
15879             WRAPLIBS="-lwrap"
15880
15881 else
15882   echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15884
15885
15886             LIBS="$saved_LIBS -lwrap -lnsl"
15887             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15888             cat >conftest.$ac_ext <<_ACEOF
15889 /* confdefs.h.  */
15890 _ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h.  */
15894  #include <sys/types.h>
15895                  #include <tcpd.h>
15896                  int deny_severity = 0;
15897                  int allow_severity = 0;
15898                  struct request_info *req;
15899 int
15900 main ()
15901 {
15902  hosts_access(req);
15903   ;
15904   return 0;
15905 }
15906 _ACEOF
15907 rm -f conftest.$ac_objext conftest$ac_exeext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15909   (eval $ac_link) 2>conftest.er1
15910   ac_status=$?
15911   grep -v '^ *+' conftest.er1 >conftest.err
15912   rm -f conftest.er1
15913   cat conftest.err >&5
15914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915   (exit $ac_status); } &&
15916          { ac_try='test -z "$ac_c_werror_flag"
15917                          || test ! -s conftest.err'
15918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919   (eval $ac_try) 2>&5
15920   ac_status=$?
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); }; } &&
15923          { ac_try='test -s conftest$ac_exeext'
15924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925   (eval $ac_try) 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); }; }; then
15929
15930                  echo "$as_me:$LINENO: result: yes" >&5
15931 echo "${ECHO_T}yes" >&6
15932
15933 cat >>confdefs.h <<\_ACEOF
15934 #define HAVE_LIBWRAP 1
15935 _ACEOF
15936
15937                  TCPW_MSG="yes"
15938                  LIBS="$saved_LIBS"
15939                  WRAPLIBS="-lwrap"
15940
15941 else
15942   echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15944
15945 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15946 echo "$as_me: error: *** libwrap missing" >&2;}
15947    { (exit 1); exit 1; }; }
15948
15949 fi
15950 rm -f conftest.err conftest.$ac_objext \
15951       conftest$ac_exeext conftest.$ac_ext
15952
15953 fi
15954 rm -f conftest.err conftest.$ac_objext \
15955       conftest$ac_exeext conftest.$ac_ext
15956     fi
15957
15958
15959 fi;
15960
15961 # -----------------------------------------------------------
15962 # Check whether OpenSSL is available
15963 # -----------------------------------------------------------
15964 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15965 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15966
15967 # Check whether --with-openssl or --without-openssl was given.
15968 if test "${with_openssl+set}" = set; then
15969   withval="$with_openssl"
15970   with_openssl_directory=${withval}
15971 fi;
15972
15973 if test "x$with_openssl_directory" != "x"; then
15974         OPENSSL_LIBS="-lssl -lcrypto"
15975         OPENSSL_INC=""
15976
15977         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15978                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15979                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15980         fi
15981
15982         saved_LIBS="${LIBS}"
15983         saved_CFLAGS="${CFLAGS}"
15984         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
15985         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
15986
15987         cat >conftest.$ac_ext <<_ACEOF
15988 /* confdefs.h.  */
15989 _ACEOF
15990 cat confdefs.h >>conftest.$ac_ext
15991 cat >>conftest.$ac_ext <<_ACEOF
15992 /* end confdefs.h.  */
15993  #include <openssl/ssl.h>
15994 int
15995 main ()
15996 {
15997  CRYPTO_set_id_callback(NULL);
15998   ;
15999   return 0;
16000 }
16001 _ACEOF
16002 rm -f conftest.$ac_objext conftest$ac_exeext
16003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16004   (eval $ac_link) 2>conftest.er1
16005   ac_status=$?
16006   grep -v '^ *+' conftest.er1 >conftest.err
16007   rm -f conftest.er1
16008   cat conftest.err >&5
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); } &&
16011          { ac_try='test -z "$ac_c_werror_flag"
16012                          || test ! -s conftest.err'
16013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014   (eval $ac_try) 2>&5
16015   ac_status=$?
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); }; } &&
16018          { ac_try='test -s conftest$ac_exeext'
16019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020   (eval $ac_try) 2>&5
16021   ac_status=$?
16022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023   (exit $ac_status); }; }; then
16024
16025                         support_tls="yes"
16026                         support_crypto="yes"
16027
16028 else
16029   echo "$as_me: failed program was:" >&5
16030 sed 's/^/| /' conftest.$ac_ext >&5
16031
16032  support_tls="no"
16033
16034 fi
16035 rm -f conftest.err conftest.$ac_objext \
16036       conftest$ac_exeext conftest.$ac_ext
16037
16038         cat >conftest.$ac_ext <<_ACEOF
16039 /* confdefs.h.  */
16040 _ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h.  */
16044  #include <openssl/evp.h>
16045 int
16046 main ()
16047 {
16048  EVP_sha512();
16049   ;
16050   return 0;
16051 }
16052 _ACEOF
16053 rm -f conftest.$ac_objext conftest$ac_exeext
16054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16055   (eval $ac_link) 2>conftest.er1
16056   ac_status=$?
16057   grep -v '^ *+' conftest.er1 >conftest.err
16058   rm -f conftest.er1
16059   cat conftest.err >&5
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   (exit $ac_status); } &&
16062          { ac_try='test -z "$ac_c_werror_flag"
16063                          || test ! -s conftest.err'
16064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065   (eval $ac_try) 2>&5
16066   ac_status=$?
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); }; } &&
16069          { ac_try='test -s conftest$ac_exeext'
16070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071   (eval $ac_try) 2>&5
16072   ac_status=$?
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); }; }; then
16075    ac_cv_openssl_sha2="yes"
16076 else
16077   echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16079
16080  ac_cv_openssl_sha2="no"
16081
16082 fi
16083 rm -f conftest.err conftest.$ac_objext \
16084       conftest$ac_exeext conftest.$ac_ext
16085
16086         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16087         # implementation, presumably for export reasons. If 192bit AES
16088         # is available, we assume that we're running with a 'non-export'
16089         # openssl library.
16090         cat >conftest.$ac_ext <<_ACEOF
16091 /* confdefs.h.  */
16092 _ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h.  */
16096  #include <openssl/evp.h>
16097 int
16098 main ()
16099 {
16100  EVP_aes_192_cbc();
16101   ;
16102   return 0;
16103 }
16104 _ACEOF
16105 rm -f conftest.$ac_objext conftest$ac_exeext
16106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16107   (eval $ac_link) 2>conftest.er1
16108   ac_status=$?
16109   grep -v '^ *+' conftest.er1 >conftest.err
16110   rm -f conftest.er1
16111   cat conftest.err >&5
16112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113   (exit $ac_status); } &&
16114          { ac_try='test -z "$ac_c_werror_flag"
16115                          || test ! -s conftest.err'
16116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117   (eval $ac_try) 2>&5
16118   ac_status=$?
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); }; } &&
16121          { ac_try='test -s conftest$ac_exeext'
16122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123   (eval $ac_try) 2>&5
16124   ac_status=$?
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); }; }; then
16127    ac_cv_openssl_export="no"
16128 else
16129   echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16131
16132  ac_cv_openssl_export="yes"
16133
16134 fi
16135 rm -f conftest.err conftest.$ac_objext \
16136       conftest$ac_exeext conftest.$ac_ext
16137
16138         LIBS="${saved_LIBS}"
16139         CFLAGS="${saved_CFLAGS}"
16140
16141         if test "$support_tls" = "yes"; then
16142
16143 cat >>confdefs.h <<\_ACEOF
16144 #define HAVE_OPENSSL 1
16145 _ACEOF
16146
16147
16148 cat >>confdefs.h <<\_ACEOF
16149 #define HAVE_TLS 1
16150 _ACEOF
16151
16152
16153 cat >>confdefs.h <<\_ACEOF
16154 #define HAVE_CRYPTO 1
16155 _ACEOF
16156
16157         fi
16158
16159         if test "$ac_cv_openssl_sha2" = "yes"; then
16160
16161 cat >>confdefs.h <<\_ACEOF
16162 #define HAVE_SHA2 1
16163 _ACEOF
16164
16165         fi
16166
16167         if test "$ac_cv_openssl_export" = "yes"; then
16168
16169 cat >>confdefs.h <<\_ACEOF
16170 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16171 _ACEOF
16172
16173         fi
16174 else
16175         support_tls="no"
16176         support_crypto="no"
16177         OPENSSL_LIBS=""
16178         OPENSSL_INC=""
16179 fi
16180
16181 echo "$as_me:$LINENO: result: $support_tls" >&5
16182 echo "${ECHO_T}$support_tls" >&6
16183
16184
16185
16186
16187 # -----------------------------------------------------------
16188 # Python and OpenSSL are using dlopen
16189 # -----------------------------------------------------------
16190
16191 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16192    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16193 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16194 if test "${ac_cv_search_dlopen+set}" = set; then
16195   echo $ECHO_N "(cached) $ECHO_C" >&6
16196 else
16197   ac_func_search_save_LIBS=$LIBS
16198 ac_cv_search_dlopen=no
16199 cat >conftest.$ac_ext <<_ACEOF
16200 /* confdefs.h.  */
16201 _ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h.  */
16205
16206 /* Override any gcc2 internal prototype to avoid an error.  */
16207 #ifdef __cplusplus
16208 extern "C"
16209 #endif
16210 /* We use char because int might match the return type of a gcc2
16211    builtin and then its argument prototype would still apply.  */
16212 char dlopen ();
16213 int
16214 main ()
16215 {
16216 dlopen ();
16217   ;
16218   return 0;
16219 }
16220 _ACEOF
16221 rm -f conftest.$ac_objext conftest$ac_exeext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16223   (eval $ac_link) 2>conftest.er1
16224   ac_status=$?
16225   grep -v '^ *+' conftest.er1 >conftest.err
16226   rm -f conftest.er1
16227   cat conftest.err >&5
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); } &&
16230          { ac_try='test -z "$ac_c_werror_flag"
16231                          || test ! -s conftest.err'
16232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233   (eval $ac_try) 2>&5
16234   ac_status=$?
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); }; } &&
16237          { ac_try='test -s conftest$ac_exeext'
16238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239   (eval $ac_try) 2>&5
16240   ac_status=$?
16241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); }; }; then
16243   ac_cv_search_dlopen="none required"
16244 else
16245   echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16247
16248 fi
16249 rm -f conftest.err conftest.$ac_objext \
16250       conftest$ac_exeext conftest.$ac_ext
16251 if test "$ac_cv_search_dlopen" = no; then
16252   for ac_lib in dl; do
16253     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16254     cat >conftest.$ac_ext <<_ACEOF
16255 /* confdefs.h.  */
16256 _ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h.  */
16260
16261 /* Override any gcc2 internal prototype to avoid an error.  */
16262 #ifdef __cplusplus
16263 extern "C"
16264 #endif
16265 /* We use char because int might match the return type of a gcc2
16266    builtin and then its argument prototype would still apply.  */
16267 char dlopen ();
16268 int
16269 main ()
16270 {
16271 dlopen ();
16272   ;
16273   return 0;
16274 }
16275 _ACEOF
16276 rm -f conftest.$ac_objext conftest$ac_exeext
16277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16278   (eval $ac_link) 2>conftest.er1
16279   ac_status=$?
16280   grep -v '^ *+' conftest.er1 >conftest.err
16281   rm -f conftest.er1
16282   cat conftest.err >&5
16283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284   (exit $ac_status); } &&
16285          { ac_try='test -z "$ac_c_werror_flag"
16286                          || test ! -s conftest.err'
16287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288   (eval $ac_try) 2>&5
16289   ac_status=$?
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); }; } &&
16292          { ac_try='test -s conftest$ac_exeext'
16293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294   (eval $ac_try) 2>&5
16295   ac_status=$?
16296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297   (exit $ac_status); }; }; then
16298   ac_cv_search_dlopen="-l$ac_lib"
16299 break
16300 else
16301   echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16303
16304 fi
16305 rm -f conftest.err conftest.$ac_objext \
16306       conftest$ac_exeext conftest.$ac_ext
16307   done
16308 fi
16309 LIBS=$ac_func_search_save_LIBS
16310 fi
16311 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16312 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16313 if test "$ac_cv_search_dlopen" != no; then
16314   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16315
16316 fi
16317
16318 fi
16319
16320 # ------------------------------------------
16321 # Where to place working dir
16322 # ------------------------------------------
16323 working_dir=`eval echo ${prefix}/var/bacula/working`
16324
16325 # Check whether --with-working-dir or --without-working-dir was given.
16326 if test "${with_working_dir+set}" = set; then
16327   withval="$with_working_dir"
16328
16329        if test "x$withval" != "xno" ; then
16330               working_dir=$withval
16331        fi
16332
16333
16334 fi;
16335
16336
16337
16338
16339 # ------------------------------------------
16340 # Where to place scriptdir (script files)
16341 # ------------------------------------------
16342 scriptdir=`eval echo ${sysconfdir}`
16343
16344 # Check whether --with-scriptdir or --without-scriptdir was given.
16345 if test "${with_scriptdir+set}" = set; then
16346   withval="$with_scriptdir"
16347
16348        if test "x$withval" != "xno" ; then
16349               scriptdir=$withval
16350        fi
16351
16352
16353 fi;
16354
16355
16356
16357
16358 # ------------------------------------------
16359 # Where to send dump email
16360 # ------------------------------------------
16361 dump_email=root@localhost
16362
16363 # Check whether --with-dump-email or --without-dump-email was given.
16364 if test "${with_dump_email+set}" = set; then
16365   withval="$with_dump_email"
16366
16367        if test "x$withval" != "xno" ; then
16368               dump_email=$withval
16369        fi
16370
16371
16372 fi;
16373
16374
16375
16376 # ------------------------------------------
16377 # Where to send job email
16378 # ------------------------------------------
16379 job_email=root@localhost
16380
16381 # Check whether --with-job-email or --without-job-email was given.
16382 if test "${with_job_email+set}" = set; then
16383   withval="$with_job_email"
16384
16385        if test "x$withval" != "xno" ; then
16386               job_email=$withval
16387        fi
16388
16389
16390 fi;
16391
16392
16393
16394 # ------------------------------------------
16395 # Where to find smtp host
16396 # ------------------------------------------
16397 smtp_host=localhost
16398
16399 # Check whether --with-smtp_host or --without-smtp_host was given.
16400 if test "${with_smtp_host+set}" = set; then
16401   withval="$with_smtp_host"
16402
16403        if test "x$withval" != "xno" ; then
16404               smtp_host=$withval
16405        fi
16406
16407
16408 fi;
16409
16410
16411
16412
16413 # ------------------------------------
16414 # Where to place pid files
16415 # ------------------------------------
16416 piddir=/var/run
16417
16418 # Check whether --with-pid-dir or --without-pid-dir was given.
16419 if test "${with_pid_dir+set}" = set; then
16420   withval="$with_pid_dir"
16421
16422         if test "x$withval" != "xno" ; then
16423             piddir=$withval
16424         fi
16425
16426
16427 fi;
16428
16429 cat >>confdefs.h <<_ACEOF
16430 #define _PATH_BACULA_PIDDIR "$piddir"
16431 _ACEOF
16432
16433
16434
16435
16436 # ------------------------------------
16437 # Where to place subsys "lock file"
16438 # ------------------------------------
16439 subsysdir=/var/run/subsys
16440 if test -d /var/run/subsys; then
16441    subsysdir=/var/run/subsys
16442 elif test -d /var/lock/subsys; then
16443    subsysdir=/var/lock/subsys
16444 else
16445    subsysdir=/var/run/subsys
16446 fi
16447
16448 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16449 if test "${with_subsys_dir+set}" = set; then
16450   withval="$with_subsys_dir"
16451
16452         if test "x$withval" != "xno" ; then
16453             subsysdir=$withval
16454         fi
16455
16456
16457 fi;
16458
16459
16460
16461
16462
16463 # ------------------------------------
16464 # Where to start assigning ports
16465 # ------------------------------------
16466 baseport=9101
16467
16468 # Check whether --with-baseport or --without-baseport was given.
16469 if test "${with_baseport+set}" = set; then
16470   withval="$with_baseport"
16471
16472         if test "x$withval" != "xno" ; then
16473              baseport=$withval
16474         fi
16475
16476
16477 fi;
16478
16479
16480 dir_port=`expr $baseport`
16481 fd_port=`expr $baseport + 1`
16482 sd_port=`expr $fd_port + 1`
16483
16484
16485
16486
16487
16488
16489 # ------------------------------------------
16490 # Generate passwords
16491 # ------------------------------------------
16492 dir_password=
16493
16494 # Check whether --with-dir-password or --without-dir-password was given.
16495 if test "${with_dir_password+set}" = set; then
16496   withval="$with_dir_password"
16497
16498        if test "x$withval" != "xno" ; then
16499            dir_password=$withval
16500        fi
16501
16502
16503 fi;
16504
16505 if test "x$dir_password" = "x" ; then
16506    if test "x$OPENSSL" = "xnone" ; then
16507       key=`autoconf/randpass 33`
16508    else
16509       key=`openssl rand -base64 33`
16510    fi
16511    dir_password=$key
16512 fi
16513
16514 fd_password=
16515
16516 # Check whether --with-fd-password or --without-fd-password was given.
16517 if test "${with_fd_password+set}" = set; then
16518   withval="$with_fd_password"
16519
16520        if test "x$withval" != "xno" ; then
16521            fd_password=$withval
16522        fi
16523
16524
16525 fi;
16526
16527 if test "x$fd_password" = "x" ; then
16528    if test "x$OPENSSL" = "xnone" ; then
16529       key=`autoconf/randpass 37`
16530    else
16531       key=`openssl rand -base64 33`
16532    fi
16533    fd_password=$key
16534 fi
16535
16536 sd_password=
16537
16538 # Check whether --with-sd-password or --without-sd-password was given.
16539 if test "${with_sd_password+set}" = set; then
16540   withval="$with_sd_password"
16541
16542        if test "x$withval" != "xno" ; then
16543            sd_password=$withval
16544        fi
16545
16546
16547 fi;
16548
16549 if test "x$sd_password" = "x" ; then
16550    if test "x$OPENSSL" = "xnone" ; then
16551       key=`autoconf/randpass 41`
16552    else
16553       key=`openssl rand -base64 33`
16554    fi
16555    sd_password=$key
16556 fi
16557
16558 mon_dir_password=
16559
16560 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16561 if test "${with_mon_dir_password+set}" = set; then
16562   withval="$with_mon_dir_password"
16563
16564        if test "x$withval" != "xno" ; then
16565            mon_dir_password=$withval
16566        fi
16567
16568
16569 fi;
16570
16571 if test "x$mon_dir_password" = "x" ; then
16572    if test "x$OPENSSL" = "xnone" ; then
16573       key=`autoconf/randpass 33`
16574    else
16575       key=`openssl rand -base64 33`
16576    fi
16577    mon_dir_password=$key
16578 fi
16579
16580 mon_fd_password=
16581
16582 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16583 if test "${with_mon_fd_password+set}" = set; then
16584   withval="$with_mon_fd_password"
16585
16586        if test "x$withval" != "xno" ; then
16587            mon_fd_password=$withval
16588        fi
16589
16590
16591 fi;
16592
16593 if test "x$mon_fd_password" = "x" ; then
16594    if test "x$OPENSSL" = "xnone" ; then
16595       key=`autoconf/randpass 37`
16596    else
16597       key=`openssl rand -base64 33`
16598    fi
16599    mon_fd_password=$key
16600 fi
16601
16602 mon_sd_password=
16603
16604 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16605 if test "${with_mon_sd_password+set}" = set; then
16606   withval="$with_mon_sd_password"
16607
16608        if test "x$withval" != "xno" ; then
16609            mon_sd_password=$withval
16610        fi
16611
16612
16613 fi;
16614
16615 if test "x$mon_sd_password" = "x" ; then
16616    if test "x$OPENSSL" = "xnone" ; then
16617       key=`autoconf/randpass 41`
16618    else
16619       key=`openssl rand -base64 33`
16620    fi
16621    mon_sd_password=$key
16622 fi
16623
16624
16625
16626
16627
16628
16629
16630
16631 #
16632 # Pickup any database name
16633 #
16634 db_name=bacula
16635
16636 # Check whether --with-db_name or --without-db_name was given.
16637 if test "${with_db_name+set}" = set; then
16638   withval="$with_db_name"
16639
16640         if test "x$withval" != "x" ; then
16641              db_name=$withval
16642         fi
16643
16644
16645 fi;
16646
16647
16648 db_user=bacula
16649
16650 # Check whether --with-db_user or --without-db_user was given.
16651 if test "${with_db_user+set}" = set; then
16652   withval="$with_db_user"
16653
16654         if test "x$withval" != "x" ; then
16655              db_user=$withval
16656         fi
16657
16658
16659 fi;
16660
16661
16662
16663 #
16664 # Handle users and groups for each daemon
16665 #
16666 dir_user=
16667
16668 # Check whether --with-dir_user or --without-dir_user was given.
16669 if test "${with_dir_user+set}" = set; then
16670   withval="$with_dir_user"
16671
16672         if test "x$withval" != "x" ; then
16673              dir_user=$withval
16674         fi
16675
16676
16677 fi;
16678
16679 dir_group=
16680
16681 # Check whether --with-dir_group or --without-dir_group was given.
16682 if test "${with_dir_group+set}" = set; then
16683   withval="$with_dir_group"
16684
16685         if test "x$withval" != "x" ; then
16686              dir_group=$withval
16687         fi
16688
16689
16690 fi;
16691
16692 sd_user=
16693
16694 # Check whether --with-sd_user or --without-sd_user was given.
16695 if test "${with_sd_user+set}" = set; then
16696   withval="$with_sd_user"
16697
16698         if test "x$withval" != "x" ; then
16699              sd_user=$withval
16700         fi
16701
16702
16703 fi;
16704
16705 sd_group=
16706
16707 # Check whether --with-sd_group or --without-sd_group was given.
16708 if test "${with_sd_group+set}" = set; then
16709   withval="$with_sd_group"
16710
16711         if test "x$withval" != "x" ; then
16712              sd_group=$withval
16713         fi
16714
16715
16716 fi;
16717
16718 fd_user=
16719
16720 # Check whether --with-fd_user or --without-fd_user was given.
16721 if test "${with_fd_user+set}" = set; then
16722   withval="$with_fd_user"
16723
16724         if test "x$withval" != "x" ; then
16725              fd_user=$withval
16726         fi
16727
16728
16729 fi;
16730
16731 fd_group=
16732
16733 # Check whether --with-fd_group or --without-fd_group was given.
16734 if test "${with_fd_group+set}" = set; then
16735   withval="$with_fd_group"
16736
16737         if test "x$withval" != "x" ; then
16738              fd_group=$withval
16739         fi
16740
16741
16742 fi;
16743
16744
16745
16746
16747
16748
16749
16750
16751 #
16752 # allow setting default executable permissions
16753 #
16754 SBINPERM=0754
16755
16756 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16757 if test "${with_sbin_perm+set}" = set; then
16758   withval="$with_sbin_perm"
16759
16760         if test "x$withval" != "x" ; then
16761             SBINPERM=$withval
16762         fi
16763
16764
16765 fi;
16766
16767
16768
16769 # ------------------------------------------------
16770 # Bacula check for various SQL database engines
16771 # ------------------------------------------------
16772 SQL_LIB=
16773
16774 db_found=no
16775 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16776 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16777
16778 # Check whether --with-postgresql or --without-postgresql was given.
16779 if test "${with_postgresql+set}" = set; then
16780   withval="$with_postgresql"
16781
16782   if test "$withval" != "no"; then
16783       if test "$db_found" = "yes"; then
16784           echo "$as_me:$LINENO: result: error" >&5
16785 echo "${ECHO_T}error" >&6
16786           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16787 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16788    { (exit 1); exit 1; }; };
16789       fi
16790       if test "$withval" = "yes"; then
16791           PG_CONFIG=`which pg_config`
16792           if test -n "$PG_CONFIG";then
16793               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16794               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16795               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16796           elif test -f /usr/local/include/libpq-fe.h; then
16797               POSTGRESQL_INCDIR=/usr/local/include
16798               if test -d /usr/local/lib64; then
16799                  POSTGRESQL_LIBDIR=/usr/local/lib64
16800               else
16801                  POSTGRESQL_LIBDIR=/usr/local/lib
16802               fi
16803               POSTGRESQL_BINDIR=/usr/local/bin
16804           elif test -f /usr/include/libpq-fe.h; then
16805               POSTGRESQL_INCDIR=/usr/include
16806               if test -d /usr/lib64; then
16807                  POSTGRESQL_LIBDIR=/usr/lib64
16808               else
16809                  POSTGRESQL_LIBDIR=/usr/lib
16810               fi
16811               POSTGRESQL_BINDIR=/usr/bin
16812           elif test -f /usr/include/pgsql/libpq-fe.h; then
16813               POSTGRESQL_INCDIR=/usr/include/pgsql
16814               if test -d /usr/lib64/pgsql; then
16815                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16816               else
16817                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
16818               fi
16819               POSTGRESQL_BINDIR=/usr/bin
16820           elif test -f /usr/include/postgresql/libpq-fe.h; then
16821               POSTGRESQL_INCDIR=/usr/include/postgresql
16822               if test -d /usr/lib64/postgresql; then
16823                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16824               else
16825                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
16826               fi
16827               POSTGRESQL_BINDIR=/usr/bin
16828           else
16829               echo "$as_me:$LINENO: result: no" >&5
16830 echo "${ECHO_T}no" >&6
16831               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16832 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16833    { (exit 1); exit 1; }; }
16834           fi
16835       elif test -f $withval/include/libpq-fe.h; then
16836           POSTGRESQL_INCDIR=$withval/include
16837           POSTGRESQL_LIBDIR=$withval/lib
16838           POSTGRESQL_BINDIR=$withval/bin
16839       elif test -f $withval/include/postgresql/libpq-fe.h; then
16840           POSTGRESQL_INCDIR=$withval/include/postgresql
16841      if test -d $withval/lib64; then
16842          POSTGRESQL_LIBDIR=$withval/lib64
16843      else
16844          POSTGRESQL_LIBDIR=$withval/lib
16845      fi
16846           POSTGRESQL_BINDIR=$withval/bin
16847       else
16848           echo "$as_me:$LINENO: result: no" >&5
16849 echo "${ECHO_T}no" >&6
16850           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16851 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16852    { (exit 1); exit 1; }; }
16853       fi
16854       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16855       echo "$as_me:$LINENO: checking for crypt" >&5
16856 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16857 if test "${ac_cv_func_crypt+set}" = set; then
16858   echo $ECHO_N "(cached) $ECHO_C" >&6
16859 else
16860   cat >conftest.$ac_ext <<_ACEOF
16861 /* confdefs.h.  */
16862 _ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h.  */
16866 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16868 #define crypt innocuous_crypt
16869
16870 /* System header to define __stub macros and hopefully few prototypes,
16871     which can conflict with char crypt (); below.
16872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16873     <limits.h> exists even on freestanding compilers.  */
16874
16875 #ifdef __STDC__
16876 # include <limits.h>
16877 #else
16878 # include <assert.h>
16879 #endif
16880
16881 #undef crypt
16882
16883 /* Override any gcc2 internal prototype to avoid an error.  */
16884 #ifdef __cplusplus
16885 extern "C"
16886 {
16887 #endif
16888 /* We use char because int might match the return type of a gcc2
16889    builtin and then its argument prototype would still apply.  */
16890 char crypt ();
16891 /* The GNU C library defines this for functions which it implements
16892     to always fail with ENOSYS.  Some functions are actually named
16893     something starting with __ and the normal name is an alias.  */
16894 #if defined (__stub_crypt) || defined (__stub___crypt)
16895 choke me
16896 #else
16897 char (*f) () = crypt;
16898 #endif
16899 #ifdef __cplusplus
16900 }
16901 #endif
16902
16903 int
16904 main ()
16905 {
16906 return f != crypt;
16907   ;
16908   return 0;
16909 }
16910 _ACEOF
16911 rm -f conftest.$ac_objext conftest$ac_exeext
16912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16913   (eval $ac_link) 2>conftest.er1
16914   ac_status=$?
16915   grep -v '^ *+' conftest.er1 >conftest.err
16916   rm -f conftest.er1
16917   cat conftest.err >&5
16918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919   (exit $ac_status); } &&
16920          { ac_try='test -z "$ac_c_werror_flag"
16921                          || test ! -s conftest.err'
16922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923   (eval $ac_try) 2>&5
16924   ac_status=$?
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); }; } &&
16927          { ac_try='test -s conftest$ac_exeext'
16928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929   (eval $ac_try) 2>&5
16930   ac_status=$?
16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932   (exit $ac_status); }; }; then
16933   ac_cv_func_crypt=yes
16934 else
16935   echo "$as_me: failed program was:" >&5
16936 sed 's/^/| /' conftest.$ac_ext >&5
16937
16938 ac_cv_func_crypt=no
16939 fi
16940 rm -f conftest.err conftest.$ac_objext \
16941       conftest$ac_exeext conftest.$ac_ext
16942 fi
16943 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16944 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16945 if test $ac_cv_func_crypt = yes; then
16946   :
16947 else
16948   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16949 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16950 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16951   echo $ECHO_N "(cached) $ECHO_C" >&6
16952 else
16953   ac_check_lib_save_LIBS=$LIBS
16954 LIBS="-lcrypt  $LIBS"
16955 cat >conftest.$ac_ext <<_ACEOF
16956 /* confdefs.h.  */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h.  */
16961
16962 /* Override any gcc2 internal prototype to avoid an error.  */
16963 #ifdef __cplusplus
16964 extern "C"
16965 #endif
16966 /* We use char because int might match the return type of a gcc2
16967    builtin and then its argument prototype would still apply.  */
16968 char crypt ();
16969 int
16970 main ()
16971 {
16972 crypt ();
16973   ;
16974   return 0;
16975 }
16976 _ACEOF
16977 rm -f conftest.$ac_objext conftest$ac_exeext
16978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16979   (eval $ac_link) 2>conftest.er1
16980   ac_status=$?
16981   grep -v '^ *+' conftest.er1 >conftest.err
16982   rm -f conftest.er1
16983   cat conftest.err >&5
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); } &&
16986          { ac_try='test -z "$ac_c_werror_flag"
16987                          || test ! -s conftest.err'
16988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989   (eval $ac_try) 2>&5
16990   ac_status=$?
16991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992   (exit $ac_status); }; } &&
16993          { ac_try='test -s conftest$ac_exeext'
16994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995   (eval $ac_try) 2>&5
16996   ac_status=$?
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); }; }; then
16999   ac_cv_lib_crypt_crypt=yes
17000 else
17001   echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17003
17004 ac_cv_lib_crypt_crypt=no
17005 fi
17006 rm -f conftest.err conftest.$ac_objext \
17007       conftest$ac_exeext conftest.$ac_ext
17008 LIBS=$ac_check_lib_save_LIBS
17009 fi
17010 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17011 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
17012 if test $ac_cv_lib_crypt_crypt = yes; then
17013   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17014 fi
17015
17016 fi
17017
17018       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17019       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17020       SQL_BINDIR=$POSTGRESQL_BINDIR
17021       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17022
17023       cat >>confdefs.h <<\_ACEOF
17024 #define HAVE_POSTGRESQL 1
17025 _ACEOF
17026
17027       echo "$as_me:$LINENO: result: yes" >&5
17028 echo "${ECHO_T}yes" >&6
17029       db_found=yes
17030       support_postgresql=yes
17031       db_type=PostgreSQL
17032       DB_TYPE=postgresql
17033   else
17034       echo "$as_me:$LINENO: result: no" >&5
17035 echo "${ECHO_T}no" >&6
17036   fi
17037
17038 else
17039
17040   echo "$as_me:$LINENO: result: no" >&5
17041 echo "${ECHO_T}no" >&6
17042
17043 fi;
17044
17045
17046
17047
17048
17049
17050
17051 db_found=no
17052 echo "$as_me:$LINENO: checking for MySQL support" >&5
17053 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
17054
17055 # Check whether --with-mysql or --without-mysql was given.
17056 if test "${with_mysql+set}" = set; then
17057   withval="$with_mysql"
17058
17059   if test "$withval" != "no"; then
17060         if test "$withval" = "yes"; then
17061            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17062                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17063                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17064                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17065                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17066                    else
17067                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17068                    fi
17069                    MYSQL_BINDIR=/usr/local/mysql/bin
17070            elif test -f /usr/include/mysql/mysql.h; then
17071                    MYSQL_INCDIR=/usr/include/mysql
17072                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17073                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17074                            MYSQL_LIBDIR=/usr/lib64/mysql
17075                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17076                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17077                            MYSQL_LIBDIR=/usr/lib/mysql
17078                    else
17079                            MYSQL_LIBDIR=/usr/lib
17080                    fi
17081                    MYSQL_BINDIR=/usr/bin
17082            elif test -f /usr/include/mysql.h; then
17083                    MYSQL_INCDIR=/usr/include
17084                    if test -f /usr/lib64/libmysqlclient_r.a \
17085                         -o -f /usr/lib64/libmysqlclient_r.so; then
17086                            MYSQL_LIBDIR=/usr/lib64
17087                    else
17088                            MYSQL_LIBDIR=/usr/lib
17089                    fi
17090                    MYSQL_BINDIR=/usr/bin
17091            elif test -f /usr/local/include/mysql/mysql.h; then
17092                    MYSQL_INCDIR=/usr/local/include/mysql
17093                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17094                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17095                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17096                    else
17097                            MYSQL_LIBDIR=/usr/local/lib/mysql
17098                    fi
17099                    MYSQL_BINDIR=/usr/local/bin
17100            elif test -f /usr/local/include/mysql.h; then
17101                    MYSQL_INCDIR=/usr/local/include
17102                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17103                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17104                            MYSQL_LIBDIR=/usr/local/lib64
17105                    else
17106                            MYSQL_LIBDIR=/usr/local/lib
17107                    fi
17108                    MYSQL_BINDIR=/usr/local/bin
17109            else
17110               echo "$as_me:$LINENO: result: no" >&5
17111 echo "${ECHO_T}no" >&6
17112               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17113 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17114    { (exit 1); exit 1; }; }
17115            fi
17116         else
17117            if test -f $withval/include/mysql/mysql.h; then
17118               MYSQL_INCDIR=$withval/include/mysql
17119               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17120                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17121                  MYSQL_LIBDIR=$withval/lib64/mysql
17122               else
17123                  MYSQL_LIBDIR=$withval/lib/mysql
17124                  # Solaris ...
17125                  if test -f $withval/lib/libmysqlclient_r.so; then
17126                     MYSQL_LIBDIR=$withval/lib
17127                  fi
17128               fi
17129               MYSQL_BINDIR=$withval/bin
17130            elif test -f $withval/include/mysql.h; then
17131               MYSQL_INCDIR=$withval/include
17132               if test -f $withval/lib64/libmysqlclient_r.a \
17133                    -o -f $withval/lib64/libmysqlclient_r.so; then
17134                  MYSQL_LIBDIR=$withval/lib64
17135               else
17136                  MYSQL_LIBDIR=$withval/lib
17137               fi
17138               MYSQL_BINDIR=$withval/bin
17139            else
17140               echo "$as_me:$LINENO: result: no" >&5
17141 echo "${ECHO_T}no" >&6
17142               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17143 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17144    { (exit 1); exit 1; }; }
17145            fi
17146         fi
17147     SQL_INCLUDE=-I$MYSQL_INCDIR
17148     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17149          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17150        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17151        cat >>confdefs.h <<\_ACEOF
17152 #define HAVE_THREAD_SAFE_MYSQL 1
17153 _ACEOF
17154
17155     fi
17156     SQL_BINDIR=$MYSQL_BINDIR
17157     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17158
17159     cat >>confdefs.h <<\_ACEOF
17160 #define HAVE_MYSQL 1
17161 _ACEOF
17162
17163     echo "$as_me:$LINENO: result: yes" >&5
17164 echo "${ECHO_T}yes" >&6
17165     db_found=yes
17166     support_mysql=yes
17167     db_type=MySQL
17168     DB_TYPE=mysql
17169
17170   else
17171         echo "$as_me:$LINENO: result: no" >&5
17172 echo "${ECHO_T}no" >&6
17173   fi
17174
17175
17176 fi;
17177
17178
17179 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
17180 if test "${with_embedded_mysql+set}" = set; then
17181   withval="$with_embedded_mysql"
17182
17183   if test "$withval" != "no"; then
17184         if test "$withval" = "yes"; then
17185                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17186                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17187                         if test -d /usr/local/mysql/lib64/mysql; then
17188                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17189                         else
17190                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17191                         fi
17192                         MYSQL_BINDIR=/usr/local/mysql/bin
17193                 elif test -f /usr/include/mysql/mysql.h; then
17194                         MYSQL_INCDIR=/usr/include/mysql
17195                         if test -d /usr/lib64/mysql; then
17196                                 MYSQL_LIBDIR=/usr/lib64/mysql
17197                         else
17198                                 MYSQL_LIBDIR=/usr/lib/mysql
17199                         fi
17200                         MYSQL_BINDIR=/usr/bin
17201                 elif test -f /usr/include/mysql.h; then
17202                         MYSQL_INCDIR=/usr/include
17203                         if test -d /usr/lib64; then
17204                                 MYSQL_LIBDIR=/usr/lib64
17205                         else
17206                                 MYSQL_LIBDIR=/usr/lib
17207                         fi
17208                         MYSQL_BINDIR=/usr/bin
17209                 elif test -f /usr/local/include/mysql/mysql.h; then
17210                         MYSQL_INCDIR=/usr/local/include/mysql
17211                         if test -d /usr/local/lib64/mysql; then
17212                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17213                         else
17214                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17215                         fi
17216                         MYSQL_BINDIR=/usr/local/bin
17217                 elif test -f /usr/local/include/mysql.h; then
17218                         MYSQL_INCDIR=/usr/local/include
17219                         if test -d /usr/local/lib64; then
17220                                 MYSQL_LIBDIR=/usr/local/lib64
17221                         else
17222                                 MYSQL_LIBDIR=/usr/local/lib
17223                         fi
17224                         MYSQL_BINDIR=/usr/local/bin
17225                 else
17226                    echo "$as_me:$LINENO: result: no" >&5
17227 echo "${ECHO_T}no" >&6
17228                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17229 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17230    { (exit 1); exit 1; }; }
17231                 fi
17232         else
17233                 if test -f $withval/include/mysql/mysql.h; then
17234                         MYSQL_INCDIR=$withval/include/mysql
17235                         if test -d $withval/lib64/mysql; then
17236                                 MYSQL_LIBDIR=$withval/lib64/mysql
17237                         else
17238                                 MYSQL_LIBDIR=$withval/lib/mysql
17239                         fi
17240                         MYSQL_BINDIR=$withval/bin
17241                 elif test -f $withval/include/mysql.h; then
17242                         MYSQL_INCDIR=$withval/include
17243                         if test -d $withval/lib64; then
17244                                 MYSQL_LIBDIR=$withval/lib64
17245                         else
17246                                 MYSQL_LIBDIR=$withval/lib
17247                         fi
17248                         MYSQL_BINDIR=$withval/bin
17249                 else
17250                    echo "$as_me:$LINENO: result: no" >&5
17251 echo "${ECHO_T}no" >&6
17252                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17253 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17254    { (exit 1); exit 1; }; }
17255                 fi
17256         fi
17257     SQL_INCLUDE=-I$MYSQL_INCDIR
17258     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17259     SQL_BINDIR=$MYSQL_BINDIR
17260     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17261
17262     cat >>confdefs.h <<\_ACEOF
17263 #define HAVE_MYSQL 1
17264 _ACEOF
17265
17266     cat >>confdefs.h <<\_ACEOF
17267 #define HAVE_EMBEDDED_MYSQL 1
17268 _ACEOF
17269
17270     echo "$as_me:$LINENO: result: yes" >&5
17271 echo "${ECHO_T}yes" >&6
17272     db_found=yes
17273     support_mysql=yes
17274     db_type=MySQL
17275     DB_TYPE=mysql
17276
17277   else
17278         echo "$as_me:$LINENO: result: no" >&5
17279 echo "${ECHO_T}no" >&6
17280   fi
17281
17282
17283 fi;
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293 db_found=no
17294 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17295 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17296
17297 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17298 if test "${with_sqlite3+set}" = set; then
17299   withval="$with_sqlite3"
17300
17301   if test "$withval" != "no"; then
17302      if test "$withval" = "yes"; then
17303         if test -f /usr/local/include/sqlite3.h; then
17304            SQLITE_INCDIR=/usr/local/include
17305            if test -d /usr/local/lib64; then
17306               SQLITE_LIBDIR=/usr/local/lib64
17307            else
17308               SQLITE_LIBDIR=/usr/local/lib
17309            fi
17310            SQLITE_BINDIR=/usr/local/bin
17311         elif test -f /usr/include/sqlite3.h; then
17312            SQLITE_INCDIR=/usr/include
17313            if test -d /usr/lib64; then
17314               SQLITE_LIBDIR=/usr/lib64
17315            else
17316               SQLITE_LIBDIR=/usr/lib
17317            fi
17318            SQLITE_BINDIR=/usr/bin
17319         elif test -f $prefix/include/sqlite3.h; then
17320            SQLITE_INCDIR=$prefix/include
17321            if test -d $prefix/lib64; then
17322               SQLITE_LIBDIR=$prefix/lib64
17323            else
17324               SQLITE_LIBDIR=$prefix/lib
17325            fi
17326            SQLITE_BINDIR=$prefix/bin
17327         else
17328            echo "$as_me:$LINENO: result: no" >&5
17329 echo "${ECHO_T}no" >&6
17330            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17331 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17332    { (exit 1); exit 1; }; }
17333         fi
17334      else
17335         if test -f $withval/sqlite3.h; then
17336            SQLITE_INCDIR=$withval
17337            SQLITE_LIBDIR=$withval
17338            SQLITE_BINDIR=$withval
17339         elif test -f $withval/include/sqlite3.h; then
17340            SQLITE_INCDIR=$withval/include
17341            if test -d $withval/lib64; then
17342               SQLITE_LIBDIR=$withval/lib64
17343            else
17344               SQLITE_LIBDIR=$withval/lib
17345            fi
17346            SQLITE_BINDIR=$withval/bin
17347         else
17348            echo "$as_me:$LINENO: result: no" >&5
17349 echo "${ECHO_T}no" >&6
17350            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17351 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17352    { (exit 1); exit 1; }; }
17353         fi
17354      fi
17355      SQL_INCLUDE=-I$SQLITE_INCDIR
17356      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17357      SQL_BINDIR=$SQLITE_BINDIR
17358      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17359
17360      cat >>confdefs.h <<\_ACEOF
17361 #define HAVE_SQLITE3 1
17362 _ACEOF
17363
17364      echo "$as_me:$LINENO: result: yes" >&5
17365 echo "${ECHO_T}yes" >&6
17366      db_found=yes
17367      support_sqlite3=yes
17368      db_type=SQLite3
17369      DB_TYPE=sqlite3
17370
17371   else
17372      echo "$as_me:$LINENO: result: no" >&5
17373 echo "${ECHO_T}no" >&6
17374   fi
17375
17376 else
17377
17378   echo "$as_me:$LINENO: result: no" >&5
17379 echo "${ECHO_T}no" >&6
17380
17381 fi;
17382
17383
17384
17385
17386
17387
17388
17389 db_found=no
17390 echo "$as_me:$LINENO: checking for SQLite support" >&5
17391 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17392
17393 # Check whether --with-sqlite or --without-sqlite was given.
17394 if test "${with_sqlite+set}" = set; then
17395   withval="$with_sqlite"
17396
17397   if test "$withval" != "no"; then
17398      if test "$withval" = "yes"; then
17399         if test -f /usr/local/include/sqlite.h; then
17400            SQLITE_INCDIR=/usr/local/include
17401            if test -d /usr/local/lib64; then
17402               SQLITE_LIBDIR=/usr/local/lib64
17403            else
17404               SQLITE_LIBDIR=/usr/local/lib
17405            fi
17406            SQLITE_BINDIR=/usr/local/bin
17407         elif test -f /usr/include/sqlite.h; then
17408            SQLITE_INCDIR=/usr/include
17409            if test -d /usr/lib64; then
17410               SQLITE_LIBDIR=/usr/lib64
17411            else
17412               SQLITE_LIBDIR=/usr/lib
17413            fi
17414            SQLITE_BINDIR=/usr/bin
17415         elif test -f $prefix/include/sqlite.h; then
17416            SQLITE_INCDIR=$prefix/include
17417            if test -d $prefix/lib64; then
17418               SQLITE_LIBDIR=$prefix/lib64
17419            else
17420               SQLITE_LIBDIR=$prefix/lib
17421            fi
17422            SQLITE_BINDIR=$prefix/bin
17423         else
17424            echo "$as_me:$LINENO: result: no" >&5
17425 echo "${ECHO_T}no" >&6
17426            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17427 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17428    { (exit 1); exit 1; }; }
17429         fi
17430      else
17431         if test -f $withval/sqlite.h; then
17432            SQLITE_INCDIR=$withval
17433            SQLITE_LIBDIR=$withval
17434            SQLITE_BINDIR=$withval
17435         elif test -f $withval/include/sqlite.h; then
17436            SQLITE_INCDIR=$withval/include
17437            if test -d $withval/lib64; then
17438               SQLITE_LIBDIR=$withval/lib64
17439            else
17440               SQLITE_LIBDIR=$withval/lib
17441            fi
17442            SQLITE_BINDIR=$withval/bin
17443         else
17444            echo "$as_me:$LINENO: result: no" >&5
17445 echo "${ECHO_T}no" >&6
17446            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17447 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17448    { (exit 1); exit 1; }; }
17449         fi
17450      fi
17451      SQL_INCLUDE=-I$SQLITE_INCDIR
17452      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17453      SQL_BINDIR=$SQLITE_BINDIR
17454      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17455
17456      cat >>confdefs.h <<\_ACEOF
17457 #define HAVE_SQLITE 1
17458 _ACEOF
17459
17460      echo "$as_me:$LINENO: result: yes" >&5
17461 echo "${ECHO_T}yes" >&6
17462      db_found=yes
17463      support_sqlite=yes
17464      db_type=SQLite
17465      DB_TYPE=sqlite
17466
17467   else
17468      echo "$as_me:$LINENO: result: no" >&5
17469 echo "${ECHO_T}no" >&6
17470   fi
17471
17472 else
17473
17474   echo "$as_me:$LINENO: result: no" >&5
17475 echo "${ECHO_T}no" >&6
17476
17477 fi;
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487 # -------------------------------------------
17488 # enable batch attribute DB insert (default on)
17489 # -------------------------------------------
17490 support_batch_insert=no
17491 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17492 pkg=$?
17493 if test $pkg = 0; then
17494    support_batch_insert=yes
17495    # Check whether --enable-batch-insert or --disable-batch-insert was given.
17496 if test "${enable_batch_insert+set}" = set; then
17497   enableval="$enable_batch_insert"
17498   if test x$enableval = xno; then
17499        support_batch_insert=no
17500       else
17501        support_batch_insert=yes
17502      fi
17503 fi;
17504 fi
17505
17506 if test $support_batch_insert = yes ; then
17507
17508 cat >>confdefs.h <<\_ACEOF
17509 #define HAVE_BATCH_FILE_INSERT 1
17510 _ACEOF
17511
17512 fi
17513
17514
17515 cat >>confdefs.h <<\_ACEOF
17516 #define PROTOTYPES 1
17517 _ACEOF
17518
17519
17520 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17521     if test -z "$CCOPTS"; then
17522         CCOPTS='-g -O2 -Wall'
17523     fi
17524     CFLAGS="$CCOPTS"
17525 fi
17526
17527
17528
17529
17530 largefile_support="no"
17531
17532    # Check whether --enable-largefile or --disable-largefile was given.
17533 if test "${enable_largefile+set}" = set; then
17534   enableval="$enable_largefile"
17535
17536 fi;
17537    if test "$enable_largefile" != no; then
17538      if test -n "$ac_tool_prefix"; then
17539   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17540 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17541 echo "$as_me:$LINENO: checking for $ac_word" >&5
17542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17543 if test "${ac_cv_prog_GETCONF+set}" = set; then
17544   echo $ECHO_N "(cached) $ECHO_C" >&6
17545 else
17546   if test -n "$GETCONF"; then
17547   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17548 else
17549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17550 for as_dir in $PATH
17551 do
17552   IFS=$as_save_IFS
17553   test -z "$as_dir" && as_dir=.
17554   for ac_exec_ext in '' $ac_executable_extensions; do
17555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17556     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17558     break 2
17559   fi
17560 done
17561 done
17562
17563 fi
17564 fi
17565 GETCONF=$ac_cv_prog_GETCONF
17566 if test -n "$GETCONF"; then
17567   echo "$as_me:$LINENO: result: $GETCONF" >&5
17568 echo "${ECHO_T}$GETCONF" >&6
17569 else
17570   echo "$as_me:$LINENO: result: no" >&5
17571 echo "${ECHO_T}no" >&6
17572 fi
17573
17574 fi
17575 if test -z "$ac_cv_prog_GETCONF"; then
17576   ac_ct_GETCONF=$GETCONF
17577   # Extract the first word of "getconf", so it can be a program name with args.
17578 set dummy getconf; ac_word=$2
17579 echo "$as_me:$LINENO: checking for $ac_word" >&5
17580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17581 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17582   echo $ECHO_N "(cached) $ECHO_C" >&6
17583 else
17584   if test -n "$ac_ct_GETCONF"; then
17585   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17586 else
17587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17588 for as_dir in $PATH
17589 do
17590   IFS=$as_save_IFS
17591   test -z "$as_dir" && as_dir=.
17592   for ac_exec_ext in '' $ac_executable_extensions; do
17593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17594     ac_cv_prog_ac_ct_GETCONF="getconf"
17595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17596     break 2
17597   fi
17598 done
17599 done
17600
17601 fi
17602 fi
17603 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17604 if test -n "$ac_ct_GETCONF"; then
17605   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17606 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17607 else
17608   echo "$as_me:$LINENO: result: no" >&5
17609 echo "${ECHO_T}no" >&6
17610 fi
17611
17612   GETCONF=$ac_ct_GETCONF
17613 else
17614   GETCONF="$ac_cv_prog_GETCONF"
17615 fi
17616
17617      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17618 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17619 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17620   echo $ECHO_N "(cached) $ECHO_C" >&6
17621 else
17622   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17623         ac_cv_sys_largefile_CFLAGS=no
17624         case "$host_os" in
17625            # IRIX 6.2 and later require cc -n32.
17626            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17627              if test "$GCC" != yes; then
17628                ac_cv_sys_largefile_CFLAGS=-n32
17629              fi
17630              ac_save_CC="$CC"
17631              CC="$CC $ac_cv_sys_largefile_CFLAGS"
17632              cat >conftest.$ac_ext <<_ACEOF
17633 /* confdefs.h.  */
17634 _ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h.  */
17638
17639 int
17640 main ()
17641 {
17642
17643   ;
17644   return 0;
17645 }
17646 _ACEOF
17647 rm -f conftest.$ac_objext conftest$ac_exeext
17648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17649   (eval $ac_link) 2>conftest.er1
17650   ac_status=$?
17651   grep -v '^ *+' conftest.er1 >conftest.err
17652   rm -f conftest.er1
17653   cat conftest.err >&5
17654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655   (exit $ac_status); } &&
17656          { ac_try='test -z "$ac_c_werror_flag"
17657                          || test ! -s conftest.err'
17658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659   (eval $ac_try) 2>&5
17660   ac_status=$?
17661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662   (exit $ac_status); }; } &&
17663          { ac_try='test -s conftest$ac_exeext'
17664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665   (eval $ac_try) 2>&5
17666   ac_status=$?
17667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668   (exit $ac_status); }; }; then
17669   :
17670 else
17671   echo "$as_me: failed program was:" >&5
17672 sed 's/^/| /' conftest.$ac_ext >&5
17673
17674 ac_cv_sys_largefile_CFLAGS=no
17675 fi
17676 rm -f conftest.err conftest.$ac_objext \
17677       conftest$ac_exeext conftest.$ac_ext
17678              CC="$ac_save_CC"
17679            esac
17680       }
17681 fi
17682 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17683 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17684      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17685 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17686 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17687   echo $ECHO_N "(cached) $ECHO_C" >&6
17688 else
17689   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17690         ac_cv_sys_largefile_LDFLAGS=no
17691
17692       }
17693 fi
17694 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17695 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17696      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17697 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17698 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17699   echo $ECHO_N "(cached) $ECHO_C" >&6
17700 else
17701   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17702         ac_cv_sys_largefile_LIBS=no
17703
17704       }
17705 fi
17706 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17707 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17708
17709      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17710        case "$ac_flag" in
17711        no) ;;
17712        -D_FILE_OFFSET_BITS=*) ;;
17713        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17714        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17715        -D?* | -I?*)
17716          case "$ac_flag" in
17717    no) ;;
17718    ?*)
17719      case "$CPPFLAGS" in
17720      '') CPPFLAGS="$ac_flag" ;;
17721      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17722      esac ;;
17723    esac ;;
17724        *)
17725          case "$ac_flag" in
17726    no) ;;
17727    ?*)
17728      case "$CFLAGS" in
17729      '') CFLAGS="$ac_flag" ;;
17730      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17731      esac ;;
17732    esac ;;
17733        esac
17734      done
17735      case "$ac_cv_sys_largefile_LDFLAGS" in
17736    no) ;;
17737    ?*)
17738      case "$LDFLAGS" in
17739      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17740      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17741      esac ;;
17742    esac
17743      case "$ac_cv_sys_largefile_LIBS" in
17744    no) ;;
17745    ?*)
17746      case "$LIBS" in
17747      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17748      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17749      esac ;;
17750    esac
17751      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17752 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17753 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17754   echo $ECHO_N "(cached) $ECHO_C" >&6
17755 else
17756   ac_cv_sys_file_offset_bits=no
17757       ac_cv_sys_file_offset_bits=64
17758       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17759         case "$ac_flag" in
17760         -D_FILE_OFFSET_BITS)
17761           ac_cv_sys_file_offset_bits=1 ;;
17762         -D_FILE_OFFSET_BITS=*)
17763           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17764         esac
17765       done
17766
17767 fi
17768 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17769 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17770    if test "$ac_cv_sys_file_offset_bits" != no; then
17771
17772 cat >>confdefs.h <<_ACEOF
17773 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17774 _ACEOF
17775
17776    fi
17777      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17778 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17779 if test "${ac_cv_sys_largefile_source+set}" = set; then
17780   echo $ECHO_N "(cached) $ECHO_C" >&6
17781 else
17782   ac_cv_sys_largefile_source=no
17783       ac_cv_sys_largefile_source=1
17784       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17785         case "$ac_flag" in
17786         -D_LARGEFILE_SOURCE)
17787           ac_cv_sys_largefile_source=1 ;;
17788         -D_LARGEFILE_SOURCE=*)
17789           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17790         esac
17791       done
17792
17793 fi
17794 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17795 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17796    if test "$ac_cv_sys_largefile_source" != no; then
17797
17798 cat >>confdefs.h <<_ACEOF
17799 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17800 _ACEOF
17801
17802    fi
17803      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17804 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17805 if test "${ac_cv_sys_large_files+set}" = set; then
17806   echo $ECHO_N "(cached) $ECHO_C" >&6
17807 else
17808   ac_cv_sys_large_files=no
17809       ac_cv_sys_large_files=1
17810       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17811         case "$ac_flag" in
17812         -D_LARGE_FILES)
17813           ac_cv_sys_large_files=1 ;;
17814         -D_LARGE_FILES=*)
17815           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17816         esac
17817       done
17818
17819 fi
17820 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17821 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17822    if test "$ac_cv_sys_large_files" != no; then
17823
17824 cat >>confdefs.h <<_ACEOF
17825 #define _LARGE_FILES $ac_cv_sys_large_files
17826 _ACEOF
17827
17828    fi
17829    fi
17830
17831
17832
17833 echo "$as_me:$LINENO: checking for X" >&5
17834 echo $ECHO_N "checking for X... $ECHO_C" >&6
17835
17836
17837 # Check whether --with-x or --without-x was given.
17838 if test "${with_x+set}" = set; then
17839   withval="$with_x"
17840
17841 fi;
17842 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17843 if test "x$with_x" = xno; then
17844   # The user explicitly disabled X.
17845   have_x=disabled
17846 else
17847   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17848     # Both variables are already set.
17849     have_x=yes
17850   else
17851     if test "${ac_cv_have_x+set}" = set; then
17852   echo $ECHO_N "(cached) $ECHO_C" >&6
17853 else
17854   # One or both of the vars are not set, and there is no cached value.
17855 ac_x_includes=no ac_x_libraries=no
17856 rm -fr conftest.dir
17857 if mkdir conftest.dir; then
17858   cd conftest.dir
17859   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17860   cat >Imakefile <<'_ACEOF'
17861 acfindx:
17862         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17863 _ACEOF
17864   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17865     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17866     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17867     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17868     for ac_extension in a so sl; do
17869       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17870          test -f $ac_im_libdir/libX11.$ac_extension; then
17871         ac_im_usrlibdir=$ac_im_libdir; break
17872       fi
17873     done
17874     # Screen out bogus values from the imake configuration.  They are
17875     # bogus both because they are the default anyway, and because
17876     # using them would break gcc on systems where it needs fixed includes.
17877     case $ac_im_incroot in
17878         /usr/include) ;;
17879         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17880     esac
17881     case $ac_im_usrlibdir in
17882         /usr/lib | /lib) ;;
17883         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17884     esac
17885   fi
17886   cd ..
17887   rm -fr conftest.dir
17888 fi
17889
17890 # Standard set of common directories for X headers.
17891 # Check X11 before X11Rn because it is often a symlink to the current release.
17892 ac_x_header_dirs='
17893 /usr/X11/include
17894 /usr/X11R6/include
17895 /usr/X11R5/include
17896 /usr/X11R4/include
17897
17898 /usr/include/X11
17899 /usr/include/X11R6
17900 /usr/include/X11R5
17901 /usr/include/X11R4
17902
17903 /usr/local/X11/include
17904 /usr/local/X11R6/include
17905 /usr/local/X11R5/include
17906 /usr/local/X11R4/include
17907
17908 /usr/local/include/X11
17909 /usr/local/include/X11R6
17910 /usr/local/include/X11R5
17911 /usr/local/include/X11R4
17912
17913 /usr/X386/include
17914 /usr/x386/include
17915 /usr/XFree86/include/X11
17916
17917 /usr/include
17918 /usr/local/include
17919 /usr/unsupported/include
17920 /usr/athena/include
17921 /usr/local/x11r5/include
17922 /usr/lpp/Xamples/include
17923
17924 /usr/openwin/include
17925 /usr/openwin/share/include'
17926
17927 if test "$ac_x_includes" = no; then
17928   # Guess where to find include files, by looking for Xlib.h.
17929   # First, try using that file with no special directory specified.
17930   cat >conftest.$ac_ext <<_ACEOF
17931 /* confdefs.h.  */
17932 _ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h.  */
17936 #include <X11/Xlib.h>
17937 _ACEOF
17938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17939   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17940   ac_status=$?
17941   grep -v '^ *+' conftest.er1 >conftest.err
17942   rm -f conftest.er1
17943   cat conftest.err >&5
17944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945   (exit $ac_status); } >/dev/null; then
17946   if test -s conftest.err; then
17947     ac_cpp_err=$ac_c_preproc_warn_flag
17948     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17949   else
17950     ac_cpp_err=
17951   fi
17952 else
17953   ac_cpp_err=yes
17954 fi
17955 if test -z "$ac_cpp_err"; then
17956   # We can compile using X headers with no special include directory.
17957 ac_x_includes=
17958 else
17959   echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17961
17962   for ac_dir in $ac_x_header_dirs; do
17963   if test -r "$ac_dir/X11/Xlib.h"; then
17964     ac_x_includes=$ac_dir
17965     break
17966   fi
17967 done
17968 fi
17969 rm -f conftest.err conftest.$ac_ext
17970 fi # $ac_x_includes = no
17971
17972 if test "$ac_x_libraries" = no; then
17973   # Check for the libraries.
17974   # See if we find them without any special options.
17975   # Don't add to $LIBS permanently.
17976   ac_save_LIBS=$LIBS
17977   LIBS="-lX11 $LIBS"
17978   cat >conftest.$ac_ext <<_ACEOF
17979 /* confdefs.h.  */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h.  */
17984 #include <X11/Xlib.h>
17985 int
17986 main ()
17987 {
17988 XrmInitialize ()
17989   ;
17990   return 0;
17991 }
17992 _ACEOF
17993 rm -f conftest.$ac_objext conftest$ac_exeext
17994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17995   (eval $ac_link) 2>conftest.er1
17996   ac_status=$?
17997   grep -v '^ *+' conftest.er1 >conftest.err
17998   rm -f conftest.er1
17999   cat conftest.err >&5
18000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001   (exit $ac_status); } &&
18002          { ac_try='test -z "$ac_c_werror_flag"
18003                          || test ! -s conftest.err'
18004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005   (eval $ac_try) 2>&5
18006   ac_status=$?
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); }; } &&
18009          { ac_try='test -s conftest$ac_exeext'
18010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011   (eval $ac_try) 2>&5
18012   ac_status=$?
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); }; }; then
18015   LIBS=$ac_save_LIBS
18016 # We can link X programs with no special library path.
18017 ac_x_libraries=
18018 else
18019   echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18021
18022 LIBS=$ac_save_LIBS
18023 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18024 do
18025   # Don't even attempt the hair of trying to link an X program!
18026   for ac_extension in a so sl; do
18027     if test -r $ac_dir/libXt.$ac_extension; then
18028       ac_x_libraries=$ac_dir
18029       break 2
18030     fi
18031   done
18032 done
18033 fi
18034 rm -f conftest.err conftest.$ac_objext \
18035       conftest$ac_exeext conftest.$ac_ext
18036 fi # $ac_x_libraries = no
18037
18038 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18039   # Didn't find X anywhere.  Cache the known absence of X.
18040   ac_cv_have_x="have_x=no"
18041 else
18042   # Record where we found X for the cache.
18043   ac_cv_have_x="have_x=yes \
18044                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18045 fi
18046 fi
18047
18048   fi
18049   eval "$ac_cv_have_x"
18050 fi # $with_x != no
18051
18052 if test "$have_x" != yes; then
18053   echo "$as_me:$LINENO: result: $have_x" >&5
18054 echo "${ECHO_T}$have_x" >&6
18055   no_x=yes
18056 else
18057   # If each of the values was on the command line, it overrides each guess.
18058   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18059   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18060   # Update the cache value to reflect the command line values.
18061   ac_cv_have_x="have_x=yes \
18062                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18063   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18064 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
18065 fi
18066
18067 if test "$no_x" = yes; then
18068   # Not all programs may use this symbol, but it does not hurt to define it.
18069
18070 cat >>confdefs.h <<\_ACEOF
18071 #define X_DISPLAY_MISSING 1
18072 _ACEOF
18073
18074   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18075 else
18076   if test -n "$x_includes"; then
18077     X_CFLAGS="$X_CFLAGS -I$x_includes"
18078   fi
18079
18080   # It would also be nice to do this for all -L options, not just this one.
18081   if test -n "$x_libraries"; then
18082     X_LIBS="$X_LIBS -L$x_libraries"
18083     # For Solaris; some versions of Sun CC require a space after -R and
18084     # others require no space.  Words are not sufficient . . . .
18085     case `(uname -sr) 2>/dev/null` in
18086     "SunOS 5"*)
18087       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18088 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
18089       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18090       cat >conftest.$ac_ext <<_ACEOF
18091 /* confdefs.h.  */
18092 _ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h.  */
18096
18097 int
18098 main ()
18099 {
18100
18101   ;
18102   return 0;
18103 }
18104 _ACEOF
18105 rm -f conftest.$ac_objext conftest$ac_exeext
18106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18107   (eval $ac_link) 2>conftest.er1
18108   ac_status=$?
18109   grep -v '^ *+' conftest.er1 >conftest.err
18110   rm -f conftest.er1
18111   cat conftest.err >&5
18112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113   (exit $ac_status); } &&
18114          { ac_try='test -z "$ac_c_werror_flag"
18115                          || test ! -s conftest.err'
18116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117   (eval $ac_try) 2>&5
18118   ac_status=$?
18119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120   (exit $ac_status); }; } &&
18121          { ac_try='test -s conftest$ac_exeext'
18122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123   (eval $ac_try) 2>&5
18124   ac_status=$?
18125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126   (exit $ac_status); }; }; then
18127   ac_R_nospace=yes
18128 else
18129   echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18131
18132 ac_R_nospace=no
18133 fi
18134 rm -f conftest.err conftest.$ac_objext \
18135       conftest$ac_exeext conftest.$ac_ext
18136       if test $ac_R_nospace = yes; then
18137         echo "$as_me:$LINENO: result: no" >&5
18138 echo "${ECHO_T}no" >&6
18139         X_LIBS="$X_LIBS -R$x_libraries"
18140       else
18141         LIBS="$ac_xsave_LIBS -R $x_libraries"
18142         cat >conftest.$ac_ext <<_ACEOF
18143 /* confdefs.h.  */
18144 _ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h.  */
18148
18149 int
18150 main ()
18151 {
18152
18153   ;
18154   return 0;
18155 }
18156 _ACEOF
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18159   (eval $ac_link) 2>conftest.er1
18160   ac_status=$?
18161   grep -v '^ *+' conftest.er1 >conftest.err
18162   rm -f conftest.er1
18163   cat conftest.err >&5
18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165   (exit $ac_status); } &&
18166          { ac_try='test -z "$ac_c_werror_flag"
18167                          || test ! -s conftest.err'
18168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169   (eval $ac_try) 2>&5
18170   ac_status=$?
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); }; } &&
18173          { ac_try='test -s conftest$ac_exeext'
18174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175   (eval $ac_try) 2>&5
18176   ac_status=$?
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); }; }; then
18179   ac_R_space=yes
18180 else
18181   echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18183
18184 ac_R_space=no
18185 fi
18186 rm -f conftest.err conftest.$ac_objext \
18187       conftest$ac_exeext conftest.$ac_ext
18188         if test $ac_R_space = yes; then
18189           echo "$as_me:$LINENO: result: yes" >&5
18190 echo "${ECHO_T}yes" >&6
18191           X_LIBS="$X_LIBS -R $x_libraries"
18192         else
18193           echo "$as_me:$LINENO: result: neither works" >&5
18194 echo "${ECHO_T}neither works" >&6
18195         fi
18196       fi
18197       LIBS=$ac_xsave_LIBS
18198     esac
18199   fi
18200
18201   # Check for system-dependent libraries X programs must link with.
18202   # Do this before checking for the system-independent R6 libraries
18203   # (-lICE), since we may need -lsocket or whatever for X linking.
18204
18205   if test "$ISC" = yes; then
18206     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18207   else
18208     # Martyn Johnson says this is needed for Ultrix, if the X
18209     # libraries were built with DECnet support.  And Karl Berry says
18210     # the Alpha needs dnet_stub (dnet does not exist).
18211     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18212     cat >conftest.$ac_ext <<_ACEOF
18213 /* confdefs.h.  */
18214 _ACEOF
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h.  */
18218
18219 /* Override any gcc2 internal prototype to avoid an error.  */
18220 #ifdef __cplusplus
18221 extern "C"
18222 #endif
18223 /* We use char because int might match the return type of a gcc2
18224    builtin and then its argument prototype would still apply.  */
18225 char XOpenDisplay ();
18226 int
18227 main ()
18228 {
18229 XOpenDisplay ();
18230   ;
18231   return 0;
18232 }
18233 _ACEOF
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18236   (eval $ac_link) 2>conftest.er1
18237   ac_status=$?
18238   grep -v '^ *+' conftest.er1 >conftest.err
18239   rm -f conftest.er1
18240   cat conftest.err >&5
18241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242   (exit $ac_status); } &&
18243          { ac_try='test -z "$ac_c_werror_flag"
18244                          || test ! -s conftest.err'
18245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246   (eval $ac_try) 2>&5
18247   ac_status=$?
18248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249   (exit $ac_status); }; } &&
18250          { ac_try='test -s conftest$ac_exeext'
18251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252   (eval $ac_try) 2>&5
18253   ac_status=$?
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); }; }; then
18256   :
18257 else
18258   echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18260
18261 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18262 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18263 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18264   echo $ECHO_N "(cached) $ECHO_C" >&6
18265 else
18266   ac_check_lib_save_LIBS=$LIBS
18267 LIBS="-ldnet  $LIBS"
18268 cat >conftest.$ac_ext <<_ACEOF
18269 /* confdefs.h.  */
18270 _ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h.  */
18274
18275 /* Override any gcc2 internal prototype to avoid an error.  */
18276 #ifdef __cplusplus
18277 extern "C"
18278 #endif
18279 /* We use char because int might match the return type of a gcc2
18280    builtin and then its argument prototype would still apply.  */
18281 char dnet_ntoa ();
18282 int
18283 main ()
18284 {
18285 dnet_ntoa ();
18286   ;
18287   return 0;
18288 }
18289 _ACEOF
18290 rm -f conftest.$ac_objext conftest$ac_exeext
18291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18292   (eval $ac_link) 2>conftest.er1
18293   ac_status=$?
18294   grep -v '^ *+' conftest.er1 >conftest.err
18295   rm -f conftest.er1
18296   cat conftest.err >&5
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); } &&
18299          { ac_try='test -z "$ac_c_werror_flag"
18300                          || test ! -s conftest.err'
18301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302   (eval $ac_try) 2>&5
18303   ac_status=$?
18304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305   (exit $ac_status); }; } &&
18306          { ac_try='test -s conftest$ac_exeext'
18307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308   (eval $ac_try) 2>&5
18309   ac_status=$?
18310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311   (exit $ac_status); }; }; then
18312   ac_cv_lib_dnet_dnet_ntoa=yes
18313 else
18314   echo "$as_me: failed program was:" >&5
18315 sed 's/^/| /' conftest.$ac_ext >&5
18316
18317 ac_cv_lib_dnet_dnet_ntoa=no
18318 fi
18319 rm -f conftest.err conftest.$ac_objext \
18320       conftest$ac_exeext conftest.$ac_ext
18321 LIBS=$ac_check_lib_save_LIBS
18322 fi
18323 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18324 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18325 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18326   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18327 fi
18328
18329     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18330       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18331 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18332 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18333   echo $ECHO_N "(cached) $ECHO_C" >&6
18334 else
18335   ac_check_lib_save_LIBS=$LIBS
18336 LIBS="-ldnet_stub  $LIBS"
18337 cat >conftest.$ac_ext <<_ACEOF
18338 /* confdefs.h.  */
18339 _ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h.  */
18343
18344 /* Override any gcc2 internal prototype to avoid an error.  */
18345 #ifdef __cplusplus
18346 extern "C"
18347 #endif
18348 /* We use char because int might match the return type of a gcc2
18349    builtin and then its argument prototype would still apply.  */
18350 char dnet_ntoa ();
18351 int
18352 main ()
18353 {
18354 dnet_ntoa ();
18355   ;
18356   return 0;
18357 }
18358 _ACEOF
18359 rm -f conftest.$ac_objext conftest$ac_exeext
18360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18361   (eval $ac_link) 2>conftest.er1
18362   ac_status=$?
18363   grep -v '^ *+' conftest.er1 >conftest.err
18364   rm -f conftest.er1
18365   cat conftest.err >&5
18366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367   (exit $ac_status); } &&
18368          { ac_try='test -z "$ac_c_werror_flag"
18369                          || test ! -s conftest.err'
18370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371   (eval $ac_try) 2>&5
18372   ac_status=$?
18373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374   (exit $ac_status); }; } &&
18375          { ac_try='test -s conftest$ac_exeext'
18376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377   (eval $ac_try) 2>&5
18378   ac_status=$?
18379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380   (exit $ac_status); }; }; then
18381   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18382 else
18383   echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18385
18386 ac_cv_lib_dnet_stub_dnet_ntoa=no
18387 fi
18388 rm -f conftest.err conftest.$ac_objext \
18389       conftest$ac_exeext conftest.$ac_ext
18390 LIBS=$ac_check_lib_save_LIBS
18391 fi
18392 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18393 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18394 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18395   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18396 fi
18397
18398     fi
18399 fi
18400 rm -f conftest.err conftest.$ac_objext \
18401       conftest$ac_exeext conftest.$ac_ext
18402     LIBS="$ac_xsave_LIBS"
18403
18404     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18405     # to get the SysV transport functions.
18406     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18407     # needs -lnsl.
18408     # The nsl library prevents programs from opening the X display
18409     # on Irix 5.2, according to T.E. Dickey.
18410     # The functions gethostbyname, getservbyname, and inet_addr are
18411     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18412     echo "$as_me:$LINENO: checking for gethostbyname" >&5
18413 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18414 if test "${ac_cv_func_gethostbyname+set}" = set; then
18415   echo $ECHO_N "(cached) $ECHO_C" >&6
18416 else
18417   cat >conftest.$ac_ext <<_ACEOF
18418 /* confdefs.h.  */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h.  */
18423 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18425 #define gethostbyname innocuous_gethostbyname
18426
18427 /* System header to define __stub macros and hopefully few prototypes,
18428     which can conflict with char gethostbyname (); below.
18429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18430     <limits.h> exists even on freestanding compilers.  */
18431
18432 #ifdef __STDC__
18433 # include <limits.h>
18434 #else
18435 # include <assert.h>
18436 #endif
18437
18438 #undef gethostbyname
18439
18440 /* Override any gcc2 internal prototype to avoid an error.  */
18441 #ifdef __cplusplus
18442 extern "C"
18443 {
18444 #endif
18445 /* We use char because int might match the return type of a gcc2
18446    builtin and then its argument prototype would still apply.  */
18447 char gethostbyname ();
18448 /* The GNU C library defines this for functions which it implements
18449     to always fail with ENOSYS.  Some functions are actually named
18450     something starting with __ and the normal name is an alias.  */
18451 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18452 choke me
18453 #else
18454 char (*f) () = gethostbyname;
18455 #endif
18456 #ifdef __cplusplus
18457 }
18458 #endif
18459
18460 int
18461 main ()
18462 {
18463 return f != gethostbyname;
18464   ;
18465   return 0;
18466 }
18467 _ACEOF
18468 rm -f conftest.$ac_objext conftest$ac_exeext
18469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18470   (eval $ac_link) 2>conftest.er1
18471   ac_status=$?
18472   grep -v '^ *+' conftest.er1 >conftest.err
18473   rm -f conftest.er1
18474   cat conftest.err >&5
18475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476   (exit $ac_status); } &&
18477          { ac_try='test -z "$ac_c_werror_flag"
18478                          || test ! -s conftest.err'
18479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480   (eval $ac_try) 2>&5
18481   ac_status=$?
18482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); }; } &&
18484          { ac_try='test -s conftest$ac_exeext'
18485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486   (eval $ac_try) 2>&5
18487   ac_status=$?
18488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489   (exit $ac_status); }; }; then
18490   ac_cv_func_gethostbyname=yes
18491 else
18492   echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.$ac_ext >&5
18494
18495 ac_cv_func_gethostbyname=no
18496 fi
18497 rm -f conftest.err conftest.$ac_objext \
18498       conftest$ac_exeext conftest.$ac_ext
18499 fi
18500 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18501 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18502
18503     if test $ac_cv_func_gethostbyname = no; then
18504       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18505 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18506 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18507   echo $ECHO_N "(cached) $ECHO_C" >&6
18508 else
18509   ac_check_lib_save_LIBS=$LIBS
18510 LIBS="-lnsl  $LIBS"
18511 cat >conftest.$ac_ext <<_ACEOF
18512 /* confdefs.h.  */
18513 _ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h.  */
18517
18518 /* Override any gcc2 internal prototype to avoid an error.  */
18519 #ifdef __cplusplus
18520 extern "C"
18521 #endif
18522 /* We use char because int might match the return type of a gcc2
18523    builtin and then its argument prototype would still apply.  */
18524 char gethostbyname ();
18525 int
18526 main ()
18527 {
18528 gethostbyname ();
18529   ;
18530   return 0;
18531 }
18532 _ACEOF
18533 rm -f conftest.$ac_objext conftest$ac_exeext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18535   (eval $ac_link) 2>conftest.er1
18536   ac_status=$?
18537   grep -v '^ *+' conftest.er1 >conftest.err
18538   rm -f conftest.er1
18539   cat conftest.err >&5
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); } &&
18542          { ac_try='test -z "$ac_c_werror_flag"
18543                          || test ! -s conftest.err'
18544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545   (eval $ac_try) 2>&5
18546   ac_status=$?
18547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548   (exit $ac_status); }; } &&
18549          { ac_try='test -s conftest$ac_exeext'
18550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551   (eval $ac_try) 2>&5
18552   ac_status=$?
18553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554   (exit $ac_status); }; }; then
18555   ac_cv_lib_nsl_gethostbyname=yes
18556 else
18557   echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18559
18560 ac_cv_lib_nsl_gethostbyname=no
18561 fi
18562 rm -f conftest.err conftest.$ac_objext \
18563       conftest$ac_exeext conftest.$ac_ext
18564 LIBS=$ac_check_lib_save_LIBS
18565 fi
18566 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18567 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18568 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18569   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18570 fi
18571
18572       if test $ac_cv_lib_nsl_gethostbyname = no; then
18573         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18574 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18575 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18576   echo $ECHO_N "(cached) $ECHO_C" >&6
18577 else
18578   ac_check_lib_save_LIBS=$LIBS
18579 LIBS="-lbsd  $LIBS"
18580 cat >conftest.$ac_ext <<_ACEOF
18581 /* confdefs.h.  */
18582 _ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h.  */
18586
18587 /* Override any gcc2 internal prototype to avoid an error.  */
18588 #ifdef __cplusplus
18589 extern "C"
18590 #endif
18591 /* We use char because int might match the return type of a gcc2
18592    builtin and then its argument prototype would still apply.  */
18593 char gethostbyname ();
18594 int
18595 main ()
18596 {
18597 gethostbyname ();
18598   ;
18599   return 0;
18600 }
18601 _ACEOF
18602 rm -f conftest.$ac_objext conftest$ac_exeext
18603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18604   (eval $ac_link) 2>conftest.er1
18605   ac_status=$?
18606   grep -v '^ *+' conftest.er1 >conftest.err
18607   rm -f conftest.er1
18608   cat conftest.err >&5
18609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610   (exit $ac_status); } &&
18611          { ac_try='test -z "$ac_c_werror_flag"
18612                          || test ! -s conftest.err'
18613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614   (eval $ac_try) 2>&5
18615   ac_status=$?
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); }; } &&
18618          { ac_try='test -s conftest$ac_exeext'
18619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620   (eval $ac_try) 2>&5
18621   ac_status=$?
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); }; }; then
18624   ac_cv_lib_bsd_gethostbyname=yes
18625 else
18626   echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18628
18629 ac_cv_lib_bsd_gethostbyname=no
18630 fi
18631 rm -f conftest.err conftest.$ac_objext \
18632       conftest$ac_exeext conftest.$ac_ext
18633 LIBS=$ac_check_lib_save_LIBS
18634 fi
18635 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18636 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18637 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18638   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18639 fi
18640
18641       fi
18642     fi
18643
18644     # lieder@skyler.mavd.honeywell.com says without -lsocket,
18645     # socket/setsockopt and other routines are undefined under SCO ODT
18646     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18647     # on later versions), says Simon Leinen: it contains gethostby*
18648     # variants that don't use the name server (or something).  -lsocket
18649     # must be given before -lnsl if both are needed.  We assume that
18650     # if connect needs -lnsl, so does gethostbyname.
18651     echo "$as_me:$LINENO: checking for connect" >&5
18652 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18653 if test "${ac_cv_func_connect+set}" = set; then
18654   echo $ECHO_N "(cached) $ECHO_C" >&6
18655 else
18656   cat >conftest.$ac_ext <<_ACEOF
18657 /* confdefs.h.  */
18658 _ACEOF
18659 cat confdefs.h >>conftest.$ac_ext
18660 cat >>conftest.$ac_ext <<_ACEOF
18661 /* end confdefs.h.  */
18662 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18664 #define connect innocuous_connect
18665
18666 /* System header to define __stub macros and hopefully few prototypes,
18667     which can conflict with char connect (); below.
18668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18669     <limits.h> exists even on freestanding compilers.  */
18670
18671 #ifdef __STDC__
18672 # include <limits.h>
18673 #else
18674 # include <assert.h>
18675 #endif
18676
18677 #undef connect
18678
18679 /* Override any gcc2 internal prototype to avoid an error.  */
18680 #ifdef __cplusplus
18681 extern "C"
18682 {
18683 #endif
18684 /* We use char because int might match the return type of a gcc2
18685    builtin and then its argument prototype would still apply.  */
18686 char connect ();
18687 /* The GNU C library defines this for functions which it implements
18688     to always fail with ENOSYS.  Some functions are actually named
18689     something starting with __ and the normal name is an alias.  */
18690 #if defined (__stub_connect) || defined (__stub___connect)
18691 choke me
18692 #else
18693 char (*f) () = connect;
18694 #endif
18695 #ifdef __cplusplus
18696 }
18697 #endif
18698
18699 int
18700 main ()
18701 {
18702 return f != connect;
18703   ;
18704   return 0;
18705 }
18706 _ACEOF
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18709   (eval $ac_link) 2>conftest.er1
18710   ac_status=$?
18711   grep -v '^ *+' conftest.er1 >conftest.err
18712   rm -f conftest.er1
18713   cat conftest.err >&5
18714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715   (exit $ac_status); } &&
18716          { ac_try='test -z "$ac_c_werror_flag"
18717                          || test ! -s conftest.err'
18718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719   (eval $ac_try) 2>&5
18720   ac_status=$?
18721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722   (exit $ac_status); }; } &&
18723          { ac_try='test -s conftest$ac_exeext'
18724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725   (eval $ac_try) 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); }; }; then
18729   ac_cv_func_connect=yes
18730 else
18731   echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18733
18734 ac_cv_func_connect=no
18735 fi
18736 rm -f conftest.err conftest.$ac_objext \
18737       conftest$ac_exeext conftest.$ac_ext
18738 fi
18739 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18740 echo "${ECHO_T}$ac_cv_func_connect" >&6
18741
18742     if test $ac_cv_func_connect = no; then
18743       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18744 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18745 if test "${ac_cv_lib_socket_connect+set}" = set; then
18746   echo $ECHO_N "(cached) $ECHO_C" >&6
18747 else
18748   ac_check_lib_save_LIBS=$LIBS
18749 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18750 cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h.  */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h.  */
18756
18757 /* Override any gcc2 internal prototype to avoid an error.  */
18758 #ifdef __cplusplus
18759 extern "C"
18760 #endif
18761 /* We use char because int might match the return type of a gcc2
18762    builtin and then its argument prototype would still apply.  */
18763 char connect ();
18764 int
18765 main ()
18766 {
18767 connect ();
18768   ;
18769   return 0;
18770 }
18771 _ACEOF
18772 rm -f conftest.$ac_objext conftest$ac_exeext
18773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18774   (eval $ac_link) 2>conftest.er1
18775   ac_status=$?
18776   grep -v '^ *+' conftest.er1 >conftest.err
18777   rm -f conftest.er1
18778   cat conftest.err >&5
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); } &&
18781          { ac_try='test -z "$ac_c_werror_flag"
18782                          || test ! -s conftest.err'
18783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784   (eval $ac_try) 2>&5
18785   ac_status=$?
18786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787   (exit $ac_status); }; } &&
18788          { ac_try='test -s conftest$ac_exeext'
18789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790   (eval $ac_try) 2>&5
18791   ac_status=$?
18792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793   (exit $ac_status); }; }; then
18794   ac_cv_lib_socket_connect=yes
18795 else
18796   echo "$as_me: failed program was:" >&5
18797 sed 's/^/| /' conftest.$ac_ext >&5
18798
18799 ac_cv_lib_socket_connect=no
18800 fi
18801 rm -f conftest.err conftest.$ac_objext \
18802       conftest$ac_exeext conftest.$ac_ext
18803 LIBS=$ac_check_lib_save_LIBS
18804 fi
18805 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18806 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18807 if test $ac_cv_lib_socket_connect = yes; then
18808   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18809 fi
18810
18811     fi
18812
18813     # Guillermo Gomez says -lposix is necessary on A/UX.
18814     echo "$as_me:$LINENO: checking for remove" >&5
18815 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18816 if test "${ac_cv_func_remove+set}" = set; then
18817   echo $ECHO_N "(cached) $ECHO_C" >&6
18818 else
18819   cat >conftest.$ac_ext <<_ACEOF
18820 /* confdefs.h.  */
18821 _ACEOF
18822 cat confdefs.h >>conftest.$ac_ext
18823 cat >>conftest.$ac_ext <<_ACEOF
18824 /* end confdefs.h.  */
18825 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18827 #define remove innocuous_remove
18828
18829 /* System header to define __stub macros and hopefully few prototypes,
18830     which can conflict with char remove (); below.
18831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18832     <limits.h> exists even on freestanding compilers.  */
18833
18834 #ifdef __STDC__
18835 # include <limits.h>
18836 #else
18837 # include <assert.h>
18838 #endif
18839
18840 #undef remove
18841
18842 /* Override any gcc2 internal prototype to avoid an error.  */
18843 #ifdef __cplusplus
18844 extern "C"
18845 {
18846 #endif
18847 /* We use char because int might match the return type of a gcc2
18848    builtin and then its argument prototype would still apply.  */
18849 char remove ();
18850 /* The GNU C library defines this for functions which it implements
18851     to always fail with ENOSYS.  Some functions are actually named
18852     something starting with __ and the normal name is an alias.  */
18853 #if defined (__stub_remove) || defined (__stub___remove)
18854 choke me
18855 #else
18856 char (*f) () = remove;
18857 #endif
18858 #ifdef __cplusplus
18859 }
18860 #endif
18861
18862 int
18863 main ()
18864 {
18865 return f != remove;
18866   ;
18867   return 0;
18868 }
18869 _ACEOF
18870 rm -f conftest.$ac_objext conftest$ac_exeext
18871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18872   (eval $ac_link) 2>conftest.er1
18873   ac_status=$?
18874   grep -v '^ *+' conftest.er1 >conftest.err
18875   rm -f conftest.er1
18876   cat conftest.err >&5
18877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878   (exit $ac_status); } &&
18879          { ac_try='test -z "$ac_c_werror_flag"
18880                          || test ! -s conftest.err'
18881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18882   (eval $ac_try) 2>&5
18883   ac_status=$?
18884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885   (exit $ac_status); }; } &&
18886          { ac_try='test -s conftest$ac_exeext'
18887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888   (eval $ac_try) 2>&5
18889   ac_status=$?
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); }; }; then
18892   ac_cv_func_remove=yes
18893 else
18894   echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18896
18897 ac_cv_func_remove=no
18898 fi
18899 rm -f conftest.err conftest.$ac_objext \
18900       conftest$ac_exeext conftest.$ac_ext
18901 fi
18902 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18903 echo "${ECHO_T}$ac_cv_func_remove" >&6
18904
18905     if test $ac_cv_func_remove = no; then
18906       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18907 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18908 if test "${ac_cv_lib_posix_remove+set}" = set; then
18909   echo $ECHO_N "(cached) $ECHO_C" >&6
18910 else
18911   ac_check_lib_save_LIBS=$LIBS
18912 LIBS="-lposix  $LIBS"
18913 cat >conftest.$ac_ext <<_ACEOF
18914 /* confdefs.h.  */
18915 _ACEOF
18916 cat confdefs.h >>conftest.$ac_ext
18917 cat >>conftest.$ac_ext <<_ACEOF
18918 /* end confdefs.h.  */
18919
18920 /* Override any gcc2 internal prototype to avoid an error.  */
18921 #ifdef __cplusplus
18922 extern "C"
18923 #endif
18924 /* We use char because int might match the return type of a gcc2
18925    builtin and then its argument prototype would still apply.  */
18926 char remove ();
18927 int
18928 main ()
18929 {
18930 remove ();
18931   ;
18932   return 0;
18933 }
18934 _ACEOF
18935 rm -f conftest.$ac_objext conftest$ac_exeext
18936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18937   (eval $ac_link) 2>conftest.er1
18938   ac_status=$?
18939   grep -v '^ *+' conftest.er1 >conftest.err
18940   rm -f conftest.er1
18941   cat conftest.err >&5
18942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943   (exit $ac_status); } &&
18944          { ac_try='test -z "$ac_c_werror_flag"
18945                          || test ! -s conftest.err'
18946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947   (eval $ac_try) 2>&5
18948   ac_status=$?
18949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950   (exit $ac_status); }; } &&
18951          { ac_try='test -s conftest$ac_exeext'
18952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953   (eval $ac_try) 2>&5
18954   ac_status=$?
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); }; }; then
18957   ac_cv_lib_posix_remove=yes
18958 else
18959   echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18961
18962 ac_cv_lib_posix_remove=no
18963 fi
18964 rm -f conftest.err conftest.$ac_objext \
18965       conftest$ac_exeext conftest.$ac_ext
18966 LIBS=$ac_check_lib_save_LIBS
18967 fi
18968 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18969 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18970 if test $ac_cv_lib_posix_remove = yes; then
18971   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18972 fi
18973
18974     fi
18975
18976     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18977     echo "$as_me:$LINENO: checking for shmat" >&5
18978 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18979 if test "${ac_cv_func_shmat+set}" = set; then
18980   echo $ECHO_N "(cached) $ECHO_C" >&6
18981 else
18982   cat >conftest.$ac_ext <<_ACEOF
18983 /* confdefs.h.  */
18984 _ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h.  */
18988 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18990 #define shmat innocuous_shmat
18991
18992 /* System header to define __stub macros and hopefully few prototypes,
18993     which can conflict with char shmat (); below.
18994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18995     <limits.h> exists even on freestanding compilers.  */
18996
18997 #ifdef __STDC__
18998 # include <limits.h>
18999 #else
19000 # include <assert.h>
19001 #endif
19002
19003 #undef shmat
19004
19005 /* Override any gcc2 internal prototype to avoid an error.  */
19006 #ifdef __cplusplus
19007 extern "C"
19008 {
19009 #endif
19010 /* We use char because int might match the return type of a gcc2
19011    builtin and then its argument prototype would still apply.  */
19012 char shmat ();
19013 /* The GNU C library defines this for functions which it implements
19014     to always fail with ENOSYS.  Some functions are actually named
19015     something starting with __ and the normal name is an alias.  */
19016 #if defined (__stub_shmat) || defined (__stub___shmat)
19017 choke me
19018 #else
19019 char (*f) () = shmat;
19020 #endif
19021 #ifdef __cplusplus
19022 }
19023 #endif
19024
19025 int
19026 main ()
19027 {
19028 return f != shmat;
19029   ;
19030   return 0;
19031 }
19032 _ACEOF
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19035   (eval $ac_link) 2>conftest.er1
19036   ac_status=$?
19037   grep -v '^ *+' conftest.er1 >conftest.err
19038   rm -f conftest.er1
19039   cat conftest.err >&5
19040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041   (exit $ac_status); } &&
19042          { ac_try='test -z "$ac_c_werror_flag"
19043                          || test ! -s conftest.err'
19044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19045   (eval $ac_try) 2>&5
19046   ac_status=$?
19047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048   (exit $ac_status); }; } &&
19049          { ac_try='test -s conftest$ac_exeext'
19050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19051   (eval $ac_try) 2>&5
19052   ac_status=$?
19053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054   (exit $ac_status); }; }; then
19055   ac_cv_func_shmat=yes
19056 else
19057   echo "$as_me: failed program was:" >&5
19058 sed 's/^/| /' conftest.$ac_ext >&5
19059
19060 ac_cv_func_shmat=no
19061 fi
19062 rm -f conftest.err conftest.$ac_objext \
19063       conftest$ac_exeext conftest.$ac_ext
19064 fi
19065 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19066 echo "${ECHO_T}$ac_cv_func_shmat" >&6
19067
19068     if test $ac_cv_func_shmat = no; then
19069       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19070 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
19071 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19072   echo $ECHO_N "(cached) $ECHO_C" >&6
19073 else
19074   ac_check_lib_save_LIBS=$LIBS
19075 LIBS="-lipc  $LIBS"
19076 cat >conftest.$ac_ext <<_ACEOF
19077 /* confdefs.h.  */
19078 _ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h.  */
19082
19083 /* Override any gcc2 internal prototype to avoid an error.  */
19084 #ifdef __cplusplus
19085 extern "C"
19086 #endif
19087 /* We use char because int might match the return type of a gcc2
19088    builtin and then its argument prototype would still apply.  */
19089 char shmat ();
19090 int
19091 main ()
19092 {
19093 shmat ();
19094   ;
19095   return 0;
19096 }
19097 _ACEOF
19098 rm -f conftest.$ac_objext conftest$ac_exeext
19099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19100   (eval $ac_link) 2>conftest.er1
19101   ac_status=$?
19102   grep -v '^ *+' conftest.er1 >conftest.err
19103   rm -f conftest.er1
19104   cat conftest.err >&5
19105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106   (exit $ac_status); } &&
19107          { ac_try='test -z "$ac_c_werror_flag"
19108                          || test ! -s conftest.err'
19109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110   (eval $ac_try) 2>&5
19111   ac_status=$?
19112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113   (exit $ac_status); }; } &&
19114          { ac_try='test -s conftest$ac_exeext'
19115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116   (eval $ac_try) 2>&5
19117   ac_status=$?
19118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119   (exit $ac_status); }; }; then
19120   ac_cv_lib_ipc_shmat=yes
19121 else
19122   echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19124
19125 ac_cv_lib_ipc_shmat=no
19126 fi
19127 rm -f conftest.err conftest.$ac_objext \
19128       conftest$ac_exeext conftest.$ac_ext
19129 LIBS=$ac_check_lib_save_LIBS
19130 fi
19131 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19132 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
19133 if test $ac_cv_lib_ipc_shmat = yes; then
19134   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19135 fi
19136
19137     fi
19138   fi
19139
19140   # Check for libraries that X11R6 Xt/Xaw programs need.
19141   ac_save_LDFLAGS=$LDFLAGS
19142   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19143   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19144   # check for ICE first), but we must link in the order -lSM -lICE or
19145   # we get undefined symbols.  So assume we have SM if we have ICE.
19146   # These have to be linked with before -lX11, unlike the other
19147   # libraries we check for below, so use a different variable.
19148   # John Interrante, Karl Berry
19149   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19150 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
19151 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19152   echo $ECHO_N "(cached) $ECHO_C" >&6
19153 else
19154   ac_check_lib_save_LIBS=$LIBS
19155 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19156 cat >conftest.$ac_ext <<_ACEOF
19157 /* confdefs.h.  */
19158 _ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h.  */
19162
19163 /* Override any gcc2 internal prototype to avoid an error.  */
19164 #ifdef __cplusplus
19165 extern "C"
19166 #endif
19167 /* We use char because int might match the return type of a gcc2
19168    builtin and then its argument prototype would still apply.  */
19169 char IceConnectionNumber ();
19170 int
19171 main ()
19172 {
19173 IceConnectionNumber ();
19174   ;
19175   return 0;
19176 }
19177 _ACEOF
19178 rm -f conftest.$ac_objext conftest$ac_exeext
19179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19180   (eval $ac_link) 2>conftest.er1
19181   ac_status=$?
19182   grep -v '^ *+' conftest.er1 >conftest.err
19183   rm -f conftest.er1
19184   cat conftest.err >&5
19185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186   (exit $ac_status); } &&
19187          { ac_try='test -z "$ac_c_werror_flag"
19188                          || test ! -s conftest.err'
19189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190   (eval $ac_try) 2>&5
19191   ac_status=$?
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); }; } &&
19194          { ac_try='test -s conftest$ac_exeext'
19195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196   (eval $ac_try) 2>&5
19197   ac_status=$?
19198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199   (exit $ac_status); }; }; then
19200   ac_cv_lib_ICE_IceConnectionNumber=yes
19201 else
19202   echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19204
19205 ac_cv_lib_ICE_IceConnectionNumber=no
19206 fi
19207 rm -f conftest.err conftest.$ac_objext \
19208       conftest$ac_exeext conftest.$ac_ext
19209 LIBS=$ac_check_lib_save_LIBS
19210 fi
19211 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19212 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
19213 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19214   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19215 fi
19216
19217   LDFLAGS=$ac_save_LDFLAGS
19218
19219 fi
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249 for ac_header in \
19250         assert.h \
19251         fcntl.h \
19252         grp.h \
19253         pwd.h \
19254         libc.h \
19255         limits.h \
19256         stdarg.h \
19257         stdlib.h \
19258         stdint.h \
19259         string.h \
19260         termios.h \
19261         termcap.h \
19262         term.h \
19263         unistd.h \
19264         sys/bitypes.h \
19265         sys/byteorder.h \
19266         sys/ioctl.h \
19267         sys/select.h \
19268         sys/sockio.h \
19269         sys/time.h \
19270         sys/socket.h \
19271         arpa/nameser.h \
19272         resolv.h \
19273         mtio.h \
19274         sys/mtio.h \
19275         sys/tape.h \
19276         regex.h \
19277
19278 do
19279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19281   echo "$as_me:$LINENO: checking for $ac_header" >&5
19282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19284   echo $ECHO_N "(cached) $ECHO_C" >&6
19285 fi
19286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19288 else
19289   # Is the header compilable?
19290 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19292 cat >conftest.$ac_ext <<_ACEOF
19293 /* confdefs.h.  */
19294 _ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h.  */
19298 $ac_includes_default
19299 #include <$ac_header>
19300 _ACEOF
19301 rm -f conftest.$ac_objext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19303   (eval $ac_compile) 2>conftest.er1
19304   ac_status=$?
19305   grep -v '^ *+' conftest.er1 >conftest.err
19306   rm -f conftest.er1
19307   cat conftest.err >&5
19308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309   (exit $ac_status); } &&
19310          { ac_try='test -z "$ac_c_werror_flag"
19311                          || test ! -s conftest.err'
19312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313   (eval $ac_try) 2>&5
19314   ac_status=$?
19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316   (exit $ac_status); }; } &&
19317          { ac_try='test -s conftest.$ac_objext'
19318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319   (eval $ac_try) 2>&5
19320   ac_status=$?
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); }; }; then
19323   ac_header_compiler=yes
19324 else
19325   echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19327
19328 ac_header_compiler=no
19329 fi
19330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19332 echo "${ECHO_T}$ac_header_compiler" >&6
19333
19334 # Is the header present?
19335 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19337 cat >conftest.$ac_ext <<_ACEOF
19338 /* confdefs.h.  */
19339 _ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h.  */
19343 #include <$ac_header>
19344 _ACEOF
19345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19346   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19347   ac_status=$?
19348   grep -v '^ *+' conftest.er1 >conftest.err
19349   rm -f conftest.er1
19350   cat conftest.err >&5
19351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352   (exit $ac_status); } >/dev/null; then
19353   if test -s conftest.err; then
19354     ac_cpp_err=$ac_c_preproc_warn_flag
19355     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19356   else
19357     ac_cpp_err=
19358   fi
19359 else
19360   ac_cpp_err=yes
19361 fi
19362 if test -z "$ac_cpp_err"; then
19363   ac_header_preproc=yes
19364 else
19365   echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19367
19368   ac_header_preproc=no
19369 fi
19370 rm -f conftest.err conftest.$ac_ext
19371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19372 echo "${ECHO_T}$ac_header_preproc" >&6
19373
19374 # So?  What about this header?
19375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19376   yes:no: )
19377     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19381     ac_header_preproc=yes
19382     ;;
19383   no:yes:* )
19384     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19386     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19387 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19388     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19390     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19391 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19394     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19396     (
19397       cat <<\_ASBOX
19398 ## ------------------------------------------ ##
19399 ## Report this to the AC_PACKAGE_NAME lists.  ##
19400 ## ------------------------------------------ ##
19401 _ASBOX
19402     ) |
19403       sed "s/^/$as_me: WARNING:     /" >&2
19404     ;;
19405 esac
19406 echo "$as_me:$LINENO: checking for $ac_header" >&5
19407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19409   echo $ECHO_N "(cached) $ECHO_C" >&6
19410 else
19411   eval "$as_ac_Header=\$ac_header_preproc"
19412 fi
19413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19415
19416 fi
19417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19418   cat >>confdefs.h <<_ACEOF
19419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19420 _ACEOF
19421
19422 fi
19423
19424 done
19425
19426 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19427 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19428 if test "${ac_cv_header_stdc+set}" = set; then
19429   echo $ECHO_N "(cached) $ECHO_C" >&6
19430 else
19431   cat >conftest.$ac_ext <<_ACEOF
19432 /* confdefs.h.  */
19433 _ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h.  */
19437 #include <stdlib.h>
19438 #include <stdarg.h>
19439 #include <string.h>
19440 #include <float.h>
19441
19442 int
19443 main ()
19444 {
19445
19446   ;
19447   return 0;
19448 }
19449 _ACEOF
19450 rm -f conftest.$ac_objext
19451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19452   (eval $ac_compile) 2>conftest.er1
19453   ac_status=$?
19454   grep -v '^ *+' conftest.er1 >conftest.err
19455   rm -f conftest.er1
19456   cat conftest.err >&5
19457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458   (exit $ac_status); } &&
19459          { ac_try='test -z "$ac_c_werror_flag"
19460                          || test ! -s conftest.err'
19461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462   (eval $ac_try) 2>&5
19463   ac_status=$?
19464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); }; } &&
19466          { ac_try='test -s conftest.$ac_objext'
19467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468   (eval $ac_try) 2>&5
19469   ac_status=$?
19470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); }; }; then
19472   ac_cv_header_stdc=yes
19473 else
19474   echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19476
19477 ac_cv_header_stdc=no
19478 fi
19479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19480
19481 if test $ac_cv_header_stdc = yes; then
19482   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19483   cat >conftest.$ac_ext <<_ACEOF
19484 /* confdefs.h.  */
19485 _ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h.  */
19489 #include <string.h>
19490
19491 _ACEOF
19492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19493   $EGREP "memchr" >/dev/null 2>&1; then
19494   :
19495 else
19496   ac_cv_header_stdc=no
19497 fi
19498 rm -f conftest*
19499
19500 fi
19501
19502 if test $ac_cv_header_stdc = yes; then
19503   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19504   cat >conftest.$ac_ext <<_ACEOF
19505 /* confdefs.h.  */
19506 _ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h.  */
19510 #include <stdlib.h>
19511
19512 _ACEOF
19513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19514   $EGREP "free" >/dev/null 2>&1; then
19515   :
19516 else
19517   ac_cv_header_stdc=no
19518 fi
19519 rm -f conftest*
19520
19521 fi
19522
19523 if test $ac_cv_header_stdc = yes; then
19524   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19525   if test "$cross_compiling" = yes; then
19526   :
19527 else
19528   cat >conftest.$ac_ext <<_ACEOF
19529 /* confdefs.h.  */
19530 _ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h.  */
19534 #include <ctype.h>
19535 #if ((' ' & 0x0FF) == 0x020)
19536 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19537 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19538 #else
19539 # define ISLOWER(c) \
19540                    (('a' <= (c) && (c) <= 'i') \
19541                      || ('j' <= (c) && (c) <= 'r') \
19542                      || ('s' <= (c) && (c) <= 'z'))
19543 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19544 #endif
19545
19546 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19547 int
19548 main ()
19549 {
19550   int i;
19551   for (i = 0; i < 256; i++)
19552     if (XOR (islower (i), ISLOWER (i))
19553         || toupper (i) != TOUPPER (i))
19554       exit(2);
19555   exit (0);
19556 }
19557 _ACEOF
19558 rm -f conftest$ac_exeext
19559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19560   (eval $ac_link) 2>&5
19561   ac_status=$?
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565   (eval $ac_try) 2>&5
19566   ac_status=$?
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); }; }; then
19569   :
19570 else
19571   echo "$as_me: program exited with status $ac_status" >&5
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19574
19575 ( exit $ac_status )
19576 ac_cv_header_stdc=no
19577 fi
19578 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19579 fi
19580 fi
19581 fi
19582 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19583 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19584 if test $ac_cv_header_stdc = yes; then
19585
19586 cat >>confdefs.h <<\_ACEOF
19587 #define STDC_HEADERS 1
19588 _ACEOF
19589
19590 fi
19591
19592 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19593 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19594 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19595   echo $ECHO_N "(cached) $ECHO_C" >&6
19596 else
19597   cat >conftest.$ac_ext <<_ACEOF
19598 /* confdefs.h.  */
19599 _ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h.  */
19603 #include <sys/types.h>
19604 int
19605 main ()
19606 {
19607 return makedev(0, 0);
19608   ;
19609   return 0;
19610 }
19611 _ACEOF
19612 rm -f conftest.$ac_objext conftest$ac_exeext
19613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19614   (eval $ac_link) 2>conftest.er1
19615   ac_status=$?
19616   grep -v '^ *+' conftest.er1 >conftest.err
19617   rm -f conftest.er1
19618   cat conftest.err >&5
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); } &&
19621          { ac_try='test -z "$ac_c_werror_flag"
19622                          || test ! -s conftest.err'
19623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624   (eval $ac_try) 2>&5
19625   ac_status=$?
19626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); }; } &&
19628          { ac_try='test -s conftest$ac_exeext'
19629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630   (eval $ac_try) 2>&5
19631   ac_status=$?
19632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); }; }; then
19634   ac_cv_header_sys_types_h_makedev=yes
19635 else
19636   echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19638
19639 ac_cv_header_sys_types_h_makedev=no
19640 fi
19641 rm -f conftest.err conftest.$ac_objext \
19642       conftest$ac_exeext conftest.$ac_ext
19643
19644 fi
19645 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19646 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19647
19648 if test $ac_cv_header_sys_types_h_makedev = no; then
19649 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19650   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19651 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19652 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19653   echo $ECHO_N "(cached) $ECHO_C" >&6
19654 fi
19655 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19656 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19657 else
19658   # Is the header compilable?
19659 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19660 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19661 cat >conftest.$ac_ext <<_ACEOF
19662 /* confdefs.h.  */
19663 _ACEOF
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h.  */
19667 $ac_includes_default
19668 #include <sys/mkdev.h>
19669 _ACEOF
19670 rm -f conftest.$ac_objext
19671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19672   (eval $ac_compile) 2>conftest.er1
19673   ac_status=$?
19674   grep -v '^ *+' conftest.er1 >conftest.err
19675   rm -f conftest.er1
19676   cat conftest.err >&5
19677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678   (exit $ac_status); } &&
19679          { ac_try='test -z "$ac_c_werror_flag"
19680                          || test ! -s conftest.err'
19681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682   (eval $ac_try) 2>&5
19683   ac_status=$?
19684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685   (exit $ac_status); }; } &&
19686          { ac_try='test -s conftest.$ac_objext'
19687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688   (eval $ac_try) 2>&5
19689   ac_status=$?
19690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691   (exit $ac_status); }; }; then
19692   ac_header_compiler=yes
19693 else
19694   echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19696
19697 ac_header_compiler=no
19698 fi
19699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19701 echo "${ECHO_T}$ac_header_compiler" >&6
19702
19703 # Is the header present?
19704 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19705 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19706 cat >conftest.$ac_ext <<_ACEOF
19707 /* confdefs.h.  */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h.  */
19712 #include <sys/mkdev.h>
19713 _ACEOF
19714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19715   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19716   ac_status=$?
19717   grep -v '^ *+' conftest.er1 >conftest.err
19718   rm -f conftest.er1
19719   cat conftest.err >&5
19720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721   (exit $ac_status); } >/dev/null; then
19722   if test -s conftest.err; then
19723     ac_cpp_err=$ac_c_preproc_warn_flag
19724     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19725   else
19726     ac_cpp_err=
19727   fi
19728 else
19729   ac_cpp_err=yes
19730 fi
19731 if test -z "$ac_cpp_err"; then
19732   ac_header_preproc=yes
19733 else
19734   echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19736
19737   ac_header_preproc=no
19738 fi
19739 rm -f conftest.err conftest.$ac_ext
19740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19741 echo "${ECHO_T}$ac_header_preproc" >&6
19742
19743 # So?  What about this header?
19744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19745   yes:no: )
19746     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19747 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19748     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19749 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19750     ac_header_preproc=yes
19751     ;;
19752   no:yes:* )
19753     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19754 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19755     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
19756 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
19757     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19758 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19759     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
19760 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19761     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19762 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19763     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19764 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19765     (
19766       cat <<\_ASBOX
19767 ## ------------------------------------------ ##
19768 ## Report this to the AC_PACKAGE_NAME lists.  ##
19769 ## ------------------------------------------ ##
19770 _ASBOX
19771     ) |
19772       sed "s/^/$as_me: WARNING:     /" >&2
19773     ;;
19774 esac
19775 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19776 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19777 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19778   echo $ECHO_N "(cached) $ECHO_C" >&6
19779 else
19780   ac_cv_header_sys_mkdev_h=$ac_header_preproc
19781 fi
19782 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19783 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19784
19785 fi
19786 if test $ac_cv_header_sys_mkdev_h = yes; then
19787
19788 cat >>confdefs.h <<\_ACEOF
19789 #define MAJOR_IN_MKDEV 1
19790 _ACEOF
19791
19792 fi
19793
19794
19795
19796   if test $ac_cv_header_sys_mkdev_h = no; then
19797     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19798   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19799 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19800 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19801   echo $ECHO_N "(cached) $ECHO_C" >&6
19802 fi
19803 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19804 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19805 else
19806   # Is the header compilable?
19807 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19808 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19809 cat >conftest.$ac_ext <<_ACEOF
19810 /* confdefs.h.  */
19811 _ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h.  */
19815 $ac_includes_default
19816 #include <sys/sysmacros.h>
19817 _ACEOF
19818 rm -f conftest.$ac_objext
19819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19820   (eval $ac_compile) 2>conftest.er1
19821   ac_status=$?
19822   grep -v '^ *+' conftest.er1 >conftest.err
19823   rm -f conftest.er1
19824   cat conftest.err >&5
19825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826   (exit $ac_status); } &&
19827          { ac_try='test -z "$ac_c_werror_flag"
19828                          || test ! -s conftest.err'
19829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830   (eval $ac_try) 2>&5
19831   ac_status=$?
19832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833   (exit $ac_status); }; } &&
19834          { ac_try='test -s conftest.$ac_objext'
19835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836   (eval $ac_try) 2>&5
19837   ac_status=$?
19838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839   (exit $ac_status); }; }; then
19840   ac_header_compiler=yes
19841 else
19842   echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19844
19845 ac_header_compiler=no
19846 fi
19847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19849 echo "${ECHO_T}$ac_header_compiler" >&6
19850
19851 # Is the header present?
19852 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19853 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19854 cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h.  */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h.  */
19860 #include <sys/sysmacros.h>
19861 _ACEOF
19862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19863   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19864   ac_status=$?
19865   grep -v '^ *+' conftest.er1 >conftest.err
19866   rm -f conftest.er1
19867   cat conftest.err >&5
19868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869   (exit $ac_status); } >/dev/null; then
19870   if test -s conftest.err; then
19871     ac_cpp_err=$ac_c_preproc_warn_flag
19872     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19873   else
19874     ac_cpp_err=
19875   fi
19876 else
19877   ac_cpp_err=yes
19878 fi
19879 if test -z "$ac_cpp_err"; then
19880   ac_header_preproc=yes
19881 else
19882   echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19884
19885   ac_header_preproc=no
19886 fi
19887 rm -f conftest.err conftest.$ac_ext
19888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19889 echo "${ECHO_T}$ac_header_preproc" >&6
19890
19891 # So?  What about this header?
19892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19893   yes:no: )
19894     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19895 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19896     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19897 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19898     ac_header_preproc=yes
19899     ;;
19900   no:yes:* )
19901     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19902 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19903     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
19904 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
19905     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19906 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19907     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
19908 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19909     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19910 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19911     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19912 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19913     (
19914       cat <<\_ASBOX
19915 ## ------------------------------------------ ##
19916 ## Report this to the AC_PACKAGE_NAME lists.  ##
19917 ## ------------------------------------------ ##
19918 _ASBOX
19919     ) |
19920       sed "s/^/$as_me: WARNING:     /" >&2
19921     ;;
19922 esac
19923 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19924 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19925 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19926   echo $ECHO_N "(cached) $ECHO_C" >&6
19927 else
19928   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19929 fi
19930 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19931 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19932
19933 fi
19934 if test $ac_cv_header_sys_sysmacros_h = yes; then
19935
19936 cat >>confdefs.h <<\_ACEOF
19937 #define MAJOR_IN_SYSMACROS 1
19938 _ACEOF
19939
19940 fi
19941
19942
19943   fi
19944 fi
19945
19946
19947
19948
19949
19950
19951 ac_header_dirent=no
19952 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19953   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19954 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19955 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19957   echo $ECHO_N "(cached) $ECHO_C" >&6
19958 else
19959   cat >conftest.$ac_ext <<_ACEOF
19960 /* confdefs.h.  */
19961 _ACEOF
19962 cat confdefs.h >>conftest.$ac_ext
19963 cat >>conftest.$ac_ext <<_ACEOF
19964 /* end confdefs.h.  */
19965 #include <sys/types.h>
19966 #include <$ac_hdr>
19967
19968 int
19969 main ()
19970 {
19971 if ((DIR *) 0)
19972 return 0;
19973   ;
19974   return 0;
19975 }
19976 _ACEOF
19977 rm -f conftest.$ac_objext
19978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19979   (eval $ac_compile) 2>conftest.er1
19980   ac_status=$?
19981   grep -v '^ *+' conftest.er1 >conftest.err
19982   rm -f conftest.er1
19983   cat conftest.err >&5
19984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985   (exit $ac_status); } &&
19986          { ac_try='test -z "$ac_c_werror_flag"
19987                          || test ! -s conftest.err'
19988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989   (eval $ac_try) 2>&5
19990   ac_status=$?
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); }; } &&
19993          { ac_try='test -s conftest.$ac_objext'
19994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995   (eval $ac_try) 2>&5
19996   ac_status=$?
19997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998   (exit $ac_status); }; }; then
19999   eval "$as_ac_Header=yes"
20000 else
20001   echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20003
20004 eval "$as_ac_Header=no"
20005 fi
20006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20007 fi
20008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20011   cat >>confdefs.h <<_ACEOF
20012 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20013 _ACEOF
20014
20015 ac_header_dirent=$ac_hdr; break
20016 fi
20017
20018 done
20019 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20020 if test $ac_header_dirent = dirent.h; then
20021   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20022 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20023 if test "${ac_cv_search_opendir+set}" = set; then
20024   echo $ECHO_N "(cached) $ECHO_C" >&6
20025 else
20026   ac_func_search_save_LIBS=$LIBS
20027 ac_cv_search_opendir=no
20028 cat >conftest.$ac_ext <<_ACEOF
20029 /* confdefs.h.  */
20030 _ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h.  */
20034
20035 /* Override any gcc2 internal prototype to avoid an error.  */
20036 #ifdef __cplusplus
20037 extern "C"
20038 #endif
20039 /* We use char because int might match the return type of a gcc2
20040    builtin and then its argument prototype would still apply.  */
20041 char opendir ();
20042 int
20043 main ()
20044 {
20045 opendir ();
20046   ;
20047   return 0;
20048 }
20049 _ACEOF
20050 rm -f conftest.$ac_objext conftest$ac_exeext
20051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20052   (eval $ac_link) 2>conftest.er1
20053   ac_status=$?
20054   grep -v '^ *+' conftest.er1 >conftest.err
20055   rm -f conftest.er1
20056   cat conftest.err >&5
20057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058   (exit $ac_status); } &&
20059          { ac_try='test -z "$ac_c_werror_flag"
20060                          || test ! -s conftest.err'
20061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062   (eval $ac_try) 2>&5
20063   ac_status=$?
20064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); }; } &&
20066          { ac_try='test -s conftest$ac_exeext'
20067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068   (eval $ac_try) 2>&5
20069   ac_status=$?
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); }; }; then
20072   ac_cv_search_opendir="none required"
20073 else
20074   echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20076
20077 fi
20078 rm -f conftest.err conftest.$ac_objext \
20079       conftest$ac_exeext conftest.$ac_ext
20080 if test "$ac_cv_search_opendir" = no; then
20081   for ac_lib in dir; do
20082     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20083     cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h.  */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h.  */
20089
20090 /* Override any gcc2 internal prototype to avoid an error.  */
20091 #ifdef __cplusplus
20092 extern "C"
20093 #endif
20094 /* We use char because int might match the return type of a gcc2
20095    builtin and then its argument prototype would still apply.  */
20096 char opendir ();
20097 int
20098 main ()
20099 {
20100 opendir ();
20101   ;
20102   return 0;
20103 }
20104 _ACEOF
20105 rm -f conftest.$ac_objext conftest$ac_exeext
20106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20107   (eval $ac_link) 2>conftest.er1
20108   ac_status=$?
20109   grep -v '^ *+' conftest.er1 >conftest.err
20110   rm -f conftest.er1
20111   cat conftest.err >&5
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); } &&
20114          { ac_try='test -z "$ac_c_werror_flag"
20115                          || test ! -s conftest.err'
20116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117   (eval $ac_try) 2>&5
20118   ac_status=$?
20119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120   (exit $ac_status); }; } &&
20121          { ac_try='test -s conftest$ac_exeext'
20122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20123   (eval $ac_try) 2>&5
20124   ac_status=$?
20125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126   (exit $ac_status); }; }; then
20127   ac_cv_search_opendir="-l$ac_lib"
20128 break
20129 else
20130   echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20132
20133 fi
20134 rm -f conftest.err conftest.$ac_objext \
20135       conftest$ac_exeext conftest.$ac_ext
20136   done
20137 fi
20138 LIBS=$ac_func_search_save_LIBS
20139 fi
20140 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20141 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20142 if test "$ac_cv_search_opendir" != no; then
20143   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20144
20145 fi
20146
20147 else
20148   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20149 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20150 if test "${ac_cv_search_opendir+set}" = set; then
20151   echo $ECHO_N "(cached) $ECHO_C" >&6
20152 else
20153   ac_func_search_save_LIBS=$LIBS
20154 ac_cv_search_opendir=no
20155 cat >conftest.$ac_ext <<_ACEOF
20156 /* confdefs.h.  */
20157 _ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h.  */
20161
20162 /* Override any gcc2 internal prototype to avoid an error.  */
20163 #ifdef __cplusplus
20164 extern "C"
20165 #endif
20166 /* We use char because int might match the return type of a gcc2
20167    builtin and then its argument prototype would still apply.  */
20168 char opendir ();
20169 int
20170 main ()
20171 {
20172 opendir ();
20173   ;
20174   return 0;
20175 }
20176 _ACEOF
20177 rm -f conftest.$ac_objext conftest$ac_exeext
20178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20179   (eval $ac_link) 2>conftest.er1
20180   ac_status=$?
20181   grep -v '^ *+' conftest.er1 >conftest.err
20182   rm -f conftest.er1
20183   cat conftest.err >&5
20184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185   (exit $ac_status); } &&
20186          { ac_try='test -z "$ac_c_werror_flag"
20187                          || test ! -s conftest.err'
20188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20189   (eval $ac_try) 2>&5
20190   ac_status=$?
20191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192   (exit $ac_status); }; } &&
20193          { ac_try='test -s conftest$ac_exeext'
20194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195   (eval $ac_try) 2>&5
20196   ac_status=$?
20197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); }; }; then
20199   ac_cv_search_opendir="none required"
20200 else
20201   echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20203
20204 fi
20205 rm -f conftest.err conftest.$ac_objext \
20206       conftest$ac_exeext conftest.$ac_ext
20207 if test "$ac_cv_search_opendir" = no; then
20208   for ac_lib in x; do
20209     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20210     cat >conftest.$ac_ext <<_ACEOF
20211 /* confdefs.h.  */
20212 _ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h.  */
20216
20217 /* Override any gcc2 internal prototype to avoid an error.  */
20218 #ifdef __cplusplus
20219 extern "C"
20220 #endif
20221 /* We use char because int might match the return type of a gcc2
20222    builtin and then its argument prototype would still apply.  */
20223 char opendir ();
20224 int
20225 main ()
20226 {
20227 opendir ();
20228   ;
20229   return 0;
20230 }
20231 _ACEOF
20232 rm -f conftest.$ac_objext conftest$ac_exeext
20233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20234   (eval $ac_link) 2>conftest.er1
20235   ac_status=$?
20236   grep -v '^ *+' conftest.er1 >conftest.err
20237   rm -f conftest.er1
20238   cat conftest.err >&5
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); } &&
20241          { ac_try='test -z "$ac_c_werror_flag"
20242                          || test ! -s conftest.err'
20243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244   (eval $ac_try) 2>&5
20245   ac_status=$?
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); }; } &&
20248          { ac_try='test -s conftest$ac_exeext'
20249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250   (eval $ac_try) 2>&5
20251   ac_status=$?
20252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253   (exit $ac_status); }; }; then
20254   ac_cv_search_opendir="-l$ac_lib"
20255 break
20256 else
20257   echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20259
20260 fi
20261 rm -f conftest.err conftest.$ac_objext \
20262       conftest$ac_exeext conftest.$ac_ext
20263   done
20264 fi
20265 LIBS=$ac_func_search_save_LIBS
20266 fi
20267 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20268 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20269 if test "$ac_cv_search_opendir" != no; then
20270   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20271
20272 fi
20273
20274 fi
20275
20276 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20277 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20278 if test "${ac_cv_header_stat_broken+set}" = set; then
20279   echo $ECHO_N "(cached) $ECHO_C" >&6
20280 else
20281   cat >conftest.$ac_ext <<_ACEOF
20282 /* confdefs.h.  */
20283 _ACEOF
20284 cat confdefs.h >>conftest.$ac_ext
20285 cat >>conftest.$ac_ext <<_ACEOF
20286 /* end confdefs.h.  */
20287 #include <sys/types.h>
20288 #include <sys/stat.h>
20289
20290 #if defined(S_ISBLK) && defined(S_IFDIR)
20291 # if S_ISBLK (S_IFDIR)
20292 You lose.
20293 # endif
20294 #endif
20295
20296 #if defined(S_ISBLK) && defined(S_IFCHR)
20297 # if S_ISBLK (S_IFCHR)
20298 You lose.
20299 # endif
20300 #endif
20301
20302 #if defined(S_ISLNK) && defined(S_IFREG)
20303 # if S_ISLNK (S_IFREG)
20304 You lose.
20305 # endif
20306 #endif
20307
20308 #if defined(S_ISSOCK) && defined(S_IFREG)
20309 # if S_ISSOCK (S_IFREG)
20310 You lose.
20311 # endif
20312 #endif
20313
20314 _ACEOF
20315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20316   $EGREP "You lose" >/dev/null 2>&1; then
20317   ac_cv_header_stat_broken=yes
20318 else
20319   ac_cv_header_stat_broken=no
20320 fi
20321 rm -f conftest*
20322
20323 fi
20324 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20325 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20326 if test $ac_cv_header_stat_broken = yes; then
20327
20328 cat >>confdefs.h <<\_ACEOF
20329 #define STAT_MACROS_BROKEN 1
20330 _ACEOF
20331
20332 fi
20333
20334 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20335 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20336 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20337   echo $ECHO_N "(cached) $ECHO_C" >&6
20338 else
20339   cat >conftest.$ac_ext <<_ACEOF
20340 /* confdefs.h.  */
20341 _ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h.  */
20345 #include <sys/types.h>
20346 #include <sys/wait.h>
20347 #ifndef WEXITSTATUS
20348 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20349 #endif
20350 #ifndef WIFEXITED
20351 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20352 #endif
20353
20354 int
20355 main ()
20356 {
20357   int s;
20358   wait (&s);
20359   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20360   ;
20361   return 0;
20362 }
20363 _ACEOF
20364 rm -f conftest.$ac_objext
20365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20366   (eval $ac_compile) 2>conftest.er1
20367   ac_status=$?
20368   grep -v '^ *+' conftest.er1 >conftest.err
20369   rm -f conftest.er1
20370   cat conftest.err >&5
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); } &&
20373          { ac_try='test -z "$ac_c_werror_flag"
20374                          || test ! -s conftest.err'
20375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376   (eval $ac_try) 2>&5
20377   ac_status=$?
20378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379   (exit $ac_status); }; } &&
20380          { ac_try='test -s conftest.$ac_objext'
20381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382   (eval $ac_try) 2>&5
20383   ac_status=$?
20384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385   (exit $ac_status); }; }; then
20386   ac_cv_header_sys_wait_h=yes
20387 else
20388   echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20390
20391 ac_cv_header_sys_wait_h=no
20392 fi
20393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20394 fi
20395 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20396 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20397 if test $ac_cv_header_sys_wait_h = yes; then
20398
20399 cat >>confdefs.h <<\_ACEOF
20400 #define HAVE_SYS_WAIT_H 1
20401 _ACEOF
20402
20403 fi
20404
20405 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20406 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20407 if test "${ac_cv_header_time+set}" = set; then
20408   echo $ECHO_N "(cached) $ECHO_C" >&6
20409 else
20410   cat >conftest.$ac_ext <<_ACEOF
20411 /* confdefs.h.  */
20412 _ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h.  */
20416 #include <sys/types.h>
20417 #include <sys/time.h>
20418 #include <time.h>
20419
20420 int
20421 main ()
20422 {
20423 if ((struct tm *) 0)
20424 return 0;
20425   ;
20426   return 0;
20427 }
20428 _ACEOF
20429 rm -f conftest.$ac_objext
20430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20431   (eval $ac_compile) 2>conftest.er1
20432   ac_status=$?
20433   grep -v '^ *+' conftest.er1 >conftest.err
20434   rm -f conftest.er1
20435   cat conftest.err >&5
20436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437   (exit $ac_status); } &&
20438          { ac_try='test -z "$ac_c_werror_flag"
20439                          || test ! -s conftest.err'
20440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441   (eval $ac_try) 2>&5
20442   ac_status=$?
20443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444   (exit $ac_status); }; } &&
20445          { ac_try='test -s conftest.$ac_objext'
20446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447   (eval $ac_try) 2>&5
20448   ac_status=$?
20449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450   (exit $ac_status); }; }; then
20451   ac_cv_header_time=yes
20452 else
20453   echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20455
20456 ac_cv_header_time=no
20457 fi
20458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20459 fi
20460 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20461 echo "${ECHO_T}$ac_cv_header_time" >&6
20462 if test $ac_cv_header_time = yes; then
20463
20464 cat >>confdefs.h <<\_ACEOF
20465 #define TIME_WITH_SYS_TIME 1
20466 _ACEOF
20467
20468 fi
20469
20470
20471 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20472 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20473 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20474   echo $ECHO_N "(cached) $ECHO_C" >&6
20475 else
20476   cat >conftest.$ac_ext <<_ACEOF
20477 /* confdefs.h.  */
20478 _ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h.  */
20482 $ac_includes_default
20483 int
20484 main ()
20485 {
20486 static struct stat ac_aggr;
20487 if (ac_aggr.st_blksize)
20488 return 0;
20489   ;
20490   return 0;
20491 }
20492 _ACEOF
20493 rm -f conftest.$ac_objext
20494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20495   (eval $ac_compile) 2>conftest.er1
20496   ac_status=$?
20497   grep -v '^ *+' conftest.er1 >conftest.err
20498   rm -f conftest.er1
20499   cat conftest.err >&5
20500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501   (exit $ac_status); } &&
20502          { ac_try='test -z "$ac_c_werror_flag"
20503                          || test ! -s conftest.err'
20504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20505   (eval $ac_try) 2>&5
20506   ac_status=$?
20507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508   (exit $ac_status); }; } &&
20509          { ac_try='test -s conftest.$ac_objext'
20510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511   (eval $ac_try) 2>&5
20512   ac_status=$?
20513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514   (exit $ac_status); }; }; then
20515   ac_cv_member_struct_stat_st_blksize=yes
20516 else
20517   echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20519
20520 cat >conftest.$ac_ext <<_ACEOF
20521 /* confdefs.h.  */
20522 _ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h.  */
20526 $ac_includes_default
20527 int
20528 main ()
20529 {
20530 static struct stat ac_aggr;
20531 if (sizeof ac_aggr.st_blksize)
20532 return 0;
20533   ;
20534   return 0;
20535 }
20536 _ACEOF
20537 rm -f conftest.$ac_objext
20538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20539   (eval $ac_compile) 2>conftest.er1
20540   ac_status=$?
20541   grep -v '^ *+' conftest.er1 >conftest.err
20542   rm -f conftest.er1
20543   cat conftest.err >&5
20544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); } &&
20546          { ac_try='test -z "$ac_c_werror_flag"
20547                          || test ! -s conftest.err'
20548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20549   (eval $ac_try) 2>&5
20550   ac_status=$?
20551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552   (exit $ac_status); }; } &&
20553          { ac_try='test -s conftest.$ac_objext'
20554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555   (eval $ac_try) 2>&5
20556   ac_status=$?
20557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558   (exit $ac_status); }; }; then
20559   ac_cv_member_struct_stat_st_blksize=yes
20560 else
20561   echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20563
20564 ac_cv_member_struct_stat_st_blksize=no
20565 fi
20566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20567 fi
20568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20569 fi
20570 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20571 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20572 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20573
20574 cat >>confdefs.h <<_ACEOF
20575 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20576 _ACEOF
20577
20578
20579 cat >>confdefs.h <<\_ACEOF
20580 #define HAVE_ST_BLKSIZE 1
20581 _ACEOF
20582
20583 fi
20584
20585
20586 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20587 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20588 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20589   echo $ECHO_N "(cached) $ECHO_C" >&6
20590 else
20591   cat >conftest.$ac_ext <<_ACEOF
20592 /* confdefs.h.  */
20593 _ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h.  */
20597 $ac_includes_default
20598 int
20599 main ()
20600 {
20601 static struct stat ac_aggr;
20602 if (ac_aggr.st_blocks)
20603 return 0;
20604   ;
20605   return 0;
20606 }
20607 _ACEOF
20608 rm -f conftest.$ac_objext
20609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20610   (eval $ac_compile) 2>conftest.er1
20611   ac_status=$?
20612   grep -v '^ *+' conftest.er1 >conftest.err
20613   rm -f conftest.er1
20614   cat conftest.err >&5
20615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); } &&
20617          { ac_try='test -z "$ac_c_werror_flag"
20618                          || test ! -s conftest.err'
20619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620   (eval $ac_try) 2>&5
20621   ac_status=$?
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); }; } &&
20624          { ac_try='test -s conftest.$ac_objext'
20625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626   (eval $ac_try) 2>&5
20627   ac_status=$?
20628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629   (exit $ac_status); }; }; then
20630   ac_cv_member_struct_stat_st_blocks=yes
20631 else
20632   echo "$as_me: failed program was:" >&5
20633 sed 's/^/| /' conftest.$ac_ext >&5
20634
20635 cat >conftest.$ac_ext <<_ACEOF
20636 /* confdefs.h.  */
20637 _ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h.  */
20641 $ac_includes_default
20642 int
20643 main ()
20644 {
20645 static struct stat ac_aggr;
20646 if (sizeof ac_aggr.st_blocks)
20647 return 0;
20648   ;
20649   return 0;
20650 }
20651 _ACEOF
20652 rm -f conftest.$ac_objext
20653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20654   (eval $ac_compile) 2>conftest.er1
20655   ac_status=$?
20656   grep -v '^ *+' conftest.er1 >conftest.err
20657   rm -f conftest.er1
20658   cat conftest.err >&5
20659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660   (exit $ac_status); } &&
20661          { ac_try='test -z "$ac_c_werror_flag"
20662                          || test ! -s conftest.err'
20663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20664   (eval $ac_try) 2>&5
20665   ac_status=$?
20666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667   (exit $ac_status); }; } &&
20668          { ac_try='test -s conftest.$ac_objext'
20669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670   (eval $ac_try) 2>&5
20671   ac_status=$?
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); }; }; then
20674   ac_cv_member_struct_stat_st_blocks=yes
20675 else
20676   echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20678
20679 ac_cv_member_struct_stat_st_blocks=no
20680 fi
20681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20682 fi
20683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20684 fi
20685 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20686 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20687 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20688
20689 cat >>confdefs.h <<_ACEOF
20690 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20691 _ACEOF
20692
20693
20694 cat >>confdefs.h <<\_ACEOF
20695 #define HAVE_ST_BLOCKS 1
20696 _ACEOF
20697
20698 else
20699   case $LIBOBJS in
20700     "fileblocks.$ac_objext"   | \
20701   *" fileblocks.$ac_objext"   | \
20702     "fileblocks.$ac_objext "* | \
20703   *" fileblocks.$ac_objext "* ) ;;
20704   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20705 esac
20706
20707 fi
20708
20709
20710 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20711 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20712 if test "${ac_cv_struct_tm+set}" = set; then
20713   echo $ECHO_N "(cached) $ECHO_C" >&6
20714 else
20715   cat >conftest.$ac_ext <<_ACEOF
20716 /* confdefs.h.  */
20717 _ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h.  */
20721 #include <sys/types.h>
20722 #include <time.h>
20723
20724 int
20725 main ()
20726 {
20727 struct tm *tp; tp->tm_sec;
20728   ;
20729   return 0;
20730 }
20731 _ACEOF
20732 rm -f conftest.$ac_objext
20733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20734   (eval $ac_compile) 2>conftest.er1
20735   ac_status=$?
20736   grep -v '^ *+' conftest.er1 >conftest.err
20737   rm -f conftest.er1
20738   cat conftest.err >&5
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); } &&
20741          { ac_try='test -z "$ac_c_werror_flag"
20742                          || test ! -s conftest.err'
20743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744   (eval $ac_try) 2>&5
20745   ac_status=$?
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); }; } &&
20748          { ac_try='test -s conftest.$ac_objext'
20749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750   (eval $ac_try) 2>&5
20751   ac_status=$?
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); }; }; then
20754   ac_cv_struct_tm=time.h
20755 else
20756   echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20758
20759 ac_cv_struct_tm=sys/time.h
20760 fi
20761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20762 fi
20763 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20764 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20765 if test $ac_cv_struct_tm = sys/time.h; then
20766
20767 cat >>confdefs.h <<\_ACEOF
20768 #define TM_IN_SYS_TIME 1
20769 _ACEOF
20770
20771 fi
20772
20773 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20774 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20775 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20776   echo $ECHO_N "(cached) $ECHO_C" >&6
20777 else
20778   cat >conftest.$ac_ext <<_ACEOF
20779 /* confdefs.h.  */
20780 _ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h.  */
20784 #include <sys/types.h>
20785 #include <$ac_cv_struct_tm>
20786
20787
20788 int
20789 main ()
20790 {
20791 static struct tm ac_aggr;
20792 if (ac_aggr.tm_zone)
20793 return 0;
20794   ;
20795   return 0;
20796 }
20797 _ACEOF
20798 rm -f conftest.$ac_objext
20799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20800   (eval $ac_compile) 2>conftest.er1
20801   ac_status=$?
20802   grep -v '^ *+' conftest.er1 >conftest.err
20803   rm -f conftest.er1
20804   cat conftest.err >&5
20805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806   (exit $ac_status); } &&
20807          { ac_try='test -z "$ac_c_werror_flag"
20808                          || test ! -s conftest.err'
20809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810   (eval $ac_try) 2>&5
20811   ac_status=$?
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); }; } &&
20814          { ac_try='test -s conftest.$ac_objext'
20815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816   (eval $ac_try) 2>&5
20817   ac_status=$?
20818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819   (exit $ac_status); }; }; then
20820   ac_cv_member_struct_tm_tm_zone=yes
20821 else
20822   echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20824
20825 cat >conftest.$ac_ext <<_ACEOF
20826 /* confdefs.h.  */
20827 _ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h.  */
20831 #include <sys/types.h>
20832 #include <$ac_cv_struct_tm>
20833
20834
20835 int
20836 main ()
20837 {
20838 static struct tm ac_aggr;
20839 if (sizeof ac_aggr.tm_zone)
20840 return 0;
20841   ;
20842   return 0;
20843 }
20844 _ACEOF
20845 rm -f conftest.$ac_objext
20846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20847   (eval $ac_compile) 2>conftest.er1
20848   ac_status=$?
20849   grep -v '^ *+' conftest.er1 >conftest.err
20850   rm -f conftest.er1
20851   cat conftest.err >&5
20852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853   (exit $ac_status); } &&
20854          { ac_try='test -z "$ac_c_werror_flag"
20855                          || test ! -s conftest.err'
20856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20857   (eval $ac_try) 2>&5
20858   ac_status=$?
20859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860   (exit $ac_status); }; } &&
20861          { ac_try='test -s conftest.$ac_objext'
20862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20863   (eval $ac_try) 2>&5
20864   ac_status=$?
20865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866   (exit $ac_status); }; }; then
20867   ac_cv_member_struct_tm_tm_zone=yes
20868 else
20869   echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20871
20872 ac_cv_member_struct_tm_tm_zone=no
20873 fi
20874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20875 fi
20876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20877 fi
20878 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20879 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20880 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20881
20882 cat >>confdefs.h <<_ACEOF
20883 #define HAVE_STRUCT_TM_TM_ZONE 1
20884 _ACEOF
20885
20886
20887 fi
20888
20889 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20890
20891 cat >>confdefs.h <<\_ACEOF
20892 #define HAVE_TM_ZONE 1
20893 _ACEOF
20894
20895 else
20896   echo "$as_me:$LINENO: checking for tzname" >&5
20897 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20898 if test "${ac_cv_var_tzname+set}" = set; then
20899   echo $ECHO_N "(cached) $ECHO_C" >&6
20900 else
20901   cat >conftest.$ac_ext <<_ACEOF
20902 /* confdefs.h.  */
20903 _ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h.  */
20907 #include <time.h>
20908 #ifndef tzname /* For SGI.  */
20909 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
20910 #endif
20911
20912 int
20913 main ()
20914 {
20915 atoi(*tzname);
20916   ;
20917   return 0;
20918 }
20919 _ACEOF
20920 rm -f conftest.$ac_objext conftest$ac_exeext
20921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20922   (eval $ac_link) 2>conftest.er1
20923   ac_status=$?
20924   grep -v '^ *+' conftest.er1 >conftest.err
20925   rm -f conftest.er1
20926   cat conftest.err >&5
20927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928   (exit $ac_status); } &&
20929          { ac_try='test -z "$ac_c_werror_flag"
20930                          || test ! -s conftest.err'
20931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20932   (eval $ac_try) 2>&5
20933   ac_status=$?
20934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935   (exit $ac_status); }; } &&
20936          { ac_try='test -s conftest$ac_exeext'
20937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20938   (eval $ac_try) 2>&5
20939   ac_status=$?
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); }; }; then
20942   ac_cv_var_tzname=yes
20943 else
20944   echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20946
20947 ac_cv_var_tzname=no
20948 fi
20949 rm -f conftest.err conftest.$ac_objext \
20950       conftest$ac_exeext conftest.$ac_ext
20951 fi
20952 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20953 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20954   if test $ac_cv_var_tzname = yes; then
20955
20956 cat >>confdefs.h <<\_ACEOF
20957 #define HAVE_TZNAME 1
20958 _ACEOF
20959
20960   fi
20961 fi
20962
20963
20964 echo "$as_me:$LINENO: checking for utime.h" >&5
20965 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20966 if test "${ba_cv_header_utime_h+set}" = set; then
20967   echo $ECHO_N "(cached) $ECHO_C" >&6
20968 else
20969   cat >conftest.$ac_ext <<_ACEOF
20970 /* confdefs.h.  */
20971 _ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h.  */
20975
20976 #include <sys/types.h>
20977 #include <utime.h>
20978 int
20979 main ()
20980 {
20981 struct utimbuf foo
20982   ;
20983   return 0;
20984 }
20985 _ACEOF
20986 rm -f conftest.$ac_objext
20987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20988   (eval $ac_compile) 2>conftest.er1
20989   ac_status=$?
20990   grep -v '^ *+' conftest.er1 >conftest.err
20991   rm -f conftest.er1
20992   cat conftest.err >&5
20993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994   (exit $ac_status); } &&
20995          { ac_try='test -z "$ac_c_werror_flag"
20996                          || test ! -s conftest.err'
20997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20998   (eval $ac_try) 2>&5
20999   ac_status=$?
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); }; } &&
21002          { ac_try='test -s conftest.$ac_objext'
21003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004   (eval $ac_try) 2>&5
21005   ac_status=$?
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); }; }; then
21008   ba_cv_header_utime_h=yes
21009 else
21010   echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21012
21013 ba_cv_header_utime_h=no
21014 fi
21015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21016 fi
21017 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21018 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
21019 test $ba_cv_header_utime_h = yes &&
21020 cat >>confdefs.h <<\_ACEOF
21021 #define HAVE_UTIME_H 1
21022 _ACEOF
21023
21024
21025 echo "$as_me:$LINENO: checking for socklen_t" >&5
21026 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21027 if test "${ba_cv_header_socklen_t+set}" = set; then
21028   echo $ECHO_N "(cached) $ECHO_C" >&6
21029 else
21030   cat >conftest.$ac_ext <<_ACEOF
21031 /* confdefs.h.  */
21032 _ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h.  */
21036
21037 #include <sys/types.h>
21038 #include <sys/socket.h>
21039 int
21040 main ()
21041 {
21042 socklen_t x
21043   ;
21044   return 0;
21045 }
21046 _ACEOF
21047 rm -f conftest.$ac_objext
21048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21049   (eval $ac_compile) 2>conftest.er1
21050   ac_status=$?
21051   grep -v '^ *+' conftest.er1 >conftest.err
21052   rm -f conftest.er1
21053   cat conftest.err >&5
21054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055   (exit $ac_status); } &&
21056          { ac_try='test -z "$ac_c_werror_flag"
21057                          || test ! -s conftest.err'
21058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21059   (eval $ac_try) 2>&5
21060   ac_status=$?
21061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062   (exit $ac_status); }; } &&
21063          { ac_try='test -s conftest.$ac_objext'
21064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065   (eval $ac_try) 2>&5
21066   ac_status=$?
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); }; }; then
21069   ba_cv_header_socklen_t=yes
21070 else
21071   echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21073
21074 ba_cv_header_socklen_t=no
21075 fi
21076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21077 fi
21078 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21079 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
21080 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21081 #define HAVE_SOCKLEN_T 1
21082 _ACEOF
21083
21084
21085 echo "$as_me:$LINENO: checking for bigendian" >&5
21086 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
21087 if test "${ba_cv_bigendian+set}" = set; then
21088   echo $ECHO_N "(cached) $ECHO_C" >&6
21089 else
21090   if test "$cross_compiling" = yes; then
21091   ba_cv_bigendian=no
21092 else
21093   cat >conftest.$ac_ext <<_ACEOF
21094 /* confdefs.h.  */
21095 _ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h.  */
21099 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21100 _ACEOF
21101 rm -f conftest$ac_exeext
21102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21103   (eval $ac_link) 2>&5
21104   ac_status=$?
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108   (eval $ac_try) 2>&5
21109   ac_status=$?
21110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111   (exit $ac_status); }; }; then
21112   ba_cv_bigendian=yes
21113 else
21114   echo "$as_me: program exited with status $ac_status" >&5
21115 echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21117
21118 ( exit $ac_status )
21119 ba_cv_bigendian=no
21120 fi
21121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21122 fi
21123 fi
21124 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21125 echo "${ECHO_T}$ba_cv_bigendian" >&6
21126 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21127 #define HAVE_BIGENDIAN 1
21128 _ACEOF
21129
21130
21131 ac_ext=cc
21132 ac_cpp='$CXXCPP $CPPFLAGS'
21133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21136
21137
21138 echo "$as_me:$LINENO: checking for typeof" >&5
21139 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
21140 if test "${ba_cv_have_typeof+set}" = set; then
21141   echo $ECHO_N "(cached) $ECHO_C" >&6
21142 else
21143   if test "$cross_compiling" = yes; then
21144   ba_cv_have_typeof=no
21145 else
21146   cat >conftest.$ac_ext <<_ACEOF
21147 /* confdefs.h.  */
21148 _ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h.  */
21152 main(){char *a = 0; a = (typeof a)a;}
21153 _ACEOF
21154 rm -f conftest$ac_exeext
21155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21156   (eval $ac_link) 2>&5
21157   ac_status=$?
21158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161   (eval $ac_try) 2>&5
21162   ac_status=$?
21163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164   (exit $ac_status); }; }; then
21165   ba_cv_have_typeof=yes
21166 else
21167   echo "$as_me: program exited with status $ac_status" >&5
21168 echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21170
21171 ( exit $ac_status )
21172 ba_cv_have_typeof=no
21173 fi
21174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21175 fi
21176 fi
21177 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21178 echo "${ECHO_T}$ba_cv_have_typeof" >&6
21179 test $ba_cv_have_typeof = yes &&
21180 cat >>confdefs.h <<\_ACEOF
21181 #define HAVE_TYPEOF 1
21182 _ACEOF
21183
21184 ac_ext=c
21185 ac_cpp='$CPP $CPPFLAGS'
21186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21189
21190
21191 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21192 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21193 if test "${ac_cv_c_const+set}" = set; then
21194   echo $ECHO_N "(cached) $ECHO_C" >&6
21195 else
21196   cat >conftest.$ac_ext <<_ACEOF
21197 /* confdefs.h.  */
21198 _ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h.  */
21202
21203 int
21204 main ()
21205 {
21206 /* FIXME: Include the comments suggested by Paul. */
21207 #ifndef __cplusplus
21208   /* Ultrix mips cc rejects this.  */
21209   typedef int charset[2];
21210   const charset x;
21211   /* SunOS 4.1.1 cc rejects this.  */
21212   char const *const *ccp;
21213   char **p;
21214   /* NEC SVR4.0.2 mips cc rejects this.  */
21215   struct point {int x, y;};
21216   static struct point const zero = {0,0};
21217   /* AIX XL C 1.02.0.0 rejects this.
21218      It does not let you subtract one const X* pointer from another in
21219      an arm of an if-expression whose if-part is not a constant
21220      expression */
21221   const char *g = "string";
21222   ccp = &g + (g ? g-g : 0);
21223   /* HPUX 7.0 cc rejects these. */
21224   ++ccp;
21225   p = (char**) ccp;
21226   ccp = (char const *const *) p;
21227   { /* SCO 3.2v4 cc rejects this.  */
21228     char *t;
21229     char const *s = 0 ? (char *) 0 : (char const *) 0;
21230
21231     *t++ = 0;
21232   }
21233   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21234     int x[] = {25, 17};
21235     const int *foo = &x[0];
21236     ++foo;
21237   }
21238   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21239     typedef const int *iptr;
21240     iptr p = 0;
21241     ++p;
21242   }
21243   { /* AIX XL C 1.02.0.0 rejects this saying
21244        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21245     struct s { int j; const int *ap[3]; };
21246     struct s *b; b->j = 5;
21247   }
21248   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21249     const int foo = 10;
21250   }
21251 #endif
21252
21253   ;
21254   return 0;
21255 }
21256 _ACEOF
21257 rm -f conftest.$ac_objext
21258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21259   (eval $ac_compile) 2>conftest.er1
21260   ac_status=$?
21261   grep -v '^ *+' conftest.er1 >conftest.err
21262   rm -f conftest.er1
21263   cat conftest.err >&5
21264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265   (exit $ac_status); } &&
21266          { ac_try='test -z "$ac_c_werror_flag"
21267                          || test ! -s conftest.err'
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); }; } &&
21273          { ac_try='test -s conftest.$ac_objext'
21274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275   (eval $ac_try) 2>&5
21276   ac_status=$?
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); }; }; then
21279   ac_cv_c_const=yes
21280 else
21281   echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21283
21284 ac_cv_c_const=no
21285 fi
21286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21287 fi
21288 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21289 echo "${ECHO_T}$ac_cv_c_const" >&6
21290 if test $ac_cv_c_const = no; then
21291
21292 cat >>confdefs.h <<\_ACEOF
21293 #define const
21294 _ACEOF
21295
21296 fi
21297
21298
21299
21300 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21301 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21302 fstype=no
21303 # The order of these tests is important.
21304 cat >conftest.$ac_ext <<_ACEOF
21305 /* confdefs.h.  */
21306 _ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h.  */
21310 #include <sys/statvfs.h>
21311 #include <sys/fstyp.h>
21312 _ACEOF
21313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21314   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21315   ac_status=$?
21316   grep -v '^ *+' conftest.er1 >conftest.err
21317   rm -f conftest.er1
21318   cat conftest.err >&5
21319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320   (exit $ac_status); } >/dev/null; then
21321   if test -s conftest.err; then
21322     ac_cpp_err=$ac_c_preproc_warn_flag
21323     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21324   else
21325     ac_cpp_err=
21326   fi
21327 else
21328   ac_cpp_err=yes
21329 fi
21330 if test -z "$ac_cpp_err"; then
21331   cat >>confdefs.h <<\_ACEOF
21332 #define FSTYPE_STATVFS 1
21333 _ACEOF
21334  fstype=SVR4
21335 else
21336   echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21338
21339
21340 fi
21341 rm -f conftest.err conftest.$ac_ext
21342 if test $fstype = no; then
21343 cat >conftest.$ac_ext <<_ACEOF
21344 /* confdefs.h.  */
21345 _ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h.  */
21349 #include <sys/statfs.h>
21350 #include <sys/fstyp.h>
21351 _ACEOF
21352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21353   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21354   ac_status=$?
21355   grep -v '^ *+' conftest.er1 >conftest.err
21356   rm -f conftest.er1
21357   cat conftest.err >&5
21358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359   (exit $ac_status); } >/dev/null; then
21360   if test -s conftest.err; then
21361     ac_cpp_err=$ac_c_preproc_warn_flag
21362     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21363   else
21364     ac_cpp_err=
21365   fi
21366 else
21367   ac_cpp_err=yes
21368 fi
21369 if test -z "$ac_cpp_err"; then
21370   cat >>confdefs.h <<\_ACEOF
21371 #define FSTYPE_USG_STATFS 1
21372 _ACEOF
21373  fstype=SVR3
21374 else
21375   echo "$as_me: failed program was:" >&5
21376 sed 's/^/| /' conftest.$ac_ext >&5
21377
21378
21379 fi
21380 rm -f conftest.err conftest.$ac_ext
21381 fi
21382 if test $fstype = no; then
21383 cat >conftest.$ac_ext <<_ACEOF
21384 /* confdefs.h.  */
21385 _ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h.  */
21389 #include <sys/statfs.h>
21390 #include <sys/vmount.h>
21391 _ACEOF
21392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21394   ac_status=$?
21395   grep -v '^ *+' conftest.er1 >conftest.err
21396   rm -f conftest.er1
21397   cat conftest.err >&5
21398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399   (exit $ac_status); } >/dev/null; then
21400   if test -s conftest.err; then
21401     ac_cpp_err=$ac_c_preproc_warn_flag
21402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21403   else
21404     ac_cpp_err=
21405   fi
21406 else
21407   ac_cpp_err=yes
21408 fi
21409 if test -z "$ac_cpp_err"; then
21410   cat >>confdefs.h <<\_ACEOF
21411 #define FSTYPE_AIX_STATFS 1
21412 _ACEOF
21413  fstype=AIX
21414 else
21415   echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21417
21418
21419 fi
21420 rm -f conftest.err conftest.$ac_ext
21421 fi
21422 if test $fstype = no; then
21423 cat >conftest.$ac_ext <<_ACEOF
21424 /* confdefs.h.  */
21425 _ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h.  */
21429 #include <mntent.h>
21430 _ACEOF
21431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21432   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21433   ac_status=$?
21434   grep -v '^ *+' conftest.er1 >conftest.err
21435   rm -f conftest.er1
21436   cat conftest.err >&5
21437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438   (exit $ac_status); } >/dev/null; then
21439   if test -s conftest.err; then
21440     ac_cpp_err=$ac_c_preproc_warn_flag
21441     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21442   else
21443     ac_cpp_err=
21444   fi
21445 else
21446   ac_cpp_err=yes
21447 fi
21448 if test -z "$ac_cpp_err"; then
21449   cat >>confdefs.h <<\_ACEOF
21450 #define FSTYPE_MNTENT 1
21451 _ACEOF
21452  fstype=4.3BSD
21453 else
21454   echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21456
21457
21458 fi
21459 rm -f conftest.err conftest.$ac_ext
21460 fi
21461 if test $fstype = no; then
21462 cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h.  */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h.  */
21468 #include <sys/mount.h>
21469
21470 _ACEOF
21471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21472   $EGREP "f_type;" >/dev/null 2>&1; then
21473   cat >>confdefs.h <<\_ACEOF
21474 #define FSTYPE_STATFS 1
21475 _ACEOF
21476  fstype=4.4BSD/OSF1
21477 fi
21478 rm -f conftest*
21479
21480 fi
21481 if test $fstype = no; then
21482 cat >conftest.$ac_ext <<_ACEOF
21483 /* confdefs.h.  */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h.  */
21488 #include <sys/mount.h>
21489 #include <sys/fs_types.h>
21490 _ACEOF
21491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21492   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21493   ac_status=$?
21494   grep -v '^ *+' conftest.er1 >conftest.err
21495   rm -f conftest.er1
21496   cat conftest.err >&5
21497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498   (exit $ac_status); } >/dev/null; then
21499   if test -s conftest.err; then
21500     ac_cpp_err=$ac_c_preproc_warn_flag
21501     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21502   else
21503     ac_cpp_err=
21504   fi
21505 else
21506   ac_cpp_err=yes
21507 fi
21508 if test -z "$ac_cpp_err"; then
21509   cat >>confdefs.h <<\_ACEOF
21510 #define FSTYPE_GETMNT 1
21511 _ACEOF
21512  fstype=Ultrix
21513 else
21514   echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21516
21517
21518 fi
21519 rm -f conftest.err conftest.$ac_ext
21520 fi
21521 echo "$as_me:$LINENO: result: $fstype" >&5
21522 echo "${ECHO_T}$fstype" >&6
21523
21524 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21525   echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21526 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21527 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21528   echo $ECHO_N "(cached) $ECHO_C" >&6
21529 fi
21530 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21531 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21532 else
21533   # Is the header compilable?
21534 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21535 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21536 cat >conftest.$ac_ext <<_ACEOF
21537 /* confdefs.h.  */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h.  */
21542 $ac_includes_default
21543 #include <sys/statvfs.h>
21544 _ACEOF
21545 rm -f conftest.$ac_objext
21546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21547   (eval $ac_compile) 2>conftest.er1
21548   ac_status=$?
21549   grep -v '^ *+' conftest.er1 >conftest.err
21550   rm -f conftest.er1
21551   cat conftest.err >&5
21552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553   (exit $ac_status); } &&
21554          { ac_try='test -z "$ac_c_werror_flag"
21555                          || test ! -s conftest.err'
21556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557   (eval $ac_try) 2>&5
21558   ac_status=$?
21559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560   (exit $ac_status); }; } &&
21561          { ac_try='test -s conftest.$ac_objext'
21562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563   (eval $ac_try) 2>&5
21564   ac_status=$?
21565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); }; }; then
21567   ac_header_compiler=yes
21568 else
21569   echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.$ac_ext >&5
21571
21572 ac_header_compiler=no
21573 fi
21574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21575 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21576 echo "${ECHO_T}$ac_header_compiler" >&6
21577
21578 # Is the header present?
21579 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21580 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21581 cat >conftest.$ac_ext <<_ACEOF
21582 /* confdefs.h.  */
21583 _ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h.  */
21587 #include <sys/statvfs.h>
21588 _ACEOF
21589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21590   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21591   ac_status=$?
21592   grep -v '^ *+' conftest.er1 >conftest.err
21593   rm -f conftest.er1
21594   cat conftest.err >&5
21595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596   (exit $ac_status); } >/dev/null; then
21597   if test -s conftest.err; then
21598     ac_cpp_err=$ac_c_preproc_warn_flag
21599     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21600   else
21601     ac_cpp_err=
21602   fi
21603 else
21604   ac_cpp_err=yes
21605 fi
21606 if test -z "$ac_cpp_err"; then
21607   ac_header_preproc=yes
21608 else
21609   echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21611
21612   ac_header_preproc=no
21613 fi
21614 rm -f conftest.err conftest.$ac_ext
21615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21616 echo "${ECHO_T}$ac_header_preproc" >&6
21617
21618 # So?  What about this header?
21619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21620   yes:no: )
21621     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21622 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21623     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21624 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21625     ac_header_preproc=yes
21626     ;;
21627   no:yes:* )
21628     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21629 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21630     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21631 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21632     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21633 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21634     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21635 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21636     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21637 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21638     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21639 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21640     (
21641       cat <<\_ASBOX
21642 ## ------------------------------------------ ##
21643 ## Report this to the AC_PACKAGE_NAME lists.  ##
21644 ## ------------------------------------------ ##
21645 _ASBOX
21646     ) |
21647       sed "s/^/$as_me: WARNING:     /" >&2
21648     ;;
21649 esac
21650 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21651 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21652 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21653   echo $ECHO_N "(cached) $ECHO_C" >&6
21654 else
21655   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21656 fi
21657 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21658 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21659
21660 fi
21661 if test $ac_cv_header_sys_statvfs_h = yes; then
21662
21663 cat >>confdefs.h <<\_ACEOF
21664 #define HAVE_SYS_STATVFS_H 1
21665 _ACEOF
21666
21667 fi
21668
21669
21670
21671 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21672 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21673 if test "${ac_cv_type_signal+set}" = set; then
21674   echo $ECHO_N "(cached) $ECHO_C" >&6
21675 else
21676   cat >conftest.$ac_ext <<_ACEOF
21677 /* confdefs.h.  */
21678 _ACEOF
21679 cat confdefs.h >>conftest.$ac_ext
21680 cat >>conftest.$ac_ext <<_ACEOF
21681 /* end confdefs.h.  */
21682 #include <sys/types.h>
21683 #include <signal.h>
21684 #ifdef signal
21685 # undef signal
21686 #endif
21687 #ifdef __cplusplus
21688 extern "C" void (*signal (int, void (*)(int)))(int);
21689 #else
21690 void (*signal ()) ();
21691 #endif
21692
21693 int
21694 main ()
21695 {
21696 int i;
21697   ;
21698   return 0;
21699 }
21700 _ACEOF
21701 rm -f conftest.$ac_objext
21702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21703   (eval $ac_compile) 2>conftest.er1
21704   ac_status=$?
21705   grep -v '^ *+' conftest.er1 >conftest.err
21706   rm -f conftest.er1
21707   cat conftest.err >&5
21708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709   (exit $ac_status); } &&
21710          { ac_try='test -z "$ac_c_werror_flag"
21711                          || test ! -s conftest.err'
21712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713   (eval $ac_try) 2>&5
21714   ac_status=$?
21715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716   (exit $ac_status); }; } &&
21717          { ac_try='test -s conftest.$ac_objext'
21718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719   (eval $ac_try) 2>&5
21720   ac_status=$?
21721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); }; }; then
21723   ac_cv_type_signal=void
21724 else
21725   echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.$ac_ext >&5
21727
21728 ac_cv_type_signal=int
21729 fi
21730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21731 fi
21732 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21733 echo "${ECHO_T}$ac_cv_type_signal" >&6
21734
21735 cat >>confdefs.h <<_ACEOF
21736 #define RETSIGTYPE $ac_cv_type_signal
21737 _ACEOF
21738
21739
21740
21741   echo "$as_me:$LINENO: checking for type of signal functions" >&5
21742 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21743   if test "${bash_cv_signal_vintage+set}" = set; then
21744   echo $ECHO_N "(cached) $ECHO_C" >&6
21745 else
21746
21747     cat >conftest.$ac_ext <<_ACEOF
21748 /* confdefs.h.  */
21749 _ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h.  */
21753 #include <signal.h>
21754 int
21755 main ()
21756 {
21757
21758       sigset_t ss;
21759       struct sigaction sa;
21760       sigemptyset(&ss); sigsuspend(&ss);
21761       sigaction(SIGINT, &sa, (struct sigaction *) 0);
21762       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21763
21764   ;
21765   return 0;
21766 }
21767 _ACEOF
21768 rm -f conftest.$ac_objext conftest$ac_exeext
21769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21770   (eval $ac_link) 2>conftest.er1
21771   ac_status=$?
21772   grep -v '^ *+' conftest.er1 >conftest.err
21773   rm -f conftest.er1
21774   cat conftest.err >&5
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); } &&
21777          { ac_try='test -z "$ac_c_werror_flag"
21778                          || test ! -s conftest.err'
21779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21780   (eval $ac_try) 2>&5
21781   ac_status=$?
21782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783   (exit $ac_status); }; } &&
21784          { ac_try='test -s conftest$ac_exeext'
21785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21786   (eval $ac_try) 2>&5
21787   ac_status=$?
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   (exit $ac_status); }; }; then
21790   bash_cv_signal_vintage="posix"
21791 else
21792   echo "$as_me: failed program was:" >&5
21793 sed 's/^/| /' conftest.$ac_ext >&5
21794
21795
21796       cat >conftest.$ac_ext <<_ACEOF
21797 /* confdefs.h.  */
21798 _ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h.  */
21802 #include <signal.h>
21803 int
21804 main ()
21805 {
21806
21807           int mask = sigmask(SIGINT);
21808           sigsetmask(mask); sigblock(mask); sigpause(mask);
21809
21810   ;
21811   return 0;
21812 }
21813 _ACEOF
21814 rm -f conftest.$ac_objext conftest$ac_exeext
21815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21816   (eval $ac_link) 2>conftest.er1
21817   ac_status=$?
21818   grep -v '^ *+' conftest.er1 >conftest.err
21819   rm -f conftest.er1
21820   cat conftest.err >&5
21821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822   (exit $ac_status); } &&
21823          { ac_try='test -z "$ac_c_werror_flag"
21824                          || test ! -s conftest.err'
21825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21826   (eval $ac_try) 2>&5
21827   ac_status=$?
21828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829   (exit $ac_status); }; } &&
21830          { ac_try='test -s conftest$ac_exeext'
21831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832   (eval $ac_try) 2>&5
21833   ac_status=$?
21834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835   (exit $ac_status); }; }; then
21836   bash_cv_signal_vintage="4.2bsd"
21837 else
21838   echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21840
21841
21842         cat >conftest.$ac_ext <<_ACEOF
21843 /* confdefs.h.  */
21844 _ACEOF
21845 cat confdefs.h >>conftest.$ac_ext
21846 cat >>conftest.$ac_ext <<_ACEOF
21847 /* end confdefs.h.  */
21848
21849           #include <signal.h>
21850           RETSIGTYPE foo() { }
21851 int
21852 main ()
21853 {
21854
21855                   int mask = sigmask(SIGINT);
21856                   sigset(SIGINT, foo); sigrelse(SIGINT);
21857                   sighold(SIGINT); sigpause(SIGINT);
21858
21859   ;
21860   return 0;
21861 }
21862 _ACEOF
21863 rm -f conftest.$ac_objext conftest$ac_exeext
21864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21865   (eval $ac_link) 2>conftest.er1
21866   ac_status=$?
21867   grep -v '^ *+' conftest.er1 >conftest.err
21868   rm -f conftest.er1
21869   cat conftest.err >&5
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); } &&
21872          { ac_try='test -z "$ac_c_werror_flag"
21873                          || test ! -s conftest.err'
21874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875   (eval $ac_try) 2>&5
21876   ac_status=$?
21877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878   (exit $ac_status); }; } &&
21879          { ac_try='test -s conftest$ac_exeext'
21880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881   (eval $ac_try) 2>&5
21882   ac_status=$?
21883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884   (exit $ac_status); }; }; then
21885   bash_cv_signal_vintage="svr3"
21886 else
21887   echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21889
21890 bash_cv_signal_vintage="v7"
21891
21892 fi
21893 rm -f conftest.err conftest.$ac_objext \
21894       conftest$ac_exeext conftest.$ac_ext
21895
21896 fi
21897 rm -f conftest.err conftest.$ac_objext \
21898       conftest$ac_exeext conftest.$ac_ext
21899
21900 fi
21901 rm -f conftest.err conftest.$ac_objext \
21902       conftest$ac_exeext conftest.$ac_ext
21903
21904 fi
21905
21906   echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21907 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21908   if test "$bash_cv_signal_vintage" = "posix"; then
21909     cat >>confdefs.h <<\_ACEOF
21910 #define HAVE_POSIX_SIGNALS 1
21911 _ACEOF
21912
21913   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21914     cat >>confdefs.h <<\_ACEOF
21915 #define HAVE_BSD_SIGNALS 1
21916 _ACEOF
21917
21918   elif test "$bash_cv_signal_vintage" = "svr3"; then
21919     cat >>confdefs.h <<\_ACEOF
21920 #define HAVE_USG_SIGHOLD 1
21921 _ACEOF
21922
21923   fi
21924
21925 echo "$as_me:$LINENO: checking for mode_t" >&5
21926 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21927 if test "${ac_cv_type_mode_t+set}" = set; then
21928   echo $ECHO_N "(cached) $ECHO_C" >&6
21929 else
21930   cat >conftest.$ac_ext <<_ACEOF
21931 /* confdefs.h.  */
21932 _ACEOF
21933 cat confdefs.h >>conftest.$ac_ext
21934 cat >>conftest.$ac_ext <<_ACEOF
21935 /* end confdefs.h.  */
21936 $ac_includes_default
21937 int
21938 main ()
21939 {
21940 if ((mode_t *) 0)
21941   return 0;
21942 if (sizeof (mode_t))
21943   return 0;
21944   ;
21945   return 0;
21946 }
21947 _ACEOF
21948 rm -f conftest.$ac_objext
21949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21950   (eval $ac_compile) 2>conftest.er1
21951   ac_status=$?
21952   grep -v '^ *+' conftest.er1 >conftest.err
21953   rm -f conftest.er1
21954   cat conftest.err >&5
21955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956   (exit $ac_status); } &&
21957          { ac_try='test -z "$ac_c_werror_flag"
21958                          || test ! -s conftest.err'
21959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960   (eval $ac_try) 2>&5
21961   ac_status=$?
21962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963   (exit $ac_status); }; } &&
21964          { ac_try='test -s conftest.$ac_objext'
21965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966   (eval $ac_try) 2>&5
21967   ac_status=$?
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); }; }; then
21970   ac_cv_type_mode_t=yes
21971 else
21972   echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21974
21975 ac_cv_type_mode_t=no
21976 fi
21977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21978 fi
21979 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21980 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21981 if test $ac_cv_type_mode_t = yes; then
21982   :
21983 else
21984
21985 cat >>confdefs.h <<_ACEOF
21986 #define mode_t int
21987 _ACEOF
21988
21989 fi
21990
21991 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21992 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21993 if test "${ac_cv_type_uid_t+set}" = set; then
21994   echo $ECHO_N "(cached) $ECHO_C" >&6
21995 else
21996   cat >conftest.$ac_ext <<_ACEOF
21997 /* confdefs.h.  */
21998 _ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h.  */
22002 #include <sys/types.h>
22003
22004 _ACEOF
22005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22006   $EGREP "uid_t" >/dev/null 2>&1; then
22007   ac_cv_type_uid_t=yes
22008 else
22009   ac_cv_type_uid_t=no
22010 fi
22011 rm -f conftest*
22012
22013 fi
22014 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22015 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22016 if test $ac_cv_type_uid_t = no; then
22017
22018 cat >>confdefs.h <<\_ACEOF
22019 #define uid_t int
22020 _ACEOF
22021
22022
22023 cat >>confdefs.h <<\_ACEOF
22024 #define gid_t int
22025 _ACEOF
22026
22027 fi
22028
22029 echo "$as_me:$LINENO: checking for size_t" >&5
22030 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22031 if test "${ac_cv_type_size_t+set}" = set; then
22032   echo $ECHO_N "(cached) $ECHO_C" >&6
22033 else
22034   cat >conftest.$ac_ext <<_ACEOF
22035 /* confdefs.h.  */
22036 _ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h.  */
22040 $ac_includes_default
22041 int
22042 main ()
22043 {
22044 if ((size_t *) 0)
22045   return 0;
22046 if (sizeof (size_t))
22047   return 0;
22048   ;
22049   return 0;
22050 }
22051 _ACEOF
22052 rm -f conftest.$ac_objext
22053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22054   (eval $ac_compile) 2>conftest.er1
22055   ac_status=$?
22056   grep -v '^ *+' conftest.er1 >conftest.err
22057   rm -f conftest.er1
22058   cat conftest.err >&5
22059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060   (exit $ac_status); } &&
22061          { ac_try='test -z "$ac_c_werror_flag"
22062                          || test ! -s conftest.err'
22063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064   (eval $ac_try) 2>&5
22065   ac_status=$?
22066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067   (exit $ac_status); }; } &&
22068          { ac_try='test -s conftest.$ac_objext'
22069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070   (eval $ac_try) 2>&5
22071   ac_status=$?
22072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073   (exit $ac_status); }; }; then
22074   ac_cv_type_size_t=yes
22075 else
22076   echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22078
22079 ac_cv_type_size_t=no
22080 fi
22081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22082 fi
22083 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22084 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22085 if test $ac_cv_type_size_t = yes; then
22086   :
22087 else
22088
22089 cat >>confdefs.h <<_ACEOF
22090 #define size_t unsigned
22091 _ACEOF
22092
22093 fi
22094
22095 echo "$as_me:$LINENO: checking for pid_t" >&5
22096 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22097 if test "${ac_cv_type_pid_t+set}" = set; then
22098   echo $ECHO_N "(cached) $ECHO_C" >&6
22099 else
22100   cat >conftest.$ac_ext <<_ACEOF
22101 /* confdefs.h.  */
22102 _ACEOF
22103 cat confdefs.h >>conftest.$ac_ext
22104 cat >>conftest.$ac_ext <<_ACEOF
22105 /* end confdefs.h.  */
22106 $ac_includes_default
22107 int
22108 main ()
22109 {
22110 if ((pid_t *) 0)
22111   return 0;
22112 if (sizeof (pid_t))
22113   return 0;
22114   ;
22115   return 0;
22116 }
22117 _ACEOF
22118 rm -f conftest.$ac_objext
22119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22120   (eval $ac_compile) 2>conftest.er1
22121   ac_status=$?
22122   grep -v '^ *+' conftest.er1 >conftest.err
22123   rm -f conftest.er1
22124   cat conftest.err >&5
22125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126   (exit $ac_status); } &&
22127          { ac_try='test -z "$ac_c_werror_flag"
22128                          || test ! -s conftest.err'
22129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22130   (eval $ac_try) 2>&5
22131   ac_status=$?
22132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133   (exit $ac_status); }; } &&
22134          { ac_try='test -s conftest.$ac_objext'
22135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22136   (eval $ac_try) 2>&5
22137   ac_status=$?
22138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139   (exit $ac_status); }; }; then
22140   ac_cv_type_pid_t=yes
22141 else
22142   echo "$as_me: failed program was:" >&5
22143 sed 's/^/| /' conftest.$ac_ext >&5
22144
22145 ac_cv_type_pid_t=no
22146 fi
22147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22148 fi
22149 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22150 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22151 if test $ac_cv_type_pid_t = yes; then
22152   :
22153 else
22154
22155 cat >>confdefs.h <<_ACEOF
22156 #define pid_t int
22157 _ACEOF
22158
22159 fi
22160
22161 echo "$as_me:$LINENO: checking for off_t" >&5
22162 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22163 if test "${ac_cv_type_off_t+set}" = set; then
22164   echo $ECHO_N "(cached) $ECHO_C" >&6
22165 else
22166   cat >conftest.$ac_ext <<_ACEOF
22167 /* confdefs.h.  */
22168 _ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h.  */
22172 $ac_includes_default
22173 int
22174 main ()
22175 {
22176 if ((off_t *) 0)
22177   return 0;
22178 if (sizeof (off_t))
22179   return 0;
22180   ;
22181   return 0;
22182 }
22183 _ACEOF
22184 rm -f conftest.$ac_objext
22185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22186   (eval $ac_compile) 2>conftest.er1
22187   ac_status=$?
22188   grep -v '^ *+' conftest.er1 >conftest.err
22189   rm -f conftest.er1
22190   cat conftest.err >&5
22191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192   (exit $ac_status); } &&
22193          { ac_try='test -z "$ac_c_werror_flag"
22194                          || test ! -s conftest.err'
22195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196   (eval $ac_try) 2>&5
22197   ac_status=$?
22198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); }; } &&
22200          { ac_try='test -s conftest.$ac_objext'
22201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202   (eval $ac_try) 2>&5
22203   ac_status=$?
22204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205   (exit $ac_status); }; }; then
22206   ac_cv_type_off_t=yes
22207 else
22208   echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22210
22211 ac_cv_type_off_t=no
22212 fi
22213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22214 fi
22215 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22216 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22217 if test $ac_cv_type_off_t = yes; then
22218   :
22219 else
22220
22221 cat >>confdefs.h <<_ACEOF
22222 #define off_t long
22223 _ACEOF
22224
22225 fi
22226
22227 echo "$as_me:$LINENO: checking for ino_t" >&5
22228 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
22229 if test "${ac_cv_type_ino_t+set}" = set; then
22230   echo $ECHO_N "(cached) $ECHO_C" >&6
22231 else
22232   cat >conftest.$ac_ext <<_ACEOF
22233 /* confdefs.h.  */
22234 _ACEOF
22235 cat confdefs.h >>conftest.$ac_ext
22236 cat >>conftest.$ac_ext <<_ACEOF
22237 /* end confdefs.h.  */
22238 $ac_includes_default
22239 int
22240 main ()
22241 {
22242 if ((ino_t *) 0)
22243   return 0;
22244 if (sizeof (ino_t))
22245   return 0;
22246   ;
22247   return 0;
22248 }
22249 _ACEOF
22250 rm -f conftest.$ac_objext
22251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22252   (eval $ac_compile) 2>conftest.er1
22253   ac_status=$?
22254   grep -v '^ *+' conftest.er1 >conftest.err
22255   rm -f conftest.er1
22256   cat conftest.err >&5
22257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258   (exit $ac_status); } &&
22259          { ac_try='test -z "$ac_c_werror_flag"
22260                          || test ! -s conftest.err'
22261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262   (eval $ac_try) 2>&5
22263   ac_status=$?
22264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265   (exit $ac_status); }; } &&
22266          { ac_try='test -s conftest.$ac_objext'
22267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22268   (eval $ac_try) 2>&5
22269   ac_status=$?
22270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271   (exit $ac_status); }; }; then
22272   ac_cv_type_ino_t=yes
22273 else
22274   echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22276
22277 ac_cv_type_ino_t=no
22278 fi
22279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22280 fi
22281 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22282 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22283 if test $ac_cv_type_ino_t = yes; then
22284   :
22285 else
22286
22287 cat >>confdefs.h <<_ACEOF
22288 #define ino_t unsigned long
22289 _ACEOF
22290
22291 fi
22292
22293 echo "$as_me:$LINENO: checking for dev_t" >&5
22294 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22295 if test "${ac_cv_type_dev_t+set}" = set; then
22296   echo $ECHO_N "(cached) $ECHO_C" >&6
22297 else
22298   cat >conftest.$ac_ext <<_ACEOF
22299 /* confdefs.h.  */
22300 _ACEOF
22301 cat confdefs.h >>conftest.$ac_ext
22302 cat >>conftest.$ac_ext <<_ACEOF
22303 /* end confdefs.h.  */
22304 $ac_includes_default
22305 int
22306 main ()
22307 {
22308 if ((dev_t *) 0)
22309   return 0;
22310 if (sizeof (dev_t))
22311   return 0;
22312   ;
22313   return 0;
22314 }
22315 _ACEOF
22316 rm -f conftest.$ac_objext
22317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22318   (eval $ac_compile) 2>conftest.er1
22319   ac_status=$?
22320   grep -v '^ *+' conftest.er1 >conftest.err
22321   rm -f conftest.er1
22322   cat conftest.err >&5
22323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324   (exit $ac_status); } &&
22325          { ac_try='test -z "$ac_c_werror_flag"
22326                          || test ! -s conftest.err'
22327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22328   (eval $ac_try) 2>&5
22329   ac_status=$?
22330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331   (exit $ac_status); }; } &&
22332          { ac_try='test -s conftest.$ac_objext'
22333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22334   (eval $ac_try) 2>&5
22335   ac_status=$?
22336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337   (exit $ac_status); }; }; then
22338   ac_cv_type_dev_t=yes
22339 else
22340   echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22342
22343 ac_cv_type_dev_t=no
22344 fi
22345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22346 fi
22347 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22348 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22349 if test $ac_cv_type_dev_t = yes; then
22350   :
22351 else
22352
22353 cat >>confdefs.h <<_ACEOF
22354 #define dev_t unsigned long
22355 _ACEOF
22356
22357 fi
22358
22359 echo "$as_me:$LINENO: checking for daddr_t" >&5
22360 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22361 if test "${ac_cv_type_daddr_t+set}" = set; then
22362   echo $ECHO_N "(cached) $ECHO_C" >&6
22363 else
22364   cat >conftest.$ac_ext <<_ACEOF
22365 /* confdefs.h.  */
22366 _ACEOF
22367 cat confdefs.h >>conftest.$ac_ext
22368 cat >>conftest.$ac_ext <<_ACEOF
22369 /* end confdefs.h.  */
22370 $ac_includes_default
22371 int
22372 main ()
22373 {
22374 if ((daddr_t *) 0)
22375   return 0;
22376 if (sizeof (daddr_t))
22377   return 0;
22378   ;
22379   return 0;
22380 }
22381 _ACEOF
22382 rm -f conftest.$ac_objext
22383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22384   (eval $ac_compile) 2>conftest.er1
22385   ac_status=$?
22386   grep -v '^ *+' conftest.er1 >conftest.err
22387   rm -f conftest.er1
22388   cat conftest.err >&5
22389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390   (exit $ac_status); } &&
22391          { ac_try='test -z "$ac_c_werror_flag"
22392                          || test ! -s conftest.err'
22393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394   (eval $ac_try) 2>&5
22395   ac_status=$?
22396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397   (exit $ac_status); }; } &&
22398          { ac_try='test -s conftest.$ac_objext'
22399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400   (eval $ac_try) 2>&5
22401   ac_status=$?
22402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); }; }; then
22404   ac_cv_type_daddr_t=yes
22405 else
22406   echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22408
22409 ac_cv_type_daddr_t=no
22410 fi
22411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22412 fi
22413 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22414 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22415 if test $ac_cv_type_daddr_t = yes; then
22416   :
22417 else
22418
22419 cat >>confdefs.h <<_ACEOF
22420 #define daddr_t long
22421 _ACEOF
22422
22423 fi
22424
22425 echo "$as_me:$LINENO: checking for major_t" >&5
22426 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22427 if test "${ac_cv_type_major_t+set}" = set; then
22428   echo $ECHO_N "(cached) $ECHO_C" >&6
22429 else
22430   cat >conftest.$ac_ext <<_ACEOF
22431 /* confdefs.h.  */
22432 _ACEOF
22433 cat confdefs.h >>conftest.$ac_ext
22434 cat >>conftest.$ac_ext <<_ACEOF
22435 /* end confdefs.h.  */
22436 $ac_includes_default
22437 int
22438 main ()
22439 {
22440 if ((major_t *) 0)
22441   return 0;
22442 if (sizeof (major_t))
22443   return 0;
22444   ;
22445   return 0;
22446 }
22447 _ACEOF
22448 rm -f conftest.$ac_objext
22449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22450   (eval $ac_compile) 2>conftest.er1
22451   ac_status=$?
22452   grep -v '^ *+' conftest.er1 >conftest.err
22453   rm -f conftest.er1
22454   cat conftest.err >&5
22455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456   (exit $ac_status); } &&
22457          { ac_try='test -z "$ac_c_werror_flag"
22458                          || test ! -s conftest.err'
22459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460   (eval $ac_try) 2>&5
22461   ac_status=$?
22462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463   (exit $ac_status); }; } &&
22464          { ac_try='test -s conftest.$ac_objext'
22465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466   (eval $ac_try) 2>&5
22467   ac_status=$?
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); }; }; then
22470   ac_cv_type_major_t=yes
22471 else
22472   echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22474
22475 ac_cv_type_major_t=no
22476 fi
22477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22478 fi
22479 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22480 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22481 if test $ac_cv_type_major_t = yes; then
22482   :
22483 else
22484
22485 cat >>confdefs.h <<_ACEOF
22486 #define major_t int
22487 _ACEOF
22488
22489 fi
22490
22491 echo "$as_me:$LINENO: checking for minor_t" >&5
22492 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22493 if test "${ac_cv_type_minor_t+set}" = set; then
22494   echo $ECHO_N "(cached) $ECHO_C" >&6
22495 else
22496   cat >conftest.$ac_ext <<_ACEOF
22497 /* confdefs.h.  */
22498 _ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h.  */
22502 $ac_includes_default
22503 int
22504 main ()
22505 {
22506 if ((minor_t *) 0)
22507   return 0;
22508 if (sizeof (minor_t))
22509   return 0;
22510   ;
22511   return 0;
22512 }
22513 _ACEOF
22514 rm -f conftest.$ac_objext
22515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22516   (eval $ac_compile) 2>conftest.er1
22517   ac_status=$?
22518   grep -v '^ *+' conftest.er1 >conftest.err
22519   rm -f conftest.er1
22520   cat conftest.err >&5
22521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522   (exit $ac_status); } &&
22523          { ac_try='test -z "$ac_c_werror_flag"
22524                          || test ! -s conftest.err'
22525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22526   (eval $ac_try) 2>&5
22527   ac_status=$?
22528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529   (exit $ac_status); }; } &&
22530          { ac_try='test -s conftest.$ac_objext'
22531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22532   (eval $ac_try) 2>&5
22533   ac_status=$?
22534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535   (exit $ac_status); }; }; then
22536   ac_cv_type_minor_t=yes
22537 else
22538   echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22540
22541 ac_cv_type_minor_t=no
22542 fi
22543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22544 fi
22545 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22546 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22547 if test $ac_cv_type_minor_t = yes; then
22548   :
22549 else
22550
22551 cat >>confdefs.h <<_ACEOF
22552 #define minor_t int
22553 _ACEOF
22554
22555 fi
22556
22557 echo "$as_me:$LINENO: checking for ssize_t" >&5
22558 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22559 if test "${ac_cv_type_ssize_t+set}" = set; then
22560   echo $ECHO_N "(cached) $ECHO_C" >&6
22561 else
22562   cat >conftest.$ac_ext <<_ACEOF
22563 /* confdefs.h.  */
22564 _ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h.  */
22568 $ac_includes_default
22569 int
22570 main ()
22571 {
22572 if ((ssize_t *) 0)
22573   return 0;
22574 if (sizeof (ssize_t))
22575   return 0;
22576   ;
22577   return 0;
22578 }
22579 _ACEOF
22580 rm -f conftest.$ac_objext
22581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22582   (eval $ac_compile) 2>conftest.er1
22583   ac_status=$?
22584   grep -v '^ *+' conftest.er1 >conftest.err
22585   rm -f conftest.er1
22586   cat conftest.err >&5
22587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588   (exit $ac_status); } &&
22589          { ac_try='test -z "$ac_c_werror_flag"
22590                          || test ! -s conftest.err'
22591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22592   (eval $ac_try) 2>&5
22593   ac_status=$?
22594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595   (exit $ac_status); }; } &&
22596          { ac_try='test -s conftest.$ac_objext'
22597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22598   (eval $ac_try) 2>&5
22599   ac_status=$?
22600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601   (exit $ac_status); }; }; then
22602   ac_cv_type_ssize_t=yes
22603 else
22604   echo "$as_me: failed program was:" >&5
22605 sed 's/^/| /' conftest.$ac_ext >&5
22606
22607 ac_cv_type_ssize_t=no
22608 fi
22609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22610 fi
22611 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22612 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22613 if test $ac_cv_type_ssize_t = yes; then
22614   :
22615 else
22616
22617 cat >>confdefs.h <<_ACEOF
22618 #define ssize_t int
22619 _ACEOF
22620
22621 fi
22622
22623 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22624 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22625 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22626   echo $ECHO_N "(cached) $ECHO_C" >&6
22627 else
22628   cat >conftest.$ac_ext <<_ACEOF
22629 /* confdefs.h.  */
22630 _ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h.  */
22634 $ac_includes_default
22635 int
22636 main ()
22637 {
22638 static struct stat ac_aggr;
22639 if (ac_aggr.st_blocks)
22640 return 0;
22641   ;
22642   return 0;
22643 }
22644 _ACEOF
22645 rm -f conftest.$ac_objext
22646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22647   (eval $ac_compile) 2>conftest.er1
22648   ac_status=$?
22649   grep -v '^ *+' conftest.er1 >conftest.err
22650   rm -f conftest.er1
22651   cat conftest.err >&5
22652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653   (exit $ac_status); } &&
22654          { ac_try='test -z "$ac_c_werror_flag"
22655                          || test ! -s conftest.err'
22656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22657   (eval $ac_try) 2>&5
22658   ac_status=$?
22659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660   (exit $ac_status); }; } &&
22661          { ac_try='test -s conftest.$ac_objext'
22662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22663   (eval $ac_try) 2>&5
22664   ac_status=$?
22665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666   (exit $ac_status); }; }; then
22667   ac_cv_member_struct_stat_st_blocks=yes
22668 else
22669   echo "$as_me: failed program was:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22671
22672 cat >conftest.$ac_ext <<_ACEOF
22673 /* confdefs.h.  */
22674 _ACEOF
22675 cat confdefs.h >>conftest.$ac_ext
22676 cat >>conftest.$ac_ext <<_ACEOF
22677 /* end confdefs.h.  */
22678 $ac_includes_default
22679 int
22680 main ()
22681 {
22682 static struct stat ac_aggr;
22683 if (sizeof ac_aggr.st_blocks)
22684 return 0;
22685   ;
22686   return 0;
22687 }
22688 _ACEOF
22689 rm -f conftest.$ac_objext
22690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22691   (eval $ac_compile) 2>conftest.er1
22692   ac_status=$?
22693   grep -v '^ *+' conftest.er1 >conftest.err
22694   rm -f conftest.er1
22695   cat conftest.err >&5
22696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697   (exit $ac_status); } &&
22698          { ac_try='test -z "$ac_c_werror_flag"
22699                          || test ! -s conftest.err'
22700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22701   (eval $ac_try) 2>&5
22702   ac_status=$?
22703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704   (exit $ac_status); }; } &&
22705          { ac_try='test -s conftest.$ac_objext'
22706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22707   (eval $ac_try) 2>&5
22708   ac_status=$?
22709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710   (exit $ac_status); }; }; then
22711   ac_cv_member_struct_stat_st_blocks=yes
22712 else
22713   echo "$as_me: failed program was:" >&5
22714 sed 's/^/| /' conftest.$ac_ext >&5
22715
22716 ac_cv_member_struct_stat_st_blocks=no
22717 fi
22718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22719 fi
22720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22721 fi
22722 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22723 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22724 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22725
22726 cat >>confdefs.h <<_ACEOF
22727 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22728 _ACEOF
22729
22730
22731 cat >>confdefs.h <<\_ACEOF
22732 #define HAVE_ST_BLOCKS 1
22733 _ACEOF
22734
22735 else
22736   case $LIBOBJS in
22737     "fileblocks.$ac_objext"   | \
22738   *" fileblocks.$ac_objext"   | \
22739     "fileblocks.$ac_objext "* | \
22740   *" fileblocks.$ac_objext "* ) ;;
22741   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22742 esac
22743
22744 fi
22745
22746
22747
22748 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22749 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22750 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22751   echo $ECHO_N "(cached) $ECHO_C" >&6
22752 else
22753   cat >conftest.$ac_ext <<_ACEOF
22754 /* confdefs.h.  */
22755 _ACEOF
22756 cat confdefs.h >>conftest.$ac_ext
22757 cat >>conftest.$ac_ext <<_ACEOF
22758 /* end confdefs.h.  */
22759 $ac_includes_default
22760 int
22761 main ()
22762 {
22763 static struct stat ac_aggr;
22764 if (ac_aggr.st_rdev)
22765 return 0;
22766   ;
22767   return 0;
22768 }
22769 _ACEOF
22770 rm -f conftest.$ac_objext
22771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22772   (eval $ac_compile) 2>conftest.er1
22773   ac_status=$?
22774   grep -v '^ *+' conftest.er1 >conftest.err
22775   rm -f conftest.er1
22776   cat conftest.err >&5
22777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778   (exit $ac_status); } &&
22779          { ac_try='test -z "$ac_c_werror_flag"
22780                          || test ! -s conftest.err'
22781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782   (eval $ac_try) 2>&5
22783   ac_status=$?
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); }; } &&
22786          { ac_try='test -s conftest.$ac_objext'
22787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788   (eval $ac_try) 2>&5
22789   ac_status=$?
22790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791   (exit $ac_status); }; }; then
22792   ac_cv_member_struct_stat_st_rdev=yes
22793 else
22794   echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22796
22797 cat >conftest.$ac_ext <<_ACEOF
22798 /* confdefs.h.  */
22799 _ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h.  */
22803 $ac_includes_default
22804 int
22805 main ()
22806 {
22807 static struct stat ac_aggr;
22808 if (sizeof ac_aggr.st_rdev)
22809 return 0;
22810   ;
22811   return 0;
22812 }
22813 _ACEOF
22814 rm -f conftest.$ac_objext
22815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22816   (eval $ac_compile) 2>conftest.er1
22817   ac_status=$?
22818   grep -v '^ *+' conftest.er1 >conftest.err
22819   rm -f conftest.er1
22820   cat conftest.err >&5
22821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822   (exit $ac_status); } &&
22823          { ac_try='test -z "$ac_c_werror_flag"
22824                          || test ! -s conftest.err'
22825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22826   (eval $ac_try) 2>&5
22827   ac_status=$?
22828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829   (exit $ac_status); }; } &&
22830          { ac_try='test -s conftest.$ac_objext'
22831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22832   (eval $ac_try) 2>&5
22833   ac_status=$?
22834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835   (exit $ac_status); }; }; then
22836   ac_cv_member_struct_stat_st_rdev=yes
22837 else
22838   echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22840
22841 ac_cv_member_struct_stat_st_rdev=no
22842 fi
22843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22844 fi
22845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22846 fi
22847 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22848 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22849 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22850
22851 cat >>confdefs.h <<_ACEOF
22852 #define HAVE_STRUCT_STAT_ST_RDEV 1
22853 _ACEOF
22854
22855
22856 cat >>confdefs.h <<\_ACEOF
22857 #define HAVE_ST_RDEV 1
22858 _ACEOF
22859
22860 fi
22861
22862
22863 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22864 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22865 if test "${ac_cv_struct_tm+set}" = set; then
22866   echo $ECHO_N "(cached) $ECHO_C" >&6
22867 else
22868   cat >conftest.$ac_ext <<_ACEOF
22869 /* confdefs.h.  */
22870 _ACEOF
22871 cat confdefs.h >>conftest.$ac_ext
22872 cat >>conftest.$ac_ext <<_ACEOF
22873 /* end confdefs.h.  */
22874 #include <sys/types.h>
22875 #include <time.h>
22876
22877 int
22878 main ()
22879 {
22880 struct tm *tp; tp->tm_sec;
22881   ;
22882   return 0;
22883 }
22884 _ACEOF
22885 rm -f conftest.$ac_objext
22886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22887   (eval $ac_compile) 2>conftest.er1
22888   ac_status=$?
22889   grep -v '^ *+' conftest.er1 >conftest.err
22890   rm -f conftest.er1
22891   cat conftest.err >&5
22892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893   (exit $ac_status); } &&
22894          { ac_try='test -z "$ac_c_werror_flag"
22895                          || test ! -s conftest.err'
22896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22897   (eval $ac_try) 2>&5
22898   ac_status=$?
22899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900   (exit $ac_status); }; } &&
22901          { ac_try='test -s conftest.$ac_objext'
22902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22903   (eval $ac_try) 2>&5
22904   ac_status=$?
22905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906   (exit $ac_status); }; }; then
22907   ac_cv_struct_tm=time.h
22908 else
22909   echo "$as_me: failed program was:" >&5
22910 sed 's/^/| /' conftest.$ac_ext >&5
22911
22912 ac_cv_struct_tm=sys/time.h
22913 fi
22914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22915 fi
22916 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22917 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22918 if test $ac_cv_struct_tm = sys/time.h; then
22919
22920 cat >>confdefs.h <<\_ACEOF
22921 #define TM_IN_SYS_TIME 1
22922 _ACEOF
22923
22924 fi
22925
22926 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22927 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22928 if test "${ac_cv_c_const+set}" = set; then
22929   echo $ECHO_N "(cached) $ECHO_C" >&6
22930 else
22931   cat >conftest.$ac_ext <<_ACEOF
22932 /* confdefs.h.  */
22933 _ACEOF
22934 cat confdefs.h >>conftest.$ac_ext
22935 cat >>conftest.$ac_ext <<_ACEOF
22936 /* end confdefs.h.  */
22937
22938 int
22939 main ()
22940 {
22941 /* FIXME: Include the comments suggested by Paul. */
22942 #ifndef __cplusplus
22943   /* Ultrix mips cc rejects this.  */
22944   typedef int charset[2];
22945   const charset x;
22946   /* SunOS 4.1.1 cc rejects this.  */
22947   char const *const *ccp;
22948   char **p;
22949   /* NEC SVR4.0.2 mips cc rejects this.  */
22950   struct point {int x, y;};
22951   static struct point const zero = {0,0};
22952   /* AIX XL C 1.02.0.0 rejects this.
22953      It does not let you subtract one const X* pointer from another in
22954      an arm of an if-expression whose if-part is not a constant
22955      expression */
22956   const char *g = "string";
22957   ccp = &g + (g ? g-g : 0);
22958   /* HPUX 7.0 cc rejects these. */
22959   ++ccp;
22960   p = (char**) ccp;
22961   ccp = (char const *const *) p;
22962   { /* SCO 3.2v4 cc rejects this.  */
22963     char *t;
22964     char const *s = 0 ? (char *) 0 : (char const *) 0;
22965
22966     *t++ = 0;
22967   }
22968   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22969     int x[] = {25, 17};
22970     const int *foo = &x[0];
22971     ++foo;
22972   }
22973   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22974     typedef const int *iptr;
22975     iptr p = 0;
22976     ++p;
22977   }
22978   { /* AIX XL C 1.02.0.0 rejects this saying
22979        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22980     struct s { int j; const int *ap[3]; };
22981     struct s *b; b->j = 5;
22982   }
22983   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22984     const int foo = 10;
22985   }
22986 #endif
22987
22988   ;
22989   return 0;
22990 }
22991 _ACEOF
22992 rm -f conftest.$ac_objext
22993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22994   (eval $ac_compile) 2>conftest.er1
22995   ac_status=$?
22996   grep -v '^ *+' conftest.er1 >conftest.err
22997   rm -f conftest.er1
22998   cat conftest.err >&5
22999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000   (exit $ac_status); } &&
23001          { ac_try='test -z "$ac_c_werror_flag"
23002                          || test ! -s conftest.err'
23003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004   (eval $ac_try) 2>&5
23005   ac_status=$?
23006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007   (exit $ac_status); }; } &&
23008          { ac_try='test -s conftest.$ac_objext'
23009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010   (eval $ac_try) 2>&5
23011   ac_status=$?
23012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013   (exit $ac_status); }; }; then
23014   ac_cv_c_const=yes
23015 else
23016   echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23018
23019 ac_cv_c_const=no
23020 fi
23021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23022 fi
23023 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23024 echo "${ECHO_T}$ac_cv_c_const" >&6
23025 if test $ac_cv_c_const = no; then
23026
23027 cat >>confdefs.h <<\_ACEOF
23028 #define const
23029 _ACEOF
23030
23031 fi
23032
23033
23034
23035 echo "$as_me:$LINENO: checking for char" >&5
23036 echo $ECHO_N "checking for char... $ECHO_C" >&6
23037 if test "${ac_cv_type_char+set}" = set; then
23038   echo $ECHO_N "(cached) $ECHO_C" >&6
23039 else
23040   cat >conftest.$ac_ext <<_ACEOF
23041 /* confdefs.h.  */
23042 _ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h.  */
23046 $ac_includes_default
23047 int
23048 main ()
23049 {
23050 if ((char *) 0)
23051   return 0;
23052 if (sizeof (char))
23053   return 0;
23054   ;
23055   return 0;
23056 }
23057 _ACEOF
23058 rm -f conftest.$ac_objext
23059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23060   (eval $ac_compile) 2>conftest.er1
23061   ac_status=$?
23062   grep -v '^ *+' conftest.er1 >conftest.err
23063   rm -f conftest.er1
23064   cat conftest.err >&5
23065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066   (exit $ac_status); } &&
23067          { ac_try='test -z "$ac_c_werror_flag"
23068                          || test ! -s conftest.err'
23069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23070   (eval $ac_try) 2>&5
23071   ac_status=$?
23072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073   (exit $ac_status); }; } &&
23074          { ac_try='test -s conftest.$ac_objext'
23075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076   (eval $ac_try) 2>&5
23077   ac_status=$?
23078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079   (exit $ac_status); }; }; then
23080   ac_cv_type_char=yes
23081 else
23082   echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23084
23085 ac_cv_type_char=no
23086 fi
23087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23088 fi
23089 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23090 echo "${ECHO_T}$ac_cv_type_char" >&6
23091
23092 echo "$as_me:$LINENO: checking size of char" >&5
23093 echo $ECHO_N "checking size of char... $ECHO_C" >&6
23094 if test "${ac_cv_sizeof_char+set}" = set; then
23095   echo $ECHO_N "(cached) $ECHO_C" >&6
23096 else
23097   if test "$ac_cv_type_char" = yes; then
23098   # The cast to unsigned long works around a bug in the HP C Compiler
23099   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23100   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23101   # This bug is HP SR number 8606223364.
23102   if test "$cross_compiling" = yes; then
23103   # Depending upon the size, compute the lo and hi bounds.
23104 cat >conftest.$ac_ext <<_ACEOF
23105 /* confdefs.h.  */
23106 _ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h.  */
23110 $ac_includes_default
23111 int
23112 main ()
23113 {
23114 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
23115 test_array [0] = 0
23116
23117   ;
23118   return 0;
23119 }
23120 _ACEOF
23121 rm -f conftest.$ac_objext
23122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23123   (eval $ac_compile) 2>conftest.er1
23124   ac_status=$?
23125   grep -v '^ *+' conftest.er1 >conftest.err
23126   rm -f conftest.er1
23127   cat conftest.err >&5
23128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129   (exit $ac_status); } &&
23130          { ac_try='test -z "$ac_c_werror_flag"
23131                          || test ! -s conftest.err'
23132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23133   (eval $ac_try) 2>&5
23134   ac_status=$?
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); }; } &&
23137          { ac_try='test -s conftest.$ac_objext'
23138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139   (eval $ac_try) 2>&5
23140   ac_status=$?
23141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142   (exit $ac_status); }; }; then
23143   ac_lo=0 ac_mid=0
23144   while :; do
23145     cat >conftest.$ac_ext <<_ACEOF
23146 /* confdefs.h.  */
23147 _ACEOF
23148 cat confdefs.h >>conftest.$ac_ext
23149 cat >>conftest.$ac_ext <<_ACEOF
23150 /* end confdefs.h.  */
23151 $ac_includes_default
23152 int
23153 main ()
23154 {
23155 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23156 test_array [0] = 0
23157
23158   ;
23159   return 0;
23160 }
23161 _ACEOF
23162 rm -f conftest.$ac_objext
23163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23164   (eval $ac_compile) 2>conftest.er1
23165   ac_status=$?
23166   grep -v '^ *+' conftest.er1 >conftest.err
23167   rm -f conftest.er1
23168   cat conftest.err >&5
23169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170   (exit $ac_status); } &&
23171          { ac_try='test -z "$ac_c_werror_flag"
23172                          || test ! -s conftest.err'
23173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174   (eval $ac_try) 2>&5
23175   ac_status=$?
23176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177   (exit $ac_status); }; } &&
23178          { ac_try='test -s conftest.$ac_objext'
23179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180   (eval $ac_try) 2>&5
23181   ac_status=$?
23182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183   (exit $ac_status); }; }; then
23184   ac_hi=$ac_mid; break
23185 else
23186   echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23188
23189 ac_lo=`expr $ac_mid + 1`
23190                     if test $ac_lo -le $ac_mid; then
23191                       ac_lo= ac_hi=
23192                       break
23193                     fi
23194                     ac_mid=`expr 2 '*' $ac_mid + 1`
23195 fi
23196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23197   done
23198 else
23199   echo "$as_me: failed program was:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23201
23202 cat >conftest.$ac_ext <<_ACEOF
23203 /* confdefs.h.  */
23204 _ACEOF
23205 cat confdefs.h >>conftest.$ac_ext
23206 cat >>conftest.$ac_ext <<_ACEOF
23207 /* end confdefs.h.  */
23208 $ac_includes_default
23209 int
23210 main ()
23211 {
23212 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
23213 test_array [0] = 0
23214
23215   ;
23216   return 0;
23217 }
23218 _ACEOF
23219 rm -f conftest.$ac_objext
23220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23221   (eval $ac_compile) 2>conftest.er1
23222   ac_status=$?
23223   grep -v '^ *+' conftest.er1 >conftest.err
23224   rm -f conftest.er1
23225   cat conftest.err >&5
23226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227   (exit $ac_status); } &&
23228          { ac_try='test -z "$ac_c_werror_flag"
23229                          || test ! -s conftest.err'
23230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231   (eval $ac_try) 2>&5
23232   ac_status=$?
23233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234   (exit $ac_status); }; } &&
23235          { ac_try='test -s conftest.$ac_objext'
23236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237   (eval $ac_try) 2>&5
23238   ac_status=$?
23239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240   (exit $ac_status); }; }; then
23241   ac_hi=-1 ac_mid=-1
23242   while :; do
23243     cat >conftest.$ac_ext <<_ACEOF
23244 /* confdefs.h.  */
23245 _ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h.  */
23249 $ac_includes_default
23250 int
23251 main ()
23252 {
23253 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23254 test_array [0] = 0
23255
23256   ;
23257   return 0;
23258 }
23259 _ACEOF
23260 rm -f conftest.$ac_objext
23261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23262   (eval $ac_compile) 2>conftest.er1
23263   ac_status=$?
23264   grep -v '^ *+' conftest.er1 >conftest.err
23265   rm -f conftest.er1
23266   cat conftest.err >&5
23267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268   (exit $ac_status); } &&
23269          { ac_try='test -z "$ac_c_werror_flag"
23270                          || test ! -s conftest.err'
23271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272   (eval $ac_try) 2>&5
23273   ac_status=$?
23274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275   (exit $ac_status); }; } &&
23276          { ac_try='test -s conftest.$ac_objext'
23277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23278   (eval $ac_try) 2>&5
23279   ac_status=$?
23280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281   (exit $ac_status); }; }; then
23282   ac_lo=$ac_mid; break
23283 else
23284   echo "$as_me: failed program was:" >&5
23285 sed 's/^/| /' conftest.$ac_ext >&5
23286
23287 ac_hi=`expr '(' $ac_mid ')' - 1`
23288                        if test $ac_mid -le $ac_hi; then
23289                          ac_lo= ac_hi=
23290                          break
23291                        fi
23292                        ac_mid=`expr 2 '*' $ac_mid`
23293 fi
23294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23295   done
23296 else
23297   echo "$as_me: failed program was:" >&5
23298 sed 's/^/| /' conftest.$ac_ext >&5
23299
23300 ac_lo= ac_hi=
23301 fi
23302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23303 fi
23304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23305 # Binary search between lo and hi bounds.
23306 while test "x$ac_lo" != "x$ac_hi"; do
23307   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23308   cat >conftest.$ac_ext <<_ACEOF
23309 /* confdefs.h.  */
23310 _ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h.  */
23314 $ac_includes_default
23315 int
23316 main ()
23317 {
23318 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23319 test_array [0] = 0
23320
23321   ;
23322   return 0;
23323 }
23324 _ACEOF
23325 rm -f conftest.$ac_objext
23326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23327   (eval $ac_compile) 2>conftest.er1
23328   ac_status=$?
23329   grep -v '^ *+' conftest.er1 >conftest.err
23330   rm -f conftest.er1
23331   cat conftest.err >&5
23332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333   (exit $ac_status); } &&
23334          { ac_try='test -z "$ac_c_werror_flag"
23335                          || test ! -s conftest.err'
23336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337   (eval $ac_try) 2>&5
23338   ac_status=$?
23339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340   (exit $ac_status); }; } &&
23341          { ac_try='test -s conftest.$ac_objext'
23342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23343   (eval $ac_try) 2>&5
23344   ac_status=$?
23345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346   (exit $ac_status); }; }; then
23347   ac_hi=$ac_mid
23348 else
23349   echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23351
23352 ac_lo=`expr '(' $ac_mid ')' + 1`
23353 fi
23354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23355 done
23356 case $ac_lo in
23357 ?*) ac_cv_sizeof_char=$ac_lo;;
23358 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23359 See \`config.log' for more details." >&5
23360 echo "$as_me: error: cannot compute sizeof (char), 77
23361 See \`config.log' for more details." >&2;}
23362    { (exit 1); exit 1; }; } ;;
23363 esac
23364 else
23365   if test "$cross_compiling" = yes; then
23366   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23367 See \`config.log' for more details." >&5
23368 echo "$as_me: error: cannot run test program while cross compiling
23369 See \`config.log' for more details." >&2;}
23370    { (exit 1); exit 1; }; }
23371 else
23372   cat >conftest.$ac_ext <<_ACEOF
23373 /* confdefs.h.  */
23374 _ACEOF
23375 cat confdefs.h >>conftest.$ac_ext
23376 cat >>conftest.$ac_ext <<_ACEOF
23377 /* end confdefs.h.  */
23378 $ac_includes_default
23379 long longval () { return (long) (sizeof (char)); }
23380 unsigned long ulongval () { return (long) (sizeof (char)); }
23381 #include <stdio.h>
23382 #include <stdlib.h>
23383 int
23384 main ()
23385 {
23386
23387   FILE *f = fopen ("conftest.val", "w");
23388   if (! f)
23389     exit (1);
23390   if (((long) (sizeof (char))) < 0)
23391     {
23392       long i = longval ();
23393       if (i != ((long) (sizeof (char))))
23394         exit (1);
23395       fprintf (f, "%ld\n", i);
23396     }
23397   else
23398     {
23399       unsigned long i = ulongval ();
23400       if (i != ((long) (sizeof (char))))
23401         exit (1);
23402       fprintf (f, "%lu\n", i);
23403     }
23404   exit (ferror (f) || fclose (f) != 0);
23405
23406   ;
23407   return 0;
23408 }
23409 _ACEOF
23410 rm -f conftest$ac_exeext
23411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23412   (eval $ac_link) 2>&5
23413   ac_status=$?
23414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23417   (eval $ac_try) 2>&5
23418   ac_status=$?
23419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420   (exit $ac_status); }; }; then
23421   ac_cv_sizeof_char=`cat conftest.val`
23422 else
23423   echo "$as_me: program exited with status $ac_status" >&5
23424 echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23426
23427 ( exit $ac_status )
23428 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23429 See \`config.log' for more details." >&5
23430 echo "$as_me: error: cannot compute sizeof (char), 77
23431 See \`config.log' for more details." >&2;}
23432    { (exit 1); exit 1; }; }
23433 fi
23434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23435 fi
23436 fi
23437 rm -f conftest.val
23438 else
23439   ac_cv_sizeof_char=0
23440 fi
23441 fi
23442 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23443 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23444 cat >>confdefs.h <<_ACEOF
23445 #define SIZEOF_CHAR $ac_cv_sizeof_char
23446 _ACEOF
23447
23448
23449 echo "$as_me:$LINENO: checking for short int" >&5
23450 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23451 if test "${ac_cv_type_short_int+set}" = set; then
23452   echo $ECHO_N "(cached) $ECHO_C" >&6
23453 else
23454   cat >conftest.$ac_ext <<_ACEOF
23455 /* confdefs.h.  */
23456 _ACEOF
23457 cat confdefs.h >>conftest.$ac_ext
23458 cat >>conftest.$ac_ext <<_ACEOF
23459 /* end confdefs.h.  */
23460 $ac_includes_default
23461 int
23462 main ()
23463 {
23464 if ((short int *) 0)
23465   return 0;
23466 if (sizeof (short int))
23467   return 0;
23468   ;
23469   return 0;
23470 }
23471 _ACEOF
23472 rm -f conftest.$ac_objext
23473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23474   (eval $ac_compile) 2>conftest.er1
23475   ac_status=$?
23476   grep -v '^ *+' conftest.er1 >conftest.err
23477   rm -f conftest.er1
23478   cat conftest.err >&5
23479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480   (exit $ac_status); } &&
23481          { ac_try='test -z "$ac_c_werror_flag"
23482                          || test ! -s conftest.err'
23483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23484   (eval $ac_try) 2>&5
23485   ac_status=$?
23486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487   (exit $ac_status); }; } &&
23488          { ac_try='test -s conftest.$ac_objext'
23489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23490   (eval $ac_try) 2>&5
23491   ac_status=$?
23492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493   (exit $ac_status); }; }; then
23494   ac_cv_type_short_int=yes
23495 else
23496   echo "$as_me: failed program was:" >&5
23497 sed 's/^/| /' conftest.$ac_ext >&5
23498
23499 ac_cv_type_short_int=no
23500 fi
23501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23502 fi
23503 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23504 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23505
23506 echo "$as_me:$LINENO: checking size of short int" >&5
23507 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23508 if test "${ac_cv_sizeof_short_int+set}" = set; then
23509   echo $ECHO_N "(cached) $ECHO_C" >&6
23510 else
23511   if test "$ac_cv_type_short_int" = yes; then
23512   # The cast to unsigned long works around a bug in the HP C Compiler
23513   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23514   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23515   # This bug is HP SR number 8606223364.
23516   if test "$cross_compiling" = yes; then
23517   # Depending upon the size, compute the lo and hi bounds.
23518 cat >conftest.$ac_ext <<_ACEOF
23519 /* confdefs.h.  */
23520 _ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h.  */
23524 $ac_includes_default
23525 int
23526 main ()
23527 {
23528 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23529 test_array [0] = 0
23530
23531   ;
23532   return 0;
23533 }
23534 _ACEOF
23535 rm -f conftest.$ac_objext
23536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23537   (eval $ac_compile) 2>conftest.er1
23538   ac_status=$?
23539   grep -v '^ *+' conftest.er1 >conftest.err
23540   rm -f conftest.er1
23541   cat conftest.err >&5
23542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543   (exit $ac_status); } &&
23544          { ac_try='test -z "$ac_c_werror_flag"
23545                          || test ! -s conftest.err'
23546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23547   (eval $ac_try) 2>&5
23548   ac_status=$?
23549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550   (exit $ac_status); }; } &&
23551          { ac_try='test -s conftest.$ac_objext'
23552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23553   (eval $ac_try) 2>&5
23554   ac_status=$?
23555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556   (exit $ac_status); }; }; then
23557   ac_lo=0 ac_mid=0
23558   while :; do
23559     cat >conftest.$ac_ext <<_ACEOF
23560 /* confdefs.h.  */
23561 _ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h.  */
23565 $ac_includes_default
23566 int
23567 main ()
23568 {
23569 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23570 test_array [0] = 0
23571
23572   ;
23573   return 0;
23574 }
23575 _ACEOF
23576 rm -f conftest.$ac_objext
23577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23578   (eval $ac_compile) 2>conftest.er1
23579   ac_status=$?
23580   grep -v '^ *+' conftest.er1 >conftest.err
23581   rm -f conftest.er1
23582   cat conftest.err >&5
23583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584   (exit $ac_status); } &&
23585          { ac_try='test -z "$ac_c_werror_flag"
23586                          || test ! -s conftest.err'
23587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23588   (eval $ac_try) 2>&5
23589   ac_status=$?
23590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591   (exit $ac_status); }; } &&
23592          { ac_try='test -s conftest.$ac_objext'
23593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23594   (eval $ac_try) 2>&5
23595   ac_status=$?
23596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597   (exit $ac_status); }; }; then
23598   ac_hi=$ac_mid; break
23599 else
23600   echo "$as_me: failed program was:" >&5
23601 sed 's/^/| /' conftest.$ac_ext >&5
23602
23603 ac_lo=`expr $ac_mid + 1`
23604                     if test $ac_lo -le $ac_mid; then
23605                       ac_lo= ac_hi=
23606                       break
23607                     fi
23608                     ac_mid=`expr 2 '*' $ac_mid + 1`
23609 fi
23610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23611   done
23612 else
23613   echo "$as_me: failed program was:" >&5
23614 sed 's/^/| /' conftest.$ac_ext >&5
23615
23616 cat >conftest.$ac_ext <<_ACEOF
23617 /* confdefs.h.  */
23618 _ACEOF
23619 cat confdefs.h >>conftest.$ac_ext
23620 cat >>conftest.$ac_ext <<_ACEOF
23621 /* end confdefs.h.  */
23622 $ac_includes_default
23623 int
23624 main ()
23625 {
23626 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23627 test_array [0] = 0
23628
23629   ;
23630   return 0;
23631 }
23632 _ACEOF
23633 rm -f conftest.$ac_objext
23634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23635   (eval $ac_compile) 2>conftest.er1
23636   ac_status=$?
23637   grep -v '^ *+' conftest.er1 >conftest.err
23638   rm -f conftest.er1
23639   cat conftest.err >&5
23640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641   (exit $ac_status); } &&
23642          { ac_try='test -z "$ac_c_werror_flag"
23643                          || test ! -s conftest.err'
23644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645   (eval $ac_try) 2>&5
23646   ac_status=$?
23647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648   (exit $ac_status); }; } &&
23649          { ac_try='test -s conftest.$ac_objext'
23650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23651   (eval $ac_try) 2>&5
23652   ac_status=$?
23653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654   (exit $ac_status); }; }; then
23655   ac_hi=-1 ac_mid=-1
23656   while :; do
23657     cat >conftest.$ac_ext <<_ACEOF
23658 /* confdefs.h.  */
23659 _ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h.  */
23663 $ac_includes_default
23664 int
23665 main ()
23666 {
23667 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23668 test_array [0] = 0
23669
23670   ;
23671   return 0;
23672 }
23673 _ACEOF
23674 rm -f conftest.$ac_objext
23675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23676   (eval $ac_compile) 2>conftest.er1
23677   ac_status=$?
23678   grep -v '^ *+' conftest.er1 >conftest.err
23679   rm -f conftest.er1
23680   cat conftest.err >&5
23681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682   (exit $ac_status); } &&
23683          { ac_try='test -z "$ac_c_werror_flag"
23684                          || test ! -s conftest.err'
23685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23686   (eval $ac_try) 2>&5
23687   ac_status=$?
23688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689   (exit $ac_status); }; } &&
23690          { ac_try='test -s conftest.$ac_objext'
23691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23692   (eval $ac_try) 2>&5
23693   ac_status=$?
23694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695   (exit $ac_status); }; }; then
23696   ac_lo=$ac_mid; break
23697 else
23698   echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.$ac_ext >&5
23700
23701 ac_hi=`expr '(' $ac_mid ')' - 1`
23702                        if test $ac_mid -le $ac_hi; then
23703                          ac_lo= ac_hi=
23704                          break
23705                        fi
23706                        ac_mid=`expr 2 '*' $ac_mid`
23707 fi
23708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23709   done
23710 else
23711   echo "$as_me: failed program was:" >&5
23712 sed 's/^/| /' conftest.$ac_ext >&5
23713
23714 ac_lo= ac_hi=
23715 fi
23716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23717 fi
23718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23719 # Binary search between lo and hi bounds.
23720 while test "x$ac_lo" != "x$ac_hi"; do
23721   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23722   cat >conftest.$ac_ext <<_ACEOF
23723 /* confdefs.h.  */
23724 _ACEOF
23725 cat confdefs.h >>conftest.$ac_ext
23726 cat >>conftest.$ac_ext <<_ACEOF
23727 /* end confdefs.h.  */
23728 $ac_includes_default
23729 int
23730 main ()
23731 {
23732 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23733 test_array [0] = 0
23734
23735   ;
23736   return 0;
23737 }
23738 _ACEOF
23739 rm -f conftest.$ac_objext
23740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23741   (eval $ac_compile) 2>conftest.er1
23742   ac_status=$?
23743   grep -v '^ *+' conftest.er1 >conftest.err
23744   rm -f conftest.er1
23745   cat conftest.err >&5
23746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747   (exit $ac_status); } &&
23748          { ac_try='test -z "$ac_c_werror_flag"
23749                          || test ! -s conftest.err'
23750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23751   (eval $ac_try) 2>&5
23752   ac_status=$?
23753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754   (exit $ac_status); }; } &&
23755          { ac_try='test -s conftest.$ac_objext'
23756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23757   (eval $ac_try) 2>&5
23758   ac_status=$?
23759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760   (exit $ac_status); }; }; then
23761   ac_hi=$ac_mid
23762 else
23763   echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23765
23766 ac_lo=`expr '(' $ac_mid ')' + 1`
23767 fi
23768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23769 done
23770 case $ac_lo in
23771 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23772 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23773 See \`config.log' for more details." >&5
23774 echo "$as_me: error: cannot compute sizeof (short int), 77
23775 See \`config.log' for more details." >&2;}
23776    { (exit 1); exit 1; }; } ;;
23777 esac
23778 else
23779   if test "$cross_compiling" = yes; then
23780   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23781 See \`config.log' for more details." >&5
23782 echo "$as_me: error: cannot run test program while cross compiling
23783 See \`config.log' for more details." >&2;}
23784    { (exit 1); exit 1; }; }
23785 else
23786   cat >conftest.$ac_ext <<_ACEOF
23787 /* confdefs.h.  */
23788 _ACEOF
23789 cat confdefs.h >>conftest.$ac_ext
23790 cat >>conftest.$ac_ext <<_ACEOF
23791 /* end confdefs.h.  */
23792 $ac_includes_default
23793 long longval () { return (long) (sizeof (short int)); }
23794 unsigned long ulongval () { return (long) (sizeof (short int)); }
23795 #include <stdio.h>
23796 #include <stdlib.h>
23797 int
23798 main ()
23799 {
23800
23801   FILE *f = fopen ("conftest.val", "w");
23802   if (! f)
23803     exit (1);
23804   if (((long) (sizeof (short int))) < 0)
23805     {
23806       long i = longval ();
23807       if (i != ((long) (sizeof (short int))))
23808         exit (1);
23809       fprintf (f, "%ld\n", i);
23810     }
23811   else
23812     {
23813       unsigned long i = ulongval ();
23814       if (i != ((long) (sizeof (short int))))
23815         exit (1);
23816       fprintf (f, "%lu\n", i);
23817     }
23818   exit (ferror (f) || fclose (f) != 0);
23819
23820   ;
23821   return 0;
23822 }
23823 _ACEOF
23824 rm -f conftest$ac_exeext
23825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23826   (eval $ac_link) 2>&5
23827   ac_status=$?
23828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23831   (eval $ac_try) 2>&5
23832   ac_status=$?
23833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834   (exit $ac_status); }; }; then
23835   ac_cv_sizeof_short_int=`cat conftest.val`
23836 else
23837   echo "$as_me: program exited with status $ac_status" >&5
23838 echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23840
23841 ( exit $ac_status )
23842 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23843 See \`config.log' for more details." >&5
23844 echo "$as_me: error: cannot compute sizeof (short int), 77
23845 See \`config.log' for more details." >&2;}
23846    { (exit 1); exit 1; }; }
23847 fi
23848 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23849 fi
23850 fi
23851 rm -f conftest.val
23852 else
23853   ac_cv_sizeof_short_int=0
23854 fi
23855 fi
23856 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23857 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23858 cat >>confdefs.h <<_ACEOF
23859 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23860 _ACEOF
23861
23862
23863 echo "$as_me:$LINENO: checking for int" >&5
23864 echo $ECHO_N "checking for int... $ECHO_C" >&6
23865 if test "${ac_cv_type_int+set}" = set; then
23866   echo $ECHO_N "(cached) $ECHO_C" >&6
23867 else
23868   cat >conftest.$ac_ext <<_ACEOF
23869 /* confdefs.h.  */
23870 _ACEOF
23871 cat confdefs.h >>conftest.$ac_ext
23872 cat >>conftest.$ac_ext <<_ACEOF
23873 /* end confdefs.h.  */
23874 $ac_includes_default
23875 int
23876 main ()
23877 {
23878 if ((int *) 0)
23879   return 0;
23880 if (sizeof (int))
23881   return 0;
23882   ;
23883   return 0;
23884 }
23885 _ACEOF
23886 rm -f conftest.$ac_objext
23887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23888   (eval $ac_compile) 2>conftest.er1
23889   ac_status=$?
23890   grep -v '^ *+' conftest.er1 >conftest.err
23891   rm -f conftest.er1
23892   cat conftest.err >&5
23893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894   (exit $ac_status); } &&
23895          { ac_try='test -z "$ac_c_werror_flag"
23896                          || test ! -s conftest.err'
23897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898   (eval $ac_try) 2>&5
23899   ac_status=$?
23900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901   (exit $ac_status); }; } &&
23902          { ac_try='test -s conftest.$ac_objext'
23903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23904   (eval $ac_try) 2>&5
23905   ac_status=$?
23906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907   (exit $ac_status); }; }; then
23908   ac_cv_type_int=yes
23909 else
23910   echo "$as_me: failed program was:" >&5
23911 sed 's/^/| /' conftest.$ac_ext >&5
23912
23913 ac_cv_type_int=no
23914 fi
23915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23916 fi
23917 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23918 echo "${ECHO_T}$ac_cv_type_int" >&6
23919
23920 echo "$as_me:$LINENO: checking size of int" >&5
23921 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23922 if test "${ac_cv_sizeof_int+set}" = set; then
23923   echo $ECHO_N "(cached) $ECHO_C" >&6
23924 else
23925   if test "$ac_cv_type_int" = yes; then
23926   # The cast to unsigned long works around a bug in the HP C Compiler
23927   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23928   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23929   # This bug is HP SR number 8606223364.
23930   if test "$cross_compiling" = yes; then
23931   # Depending upon the size, compute the lo and hi bounds.
23932 cat >conftest.$ac_ext <<_ACEOF
23933 /* confdefs.h.  */
23934 _ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h.  */
23938 $ac_includes_default
23939 int
23940 main ()
23941 {
23942 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23943 test_array [0] = 0
23944
23945   ;
23946   return 0;
23947 }
23948 _ACEOF
23949 rm -f conftest.$ac_objext
23950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23951   (eval $ac_compile) 2>conftest.er1
23952   ac_status=$?
23953   grep -v '^ *+' conftest.er1 >conftest.err
23954   rm -f conftest.er1
23955   cat conftest.err >&5
23956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957   (exit $ac_status); } &&
23958          { ac_try='test -z "$ac_c_werror_flag"
23959                          || test ! -s conftest.err'
23960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23961   (eval $ac_try) 2>&5
23962   ac_status=$?
23963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964   (exit $ac_status); }; } &&
23965          { ac_try='test -s conftest.$ac_objext'
23966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23967   (eval $ac_try) 2>&5
23968   ac_status=$?
23969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970   (exit $ac_status); }; }; then
23971   ac_lo=0 ac_mid=0
23972   while :; do
23973     cat >conftest.$ac_ext <<_ACEOF
23974 /* confdefs.h.  */
23975 _ACEOF
23976 cat confdefs.h >>conftest.$ac_ext
23977 cat >>conftest.$ac_ext <<_ACEOF
23978 /* end confdefs.h.  */
23979 $ac_includes_default
23980 int
23981 main ()
23982 {
23983 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23984 test_array [0] = 0
23985
23986   ;
23987   return 0;
23988 }
23989 _ACEOF
23990 rm -f conftest.$ac_objext
23991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23992   (eval $ac_compile) 2>conftest.er1
23993   ac_status=$?
23994   grep -v '^ *+' conftest.er1 >conftest.err
23995   rm -f conftest.er1
23996   cat conftest.err >&5
23997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998   (exit $ac_status); } &&
23999          { ac_try='test -z "$ac_c_werror_flag"
24000                          || test ! -s conftest.err'
24001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24002   (eval $ac_try) 2>&5
24003   ac_status=$?
24004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005   (exit $ac_status); }; } &&
24006          { ac_try='test -s conftest.$ac_objext'
24007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008   (eval $ac_try) 2>&5
24009   ac_status=$?
24010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011   (exit $ac_status); }; }; then
24012   ac_hi=$ac_mid; break
24013 else
24014   echo "$as_me: failed program was:" >&5
24015 sed 's/^/| /' conftest.$ac_ext >&5
24016
24017 ac_lo=`expr $ac_mid + 1`
24018                     if test $ac_lo -le $ac_mid; then
24019                       ac_lo= ac_hi=
24020                       break
24021                     fi
24022                     ac_mid=`expr 2 '*' $ac_mid + 1`
24023 fi
24024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24025   done
24026 else
24027   echo "$as_me: failed program was:" >&5
24028 sed 's/^/| /' conftest.$ac_ext >&5
24029
24030 cat >conftest.$ac_ext <<_ACEOF
24031 /* confdefs.h.  */
24032 _ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h.  */
24036 $ac_includes_default
24037 int
24038 main ()
24039 {
24040 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
24041 test_array [0] = 0
24042
24043   ;
24044   return 0;
24045 }
24046 _ACEOF
24047 rm -f conftest.$ac_objext
24048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24049   (eval $ac_compile) 2>conftest.er1
24050   ac_status=$?
24051   grep -v '^ *+' conftest.er1 >conftest.err
24052   rm -f conftest.er1
24053   cat conftest.err >&5
24054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055   (exit $ac_status); } &&
24056          { ac_try='test -z "$ac_c_werror_flag"
24057                          || test ! -s conftest.err'
24058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24059   (eval $ac_try) 2>&5
24060   ac_status=$?
24061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062   (exit $ac_status); }; } &&
24063          { ac_try='test -s conftest.$ac_objext'
24064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24065   (eval $ac_try) 2>&5
24066   ac_status=$?
24067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24068   (exit $ac_status); }; }; then
24069   ac_hi=-1 ac_mid=-1
24070   while :; do
24071     cat >conftest.$ac_ext <<_ACEOF
24072 /* confdefs.h.  */
24073 _ACEOF
24074 cat confdefs.h >>conftest.$ac_ext
24075 cat >>conftest.$ac_ext <<_ACEOF
24076 /* end confdefs.h.  */
24077 $ac_includes_default
24078 int
24079 main ()
24080 {
24081 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
24082 test_array [0] = 0
24083
24084   ;
24085   return 0;
24086 }
24087 _ACEOF
24088 rm -f conftest.$ac_objext
24089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24090   (eval $ac_compile) 2>conftest.er1
24091   ac_status=$?
24092   grep -v '^ *+' conftest.er1 >conftest.err
24093   rm -f conftest.er1
24094   cat conftest.err >&5
24095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096   (exit $ac_status); } &&
24097          { ac_try='test -z "$ac_c_werror_flag"
24098                          || test ! -s conftest.err'
24099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24100   (eval $ac_try) 2>&5
24101   ac_status=$?
24102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103   (exit $ac_status); }; } &&
24104          { ac_try='test -s conftest.$ac_objext'
24105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24106   (eval $ac_try) 2>&5
24107   ac_status=$?
24108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109   (exit $ac_status); }; }; then
24110   ac_lo=$ac_mid; break
24111 else
24112   echo "$as_me: failed program was:" >&5
24113 sed 's/^/| /' conftest.$ac_ext >&5
24114
24115 ac_hi=`expr '(' $ac_mid ')' - 1`
24116                        if test $ac_mid -le $ac_hi; then
24117                          ac_lo= ac_hi=
24118                          break
24119                        fi
24120                        ac_mid=`expr 2 '*' $ac_mid`
24121 fi
24122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24123   done
24124 else
24125   echo "$as_me: failed program was:" >&5
24126 sed 's/^/| /' conftest.$ac_ext >&5
24127
24128 ac_lo= ac_hi=
24129 fi
24130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24131 fi
24132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24133 # Binary search between lo and hi bounds.
24134 while test "x$ac_lo" != "x$ac_hi"; do
24135   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24136   cat >conftest.$ac_ext <<_ACEOF
24137 /* confdefs.h.  */
24138 _ACEOF
24139 cat confdefs.h >>conftest.$ac_ext
24140 cat >>conftest.$ac_ext <<_ACEOF
24141 /* end confdefs.h.  */
24142 $ac_includes_default
24143 int
24144 main ()
24145 {
24146 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24147 test_array [0] = 0
24148
24149   ;
24150   return 0;
24151 }
24152 _ACEOF
24153 rm -f conftest.$ac_objext
24154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24155   (eval $ac_compile) 2>conftest.er1
24156   ac_status=$?
24157   grep -v '^ *+' conftest.er1 >conftest.err
24158   rm -f conftest.er1
24159   cat conftest.err >&5
24160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161   (exit $ac_status); } &&
24162          { ac_try='test -z "$ac_c_werror_flag"
24163                          || test ! -s conftest.err'
24164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24165   (eval $ac_try) 2>&5
24166   ac_status=$?
24167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168   (exit $ac_status); }; } &&
24169          { ac_try='test -s conftest.$ac_objext'
24170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24171   (eval $ac_try) 2>&5
24172   ac_status=$?
24173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174   (exit $ac_status); }; }; then
24175   ac_hi=$ac_mid
24176 else
24177   echo "$as_me: failed program was:" >&5
24178 sed 's/^/| /' conftest.$ac_ext >&5
24179
24180 ac_lo=`expr '(' $ac_mid ')' + 1`
24181 fi
24182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24183 done
24184 case $ac_lo in
24185 ?*) ac_cv_sizeof_int=$ac_lo;;
24186 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24187 See \`config.log' for more details." >&5
24188 echo "$as_me: error: cannot compute sizeof (int), 77
24189 See \`config.log' for more details." >&2;}
24190    { (exit 1); exit 1; }; } ;;
24191 esac
24192 else
24193   if test "$cross_compiling" = yes; then
24194   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24195 See \`config.log' for more details." >&5
24196 echo "$as_me: error: cannot run test program while cross compiling
24197 See \`config.log' for more details." >&2;}
24198    { (exit 1); exit 1; }; }
24199 else
24200   cat >conftest.$ac_ext <<_ACEOF
24201 /* confdefs.h.  */
24202 _ACEOF
24203 cat confdefs.h >>conftest.$ac_ext
24204 cat >>conftest.$ac_ext <<_ACEOF
24205 /* end confdefs.h.  */
24206 $ac_includes_default
24207 long longval () { return (long) (sizeof (int)); }
24208 unsigned long ulongval () { return (long) (sizeof (int)); }
24209 #include <stdio.h>
24210 #include <stdlib.h>
24211 int
24212 main ()
24213 {
24214
24215   FILE *f = fopen ("conftest.val", "w");
24216   if (! f)
24217     exit (1);
24218   if (((long) (sizeof (int))) < 0)
24219     {
24220       long i = longval ();
24221       if (i != ((long) (sizeof (int))))
24222         exit (1);
24223       fprintf (f, "%ld\n", i);
24224     }
24225   else
24226     {
24227       unsigned long i = ulongval ();
24228       if (i != ((long) (sizeof (int))))
24229         exit (1);
24230       fprintf (f, "%lu\n", i);
24231     }
24232   exit (ferror (f) || fclose (f) != 0);
24233
24234   ;
24235   return 0;
24236 }
24237 _ACEOF
24238 rm -f conftest$ac_exeext
24239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24240   (eval $ac_link) 2>&5
24241   ac_status=$?
24242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24245   (eval $ac_try) 2>&5
24246   ac_status=$?
24247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248   (exit $ac_status); }; }; then
24249   ac_cv_sizeof_int=`cat conftest.val`
24250 else
24251   echo "$as_me: program exited with status $ac_status" >&5
24252 echo "$as_me: failed program was:" >&5
24253 sed 's/^/| /' conftest.$ac_ext >&5
24254
24255 ( exit $ac_status )
24256 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24257 See \`config.log' for more details." >&5
24258 echo "$as_me: error: cannot compute sizeof (int), 77
24259 See \`config.log' for more details." >&2;}
24260    { (exit 1); exit 1; }; }
24261 fi
24262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24263 fi
24264 fi
24265 rm -f conftest.val
24266 else
24267   ac_cv_sizeof_int=0
24268 fi
24269 fi
24270 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24271 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24272 cat >>confdefs.h <<_ACEOF
24273 #define SIZEOF_INT $ac_cv_sizeof_int
24274 _ACEOF
24275
24276
24277 echo "$as_me:$LINENO: checking for long int" >&5
24278 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24279 if test "${ac_cv_type_long_int+set}" = set; then
24280   echo $ECHO_N "(cached) $ECHO_C" >&6
24281 else
24282   cat >conftest.$ac_ext <<_ACEOF
24283 /* confdefs.h.  */
24284 _ACEOF
24285 cat confdefs.h >>conftest.$ac_ext
24286 cat >>conftest.$ac_ext <<_ACEOF
24287 /* end confdefs.h.  */
24288 $ac_includes_default
24289 int
24290 main ()
24291 {
24292 if ((long int *) 0)
24293   return 0;
24294 if (sizeof (long int))
24295   return 0;
24296   ;
24297   return 0;
24298 }
24299 _ACEOF
24300 rm -f conftest.$ac_objext
24301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24302   (eval $ac_compile) 2>conftest.er1
24303   ac_status=$?
24304   grep -v '^ *+' conftest.er1 >conftest.err
24305   rm -f conftest.er1
24306   cat conftest.err >&5
24307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308   (exit $ac_status); } &&
24309          { ac_try='test -z "$ac_c_werror_flag"
24310                          || test ! -s conftest.err'
24311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24312   (eval $ac_try) 2>&5
24313   ac_status=$?
24314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315   (exit $ac_status); }; } &&
24316          { ac_try='test -s conftest.$ac_objext'
24317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318   (eval $ac_try) 2>&5
24319   ac_status=$?
24320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321   (exit $ac_status); }; }; then
24322   ac_cv_type_long_int=yes
24323 else
24324   echo "$as_me: failed program was:" >&5
24325 sed 's/^/| /' conftest.$ac_ext >&5
24326
24327 ac_cv_type_long_int=no
24328 fi
24329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24330 fi
24331 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24332 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24333
24334 echo "$as_me:$LINENO: checking size of long int" >&5
24335 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24336 if test "${ac_cv_sizeof_long_int+set}" = set; then
24337   echo $ECHO_N "(cached) $ECHO_C" >&6
24338 else
24339   if test "$ac_cv_type_long_int" = yes; then
24340   # The cast to unsigned long works around a bug in the HP C Compiler
24341   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24342   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24343   # This bug is HP SR number 8606223364.
24344   if test "$cross_compiling" = yes; then
24345   # Depending upon the size, compute the lo and hi bounds.
24346 cat >conftest.$ac_ext <<_ACEOF
24347 /* confdefs.h.  */
24348 _ACEOF
24349 cat confdefs.h >>conftest.$ac_ext
24350 cat >>conftest.$ac_ext <<_ACEOF
24351 /* end confdefs.h.  */
24352 $ac_includes_default
24353 int
24354 main ()
24355 {
24356 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24357 test_array [0] = 0
24358
24359   ;
24360   return 0;
24361 }
24362 _ACEOF
24363 rm -f conftest.$ac_objext
24364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24365   (eval $ac_compile) 2>conftest.er1
24366   ac_status=$?
24367   grep -v '^ *+' conftest.er1 >conftest.err
24368   rm -f conftest.er1
24369   cat conftest.err >&5
24370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371   (exit $ac_status); } &&
24372          { ac_try='test -z "$ac_c_werror_flag"
24373                          || test ! -s conftest.err'
24374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24375   (eval $ac_try) 2>&5
24376   ac_status=$?
24377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378   (exit $ac_status); }; } &&
24379          { ac_try='test -s conftest.$ac_objext'
24380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24381   (eval $ac_try) 2>&5
24382   ac_status=$?
24383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384   (exit $ac_status); }; }; then
24385   ac_lo=0 ac_mid=0
24386   while :; do
24387     cat >conftest.$ac_ext <<_ACEOF
24388 /* confdefs.h.  */
24389 _ACEOF
24390 cat confdefs.h >>conftest.$ac_ext
24391 cat >>conftest.$ac_ext <<_ACEOF
24392 /* end confdefs.h.  */
24393 $ac_includes_default
24394 int
24395 main ()
24396 {
24397 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24398 test_array [0] = 0
24399
24400   ;
24401   return 0;
24402 }
24403 _ACEOF
24404 rm -f conftest.$ac_objext
24405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24406   (eval $ac_compile) 2>conftest.er1
24407   ac_status=$?
24408   grep -v '^ *+' conftest.er1 >conftest.err
24409   rm -f conftest.er1
24410   cat conftest.err >&5
24411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412   (exit $ac_status); } &&
24413          { ac_try='test -z "$ac_c_werror_flag"
24414                          || test ! -s conftest.err'
24415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24416   (eval $ac_try) 2>&5
24417   ac_status=$?
24418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419   (exit $ac_status); }; } &&
24420          { ac_try='test -s conftest.$ac_objext'
24421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24422   (eval $ac_try) 2>&5
24423   ac_status=$?
24424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425   (exit $ac_status); }; }; then
24426   ac_hi=$ac_mid; break
24427 else
24428   echo "$as_me: failed program was:" >&5
24429 sed 's/^/| /' conftest.$ac_ext >&5
24430
24431 ac_lo=`expr $ac_mid + 1`
24432                     if test $ac_lo -le $ac_mid; then
24433                       ac_lo= ac_hi=
24434                       break
24435                     fi
24436                     ac_mid=`expr 2 '*' $ac_mid + 1`
24437 fi
24438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24439   done
24440 else
24441   echo "$as_me: failed program was:" >&5
24442 sed 's/^/| /' conftest.$ac_ext >&5
24443
24444 cat >conftest.$ac_ext <<_ACEOF
24445 /* confdefs.h.  */
24446 _ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h.  */
24450 $ac_includes_default
24451 int
24452 main ()
24453 {
24454 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24455 test_array [0] = 0
24456
24457   ;
24458   return 0;
24459 }
24460 _ACEOF
24461 rm -f conftest.$ac_objext
24462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24463   (eval $ac_compile) 2>conftest.er1
24464   ac_status=$?
24465   grep -v '^ *+' conftest.er1 >conftest.err
24466   rm -f conftest.er1
24467   cat conftest.err >&5
24468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469   (exit $ac_status); } &&
24470          { ac_try='test -z "$ac_c_werror_flag"
24471                          || test ! -s conftest.err'
24472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473   (eval $ac_try) 2>&5
24474   ac_status=$?
24475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476   (exit $ac_status); }; } &&
24477          { ac_try='test -s conftest.$ac_objext'
24478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479   (eval $ac_try) 2>&5
24480   ac_status=$?
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); }; }; then
24483   ac_hi=-1 ac_mid=-1
24484   while :; do
24485     cat >conftest.$ac_ext <<_ACEOF
24486 /* confdefs.h.  */
24487 _ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h.  */
24491 $ac_includes_default
24492 int
24493 main ()
24494 {
24495 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24496 test_array [0] = 0
24497
24498   ;
24499   return 0;
24500 }
24501 _ACEOF
24502 rm -f conftest.$ac_objext
24503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24504   (eval $ac_compile) 2>conftest.er1
24505   ac_status=$?
24506   grep -v '^ *+' conftest.er1 >conftest.err
24507   rm -f conftest.er1
24508   cat conftest.err >&5
24509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510   (exit $ac_status); } &&
24511          { ac_try='test -z "$ac_c_werror_flag"
24512                          || test ! -s conftest.err'
24513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24514   (eval $ac_try) 2>&5
24515   ac_status=$?
24516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517   (exit $ac_status); }; } &&
24518          { ac_try='test -s conftest.$ac_objext'
24519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24520   (eval $ac_try) 2>&5
24521   ac_status=$?
24522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523   (exit $ac_status); }; }; then
24524   ac_lo=$ac_mid; break
24525 else
24526   echo "$as_me: failed program was:" >&5
24527 sed 's/^/| /' conftest.$ac_ext >&5
24528
24529 ac_hi=`expr '(' $ac_mid ')' - 1`
24530                        if test $ac_mid -le $ac_hi; then
24531                          ac_lo= ac_hi=
24532                          break
24533                        fi
24534                        ac_mid=`expr 2 '*' $ac_mid`
24535 fi
24536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24537   done
24538 else
24539   echo "$as_me: failed program was:" >&5
24540 sed 's/^/| /' conftest.$ac_ext >&5
24541
24542 ac_lo= ac_hi=
24543 fi
24544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24545 fi
24546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24547 # Binary search between lo and hi bounds.
24548 while test "x$ac_lo" != "x$ac_hi"; do
24549   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24550   cat >conftest.$ac_ext <<_ACEOF
24551 /* confdefs.h.  */
24552 _ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h.  */
24556 $ac_includes_default
24557 int
24558 main ()
24559 {
24560 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24561 test_array [0] = 0
24562
24563   ;
24564   return 0;
24565 }
24566 _ACEOF
24567 rm -f conftest.$ac_objext
24568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24569   (eval $ac_compile) 2>conftest.er1
24570   ac_status=$?
24571   grep -v '^ *+' conftest.er1 >conftest.err
24572   rm -f conftest.er1
24573   cat conftest.err >&5
24574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575   (exit $ac_status); } &&
24576          { ac_try='test -z "$ac_c_werror_flag"
24577                          || test ! -s conftest.err'
24578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24579   (eval $ac_try) 2>&5
24580   ac_status=$?
24581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582   (exit $ac_status); }; } &&
24583          { ac_try='test -s conftest.$ac_objext'
24584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24585   (eval $ac_try) 2>&5
24586   ac_status=$?
24587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588   (exit $ac_status); }; }; then
24589   ac_hi=$ac_mid
24590 else
24591   echo "$as_me: failed program was:" >&5
24592 sed 's/^/| /' conftest.$ac_ext >&5
24593
24594 ac_lo=`expr '(' $ac_mid ')' + 1`
24595 fi
24596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24597 done
24598 case $ac_lo in
24599 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24600 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24601 See \`config.log' for more details." >&5
24602 echo "$as_me: error: cannot compute sizeof (long int), 77
24603 See \`config.log' for more details." >&2;}
24604    { (exit 1); exit 1; }; } ;;
24605 esac
24606 else
24607   if test "$cross_compiling" = yes; then
24608   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24609 See \`config.log' for more details." >&5
24610 echo "$as_me: error: cannot run test program while cross compiling
24611 See \`config.log' for more details." >&2;}
24612    { (exit 1); exit 1; }; }
24613 else
24614   cat >conftest.$ac_ext <<_ACEOF
24615 /* confdefs.h.  */
24616 _ACEOF
24617 cat confdefs.h >>conftest.$ac_ext
24618 cat >>conftest.$ac_ext <<_ACEOF
24619 /* end confdefs.h.  */
24620 $ac_includes_default
24621 long longval () { return (long) (sizeof (long int)); }
24622 unsigned long ulongval () { return (long) (sizeof (long int)); }
24623 #include <stdio.h>
24624 #include <stdlib.h>
24625 int
24626 main ()
24627 {
24628
24629   FILE *f = fopen ("conftest.val", "w");
24630   if (! f)
24631     exit (1);
24632   if (((long) (sizeof (long int))) < 0)
24633     {
24634       long i = longval ();
24635       if (i != ((long) (sizeof (long int))))
24636         exit (1);
24637       fprintf (f, "%ld\n", i);
24638     }
24639   else
24640     {
24641       unsigned long i = ulongval ();
24642       if (i != ((long) (sizeof (long int))))
24643         exit (1);
24644       fprintf (f, "%lu\n", i);
24645     }
24646   exit (ferror (f) || fclose (f) != 0);
24647
24648   ;
24649   return 0;
24650 }
24651 _ACEOF
24652 rm -f conftest$ac_exeext
24653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24654   (eval $ac_link) 2>&5
24655   ac_status=$?
24656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659   (eval $ac_try) 2>&5
24660   ac_status=$?
24661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662   (exit $ac_status); }; }; then
24663   ac_cv_sizeof_long_int=`cat conftest.val`
24664 else
24665   echo "$as_me: program exited with status $ac_status" >&5
24666 echo "$as_me: failed program was:" >&5
24667 sed 's/^/| /' conftest.$ac_ext >&5
24668
24669 ( exit $ac_status )
24670 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24671 See \`config.log' for more details." >&5
24672 echo "$as_me: error: cannot compute sizeof (long int), 77
24673 See \`config.log' for more details." >&2;}
24674    { (exit 1); exit 1; }; }
24675 fi
24676 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24677 fi
24678 fi
24679 rm -f conftest.val
24680 else
24681   ac_cv_sizeof_long_int=0
24682 fi
24683 fi
24684 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24685 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24686 cat >>confdefs.h <<_ACEOF
24687 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24688 _ACEOF
24689
24690
24691 echo "$as_me:$LINENO: checking for long long int" >&5
24692 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24693 if test "${ac_cv_type_long_long_int+set}" = set; then
24694   echo $ECHO_N "(cached) $ECHO_C" >&6
24695 else
24696   cat >conftest.$ac_ext <<_ACEOF
24697 /* confdefs.h.  */
24698 _ACEOF
24699 cat confdefs.h >>conftest.$ac_ext
24700 cat >>conftest.$ac_ext <<_ACEOF
24701 /* end confdefs.h.  */
24702 $ac_includes_default
24703 int
24704 main ()
24705 {
24706 if ((long long int *) 0)
24707   return 0;
24708 if (sizeof (long long int))
24709   return 0;
24710   ;
24711   return 0;
24712 }
24713 _ACEOF
24714 rm -f conftest.$ac_objext
24715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24716   (eval $ac_compile) 2>conftest.er1
24717   ac_status=$?
24718   grep -v '^ *+' conftest.er1 >conftest.err
24719   rm -f conftest.er1
24720   cat conftest.err >&5
24721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722   (exit $ac_status); } &&
24723          { ac_try='test -z "$ac_c_werror_flag"
24724                          || test ! -s conftest.err'
24725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24726   (eval $ac_try) 2>&5
24727   ac_status=$?
24728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729   (exit $ac_status); }; } &&
24730          { ac_try='test -s conftest.$ac_objext'
24731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24732   (eval $ac_try) 2>&5
24733   ac_status=$?
24734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); }; }; then
24736   ac_cv_type_long_long_int=yes
24737 else
24738   echo "$as_me: failed program was:" >&5
24739 sed 's/^/| /' conftest.$ac_ext >&5
24740
24741 ac_cv_type_long_long_int=no
24742 fi
24743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24744 fi
24745 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24746 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24747
24748 echo "$as_me:$LINENO: checking size of long long int" >&5
24749 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24750 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24751   echo $ECHO_N "(cached) $ECHO_C" >&6
24752 else
24753   if test "$ac_cv_type_long_long_int" = yes; then
24754   # The cast to unsigned long works around a bug in the HP C Compiler
24755   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24756   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24757   # This bug is HP SR number 8606223364.
24758   if test "$cross_compiling" = yes; then
24759   # Depending upon the size, compute the lo and hi bounds.
24760 cat >conftest.$ac_ext <<_ACEOF
24761 /* confdefs.h.  */
24762 _ACEOF
24763 cat confdefs.h >>conftest.$ac_ext
24764 cat >>conftest.$ac_ext <<_ACEOF
24765 /* end confdefs.h.  */
24766 $ac_includes_default
24767 int
24768 main ()
24769 {
24770 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24771 test_array [0] = 0
24772
24773   ;
24774   return 0;
24775 }
24776 _ACEOF
24777 rm -f conftest.$ac_objext
24778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24779   (eval $ac_compile) 2>conftest.er1
24780   ac_status=$?
24781   grep -v '^ *+' conftest.er1 >conftest.err
24782   rm -f conftest.er1
24783   cat conftest.err >&5
24784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785   (exit $ac_status); } &&
24786          { ac_try='test -z "$ac_c_werror_flag"
24787                          || test ! -s conftest.err'
24788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24789   (eval $ac_try) 2>&5
24790   ac_status=$?
24791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792   (exit $ac_status); }; } &&
24793          { ac_try='test -s conftest.$ac_objext'
24794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24795   (eval $ac_try) 2>&5
24796   ac_status=$?
24797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798   (exit $ac_status); }; }; then
24799   ac_lo=0 ac_mid=0
24800   while :; do
24801     cat >conftest.$ac_ext <<_ACEOF
24802 /* confdefs.h.  */
24803 _ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h.  */
24807 $ac_includes_default
24808 int
24809 main ()
24810 {
24811 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24812 test_array [0] = 0
24813
24814   ;
24815   return 0;
24816 }
24817 _ACEOF
24818 rm -f conftest.$ac_objext
24819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24820   (eval $ac_compile) 2>conftest.er1
24821   ac_status=$?
24822   grep -v '^ *+' conftest.er1 >conftest.err
24823   rm -f conftest.er1
24824   cat conftest.err >&5
24825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826   (exit $ac_status); } &&
24827          { ac_try='test -z "$ac_c_werror_flag"
24828                          || test ! -s conftest.err'
24829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24830   (eval $ac_try) 2>&5
24831   ac_status=$?
24832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833   (exit $ac_status); }; } &&
24834          { ac_try='test -s conftest.$ac_objext'
24835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24836   (eval $ac_try) 2>&5
24837   ac_status=$?
24838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839   (exit $ac_status); }; }; then
24840   ac_hi=$ac_mid; break
24841 else
24842   echo "$as_me: failed program was:" >&5
24843 sed 's/^/| /' conftest.$ac_ext >&5
24844
24845 ac_lo=`expr $ac_mid + 1`
24846                     if test $ac_lo -le $ac_mid; then
24847                       ac_lo= ac_hi=
24848                       break
24849                     fi
24850                     ac_mid=`expr 2 '*' $ac_mid + 1`
24851 fi
24852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24853   done
24854 else
24855   echo "$as_me: failed program was:" >&5
24856 sed 's/^/| /' conftest.$ac_ext >&5
24857
24858 cat >conftest.$ac_ext <<_ACEOF
24859 /* confdefs.h.  */
24860 _ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h.  */
24864 $ac_includes_default
24865 int
24866 main ()
24867 {
24868 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24869 test_array [0] = 0
24870
24871   ;
24872   return 0;
24873 }
24874 _ACEOF
24875 rm -f conftest.$ac_objext
24876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24877   (eval $ac_compile) 2>conftest.er1
24878   ac_status=$?
24879   grep -v '^ *+' conftest.er1 >conftest.err
24880   rm -f conftest.er1
24881   cat conftest.err >&5
24882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883   (exit $ac_status); } &&
24884          { ac_try='test -z "$ac_c_werror_flag"
24885                          || test ! -s conftest.err'
24886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887   (eval $ac_try) 2>&5
24888   ac_status=$?
24889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890   (exit $ac_status); }; } &&
24891          { ac_try='test -s conftest.$ac_objext'
24892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893   (eval $ac_try) 2>&5
24894   ac_status=$?
24895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896   (exit $ac_status); }; }; then
24897   ac_hi=-1 ac_mid=-1
24898   while :; do
24899     cat >conftest.$ac_ext <<_ACEOF
24900 /* confdefs.h.  */
24901 _ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h.  */
24905 $ac_includes_default
24906 int
24907 main ()
24908 {
24909 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24910 test_array [0] = 0
24911
24912   ;
24913   return 0;
24914 }
24915 _ACEOF
24916 rm -f conftest.$ac_objext
24917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24918   (eval $ac_compile) 2>conftest.er1
24919   ac_status=$?
24920   grep -v '^ *+' conftest.er1 >conftest.err
24921   rm -f conftest.er1
24922   cat conftest.err >&5
24923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924   (exit $ac_status); } &&
24925          { ac_try='test -z "$ac_c_werror_flag"
24926                          || test ! -s conftest.err'
24927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24928   (eval $ac_try) 2>&5
24929   ac_status=$?
24930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931   (exit $ac_status); }; } &&
24932          { ac_try='test -s conftest.$ac_objext'
24933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24934   (eval $ac_try) 2>&5
24935   ac_status=$?
24936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937   (exit $ac_status); }; }; then
24938   ac_lo=$ac_mid; break
24939 else
24940   echo "$as_me: failed program was:" >&5
24941 sed 's/^/| /' conftest.$ac_ext >&5
24942
24943 ac_hi=`expr '(' $ac_mid ')' - 1`
24944                        if test $ac_mid -le $ac_hi; then
24945                          ac_lo= ac_hi=
24946                          break
24947                        fi
24948                        ac_mid=`expr 2 '*' $ac_mid`
24949 fi
24950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24951   done
24952 else
24953   echo "$as_me: failed program was:" >&5
24954 sed 's/^/| /' conftest.$ac_ext >&5
24955
24956 ac_lo= ac_hi=
24957 fi
24958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24959 fi
24960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24961 # Binary search between lo and hi bounds.
24962 while test "x$ac_lo" != "x$ac_hi"; do
24963   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24964   cat >conftest.$ac_ext <<_ACEOF
24965 /* confdefs.h.  */
24966 _ACEOF
24967 cat confdefs.h >>conftest.$ac_ext
24968 cat >>conftest.$ac_ext <<_ACEOF
24969 /* end confdefs.h.  */
24970 $ac_includes_default
24971 int
24972 main ()
24973 {
24974 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24975 test_array [0] = 0
24976
24977   ;
24978   return 0;
24979 }
24980 _ACEOF
24981 rm -f conftest.$ac_objext
24982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24983   (eval $ac_compile) 2>conftest.er1
24984   ac_status=$?
24985   grep -v '^ *+' conftest.er1 >conftest.err
24986   rm -f conftest.er1
24987   cat conftest.err >&5
24988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989   (exit $ac_status); } &&
24990          { ac_try='test -z "$ac_c_werror_flag"
24991                          || test ! -s conftest.err'
24992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24993   (eval $ac_try) 2>&5
24994   ac_status=$?
24995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996   (exit $ac_status); }; } &&
24997          { ac_try='test -s conftest.$ac_objext'
24998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24999   (eval $ac_try) 2>&5
25000   ac_status=$?
25001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002   (exit $ac_status); }; }; then
25003   ac_hi=$ac_mid
25004 else
25005   echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25007
25008 ac_lo=`expr '(' $ac_mid ')' + 1`
25009 fi
25010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25011 done
25012 case $ac_lo in
25013 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25014 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25015 See \`config.log' for more details." >&5
25016 echo "$as_me: error: cannot compute sizeof (long long int), 77
25017 See \`config.log' for more details." >&2;}
25018    { (exit 1); exit 1; }; } ;;
25019 esac
25020 else
25021   if test "$cross_compiling" = yes; then
25022   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25023 See \`config.log' for more details." >&5
25024 echo "$as_me: error: cannot run test program while cross compiling
25025 See \`config.log' for more details." >&2;}
25026    { (exit 1); exit 1; }; }
25027 else
25028   cat >conftest.$ac_ext <<_ACEOF
25029 /* confdefs.h.  */
25030 _ACEOF
25031 cat confdefs.h >>conftest.$ac_ext
25032 cat >>conftest.$ac_ext <<_ACEOF
25033 /* end confdefs.h.  */
25034 $ac_includes_default
25035 long longval () { return (long) (sizeof (long long int)); }
25036 unsigned long ulongval () { return (long) (sizeof (long long int)); }
25037 #include <stdio.h>
25038 #include <stdlib.h>
25039 int
25040 main ()
25041 {
25042
25043   FILE *f = fopen ("conftest.val", "w");
25044   if (! f)
25045     exit (1);
25046   if (((long) (sizeof (long long int))) < 0)
25047     {
25048       long i = longval ();
25049       if (i != ((long) (sizeof (long long int))))
25050         exit (1);
25051       fprintf (f, "%ld\n", i);
25052     }
25053   else
25054     {
25055       unsigned long i = ulongval ();
25056       if (i != ((long) (sizeof (long long int))))
25057         exit (1);
25058       fprintf (f, "%lu\n", i);
25059     }
25060   exit (ferror (f) || fclose (f) != 0);
25061
25062   ;
25063   return 0;
25064 }
25065 _ACEOF
25066 rm -f conftest$ac_exeext
25067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25068   (eval $ac_link) 2>&5
25069   ac_status=$?
25070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25073   (eval $ac_try) 2>&5
25074   ac_status=$?
25075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076   (exit $ac_status); }; }; then
25077   ac_cv_sizeof_long_long_int=`cat conftest.val`
25078 else
25079   echo "$as_me: program exited with status $ac_status" >&5
25080 echo "$as_me: failed program was:" >&5
25081 sed 's/^/| /' conftest.$ac_ext >&5
25082
25083 ( exit $ac_status )
25084 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25085 See \`config.log' for more details." >&5
25086 echo "$as_me: error: cannot compute sizeof (long long int), 77
25087 See \`config.log' for more details." >&2;}
25088    { (exit 1); exit 1; }; }
25089 fi
25090 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25091 fi
25092 fi
25093 rm -f conftest.val
25094 else
25095   ac_cv_sizeof_long_long_int=0
25096 fi
25097 fi
25098 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25099 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
25100 cat >>confdefs.h <<_ACEOF
25101 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25102 _ACEOF
25103
25104
25105 echo "$as_me:$LINENO: checking for int *" >&5
25106 echo $ECHO_N "checking for int *... $ECHO_C" >&6
25107 if test "${ac_cv_type_int_p+set}" = set; then
25108   echo $ECHO_N "(cached) $ECHO_C" >&6
25109 else
25110   cat >conftest.$ac_ext <<_ACEOF
25111 /* confdefs.h.  */
25112 _ACEOF
25113 cat confdefs.h >>conftest.$ac_ext
25114 cat >>conftest.$ac_ext <<_ACEOF
25115 /* end confdefs.h.  */
25116 $ac_includes_default
25117 int
25118 main ()
25119 {
25120 if ((int * *) 0)
25121   return 0;
25122 if (sizeof (int *))
25123   return 0;
25124   ;
25125   return 0;
25126 }
25127 _ACEOF
25128 rm -f conftest.$ac_objext
25129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25130   (eval $ac_compile) 2>conftest.er1
25131   ac_status=$?
25132   grep -v '^ *+' conftest.er1 >conftest.err
25133   rm -f conftest.er1
25134   cat conftest.err >&5
25135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136   (exit $ac_status); } &&
25137          { ac_try='test -z "$ac_c_werror_flag"
25138                          || test ! -s conftest.err'
25139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25140   (eval $ac_try) 2>&5
25141   ac_status=$?
25142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143   (exit $ac_status); }; } &&
25144          { ac_try='test -s conftest.$ac_objext'
25145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25146   (eval $ac_try) 2>&5
25147   ac_status=$?
25148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149   (exit $ac_status); }; }; then
25150   ac_cv_type_int_p=yes
25151 else
25152   echo "$as_me: failed program was:" >&5
25153 sed 's/^/| /' conftest.$ac_ext >&5
25154
25155 ac_cv_type_int_p=no
25156 fi
25157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25158 fi
25159 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25160 echo "${ECHO_T}$ac_cv_type_int_p" >&6
25161
25162 echo "$as_me:$LINENO: checking size of int *" >&5
25163 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
25164 if test "${ac_cv_sizeof_int_p+set}" = set; then
25165   echo $ECHO_N "(cached) $ECHO_C" >&6
25166 else
25167   if test "$ac_cv_type_int_p" = yes; then
25168   # The cast to unsigned long works around a bug in the HP C Compiler
25169   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25170   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25171   # This bug is HP SR number 8606223364.
25172   if test "$cross_compiling" = yes; then
25173   # Depending upon the size, compute the lo and hi bounds.
25174 cat >conftest.$ac_ext <<_ACEOF
25175 /* confdefs.h.  */
25176 _ACEOF
25177 cat confdefs.h >>conftest.$ac_ext
25178 cat >>conftest.$ac_ext <<_ACEOF
25179 /* end confdefs.h.  */
25180 $ac_includes_default
25181 int
25182 main ()
25183 {
25184 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
25185 test_array [0] = 0
25186
25187   ;
25188   return 0;
25189 }
25190 _ACEOF
25191 rm -f conftest.$ac_objext
25192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25193   (eval $ac_compile) 2>conftest.er1
25194   ac_status=$?
25195   grep -v '^ *+' conftest.er1 >conftest.err
25196   rm -f conftest.er1
25197   cat conftest.err >&5
25198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199   (exit $ac_status); } &&
25200          { ac_try='test -z "$ac_c_werror_flag"
25201                          || test ! -s conftest.err'
25202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203   (eval $ac_try) 2>&5
25204   ac_status=$?
25205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206   (exit $ac_status); }; } &&
25207          { ac_try='test -s conftest.$ac_objext'
25208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209   (eval $ac_try) 2>&5
25210   ac_status=$?
25211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212   (exit $ac_status); }; }; then
25213   ac_lo=0 ac_mid=0
25214   while :; do
25215     cat >conftest.$ac_ext <<_ACEOF
25216 /* confdefs.h.  */
25217 _ACEOF
25218 cat confdefs.h >>conftest.$ac_ext
25219 cat >>conftest.$ac_ext <<_ACEOF
25220 /* end confdefs.h.  */
25221 $ac_includes_default
25222 int
25223 main ()
25224 {
25225 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25226 test_array [0] = 0
25227
25228   ;
25229   return 0;
25230 }
25231 _ACEOF
25232 rm -f conftest.$ac_objext
25233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25234   (eval $ac_compile) 2>conftest.er1
25235   ac_status=$?
25236   grep -v '^ *+' conftest.er1 >conftest.err
25237   rm -f conftest.er1
25238   cat conftest.err >&5
25239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240   (exit $ac_status); } &&
25241          { ac_try='test -z "$ac_c_werror_flag"
25242                          || test ! -s conftest.err'
25243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244   (eval $ac_try) 2>&5
25245   ac_status=$?
25246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247   (exit $ac_status); }; } &&
25248          { ac_try='test -s conftest.$ac_objext'
25249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250   (eval $ac_try) 2>&5
25251   ac_status=$?
25252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253   (exit $ac_status); }; }; then
25254   ac_hi=$ac_mid; break
25255 else
25256   echo "$as_me: failed program was:" >&5
25257 sed 's/^/| /' conftest.$ac_ext >&5
25258
25259 ac_lo=`expr $ac_mid + 1`
25260                     if test $ac_lo -le $ac_mid; then
25261                       ac_lo= ac_hi=
25262                       break
25263                     fi
25264                     ac_mid=`expr 2 '*' $ac_mid + 1`
25265 fi
25266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25267   done
25268 else
25269   echo "$as_me: failed program was:" >&5
25270 sed 's/^/| /' conftest.$ac_ext >&5
25271
25272 cat >conftest.$ac_ext <<_ACEOF
25273 /* confdefs.h.  */
25274 _ACEOF
25275 cat confdefs.h >>conftest.$ac_ext
25276 cat >>conftest.$ac_ext <<_ACEOF
25277 /* end confdefs.h.  */
25278 $ac_includes_default
25279 int
25280 main ()
25281 {
25282 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25283 test_array [0] = 0
25284
25285   ;
25286   return 0;
25287 }
25288 _ACEOF
25289 rm -f conftest.$ac_objext
25290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25291   (eval $ac_compile) 2>conftest.er1
25292   ac_status=$?
25293   grep -v '^ *+' conftest.er1 >conftest.err
25294   rm -f conftest.er1
25295   cat conftest.err >&5
25296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297   (exit $ac_status); } &&
25298          { ac_try='test -z "$ac_c_werror_flag"
25299                          || test ! -s conftest.err'
25300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25301   (eval $ac_try) 2>&5
25302   ac_status=$?
25303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25304   (exit $ac_status); }; } &&
25305          { ac_try='test -s conftest.$ac_objext'
25306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25307   (eval $ac_try) 2>&5
25308   ac_status=$?
25309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310   (exit $ac_status); }; }; then
25311   ac_hi=-1 ac_mid=-1
25312   while :; do
25313     cat >conftest.$ac_ext <<_ACEOF
25314 /* confdefs.h.  */
25315 _ACEOF
25316 cat confdefs.h >>conftest.$ac_ext
25317 cat >>conftest.$ac_ext <<_ACEOF
25318 /* end confdefs.h.  */
25319 $ac_includes_default
25320 int
25321 main ()
25322 {
25323 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25324 test_array [0] = 0
25325
25326   ;
25327   return 0;
25328 }
25329 _ACEOF
25330 rm -f conftest.$ac_objext
25331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25332   (eval $ac_compile) 2>conftest.er1
25333   ac_status=$?
25334   grep -v '^ *+' conftest.er1 >conftest.err
25335   rm -f conftest.er1
25336   cat conftest.err >&5
25337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338   (exit $ac_status); } &&
25339          { ac_try='test -z "$ac_c_werror_flag"
25340                          || test ! -s conftest.err'
25341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25342   (eval $ac_try) 2>&5
25343   ac_status=$?
25344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25345   (exit $ac_status); }; } &&
25346          { ac_try='test -s conftest.$ac_objext'
25347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25348   (eval $ac_try) 2>&5
25349   ac_status=$?
25350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351   (exit $ac_status); }; }; then
25352   ac_lo=$ac_mid; break
25353 else
25354   echo "$as_me: failed program was:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25356
25357 ac_hi=`expr '(' $ac_mid ')' - 1`
25358                        if test $ac_mid -le $ac_hi; then
25359                          ac_lo= ac_hi=
25360                          break
25361                        fi
25362                        ac_mid=`expr 2 '*' $ac_mid`
25363 fi
25364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25365   done
25366 else
25367   echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25369
25370 ac_lo= ac_hi=
25371 fi
25372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25373 fi
25374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25375 # Binary search between lo and hi bounds.
25376 while test "x$ac_lo" != "x$ac_hi"; do
25377   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25378   cat >conftest.$ac_ext <<_ACEOF
25379 /* confdefs.h.  */
25380 _ACEOF
25381 cat confdefs.h >>conftest.$ac_ext
25382 cat >>conftest.$ac_ext <<_ACEOF
25383 /* end confdefs.h.  */
25384 $ac_includes_default
25385 int
25386 main ()
25387 {
25388 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25389 test_array [0] = 0
25390
25391   ;
25392   return 0;
25393 }
25394 _ACEOF
25395 rm -f conftest.$ac_objext
25396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25397   (eval $ac_compile) 2>conftest.er1
25398   ac_status=$?
25399   grep -v '^ *+' conftest.er1 >conftest.err
25400   rm -f conftest.er1
25401   cat conftest.err >&5
25402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403   (exit $ac_status); } &&
25404          { ac_try='test -z "$ac_c_werror_flag"
25405                          || test ! -s conftest.err'
25406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25407   (eval $ac_try) 2>&5
25408   ac_status=$?
25409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410   (exit $ac_status); }; } &&
25411          { ac_try='test -s conftest.$ac_objext'
25412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25413   (eval $ac_try) 2>&5
25414   ac_status=$?
25415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416   (exit $ac_status); }; }; then
25417   ac_hi=$ac_mid
25418 else
25419   echo "$as_me: failed program was:" >&5
25420 sed 's/^/| /' conftest.$ac_ext >&5
25421
25422 ac_lo=`expr '(' $ac_mid ')' + 1`
25423 fi
25424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25425 done
25426 case $ac_lo in
25427 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25428 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25429 See \`config.log' for more details." >&5
25430 echo "$as_me: error: cannot compute sizeof (int *), 77
25431 See \`config.log' for more details." >&2;}
25432    { (exit 1); exit 1; }; } ;;
25433 esac
25434 else
25435   if test "$cross_compiling" = yes; then
25436   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25437 See \`config.log' for more details." >&5
25438 echo "$as_me: error: cannot run test program while cross compiling
25439 See \`config.log' for more details." >&2;}
25440    { (exit 1); exit 1; }; }
25441 else
25442   cat >conftest.$ac_ext <<_ACEOF
25443 /* confdefs.h.  */
25444 _ACEOF
25445 cat confdefs.h >>conftest.$ac_ext
25446 cat >>conftest.$ac_ext <<_ACEOF
25447 /* end confdefs.h.  */
25448 $ac_includes_default
25449 long longval () { return (long) (sizeof (int *)); }
25450 unsigned long ulongval () { return (long) (sizeof (int *)); }
25451 #include <stdio.h>
25452 #include <stdlib.h>
25453 int
25454 main ()
25455 {
25456
25457   FILE *f = fopen ("conftest.val", "w");
25458   if (! f)
25459     exit (1);
25460   if (((long) (sizeof (int *))) < 0)
25461     {
25462       long i = longval ();
25463       if (i != ((long) (sizeof (int *))))
25464         exit (1);
25465       fprintf (f, "%ld\n", i);
25466     }
25467   else
25468     {
25469       unsigned long i = ulongval ();
25470       if (i != ((long) (sizeof (int *))))
25471         exit (1);
25472       fprintf (f, "%lu\n", i);
25473     }
25474   exit (ferror (f) || fclose (f) != 0);
25475
25476   ;
25477   return 0;
25478 }
25479 _ACEOF
25480 rm -f conftest$ac_exeext
25481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25482   (eval $ac_link) 2>&5
25483   ac_status=$?
25484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25485   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487   (eval $ac_try) 2>&5
25488   ac_status=$?
25489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490   (exit $ac_status); }; }; then
25491   ac_cv_sizeof_int_p=`cat conftest.val`
25492 else
25493   echo "$as_me: program exited with status $ac_status" >&5
25494 echo "$as_me: failed program was:" >&5
25495 sed 's/^/| /' conftest.$ac_ext >&5
25496
25497 ( exit $ac_status )
25498 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25499 See \`config.log' for more details." >&5
25500 echo "$as_me: error: cannot compute sizeof (int *), 77
25501 See \`config.log' for more details." >&2;}
25502    { (exit 1); exit 1; }; }
25503 fi
25504 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25505 fi
25506 fi
25507 rm -f conftest.val
25508 else
25509   ac_cv_sizeof_int_p=0
25510 fi
25511 fi
25512 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25513 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25514 cat >>confdefs.h <<_ACEOF
25515 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25516 _ACEOF
25517
25518
25519
25520 # Check for sys/types.h types
25521 echo "$as_me:$LINENO: checking for u_int type" >&5
25522 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25523 if test "${ac_cv_have_u_int+set}" = set; then
25524   echo $ECHO_N "(cached) $ECHO_C" >&6
25525 else
25526
25527     cat >conftest.$ac_ext <<_ACEOF
25528 /* confdefs.h.  */
25529 _ACEOF
25530 cat confdefs.h >>conftest.$ac_ext
25531 cat >>conftest.$ac_ext <<_ACEOF
25532 /* end confdefs.h.  */
25533  #include <sys/types.h>
25534 int
25535 main ()
25536 {
25537  u_int a; a = 1;
25538   ;
25539   return 0;
25540 }
25541 _ACEOF
25542 rm -f conftest.$ac_objext
25543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25544   (eval $ac_compile) 2>conftest.er1
25545   ac_status=$?
25546   grep -v '^ *+' conftest.er1 >conftest.err
25547   rm -f conftest.er1
25548   cat conftest.err >&5
25549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550   (exit $ac_status); } &&
25551          { ac_try='test -z "$ac_c_werror_flag"
25552                          || test ! -s conftest.err'
25553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25554   (eval $ac_try) 2>&5
25555   ac_status=$?
25556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557   (exit $ac_status); }; } &&
25558          { ac_try='test -s conftest.$ac_objext'
25559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25560   (eval $ac_try) 2>&5
25561   ac_status=$?
25562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563   (exit $ac_status); }; }; then
25564    ac_cv_have_u_int="yes"
25565 else
25566   echo "$as_me: failed program was:" >&5
25567 sed 's/^/| /' conftest.$ac_ext >&5
25568
25569  ac_cv_have_u_int="no"
25570
25571 fi
25572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25573
25574 fi
25575 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25576 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25577 if test "x$ac_cv_have_u_int" = "xyes" ; then
25578    cat >>confdefs.h <<\_ACEOF
25579 #define HAVE_U_INT 1
25580 _ACEOF
25581
25582    have_u_int=1
25583 fi
25584
25585 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25586 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25587 if test "${ac_cv_have_intmax_t+set}" = set; then
25588   echo $ECHO_N "(cached) $ECHO_C" >&6
25589 else
25590
25591    cat >conftest.$ac_ext <<_ACEOF
25592 /* confdefs.h.  */
25593 _ACEOF
25594 cat confdefs.h >>conftest.$ac_ext
25595 cat >>conftest.$ac_ext <<_ACEOF
25596 /* end confdefs.h.  */
25597  #include <sys/types.h>
25598 int
25599 main ()
25600 {
25601  intmax_t a; a = 1;
25602   ;
25603   return 0;
25604 }
25605 _ACEOF
25606 rm -f conftest.$ac_objext
25607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25608   (eval $ac_compile) 2>conftest.er1
25609   ac_status=$?
25610   grep -v '^ *+' conftest.er1 >conftest.err
25611   rm -f conftest.er1
25612   cat conftest.err >&5
25613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614   (exit $ac_status); } &&
25615          { ac_try='test -z "$ac_c_werror_flag"
25616                          || test ! -s conftest.err'
25617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25618   (eval $ac_try) 2>&5
25619   ac_status=$?
25620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621   (exit $ac_status); }; } &&
25622          { ac_try='test -s conftest.$ac_objext'
25623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25624   (eval $ac_try) 2>&5
25625   ac_status=$?
25626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627   (exit $ac_status); }; }; then
25628    ac_cv_have_intmax_t="yes"
25629 else
25630   echo "$as_me: failed program was:" >&5
25631 sed 's/^/| /' conftest.$ac_ext >&5
25632
25633
25634          cat >conftest.$ac_ext <<_ACEOF
25635 /* confdefs.h.  */
25636 _ACEOF
25637 cat confdefs.h >>conftest.$ac_ext
25638 cat >>conftest.$ac_ext <<_ACEOF
25639 /* end confdefs.h.  */
25640  #include <stdint.h>
25641 int
25642 main ()
25643 {
25644  intmax_t a; a = 1;
25645   ;
25646   return 0;
25647 }
25648 _ACEOF
25649 rm -f conftest.$ac_objext
25650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25651   (eval $ac_compile) 2>conftest.er1
25652   ac_status=$?
25653   grep -v '^ *+' conftest.er1 >conftest.err
25654   rm -f conftest.er1
25655   cat conftest.err >&5
25656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657   (exit $ac_status); } &&
25658          { ac_try='test -z "$ac_c_werror_flag"
25659                          || test ! -s conftest.err'
25660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25661   (eval $ac_try) 2>&5
25662   ac_status=$?
25663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664   (exit $ac_status); }; } &&
25665          { ac_try='test -s conftest.$ac_objext'
25666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25667   (eval $ac_try) 2>&5
25668   ac_status=$?
25669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670   (exit $ac_status); }; }; then
25671    ac_cv_have_intmax_t="yes"
25672 else
25673   echo "$as_me: failed program was:" >&5
25674 sed 's/^/| /' conftest.$ac_ext >&5
25675
25676  ac_cv_have_intmax_t="no"
25677
25678 fi
25679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25680
25681
25682 fi
25683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25684
25685
25686 fi
25687 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25688 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25689 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25690    cat >>confdefs.h <<\_ACEOF
25691 #define HAVE_INTMAX_T 1
25692 _ACEOF
25693
25694    have_intmax_t=1
25695 fi
25696
25697
25698 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25699 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25700 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25701   echo $ECHO_N "(cached) $ECHO_C" >&6
25702 else
25703
25704    cat >conftest.$ac_ext <<_ACEOF
25705 /* confdefs.h.  */
25706 _ACEOF
25707 cat confdefs.h >>conftest.$ac_ext
25708 cat >>conftest.$ac_ext <<_ACEOF
25709 /* end confdefs.h.  */
25710  #include <sys/types.h>
25711 int
25712 main ()
25713 {
25714  u_intmax_t a; a = 1;
25715   ;
25716   return 0;
25717 }
25718 _ACEOF
25719 rm -f conftest.$ac_objext
25720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25721   (eval $ac_compile) 2>conftest.er1
25722   ac_status=$?
25723   grep -v '^ *+' conftest.er1 >conftest.err
25724   rm -f conftest.er1
25725   cat conftest.err >&5
25726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727   (exit $ac_status); } &&
25728          { ac_try='test -z "$ac_c_werror_flag"
25729                          || test ! -s conftest.err'
25730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25731   (eval $ac_try) 2>&5
25732   ac_status=$?
25733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734   (exit $ac_status); }; } &&
25735          { ac_try='test -s conftest.$ac_objext'
25736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25737   (eval $ac_try) 2>&5
25738   ac_status=$?
25739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740   (exit $ac_status); }; }; then
25741    ac_cv_have_u_intmax_t="yes"
25742 else
25743   echo "$as_me: failed program was:" >&5
25744 sed 's/^/| /' conftest.$ac_ext >&5
25745
25746
25747          cat >conftest.$ac_ext <<_ACEOF
25748 /* confdefs.h.  */
25749 _ACEOF
25750 cat confdefs.h >>conftest.$ac_ext
25751 cat >>conftest.$ac_ext <<_ACEOF
25752 /* end confdefs.h.  */
25753  #include <stdint.h>
25754 int
25755 main ()
25756 {
25757  u_intmax_t a; a = 1;
25758   ;
25759   return 0;
25760 }
25761 _ACEOF
25762 rm -f conftest.$ac_objext
25763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25764   (eval $ac_compile) 2>conftest.er1
25765   ac_status=$?
25766   grep -v '^ *+' conftest.er1 >conftest.err
25767   rm -f conftest.er1
25768   cat conftest.err >&5
25769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770   (exit $ac_status); } &&
25771          { ac_try='test -z "$ac_c_werror_flag"
25772                          || test ! -s conftest.err'
25773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25774   (eval $ac_try) 2>&5
25775   ac_status=$?
25776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777   (exit $ac_status); }; } &&
25778          { ac_try='test -s conftest.$ac_objext'
25779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780   (eval $ac_try) 2>&5
25781   ac_status=$?
25782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783   (exit $ac_status); }; }; then
25784    ac_cv_have_u_intmax_t="yes"
25785 else
25786   echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25788
25789  ac_cv_have_u_intmax_t="no"
25790
25791 fi
25792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25793
25794
25795 fi
25796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25797
25798 fi
25799 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25800 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25801 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25802    cat >>confdefs.h <<\_ACEOF
25803 #define HAVE_U_INTMAX_T 1
25804 _ACEOF
25805
25806    have_u_intmax_t=1
25807 fi
25808
25809
25810 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25811 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25812 if test "${ac_cv_have_intxx_t+set}" = set; then
25813   echo $ECHO_N "(cached) $ECHO_C" >&6
25814 else
25815
25816    cat >conftest.$ac_ext <<_ACEOF
25817 /* confdefs.h.  */
25818 _ACEOF
25819 cat confdefs.h >>conftest.$ac_ext
25820 cat >>conftest.$ac_ext <<_ACEOF
25821 /* end confdefs.h.  */
25822  #include <sys/types.h>
25823 int
25824 main ()
25825 {
25826  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25827   ;
25828   return 0;
25829 }
25830 _ACEOF
25831 rm -f conftest.$ac_objext
25832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25833   (eval $ac_compile) 2>conftest.er1
25834   ac_status=$?
25835   grep -v '^ *+' conftest.er1 >conftest.err
25836   rm -f conftest.er1
25837   cat conftest.err >&5
25838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839   (exit $ac_status); } &&
25840          { ac_try='test -z "$ac_c_werror_flag"
25841                          || test ! -s conftest.err'
25842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843   (eval $ac_try) 2>&5
25844   ac_status=$?
25845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846   (exit $ac_status); }; } &&
25847          { ac_try='test -s conftest.$ac_objext'
25848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849   (eval $ac_try) 2>&5
25850   ac_status=$?
25851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852   (exit $ac_status); }; }; then
25853    ac_cv_have_intxx_t="yes"
25854 else
25855   echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25857
25858  ac_cv_have_intxx_t="no"
25859
25860 fi
25861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25862
25863 fi
25864 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25865 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25866 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25867    cat >>confdefs.h <<\_ACEOF
25868 #define HAVE_INTXX_T 1
25869 _ACEOF
25870
25871    have_intxx_t=1
25872 fi
25873
25874 echo "$as_me:$LINENO: checking for int64_t type" >&5
25875 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25876 if test "${ac_cv_have_int64_t+set}" = set; then
25877   echo $ECHO_N "(cached) $ECHO_C" >&6
25878 else
25879
25880    cat >conftest.$ac_ext <<_ACEOF
25881 /* confdefs.h.  */
25882 _ACEOF
25883 cat confdefs.h >>conftest.$ac_ext
25884 cat >>conftest.$ac_ext <<_ACEOF
25885 /* end confdefs.h.  */
25886  #include <sys/types.h>
25887 int
25888 main ()
25889 {
25890  int64_t a; a = 1;
25891   ;
25892   return 0;
25893 }
25894 _ACEOF
25895 rm -f conftest.$ac_objext
25896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25897   (eval $ac_compile) 2>conftest.er1
25898   ac_status=$?
25899   grep -v '^ *+' conftest.er1 >conftest.err
25900   rm -f conftest.er1
25901   cat conftest.err >&5
25902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903   (exit $ac_status); } &&
25904          { ac_try='test -z "$ac_c_werror_flag"
25905                          || test ! -s conftest.err'
25906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25907   (eval $ac_try) 2>&5
25908   ac_status=$?
25909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910   (exit $ac_status); }; } &&
25911          { ac_try='test -s conftest.$ac_objext'
25912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25913   (eval $ac_try) 2>&5
25914   ac_status=$?
25915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916   (exit $ac_status); }; }; then
25917    ac_cv_have_int64_t="yes"
25918 else
25919   echo "$as_me: failed program was:" >&5
25920 sed 's/^/| /' conftest.$ac_ext >&5
25921
25922  ac_cv_have_int64_t="no"
25923
25924 fi
25925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25926
25927 fi
25928 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25929 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25930 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25931    cat >>confdefs.h <<\_ACEOF
25932 #define HAVE_INT64_T 1
25933 _ACEOF
25934
25935    have_int64_t=1
25936 fi
25937
25938 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25939 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25940 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25941   echo $ECHO_N "(cached) $ECHO_C" >&6
25942 else
25943
25944    cat >conftest.$ac_ext <<_ACEOF
25945 /* confdefs.h.  */
25946 _ACEOF
25947 cat confdefs.h >>conftest.$ac_ext
25948 cat >>conftest.$ac_ext <<_ACEOF
25949 /* end confdefs.h.  */
25950  #include <sys/types.h>
25951 int
25952 main ()
25953 {
25954  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25955   ;
25956   return 0;
25957 }
25958 _ACEOF
25959 rm -f conftest.$ac_objext
25960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25961   (eval $ac_compile) 2>conftest.er1
25962   ac_status=$?
25963   grep -v '^ *+' conftest.er1 >conftest.err
25964   rm -f conftest.er1
25965   cat conftest.err >&5
25966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967   (exit $ac_status); } &&
25968          { ac_try='test -z "$ac_c_werror_flag"
25969                          || test ! -s conftest.err'
25970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971   (eval $ac_try) 2>&5
25972   ac_status=$?
25973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974   (exit $ac_status); }; } &&
25975          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25981    ac_cv_have_u_intxx_t="yes"
25982 else
25983   echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25985
25986  ac_cv_have_u_intxx_t="no"
25987
25988 fi
25989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25990
25991 fi
25992 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25993 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25994 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25995    cat >>confdefs.h <<\_ACEOF
25996 #define HAVE_U_INTXX_T 1
25997 _ACEOF
25998
25999    have_u_intxx_t=1
26000 fi
26001
26002 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26003 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
26004 if test "${ac_cv_have_u_int64_t+set}" = set; then
26005   echo $ECHO_N "(cached) $ECHO_C" >&6
26006 else
26007
26008    cat >conftest.$ac_ext <<_ACEOF
26009 /* confdefs.h.  */
26010 _ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h.  */
26014  #include <sys/types.h>
26015 int
26016 main ()
26017 {
26018  u_int64_t a; a = 1;
26019   ;
26020   return 0;
26021 }
26022 _ACEOF
26023 rm -f conftest.$ac_objext
26024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26025   (eval $ac_compile) 2>conftest.er1
26026   ac_status=$?
26027   grep -v '^ *+' conftest.er1 >conftest.err
26028   rm -f conftest.er1
26029   cat conftest.err >&5
26030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031   (exit $ac_status); } &&
26032          { ac_try='test -z "$ac_c_werror_flag"
26033                          || test ! -s conftest.err'
26034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26035   (eval $ac_try) 2>&5
26036   ac_status=$?
26037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038   (exit $ac_status); }; } &&
26039          { ac_try='test -s conftest.$ac_objext'
26040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041   (eval $ac_try) 2>&5
26042   ac_status=$?
26043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044   (exit $ac_status); }; }; then
26045    ac_cv_have_u_int64_t="yes"
26046 else
26047   echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26049
26050  ac_cv_have_u_int64_t="no"
26051
26052 fi
26053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26054
26055 fi
26056 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26057 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
26058 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26059    cat >>confdefs.h <<\_ACEOF
26060 #define HAVE_U_INT64_T 1
26061 _ACEOF
26062
26063    have_u_int64_t=1
26064 fi
26065
26066 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26067            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26068 then
26069    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26070 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
26071    cat >conftest.$ac_ext <<_ACEOF
26072 /* confdefs.h.  */
26073 _ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h.  */
26077  #include <sys/bitypes.h>
26078 int
26079 main ()
26080 {
26081  int8_t a; int16_t b; int32_t c;
26082         u_int8_t e; u_int16_t f; u_int32_t g;
26083         a = b = c = e = f = g = 1;
26084   ;
26085   return 0;
26086 }
26087 _ACEOF
26088 rm -f conftest.$ac_objext
26089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26090   (eval $ac_compile) 2>conftest.er1
26091   ac_status=$?
26092   grep -v '^ *+' conftest.er1 >conftest.err
26093   rm -f conftest.er1
26094   cat conftest.err >&5
26095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096   (exit $ac_status); } &&
26097          { ac_try='test -z "$ac_c_werror_flag"
26098                          || test ! -s conftest.err'
26099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100   (eval $ac_try) 2>&5
26101   ac_status=$?
26102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103   (exit $ac_status); }; } &&
26104          { ac_try='test -s conftest.$ac_objext'
26105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26106   (eval $ac_try) 2>&5
26107   ac_status=$?
26108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109   (exit $ac_status); }; }; then
26110    cat >>confdefs.h <<\_ACEOF
26111 #define HAVE_U_INTXX_T 1
26112 _ACEOF
26113
26114         cat >>confdefs.h <<\_ACEOF
26115 #define HAVE_INTXX_T 1
26116 _ACEOF
26117
26118         cat >>confdefs.h <<\_ACEOF
26119 #define HAVE_SYS_BITYPES_H 1
26120 _ACEOF
26121
26122         echo "$as_me:$LINENO: result: yes" >&5
26123 echo "${ECHO_T}yes" >&6
26124 else
26125   echo "$as_me: failed program was:" >&5
26126 sed 's/^/| /' conftest.$ac_ext >&5
26127
26128  echo "$as_me:$LINENO: result: no" >&5
26129 echo "${ECHO_T}no" >&6
26130
26131 fi
26132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26133 fi
26134
26135 if test -z "$have_u_intxx_t" ; then
26136    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26137 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
26138 if test "${ac_cv_have_uintxx_t+set}" = set; then
26139   echo $ECHO_N "(cached) $ECHO_C" >&6
26140 else
26141
26142       cat >conftest.$ac_ext <<_ACEOF
26143 /* confdefs.h.  */
26144 _ACEOF
26145 cat confdefs.h >>conftest.$ac_ext
26146 cat >>conftest.$ac_ext <<_ACEOF
26147 /* end confdefs.h.  */
26148  #include <sys/types.h>
26149 int
26150 main ()
26151 {
26152  uint8_t a; uint16_t b;
26153            uint32_t c; a = b = c = 1;
26154   ;
26155   return 0;
26156 }
26157 _ACEOF
26158 rm -f conftest.$ac_objext
26159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26160   (eval $ac_compile) 2>conftest.er1
26161   ac_status=$?
26162   grep -v '^ *+' conftest.er1 >conftest.err
26163   rm -f conftest.er1
26164   cat conftest.err >&5
26165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166   (exit $ac_status); } &&
26167          { ac_try='test -z "$ac_c_werror_flag"
26168                          || test ! -s conftest.err'
26169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26170   (eval $ac_try) 2>&5
26171   ac_status=$?
26172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173   (exit $ac_status); }; } &&
26174          { ac_try='test -s conftest.$ac_objext'
26175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176   (eval $ac_try) 2>&5
26177   ac_status=$?
26178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179   (exit $ac_status); }; }; then
26180    ac_cv_have_uintxx_t="yes"
26181 else
26182   echo "$as_me: failed program was:" >&5
26183 sed 's/^/| /' conftest.$ac_ext >&5
26184
26185  ac_cv_have_uintxx_t="no"
26186
26187 fi
26188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26189
26190 fi
26191 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26192 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
26193    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26194       cat >>confdefs.h <<\_ACEOF
26195 #define HAVE_UINTXX_T 1
26196 _ACEOF
26197
26198    fi
26199 fi
26200
26201 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26202           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26203 then
26204    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26205 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
26206    cat >conftest.$ac_ext <<_ACEOF
26207 /* confdefs.h.  */
26208 _ACEOF
26209 cat confdefs.h >>conftest.$ac_ext
26210 cat >>conftest.$ac_ext <<_ACEOF
26211 /* end confdefs.h.  */
26212  #include <sys/bitypes.h>
26213 int
26214 main ()
26215 {
26216  int64_t a; u_int64_t b;
26217        a = b = 1;
26218   ;
26219   return 0;
26220 }
26221 _ACEOF
26222 rm -f conftest.$ac_objext
26223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26224   (eval $ac_compile) 2>conftest.er1
26225   ac_status=$?
26226   grep -v '^ *+' conftest.er1 >conftest.err
26227   rm -f conftest.er1
26228   cat conftest.err >&5
26229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230   (exit $ac_status); } &&
26231          { ac_try='test -z "$ac_c_werror_flag"
26232                          || test ! -s conftest.err'
26233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26234   (eval $ac_try) 2>&5
26235   ac_status=$?
26236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237   (exit $ac_status); }; } &&
26238          { ac_try='test -s conftest.$ac_objext'
26239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26240   (eval $ac_try) 2>&5
26241   ac_status=$?
26242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243   (exit $ac_status); }; }; then
26244    cat >>confdefs.h <<\_ACEOF
26245 #define HAVE_U_INT64_T 1
26246 _ACEOF
26247
26248        cat >>confdefs.h <<\_ACEOF
26249 #define HAVE_INT64_T 1
26250 _ACEOF
26251
26252        echo "$as_me:$LINENO: result: yes" >&5
26253 echo "${ECHO_T}yes" >&6
26254 else
26255   echo "$as_me: failed program was:" >&5
26256 sed 's/^/| /' conftest.$ac_ext >&5
26257
26258  echo "$as_me:$LINENO: result: no" >&5
26259 echo "${ECHO_T}no" >&6
26260
26261 fi
26262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26263 fi
26264
26265 if (test -z "$have_uintxx_t" && \
26266           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26267 then
26268    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26269 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26270    cat >conftest.$ac_ext <<_ACEOF
26271 /* confdefs.h.  */
26272 _ACEOF
26273 cat confdefs.h >>conftest.$ac_ext
26274 cat >>conftest.$ac_ext <<_ACEOF
26275 /* end confdefs.h.  */
26276  #include <sys/bitypes.h>
26277 int
26278 main ()
26279 {
26280  uint8_t a; uint16_t b;
26281           uint32_t c; a = b = c = 1;
26282   ;
26283   return 0;
26284 }
26285 _ACEOF
26286 rm -f conftest.$ac_objext
26287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26288   (eval $ac_compile) 2>conftest.er1
26289   ac_status=$?
26290   grep -v '^ *+' conftest.er1 >conftest.err
26291   rm -f conftest.er1
26292   cat conftest.err >&5
26293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294   (exit $ac_status); } &&
26295          { ac_try='test -z "$ac_c_werror_flag"
26296                          || test ! -s conftest.err'
26297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26298   (eval $ac_try) 2>&5
26299   ac_status=$?
26300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301   (exit $ac_status); }; } &&
26302          { ac_try='test -s conftest.$ac_objext'
26303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26304   (eval $ac_try) 2>&5
26305   ac_status=$?
26306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307   (exit $ac_status); }; }; then
26308    cat >>confdefs.h <<\_ACEOF
26309 #define HAVE_UINTXX_T 1
26310 _ACEOF
26311
26312        echo "$as_me:$LINENO: result: yes" >&5
26313 echo "${ECHO_T}yes" >&6
26314 else
26315   echo "$as_me: failed program was:" >&5
26316 sed 's/^/| /' conftest.$ac_ext >&5
26317
26318  echo "$as_me:$LINENO: result: no" >&5
26319 echo "${ECHO_T}no" >&6
26320
26321 fi
26322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26323
26324 fi
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342 for ac_func in \
26343         fork \
26344         getcwd \
26345         gethostname \
26346         getpid \
26347         gettimeofday \
26348         setpgid \
26349         setpgrp \
26350         setsid \
26351         signal \
26352         strerror \
26353         strncmp \
26354         strncpy \
26355         vfprintf \
26356
26357 do
26358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26359 echo "$as_me:$LINENO: checking for $ac_func" >&5
26360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26361 if eval "test \"\${$as_ac_var+set}\" = set"; then
26362   echo $ECHO_N "(cached) $ECHO_C" >&6
26363 else
26364   cat >conftest.$ac_ext <<_ACEOF
26365 /* confdefs.h.  */
26366 _ACEOF
26367 cat confdefs.h >>conftest.$ac_ext
26368 cat >>conftest.$ac_ext <<_ACEOF
26369 /* end confdefs.h.  */
26370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26372 #define $ac_func innocuous_$ac_func
26373
26374 /* System header to define __stub macros and hopefully few prototypes,
26375     which can conflict with char $ac_func (); below.
26376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26377     <limits.h> exists even on freestanding compilers.  */
26378
26379 #ifdef __STDC__
26380 # include <limits.h>
26381 #else
26382 # include <assert.h>
26383 #endif
26384
26385 #undef $ac_func
26386
26387 /* Override any gcc2 internal prototype to avoid an error.  */
26388 #ifdef __cplusplus
26389 extern "C"
26390 {
26391 #endif
26392 /* We use char because int might match the return type of a gcc2
26393    builtin and then its argument prototype would still apply.  */
26394 char $ac_func ();
26395 /* The GNU C library defines this for functions which it implements
26396     to always fail with ENOSYS.  Some functions are actually named
26397     something starting with __ and the normal name is an alias.  */
26398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26399 choke me
26400 #else
26401 char (*f) () = $ac_func;
26402 #endif
26403 #ifdef __cplusplus
26404 }
26405 #endif
26406
26407 int
26408 main ()
26409 {
26410 return f != $ac_func;
26411   ;
26412   return 0;
26413 }
26414 _ACEOF
26415 rm -f conftest.$ac_objext conftest$ac_exeext
26416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26417   (eval $ac_link) 2>conftest.er1
26418   ac_status=$?
26419   grep -v '^ *+' conftest.er1 >conftest.err
26420   rm -f conftest.er1
26421   cat conftest.err >&5
26422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423   (exit $ac_status); } &&
26424          { ac_try='test -z "$ac_c_werror_flag"
26425                          || test ! -s conftest.err'
26426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427   (eval $ac_try) 2>&5
26428   ac_status=$?
26429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430   (exit $ac_status); }; } &&
26431          { ac_try='test -s conftest$ac_exeext'
26432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433   (eval $ac_try) 2>&5
26434   ac_status=$?
26435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436   (exit $ac_status); }; }; then
26437   eval "$as_ac_var=yes"
26438 else
26439   echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26441
26442 eval "$as_ac_var=no"
26443 fi
26444 rm -f conftest.err conftest.$ac_objext \
26445       conftest$ac_exeext conftest.$ac_ext
26446 fi
26447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26449 if test `eval echo '${'$as_ac_var'}'` = yes; then
26450   cat >>confdefs.h <<_ACEOF
26451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26452 _ACEOF
26453
26454 else
26455   echo 'configure: cannot find needed function.'; exit 1
26456
26457 fi
26458 done
26459
26460
26461
26462 for ac_func in fchdir
26463 do
26464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26465 echo "$as_me:$LINENO: checking for $ac_func" >&5
26466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26467 if eval "test \"\${$as_ac_var+set}\" = set"; then
26468   echo $ECHO_N "(cached) $ECHO_C" >&6
26469 else
26470   cat >conftest.$ac_ext <<_ACEOF
26471 /* confdefs.h.  */
26472 _ACEOF
26473 cat confdefs.h >>conftest.$ac_ext
26474 cat >>conftest.$ac_ext <<_ACEOF
26475 /* end confdefs.h.  */
26476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26478 #define $ac_func innocuous_$ac_func
26479
26480 /* System header to define __stub macros and hopefully few prototypes,
26481     which can conflict with char $ac_func (); below.
26482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26483     <limits.h> exists even on freestanding compilers.  */
26484
26485 #ifdef __STDC__
26486 # include <limits.h>
26487 #else
26488 # include <assert.h>
26489 #endif
26490
26491 #undef $ac_func
26492
26493 /* Override any gcc2 internal prototype to avoid an error.  */
26494 #ifdef __cplusplus
26495 extern "C"
26496 {
26497 #endif
26498 /* We use char because int might match the return type of a gcc2
26499    builtin and then its argument prototype would still apply.  */
26500 char $ac_func ();
26501 /* The GNU C library defines this for functions which it implements
26502     to always fail with ENOSYS.  Some functions are actually named
26503     something starting with __ and the normal name is an alias.  */
26504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26505 choke me
26506 #else
26507 char (*f) () = $ac_func;
26508 #endif
26509 #ifdef __cplusplus
26510 }
26511 #endif
26512
26513 int
26514 main ()
26515 {
26516 return f != $ac_func;
26517   ;
26518   return 0;
26519 }
26520 _ACEOF
26521 rm -f conftest.$ac_objext conftest$ac_exeext
26522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26523   (eval $ac_link) 2>conftest.er1
26524   ac_status=$?
26525   grep -v '^ *+' conftest.er1 >conftest.err
26526   rm -f conftest.er1
26527   cat conftest.err >&5
26528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529   (exit $ac_status); } &&
26530          { ac_try='test -z "$ac_c_werror_flag"
26531                          || test ! -s conftest.err'
26532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26533   (eval $ac_try) 2>&5
26534   ac_status=$?
26535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536   (exit $ac_status); }; } &&
26537          { ac_try='test -s conftest$ac_exeext'
26538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26539   (eval $ac_try) 2>&5
26540   ac_status=$?
26541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542   (exit $ac_status); }; }; then
26543   eval "$as_ac_var=yes"
26544 else
26545   echo "$as_me: failed program was:" >&5
26546 sed 's/^/| /' conftest.$ac_ext >&5
26547
26548 eval "$as_ac_var=no"
26549 fi
26550 rm -f conftest.err conftest.$ac_objext \
26551       conftest$ac_exeext conftest.$ac_ext
26552 fi
26553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26555 if test `eval echo '${'$as_ac_var'}'` = yes; then
26556   cat >>confdefs.h <<_ACEOF
26557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26558 _ACEOF
26559  cat >>confdefs.h <<\_ACEOF
26560 #define HAVE_FCHDIR 1
26561 _ACEOF
26562
26563 fi
26564 done
26565
26566
26567 for ac_func in strtoll
26568 do
26569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26570 echo "$as_me:$LINENO: checking for $ac_func" >&5
26571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26572 if eval "test \"\${$as_ac_var+set}\" = set"; then
26573   echo $ECHO_N "(cached) $ECHO_C" >&6
26574 else
26575   cat >conftest.$ac_ext <<_ACEOF
26576 /* confdefs.h.  */
26577 _ACEOF
26578 cat confdefs.h >>conftest.$ac_ext
26579 cat >>conftest.$ac_ext <<_ACEOF
26580 /* end confdefs.h.  */
26581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26583 #define $ac_func innocuous_$ac_func
26584
26585 /* System header to define __stub macros and hopefully few prototypes,
26586     which can conflict with char $ac_func (); below.
26587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26588     <limits.h> exists even on freestanding compilers.  */
26589
26590 #ifdef __STDC__
26591 # include <limits.h>
26592 #else
26593 # include <assert.h>
26594 #endif
26595
26596 #undef $ac_func
26597
26598 /* Override any gcc2 internal prototype to avoid an error.  */
26599 #ifdef __cplusplus
26600 extern "C"
26601 {
26602 #endif
26603 /* We use char because int might match the return type of a gcc2
26604    builtin and then its argument prototype would still apply.  */
26605 char $ac_func ();
26606 /* The GNU C library defines this for functions which it implements
26607     to always fail with ENOSYS.  Some functions are actually named
26608     something starting with __ and the normal name is an alias.  */
26609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26610 choke me
26611 #else
26612 char (*f) () = $ac_func;
26613 #endif
26614 #ifdef __cplusplus
26615 }
26616 #endif
26617
26618 int
26619 main ()
26620 {
26621 return f != $ac_func;
26622   ;
26623   return 0;
26624 }
26625 _ACEOF
26626 rm -f conftest.$ac_objext conftest$ac_exeext
26627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26628   (eval $ac_link) 2>conftest.er1
26629   ac_status=$?
26630   grep -v '^ *+' conftest.er1 >conftest.err
26631   rm -f conftest.er1
26632   cat conftest.err >&5
26633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634   (exit $ac_status); } &&
26635          { ac_try='test -z "$ac_c_werror_flag"
26636                          || test ! -s conftest.err'
26637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26638   (eval $ac_try) 2>&5
26639   ac_status=$?
26640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641   (exit $ac_status); }; } &&
26642          { ac_try='test -s conftest$ac_exeext'
26643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26644   (eval $ac_try) 2>&5
26645   ac_status=$?
26646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647   (exit $ac_status); }; }; then
26648   eval "$as_ac_var=yes"
26649 else
26650   echo "$as_me: failed program was:" >&5
26651 sed 's/^/| /' conftest.$ac_ext >&5
26652
26653 eval "$as_ac_var=no"
26654 fi
26655 rm -f conftest.err conftest.$ac_objext \
26656       conftest$ac_exeext conftest.$ac_ext
26657 fi
26658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26660 if test `eval echo '${'$as_ac_var'}'` = yes; then
26661   cat >>confdefs.h <<_ACEOF
26662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26663 _ACEOF
26664  cat >>confdefs.h <<\_ACEOF
26665 #define HAVE_STRTOLL 1
26666 _ACEOF
26667
26668 fi
26669 done
26670
26671
26672 for ac_func in posix_fadvise
26673 do
26674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26675 echo "$as_me:$LINENO: checking for $ac_func" >&5
26676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26677 if eval "test \"\${$as_ac_var+set}\" = set"; then
26678   echo $ECHO_N "(cached) $ECHO_C" >&6
26679 else
26680   cat >conftest.$ac_ext <<_ACEOF
26681 /* confdefs.h.  */
26682 _ACEOF
26683 cat confdefs.h >>conftest.$ac_ext
26684 cat >>conftest.$ac_ext <<_ACEOF
26685 /* end confdefs.h.  */
26686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26688 #define $ac_func innocuous_$ac_func
26689
26690 /* System header to define __stub macros and hopefully few prototypes,
26691     which can conflict with char $ac_func (); below.
26692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26693     <limits.h> exists even on freestanding compilers.  */
26694
26695 #ifdef __STDC__
26696 # include <limits.h>
26697 #else
26698 # include <assert.h>
26699 #endif
26700
26701 #undef $ac_func
26702
26703 /* Override any gcc2 internal prototype to avoid an error.  */
26704 #ifdef __cplusplus
26705 extern "C"
26706 {
26707 #endif
26708 /* We use char because int might match the return type of a gcc2
26709    builtin and then its argument prototype would still apply.  */
26710 char $ac_func ();
26711 /* The GNU C library defines this for functions which it implements
26712     to always fail with ENOSYS.  Some functions are actually named
26713     something starting with __ and the normal name is an alias.  */
26714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26715 choke me
26716 #else
26717 char (*f) () = $ac_func;
26718 #endif
26719 #ifdef __cplusplus
26720 }
26721 #endif
26722
26723 int
26724 main ()
26725 {
26726 return f != $ac_func;
26727   ;
26728   return 0;
26729 }
26730 _ACEOF
26731 rm -f conftest.$ac_objext conftest$ac_exeext
26732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26733   (eval $ac_link) 2>conftest.er1
26734   ac_status=$?
26735   grep -v '^ *+' conftest.er1 >conftest.err
26736   rm -f conftest.er1
26737   cat conftest.err >&5
26738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739   (exit $ac_status); } &&
26740          { ac_try='test -z "$ac_c_werror_flag"
26741                          || test ! -s conftest.err'
26742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26743   (eval $ac_try) 2>&5
26744   ac_status=$?
26745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746   (exit $ac_status); }; } &&
26747          { ac_try='test -s conftest$ac_exeext'
26748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26749   (eval $ac_try) 2>&5
26750   ac_status=$?
26751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752   (exit $ac_status); }; }; then
26753   eval "$as_ac_var=yes"
26754 else
26755   echo "$as_me: failed program was:" >&5
26756 sed 's/^/| /' conftest.$ac_ext >&5
26757
26758 eval "$as_ac_var=no"
26759 fi
26760 rm -f conftest.err conftest.$ac_objext \
26761       conftest$ac_exeext conftest.$ac_ext
26762 fi
26763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26765 if test `eval echo '${'$as_ac_var'}'` = yes; then
26766   cat >>confdefs.h <<_ACEOF
26767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26768 _ACEOF
26769
26770 fi
26771 done
26772
26773
26774 for ac_func in fdatasync
26775 do
26776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26777 echo "$as_me:$LINENO: checking for $ac_func" >&5
26778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26779 if eval "test \"\${$as_ac_var+set}\" = set"; then
26780   echo $ECHO_N "(cached) $ECHO_C" >&6
26781 else
26782   cat >conftest.$ac_ext <<_ACEOF
26783 /* confdefs.h.  */
26784 _ACEOF
26785 cat confdefs.h >>conftest.$ac_ext
26786 cat >>conftest.$ac_ext <<_ACEOF
26787 /* end confdefs.h.  */
26788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26789    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26790 #define $ac_func innocuous_$ac_func
26791
26792 /* System header to define __stub macros and hopefully few prototypes,
26793     which can conflict with char $ac_func (); below.
26794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26795     <limits.h> exists even on freestanding compilers.  */
26796
26797 #ifdef __STDC__
26798 # include <limits.h>
26799 #else
26800 # include <assert.h>
26801 #endif
26802
26803 #undef $ac_func
26804
26805 /* Override any gcc2 internal prototype to avoid an error.  */
26806 #ifdef __cplusplus
26807 extern "C"
26808 {
26809 #endif
26810 /* We use char because int might match the return type of a gcc2
26811    builtin and then its argument prototype would still apply.  */
26812 char $ac_func ();
26813 /* The GNU C library defines this for functions which it implements
26814     to always fail with ENOSYS.  Some functions are actually named
26815     something starting with __ and the normal name is an alias.  */
26816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26817 choke me
26818 #else
26819 char (*f) () = $ac_func;
26820 #endif
26821 #ifdef __cplusplus
26822 }
26823 #endif
26824
26825 int
26826 main ()
26827 {
26828 return f != $ac_func;
26829   ;
26830   return 0;
26831 }
26832 _ACEOF
26833 rm -f conftest.$ac_objext conftest$ac_exeext
26834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26835   (eval $ac_link) 2>conftest.er1
26836   ac_status=$?
26837   grep -v '^ *+' conftest.er1 >conftest.err
26838   rm -f conftest.er1
26839   cat conftest.err >&5
26840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841   (exit $ac_status); } &&
26842          { ac_try='test -z "$ac_c_werror_flag"
26843                          || test ! -s conftest.err'
26844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26845   (eval $ac_try) 2>&5
26846   ac_status=$?
26847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848   (exit $ac_status); }; } &&
26849          { ac_try='test -s conftest$ac_exeext'
26850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851   (eval $ac_try) 2>&5
26852   ac_status=$?
26853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854   (exit $ac_status); }; }; then
26855   eval "$as_ac_var=yes"
26856 else
26857   echo "$as_me: failed program was:" >&5
26858 sed 's/^/| /' conftest.$ac_ext >&5
26859
26860 eval "$as_ac_var=no"
26861 fi
26862 rm -f conftest.err conftest.$ac_objext \
26863       conftest$ac_exeext conftest.$ac_ext
26864 fi
26865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26867 if test `eval echo '${'$as_ac_var'}'` = yes; then
26868   cat >>confdefs.h <<_ACEOF
26869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26870 _ACEOF
26871
26872 fi
26873 done
26874
26875
26876
26877 for ac_func in chflags
26878 do
26879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26880 echo "$as_me:$LINENO: checking for $ac_func" >&5
26881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26882 if eval "test \"\${$as_ac_var+set}\" = set"; then
26883   echo $ECHO_N "(cached) $ECHO_C" >&6
26884 else
26885   cat >conftest.$ac_ext <<_ACEOF
26886 /* confdefs.h.  */
26887 _ACEOF
26888 cat confdefs.h >>conftest.$ac_ext
26889 cat >>conftest.$ac_ext <<_ACEOF
26890 /* end confdefs.h.  */
26891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26893 #define $ac_func innocuous_$ac_func
26894
26895 /* System header to define __stub macros and hopefully few prototypes,
26896     which can conflict with char $ac_func (); below.
26897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26898     <limits.h> exists even on freestanding compilers.  */
26899
26900 #ifdef __STDC__
26901 # include <limits.h>
26902 #else
26903 # include <assert.h>
26904 #endif
26905
26906 #undef $ac_func
26907
26908 /* Override any gcc2 internal prototype to avoid an error.  */
26909 #ifdef __cplusplus
26910 extern "C"
26911 {
26912 #endif
26913 /* We use char because int might match the return type of a gcc2
26914    builtin and then its argument prototype would still apply.  */
26915 char $ac_func ();
26916 /* The GNU C library defines this for functions which it implements
26917     to always fail with ENOSYS.  Some functions are actually named
26918     something starting with __ and the normal name is an alias.  */
26919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26920 choke me
26921 #else
26922 char (*f) () = $ac_func;
26923 #endif
26924 #ifdef __cplusplus
26925 }
26926 #endif
26927
26928 int
26929 main ()
26930 {
26931 return f != $ac_func;
26932   ;
26933   return 0;
26934 }
26935 _ACEOF
26936 rm -f conftest.$ac_objext conftest$ac_exeext
26937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26938   (eval $ac_link) 2>conftest.er1
26939   ac_status=$?
26940   grep -v '^ *+' conftest.er1 >conftest.err
26941   rm -f conftest.er1
26942   cat conftest.err >&5
26943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944   (exit $ac_status); } &&
26945          { ac_try='test -z "$ac_c_werror_flag"
26946                          || test ! -s conftest.err'
26947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26948   (eval $ac_try) 2>&5
26949   ac_status=$?
26950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951   (exit $ac_status); }; } &&
26952          { ac_try='test -s conftest$ac_exeext'
26953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26954   (eval $ac_try) 2>&5
26955   ac_status=$?
26956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957   (exit $ac_status); }; }; then
26958   eval "$as_ac_var=yes"
26959 else
26960   echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26962
26963 eval "$as_ac_var=no"
26964 fi
26965 rm -f conftest.err conftest.$ac_objext \
26966       conftest$ac_exeext conftest.$ac_ext
26967 fi
26968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26970 if test `eval echo '${'$as_ac_var'}'` = yes; then
26971   cat >>confdefs.h <<_ACEOF
26972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26973 _ACEOF
26974
26975 fi
26976 done
26977
26978
26979
26980
26981
26982
26983 for ac_func in snprintf vsnprintf gethostid fseeko
26984 do
26985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26986 echo "$as_me:$LINENO: checking for $ac_func" >&5
26987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26988 if eval "test \"\${$as_ac_var+set}\" = set"; then
26989   echo $ECHO_N "(cached) $ECHO_C" >&6
26990 else
26991   cat >conftest.$ac_ext <<_ACEOF
26992 /* confdefs.h.  */
26993 _ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h.  */
26997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26999 #define $ac_func innocuous_$ac_func
27000
27001 /* System header to define __stub macros and hopefully few prototypes,
27002     which can conflict with char $ac_func (); below.
27003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27004     <limits.h> exists even on freestanding compilers.  */
27005
27006 #ifdef __STDC__
27007 # include <limits.h>
27008 #else
27009 # include <assert.h>
27010 #endif
27011
27012 #undef $ac_func
27013
27014 /* Override any gcc2 internal prototype to avoid an error.  */
27015 #ifdef __cplusplus
27016 extern "C"
27017 {
27018 #endif
27019 /* We use char because int might match the return type of a gcc2
27020    builtin and then its argument prototype would still apply.  */
27021 char $ac_func ();
27022 /* The GNU C library defines this for functions which it implements
27023     to always fail with ENOSYS.  Some functions are actually named
27024     something starting with __ and the normal name is an alias.  */
27025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27026 choke me
27027 #else
27028 char (*f) () = $ac_func;
27029 #endif
27030 #ifdef __cplusplus
27031 }
27032 #endif
27033
27034 int
27035 main ()
27036 {
27037 return f != $ac_func;
27038   ;
27039   return 0;
27040 }
27041 _ACEOF
27042 rm -f conftest.$ac_objext conftest$ac_exeext
27043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27044   (eval $ac_link) 2>conftest.er1
27045   ac_status=$?
27046   grep -v '^ *+' conftest.er1 >conftest.err
27047   rm -f conftest.er1
27048   cat conftest.err >&5
27049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27050   (exit $ac_status); } &&
27051          { ac_try='test -z "$ac_c_werror_flag"
27052                          || test ! -s conftest.err'
27053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27054   (eval $ac_try) 2>&5
27055   ac_status=$?
27056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057   (exit $ac_status); }; } &&
27058          { ac_try='test -s conftest$ac_exeext'
27059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27060   (eval $ac_try) 2>&5
27061   ac_status=$?
27062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063   (exit $ac_status); }; }; then
27064   eval "$as_ac_var=yes"
27065 else
27066   echo "$as_me: failed program was:" >&5
27067 sed 's/^/| /' conftest.$ac_ext >&5
27068
27069 eval "$as_ac_var=no"
27070 fi
27071 rm -f conftest.err conftest.$ac_objext \
27072       conftest$ac_exeext conftest.$ac_ext
27073 fi
27074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27076 if test `eval echo '${'$as_ac_var'}'` = yes; then
27077   cat >>confdefs.h <<_ACEOF
27078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27079 _ACEOF
27080
27081 fi
27082 done
27083
27084
27085 echo "$as_me:$LINENO: checking for va_copy" >&5
27086 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
27087 if test "${ba_cv_va_copy+set}" = set; then
27088   echo $ECHO_N "(cached) $ECHO_C" >&6
27089 else
27090   cat >conftest.$ac_ext <<_ACEOF
27091 /* confdefs.h.  */
27092 _ACEOF
27093 cat confdefs.h >>conftest.$ac_ext
27094 cat >>conftest.$ac_ext <<_ACEOF
27095 /* end confdefs.h.  */
27096
27097 #include <stdarg.h>
27098 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27099 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27100
27101 int
27102 main ()
27103 {
27104 call_use_va_copy(1,2,3)
27105   ;
27106   return 0;
27107 }
27108 _ACEOF
27109 rm -f conftest.$ac_objext conftest$ac_exeext
27110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27111   (eval $ac_link) 2>conftest.er1
27112   ac_status=$?
27113   grep -v '^ *+' conftest.er1 >conftest.err
27114   rm -f conftest.er1
27115   cat conftest.err >&5
27116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117   (exit $ac_status); } &&
27118          { ac_try='test -z "$ac_c_werror_flag"
27119                          || test ! -s conftest.err'
27120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27121   (eval $ac_try) 2>&5
27122   ac_status=$?
27123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124   (exit $ac_status); }; } &&
27125          { ac_try='test -s conftest$ac_exeext'
27126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127   (eval $ac_try) 2>&5
27128   ac_status=$?
27129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130   (exit $ac_status); }; }; then
27131   ba_cv_va_copy=yes
27132 else
27133   echo "$as_me: failed program was:" >&5
27134 sed 's/^/| /' conftest.$ac_ext >&5
27135
27136 ba_cv_va_copy=no
27137 fi
27138 rm -f conftest.err conftest.$ac_objext \
27139       conftest$ac_exeext conftest.$ac_ext
27140 fi
27141 echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27142 echo "${ECHO_T}$ba_cv_va_copy" >&6
27143 test $ba_cv_va_copy = yes &&
27144 cat >>confdefs.h <<\_ACEOF
27145 #define HAVE_VA_COPY 1
27146 _ACEOF
27147
27148
27149
27150
27151
27152
27153
27154 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27155 do
27156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27157 echo "$as_me:$LINENO: checking for $ac_func" >&5
27158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27159 if eval "test \"\${$as_ac_var+set}\" = set"; then
27160   echo $ECHO_N "(cached) $ECHO_C" >&6
27161 else
27162   cat >conftest.$ac_ext <<_ACEOF
27163 /* confdefs.h.  */
27164 _ACEOF
27165 cat confdefs.h >>conftest.$ac_ext
27166 cat >>conftest.$ac_ext <<_ACEOF
27167 /* end confdefs.h.  */
27168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27170 #define $ac_func innocuous_$ac_func
27171
27172 /* System header to define __stub macros and hopefully few prototypes,
27173     which can conflict with char $ac_func (); below.
27174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27175     <limits.h> exists even on freestanding compilers.  */
27176
27177 #ifdef __STDC__
27178 # include <limits.h>
27179 #else
27180 # include <assert.h>
27181 #endif
27182
27183 #undef $ac_func
27184
27185 /* Override any gcc2 internal prototype to avoid an error.  */
27186 #ifdef __cplusplus
27187 extern "C"
27188 {
27189 #endif
27190 /* We use char because int might match the return type of a gcc2
27191    builtin and then its argument prototype would still apply.  */
27192 char $ac_func ();
27193 /* The GNU C library defines this for functions which it implements
27194     to always fail with ENOSYS.  Some functions are actually named
27195     something starting with __ and the normal name is an alias.  */
27196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27197 choke me
27198 #else
27199 char (*f) () = $ac_func;
27200 #endif
27201 #ifdef __cplusplus
27202 }
27203 #endif
27204
27205 int
27206 main ()
27207 {
27208 return f != $ac_func;
27209   ;
27210   return 0;
27211 }
27212 _ACEOF
27213 rm -f conftest.$ac_objext conftest$ac_exeext
27214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27215   (eval $ac_link) 2>conftest.er1
27216   ac_status=$?
27217   grep -v '^ *+' conftest.er1 >conftest.err
27218   rm -f conftest.er1
27219   cat conftest.err >&5
27220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221   (exit $ac_status); } &&
27222          { ac_try='test -z "$ac_c_werror_flag"
27223                          || test ! -s conftest.err'
27224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27225   (eval $ac_try) 2>&5
27226   ac_status=$?
27227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27228   (exit $ac_status); }; } &&
27229          { ac_try='test -s conftest$ac_exeext'
27230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27231   (eval $ac_try) 2>&5
27232   ac_status=$?
27233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234   (exit $ac_status); }; }; then
27235   eval "$as_ac_var=yes"
27236 else
27237   echo "$as_me: failed program was:" >&5
27238 sed 's/^/| /' conftest.$ac_ext >&5
27239
27240 eval "$as_ac_var=no"
27241 fi
27242 rm -f conftest.err conftest.$ac_objext \
27243       conftest$ac_exeext conftest.$ac_ext
27244 fi
27245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27247 if test `eval echo '${'$as_ac_var'}'` = yes; then
27248   cat >>confdefs.h <<_ACEOF
27249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27250 _ACEOF
27251
27252 fi
27253 done
27254
27255
27256 # If resolver functions are not in libc check for -lnsl or -lresolv.
27257 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27258 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27259 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27260   echo $ECHO_N "(cached) $ECHO_C" >&6
27261 else
27262   cat >conftest.$ac_ext <<_ACEOF
27263 /* confdefs.h.  */
27264 _ACEOF
27265 cat confdefs.h >>conftest.$ac_ext
27266 cat >>conftest.$ac_ext <<_ACEOF
27267 /* end confdefs.h.  */
27268 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27270 #define gethostbyname_r innocuous_gethostbyname_r
27271
27272 /* System header to define __stub macros and hopefully few prototypes,
27273     which can conflict with char gethostbyname_r (); below.
27274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27275     <limits.h> exists even on freestanding compilers.  */
27276
27277 #ifdef __STDC__
27278 # include <limits.h>
27279 #else
27280 # include <assert.h>
27281 #endif
27282
27283 #undef gethostbyname_r
27284
27285 /* Override any gcc2 internal prototype to avoid an error.  */
27286 #ifdef __cplusplus
27287 extern "C"
27288 {
27289 #endif
27290 /* We use char because int might match the return type of a gcc2
27291    builtin and then its argument prototype would still apply.  */
27292 char gethostbyname_r ();
27293 /* The GNU C library defines this for functions which it implements
27294     to always fail with ENOSYS.  Some functions are actually named
27295     something starting with __ and the normal name is an alias.  */
27296 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27297 choke me
27298 #else
27299 char (*f) () = gethostbyname_r;
27300 #endif
27301 #ifdef __cplusplus
27302 }
27303 #endif
27304
27305 int
27306 main ()
27307 {
27308 return f != gethostbyname_r;
27309   ;
27310   return 0;
27311 }
27312 _ACEOF
27313 rm -f conftest.$ac_objext conftest$ac_exeext
27314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27315   (eval $ac_link) 2>conftest.er1
27316   ac_status=$?
27317   grep -v '^ *+' conftest.er1 >conftest.err
27318   rm -f conftest.er1
27319   cat conftest.err >&5
27320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321   (exit $ac_status); } &&
27322          { ac_try='test -z "$ac_c_werror_flag"
27323                          || test ! -s conftest.err'
27324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27325   (eval $ac_try) 2>&5
27326   ac_status=$?
27327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328   (exit $ac_status); }; } &&
27329          { ac_try='test -s conftest$ac_exeext'
27330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27331   (eval $ac_try) 2>&5
27332   ac_status=$?
27333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334   (exit $ac_status); }; }; then
27335   ac_cv_func_gethostbyname_r=yes
27336 else
27337   echo "$as_me: failed program was:" >&5
27338 sed 's/^/| /' conftest.$ac_ext >&5
27339
27340 ac_cv_func_gethostbyname_r=no
27341 fi
27342 rm -f conftest.err conftest.$ac_objext \
27343       conftest$ac_exeext conftest.$ac_ext
27344 fi
27345 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27346 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27347 if test $ac_cv_func_gethostbyname_r = yes; then
27348   echo "$as_me:$LINENO: result: using libc's resolver" >&5
27349 echo "${ECHO_T}using libc's resolver" >&6
27350 else
27351
27352 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27353 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
27354 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27355   echo $ECHO_N "(cached) $ECHO_C" >&6
27356 else
27357   ac_check_lib_save_LIBS=$LIBS
27358 LIBS="-lnsl  $LIBS"
27359 cat >conftest.$ac_ext <<_ACEOF
27360 /* confdefs.h.  */
27361 _ACEOF
27362 cat confdefs.h >>conftest.$ac_ext
27363 cat >>conftest.$ac_ext <<_ACEOF
27364 /* end confdefs.h.  */
27365
27366 /* Override any gcc2 internal prototype to avoid an error.  */
27367 #ifdef __cplusplus
27368 extern "C"
27369 #endif
27370 /* We use char because int might match the return type of a gcc2
27371    builtin and then its argument prototype would still apply.  */
27372 char gethostbyname_r ();
27373 int
27374 main ()
27375 {
27376 gethostbyname_r ();
27377   ;
27378   return 0;
27379 }
27380 _ACEOF
27381 rm -f conftest.$ac_objext conftest$ac_exeext
27382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27383   (eval $ac_link) 2>conftest.er1
27384   ac_status=$?
27385   grep -v '^ *+' conftest.er1 >conftest.err
27386   rm -f conftest.er1
27387   cat conftest.err >&5
27388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389   (exit $ac_status); } &&
27390          { ac_try='test -z "$ac_c_werror_flag"
27391                          || test ! -s conftest.err'
27392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27393   (eval $ac_try) 2>&5
27394   ac_status=$?
27395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396   (exit $ac_status); }; } &&
27397          { ac_try='test -s conftest$ac_exeext'
27398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399   (eval $ac_try) 2>&5
27400   ac_status=$?
27401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402   (exit $ac_status); }; }; then
27403   ac_cv_lib_nsl_gethostbyname_r=yes
27404 else
27405   echo "$as_me: failed program was:" >&5
27406 sed 's/^/| /' conftest.$ac_ext >&5
27407
27408 ac_cv_lib_nsl_gethostbyname_r=no
27409 fi
27410 rm -f conftest.err conftest.$ac_objext \
27411       conftest$ac_exeext conftest.$ac_ext
27412 LIBS=$ac_check_lib_save_LIBS
27413 fi
27414 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27415 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
27416 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27417   cat >>confdefs.h <<_ACEOF
27418 #define HAVE_LIBNSL 1
27419 _ACEOF
27420
27421   LIBS="-lnsl $LIBS"
27422
27423 fi
27424
27425
27426 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27427 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
27428 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27429   echo $ECHO_N "(cached) $ECHO_C" >&6
27430 else
27431   ac_check_lib_save_LIBS=$LIBS
27432 LIBS="-lresolv  $LIBS"
27433 cat >conftest.$ac_ext <<_ACEOF
27434 /* confdefs.h.  */
27435 _ACEOF
27436 cat confdefs.h >>conftest.$ac_ext
27437 cat >>conftest.$ac_ext <<_ACEOF
27438 /* end confdefs.h.  */
27439
27440 /* Override any gcc2 internal prototype to avoid an error.  */
27441 #ifdef __cplusplus
27442 extern "C"
27443 #endif
27444 /* We use char because int might match the return type of a gcc2
27445    builtin and then its argument prototype would still apply.  */
27446 char gethostbyname_r ();
27447 int
27448 main ()
27449 {
27450 gethostbyname_r ();
27451   ;
27452   return 0;
27453 }
27454 _ACEOF
27455 rm -f conftest.$ac_objext conftest$ac_exeext
27456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27457   (eval $ac_link) 2>conftest.er1
27458   ac_status=$?
27459   grep -v '^ *+' conftest.er1 >conftest.err
27460   rm -f conftest.er1
27461   cat conftest.err >&5
27462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463   (exit $ac_status); } &&
27464          { ac_try='test -z "$ac_c_werror_flag"
27465                          || test ! -s conftest.err'
27466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27467   (eval $ac_try) 2>&5
27468   ac_status=$?
27469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470   (exit $ac_status); }; } &&
27471          { ac_try='test -s conftest$ac_exeext'
27472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27473   (eval $ac_try) 2>&5
27474   ac_status=$?
27475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476   (exit $ac_status); }; }; then
27477   ac_cv_lib_resolv_gethostbyname_r=yes
27478 else
27479   echo "$as_me: failed program was:" >&5
27480 sed 's/^/| /' conftest.$ac_ext >&5
27481
27482 ac_cv_lib_resolv_gethostbyname_r=no
27483 fi
27484 rm -f conftest.err conftest.$ac_objext \
27485       conftest$ac_exeext conftest.$ac_ext
27486 LIBS=$ac_check_lib_save_LIBS
27487 fi
27488 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27489 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
27490 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27491   cat >>confdefs.h <<_ACEOF
27492 #define HAVE_LIBRESOLV 1
27493 _ACEOF
27494
27495   LIBS="-lresolv $LIBS"
27496
27497 fi
27498
27499 fi
27500
27501
27502
27503
27504
27505 for ac_func in inet_pton
27506 do
27507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27508 echo "$as_me:$LINENO: checking for $ac_func" >&5
27509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27510 if eval "test \"\${$as_ac_var+set}\" = set"; then
27511   echo $ECHO_N "(cached) $ECHO_C" >&6
27512 else
27513   cat >conftest.$ac_ext <<_ACEOF
27514 /* confdefs.h.  */
27515 _ACEOF
27516 cat confdefs.h >>conftest.$ac_ext
27517 cat >>conftest.$ac_ext <<_ACEOF
27518 /* end confdefs.h.  */
27519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27521 #define $ac_func innocuous_$ac_func
27522
27523 /* System header to define __stub macros and hopefully few prototypes,
27524     which can conflict with char $ac_func (); below.
27525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27526     <limits.h> exists even on freestanding compilers.  */
27527
27528 #ifdef __STDC__
27529 # include <limits.h>
27530 #else
27531 # include <assert.h>
27532 #endif
27533
27534 #undef $ac_func
27535
27536 /* Override any gcc2 internal prototype to avoid an error.  */
27537 #ifdef __cplusplus
27538 extern "C"
27539 {
27540 #endif
27541 /* We use char because int might match the return type of a gcc2
27542    builtin and then its argument prototype would still apply.  */
27543 char $ac_func ();
27544 /* The GNU C library defines this for functions which it implements
27545     to always fail with ENOSYS.  Some functions are actually named
27546     something starting with __ and the normal name is an alias.  */
27547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27548 choke me
27549 #else
27550 char (*f) () = $ac_func;
27551 #endif
27552 #ifdef __cplusplus
27553 }
27554 #endif
27555
27556 int
27557 main ()
27558 {
27559 return f != $ac_func;
27560   ;
27561   return 0;
27562 }
27563 _ACEOF
27564 rm -f conftest.$ac_objext conftest$ac_exeext
27565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27566   (eval $ac_link) 2>conftest.er1
27567   ac_status=$?
27568   grep -v '^ *+' conftest.er1 >conftest.err
27569   rm -f conftest.er1
27570   cat conftest.err >&5
27571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572   (exit $ac_status); } &&
27573          { ac_try='test -z "$ac_c_werror_flag"
27574                          || test ! -s conftest.err'
27575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576   (eval $ac_try) 2>&5
27577   ac_status=$?
27578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579   (exit $ac_status); }; } &&
27580          { ac_try='test -s conftest$ac_exeext'
27581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27582   (eval $ac_try) 2>&5
27583   ac_status=$?
27584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); }; }; then
27586   eval "$as_ac_var=yes"
27587 else
27588   echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27590
27591 eval "$as_ac_var=no"
27592 fi
27593 rm -f conftest.err conftest.$ac_objext \
27594       conftest$ac_exeext conftest.$ac_ext
27595 fi
27596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27598 if test `eval echo '${'$as_ac_var'}'` = yes; then
27599   cat >>confdefs.h <<_ACEOF
27600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27601 _ACEOF
27602  cat >>confdefs.h <<\_ACEOF
27603 #define HAVE_INET_PTON 1
27604 _ACEOF
27605
27606 fi
27607 done
27608
27609
27610 for ac_func in inet_ntop
27611 do
27612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27613 echo "$as_me:$LINENO: checking for $ac_func" >&5
27614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27615 if eval "test \"\${$as_ac_var+set}\" = set"; then
27616   echo $ECHO_N "(cached) $ECHO_C" >&6
27617 else
27618   cat >conftest.$ac_ext <<_ACEOF
27619 /* confdefs.h.  */
27620 _ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h.  */
27624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27626 #define $ac_func innocuous_$ac_func
27627
27628 /* System header to define __stub macros and hopefully few prototypes,
27629     which can conflict with char $ac_func (); below.
27630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27631     <limits.h> exists even on freestanding compilers.  */
27632
27633 #ifdef __STDC__
27634 # include <limits.h>
27635 #else
27636 # include <assert.h>
27637 #endif
27638
27639 #undef $ac_func
27640
27641 /* Override any gcc2 internal prototype to avoid an error.  */
27642 #ifdef __cplusplus
27643 extern "C"
27644 {
27645 #endif
27646 /* We use char because int might match the return type of a gcc2
27647    builtin and then its argument prototype would still apply.  */
27648 char $ac_func ();
27649 /* The GNU C library defines this for functions which it implements
27650     to always fail with ENOSYS.  Some functions are actually named
27651     something starting with __ and the normal name is an alias.  */
27652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27653 choke me
27654 #else
27655 char (*f) () = $ac_func;
27656 #endif
27657 #ifdef __cplusplus
27658 }
27659 #endif
27660
27661 int
27662 main ()
27663 {
27664 return f != $ac_func;
27665   ;
27666   return 0;
27667 }
27668 _ACEOF
27669 rm -f conftest.$ac_objext conftest$ac_exeext
27670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27671   (eval $ac_link) 2>conftest.er1
27672   ac_status=$?
27673   grep -v '^ *+' conftest.er1 >conftest.err
27674   rm -f conftest.er1
27675   cat conftest.err >&5
27676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677   (exit $ac_status); } &&
27678          { ac_try='test -z "$ac_c_werror_flag"
27679                          || test ! -s conftest.err'
27680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27681   (eval $ac_try) 2>&5
27682   ac_status=$?
27683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684   (exit $ac_status); }; } &&
27685          { ac_try='test -s conftest$ac_exeext'
27686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27687   (eval $ac_try) 2>&5
27688   ac_status=$?
27689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690   (exit $ac_status); }; }; then
27691   eval "$as_ac_var=yes"
27692 else
27693   echo "$as_me: failed program was:" >&5
27694 sed 's/^/| /' conftest.$ac_ext >&5
27695
27696 eval "$as_ac_var=no"
27697 fi
27698 rm -f conftest.err conftest.$ac_objext \
27699       conftest$ac_exeext conftest.$ac_ext
27700 fi
27701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27703 if test `eval echo '${'$as_ac_var'}'` = yes; then
27704   cat >>confdefs.h <<_ACEOF
27705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27706 _ACEOF
27707  cat >>confdefs.h <<\_ACEOF
27708 #define HAVE_INET_NTOP 1
27709 _ACEOF
27710
27711 fi
27712 done
27713
27714
27715 for ac_func in gethostbyname2
27716 do
27717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27718 echo "$as_me:$LINENO: checking for $ac_func" >&5
27719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27720 if eval "test \"\${$as_ac_var+set}\" = set"; then
27721   echo $ECHO_N "(cached) $ECHO_C" >&6
27722 else
27723   cat >conftest.$ac_ext <<_ACEOF
27724 /* confdefs.h.  */
27725 _ACEOF
27726 cat confdefs.h >>conftest.$ac_ext
27727 cat >>conftest.$ac_ext <<_ACEOF
27728 /* end confdefs.h.  */
27729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27731 #define $ac_func innocuous_$ac_func
27732
27733 /* System header to define __stub macros and hopefully few prototypes,
27734     which can conflict with char $ac_func (); below.
27735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27736     <limits.h> exists even on freestanding compilers.  */
27737
27738 #ifdef __STDC__
27739 # include <limits.h>
27740 #else
27741 # include <assert.h>
27742 #endif
27743
27744 #undef $ac_func
27745
27746 /* Override any gcc2 internal prototype to avoid an error.  */
27747 #ifdef __cplusplus
27748 extern "C"
27749 {
27750 #endif
27751 /* We use char because int might match the return type of a gcc2
27752    builtin and then its argument prototype would still apply.  */
27753 char $ac_func ();
27754 /* The GNU C library defines this for functions which it implements
27755     to always fail with ENOSYS.  Some functions are actually named
27756     something starting with __ and the normal name is an alias.  */
27757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27758 choke me
27759 #else
27760 char (*f) () = $ac_func;
27761 #endif
27762 #ifdef __cplusplus
27763 }
27764 #endif
27765
27766 int
27767 main ()
27768 {
27769 return f != $ac_func;
27770   ;
27771   return 0;
27772 }
27773 _ACEOF
27774 rm -f conftest.$ac_objext conftest$ac_exeext
27775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27776   (eval $ac_link) 2>conftest.er1
27777   ac_status=$?
27778   grep -v '^ *+' conftest.er1 >conftest.err
27779   rm -f conftest.er1
27780   cat conftest.err >&5
27781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782   (exit $ac_status); } &&
27783          { ac_try='test -z "$ac_c_werror_flag"
27784                          || test ! -s conftest.err'
27785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27786   (eval $ac_try) 2>&5
27787   ac_status=$?
27788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789   (exit $ac_status); }; } &&
27790          { ac_try='test -s conftest$ac_exeext'
27791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27792   (eval $ac_try) 2>&5
27793   ac_status=$?
27794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795   (exit $ac_status); }; }; then
27796   eval "$as_ac_var=yes"
27797 else
27798   echo "$as_me: failed program was:" >&5
27799 sed 's/^/| /' conftest.$ac_ext >&5
27800
27801 eval "$as_ac_var=no"
27802 fi
27803 rm -f conftest.err conftest.$ac_objext \
27804       conftest$ac_exeext conftest.$ac_ext
27805 fi
27806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27808 if test `eval echo '${'$as_ac_var'}'` = yes; then
27809   cat >>confdefs.h <<_ACEOF
27810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27811 _ACEOF
27812  cat >>confdefs.h <<\_ACEOF
27813 #define HAVE_GETHOSTBYNAME2 1
27814 _ACEOF
27815
27816 fi
27817 done
27818
27819
27820 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27821 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27822 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27823   echo $ECHO_N "(cached) $ECHO_C" >&6
27824 else
27825   cat >conftest.$ac_ext <<_ACEOF
27826 /* confdefs.h.  */
27827 _ACEOF
27828 cat confdefs.h >>conftest.$ac_ext
27829 cat >>conftest.$ac_ext <<_ACEOF
27830 /* end confdefs.h.  */
27831 #include <sys/socket.h>
27832 int
27833 main ()
27834 {
27835 struct sockaddr s; s.sa_len;
27836   ;
27837   return 0;
27838 }
27839 _ACEOF
27840 rm -f conftest.$ac_objext
27841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27842   (eval $ac_compile) 2>conftest.er1
27843   ac_status=$?
27844   grep -v '^ *+' conftest.er1 >conftest.err
27845   rm -f conftest.er1
27846   cat conftest.err >&5
27847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848   (exit $ac_status); } &&
27849          { ac_try='test -z "$ac_c_werror_flag"
27850                          || test ! -s conftest.err'
27851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27852   (eval $ac_try) 2>&5
27853   ac_status=$?
27854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855   (exit $ac_status); }; } &&
27856          { ac_try='test -s conftest.$ac_objext'
27857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858   (eval $ac_try) 2>&5
27859   ac_status=$?
27860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861   (exit $ac_status); }; }; then
27862   ac_cv_struct_sockaddr_sa_len=yes
27863 else
27864   echo "$as_me: failed program was:" >&5
27865 sed 's/^/| /' conftest.$ac_ext >&5
27866
27867 ac_cv_struct_sockaddr_sa_len=no
27868 fi
27869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27870 fi
27871 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27872 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27873
27874  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27875
27876 cat >>confdefs.h <<\_ACEOF
27877 #define HAVE_SA_LEN 1
27878 _ACEOF
27879
27880  fi
27881
27882
27883
27884
27885
27886 for ac_func in strftime
27887 do
27888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27889 echo "$as_me:$LINENO: checking for $ac_func" >&5
27890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27891 if eval "test \"\${$as_ac_var+set}\" = set"; then
27892   echo $ECHO_N "(cached) $ECHO_C" >&6
27893 else
27894   cat >conftest.$ac_ext <<_ACEOF
27895 /* confdefs.h.  */
27896 _ACEOF
27897 cat confdefs.h >>conftest.$ac_ext
27898 cat >>conftest.$ac_ext <<_ACEOF
27899 /* end confdefs.h.  */
27900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27902 #define $ac_func innocuous_$ac_func
27903
27904 /* System header to define __stub macros and hopefully few prototypes,
27905     which can conflict with char $ac_func (); below.
27906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27907     <limits.h> exists even on freestanding compilers.  */
27908
27909 #ifdef __STDC__
27910 # include <limits.h>
27911 #else
27912 # include <assert.h>
27913 #endif
27914
27915 #undef $ac_func
27916
27917 /* Override any gcc2 internal prototype to avoid an error.  */
27918 #ifdef __cplusplus
27919 extern "C"
27920 {
27921 #endif
27922 /* We use char because int might match the return type of a gcc2
27923    builtin and then its argument prototype would still apply.  */
27924 char $ac_func ();
27925 /* The GNU C library defines this for functions which it implements
27926     to always fail with ENOSYS.  Some functions are actually named
27927     something starting with __ and the normal name is an alias.  */
27928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27929 choke me
27930 #else
27931 char (*f) () = $ac_func;
27932 #endif
27933 #ifdef __cplusplus
27934 }
27935 #endif
27936
27937 int
27938 main ()
27939 {
27940 return f != $ac_func;
27941   ;
27942   return 0;
27943 }
27944 _ACEOF
27945 rm -f conftest.$ac_objext conftest$ac_exeext
27946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27947   (eval $ac_link) 2>conftest.er1
27948   ac_status=$?
27949   grep -v '^ *+' conftest.er1 >conftest.err
27950   rm -f conftest.er1
27951   cat conftest.err >&5
27952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); } &&
27954          { ac_try='test -z "$ac_c_werror_flag"
27955                          || test ! -s conftest.err'
27956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27957   (eval $ac_try) 2>&5
27958   ac_status=$?
27959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960   (exit $ac_status); }; } &&
27961          { ac_try='test -s conftest$ac_exeext'
27962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27963   (eval $ac_try) 2>&5
27964   ac_status=$?
27965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966   (exit $ac_status); }; }; then
27967   eval "$as_ac_var=yes"
27968 else
27969   echo "$as_me: failed program was:" >&5
27970 sed 's/^/| /' conftest.$ac_ext >&5
27971
27972 eval "$as_ac_var=no"
27973 fi
27974 rm -f conftest.err conftest.$ac_objext \
27975       conftest$ac_exeext conftest.$ac_ext
27976 fi
27977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27979 if test `eval echo '${'$as_ac_var'}'` = yes; then
27980   cat >>confdefs.h <<_ACEOF
27981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27982 _ACEOF
27983
27984 else
27985   # strftime is in -lintl on SCO UNIX.
27986 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27987 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27988 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27989   echo $ECHO_N "(cached) $ECHO_C" >&6
27990 else
27991   ac_check_lib_save_LIBS=$LIBS
27992 LIBS="-lintl  $LIBS"
27993 cat >conftest.$ac_ext <<_ACEOF
27994 /* confdefs.h.  */
27995 _ACEOF
27996 cat confdefs.h >>conftest.$ac_ext
27997 cat >>conftest.$ac_ext <<_ACEOF
27998 /* end confdefs.h.  */
27999
28000 /* Override any gcc2 internal prototype to avoid an error.  */
28001 #ifdef __cplusplus
28002 extern "C"
28003 #endif
28004 /* We use char because int might match the return type of a gcc2
28005    builtin and then its argument prototype would still apply.  */
28006 char strftime ();
28007 int
28008 main ()
28009 {
28010 strftime ();
28011   ;
28012   return 0;
28013 }
28014 _ACEOF
28015 rm -f conftest.$ac_objext conftest$ac_exeext
28016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28017   (eval $ac_link) 2>conftest.er1
28018   ac_status=$?
28019   grep -v '^ *+' conftest.er1 >conftest.err
28020   rm -f conftest.er1
28021   cat conftest.err >&5
28022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023   (exit $ac_status); } &&
28024          { ac_try='test -z "$ac_c_werror_flag"
28025                          || test ! -s conftest.err'
28026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28027   (eval $ac_try) 2>&5
28028   ac_status=$?
28029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030   (exit $ac_status); }; } &&
28031          { ac_try='test -s conftest$ac_exeext'
28032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28033   (eval $ac_try) 2>&5
28034   ac_status=$?
28035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036   (exit $ac_status); }; }; then
28037   ac_cv_lib_intl_strftime=yes
28038 else
28039   echo "$as_me: failed program was:" >&5
28040 sed 's/^/| /' conftest.$ac_ext >&5
28041
28042 ac_cv_lib_intl_strftime=no
28043 fi
28044 rm -f conftest.err conftest.$ac_objext \
28045       conftest$ac_exeext conftest.$ac_ext
28046 LIBS=$ac_check_lib_save_LIBS
28047 fi
28048 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28049 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
28050 if test $ac_cv_lib_intl_strftime = yes; then
28051   cat >>confdefs.h <<\_ACEOF
28052 #define HAVE_STRFTIME 1
28053 _ACEOF
28054
28055 LIBS="-lintl $LIBS"
28056 fi
28057
28058 fi
28059 done
28060
28061
28062 for ac_func in vprintf
28063 do
28064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28065 echo "$as_me:$LINENO: checking for $ac_func" >&5
28066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28067 if eval "test \"\${$as_ac_var+set}\" = set"; then
28068   echo $ECHO_N "(cached) $ECHO_C" >&6
28069 else
28070   cat >conftest.$ac_ext <<_ACEOF
28071 /* confdefs.h.  */
28072 _ACEOF
28073 cat confdefs.h >>conftest.$ac_ext
28074 cat >>conftest.$ac_ext <<_ACEOF
28075 /* end confdefs.h.  */
28076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28078 #define $ac_func innocuous_$ac_func
28079
28080 /* System header to define __stub macros and hopefully few prototypes,
28081     which can conflict with char $ac_func (); below.
28082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28083     <limits.h> exists even on freestanding compilers.  */
28084
28085 #ifdef __STDC__
28086 # include <limits.h>
28087 #else
28088 # include <assert.h>
28089 #endif
28090
28091 #undef $ac_func
28092
28093 /* Override any gcc2 internal prototype to avoid an error.  */
28094 #ifdef __cplusplus
28095 extern "C"
28096 {
28097 #endif
28098 /* We use char because int might match the return type of a gcc2
28099    builtin and then its argument prototype would still apply.  */
28100 char $ac_func ();
28101 /* The GNU C library defines this for functions which it implements
28102     to always fail with ENOSYS.  Some functions are actually named
28103     something starting with __ and the normal name is an alias.  */
28104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28105 choke me
28106 #else
28107 char (*f) () = $ac_func;
28108 #endif
28109 #ifdef __cplusplus
28110 }
28111 #endif
28112
28113 int
28114 main ()
28115 {
28116 return f != $ac_func;
28117   ;
28118   return 0;
28119 }
28120 _ACEOF
28121 rm -f conftest.$ac_objext conftest$ac_exeext
28122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28123   (eval $ac_link) 2>conftest.er1
28124   ac_status=$?
28125   grep -v '^ *+' conftest.er1 >conftest.err
28126   rm -f conftest.er1
28127   cat conftest.err >&5
28128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129   (exit $ac_status); } &&
28130          { ac_try='test -z "$ac_c_werror_flag"
28131                          || test ! -s conftest.err'
28132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28133   (eval $ac_try) 2>&5
28134   ac_status=$?
28135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136   (exit $ac_status); }; } &&
28137          { ac_try='test -s conftest$ac_exeext'
28138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139   (eval $ac_try) 2>&5
28140   ac_status=$?
28141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142   (exit $ac_status); }; }; then
28143   eval "$as_ac_var=yes"
28144 else
28145   echo "$as_me: failed program was:" >&5
28146 sed 's/^/| /' conftest.$ac_ext >&5
28147
28148 eval "$as_ac_var=no"
28149 fi
28150 rm -f conftest.err conftest.$ac_objext \
28151       conftest$ac_exeext conftest.$ac_ext
28152 fi
28153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28155 if test `eval echo '${'$as_ac_var'}'` = yes; then
28156   cat >>confdefs.h <<_ACEOF
28157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28158 _ACEOF
28159
28160 echo "$as_me:$LINENO: checking for _doprnt" >&5
28161 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28162 if test "${ac_cv_func__doprnt+set}" = set; then
28163   echo $ECHO_N "(cached) $ECHO_C" >&6
28164 else
28165   cat >conftest.$ac_ext <<_ACEOF
28166 /* confdefs.h.  */
28167 _ACEOF
28168 cat confdefs.h >>conftest.$ac_ext
28169 cat >>conftest.$ac_ext <<_ACEOF
28170 /* end confdefs.h.  */
28171 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28173 #define _doprnt innocuous__doprnt
28174
28175 /* System header to define __stub macros and hopefully few prototypes,
28176     which can conflict with char _doprnt (); below.
28177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28178     <limits.h> exists even on freestanding compilers.  */
28179
28180 #ifdef __STDC__
28181 # include <limits.h>
28182 #else
28183 # include <assert.h>
28184 #endif
28185
28186 #undef _doprnt
28187
28188 /* Override any gcc2 internal prototype to avoid an error.  */
28189 #ifdef __cplusplus
28190 extern "C"
28191 {
28192 #endif
28193 /* We use char because int might match the return type of a gcc2
28194    builtin and then its argument prototype would still apply.  */
28195 char _doprnt ();
28196 /* The GNU C library defines this for functions which it implements
28197     to always fail with ENOSYS.  Some functions are actually named
28198     something starting with __ and the normal name is an alias.  */
28199 #if defined (__stub__doprnt) || defined (__stub____doprnt)
28200 choke me
28201 #else
28202 char (*f) () = _doprnt;
28203 #endif
28204 #ifdef __cplusplus
28205 }
28206 #endif
28207
28208 int
28209 main ()
28210 {
28211 return f != _doprnt;
28212   ;
28213   return 0;
28214 }
28215 _ACEOF
28216 rm -f conftest.$ac_objext conftest$ac_exeext
28217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28218   (eval $ac_link) 2>conftest.er1
28219   ac_status=$?
28220   grep -v '^ *+' conftest.er1 >conftest.err
28221   rm -f conftest.er1
28222   cat conftest.err >&5
28223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224   (exit $ac_status); } &&
28225          { ac_try='test -z "$ac_c_werror_flag"
28226                          || test ! -s conftest.err'
28227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28228   (eval $ac_try) 2>&5
28229   ac_status=$?
28230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231   (exit $ac_status); }; } &&
28232          { ac_try='test -s conftest$ac_exeext'
28233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28234   (eval $ac_try) 2>&5
28235   ac_status=$?
28236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237   (exit $ac_status); }; }; then
28238   ac_cv_func__doprnt=yes
28239 else
28240   echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.$ac_ext >&5
28242
28243 ac_cv_func__doprnt=no
28244 fi
28245 rm -f conftest.err conftest.$ac_objext \
28246       conftest$ac_exeext conftest.$ac_ext
28247 fi
28248 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28249 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28250 if test $ac_cv_func__doprnt = yes; then
28251
28252 cat >>confdefs.h <<\_ACEOF
28253 #define HAVE_DOPRNT 1
28254 _ACEOF
28255
28256 fi
28257
28258 fi
28259 done
28260
28261
28262 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28263 # for constant arguments.  Useless!
28264 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28265 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28266 if test "${ac_cv_working_alloca_h+set}" = set; then
28267   echo $ECHO_N "(cached) $ECHO_C" >&6
28268 else
28269   cat >conftest.$ac_ext <<_ACEOF
28270 /* confdefs.h.  */
28271 _ACEOF
28272 cat confdefs.h >>conftest.$ac_ext
28273 cat >>conftest.$ac_ext <<_ACEOF
28274 /* end confdefs.h.  */
28275 #include <alloca.h>
28276 int
28277 main ()
28278 {
28279 char *p = (char *) alloca (2 * sizeof (int));
28280   ;
28281   return 0;
28282 }
28283 _ACEOF
28284 rm -f conftest.$ac_objext conftest$ac_exeext
28285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28286   (eval $ac_link) 2>conftest.er1
28287   ac_status=$?
28288   grep -v '^ *+' conftest.er1 >conftest.err
28289   rm -f conftest.er1
28290   cat conftest.err >&5
28291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292   (exit $ac_status); } &&
28293          { ac_try='test -z "$ac_c_werror_flag"
28294                          || test ! -s conftest.err'
28295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28296   (eval $ac_try) 2>&5
28297   ac_status=$?
28298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299   (exit $ac_status); }; } &&
28300          { ac_try='test -s conftest$ac_exeext'
28301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28302   (eval $ac_try) 2>&5
28303   ac_status=$?
28304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305   (exit $ac_status); }; }; then
28306   ac_cv_working_alloca_h=yes
28307 else
28308   echo "$as_me: failed program was:" >&5
28309 sed 's/^/| /' conftest.$ac_ext >&5
28310
28311 ac_cv_working_alloca_h=no
28312 fi
28313 rm -f conftest.err conftest.$ac_objext \
28314       conftest$ac_exeext conftest.$ac_ext
28315 fi
28316 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28317 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28318 if test $ac_cv_working_alloca_h = yes; then
28319
28320 cat >>confdefs.h <<\_ACEOF
28321 #define HAVE_ALLOCA_H 1
28322 _ACEOF
28323
28324 fi
28325
28326 echo "$as_me:$LINENO: checking for alloca" >&5
28327 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28328 if test "${ac_cv_func_alloca_works+set}" = set; then
28329   echo $ECHO_N "(cached) $ECHO_C" >&6
28330 else
28331   cat >conftest.$ac_ext <<_ACEOF
28332 /* confdefs.h.  */
28333 _ACEOF
28334 cat confdefs.h >>conftest.$ac_ext
28335 cat >>conftest.$ac_ext <<_ACEOF
28336 /* end confdefs.h.  */
28337 #ifdef __GNUC__
28338 # define alloca __builtin_alloca
28339 #else
28340 # ifdef _MSC_VER
28341 #  include <malloc.h>
28342 #  define alloca _alloca
28343 # else
28344 #  if HAVE_ALLOCA_H
28345 #   include <alloca.h>
28346 #  else
28347 #   ifdef _AIX
28348  #pragma alloca
28349 #   else
28350 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28351 char *alloca ();
28352 #    endif
28353 #   endif
28354 #  endif
28355 # endif
28356 #endif
28357
28358 int
28359 main ()
28360 {
28361 char *p = (char *) alloca (1);
28362   ;
28363   return 0;
28364 }
28365 _ACEOF
28366 rm -f conftest.$ac_objext conftest$ac_exeext
28367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28368   (eval $ac_link) 2>conftest.er1
28369   ac_status=$?
28370   grep -v '^ *+' conftest.er1 >conftest.err
28371   rm -f conftest.er1
28372   cat conftest.err >&5
28373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374   (exit $ac_status); } &&
28375          { ac_try='test -z "$ac_c_werror_flag"
28376                          || test ! -s conftest.err'
28377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28378   (eval $ac_try) 2>&5
28379   ac_status=$?
28380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381   (exit $ac_status); }; } &&
28382          { ac_try='test -s conftest$ac_exeext'
28383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28384   (eval $ac_try) 2>&5
28385   ac_status=$?
28386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387   (exit $ac_status); }; }; then
28388   ac_cv_func_alloca_works=yes
28389 else
28390   echo "$as_me: failed program was:" >&5
28391 sed 's/^/| /' conftest.$ac_ext >&5
28392
28393 ac_cv_func_alloca_works=no
28394 fi
28395 rm -f conftest.err conftest.$ac_objext \
28396       conftest$ac_exeext conftest.$ac_ext
28397 fi
28398 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28399 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28400
28401 if test $ac_cv_func_alloca_works = yes; then
28402
28403 cat >>confdefs.h <<\_ACEOF
28404 #define HAVE_ALLOCA 1
28405 _ACEOF
28406
28407 else
28408   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28409 # that cause trouble.  Some versions do not even contain alloca or
28410 # contain a buggy version.  If you still want to use their alloca,
28411 # use ar to extract alloca.o from them instead of compiling alloca.c.
28412
28413 ALLOCA=alloca.$ac_objext
28414
28415 cat >>confdefs.h <<\_ACEOF
28416 #define C_ALLOCA 1
28417 _ACEOF
28418
28419
28420 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28421 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28422 if test "${ac_cv_os_cray+set}" = set; then
28423   echo $ECHO_N "(cached) $ECHO_C" >&6
28424 else
28425   cat >conftest.$ac_ext <<_ACEOF
28426 /* confdefs.h.  */
28427 _ACEOF
28428 cat confdefs.h >>conftest.$ac_ext
28429 cat >>conftest.$ac_ext <<_ACEOF
28430 /* end confdefs.h.  */
28431 #if defined(CRAY) && ! defined(CRAY2)
28432 webecray
28433 #else
28434 wenotbecray
28435 #endif
28436
28437 _ACEOF
28438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28439   $EGREP "webecray" >/dev/null 2>&1; then
28440   ac_cv_os_cray=yes
28441 else
28442   ac_cv_os_cray=no
28443 fi
28444 rm -f conftest*
28445
28446 fi
28447 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28448 echo "${ECHO_T}$ac_cv_os_cray" >&6
28449 if test $ac_cv_os_cray = yes; then
28450   for ac_func in _getb67 GETB67 getb67; do
28451     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28452 echo "$as_me:$LINENO: checking for $ac_func" >&5
28453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28454 if eval "test \"\${$as_ac_var+set}\" = set"; then
28455   echo $ECHO_N "(cached) $ECHO_C" >&6
28456 else
28457   cat >conftest.$ac_ext <<_ACEOF
28458 /* confdefs.h.  */
28459 _ACEOF
28460 cat confdefs.h >>conftest.$ac_ext
28461 cat >>conftest.$ac_ext <<_ACEOF
28462 /* end confdefs.h.  */
28463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28465 #define $ac_func innocuous_$ac_func
28466
28467 /* System header to define __stub macros and hopefully few prototypes,
28468     which can conflict with char $ac_func (); below.
28469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28470     <limits.h> exists even on freestanding compilers.  */
28471
28472 #ifdef __STDC__
28473 # include <limits.h>
28474 #else
28475 # include <assert.h>
28476 #endif
28477
28478 #undef $ac_func
28479
28480 /* Override any gcc2 internal prototype to avoid an error.  */
28481 #ifdef __cplusplus
28482 extern "C"
28483 {
28484 #endif
28485 /* We use char because int might match the return type of a gcc2
28486    builtin and then its argument prototype would still apply.  */
28487 char $ac_func ();
28488 /* The GNU C library defines this for functions which it implements
28489     to always fail with ENOSYS.  Some functions are actually named
28490     something starting with __ and the normal name is an alias.  */
28491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28492 choke me
28493 #else
28494 char (*f) () = $ac_func;
28495 #endif
28496 #ifdef __cplusplus
28497 }
28498 #endif
28499
28500 int
28501 main ()
28502 {
28503 return f != $ac_func;
28504   ;
28505   return 0;
28506 }
28507 _ACEOF
28508 rm -f conftest.$ac_objext conftest$ac_exeext
28509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28510   (eval $ac_link) 2>conftest.er1
28511   ac_status=$?
28512   grep -v '^ *+' conftest.er1 >conftest.err
28513   rm -f conftest.er1
28514   cat conftest.err >&5
28515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516   (exit $ac_status); } &&
28517          { ac_try='test -z "$ac_c_werror_flag"
28518                          || test ! -s conftest.err'
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); }; } &&
28524          { ac_try='test -s conftest$ac_exeext'
28525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28526   (eval $ac_try) 2>&5
28527   ac_status=$?
28528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529   (exit $ac_status); }; }; then
28530   eval "$as_ac_var=yes"
28531 else
28532   echo "$as_me: failed program was:" >&5
28533 sed 's/^/| /' conftest.$ac_ext >&5
28534
28535 eval "$as_ac_var=no"
28536 fi
28537 rm -f conftest.err conftest.$ac_objext \
28538       conftest$ac_exeext conftest.$ac_ext
28539 fi
28540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28542 if test `eval echo '${'$as_ac_var'}'` = yes; then
28543
28544 cat >>confdefs.h <<_ACEOF
28545 #define CRAY_STACKSEG_END $ac_func
28546 _ACEOF
28547
28548     break
28549 fi
28550
28551   done
28552 fi
28553
28554 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28555 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28556 if test "${ac_cv_c_stack_direction+set}" = set; then
28557   echo $ECHO_N "(cached) $ECHO_C" >&6
28558 else
28559   if test "$cross_compiling" = yes; then
28560   ac_cv_c_stack_direction=0
28561 else
28562   cat >conftest.$ac_ext <<_ACEOF
28563 /* confdefs.h.  */
28564 _ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h.  */
28568 int
28569 find_stack_direction ()
28570 {
28571   static char *addr = 0;
28572   auto char dummy;
28573   if (addr == 0)
28574     {
28575       addr = &dummy;
28576       return find_stack_direction ();
28577     }
28578   else
28579     return (&dummy > addr) ? 1 : -1;
28580 }
28581
28582 int
28583 main ()
28584 {
28585   exit (find_stack_direction () < 0);
28586 }
28587 _ACEOF
28588 rm -f conftest$ac_exeext
28589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28590   (eval $ac_link) 2>&5
28591   ac_status=$?
28592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28595   (eval $ac_try) 2>&5
28596   ac_status=$?
28597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598   (exit $ac_status); }; }; then
28599   ac_cv_c_stack_direction=1
28600 else
28601   echo "$as_me: program exited with status $ac_status" >&5
28602 echo "$as_me: failed program was:" >&5
28603 sed 's/^/| /' conftest.$ac_ext >&5
28604
28605 ( exit $ac_status )
28606 ac_cv_c_stack_direction=-1
28607 fi
28608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28609 fi
28610 fi
28611 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28612 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28613
28614 cat >>confdefs.h <<_ACEOF
28615 #define STACK_DIRECTION $ac_cv_c_stack_direction
28616 _ACEOF
28617
28618
28619 fi
28620
28621 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28622 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28623 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28624 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28625   echo $ECHO_N "(cached) $ECHO_C" >&6
28626 else
28627   ac_check_lib_save_LIBS=$LIBS
28628 LIBS="-lsun  $LIBS"
28629 cat >conftest.$ac_ext <<_ACEOF
28630 /* confdefs.h.  */
28631 _ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h.  */
28635
28636 /* Override any gcc2 internal prototype to avoid an error.  */
28637 #ifdef __cplusplus
28638 extern "C"
28639 #endif
28640 /* We use char because int might match the return type of a gcc2
28641    builtin and then its argument prototype would still apply.  */
28642 char getmntent ();
28643 int
28644 main ()
28645 {
28646 getmntent ();
28647   ;
28648   return 0;
28649 }
28650 _ACEOF
28651 rm -f conftest.$ac_objext conftest$ac_exeext
28652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28653   (eval $ac_link) 2>conftest.er1
28654   ac_status=$?
28655   grep -v '^ *+' conftest.er1 >conftest.err
28656   rm -f conftest.er1
28657   cat conftest.err >&5
28658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659   (exit $ac_status); } &&
28660          { ac_try='test -z "$ac_c_werror_flag"
28661                          || test ! -s conftest.err'
28662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28663   (eval $ac_try) 2>&5
28664   ac_status=$?
28665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666   (exit $ac_status); }; } &&
28667          { ac_try='test -s conftest$ac_exeext'
28668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28669   (eval $ac_try) 2>&5
28670   ac_status=$?
28671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672   (exit $ac_status); }; }; then
28673   ac_cv_lib_sun_getmntent=yes
28674 else
28675   echo "$as_me: failed program was:" >&5
28676 sed 's/^/| /' conftest.$ac_ext >&5
28677
28678 ac_cv_lib_sun_getmntent=no
28679 fi
28680 rm -f conftest.err conftest.$ac_objext \
28681       conftest$ac_exeext conftest.$ac_ext
28682 LIBS=$ac_check_lib_save_LIBS
28683 fi
28684 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28685 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28686 if test $ac_cv_lib_sun_getmntent = yes; then
28687   LIBS="-lsun $LIBS"
28688 else
28689   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28690 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28691 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28692   echo $ECHO_N "(cached) $ECHO_C" >&6
28693 else
28694   ac_check_lib_save_LIBS=$LIBS
28695 LIBS="-lseq  $LIBS"
28696 cat >conftest.$ac_ext <<_ACEOF
28697 /* confdefs.h.  */
28698 _ACEOF
28699 cat confdefs.h >>conftest.$ac_ext
28700 cat >>conftest.$ac_ext <<_ACEOF
28701 /* end confdefs.h.  */
28702
28703 /* Override any gcc2 internal prototype to avoid an error.  */
28704 #ifdef __cplusplus
28705 extern "C"
28706 #endif
28707 /* We use char because int might match the return type of a gcc2
28708    builtin and then its argument prototype would still apply.  */
28709 char getmntent ();
28710 int
28711 main ()
28712 {
28713 getmntent ();
28714   ;
28715   return 0;
28716 }
28717 _ACEOF
28718 rm -f conftest.$ac_objext conftest$ac_exeext
28719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28720   (eval $ac_link) 2>conftest.er1
28721   ac_status=$?
28722   grep -v '^ *+' conftest.er1 >conftest.err
28723   rm -f conftest.er1
28724   cat conftest.err >&5
28725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726   (exit $ac_status); } &&
28727          { ac_try='test -z "$ac_c_werror_flag"
28728                          || test ! -s conftest.err'
28729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28730   (eval $ac_try) 2>&5
28731   ac_status=$?
28732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733   (exit $ac_status); }; } &&
28734          { ac_try='test -s conftest$ac_exeext'
28735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28736   (eval $ac_try) 2>&5
28737   ac_status=$?
28738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739   (exit $ac_status); }; }; then
28740   ac_cv_lib_seq_getmntent=yes
28741 else
28742   echo "$as_me: failed program was:" >&5
28743 sed 's/^/| /' conftest.$ac_ext >&5
28744
28745 ac_cv_lib_seq_getmntent=no
28746 fi
28747 rm -f conftest.err conftest.$ac_objext \
28748       conftest$ac_exeext conftest.$ac_ext
28749 LIBS=$ac_check_lib_save_LIBS
28750 fi
28751 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28752 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28753 if test $ac_cv_lib_seq_getmntent = yes; then
28754   LIBS="-lseq $LIBS"
28755 else
28756   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28757 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28758 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28759   echo $ECHO_N "(cached) $ECHO_C" >&6
28760 else
28761   ac_check_lib_save_LIBS=$LIBS
28762 LIBS="-lgen  $LIBS"
28763 cat >conftest.$ac_ext <<_ACEOF
28764 /* confdefs.h.  */
28765 _ACEOF
28766 cat confdefs.h >>conftest.$ac_ext
28767 cat >>conftest.$ac_ext <<_ACEOF
28768 /* end confdefs.h.  */
28769
28770 /* Override any gcc2 internal prototype to avoid an error.  */
28771 #ifdef __cplusplus
28772 extern "C"
28773 #endif
28774 /* We use char because int might match the return type of a gcc2
28775    builtin and then its argument prototype would still apply.  */
28776 char getmntent ();
28777 int
28778 main ()
28779 {
28780 getmntent ();
28781   ;
28782   return 0;
28783 }
28784 _ACEOF
28785 rm -f conftest.$ac_objext conftest$ac_exeext
28786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28787   (eval $ac_link) 2>conftest.er1
28788   ac_status=$?
28789   grep -v '^ *+' conftest.er1 >conftest.err
28790   rm -f conftest.er1
28791   cat conftest.err >&5
28792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793   (exit $ac_status); } &&
28794          { ac_try='test -z "$ac_c_werror_flag"
28795                          || test ! -s conftest.err'
28796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28797   (eval $ac_try) 2>&5
28798   ac_status=$?
28799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800   (exit $ac_status); }; } &&
28801          { ac_try='test -s conftest$ac_exeext'
28802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28803   (eval $ac_try) 2>&5
28804   ac_status=$?
28805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806   (exit $ac_status); }; }; then
28807   ac_cv_lib_gen_getmntent=yes
28808 else
28809   echo "$as_me: failed program was:" >&5
28810 sed 's/^/| /' conftest.$ac_ext >&5
28811
28812 ac_cv_lib_gen_getmntent=no
28813 fi
28814 rm -f conftest.err conftest.$ac_objext \
28815       conftest$ac_exeext conftest.$ac_ext
28816 LIBS=$ac_check_lib_save_LIBS
28817 fi
28818 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28819 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28820 if test $ac_cv_lib_gen_getmntent = yes; then
28821   LIBS="-lgen $LIBS"
28822 fi
28823
28824 fi
28825
28826 fi
28827
28828
28829 for ac_func in getmntent
28830 do
28831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28832 echo "$as_me:$LINENO: checking for $ac_func" >&5
28833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28834 if eval "test \"\${$as_ac_var+set}\" = set"; then
28835   echo $ECHO_N "(cached) $ECHO_C" >&6
28836 else
28837   cat >conftest.$ac_ext <<_ACEOF
28838 /* confdefs.h.  */
28839 _ACEOF
28840 cat confdefs.h >>conftest.$ac_ext
28841 cat >>conftest.$ac_ext <<_ACEOF
28842 /* end confdefs.h.  */
28843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28845 #define $ac_func innocuous_$ac_func
28846
28847 /* System header to define __stub macros and hopefully few prototypes,
28848     which can conflict with char $ac_func (); below.
28849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28850     <limits.h> exists even on freestanding compilers.  */
28851
28852 #ifdef __STDC__
28853 # include <limits.h>
28854 #else
28855 # include <assert.h>
28856 #endif
28857
28858 #undef $ac_func
28859
28860 /* Override any gcc2 internal prototype to avoid an error.  */
28861 #ifdef __cplusplus
28862 extern "C"
28863 {
28864 #endif
28865 /* We use char because int might match the return type of a gcc2
28866    builtin and then its argument prototype would still apply.  */
28867 char $ac_func ();
28868 /* The GNU C library defines this for functions which it implements
28869     to always fail with ENOSYS.  Some functions are actually named
28870     something starting with __ and the normal name is an alias.  */
28871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28872 choke me
28873 #else
28874 char (*f) () = $ac_func;
28875 #endif
28876 #ifdef __cplusplus
28877 }
28878 #endif
28879
28880 int
28881 main ()
28882 {
28883 return f != $ac_func;
28884   ;
28885   return 0;
28886 }
28887 _ACEOF
28888 rm -f conftest.$ac_objext conftest$ac_exeext
28889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28890   (eval $ac_link) 2>conftest.er1
28891   ac_status=$?
28892   grep -v '^ *+' conftest.er1 >conftest.err
28893   rm -f conftest.er1
28894   cat conftest.err >&5
28895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896   (exit $ac_status); } &&
28897          { ac_try='test -z "$ac_c_werror_flag"
28898                          || test ! -s conftest.err'
28899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28900   (eval $ac_try) 2>&5
28901   ac_status=$?
28902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903   (exit $ac_status); }; } &&
28904          { ac_try='test -s conftest$ac_exeext'
28905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28906   (eval $ac_try) 2>&5
28907   ac_status=$?
28908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909   (exit $ac_status); }; }; then
28910   eval "$as_ac_var=yes"
28911 else
28912   echo "$as_me: failed program was:" >&5
28913 sed 's/^/| /' conftest.$ac_ext >&5
28914
28915 eval "$as_ac_var=no"
28916 fi
28917 rm -f conftest.err conftest.$ac_objext \
28918       conftest$ac_exeext conftest.$ac_ext
28919 fi
28920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28922 if test `eval echo '${'$as_ac_var'}'` = yes; then
28923   cat >>confdefs.h <<_ACEOF
28924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28925 _ACEOF
28926
28927 fi
28928 done
28929
28930
28931 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28932 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28933 if test "${ac_cv_func_closedir_void+set}" = set; then
28934   echo $ECHO_N "(cached) $ECHO_C" >&6
28935 else
28936   if test "$cross_compiling" = yes; then
28937   ac_cv_func_closedir_void=yes
28938 else
28939   cat >conftest.$ac_ext <<_ACEOF
28940 /* confdefs.h.  */
28941 _ACEOF
28942 cat confdefs.h >>conftest.$ac_ext
28943 cat >>conftest.$ac_ext <<_ACEOF
28944 /* end confdefs.h.  */
28945 $ac_includes_default
28946 #include <$ac_header_dirent>
28947 #ifndef __cplusplus
28948 int closedir ();
28949 #endif
28950
28951 int
28952 main ()
28953 {
28954 exit (closedir (opendir (".")) != 0);
28955   ;
28956   return 0;
28957 }
28958 _ACEOF
28959 rm -f conftest$ac_exeext
28960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28961   (eval $ac_link) 2>&5
28962   ac_status=$?
28963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28966   (eval $ac_try) 2>&5
28967   ac_status=$?
28968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969   (exit $ac_status); }; }; then
28970   ac_cv_func_closedir_void=no
28971 else
28972   echo "$as_me: program exited with status $ac_status" >&5
28973 echo "$as_me: failed program was:" >&5
28974 sed 's/^/| /' conftest.$ac_ext >&5
28975
28976 ( exit $ac_status )
28977 ac_cv_func_closedir_void=yes
28978 fi
28979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28980 fi
28981 fi
28982 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28983 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28984 if test $ac_cv_func_closedir_void = yes; then
28985
28986 cat >>confdefs.h <<\_ACEOF
28987 #define CLOSEDIR_VOID 1
28988 _ACEOF
28989
28990 fi
28991
28992 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28993 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28994 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28995   echo $ECHO_N "(cached) $ECHO_C" >&6
28996 else
28997   if test "$cross_compiling" = yes; then
28998   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28999 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29000    { (exit 1); exit 1; }; }
29001 else
29002   cat >conftest.$ac_ext <<_ACEOF
29003 /* confdefs.h.  */
29004 _ACEOF
29005 cat confdefs.h >>conftest.$ac_ext
29006 cat >>conftest.$ac_ext <<_ACEOF
29007 /* end confdefs.h.  */
29008 #if HAVE_UNISTD_H
29009 # include <unistd.h>
29010 #endif
29011
29012 int
29013 main ()
29014 {
29015 /* If this system has a BSD-style setpgrp which takes arguments,
29016   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29017   exit successfully. */
29018   exit (setpgrp (1,1) == -1 ? 0 : 1);
29019   ;
29020   return 0;
29021 }
29022 _ACEOF
29023 rm -f conftest$ac_exeext
29024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29025   (eval $ac_link) 2>&5
29026   ac_status=$?
29027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29030   (eval $ac_try) 2>&5
29031   ac_status=$?
29032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033   (exit $ac_status); }; }; then
29034   ac_cv_func_setpgrp_void=no
29035 else
29036   echo "$as_me: program exited with status $ac_status" >&5
29037 echo "$as_me: failed program was:" >&5
29038 sed 's/^/| /' conftest.$ac_ext >&5
29039
29040 ( exit $ac_status )
29041 ac_cv_func_setpgrp_void=yes
29042 fi
29043 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29044 fi
29045 fi
29046 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29047 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
29048 if test $ac_cv_func_setpgrp_void = yes; then
29049
29050 cat >>confdefs.h <<\_ACEOF
29051 #define SETPGRP_VOID 1
29052 _ACEOF
29053
29054 fi
29055                       # AC_FUNC_FNMATCH    dnl use local version
29056
29057
29058 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29059 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
29060 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29061   echo $ECHO_N "(cached) $ECHO_C" >&6
29062 else
29063   ac_check_lib_save_LIBS=$LIBS
29064 LIBS="-lintl  $LIBS"
29065 cat >conftest.$ac_ext <<_ACEOF
29066 /* confdefs.h.  */
29067 _ACEOF
29068 cat confdefs.h >>conftest.$ac_ext
29069 cat >>conftest.$ac_ext <<_ACEOF
29070 /* end confdefs.h.  */
29071
29072 /* Override any gcc2 internal prototype to avoid an error.  */
29073 #ifdef __cplusplus
29074 extern "C"
29075 #endif
29076 /* We use char because int might match the return type of a gcc2
29077    builtin and then its argument prototype would still apply.  */
29078 char gettext ();
29079 int
29080 main ()
29081 {
29082 gettext ();
29083   ;
29084   return 0;
29085 }
29086 _ACEOF
29087 rm -f conftest.$ac_objext conftest$ac_exeext
29088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29089   (eval $ac_link) 2>conftest.er1
29090   ac_status=$?
29091   grep -v '^ *+' conftest.er1 >conftest.err
29092   rm -f conftest.er1
29093   cat conftest.err >&5
29094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095   (exit $ac_status); } &&
29096          { ac_try='test -z "$ac_c_werror_flag"
29097                          || test ! -s conftest.err'
29098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29099   (eval $ac_try) 2>&5
29100   ac_status=$?
29101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102   (exit $ac_status); }; } &&
29103          { ac_try='test -s conftest$ac_exeext'
29104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29105   (eval $ac_try) 2>&5
29106   ac_status=$?
29107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108   (exit $ac_status); }; }; then
29109   ac_cv_lib_intl_gettext=yes
29110 else
29111   echo "$as_me: failed program was:" >&5
29112 sed 's/^/| /' conftest.$ac_ext >&5
29113
29114 ac_cv_lib_intl_gettext=no
29115 fi
29116 rm -f conftest.err conftest.$ac_objext \
29117       conftest$ac_exeext conftest.$ac_ext
29118 LIBS=$ac_check_lib_save_LIBS
29119 fi
29120 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29121 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
29122 if test $ac_cv_lib_intl_gettext = yes; then
29123   LIBS="$LIBS -lintl"
29124 fi
29125
29126
29127
29128
29129 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29130 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
29131 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29132   echo $ECHO_N "(cached) $ECHO_C" >&6
29133 else
29134   ac_check_lib_save_LIBS=$LIBS
29135 LIBS="-lsun  $LIBS"
29136 cat >conftest.$ac_ext <<_ACEOF
29137 /* confdefs.h.  */
29138 _ACEOF
29139 cat confdefs.h >>conftest.$ac_ext
29140 cat >>conftest.$ac_ext <<_ACEOF
29141 /* end confdefs.h.  */
29142
29143 /* Override any gcc2 internal prototype to avoid an error.  */
29144 #ifdef __cplusplus
29145 extern "C"
29146 #endif
29147 /* We use char because int might match the return type of a gcc2
29148    builtin and then its argument prototype would still apply.  */
29149 char getpwnam ();
29150 int
29151 main ()
29152 {
29153 getpwnam ();
29154   ;
29155   return 0;
29156 }
29157 _ACEOF
29158 rm -f conftest.$ac_objext conftest$ac_exeext
29159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29160   (eval $ac_link) 2>conftest.er1
29161   ac_status=$?
29162   grep -v '^ *+' conftest.er1 >conftest.err
29163   rm -f conftest.er1
29164   cat conftest.err >&5
29165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166   (exit $ac_status); } &&
29167          { ac_try='test -z "$ac_c_werror_flag"
29168                          || test ! -s conftest.err'
29169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29170   (eval $ac_try) 2>&5
29171   ac_status=$?
29172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173   (exit $ac_status); }; } &&
29174          { ac_try='test -s conftest$ac_exeext'
29175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176   (eval $ac_try) 2>&5
29177   ac_status=$?
29178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179   (exit $ac_status); }; }; then
29180   ac_cv_lib_sun_getpwnam=yes
29181 else
29182   echo "$as_me: failed program was:" >&5
29183 sed 's/^/| /' conftest.$ac_ext >&5
29184
29185 ac_cv_lib_sun_getpwnam=no
29186 fi
29187 rm -f conftest.err conftest.$ac_objext \
29188       conftest$ac_exeext conftest.$ac_ext
29189 LIBS=$ac_check_lib_save_LIBS
29190 fi
29191 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29192 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
29193 if test $ac_cv_lib_sun_getpwnam = yes; then
29194   cat >>confdefs.h <<_ACEOF
29195 #define HAVE_LIBSUN 1
29196 _ACEOF
29197
29198   LIBS="-lsun $LIBS"
29199
29200 fi
29201
29202
29203
29204 for ac_header in zlib.h
29205 do
29206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29208   echo "$as_me:$LINENO: checking for $ac_header" >&5
29209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29211   echo $ECHO_N "(cached) $ECHO_C" >&6
29212 fi
29213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29215 else
29216   # Is the header compilable?
29217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29219 cat >conftest.$ac_ext <<_ACEOF
29220 /* confdefs.h.  */
29221 _ACEOF
29222 cat confdefs.h >>conftest.$ac_ext
29223 cat >>conftest.$ac_ext <<_ACEOF
29224 /* end confdefs.h.  */
29225 $ac_includes_default
29226 #include <$ac_header>
29227 _ACEOF
29228 rm -f conftest.$ac_objext
29229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29230   (eval $ac_compile) 2>conftest.er1
29231   ac_status=$?
29232   grep -v '^ *+' conftest.er1 >conftest.err
29233   rm -f conftest.er1
29234   cat conftest.err >&5
29235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236   (exit $ac_status); } &&
29237          { ac_try='test -z "$ac_c_werror_flag"
29238                          || test ! -s conftest.err'
29239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29240   (eval $ac_try) 2>&5
29241   ac_status=$?
29242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243   (exit $ac_status); }; } &&
29244          { ac_try='test -s conftest.$ac_objext'
29245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29246   (eval $ac_try) 2>&5
29247   ac_status=$?
29248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249   (exit $ac_status); }; }; then
29250   ac_header_compiler=yes
29251 else
29252   echo "$as_me: failed program was:" >&5
29253 sed 's/^/| /' conftest.$ac_ext >&5
29254
29255 ac_header_compiler=no
29256 fi
29257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29259 echo "${ECHO_T}$ac_header_compiler" >&6
29260
29261 # Is the header present?
29262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29264 cat >conftest.$ac_ext <<_ACEOF
29265 /* confdefs.h.  */
29266 _ACEOF
29267 cat confdefs.h >>conftest.$ac_ext
29268 cat >>conftest.$ac_ext <<_ACEOF
29269 /* end confdefs.h.  */
29270 #include <$ac_header>
29271 _ACEOF
29272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29273   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29274   ac_status=$?
29275   grep -v '^ *+' conftest.er1 >conftest.err
29276   rm -f conftest.er1
29277   cat conftest.err >&5
29278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279   (exit $ac_status); } >/dev/null; then
29280   if test -s conftest.err; then
29281     ac_cpp_err=$ac_c_preproc_warn_flag
29282     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29283   else
29284     ac_cpp_err=
29285   fi
29286 else
29287   ac_cpp_err=yes
29288 fi
29289 if test -z "$ac_cpp_err"; then
29290   ac_header_preproc=yes
29291 else
29292   echo "$as_me: failed program was:" >&5
29293 sed 's/^/| /' conftest.$ac_ext >&5
29294
29295   ac_header_preproc=no
29296 fi
29297 rm -f conftest.err conftest.$ac_ext
29298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29299 echo "${ECHO_T}$ac_header_preproc" >&6
29300
29301 # So?  What about this header?
29302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29303   yes:no: )
29304     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29308     ac_header_preproc=yes
29309     ;;
29310   no:yes:* )
29311     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29313     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29314 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29315     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29317     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29318 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29319     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29321     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29323     (
29324       cat <<\_ASBOX
29325 ## ------------------------------------------ ##
29326 ## Report this to the AC_PACKAGE_NAME lists.  ##
29327 ## ------------------------------------------ ##
29328 _ASBOX
29329     ) |
29330       sed "s/^/$as_me: WARNING:     /" >&2
29331     ;;
29332 esac
29333 echo "$as_me:$LINENO: checking for $ac_header" >&5
29334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29336   echo $ECHO_N "(cached) $ECHO_C" >&6
29337 else
29338   eval "$as_ac_Header=\$ac_header_preproc"
29339 fi
29340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29342
29343 fi
29344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29345   cat >>confdefs.h <<_ACEOF
29346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29347 _ACEOF
29348
29349 fi
29350
29351 done
29352
29353 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29354 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
29355 if test "${ac_cv_lib_z_deflate+set}" = set; then
29356   echo $ECHO_N "(cached) $ECHO_C" >&6
29357 else
29358   ac_check_lib_save_LIBS=$LIBS
29359 LIBS="-lz  $LIBS"
29360 cat >conftest.$ac_ext <<_ACEOF
29361 /* confdefs.h.  */
29362 _ACEOF
29363 cat confdefs.h >>conftest.$ac_ext
29364 cat >>conftest.$ac_ext <<_ACEOF
29365 /* end confdefs.h.  */
29366
29367 /* Override any gcc2 internal prototype to avoid an error.  */
29368 #ifdef __cplusplus
29369 extern "C"
29370 #endif
29371 /* We use char because int might match the return type of a gcc2
29372    builtin and then its argument prototype would still apply.  */
29373 char deflate ();
29374 int
29375 main ()
29376 {
29377 deflate ();
29378   ;
29379   return 0;
29380 }
29381 _ACEOF
29382 rm -f conftest.$ac_objext conftest$ac_exeext
29383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29384   (eval $ac_link) 2>conftest.er1
29385   ac_status=$?
29386   grep -v '^ *+' conftest.er1 >conftest.err
29387   rm -f conftest.er1
29388   cat conftest.err >&5
29389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390   (exit $ac_status); } &&
29391          { ac_try='test -z "$ac_c_werror_flag"
29392                          || test ! -s conftest.err'
29393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394   (eval $ac_try) 2>&5
29395   ac_status=$?
29396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397   (exit $ac_status); }; } &&
29398          { ac_try='test -s conftest$ac_exeext'
29399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400   (eval $ac_try) 2>&5
29401   ac_status=$?
29402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403   (exit $ac_status); }; }; then
29404   ac_cv_lib_z_deflate=yes
29405 else
29406   echo "$as_me: failed program was:" >&5
29407 sed 's/^/| /' conftest.$ac_ext >&5
29408
29409 ac_cv_lib_z_deflate=no
29410 fi
29411 rm -f conftest.err conftest.$ac_objext \
29412       conftest$ac_exeext conftest.$ac_ext
29413 LIBS=$ac_check_lib_save_LIBS
29414 fi
29415 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29416 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
29417 if test $ac_cv_lib_z_deflate = yes; then
29418   FDLIBS="-lz"
29419 fi
29420
29421 have_zlib=no
29422 if test x$FDLIBS = x-lz; then
29423   cat >>confdefs.h <<\_ACEOF
29424 #define HAVE_LIBZ 1
29425 _ACEOF
29426
29427   have_zlib=yes
29428 fi
29429
29430 #
29431 # Check for ACL libraries
29432 #
29433 have_acl=no
29434 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29435   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29436 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29437 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29438   echo $ECHO_N "(cached) $ECHO_C" >&6
29439 fi
29440 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29441 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29442 else
29443   # Is the header compilable?
29444 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29445 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
29446 cat >conftest.$ac_ext <<_ACEOF
29447 /* confdefs.h.  */
29448 _ACEOF
29449 cat confdefs.h >>conftest.$ac_ext
29450 cat >>conftest.$ac_ext <<_ACEOF
29451 /* end confdefs.h.  */
29452 $ac_includes_default
29453 #include <sys/acl.h>
29454 _ACEOF
29455 rm -f conftest.$ac_objext
29456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29457   (eval $ac_compile) 2>conftest.er1
29458   ac_status=$?
29459   grep -v '^ *+' conftest.er1 >conftest.err
29460   rm -f conftest.er1
29461   cat conftest.err >&5
29462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463   (exit $ac_status); } &&
29464          { ac_try='test -z "$ac_c_werror_flag"
29465                          || test ! -s conftest.err'
29466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29467   (eval $ac_try) 2>&5
29468   ac_status=$?
29469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470   (exit $ac_status); }; } &&
29471          { ac_try='test -s conftest.$ac_objext'
29472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29473   (eval $ac_try) 2>&5
29474   ac_status=$?
29475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476   (exit $ac_status); }; }; then
29477   ac_header_compiler=yes
29478 else
29479   echo "$as_me: failed program was:" >&5
29480 sed 's/^/| /' conftest.$ac_ext >&5
29481
29482 ac_header_compiler=no
29483 fi
29484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29486 echo "${ECHO_T}$ac_header_compiler" >&6
29487
29488 # Is the header present?
29489 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29490 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29491 cat >conftest.$ac_ext <<_ACEOF
29492 /* confdefs.h.  */
29493 _ACEOF
29494 cat confdefs.h >>conftest.$ac_ext
29495 cat >>conftest.$ac_ext <<_ACEOF
29496 /* end confdefs.h.  */
29497 #include <sys/acl.h>
29498 _ACEOF
29499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29500   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29501   ac_status=$?
29502   grep -v '^ *+' conftest.er1 >conftest.err
29503   rm -f conftest.er1
29504   cat conftest.err >&5
29505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506   (exit $ac_status); } >/dev/null; then
29507   if test -s conftest.err; then
29508     ac_cpp_err=$ac_c_preproc_warn_flag
29509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29510   else
29511     ac_cpp_err=
29512   fi
29513 else
29514   ac_cpp_err=yes
29515 fi
29516 if test -z "$ac_cpp_err"; then
29517   ac_header_preproc=yes
29518 else
29519   echo "$as_me: failed program was:" >&5
29520 sed 's/^/| /' conftest.$ac_ext >&5
29521
29522   ac_header_preproc=no
29523 fi
29524 rm -f conftest.err conftest.$ac_ext
29525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29526 echo "${ECHO_T}$ac_header_preproc" >&6
29527
29528 # So?  What about this header?
29529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29530   yes:no: )
29531     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29532 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29533     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29534 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29535     ac_header_preproc=yes
29536     ;;
29537   no:yes:* )
29538     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29539 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29540     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29541 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29542     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29543 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29544     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29545 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29546     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29547 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29548     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29549 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29550     (
29551       cat <<\_ASBOX
29552 ## ------------------------------------------ ##
29553 ## Report this to the AC_PACKAGE_NAME lists.  ##
29554 ## ------------------------------------------ ##
29555 _ASBOX
29556     ) |
29557       sed "s/^/$as_me: WARNING:     /" >&2
29558     ;;
29559 esac
29560 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29561 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29562 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29563   echo $ECHO_N "(cached) $ECHO_C" >&6
29564 else
29565   ac_cv_header_sys_acl_h=$ac_header_preproc
29566 fi
29567 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29568 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29569
29570 fi
29571
29572
29573 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29574 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29575 if test "${ac_cv_func_acl_get_file+set}" = set; then
29576   echo $ECHO_N "(cached) $ECHO_C" >&6
29577 else
29578   cat >conftest.$ac_ext <<_ACEOF
29579 /* confdefs.h.  */
29580 _ACEOF
29581 cat confdefs.h >>conftest.$ac_ext
29582 cat >>conftest.$ac_ext <<_ACEOF
29583 /* end confdefs.h.  */
29584 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29586 #define acl_get_file innocuous_acl_get_file
29587
29588 /* System header to define __stub macros and hopefully few prototypes,
29589     which can conflict with char acl_get_file (); below.
29590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29591     <limits.h> exists even on freestanding compilers.  */
29592
29593 #ifdef __STDC__
29594 # include <limits.h>
29595 #else
29596 # include <assert.h>
29597 #endif
29598
29599 #undef acl_get_file
29600
29601 /* Override any gcc2 internal prototype to avoid an error.  */
29602 #ifdef __cplusplus
29603 extern "C"
29604 {
29605 #endif
29606 /* We use char because int might match the return type of a gcc2
29607    builtin and then its argument prototype would still apply.  */
29608 char acl_get_file ();
29609 /* The GNU C library defines this for functions which it implements
29610     to always fail with ENOSYS.  Some functions are actually named
29611     something starting with __ and the normal name is an alias.  */
29612 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29613 choke me
29614 #else
29615 char (*f) () = acl_get_file;
29616 #endif
29617 #ifdef __cplusplus
29618 }
29619 #endif
29620
29621 int
29622 main ()
29623 {
29624 return f != acl_get_file;
29625   ;
29626   return 0;
29627 }
29628 _ACEOF
29629 rm -f conftest.$ac_objext conftest$ac_exeext
29630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29631   (eval $ac_link) 2>conftest.er1
29632   ac_status=$?
29633   grep -v '^ *+' conftest.er1 >conftest.err
29634   rm -f conftest.er1
29635   cat conftest.err >&5
29636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637   (exit $ac_status); } &&
29638          { ac_try='test -z "$ac_c_werror_flag"
29639                          || test ! -s conftest.err'
29640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29641   (eval $ac_try) 2>&5
29642   ac_status=$?
29643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644   (exit $ac_status); }; } &&
29645          { ac_try='test -s conftest$ac_exeext'
29646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29647   (eval $ac_try) 2>&5
29648   ac_status=$?
29649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650   (exit $ac_status); }; }; then
29651   ac_cv_func_acl_get_file=yes
29652 else
29653   echo "$as_me: failed program was:" >&5
29654 sed 's/^/| /' conftest.$ac_ext >&5
29655
29656 ac_cv_func_acl_get_file=no
29657 fi
29658 rm -f conftest.err conftest.$ac_objext \
29659       conftest$ac_exeext conftest.$ac_ext
29660 fi
29661 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29662 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29663 if test $ac_cv_func_acl_get_file = yes; then
29664   have_acl=yes
29665 else
29666   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29667 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29668 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29669   echo $ECHO_N "(cached) $ECHO_C" >&6
29670 else
29671   ac_check_lib_save_LIBS=$LIBS
29672 LIBS="-lacl  $LIBS"
29673 cat >conftest.$ac_ext <<_ACEOF
29674 /* confdefs.h.  */
29675 _ACEOF
29676 cat confdefs.h >>conftest.$ac_ext
29677 cat >>conftest.$ac_ext <<_ACEOF
29678 /* end confdefs.h.  */
29679
29680 /* Override any gcc2 internal prototype to avoid an error.  */
29681 #ifdef __cplusplus
29682 extern "C"
29683 #endif
29684 /* We use char because int might match the return type of a gcc2
29685    builtin and then its argument prototype would still apply.  */
29686 char acl_get_file ();
29687 int
29688 main ()
29689 {
29690 acl_get_file ();
29691   ;
29692   return 0;
29693 }
29694 _ACEOF
29695 rm -f conftest.$ac_objext conftest$ac_exeext
29696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29697   (eval $ac_link) 2>conftest.er1
29698   ac_status=$?
29699   grep -v '^ *+' conftest.er1 >conftest.err
29700   rm -f conftest.er1
29701   cat conftest.err >&5
29702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703   (exit $ac_status); } &&
29704          { ac_try='test -z "$ac_c_werror_flag"
29705                          || test ! -s conftest.err'
29706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29707   (eval $ac_try) 2>&5
29708   ac_status=$?
29709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710   (exit $ac_status); }; } &&
29711          { ac_try='test -s conftest$ac_exeext'
29712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29713   (eval $ac_try) 2>&5
29714   ac_status=$?
29715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716   (exit $ac_status); }; }; then
29717   ac_cv_lib_acl_acl_get_file=yes
29718 else
29719   echo "$as_me: failed program was:" >&5
29720 sed 's/^/| /' conftest.$ac_ext >&5
29721
29722 ac_cv_lib_acl_acl_get_file=no
29723 fi
29724 rm -f conftest.err conftest.$ac_objext \
29725       conftest$ac_exeext conftest.$ac_ext
29726 LIBS=$ac_check_lib_save_LIBS
29727 fi
29728 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29729 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29730 if test $ac_cv_lib_acl_acl_get_file = yes; then
29731   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29732 else
29733   echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29734 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29735 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29736   echo $ECHO_N "(cached) $ECHO_C" >&6
29737 else
29738   ac_check_lib_save_LIBS=$LIBS
29739 LIBS="-lsec  $LIBS"
29740 cat >conftest.$ac_ext <<_ACEOF
29741 /* confdefs.h.  */
29742 _ACEOF
29743 cat confdefs.h >>conftest.$ac_ext
29744 cat >>conftest.$ac_ext <<_ACEOF
29745 /* end confdefs.h.  */
29746
29747 /* Override any gcc2 internal prototype to avoid an error.  */
29748 #ifdef __cplusplus
29749 extern "C"
29750 #endif
29751 /* We use char because int might match the return type of a gcc2
29752    builtin and then its argument prototype would still apply.  */
29753 char acltotext ();
29754 int
29755 main ()
29756 {
29757 acltotext ();
29758   ;
29759   return 0;
29760 }
29761 _ACEOF
29762 rm -f conftest.$ac_objext conftest$ac_exeext
29763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29764   (eval $ac_link) 2>conftest.er1
29765   ac_status=$?
29766   grep -v '^ *+' conftest.er1 >conftest.err
29767   rm -f conftest.er1
29768   cat conftest.err >&5
29769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770   (exit $ac_status); } &&
29771          { ac_try='test -z "$ac_c_werror_flag"
29772                          || test ! -s conftest.err'
29773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29774   (eval $ac_try) 2>&5
29775   ac_status=$?
29776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777   (exit $ac_status); }; } &&
29778          { ac_try='test -s conftest$ac_exeext'
29779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29780   (eval $ac_try) 2>&5
29781   ac_status=$?
29782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783   (exit $ac_status); }; }; then
29784   ac_cv_lib_sec_acltotext=yes
29785 else
29786   echo "$as_me: failed program was:" >&5
29787 sed 's/^/| /' conftest.$ac_ext >&5
29788
29789 ac_cv_lib_sec_acltotext=no
29790 fi
29791 rm -f conftest.err conftest.$ac_objext \
29792       conftest$ac_exeext conftest.$ac_ext
29793 LIBS=$ac_check_lib_save_LIBS
29794 fi
29795 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29796 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29797 if test $ac_cv_lib_sec_acltotext = yes; then
29798   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29799 fi
29800
29801
29802 fi
29803
29804
29805 fi
29806
29807 if test $have_acl = yes; then
29808    cat >>confdefs.h <<\_ACEOF
29809 #define HAVE_ACL 1
29810 _ACEOF
29811
29812 fi
29813
29814 PTHREAD_LIB=""
29815 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29816 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29817 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29818   echo $ECHO_N "(cached) $ECHO_C" >&6
29819 else
29820   ac_check_lib_save_LIBS=$LIBS
29821 LIBS="-lpthread  $LIBS"
29822 cat >conftest.$ac_ext <<_ACEOF
29823 /* confdefs.h.  */
29824 _ACEOF
29825 cat confdefs.h >>conftest.$ac_ext
29826 cat >>conftest.$ac_ext <<_ACEOF
29827 /* end confdefs.h.  */
29828
29829 /* Override any gcc2 internal prototype to avoid an error.  */
29830 #ifdef __cplusplus
29831 extern "C"
29832 #endif
29833 /* We use char because int might match the return type of a gcc2
29834    builtin and then its argument prototype would still apply.  */
29835 char pthread_create ();
29836 int
29837 main ()
29838 {
29839 pthread_create ();
29840   ;
29841   return 0;
29842 }
29843 _ACEOF
29844 rm -f conftest.$ac_objext conftest$ac_exeext
29845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29846   (eval $ac_link) 2>conftest.er1
29847   ac_status=$?
29848   grep -v '^ *+' conftest.er1 >conftest.err
29849   rm -f conftest.er1
29850   cat conftest.err >&5
29851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852   (exit $ac_status); } &&
29853          { ac_try='test -z "$ac_c_werror_flag"
29854                          || test ! -s conftest.err'
29855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29856   (eval $ac_try) 2>&5
29857   ac_status=$?
29858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859   (exit $ac_status); }; } &&
29860          { ac_try='test -s conftest$ac_exeext'
29861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29862   (eval $ac_try) 2>&5
29863   ac_status=$?
29864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865   (exit $ac_status); }; }; then
29866   ac_cv_lib_pthread_pthread_create=yes
29867 else
29868   echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29870
29871 ac_cv_lib_pthread_pthread_create=no
29872 fi
29873 rm -f conftest.err conftest.$ac_objext \
29874       conftest$ac_exeext conftest.$ac_ext
29875 LIBS=$ac_check_lib_save_LIBS
29876 fi
29877 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29878 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29879 if test $ac_cv_lib_pthread_pthread_create = yes; then
29880   PTHREAD_LIB="-lpthread"
29881 else
29882   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29883 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29884 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29885   echo $ECHO_N "(cached) $ECHO_C" >&6
29886 else
29887   ac_check_lib_save_LIBS=$LIBS
29888 LIBS="-lpthreads  $LIBS"
29889 cat >conftest.$ac_ext <<_ACEOF
29890 /* confdefs.h.  */
29891 _ACEOF
29892 cat confdefs.h >>conftest.$ac_ext
29893 cat >>conftest.$ac_ext <<_ACEOF
29894 /* end confdefs.h.  */
29895
29896 /* Override any gcc2 internal prototype to avoid an error.  */
29897 #ifdef __cplusplus
29898 extern "C"
29899 #endif
29900 /* We use char because int might match the return type of a gcc2
29901    builtin and then its argument prototype would still apply.  */
29902 char pthread_create ();
29903 int
29904 main ()
29905 {
29906 pthread_create ();
29907   ;
29908   return 0;
29909 }
29910 _ACEOF
29911 rm -f conftest.$ac_objext conftest$ac_exeext
29912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29913   (eval $ac_link) 2>conftest.er1
29914   ac_status=$?
29915   grep -v '^ *+' conftest.er1 >conftest.err
29916   rm -f conftest.er1
29917   cat conftest.err >&5
29918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919   (exit $ac_status); } &&
29920          { ac_try='test -z "$ac_c_werror_flag"
29921                          || test ! -s conftest.err'
29922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29923   (eval $ac_try) 2>&5
29924   ac_status=$?
29925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29926   (exit $ac_status); }; } &&
29927          { ac_try='test -s conftest$ac_exeext'
29928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29929   (eval $ac_try) 2>&5
29930   ac_status=$?
29931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932   (exit $ac_status); }; }; then
29933   ac_cv_lib_pthreads_pthread_create=yes
29934 else
29935   echo "$as_me: failed program was:" >&5
29936 sed 's/^/| /' conftest.$ac_ext >&5
29937
29938 ac_cv_lib_pthreads_pthread_create=no
29939 fi
29940 rm -f conftest.err conftest.$ac_objext \
29941       conftest$ac_exeext conftest.$ac_ext
29942 LIBS=$ac_check_lib_save_LIBS
29943 fi
29944 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29945 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29946 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29947   PTHREAD_LIB="-lpthreads"
29948 else
29949   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29950 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29951 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29952   echo $ECHO_N "(cached) $ECHO_C" >&6
29953 else
29954   ac_check_lib_save_LIBS=$LIBS
29955 LIBS="-lc_r  $LIBS"
29956 cat >conftest.$ac_ext <<_ACEOF
29957 /* confdefs.h.  */
29958 _ACEOF
29959 cat confdefs.h >>conftest.$ac_ext
29960 cat >>conftest.$ac_ext <<_ACEOF
29961 /* end confdefs.h.  */
29962
29963 /* Override any gcc2 internal prototype to avoid an error.  */
29964 #ifdef __cplusplus
29965 extern "C"
29966 #endif
29967 /* We use char because int might match the return type of a gcc2
29968    builtin and then its argument prototype would still apply.  */
29969 char pthread_create ();
29970 int
29971 main ()
29972 {
29973 pthread_create ();
29974   ;
29975   return 0;
29976 }
29977 _ACEOF
29978 rm -f conftest.$ac_objext conftest$ac_exeext
29979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29980   (eval $ac_link) 2>conftest.er1
29981   ac_status=$?
29982   grep -v '^ *+' conftest.er1 >conftest.err
29983   rm -f conftest.er1
29984   cat conftest.err >&5
29985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986   (exit $ac_status); } &&
29987          { ac_try='test -z "$ac_c_werror_flag"
29988                          || test ! -s conftest.err'
29989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29990   (eval $ac_try) 2>&5
29991   ac_status=$?
29992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993   (exit $ac_status); }; } &&
29994          { ac_try='test -s conftest$ac_exeext'
29995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29996   (eval $ac_try) 2>&5
29997   ac_status=$?
29998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999   (exit $ac_status); }; }; then
30000   ac_cv_lib_c_r_pthread_create=yes
30001 else
30002   echo "$as_me: failed program was:" >&5
30003 sed 's/^/| /' conftest.$ac_ext >&5
30004
30005 ac_cv_lib_c_r_pthread_create=no
30006 fi
30007 rm -f conftest.err conftest.$ac_objext \
30008       conftest$ac_exeext conftest.$ac_ext
30009 LIBS=$ac_check_lib_save_LIBS
30010 fi
30011 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30012 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
30013 if test $ac_cv_lib_c_r_pthread_create = yes; then
30014   PTHREAD_LIB="-lc_r"
30015 else
30016   echo "$as_me:$LINENO: checking for pthread_create" >&5
30017 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
30018 if test "${ac_cv_func_pthread_create+set}" = set; then
30019   echo $ECHO_N "(cached) $ECHO_C" >&6
30020 else
30021   cat >conftest.$ac_ext <<_ACEOF
30022 /* confdefs.h.  */
30023 _ACEOF
30024 cat confdefs.h >>conftest.$ac_ext
30025 cat >>conftest.$ac_ext <<_ACEOF
30026 /* end confdefs.h.  */
30027 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30029 #define pthread_create innocuous_pthread_create
30030
30031 /* System header to define __stub macros and hopefully few prototypes,
30032     which can conflict with char pthread_create (); below.
30033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30034     <limits.h> exists even on freestanding compilers.  */
30035
30036 #ifdef __STDC__
30037 # include <limits.h>
30038 #else
30039 # include <assert.h>
30040 #endif
30041
30042 #undef pthread_create
30043
30044 /* Override any gcc2 internal prototype to avoid an error.  */
30045 #ifdef __cplusplus
30046 extern "C"
30047 {
30048 #endif
30049 /* We use char because int might match the return type of a gcc2
30050    builtin and then its argument prototype would still apply.  */
30051 char pthread_create ();
30052 /* The GNU C library defines this for functions which it implements
30053     to always fail with ENOSYS.  Some functions are actually named
30054     something starting with __ and the normal name is an alias.  */
30055 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
30056 choke me
30057 #else
30058 char (*f) () = pthread_create;
30059 #endif
30060 #ifdef __cplusplus
30061 }
30062 #endif
30063
30064 int
30065 main ()
30066 {
30067 return f != pthread_create;
30068   ;
30069   return 0;
30070 }
30071 _ACEOF
30072 rm -f conftest.$ac_objext conftest$ac_exeext
30073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30074   (eval $ac_link) 2>conftest.er1
30075   ac_status=$?
30076   grep -v '^ *+' conftest.er1 >conftest.err
30077   rm -f conftest.er1
30078   cat conftest.err >&5
30079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080   (exit $ac_status); } &&
30081          { ac_try='test -z "$ac_c_werror_flag"
30082                          || test ! -s conftest.err'
30083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30084   (eval $ac_try) 2>&5
30085   ac_status=$?
30086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087   (exit $ac_status); }; } &&
30088          { ac_try='test -s conftest$ac_exeext'
30089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30090   (eval $ac_try) 2>&5
30091   ac_status=$?
30092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093   (exit $ac_status); }; }; then
30094   ac_cv_func_pthread_create=yes
30095 else
30096   echo "$as_me: failed program was:" >&5
30097 sed 's/^/| /' conftest.$ac_ext >&5
30098
30099 ac_cv_func_pthread_create=no
30100 fi
30101 rm -f conftest.err conftest.$ac_objext \
30102       conftest$ac_exeext conftest.$ac_ext
30103 fi
30104 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30105 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
30106
30107
30108 fi
30109
30110
30111 fi
30112
30113
30114 fi
30115
30116
30117
30118 cat >>confdefs.h <<\_ACEOF
30119 #define FDLIBS 1
30120 _ACEOF
30121
30122
30123
30124 CFLAGS=${CFLAGS--O}
30125
30126 if test x$have_gcc = xyes ; then
30127    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30128    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30129 fi
30130 LDFLAGS=${LDFLAGS--O}
30131 DB_LIBS="${SQL_LFLAGS}"
30132 CPPFLAGS="$CPPFLAGS"
30133 CFLAGS="$CFLAGS"
30134
30135
30136
30137
30138
30139
30140
30141
30142
30143
30144
30145
30146
30147
30148
30149
30150 OBJLIST=
30151
30152
30153 lld="lld"
30154 llu="llu"
30155
30156 WCFLAGS=
30157 WLDFLAGS=
30158
30159 #
30160 # Finally we set appropriate distribution specific
30161 #  variables and defaults
30162 #
30163 # PFILES are platform specific files
30164 PFILES="platforms/Makefile"
30165 PSCMD="ps -e"
30166 WIN32=
30167 MACOSX=
30168 hostname=`uname -n | cut -d '.' -f 1`
30169 if test x${hostname} = x ; then
30170   hostname="localhost"
30171 fi
30172 case "$DISTNAME" in
30173 aix)
30174         DISTVER=`uname -r`
30175         PSCMD="ps -e -o pid,comm"
30176         PFILES="${PFILES} \
30177            platforms/aix/Makefile"
30178         TAPEDRIVE="/dev/rmt0.1"
30179   ;;
30180 alpha)
30181         DISTVER=`uname -r`
30182         PTHREAD_LIB="-lpthread -lexc"
30183         if test "${CC}" = "gcc" ; then
30184            lld="lld"
30185            llu="llu"
30186         else
30187            lld="ld"
30188            llu="lu"
30189         fi
30190         TAPEDRIVE="/dev/nrmt0"
30191   ;;
30192 bsdi)
30193         DISTVER=`uname -a |awk '{print $3}'`
30194         TAPEDRIVE="/dev/nrmt0"
30195         PTHREAD_LIB="-pthread"
30196         CFLAGS="${CFLAGS} -pthread"
30197         PSCMD="ps -ax -o pid,command"
30198         lld="qd"
30199         llu="qu"
30200         PFILES="${PFILES} \
30201             platforms/bsdi/Makefile \
30202             platforms/bsdi/bacula-fd \
30203             platforms/bsdi/bacula-sd \
30204             platforms/bsdi/bacula-dir"
30205         largefile_support="yes"
30206   ;;
30207 cygwin)
30208         DISTVER=`uname -a |awk '{print $3}'`
30209         TAPEDRIVE="/dev/nrst0"
30210         WIN32=win32
30211         WCFLAGS="-mwindows"
30212         WLDFLAGS="-mwindows"
30213   ;;
30214 darwin)
30215         DISTVER=`uname -r`
30216         TAPEDRIVE="/dev/nst0"
30217         PSCMD="ps -e -o pid,command"
30218         MACOSX=macosx
30219         PFILES="${PFILES} \
30220            platforms/darwin/Makefile"
30221   ;;
30222 debian)
30223         DISTVER=`cat /etc/debian_version`
30224         TAPEDRIVE="/dev/nrst0"
30225         PSCMD="ps -e -o pid,command"
30226   ;;
30227 freebsd)
30228         DISTVER=`uname -a |awk '{print $3}'`
30229         VER=`echo $DISTVER | cut -c 1`
30230         if test x$VER = x4 ; then
30231            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30232            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30233         fi
30234         lld="qd"
30235         llu="qu"
30236         TAPEDRIVE="/dev/nrsa0"
30237         PSCMD="ps -ax -o pid,command"
30238         PFILES="${PFILES} \
30239             platforms/freebsd/Makefile \
30240             platforms/freebsd/bacula-fd \
30241             platforms/freebsd/bacula-sd \
30242             platforms/freebsd/bacula-dir"
30243         largefile_support="yes"
30244   ;;
30245 hpux)
30246         PSCMD="UNIX95=1; ps -e -o pid,comm"
30247         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30248         DISTVER=`uname -r`
30249         TAPEDRIVE="/dev/rmt/0hnb"
30250         PTHREAD_LIB="-lpthread"
30251         cat >>confdefs.h <<\_ACEOF
30252 #define _INCLUDE_LONGLONG 1
30253 _ACEOF
30254
30255   ;;
30256 irix)
30257         DISTVER=`uname -r`
30258         TAPEDRIVE="/dev/rmt/0cbn"
30259         PSCMD="ps -e -o pid,comm"
30260         PFILES="${PFILES} \
30261             platforms/irix/Makefile \
30262             platforms/irix/bacula-fd \
30263             platforms/irix/bacula-sd \
30264             platforms/irix/bacula-dir"
30265   ;;
30266 netbsd)
30267         DISTVER=`uname -a |awk '{print $3}'`
30268         lld="qd"
30269         llu="qu"
30270         TAPEDRIVE="/dev/nrst0"
30271         PSCMD="ps -ax -o pid,command"
30272         PTHREAD_LIB="-pthread"
30273         CFLAGS="${CFLAGS} -pthread"
30274   ;;
30275 openbsd)
30276         DISTVER=`uname -a |awk '{print $3}'`
30277         lld="qd"
30278         llu="qu"
30279         TAPEDRIVE="/dev/nrst0"
30280         PSCMD="ps -ax -o pid,command"
30281         PTHREAD_LIB="-pthread"
30282         CFLAGS="${CFLAGS} -pthread"
30283         PFILES="${PFILES} \
30284             platforms/openbsd/Makefile \
30285             platforms/openbsd/bacula-fd \
30286             platforms/openbsd/bacula-sd \
30287             platforms/openbsd/bacula-dir"
30288   ;;
30289 redhat)
30290         if test -f /etc/whitebox-release ; then
30291            f=/etc/whitebox-release
30292         else
30293            f=/etc/redhat-release
30294         fi
30295         if test `cat $f | grep release |\
30296                    cut -f 3 -d ' '`x = "Enterprise"x ; then
30297            DISTVER="Enterprise "`cat $f | grep release |\
30298                     cut -f 6 -d ' '`
30299         else
30300             DISTVER=`cat /etc/redhat-release | grep release |\
30301                      cut -f 5 -d ' '`
30302         fi
30303         TAPEDRIVE="/dev/nst0"
30304         PSCMD="ps -e -o pid,command"
30305         PFILES="${PFILES} \
30306             platforms/redhat/Makefile \
30307             platforms/redhat/bacula-fd \
30308             platforms/redhat/bacula-sd \
30309             platforms/redhat/bacula-dir \
30310             platforms/redhat/bacula.spec \
30311             "
30312   ;;
30313 mandrake)
30314         DISTVER=`cat /etc/mandrake-release | grep release |\
30315            cut -f 5 -d ' '`
30316         TAPEDRIVE="/dev/nst0"
30317         PSCMD="ps -e -o pid,command"
30318         PFILES="${PFILES} \
30319             platforms/mandrake/Makefile \
30320             platforms/mandrake/bacula-fd \
30321             platforms/mandrake/bacula-sd \
30322             platforms/mandrake/bacula-dir \
30323             platforms/mandrake/bacula.spec \
30324             "
30325   ;;
30326 gentoo)
30327         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30328         TAPEDRIVE="/dev/nst0"
30329         PSCMD="ps -e -o pid,command"
30330         PFILES="${PFILES} \
30331             platforms/gentoo/Makefile \
30332          platforms/gentoo/bacula-init \
30333             platforms/gentoo/bacula-fd \
30334             platforms/gentoo/bacula-sd \
30335             platforms/gentoo/bacula-dir"
30336   ;;
30337 slackware)
30338         DISTVER=`cat /etc/slackware-version`
30339         TAPEDRIVE="/dev/nst0"
30340         PSCMD="ps -e -o pid,command"
30341         PFILES="${PFILES} \
30342             platforms/slackware/Makefile \
30343             platforms/slackware/rc.bacula-fd \
30344             platforms/slackware/rc.bacula-sd \
30345             platforms/slackware/rc.bacula-dir\
30346             platforms/slackware/functions.bacula"
30347   ;;
30348 solaris)
30349         DISTVER=`uname -r`
30350         TAPEDRIVE="/dev/rmt/0cbn"
30351         PSCMD="ps -e -o pid,comm"
30352         PFILES="${PFILES} \
30353             platforms/solaris/Makefile \
30354             platforms/solaris/bacula-fd \
30355             platforms/solaris/bacula-sd \
30356             platforms/solaris/bacula-dir"
30357         if test x$DISTVER = x5.6 ; then
30358             cat >>confdefs.h <<\_ACEOF
30359 #define HAVE_OLD_SOCKOPT 1
30360 _ACEOF
30361
30362         fi
30363         LIBS="$LIBS -lresolv"
30364   ;;
30365 suse)
30366         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30367             cut -f 3 -d ' '`
30368         TAPEDRIVE="/dev/nst0"
30369         PSCMD="ps -e -o pid,command"
30370         PFILES="${PFILES} \
30371             platforms/suse/Makefile \
30372             platforms/suse/bacula-fd \
30373             platforms/suse/bacula-sd \
30374             platforms/suse/bacula-dir \
30375             platforms/suse/bacula \
30376             platforms/suse/bacula.spec"
30377   ;;
30378 suse5)
30379         DISTNAME=suse
30380         DISTVER=5.x
30381         TAPEDRIVE="/dev/nst0"
30382         PSCMD="ps -e -o pid,command"
30383         PFILES="${PFILES} \
30384             platforms/suse/Makefile \
30385             platforms/suse/bacula-fd \
30386             platforms/suse/bacula-sd \
30387             platforms/suse/bacula-dir"
30388   ;;
30389 unknown)
30390         DISTVER=unknown
30391         TAPEDRIVE="/dev/nst0"
30392   ;;
30393 *)
30394   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30395   ;;
30396 esac
30397
30398
30399
30400 LIBS="$PTHREAD_LIB $LIBS"
30401
30402 cat >>confdefs.h <<_ACEOF
30403 #define lld "$lld"
30404 _ACEOF
30405
30406 cat >>confdefs.h <<_ACEOF
30407 #define llu "$llu"
30408 _ACEOF
30409
30410
30411
30412
30413
30414
30415
30416
30417 MCOMMON=./autoconf/Make.common
30418
30419
30420 if test "x${subsysdir}" = "x${sbindir}" ; then
30421    echo " "
30422    echo " "
30423    echo "You have set both --sbindir and --with-subsys-dir"
30424    echo "  equal to: ${subsysdir} "
30425    echo "This is not permitted. Please reconfigure."
30426    echo " "
30427    echo "Aborting configuration ..."
30428    echo " "
30429    echo " "
30430    exit 1
30431 fi
30432
30433                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       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/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator 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 scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-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/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in $PFILES"
30434           ac_config_commands="$ac_config_commands default"
30435 cat >confcache <<\_ACEOF
30436 # This file is a shell script that caches the results of configure
30437 # tests run on this system so they can be shared between configure
30438 # scripts and configure runs, see configure's option --config-cache.
30439 # It is not useful on other systems.  If it contains results you don't
30440 # want to keep, you may remove or edit it.
30441 #
30442 # config.status only pays attention to the cache file if you give it
30443 # the --recheck option to rerun configure.
30444 #
30445 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30446 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30447 # following values.
30448
30449 _ACEOF
30450
30451 # The following way of writing the cache mishandles newlines in values,
30452 # but we know of no workaround that is simple, portable, and efficient.
30453 # So, don't put newlines in cache variables' values.
30454 # Ultrix sh set writes to stderr and can't be redirected directly,
30455 # and sets the high bit in the cache file unless we assign to the vars.
30456 {
30457   (set) 2>&1 |
30458     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30459     *ac_space=\ *)
30460       # `set' does not quote correctly, so add quotes (double-quote
30461       # substitution turns \\\\ into \\, and sed turns \\ into \).
30462       sed -n \
30463         "s/'/'\\\\''/g;
30464           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30465       ;;
30466     *)
30467       # `set' quotes correctly as required by POSIX, so do not add quotes.
30468       sed -n \
30469         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30470       ;;
30471     esac;
30472 } |
30473   sed '
30474      t clear
30475      : clear
30476      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30477      t end
30478      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30479      : end' >>confcache
30480 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30481   if test -w $cache_file; then
30482     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30483     cat confcache >$cache_file
30484   else
30485     echo "not updating unwritable cache $cache_file"
30486   fi
30487 fi
30488 rm -f confcache
30489
30490 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30491 # Let make expand exec_prefix.
30492 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30493
30494 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30495 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30496 # trailing colons and then remove the whole line if VPATH becomes empty
30497 # (actually we leave an empty line to preserve line numbers).
30498 if test "x$srcdir" = x.; then
30499   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30500 s/:*\$(srcdir):*/:/;
30501 s/:*\${srcdir}:*/:/;
30502 s/:*@srcdir@:*/:/;
30503 s/^\([^=]*=[     ]*\):*/\1/;
30504 s/:*$//;
30505 s/^[^=]*=[       ]*$//;
30506 }'
30507 fi
30508
30509 DEFS=-DHAVE_CONFIG_H
30510
30511 ac_libobjs=
30512 ac_ltlibobjs=
30513 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30514   # 1. Remove the extension, and $U if already installed.
30515   ac_i=`echo "$ac_i" |
30516          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30517   # 2. Add them.
30518   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30519   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30520 done
30521 LIBOBJS=$ac_libobjs
30522
30523 LTLIBOBJS=$ac_ltlibobjs
30524
30525
30526
30527 : ${CONFIG_STATUS=./config.status}
30528 ac_clean_files_save=$ac_clean_files
30529 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30530 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30531 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30532 cat >$CONFIG_STATUS <<_ACEOF
30533 #! $SHELL
30534 # Generated by $as_me.
30535 # Run this file to recreate the current configuration.
30536 # Compiler output produced by configure, useful for debugging
30537 # configure, is in config.log if it exists.
30538
30539 debug=false
30540 ac_cs_recheck=false
30541 ac_cs_silent=false
30542 SHELL=\${CONFIG_SHELL-$SHELL}
30543 _ACEOF
30544
30545 cat >>$CONFIG_STATUS <<\_ACEOF
30546 ## --------------------- ##
30547 ## M4sh Initialization.  ##
30548 ## --------------------- ##
30549
30550 # Be Bourne compatible
30551 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30552   emulate sh
30553   NULLCMD=:
30554   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30555   # is contrary to our usage.  Disable this feature.
30556   alias -g '${1+"$@"}'='"$@"'
30557 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30558   set -o posix
30559 fi
30560 DUALCASE=1; export DUALCASE # for MKS sh
30561
30562 # Support unset when possible.
30563 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30564   as_unset=unset
30565 else
30566   as_unset=false
30567 fi
30568
30569
30570 # Work around bugs in pre-3.0 UWIN ksh.
30571 $as_unset ENV MAIL MAILPATH
30572 PS1='$ '
30573 PS2='> '
30574 PS4='+ '
30575
30576 # NLS nuisances.
30577 for as_var in \
30578   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30579   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30580   LC_TELEPHONE LC_TIME
30581 do
30582   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30583     eval $as_var=C; export $as_var
30584   else
30585     $as_unset $as_var
30586   fi
30587 done
30588
30589 # Required to use basename.
30590 if expr a : '\(a\)' >/dev/null 2>&1; then
30591   as_expr=expr
30592 else
30593   as_expr=false
30594 fi
30595
30596 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30597   as_basename=basename
30598 else
30599   as_basename=false
30600 fi
30601
30602
30603 # Name of the executable.
30604 as_me=`$as_basename "$0" ||
30605 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30606          X"$0" : 'X\(//\)$' \| \
30607          X"$0" : 'X\(/\)$' \| \
30608          .     : '\(.\)' 2>/dev/null ||
30609 echo X/"$0" |
30610     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30611           /^X\/\(\/\/\)$/{ s//\1/; q; }
30612           /^X\/\(\/\).*/{ s//\1/; q; }
30613           s/.*/./; q'`
30614
30615
30616 # PATH needs CR, and LINENO needs CR and PATH.
30617 # Avoid depending upon Character Ranges.
30618 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30619 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30620 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30621 as_cr_digits='0123456789'
30622 as_cr_alnum=$as_cr_Letters$as_cr_digits
30623
30624 # The user is always right.
30625 if test "${PATH_SEPARATOR+set}" != set; then
30626   echo "#! /bin/sh" >conf$$.sh
30627   echo  "exit 0"   >>conf$$.sh
30628   chmod +x conf$$.sh
30629   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30630     PATH_SEPARATOR=';'
30631   else
30632     PATH_SEPARATOR=:
30633   fi
30634   rm -f conf$$.sh
30635 fi
30636
30637
30638   as_lineno_1=$LINENO
30639   as_lineno_2=$LINENO
30640   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30641   test "x$as_lineno_1" != "x$as_lineno_2" &&
30642   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30643   # Find who we are.  Look in the path if we contain no path at all
30644   # relative or not.
30645   case $0 in
30646     *[\\/]* ) as_myself=$0 ;;
30647     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30648 for as_dir in $PATH
30649 do
30650   IFS=$as_save_IFS
30651   test -z "$as_dir" && as_dir=.
30652   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30653 done
30654
30655        ;;
30656   esac
30657   # We did not find ourselves, most probably we were run as `sh COMMAND'
30658   # in which case we are not to be found in the path.
30659   if test "x$as_myself" = x; then
30660     as_myself=$0
30661   fi
30662   if test ! -f "$as_myself"; then
30663     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30664 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30665    { (exit 1); exit 1; }; }
30666   fi
30667   case $CONFIG_SHELL in
30668   '')
30669     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30670 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30671 do
30672   IFS=$as_save_IFS
30673   test -z "$as_dir" && as_dir=.
30674   for as_base in sh bash ksh sh5; do
30675          case $as_dir in
30676          /*)
30677            if ("$as_dir/$as_base" -c '
30678   as_lineno_1=$LINENO
30679   as_lineno_2=$LINENO
30680   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30681   test "x$as_lineno_1" != "x$as_lineno_2" &&
30682   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30683              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30684              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30685              CONFIG_SHELL=$as_dir/$as_base
30686              export CONFIG_SHELL
30687              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30688            fi;;
30689          esac
30690        done
30691 done
30692 ;;
30693   esac
30694
30695   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30696   # uniformly replaced by the line number.  The first 'sed' inserts a
30697   # line-number line before each line; the second 'sed' does the real
30698   # work.  The second script uses 'N' to pair each line-number line
30699   # with the numbered line, and appends trailing '-' during
30700   # substitution so that $LINENO is not a special case at line end.
30701   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30702   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30703   sed '=' <$as_myself |
30704     sed '
30705       N
30706       s,$,-,
30707       : loop
30708       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30709       t loop
30710       s,-$,,
30711       s,^['$as_cr_digits']*\n,,
30712     ' >$as_me.lineno &&
30713   chmod +x $as_me.lineno ||
30714     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30715 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30716    { (exit 1); exit 1; }; }
30717
30718   # Don't try to exec as it changes $[0], causing all sort of problems
30719   # (the dirname of $[0] is not the place where we might find the
30720   # original and so on.  Autoconf is especially sensible to this).
30721   . ./$as_me.lineno
30722   # Exit status is that of the last command.
30723   exit
30724 }
30725
30726
30727 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30728   *c*,-n*) ECHO_N= ECHO_C='
30729 ' ECHO_T='      ' ;;
30730   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30731   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30732 esac
30733
30734 if expr a : '\(a\)' >/dev/null 2>&1; then
30735   as_expr=expr
30736 else
30737   as_expr=false
30738 fi
30739
30740 rm -f conf$$ conf$$.exe conf$$.file
30741 echo >conf$$.file
30742 if ln -s conf$$.file conf$$ 2>/dev/null; then
30743   # We could just check for DJGPP; but this test a) works b) is more generic
30744   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30745   if test -f conf$$.exe; then
30746     # Don't use ln at all; we don't have any links
30747     as_ln_s='cp -p'
30748   else
30749     as_ln_s='ln -s'
30750   fi
30751 elif ln conf$$.file conf$$ 2>/dev/null; then
30752   as_ln_s=ln
30753 else
30754   as_ln_s='cp -p'
30755 fi
30756 rm -f conf$$ conf$$.exe conf$$.file
30757
30758 if mkdir -p . 2>/dev/null; then
30759   as_mkdir_p=:
30760 else
30761   test -d ./-p && rmdir ./-p
30762   as_mkdir_p=false
30763 fi
30764
30765 as_executable_p="test -f"
30766
30767 # Sed expression to map a string onto a valid CPP name.
30768 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30769
30770 # Sed expression to map a string onto a valid variable name.
30771 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30772
30773
30774 # IFS
30775 # We need space, tab and new line, in precisely that order.
30776 as_nl='
30777 '
30778 IFS="   $as_nl"
30779
30780 # CDPATH.
30781 $as_unset CDPATH
30782
30783 exec 6>&1
30784
30785 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30786 # report actual input values of CONFIG_FILES etc. instead of their
30787 # values after options handling.  Logging --version etc. is OK.
30788 exec 5>>config.log
30789 {
30790   echo
30791   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30792 ## Running $as_me. ##
30793 _ASBOX
30794 } >&5
30795 cat >&5 <<_CSEOF
30796
30797 This file was extended by $as_me, which was
30798 generated by GNU Autoconf 2.59.  Invocation command line was
30799
30800   CONFIG_FILES    = $CONFIG_FILES
30801   CONFIG_HEADERS  = $CONFIG_HEADERS
30802   CONFIG_LINKS    = $CONFIG_LINKS
30803   CONFIG_COMMANDS = $CONFIG_COMMANDS
30804   $ $0 $@
30805
30806 _CSEOF
30807 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30808 echo >&5
30809 _ACEOF
30810
30811 # Files that config.status was made for.
30812 if test -n "$ac_config_files"; then
30813   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30814 fi
30815
30816 if test -n "$ac_config_headers"; then
30817   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30818 fi
30819
30820 if test -n "$ac_config_links"; then
30821   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30822 fi
30823
30824 if test -n "$ac_config_commands"; then
30825   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30826 fi
30827
30828 cat >>$CONFIG_STATUS <<\_ACEOF
30829
30830 ac_cs_usage="\
30831 \`$as_me' instantiates files from templates according to the
30832 current configuration.
30833
30834 Usage: $0 [OPTIONS] [FILE]...
30835
30836   -h, --help       print this help, then exit
30837   -V, --version    print version number, then exit
30838   -q, --quiet      do not print progress messages
30839   -d, --debug      don't remove temporary files
30840       --recheck    update $as_me by reconfiguring in the same conditions
30841   --file=FILE[:TEMPLATE]
30842                    instantiate the configuration file FILE
30843   --header=FILE[:TEMPLATE]
30844                    instantiate the configuration header FILE
30845
30846 Configuration files:
30847 $config_files
30848
30849 Configuration headers:
30850 $config_headers
30851
30852 Configuration commands:
30853 $config_commands
30854
30855 Report bugs to <bug-autoconf@gnu.org>."
30856 _ACEOF
30857
30858 cat >>$CONFIG_STATUS <<_ACEOF
30859 ac_cs_version="\\
30860 config.status
30861 configured by $0, generated by GNU Autoconf 2.59,
30862   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30863
30864 Copyright (C) 2003 Free Software Foundation, Inc.
30865 This config.status script is free software; the Free Software Foundation
30866 gives unlimited permission to copy, distribute and modify it."
30867 srcdir=$srcdir
30868 INSTALL="$INSTALL"
30869 _ACEOF
30870
30871 cat >>$CONFIG_STATUS <<\_ACEOF
30872 # If no file are specified by the user, then we need to provide default
30873 # value.  By we need to know if files were specified by the user.
30874 ac_need_defaults=:
30875 while test $# != 0
30876 do
30877   case $1 in
30878   --*=*)
30879     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30880     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30881     ac_shift=:
30882     ;;
30883   -*)
30884     ac_option=$1
30885     ac_optarg=$2
30886     ac_shift=shift
30887     ;;
30888   *) # This is not an option, so the user has probably given explicit
30889      # arguments.
30890      ac_option=$1
30891      ac_need_defaults=false;;
30892   esac
30893
30894   case $ac_option in
30895   # Handling of the options.
30896 _ACEOF
30897 cat >>$CONFIG_STATUS <<\_ACEOF
30898   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30899     ac_cs_recheck=: ;;
30900   --version | --vers* | -V )
30901     echo "$ac_cs_version"; exit 0 ;;
30902   --he | --h)
30903     # Conflict between --help and --header
30904     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30905 Try \`$0 --help' for more information." >&5
30906 echo "$as_me: error: ambiguous option: $1
30907 Try \`$0 --help' for more information." >&2;}
30908    { (exit 1); exit 1; }; };;
30909   --help | --hel | -h )
30910     echo "$ac_cs_usage"; exit 0 ;;
30911   --debug | --d* | -d )
30912     debug=: ;;
30913   --file | --fil | --fi | --f )
30914     $ac_shift
30915     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30916     ac_need_defaults=false;;
30917   --header | --heade | --head | --hea )
30918     $ac_shift
30919     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30920     ac_need_defaults=false;;
30921   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30922   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30923     ac_cs_silent=: ;;
30924
30925   # This is an error.
30926   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30927 Try \`$0 --help' for more information." >&5
30928 echo "$as_me: error: unrecognized option: $1
30929 Try \`$0 --help' for more information." >&2;}
30930    { (exit 1); exit 1; }; } ;;
30931
30932   *) ac_config_targets="$ac_config_targets $1" ;;
30933
30934   esac
30935   shift
30936 done
30937
30938 ac_configure_extra_args=
30939
30940 if $ac_cs_silent; then
30941   exec 6>/dev/null
30942   ac_configure_extra_args="$ac_configure_extra_args --silent"
30943 fi
30944
30945 _ACEOF
30946 cat >>$CONFIG_STATUS <<_ACEOF
30947 if \$ac_cs_recheck; then
30948   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30949   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30950 fi
30951
30952 _ACEOF
30953
30954 cat >>$CONFIG_STATUS <<_ACEOF
30955 #
30956 # INIT-COMMANDS section.
30957 #
30958
30959 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30960     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30961     # from automake.
30962     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30963     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30964     LINGUAS="${LINGUAS-%UNSET%}"
30965
30966
30967 _ACEOF
30968
30969
30970
30971 cat >>$CONFIG_STATUS <<\_ACEOF
30972 for ac_config_target in $ac_config_targets
30973 do
30974   case "$ac_config_target" in
30975   # Handling of arguments.
30976   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30977   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30978   "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30979   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30980   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30981   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30982   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30983   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30984   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30985   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30986   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30987   "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30988   "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30989   "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30990   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30991   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30992   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30993   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30994   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30995   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30996   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30997   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30998   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30999   "scripts/bgnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31000   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31001   "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31002   "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31003   "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31004   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31005   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31006   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31007   "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31008   "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31009   "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31010   "scripts/bat.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31011   "scripts/bat.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31012   "scripts/bat.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31013   "scripts/bat.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31014   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31015   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31016   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31017   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31018   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31019   "src/gnome2-console/bgnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31020   "src/qt-console/bat.conf" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31021   "src/qt-console/bat.pro" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31022   "src/qt-console/install_conf_file" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31023   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31024   "src/wx-console/bwx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31025   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31026   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31027   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31028   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31029   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31030   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31031   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31032   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31033   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31034   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31035   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31036   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31037   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31038   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31039   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31040   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31041   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31042   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31043   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31044   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31045   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31046   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31047   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31048   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31049   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31050   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31051   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31052   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31053   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31054   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31055   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31056   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31057   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31058   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31059   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31060   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31061   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31062   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31063   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31064   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31065   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31066   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31067   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31068   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31069   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31070   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31071   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31072   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31073   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31074   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31075   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31076   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31077   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31078   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31079   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31080   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31081   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31082   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31083 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31084    { (exit 1); exit 1; }; };;
31085   esac
31086 done
31087
31088 # If the user did not use the arguments to specify the items to instantiate,
31089 # then the envvar interface is used.  Set only those that are not.
31090 # We use the long form for the default assignment because of an extremely
31091 # bizarre bug on SunOS 4.1.3.
31092 if $ac_need_defaults; then
31093   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31094   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31095   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31096 fi
31097
31098 # Have a temporary directory for convenience.  Make it in the build tree
31099 # simply because there is no reason to put it here, and in addition,
31100 # creating and moving files from /tmp can sometimes cause problems.
31101 # Create a temporary directory, and hook for its removal unless debugging.
31102 $debug ||
31103 {
31104   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31105   trap '{ (exit 1); exit 1; }' 1 2 13 15
31106 }
31107
31108 # Create a (secure) tmp directory for tmp files.
31109
31110 {
31111   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31112   test -n "$tmp" && test -d "$tmp"
31113 }  ||
31114 {
31115   tmp=./confstat$$-$RANDOM
31116   (umask 077 && mkdir $tmp)
31117 } ||
31118 {
31119    echo "$me: cannot create a temporary directory in ." >&2
31120    { (exit 1); exit 1; }
31121 }
31122
31123 _ACEOF
31124
31125 cat >>$CONFIG_STATUS <<_ACEOF
31126
31127 #
31128 # CONFIG_FILES section.
31129 #
31130
31131 # No need to generate the scripts if there are no CONFIG_FILES.
31132 # This happens for instance when ./config.status config.h
31133 if test -n "\$CONFIG_FILES"; then
31134   # Protect against being on the right side of a sed subst in config.status.
31135   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31136    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31137 s,@SHELL@,$SHELL,;t t
31138 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31139 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31140 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31141 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31142 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31143 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31144 s,@exec_prefix@,$exec_prefix,;t t
31145 s,@prefix@,$prefix,;t t
31146 s,@program_transform_name@,$program_transform_name,;t t
31147 s,@bindir@,$bindir,;t t
31148 s,@sbindir@,$sbindir,;t t
31149 s,@libexecdir@,$libexecdir,;t t
31150 s,@datadir@,$datadir,;t t
31151 s,@sysconfdir@,$sysconfdir,;t t
31152 s,@sharedstatedir@,$sharedstatedir,;t t
31153 s,@localstatedir@,$localstatedir,;t t
31154 s,@libdir@,$libdir,;t t
31155 s,@includedir@,$includedir,;t t
31156 s,@oldincludedir@,$oldincludedir,;t t
31157 s,@infodir@,$infodir,;t t
31158 s,@mandir@,$mandir,;t t
31159 s,@build_alias@,$build_alias,;t t
31160 s,@host_alias@,$host_alias,;t t
31161 s,@target_alias@,$target_alias,;t t
31162 s,@DEFS@,$DEFS,;t t
31163 s,@ECHO_C@,$ECHO_C,;t t
31164 s,@ECHO_N@,$ECHO_N,;t t
31165 s,@ECHO_T@,$ECHO_T,;t t
31166 s,@LIBS@,$LIBS,;t t
31167 s,@BUILD_DIR@,$BUILD_DIR,;t t
31168 s,@TOP_DIR@,$TOP_DIR,;t t
31169 s,@TRUEPRG@,$TRUEPRG,;t t
31170 s,@FALSEPRG@,$FALSEPRG,;t t
31171 s,@VERSION@,$VERSION,;t t
31172 s,@DATE@,$DATE,;t t
31173 s,@LSMDATE@,$LSMDATE,;t t
31174 s,@CC@,$CC,;t t
31175 s,@CFLAGS@,$CFLAGS,;t t
31176 s,@LDFLAGS@,$LDFLAGS,;t t
31177 s,@CPPFLAGS@,$CPPFLAGS,;t t
31178 s,@ac_ct_CC@,$ac_ct_CC,;t t
31179 s,@EXEEXT@,$EXEEXT,;t t
31180 s,@OBJEXT@,$OBJEXT,;t t
31181 s,@CXX@,$CXX,;t t
31182 s,@CXXFLAGS@,$CXXFLAGS,;t t
31183 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31184 s,@CPP@,$CPP,;t t
31185 s,@EGREP@,$EGREP,;t t
31186 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31187 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31188 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31189 s,@RANLIB@,$RANLIB,;t t
31190 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31191 s,@MV@,$MV,;t t
31192 s,@RM@,$RM,;t t
31193 s,@CP@,$CP,;t t
31194 s,@SED@,$SED,;t t
31195 s,@ECHO@,$ECHO,;t t
31196 s,@CMP@,$CMP,;t t
31197 s,@TBL@,$TBL,;t t
31198 s,@AR@,$AR,;t t
31199 s,@OPENSSL@,$OPENSSL,;t t
31200 s,@MTX@,$MTX,;t t
31201 s,@DD@,$DD,;t t
31202 s,@MKISOFS@,$MKISOFS,;t t
31203 s,@PYTHON@,$PYTHON,;t t
31204 s,@GROWISOFS@,$GROWISOFS,;t t
31205 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
31206 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
31207 s,@PKGCONFIG@,$PKGCONFIG,;t t
31208 s,@WXCONFIG@,$WXCONFIG,;t t
31209 s,@WXFLAGS@,$WXFLAGS,;t t
31210 s,@CDRECORD@,$CDRECORD,;t t
31211 s,@PIDOF@,$PIDOF,;t t
31212 s,@AWK@,$AWK,;t t
31213 s,@ARFLAGS@,$ARFLAGS,;t t
31214 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
31215 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
31216 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
31217 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
31218 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
31219 s,@build@,$build,;t t
31220 s,@build_cpu@,$build_cpu,;t t
31221 s,@build_vendor@,$build_vendor,;t t
31222 s,@build_os@,$build_os,;t t
31223 s,@host@,$host,;t t
31224 s,@host_cpu@,$host_cpu,;t t
31225 s,@host_vendor@,$host_vendor,;t t
31226 s,@host_os@,$host_os,;t t
31227 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
31228 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
31229 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
31230 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
31231 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
31232 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
31233 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
31234 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
31235 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
31236 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
31237 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
31238 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
31239 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
31240 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
31241 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
31242 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
31243 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
31244 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
31245 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
31246 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
31247 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
31248 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
31249 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
31250 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
31251 s,@SET_MAKE@,$SET_MAKE,;t t
31252 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31253 s,@USE_NLS@,$USE_NLS,;t t
31254 s,@MSGFMT@,$MSGFMT,;t t
31255 s,@GMSGFMT@,$GMSGFMT,;t t
31256 s,@XGETTEXT@,$XGETTEXT,;t t
31257 s,@MSGMERGE@,$MSGMERGE,;t t
31258 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
31259 s,@LIBICONV@,$LIBICONV,;t t
31260 s,@LTLIBICONV@,$LTLIBICONV,;t t
31261 s,@INTLLIBS@,$INTLLIBS,;t t
31262 s,@LIBINTL@,$LIBINTL,;t t
31263 s,@LTLIBINTL@,$LTLIBINTL,;t t
31264 s,@POSUB@,$POSUB,;t t
31265 s,@GLIBC2@,$GLIBC2,;t t
31266 s,@ALLOCA@,$ALLOCA,;t t
31267 s,@GLIBC21@,$GLIBC21,;t t
31268 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
31269 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
31270 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
31271 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
31272 s,@INTLBISON@,$INTLBISON,;t t
31273 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
31274 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
31275 s,@CATOBJEXT@,$CATOBJEXT,;t t
31276 s,@DATADIRNAME@,$DATADIRNAME,;t t
31277 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
31278 s,@GENCAT@,$GENCAT,;t t
31279 s,@INTLOBJS@,$INTLOBJS,;t t
31280 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
31281 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
31282 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
31283 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
31284 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
31285 s,@GNOME_DIR@,$GNOME_DIR,;t t
31286 s,@BAT_DIR@,$BAT_DIR,;t t
31287 s,@QWT_INC@,$QWT_INC,;t t
31288 s,@QWT_LDFLAGS@,$QWT_LDFLAGS,;t t
31289 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
31290 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
31291 s,@WX_DIR@,$WX_DIR,;t t
31292 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
31293 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
31294 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
31295 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
31296 s,@STATIC_FD@,$STATIC_FD,;t t
31297 s,@STATIC_SD@,$STATIC_SD,;t t
31298 s,@STATIC_DIR@,$STATIC_DIR,;t t
31299 s,@STATIC_CONS@,$STATIC_CONS,;t t
31300 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
31301 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
31302 s,@ALL_DIRS@,$ALL_DIRS,;t t
31303 s,@DIRD_DIR@,$DIRD_DIR,;t t
31304 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
31305 s,@STORED_DIR@,$STORED_DIR,;t t
31306 s,@CONS_INC@,$CONS_INC,;t t
31307 s,@CONS_OBJ@,$CONS_OBJ,;t t
31308 s,@CONS_SRC@,$CONS_SRC,;t t
31309 s,@CONS_LIBS@,$CONS_LIBS,;t t
31310 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
31311 s,@READLINE_SRC@,$READLINE_SRC,;t t
31312 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
31313 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
31314 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
31315 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
31316 s,@working_dir@,$working_dir,;t t
31317 s,@scriptdir@,$scriptdir,;t t
31318 s,@dump_email@,$dump_email,;t t
31319 s,@job_email@,$job_email,;t t
31320 s,@smtp_host@,$smtp_host,;t t
31321 s,@piddir@,$piddir,;t t
31322 s,@subsysdir@,$subsysdir,;t t
31323 s,@baseport@,$baseport,;t t
31324 s,@dir_port@,$dir_port,;t t
31325 s,@fd_port@,$fd_port,;t t
31326 s,@sd_port@,$sd_port,;t t
31327 s,@dir_password@,$dir_password,;t t
31328 s,@fd_password@,$fd_password,;t t
31329 s,@sd_password@,$sd_password,;t t
31330 s,@mon_dir_password@,$mon_dir_password,;t t
31331 s,@mon_fd_password@,$mon_fd_password,;t t
31332 s,@mon_sd_password@,$mon_sd_password,;t t
31333 s,@db_name@,$db_name,;t t
31334 s,@db_user@,$db_user,;t t
31335 s,@dir_user@,$dir_user,;t t
31336 s,@dir_group@,$dir_group,;t t
31337 s,@sd_user@,$sd_user,;t t
31338 s,@sd_group@,$sd_group,;t t
31339 s,@fd_user@,$fd_user,;t t
31340 s,@fd_group@,$fd_group,;t t
31341 s,@SBINPERM@,$SBINPERM,;t t
31342 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
31343 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
31344 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
31345 s,@cats@,$cats,;t t
31346 s,@DB_TYPE@,$DB_TYPE,;t t
31347 s,@GETCONF@,$GETCONF,;t t
31348 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
31349 s,@X_CFLAGS@,$X_CFLAGS,;t t
31350 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31351 s,@X_LIBS@,$X_LIBS,;t t
31352 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31353 s,@LIBOBJS@,$LIBOBJS,;t t
31354 s,@FDLIBS@,$FDLIBS,;t t
31355 s,@DEBUG@,$DEBUG,;t t
31356 s,@DINCLUDE@,$DINCLUDE,;t t
31357 s,@DLIB@,$DLIB,;t t
31358 s,@DB_LIBS@,$DB_LIBS,;t t
31359 s,@WCFLAGS@,$WCFLAGS,;t t
31360 s,@WLDFLAGS@,$WLDFLAGS,;t t
31361 s,@WRAPLIBS@,$WRAPLIBS,;t t
31362 s,@OBJLIST@,$OBJLIST,;t t
31363 s,@hostname@,$hostname,;t t
31364 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
31365 s,@PSCMD@,$PSCMD,;t t
31366 s,@WIN32@,$WIN32,;t t
31367 s,@MACOSX@,$MACOSX,;t t
31368 s,@DISTNAME@,$DISTNAME,;t t
31369 s,@DISTVER@,$DISTVER,;t t
31370 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31371 /@MCOMMON@/r $MCOMMON
31372 s,@MCOMMON@,,;t t
31373 CEOF
31374
31375 _ACEOF
31376
31377   cat >>$CONFIG_STATUS <<\_ACEOF
31378   # Split the substitutions into bite-sized pieces for seds with
31379   # small command number limits, like on Digital OSF/1 and HP-UX.
31380   ac_max_sed_lines=48
31381   ac_sed_frag=1 # Number of current file.
31382   ac_beg=1 # First line for current file.
31383   ac_end=$ac_max_sed_lines # Line after last line for current file.
31384   ac_more_lines=:
31385   ac_sed_cmds=
31386   while $ac_more_lines; do
31387     if test $ac_beg -gt 1; then
31388       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31389     else
31390       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31391     fi
31392     if test ! -s $tmp/subs.frag; then
31393       ac_more_lines=false
31394     else
31395       # The purpose of the label and of the branching condition is to
31396       # speed up the sed processing (if there are no `@' at all, there
31397       # is no need to browse any of the substitutions).
31398       # These are the two extra sed commands mentioned above.
31399       (echo ':t
31400   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31401       if test -z "$ac_sed_cmds"; then
31402         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31403       else
31404         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31405       fi
31406       ac_sed_frag=`expr $ac_sed_frag + 1`
31407       ac_beg=$ac_end
31408       ac_end=`expr $ac_end + $ac_max_sed_lines`
31409     fi
31410   done
31411   if test -z "$ac_sed_cmds"; then
31412     ac_sed_cmds=cat
31413   fi
31414 fi # test -n "$CONFIG_FILES"
31415
31416 _ACEOF
31417 cat >>$CONFIG_STATUS <<\_ACEOF
31418 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31419   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31420   case $ac_file in
31421   - | *:- | *:-:* ) # input from stdin
31422         cat >$tmp/stdin
31423         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31424         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31425   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31426         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31427   * )   ac_file_in=$ac_file.in ;;
31428   esac
31429
31430   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31431   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31432 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31433          X"$ac_file" : 'X\(//\)[^/]' \| \
31434          X"$ac_file" : 'X\(//\)$' \| \
31435          X"$ac_file" : 'X\(/\)' \| \
31436          .     : '\(.\)' 2>/dev/null ||
31437 echo X"$ac_file" |
31438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31439           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31440           /^X\(\/\/\)$/{ s//\1/; q; }
31441           /^X\(\/\).*/{ s//\1/; q; }
31442           s/.*/./; q'`
31443   { if $as_mkdir_p; then
31444     mkdir -p "$ac_dir"
31445   else
31446     as_dir="$ac_dir"
31447     as_dirs=
31448     while test ! -d "$as_dir"; do
31449       as_dirs="$as_dir $as_dirs"
31450       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31452          X"$as_dir" : 'X\(//\)[^/]' \| \
31453          X"$as_dir" : 'X\(//\)$' \| \
31454          X"$as_dir" : 'X\(/\)' \| \
31455          .     : '\(.\)' 2>/dev/null ||
31456 echo X"$as_dir" |
31457     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31458           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31459           /^X\(\/\/\)$/{ s//\1/; q; }
31460           /^X\(\/\).*/{ s//\1/; q; }
31461           s/.*/./; q'`
31462     done
31463     test ! -n "$as_dirs" || mkdir $as_dirs
31464   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31465 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31466    { (exit 1); exit 1; }; }; }
31467
31468   ac_builddir=.
31469
31470 if test "$ac_dir" != .; then
31471   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31472   # A "../" for each directory in $ac_dir_suffix.
31473   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31474 else
31475   ac_dir_suffix= ac_top_builddir=
31476 fi
31477
31478 case $srcdir in
31479   .)  # No --srcdir option.  We are building in place.
31480     ac_srcdir=.
31481     if test -z "$ac_top_builddir"; then
31482        ac_top_srcdir=.
31483     else
31484        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31485     fi ;;
31486   [\\/]* | ?:[\\/]* )  # Absolute path.
31487     ac_srcdir=$srcdir$ac_dir_suffix;
31488     ac_top_srcdir=$srcdir ;;
31489   *) # Relative path.
31490     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31491     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31492 esac
31493
31494 # Do not use `cd foo && pwd` to compute absolute paths, because
31495 # the directories may not exist.
31496 case `pwd` in
31497 .) ac_abs_builddir="$ac_dir";;
31498 *)
31499   case "$ac_dir" in
31500   .) ac_abs_builddir=`pwd`;;
31501   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31502   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31503   esac;;
31504 esac
31505 case $ac_abs_builddir in
31506 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31507 *)
31508   case ${ac_top_builddir}. in
31509   .) ac_abs_top_builddir=$ac_abs_builddir;;
31510   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31511   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31512   esac;;
31513 esac
31514 case $ac_abs_builddir in
31515 .) ac_abs_srcdir=$ac_srcdir;;
31516 *)
31517   case $ac_srcdir in
31518   .) ac_abs_srcdir=$ac_abs_builddir;;
31519   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31520   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31521   esac;;
31522 esac
31523 case $ac_abs_builddir in
31524 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31525 *)
31526   case $ac_top_srcdir in
31527   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31528   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31529   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31530   esac;;
31531 esac
31532
31533
31534   case $INSTALL in
31535   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31536   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31537   esac
31538
31539   if test x"$ac_file" != x-; then
31540     { echo "$as_me:$LINENO: creating $ac_file" >&5
31541 echo "$as_me: creating $ac_file" >&6;}
31542     rm -f "$ac_file"
31543   fi
31544   # Let's still pretend it is `configure' which instantiates (i.e., don't
31545   # use $as_me), people would be surprised to read:
31546   #    /* config.h.  Generated by config.status.  */
31547   if test x"$ac_file" = x-; then
31548     configure_input=
31549   else
31550     configure_input="$ac_file.  "
31551   fi
31552   configure_input=$configure_input"Generated from `echo $ac_file_in |
31553                                      sed 's,.*/,,'` by configure."
31554
31555   # First look for the input files in the build tree, otherwise in the
31556   # src tree.
31557   ac_file_inputs=`IFS=:
31558     for f in $ac_file_in; do
31559       case $f in
31560       -) echo $tmp/stdin ;;
31561       [\\/$]*)
31562          # Absolute (can't be DOS-style, as IFS=:)
31563          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31564 echo "$as_me: error: cannot find input file: $f" >&2;}
31565    { (exit 1); exit 1; }; }
31566          echo "$f";;
31567       *) # Relative
31568          if test -f "$f"; then
31569            # Build tree
31570            echo "$f"
31571          elif test -f "$srcdir/$f"; then
31572            # Source tree
31573            echo "$srcdir/$f"
31574          else
31575            # /dev/null tree
31576            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31577 echo "$as_me: error: cannot find input file: $f" >&2;}
31578    { (exit 1); exit 1; }; }
31579          fi;;
31580       esac
31581     done` || { (exit 1); exit 1; }
31582 _ACEOF
31583 cat >>$CONFIG_STATUS <<_ACEOF
31584   sed "$ac_vpsub
31585 $extrasub
31586 _ACEOF
31587 cat >>$CONFIG_STATUS <<\_ACEOF
31588 :t
31589 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31590 s,@configure_input@,$configure_input,;t t
31591 s,@srcdir@,$ac_srcdir,;t t
31592 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31593 s,@top_srcdir@,$ac_top_srcdir,;t t
31594 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31595 s,@builddir@,$ac_builddir,;t t
31596 s,@abs_builddir@,$ac_abs_builddir,;t t
31597 s,@top_builddir@,$ac_top_builddir,;t t
31598 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31599 s,@INSTALL@,$ac_INSTALL,;t t
31600 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31601   rm -f $tmp/stdin
31602   if test x"$ac_file" != x-; then
31603     mv $tmp/out $ac_file
31604   else
31605     cat $tmp/out
31606     rm -f $tmp/out
31607   fi
31608
31609 done
31610 _ACEOF
31611 cat >>$CONFIG_STATUS <<\_ACEOF
31612
31613 #
31614 # CONFIG_HEADER section.
31615 #
31616
31617 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31618 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31619 #
31620 # ac_d sets the value in "#define NAME VALUE" lines.
31621 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31622 ac_dB='[         ].*$,\1#\2'
31623 ac_dC=' '
31624 ac_dD=',;t'
31625 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31626 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31627 ac_uB='$,\1#\2define\3'
31628 ac_uC=' '
31629 ac_uD=',;t'
31630
31631 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31632   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31633   case $ac_file in
31634   - | *:- | *:-:* ) # input from stdin
31635         cat >$tmp/stdin
31636         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31637         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31638   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31639         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31640   * )   ac_file_in=$ac_file.in ;;
31641   esac
31642
31643   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31644 echo "$as_me: creating $ac_file" >&6;}
31645
31646   # First look for the input files in the build tree, otherwise in the
31647   # src tree.
31648   ac_file_inputs=`IFS=:
31649     for f in $ac_file_in; do
31650       case $f in
31651       -) echo $tmp/stdin ;;
31652       [\\/$]*)
31653          # Absolute (can't be DOS-style, as IFS=:)
31654          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31655 echo "$as_me: error: cannot find input file: $f" >&2;}
31656    { (exit 1); exit 1; }; }
31657          # Do quote $f, to prevent DOS paths from being IFS'd.
31658          echo "$f";;
31659       *) # Relative
31660          if test -f "$f"; then
31661            # Build tree
31662            echo "$f"
31663          elif test -f "$srcdir/$f"; then
31664            # Source tree
31665            echo "$srcdir/$f"
31666          else
31667            # /dev/null tree
31668            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31669 echo "$as_me: error: cannot find input file: $f" >&2;}
31670    { (exit 1); exit 1; }; }
31671          fi;;
31672       esac
31673     done` || { (exit 1); exit 1; }
31674   # Remove the trailing spaces.
31675   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31676
31677 _ACEOF
31678
31679 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31680 # `conftest.undefs', that substitutes the proper values into
31681 # config.h.in to produce config.h.  The first handles `#define'
31682 # templates, and the second `#undef' templates.
31683 # And first: Protect against being on the right side of a sed subst in
31684 # config.status.  Protect against being in an unquoted here document
31685 # in config.status.
31686 rm -f conftest.defines conftest.undefs
31687 # Using a here document instead of a string reduces the quoting nightmare.
31688 # Putting comments in sed scripts is not portable.
31689 #
31690 # `end' is used to avoid that the second main sed command (meant for
31691 # 0-ary CPP macros) applies to n-ary macro definitions.
31692 # See the Autoconf documentation for `clear'.
31693 cat >confdef2sed.sed <<\_ACEOF
31694 s/[\\&,]/\\&/g
31695 s,[\\$`],\\&,g
31696 t clear
31697 : clear
31698 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31699 t end
31700 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31701 : end
31702 _ACEOF
31703 # If some macros were called several times there might be several times
31704 # the same #defines, which is useless.  Nevertheless, we may not want to
31705 # sort them, since we want the *last* AC-DEFINE to be honored.
31706 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31707 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31708 rm -f confdef2sed.sed
31709
31710 # This sed command replaces #undef with comments.  This is necessary, for
31711 # example, in the case of _POSIX_SOURCE, which is predefined and required
31712 # on some systems where configure will not decide to define it.
31713 cat >>conftest.undefs <<\_ACEOF
31714 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31715 _ACEOF
31716
31717 # Break up conftest.defines because some shells have a limit on the size
31718 # of here documents, and old seds have small limits too (100 cmds).
31719 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31720 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31721 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31722 echo '  :' >>$CONFIG_STATUS
31723 rm -f conftest.tail
31724 while grep . conftest.defines >/dev/null
31725 do
31726   # Write a limited-size here document to $tmp/defines.sed.
31727   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31728   # Speed up: don't consider the non `#define' lines.
31729   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31730   # Work around the forget-to-reset-the-flag bug.
31731   echo 't clr' >>$CONFIG_STATUS
31732   echo ': clr' >>$CONFIG_STATUS
31733   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31734   echo 'CEOF
31735   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31736   rm -f $tmp/in
31737   mv $tmp/out $tmp/in
31738 ' >>$CONFIG_STATUS
31739   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31740   rm -f conftest.defines
31741   mv conftest.tail conftest.defines
31742 done
31743 rm -f conftest.defines
31744 echo '  fi # grep' >>$CONFIG_STATUS
31745 echo >>$CONFIG_STATUS
31746
31747 # Break up conftest.undefs because some shells have a limit on the size
31748 # of here documents, and old seds have small limits too (100 cmds).
31749 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31750 rm -f conftest.tail
31751 while grep . conftest.undefs >/dev/null
31752 do
31753   # Write a limited-size here document to $tmp/undefs.sed.
31754   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31755   # Speed up: don't consider the non `#undef'
31756   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31757   # Work around the forget-to-reset-the-flag bug.
31758   echo 't clr' >>$CONFIG_STATUS
31759   echo ': clr' >>$CONFIG_STATUS
31760   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31761   echo 'CEOF
31762   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31763   rm -f $tmp/in
31764   mv $tmp/out $tmp/in
31765 ' >>$CONFIG_STATUS
31766   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31767   rm -f conftest.undefs
31768   mv conftest.tail conftest.undefs
31769 done
31770 rm -f conftest.undefs
31771
31772 cat >>$CONFIG_STATUS <<\_ACEOF
31773   # Let's still pretend it is `configure' which instantiates (i.e., don't
31774   # use $as_me), people would be surprised to read:
31775   #    /* config.h.  Generated by config.status.  */
31776   if test x"$ac_file" = x-; then
31777     echo "/* Generated by configure.  */" >$tmp/config.h
31778   else
31779     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31780   fi
31781   cat $tmp/in >>$tmp/config.h
31782   rm -f $tmp/in
31783   if test x"$ac_file" != x-; then
31784     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31785       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31786 echo "$as_me: $ac_file is unchanged" >&6;}
31787     else
31788       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31789 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31790          X"$ac_file" : 'X\(//\)[^/]' \| \
31791          X"$ac_file" : 'X\(//\)$' \| \
31792          X"$ac_file" : 'X\(/\)' \| \
31793          .     : '\(.\)' 2>/dev/null ||
31794 echo X"$ac_file" |
31795     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31796           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31797           /^X\(\/\/\)$/{ s//\1/; q; }
31798           /^X\(\/\).*/{ s//\1/; q; }
31799           s/.*/./; q'`
31800       { if $as_mkdir_p; then
31801     mkdir -p "$ac_dir"
31802   else
31803     as_dir="$ac_dir"
31804     as_dirs=
31805     while test ! -d "$as_dir"; do
31806       as_dirs="$as_dir $as_dirs"
31807       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31809          X"$as_dir" : 'X\(//\)[^/]' \| \
31810          X"$as_dir" : 'X\(//\)$' \| \
31811          X"$as_dir" : 'X\(/\)' \| \
31812          .     : '\(.\)' 2>/dev/null ||
31813 echo X"$as_dir" |
31814     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31815           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31816           /^X\(\/\/\)$/{ s//\1/; q; }
31817           /^X\(\/\).*/{ s//\1/; q; }
31818           s/.*/./; q'`
31819     done
31820     test ! -n "$as_dirs" || mkdir $as_dirs
31821   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31822 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31823    { (exit 1); exit 1; }; }; }
31824
31825       rm -f $ac_file
31826       mv $tmp/config.h $ac_file
31827     fi
31828   else
31829     cat $tmp/config.h
31830     rm -f $tmp/config.h
31831   fi
31832 done
31833 _ACEOF
31834 cat >>$CONFIG_STATUS <<\_ACEOF
31835
31836 #
31837 # CONFIG_COMMANDS section.
31838 #
31839 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31840   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31841   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31842   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31843 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31844          X"$ac_dest" : 'X\(//\)[^/]' \| \
31845          X"$ac_dest" : 'X\(//\)$' \| \
31846          X"$ac_dest" : 'X\(/\)' \| \
31847          .     : '\(.\)' 2>/dev/null ||
31848 echo X"$ac_dest" |
31849     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31850           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31851           /^X\(\/\/\)$/{ s//\1/; q; }
31852           /^X\(\/\).*/{ s//\1/; q; }
31853           s/.*/./; q'`
31854   { if $as_mkdir_p; then
31855     mkdir -p "$ac_dir"
31856   else
31857     as_dir="$ac_dir"
31858     as_dirs=
31859     while test ! -d "$as_dir"; do
31860       as_dirs="$as_dir $as_dirs"
31861       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31862 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31863          X"$as_dir" : 'X\(//\)[^/]' \| \
31864          X"$as_dir" : 'X\(//\)$' \| \
31865          X"$as_dir" : 'X\(/\)' \| \
31866          .     : '\(.\)' 2>/dev/null ||
31867 echo X"$as_dir" |
31868     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31869           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31870           /^X\(\/\/\)$/{ s//\1/; q; }
31871           /^X\(\/\).*/{ s//\1/; q; }
31872           s/.*/./; q'`
31873     done
31874     test ! -n "$as_dirs" || mkdir $as_dirs
31875   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31876 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31877    { (exit 1); exit 1; }; }; }
31878
31879   ac_builddir=.
31880
31881 if test "$ac_dir" != .; then
31882   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31883   # A "../" for each directory in $ac_dir_suffix.
31884   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31885 else
31886   ac_dir_suffix= ac_top_builddir=
31887 fi
31888
31889 case $srcdir in
31890   .)  # No --srcdir option.  We are building in place.
31891     ac_srcdir=.
31892     if test -z "$ac_top_builddir"; then
31893        ac_top_srcdir=.
31894     else
31895        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31896     fi ;;
31897   [\\/]* | ?:[\\/]* )  # Absolute path.
31898     ac_srcdir=$srcdir$ac_dir_suffix;
31899     ac_top_srcdir=$srcdir ;;
31900   *) # Relative path.
31901     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31902     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31903 esac
31904
31905 # Do not use `cd foo && pwd` to compute absolute paths, because
31906 # the directories may not exist.
31907 case `pwd` in
31908 .) ac_abs_builddir="$ac_dir";;
31909 *)
31910   case "$ac_dir" in
31911   .) ac_abs_builddir=`pwd`;;
31912   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31913   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31914   esac;;
31915 esac
31916 case $ac_abs_builddir in
31917 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31918 *)
31919   case ${ac_top_builddir}. in
31920   .) ac_abs_top_builddir=$ac_abs_builddir;;
31921   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31922   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31923   esac;;
31924 esac
31925 case $ac_abs_builddir in
31926 .) ac_abs_srcdir=$ac_srcdir;;
31927 *)
31928   case $ac_srcdir in
31929   .) ac_abs_srcdir=$ac_abs_builddir;;
31930   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31931   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31932   esac;;
31933 esac
31934 case $ac_abs_builddir in
31935 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31936 *)
31937   case $ac_top_srcdir in
31938   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31939   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31940   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31941   esac;;
31942 esac
31943
31944
31945   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31946 echo "$as_me: executing $ac_dest commands" >&6;}
31947   case $ac_dest in
31948     default-1 )
31949     for ac_file in $CONFIG_FILES; do
31950       # Support "outfile[:infile[:infile...]]"
31951       case "$ac_file" in
31952         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31953       esac
31954       # PO directories have a Makefile.in generated from Makefile.in.in.
31955       case "$ac_file" in */Makefile.in)
31956         # Adjust a relative srcdir.
31957         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31958         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31959         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31960         # In autoconf-2.13 it is called $ac_given_srcdir.
31961         # In autoconf-2.50 it is called $srcdir.
31962         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31963         case "$ac_given_srcdir" in
31964           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31965           /*) top_srcdir="$ac_given_srcdir" ;;
31966           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31967         esac
31968         # Treat a directory as a PO directory if and only if it has a
31969         # POTFILES.in file. This allows packages to have multiple PO
31970         # directories under different names or in different locations.
31971         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31972           rm -f "$ac_dir/POTFILES"
31973           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31974           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31975           POMAKEFILEDEPS="POTFILES.in"
31976           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31977           # on $ac_dir but don't depend on user-specified configuration
31978           # parameters.
31979           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31980             # The LINGUAS file contains the set of available languages.
31981             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31982               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31983             fi
31984             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31985             # Hide the ALL_LINGUAS assigment from automake.
31986             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31987             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31988           else
31989             # The set of available languages was given in configure.in.
31990             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31991           fi
31992           # Compute POFILES
31993           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31994           # Compute UPDATEPOFILES
31995           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31996           # Compute DUMMYPOFILES
31997           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31998           # Compute GMOFILES
31999           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32000           case "$ac_given_srcdir" in
32001             .) srcdirpre= ;;
32002             *) srcdirpre='$(srcdir)/' ;;
32003           esac
32004           POFILES=
32005           UPDATEPOFILES=
32006           DUMMYPOFILES=
32007           GMOFILES=
32008           for lang in $ALL_LINGUAS; do
32009             POFILES="$POFILES $srcdirpre$lang.po"
32010             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32011             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32012             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32013           done
32014           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32015           # environment variable.
32016           INST_LINGUAS=
32017           if test -n "$ALL_LINGUAS"; then
32018             for presentlang in $ALL_LINGUAS; do
32019               useit=no
32020               if test "%UNSET%" != "$LINGUAS"; then
32021                 desiredlanguages="$LINGUAS"
32022               else
32023                 desiredlanguages="$ALL_LINGUAS"
32024               fi
32025               for desiredlang in $desiredlanguages; do
32026                 # Use the presentlang catalog if desiredlang is
32027                 #   a. equal to presentlang, or
32028                 #   b. a variant of presentlang (because in this case,
32029                 #      presentlang can be used as a fallback for messages
32030                 #      which are not translated in the desiredlang catalog).
32031                 case "$desiredlang" in
32032                   "$presentlang"*) useit=yes;;
32033                 esac
32034               done
32035               if test $useit = yes; then
32036                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32037               fi
32038             done
32039           fi
32040           CATALOGS=
32041           if test -n "$INST_LINGUAS"; then
32042             for lang in $INST_LINGUAS; do
32043               CATALOGS="$CATALOGS $lang.gmo"
32044             done
32045           fi
32046           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32047           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"
32048           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32049             if test -f "$f"; then
32050               case "$f" in
32051                 *.orig | *.bak | *~) ;;
32052                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32053               esac
32054             fi
32055           done
32056         fi
32057         ;;
32058       esac
32059     done ;;
32060     default )
32061  ;;
32062   esac
32063 done
32064 _ACEOF
32065
32066 cat >>$CONFIG_STATUS <<\_ACEOF
32067
32068 { (exit 0); exit 0; }
32069 _ACEOF
32070 chmod +x $CONFIG_STATUS
32071 ac_clean_files=$ac_clean_files_save
32072
32073
32074 # configure is writing to config.log, and then calls config.status.
32075 # config.status does its own redirection, appending to config.log.
32076 # Unfortunately, on DOS this fails, as config.log is still kept open
32077 # by configure, so config.status won't be able to write to it; its
32078 # output is simply discarded.  So we exec the FD to /dev/null,
32079 # effectively closing config.log, so it can be properly (re)opened and
32080 # appended to by config.status.  When coming back to configure, we
32081 # need to make the FD available again.
32082 if test "$no_create" != yes; then
32083   ac_cs_success=:
32084   ac_config_status_args=
32085   test "$silent" = yes &&
32086     ac_config_status_args="$ac_config_status_args --quiet"
32087   exec 5>/dev/null
32088   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32089   exec 5>>config.log
32090   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32091   # would make configure fail if this is the last instruction.
32092   $ac_cs_success || { (exit 1); exit 1; }
32093 fi
32094
32095
32096 if test "${support_bat}" = "yes" ; then
32097   cd src/qt-console
32098   chmod 755 install_conf_file build-depkgs-qt-console
32099   echo "Creating bat Makefile"
32100   qmake
32101   cd ${BUILD_DIR}
32102 fi
32103
32104 echo "Doing make of dependencies"
32105 ${MAKE:-make} depend
32106
32107 cd scripts
32108 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32109 chmod 755 dvd-handler dvd-simulator
32110 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32111 cd ..
32112
32113 c=src/cats
32114
32115 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32116 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32117
32118 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
32119 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
32120
32121 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32122 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32123
32124 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
32125 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
32126
32127 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32128 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32129
32130 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32131 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32132
32133 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32134 chmod 755 $c/sqlite
32135 chmod 755 $c/mysql
32136
32137 chmod 755 src/win32/build-depkgs-mingw32
32138
32139
32140
32141 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32142    largefile_support="yes"
32143 fi
32144
32145 #
32146 # A whole lot of hand springs to get the compiler version.
32147 #  This is because gcc changed the output in version 3.0
32148 #
32149 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32150 if test "x${CCVERSION}" = "x" ; then
32151   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32152 fi
32153 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32154 if test x"${CXXVERSION}" = x ; then
32155   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32156 fi
32157
32158 if test "x${subsysdir}" = "x${sbindir}" ; then
32159    echo " "
32160    echo " "
32161    echo "You have set --sbindir and --with-subsys-dir"
32162    echo "  both equal to: ${subsysdir} "
32163    echo "  This is not permitted. Please reconfigure."
32164    echo " "
32165    echo "Aborting configuration ..."
32166    echo " "
32167    echo " "
32168    exit 1
32169 fi
32170
32171 if test "x${db_type}" = "xInternal" ; then
32172    echo " "
32173    echo " "
32174    echo "You have not specified either --enable-client-only or one of the"
32175    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
32176    echo "  This is not permitted. Please reconfigure."
32177    echo " "
32178    echo "Aborting the configuration ..."
32179    echo " "
32180    echo " "
32181    exit 1
32182 fi
32183
32184 echo "
32185 Configuration on `date`:
32186
32187   Host:                       $host -- ${DISTNAME} ${DISTVER}
32188   Bacula version:             ${VERSION} (${DATE})
32189   Source code location:       ${srcdir}
32190   Install binaries:           ${sbindir}
32191   Install config files:       ${sysconfdir}
32192   Scripts directory:          ${scriptdir}
32193   Working directory:          ${working_dir}
32194   PID directory:              ${piddir}
32195   Subsys directory:           ${subsysdir}
32196   Man directory:              ${mandir}
32197   Data directory:             ${datadir}
32198   C Compiler:                 ${CC} ${CCVERSION}
32199   C++ Compiler:               ${CXX} ${CXXVERSION}
32200   Compiler flags:             ${WCFLAGS} ${CFLAGS}
32201   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
32202   Libraries:                  ${LIBS}
32203   Statically Linked Tools:    ${support_static_tools}
32204   Statically Linked FD:       ${support_static_fd}
32205   Statically Linked SD:       ${support_static_sd}
32206   Statically Linked DIR:      ${support_static_dir}
32207   Statically Linked CONS:     ${support_static_cons}
32208   Database type:              ${db_type}
32209   Database lib:               ${DB_LIBS}
32210   Database name:              ${db_name}
32211   Database user:              ${db_user}
32212
32213   Job Output Email:           ${job_email}
32214   Traceback Email:            ${dump_email}
32215   SMTP Host Address:          ${smtp_host}
32216
32217   Director Port:              ${dir_port}
32218   File daemon Port:           ${fd_port}
32219   Storage daemon Port:        ${sd_port}
32220
32221   Director User:              ${dir_user}
32222   Director Group:             ${dir_group}
32223   Storage Daemon User:        ${sd_user}
32224   Storage DaemonGroup:        ${sd_group}
32225   File Daemon User:           ${fd_user}
32226   File Daemon Group:          ${fd_group}
32227
32228   SQL binaries Directory      ${SQL_BINDIR}
32229
32230   Large file support:         $largefile_support
32231   Bacula conio support:       ${got_conio} ${CONS_LIBS}
32232   readline support:           ${got_readline} ${PRTREADLINE_SRC}
32233   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
32234   TLS support:                ${support_tls}
32235   Encryption support:         ${support_crypto}
32236   ZLIB support:               ${have_zlib}
32237   enable-smartalloc:          ${support_smartalloc}
32238   bat support:                ${support_bat} ${QWT_LDFLAGS}
32239   enable-gnome:               ${support_gnome} ${gnome_version}
32240   enable-bwx-console:         ${support_wx_console} ${wx_version}
32241   enable-tray-monitor:        ${support_tray_monitor}
32242   client-only:                ${build_client_only}
32243   build-dird:                 ${build_dird}
32244   build-stored:               ${build_stored}
32245   ACL support:                ${have_acl}
32246   Python support:             ${support_python} ${PYTHON_LIBS}
32247   Batch insert enabled:       ${support_batch_insert}
32248
32249   " > config.out
32250
32251 cat config.out