]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Minor tweaks
[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 archivedir 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 archivedir='/tmp'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -archivedir | --archivedir | --archivedi | --archived | --archive | --archiv \
550   | --archi | --arch | --arc | --ar | --a)
551     ac_prev=archivedir ;;
552   -archivedir=* | --archivedir=* | --archivedi=* | --archived=* | --archive=* \
553   | --archiv=* | --archi=* | --arch=* | --arc=* | --ar=* | --a=*)
554     archivedir=$ac_optarg ;;
555
556   -sharedstatedir | --sharedstatedir | --sharedstatedi \
557   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
558   | --sharedst | --shareds | --shared | --share | --shar \
559   | --sha | --sh)
560     ac_prev=sharedstatedir ;;
561   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
562   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
563   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
564   | --sha=* | --sh=*)
565     sharedstatedir=$ac_optarg ;;
566
567   -site | --site | --sit)
568     ac_prev=site ;;
569   -site=* | --site=* | --sit=*)
570     site=$ac_optarg ;;
571
572   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
573     ac_prev=srcdir ;;
574   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
575     srcdir=$ac_optarg ;;
576
577   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
578   | --syscon | --sysco | --sysc | --sys | --sy)
579     ac_prev=sysconfdir ;;
580   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
581   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
582     sysconfdir=$ac_optarg ;;
583
584   -target | --target | --targe | --targ | --tar | --ta | --t)
585     ac_prev=target_alias ;;
586   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
587     target_alias=$ac_optarg ;;
588
589   -v | -verbose | --verbose | --verbos | --verbo | --verb)
590     verbose=yes ;;
591
592   -version | --version | --versio | --versi | --vers | -V)
593     ac_init_version=: ;;
594
595   -with-* | --with-*)
596     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
597     # Reject names that are not valid shell variable names.
598     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599       { echo "$as_me: error: invalid package name: $ac_package" >&2
600    { (exit 1); exit 1; }; }
601     ac_package=`echo $ac_package| sed 's/-/_/g'`
602     case $ac_option in
603       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
604       *) ac_optarg=yes ;;
605     esac
606     eval "with_$ac_package='$ac_optarg'" ;;
607
608   -without-* | --without-*)
609     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
610     # Reject names that are not valid shell variable names.
611     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
612       { echo "$as_me: error: invalid package name: $ac_package" >&2
613    { (exit 1); exit 1; }; }
614     ac_package=`echo $ac_package | sed 's/-/_/g'`
615     eval "with_$ac_package=no" ;;
616
617   --x)
618     # Obsolete; use --with-x.
619     with_x=yes ;;
620
621   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
622   | --x-incl | --x-inc | --x-in | --x-i)
623     ac_prev=x_includes ;;
624   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
625   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
626     x_includes=$ac_optarg ;;
627
628   -x-libraries | --x-libraries | --x-librarie | --x-librari \
629   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
630     ac_prev=x_libraries ;;
631   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
632   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
633     x_libraries=$ac_optarg ;;
634
635   -*) { echo "$as_me: error: unrecognized option: $ac_option
636 Try \`$0 --help' for more information." >&2
637    { (exit 1); exit 1; }; }
638     ;;
639
640   *=*)
641     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
642     # Reject names that are not valid shell variable names.
643     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
644       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
645    { (exit 1); exit 1; }; }
646     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
647     eval "$ac_envvar='$ac_optarg'"
648     export $ac_envvar ;;
649
650   *)
651     # FIXME: should be removed in autoconf 3.0.
652     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
653     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
654       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
655     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
656     ;;
657
658   esac
659 done
660
661 if test -n "$ac_prev"; then
662   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
663   { echo "$as_me: error: missing argument to $ac_option" >&2
664    { (exit 1); exit 1; }; }
665 fi
666
667 # Be sure to have absolute paths.
668 for ac_var in exec_prefix prefix
669 do
670   eval ac_val=$`echo $ac_var`
671   case $ac_val in
672     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
673     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
674    { (exit 1); exit 1; }; };;
675   esac
676 done
677
678 # Be sure to have absolute paths.
679 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir archivedir \
680               localstatedir libdir includedir oldincludedir infodir mandir
681 do
682   eval ac_val=$`echo $ac_var`
683   case $ac_val in
684     [\\/$]* | ?:[\\/]* ) ;;
685     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
686    { (exit 1); exit 1; }; };;
687   esac
688 done
689
690 # There might be people who depend on the old broken behavior: `$host'
691 # used to hold the argument of --host etc.
692 # FIXME: To remove some day.
693 build=$build_alias
694 host=$host_alias
695 target=$target_alias
696
697 # FIXME: To remove some day.
698 if test "x$host_alias" != x; then
699   if test "x$build_alias" = x; then
700     cross_compiling=maybe
701     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
702     If a cross compiler is detected then cross compile mode will be used." >&2
703   elif test "x$build_alias" != "x$host_alias"; then
704     cross_compiling=yes
705   fi
706 fi
707
708 ac_tool_prefix=
709 test -n "$host_alias" && ac_tool_prefix=$host_alias-
710
711 test "$silent" = yes && exec 6>/dev/null
712
713
714 # Find the source files, if location was not specified.
715 if test -z "$srcdir"; then
716   ac_srcdir_defaulted=yes
717   # Try the directory containing this script, then its parent.
718   ac_confdir=`(dirname "$0") 2>/dev/null ||
719 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
720          X"$0" : 'X\(//\)[^/]' \| \
721          X"$0" : 'X\(//\)$' \| \
722          X"$0" : 'X\(/\)' \| \
723          .     : '\(.\)' 2>/dev/null ||
724 echo X"$0" |
725     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
726           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
727           /^X\(\/\/\)$/{ s//\1/; q; }
728           /^X\(\/\).*/{ s//\1/; q; }
729           s/.*/./; q'`
730   srcdir=$ac_confdir
731   if test ! -r $srcdir/$ac_unique_file; then
732     srcdir=..
733   fi
734 else
735   ac_srcdir_defaulted=no
736 fi
737 if test ! -r $srcdir/$ac_unique_file; then
738   if test "$ac_srcdir_defaulted" = yes; then
739     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
740    { (exit 1); exit 1; }; }
741   else
742     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
743    { (exit 1); exit 1; }; }
744   fi
745 fi
746 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
747   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
748    { (exit 1); exit 1; }; }
749 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
750 ac_env_build_alias_set=${build_alias+set}
751 ac_env_build_alias_value=$build_alias
752 ac_cv_env_build_alias_set=${build_alias+set}
753 ac_cv_env_build_alias_value=$build_alias
754 ac_env_host_alias_set=${host_alias+set}
755 ac_env_host_alias_value=$host_alias
756 ac_cv_env_host_alias_set=${host_alias+set}
757 ac_cv_env_host_alias_value=$host_alias
758 ac_env_target_alias_set=${target_alias+set}
759 ac_env_target_alias_value=$target_alias
760 ac_cv_env_target_alias_set=${target_alias+set}
761 ac_cv_env_target_alias_value=$target_alias
762 ac_env_CC_set=${CC+set}
763 ac_env_CC_value=$CC
764 ac_cv_env_CC_set=${CC+set}
765 ac_cv_env_CC_value=$CC
766 ac_env_CFLAGS_set=${CFLAGS+set}
767 ac_env_CFLAGS_value=$CFLAGS
768 ac_cv_env_CFLAGS_set=${CFLAGS+set}
769 ac_cv_env_CFLAGS_value=$CFLAGS
770 ac_env_LDFLAGS_set=${LDFLAGS+set}
771 ac_env_LDFLAGS_value=$LDFLAGS
772 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
773 ac_cv_env_LDFLAGS_value=$LDFLAGS
774 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
775 ac_env_CPPFLAGS_value=$CPPFLAGS
776 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
777 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
778 ac_env_CXX_set=${CXX+set}
779 ac_env_CXX_value=$CXX
780 ac_cv_env_CXX_set=${CXX+set}
781 ac_cv_env_CXX_value=$CXX
782 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
783 ac_env_CXXFLAGS_value=$CXXFLAGS
784 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
785 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
786 ac_env_CPP_set=${CPP+set}
787 ac_env_CPP_value=$CPP
788 ac_cv_env_CPP_set=${CPP+set}
789 ac_cv_env_CPP_value=$CPP
790 ac_env_WXCONFIG_set=${WXCONFIG+set}
791 ac_env_WXCONFIG_value=$WXCONFIG
792 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
793 ac_cv_env_WXCONFIG_value=$WXCONFIG
794 ac_env_WXFLAGS_set=${WXFLAGS+set}
795 ac_env_WXFLAGS_value=$WXFLAGS
796 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
797 ac_cv_env_WXFLAGS_value=$WXFLAGS
798
799 #
800 # Report the --help message.
801 #
802 if test "$ac_init_help" = "long"; then
803   # Omit some internal or obsolete options to make the list less imposing.
804   # This message is too long to be a string in the A/UX 3.1 sh.
805   cat <<_ACEOF
806 \`configure' configures this package to adapt to many kinds of systems.
807
808 Usage: $0 [OPTION]... [VAR=VALUE]...
809
810 To assign environment variables (e.g., CC, CFLAGS...), specify them as
811 VAR=VALUE.  See below for descriptions of some of the useful variables.
812
813 Defaults for the options are specified in brackets.
814
815 Configuration:
816   -h, --help              display this help and exit
817       --help=short        display options specific to this package
818       --help=recursive    display the short help of all the included packages
819   -V, --version           display version information and exit
820   -q, --quiet, --silent   do not print \`checking...' messages
821       --cache-file=FILE   cache test results in FILE [disabled]
822   -C, --config-cache      alias for \`--cache-file=config.cache'
823   -n, --no-create         do not create output files
824       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
825
826 _ACEOF
827
828   cat <<_ACEOF
829 Installation directories:
830   --prefix=PREFIX         install architecture-independent files in PREFIX
831                           [$ac_default_prefix]
832   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
833                           [PREFIX]
834
835 By default, \`make install' will install all the files in
836 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
837 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
838 for instance \`--prefix=\$HOME'.
839
840 For better control, use the options below.
841
842 Fine tuning of the installation directories:
843   --bindir=DIR           user executables [EPREFIX/bin]
844   --sbindir=DIR          system admin executables [EPREFIX/sbin]
845   --libexecdir=DIR       program executables [EPREFIX/libexec]
846   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
847   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
848   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
849   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
850   --libdir=DIR           object code libraries [EPREFIX/lib]
851   --includedir=DIR       C header files [PREFIX/include]
852   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
853   --infodir=DIR          info documentation [PREFIX/info]
854   --mandir=DIR           man documentation [PREFIX/man]
855   --archivedir=DIR       archive destination for disk-based backups [/tmp]
856 _ACEOF
857
858   cat <<\_ACEOF
859
860 X features:
861   --x-includes=DIR    X include files are in DIR
862   --x-libraries=DIR   X library files are in DIR
863
864 System types:
865   --build=BUILD     configure for building on BUILD [guessed]
866   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
867 _ACEOF
868 fi
869
870 if test -n "$ac_init_help"; then
871
872   cat <<\_ACEOF
873
874 Optional Features:
875   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
876   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
877   --disable-nls           do not use Native Language Support
878   --disable-rpath         do not hardcode runtime library paths
879   --enable-gnome          enable build of bgnome-console GUI disabled
880   --enable-bat  enable build of bat Qt4 GUI disabled
881   --enable-bwx-console     enable build of wxWidgets console disabled
882   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
883   --enable-smartalloc     enable smartalloc debugging support disabled
884   --enable-static-tools   enable static tape tools disabled
885   --enable-static-fd      enable static File daemon disabled
886   --enable-static-sd      enable static Storage daemon disabled
887   --enable-static-dir     enable static Director disabled
888   --enable-static-cons    enable static Console disabled
889   --enable-client-only    build client (File daemon) only disabled
890   --enable-build-dird     enable building of dird (Director) enabled
891   --enable-build-stored   enable building of stored (Storage daemon) enabled
892  --disable-conio disable conio support enabled
893
894   --enable-ipv6             enable ipv6 support enabled
895
896   --disable-readline      disable readline support disable
897
898         --enable-batch-insert       enable the DB batch insert code disabled
899   --disable-largefile     omit support for large files
900
901 Optional Packages:
902   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
903   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
904   --with-gnu-ld           assume the C compiler uses GNU ld default=no
905   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
906   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
907   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
908   --without-libintl-prefix     don't search for libintl in includedir and libdir
909   --with-included-gettext use the GNU gettext library included here
910  --with-qwt[=DIR]                 specify qwt library directory
911  --with-readline[=DIR]         specify readline library directory
912
913   --with-python[=DIR]   Include Python support.  DIR is the Python base
914                           install directory, default is to search through
915                           a number of common places for the Python files.
916   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
917   --with-openssl[=DIR]
918                           Include OpenSSL support. DIR is the OpenSSL base
919   --with-working-dir=PATH        specify path of Bacula working directory
920   --with-scriptdir=PATH    specify path of Bacula scripts directory
921   --with-dump-email=EMAIL        dump email address
922   --with-job-email=EMAIL         job output email address
923   --with-smtp-host=HOST          SMTP mail host address
924   --with-pid-dir=PATH            specify location of Bacula pid files
925   --with-subsys-dir=PATH         specify location of Bacula subsys file
926   --with-baseport=PORT           specify base port address for daemons
927   --with-dir-password=PASSWORD   specify Director's password
928   --with-fd-password=PASSWORD    specify Client's password
929   --with-sd-password=PASSWORD    specify Storage daemon's password
930   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
931   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
932   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
933   --with-db-name=DBNAME        specify database name (default bacula)
934   --with-db-user=UNAME         specify database user (default bacula)
935   --with-dir-user=USER           specify user for Director daemon
936   --with-dir-group=GROUP                 specify group for Director daemon
937   --with-sd-user=USER            specify user for Storage daemon
938   --with-sd-group=GROUP          specify group for Storage daemon
939   --with-fd-user=USER            specify user for File daemon
940   --with-fd-group=GROUP          specify group for File daemon
941   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
942   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
943                           base install directory, defaults to /usr/local/pgsql
944
945   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
946                           install directory, default is to search through
947                           a number of common places for the MySQL files.
948
949   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
950                           install directory, default is to search through
951                           a number of common places for the MySQL files.
952
953   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
954                           install directory, default is to search through
955                           a number of common places for the SQLite3 files.
956
957   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
958                           install directory, default is to search through
959                           a number of common places for the SQLite files.
960   --with-x                use the X Window System
961
962 Some influential environment variables:
963   CC          C compiler command
964   CFLAGS      C compiler flags
965   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
966               nonstandard directory <lib dir>
967   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
968               headers in a nonstandard directory <include dir>
969   CXX         C++ compiler command
970   CXXFLAGS    C++ compiler flags
971   CPP         C preprocessor
972   WXCONFIG    wx-config command. On some systems, you must set it to
973               wx-config-2.6 to use wxWidgets 2.6.
974   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
975
976 Use these variables to override the choices made by `configure' or to help
977 it to find libraries and programs with nonstandard names/locations.
978
979 _ACEOF
980 fi
981
982 if test "$ac_init_help" = "recursive"; then
983   # If there are subdirs, report their specific --help.
984   ac_popdir=`pwd`
985   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
986     test -d $ac_dir || continue
987     ac_builddir=.
988
989 if test "$ac_dir" != .; then
990   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
991   # A "../" for each directory in $ac_dir_suffix.
992   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
993 else
994   ac_dir_suffix= ac_top_builddir=
995 fi
996
997 case $srcdir in
998   .)  # No --srcdir option.  We are building in place.
999     ac_srcdir=.
1000     if test -z "$ac_top_builddir"; then
1001        ac_top_srcdir=.
1002     else
1003        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1004     fi ;;
1005   [\\/]* | ?:[\\/]* )  # Absolute path.
1006     ac_srcdir=$srcdir$ac_dir_suffix;
1007     ac_top_srcdir=$srcdir ;;
1008   *) # Relative path.
1009     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1010     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1011 esac
1012
1013 # Do not use `cd foo && pwd` to compute absolute paths, because
1014 # the directories may not exist.
1015 case `pwd` in
1016 .) ac_abs_builddir="$ac_dir";;
1017 *)
1018   case "$ac_dir" in
1019   .) ac_abs_builddir=`pwd`;;
1020   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1021   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1022   esac;;
1023 esac
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1026 *)
1027   case ${ac_top_builddir}. in
1028   .) ac_abs_top_builddir=$ac_abs_builddir;;
1029   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1030   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1031   esac;;
1032 esac
1033 case $ac_abs_builddir in
1034 .) ac_abs_srcdir=$ac_srcdir;;
1035 *)
1036   case $ac_srcdir in
1037   .) ac_abs_srcdir=$ac_abs_builddir;;
1038   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1039   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1040   esac;;
1041 esac
1042 case $ac_abs_builddir in
1043 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1044 *)
1045   case $ac_top_srcdir in
1046   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1047   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1048   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1049   esac;;
1050 esac
1051
1052     cd $ac_dir
1053     # Check for guested configure; otherwise get Cygnus style configure.
1054     if test -f $ac_srcdir/configure.gnu; then
1055       echo
1056       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1057     elif test -f $ac_srcdir/configure; then
1058       echo
1059       $SHELL $ac_srcdir/configure  --help=recursive
1060     elif test -f $ac_srcdir/configure.ac ||
1061            test -f $ac_srcdir/configure.in; then
1062       echo
1063       $ac_configure --help
1064     else
1065       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1066     fi
1067     cd $ac_popdir
1068   done
1069 fi
1070
1071 test -n "$ac_init_help" && exit 0
1072 if $ac_init_version; then
1073   cat <<\_ACEOF
1074
1075 Copyright (C) 2003 Free Software Foundation, Inc.
1076 This configure script is free software; the Free Software Foundation
1077 gives unlimited permission to copy, distribute and modify it.
1078 _ACEOF
1079   exit 0
1080 fi
1081 exec 5>config.log
1082 cat >&5 <<_ACEOF
1083 This file contains any messages produced by compilers while
1084 running configure, to aid debugging if configure makes a mistake.
1085
1086 It was created by $as_me, which was
1087 generated by GNU Autoconf 2.59.  Invocation command line was
1088
1089   $ $0 $@
1090
1091 _ACEOF
1092 {
1093 cat <<_ASUNAME
1094 ## --------- ##
1095 ## Platform. ##
1096 ## --------- ##
1097
1098 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1099 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1100 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1101 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1102 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1103
1104 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1105 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1106
1107 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1108 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1109 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1110 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1111 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1112 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1113 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1114
1115 _ASUNAME
1116
1117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1118 for as_dir in $PATH
1119 do
1120   IFS=$as_save_IFS
1121   test -z "$as_dir" && as_dir=.
1122   echo "PATH: $as_dir"
1123 done
1124
1125 } >&5
1126
1127 cat >&5 <<_ACEOF
1128
1129
1130 ## ----------- ##
1131 ## Core tests. ##
1132 ## ----------- ##
1133
1134 _ACEOF
1135
1136
1137 # Keep a trace of the command line.
1138 # Strip out --no-create and --no-recursion so they do not pile up.
1139 # Strip out --silent because we don't want to record it for future runs.
1140 # Also quote any args containing shell meta-characters.
1141 # Make two passes to allow for proper duplicate-argument suppression.
1142 ac_configure_args=
1143 ac_configure_args0=
1144 ac_configure_args1=
1145 ac_sep=
1146 ac_must_keep_next=false
1147 for ac_pass in 1 2
1148 do
1149   for ac_arg
1150   do
1151     case $ac_arg in
1152     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1153     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154     | -silent | --silent | --silen | --sile | --sil)
1155       continue ;;
1156     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1157       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1158     esac
1159     case $ac_pass in
1160     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1161     2)
1162       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1163       if test $ac_must_keep_next = true; then
1164         ac_must_keep_next=false # Got value, back to normal.
1165       else
1166         case $ac_arg in
1167           *=* | --config-cache | -C | -disable-* | --disable-* \
1168           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1169           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1170           | -with-* | --with-* | -without-* | --without-* | --x)
1171             case "$ac_configure_args0 " in
1172               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1173             esac
1174             ;;
1175           -* ) ac_must_keep_next=true ;;
1176         esac
1177       fi
1178       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1179       # Get rid of the leading space.
1180       ac_sep=" "
1181       ;;
1182     esac
1183   done
1184 done
1185 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1186 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1187
1188 # When interrupted or exit'd, cleanup temporary files, and complete
1189 # config.log.  We remove comments because anyway the quotes in there
1190 # would cause problems or look ugly.
1191 # WARNING: Be sure not to use single quotes in there, as some shells,
1192 # such as our DU 5.0 friend, will then `close' the trap.
1193 trap 'exit_status=$?
1194   # Save into config.log some information that might help in debugging.
1195   {
1196     echo
1197
1198     cat <<\_ASBOX
1199 ## ---------------- ##
1200 ## Cache variables. ##
1201 ## ---------------- ##
1202 _ASBOX
1203     echo
1204     # The following way of writing the cache mishandles newlines in values,
1205 {
1206   (set) 2>&1 |
1207     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1208     *ac_space=\ *)
1209       sed -n \
1210         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1211           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1212       ;;
1213     *)
1214       sed -n \
1215         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1216       ;;
1217     esac;
1218 }
1219     echo
1220
1221     cat <<\_ASBOX
1222 ## ----------------- ##
1223 ## Output variables. ##
1224 ## ----------------- ##
1225 _ASBOX
1226     echo
1227     for ac_var in $ac_subst_vars
1228     do
1229       eval ac_val=$`echo $ac_var`
1230       echo "$ac_var='"'"'$ac_val'"'"'"
1231     done | sort
1232     echo
1233
1234     if test -n "$ac_subst_files"; then
1235       cat <<\_ASBOX
1236 ## ------------- ##
1237 ## Output files. ##
1238 ## ------------- ##
1239 _ASBOX
1240       echo
1241       for ac_var in $ac_subst_files
1242       do
1243         eval ac_val=$`echo $ac_var`
1244         echo "$ac_var='"'"'$ac_val'"'"'"
1245       done | sort
1246       echo
1247     fi
1248
1249     if test -s confdefs.h; then
1250       cat <<\_ASBOX
1251 ## ----------- ##
1252 ## confdefs.h. ##
1253 ## ----------- ##
1254 _ASBOX
1255       echo
1256       sed "/^$/d" confdefs.h | sort
1257       echo
1258     fi
1259     test "$ac_signal" != 0 &&
1260       echo "$as_me: caught signal $ac_signal"
1261     echo "$as_me: exit $exit_status"
1262   } >&5
1263   rm -f core *.core &&
1264   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1265     exit $exit_status
1266      ' 0
1267 for ac_signal in 1 2 13 15; do
1268   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1269 done
1270 ac_signal=0
1271
1272 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1273 rm -rf conftest* confdefs.h
1274 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1275 echo >confdefs.h
1276
1277 # Predefined preprocessor variables.
1278
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_NAME "$PACKAGE_NAME"
1281 _ACEOF
1282
1283
1284 cat >>confdefs.h <<_ACEOF
1285 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1286 _ACEOF
1287
1288
1289 cat >>confdefs.h <<_ACEOF
1290 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1291 _ACEOF
1292
1293
1294 cat >>confdefs.h <<_ACEOF
1295 #define PACKAGE_STRING "$PACKAGE_STRING"
1296 _ACEOF
1297
1298
1299 cat >>confdefs.h <<_ACEOF
1300 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1301 _ACEOF
1302
1303
1304 # Let the site file select an alternate cache file if it wants to.
1305 # Prefer explicitly selected file to automatically selected ones.
1306 if test -z "$CONFIG_SITE"; then
1307   if test "x$prefix" != xNONE; then
1308     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1309   else
1310     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1311   fi
1312 fi
1313 for ac_site_file in $CONFIG_SITE; do
1314   if test -r "$ac_site_file"; then
1315     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1316 echo "$as_me: loading site script $ac_site_file" >&6;}
1317     sed 's/^/| /' "$ac_site_file" >&5
1318     . "$ac_site_file"
1319   fi
1320 done
1321
1322 if test -r "$cache_file"; then
1323   # Some versions of bash will fail to source /dev/null (special
1324   # files actually), so we avoid doing that.
1325   if test -f "$cache_file"; then
1326     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1327 echo "$as_me: loading cache $cache_file" >&6;}
1328     case $cache_file in
1329       [\\/]* | ?:[\\/]* ) . $cache_file;;
1330       *)                      . ./$cache_file;;
1331     esac
1332   fi
1333 else
1334   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1335 echo "$as_me: creating cache $cache_file" >&6;}
1336   >$cache_file
1337 fi
1338
1339 # Check that the precious variables saved in the cache have kept the same
1340 # value.
1341 ac_cache_corrupted=false
1342 for ac_var in `(set) 2>&1 |
1343                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1344   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1345   eval ac_new_set=\$ac_env_${ac_var}_set
1346   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1347   eval ac_new_val="\$ac_env_${ac_var}_value"
1348   case $ac_old_set,$ac_new_set in
1349     set,)
1350       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1351 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1352       ac_cache_corrupted=: ;;
1353     ,set)
1354       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1355 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1356       ac_cache_corrupted=: ;;
1357     ,);;
1358     *)
1359       if test "x$ac_old_val" != "x$ac_new_val"; then
1360         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1361 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1362         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1363 echo "$as_me:   former value:  $ac_old_val" >&2;}
1364         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1365 echo "$as_me:   current value: $ac_new_val" >&2;}
1366         ac_cache_corrupted=:
1367       fi;;
1368   esac
1369   # Pass precious variables to config.status.
1370   if test "$ac_new_set" = set; then
1371     case $ac_new_val in
1372     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1373       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1374     *) ac_arg=$ac_var=$ac_new_val ;;
1375     esac
1376     case " $ac_configure_args " in
1377       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1378       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1379     esac
1380   fi
1381 done
1382 if $ac_cache_corrupted; then
1383   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1384 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1385   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1386 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1387    { (exit 1); exit 1; }; }
1388 fi
1389
1390 ac_ext=c
1391 ac_cpp='$CPP $CPPFLAGS'
1392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414 BUILD_DIR=`pwd`
1415 cd ..
1416 TOP_DIR=`pwd`
1417 cd ${BUILD_DIR}
1418
1419
1420 ac_aux_dir=
1421 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1422   if test -f $ac_dir/install-sh; then
1423     ac_aux_dir=$ac_dir
1424     ac_install_sh="$ac_aux_dir/install-sh -c"
1425     break
1426   elif test -f $ac_dir/install.sh; then
1427     ac_aux_dir=$ac_dir
1428     ac_install_sh="$ac_aux_dir/install.sh -c"
1429     break
1430   elif test -f $ac_dir/shtool; then
1431     ac_aux_dir=$ac_dir
1432     ac_install_sh="$ac_aux_dir/shtool install -c"
1433     break
1434   fi
1435 done
1436 if test -z "$ac_aux_dir"; then
1437   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1438 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1439    { (exit 1); exit 1; }; }
1440 fi
1441 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1442 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1443 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1444
1445           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1446
1447
1448
1449
1450
1451 for ac_prog in true
1452 do
1453   # Extract the first word of "$ac_prog", so it can be a program name with args.
1454 set dummy $ac_prog; ac_word=$2
1455 echo "$as_me:$LINENO: checking for $ac_word" >&5
1456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1458   echo $ECHO_N "(cached) $ECHO_C" >&6
1459 else
1460   case $TRUEPRG in
1461   [\\/]* | ?:[\\/]*)
1462   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1463   ;;
1464   *)
1465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466 for as_dir in $PATH
1467 do
1468   IFS=$as_save_IFS
1469   test -z "$as_dir" && as_dir=.
1470   for ac_exec_ext in '' $ac_executable_extensions; do
1471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1474     break 2
1475   fi
1476 done
1477 done
1478
1479   ;;
1480 esac
1481 fi
1482 TRUEPRG=$ac_cv_path_TRUEPRG
1483
1484 if test -n "$TRUEPRG"; then
1485   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1486 echo "${ECHO_T}$TRUEPRG" >&6
1487 else
1488   echo "$as_me:$LINENO: result: no" >&5
1489 echo "${ECHO_T}no" >&6
1490 fi
1491
1492   test -n "$TRUEPRG" && break
1493 done
1494 test -n "$TRUEPRG" || TRUEPRG=":"
1495
1496 for ac_prog in false
1497 do
1498   # Extract the first word of "$ac_prog", so it can be a program name with args.
1499 set dummy $ac_prog; ac_word=$2
1500 echo "$as_me:$LINENO: checking for $ac_word" >&5
1501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1503   echo $ECHO_N "(cached) $ECHO_C" >&6
1504 else
1505   case $FALSEPRG in
1506   [\\/]* | ?:[\\/]*)
1507   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1508   ;;
1509   *)
1510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 for as_dir in $PATH
1512 do
1513   IFS=$as_save_IFS
1514   test -z "$as_dir" && as_dir=.
1515   for ac_exec_ext in '' $ac_executable_extensions; do
1516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519     break 2
1520   fi
1521 done
1522 done
1523
1524   ;;
1525 esac
1526 fi
1527 FALSEPRG=$ac_cv_path_FALSEPRG
1528
1529 if test -n "$FALSEPRG"; then
1530   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1531 echo "${ECHO_T}$FALSEPRG" >&6
1532 else
1533   echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1535 fi
1536
1537   test -n "$FALSEPRG" && break
1538 done
1539 test -n "$FALSEPRG" || FALSEPRG=":"
1540
1541
1542
1543 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1544 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1545 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1546 echo "configuring for bacula $VERSION ($DATE)"
1547
1548
1549
1550 ac_ext=c
1551 ac_cpp='$CPP $CPPFLAGS'
1552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1555 if test -n "$ac_tool_prefix"; then
1556   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1557 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_CC+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   if test -n "$CC"; then
1564   ac_cv_prog_CC="$CC" # Let the user override the test.
1565 else
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1568 do
1569   IFS=$as_save_IFS
1570   test -z "$as_dir" && as_dir=.
1571   for ac_exec_ext in '' $ac_executable_extensions; do
1572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575     break 2
1576   fi
1577 done
1578 done
1579
1580 fi
1581 fi
1582 CC=$ac_cv_prog_CC
1583 if test -n "$CC"; then
1584   echo "$as_me:$LINENO: result: $CC" >&5
1585 echo "${ECHO_T}$CC" >&6
1586 else
1587   echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1589 fi
1590
1591 fi
1592 if test -z "$ac_cv_prog_CC"; then
1593   ac_ct_CC=$CC
1594   # Extract the first word of "gcc", so it can be a program name with args.
1595 set dummy gcc; ac_word=$2
1596 echo "$as_me:$LINENO: checking for $ac_word" >&5
1597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1599   echo $ECHO_N "(cached) $ECHO_C" >&6
1600 else
1601   if test -n "$ac_ct_CC"; then
1602   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1603 else
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 for as_dir in $PATH
1606 do
1607   IFS=$as_save_IFS
1608   test -z "$as_dir" && as_dir=.
1609   for ac_exec_ext in '' $ac_executable_extensions; do
1610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1611     ac_cv_prog_ac_ct_CC="gcc"
1612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1613     break 2
1614   fi
1615 done
1616 done
1617
1618 fi
1619 fi
1620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1621 if test -n "$ac_ct_CC"; then
1622   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1623 echo "${ECHO_T}$ac_ct_CC" >&6
1624 else
1625   echo "$as_me:$LINENO: result: no" >&5
1626 echo "${ECHO_T}no" >&6
1627 fi
1628
1629   CC=$ac_ct_CC
1630 else
1631   CC="$ac_cv_prog_CC"
1632 fi
1633
1634 if test -z "$CC"; then
1635   if test -n "$ac_tool_prefix"; then
1636   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1637 set dummy ${ac_tool_prefix}cc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_CC+set}" = set; then
1641   echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643   if test -n "$CC"; then
1644   ac_cv_prog_CC="$CC" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   for ac_exec_ext in '' $ac_executable_extensions; do
1652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653     ac_cv_prog_CC="${ac_tool_prefix}cc"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656   fi
1657 done
1658 done
1659
1660 fi
1661 fi
1662 CC=$ac_cv_prog_CC
1663 if test -n "$CC"; then
1664   echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1666 else
1667   echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1669 fi
1670
1671 fi
1672 if test -z "$ac_cv_prog_CC"; then
1673   ac_ct_CC=$CC
1674   # Extract the first word of "cc", so it can be a program name with args.
1675 set dummy cc; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1679   echo $ECHO_N "(cached) $ECHO_C" >&6
1680 else
1681   if test -n "$ac_ct_CC"; then
1682   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1683 else
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 for as_dir in $PATH
1686 do
1687   IFS=$as_save_IFS
1688   test -z "$as_dir" && as_dir=.
1689   for ac_exec_ext in '' $ac_executable_extensions; do
1690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691     ac_cv_prog_ac_ct_CC="cc"
1692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693     break 2
1694   fi
1695 done
1696 done
1697
1698 fi
1699 fi
1700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1701 if test -n "$ac_ct_CC"; then
1702   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1703 echo "${ECHO_T}$ac_ct_CC" >&6
1704 else
1705   echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1707 fi
1708
1709   CC=$ac_ct_CC
1710 else
1711   CC="$ac_cv_prog_CC"
1712 fi
1713
1714 fi
1715 if test -z "$CC"; then
1716   # Extract the first word of "cc", so it can be a program name with args.
1717 set dummy cc; ac_word=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_CC+set}" = set; then
1721   echo $ECHO_N "(cached) $ECHO_C" >&6
1722 else
1723   if test -n "$CC"; then
1724   ac_cv_prog_CC="$CC" # Let the user override the test.
1725 else
1726   ac_prog_rejected=no
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 for as_dir in $PATH
1729 do
1730   IFS=$as_save_IFS
1731   test -z "$as_dir" && as_dir=.
1732   for ac_exec_ext in '' $ac_executable_extensions; do
1733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1735        ac_prog_rejected=yes
1736        continue
1737      fi
1738     ac_cv_prog_CC="cc"
1739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740     break 2
1741   fi
1742 done
1743 done
1744
1745 if test $ac_prog_rejected = yes; then
1746   # We found a bogon in the path, so make sure we never use it.
1747   set dummy $ac_cv_prog_CC
1748   shift
1749   if test $# != 0; then
1750     # We chose a different compiler from the bogus one.
1751     # However, it has the same basename, so the bogon will be chosen
1752     # first if we set CC to just the basename; use the full file name.
1753     shift
1754     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1755   fi
1756 fi
1757 fi
1758 fi
1759 CC=$ac_cv_prog_CC
1760 if test -n "$CC"; then
1761   echo "$as_me:$LINENO: result: $CC" >&5
1762 echo "${ECHO_T}$CC" >&6
1763 else
1764   echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768 fi
1769 if test -z "$CC"; then
1770   if test -n "$ac_tool_prefix"; then
1771   for ac_prog in cl
1772   do
1773     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1775 echo "$as_me:$LINENO: checking for $ac_word" >&5
1776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777 if test "${ac_cv_prog_CC+set}" = set; then
1778   echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780   if test -n "$CC"; then
1781   ac_cv_prog_CC="$CC" # Let the user override the test.
1782 else
1783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784 for as_dir in $PATH
1785 do
1786   IFS=$as_save_IFS
1787   test -z "$as_dir" && as_dir=.
1788   for ac_exec_ext in '' $ac_executable_extensions; do
1789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1790     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792     break 2
1793   fi
1794 done
1795 done
1796
1797 fi
1798 fi
1799 CC=$ac_cv_prog_CC
1800 if test -n "$CC"; then
1801   echo "$as_me:$LINENO: result: $CC" >&5
1802 echo "${ECHO_T}$CC" >&6
1803 else
1804   echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1806 fi
1807
1808     test -n "$CC" && break
1809   done
1810 fi
1811 if test -z "$CC"; then
1812   ac_ct_CC=$CC
1813   for ac_prog in cl
1814 do
1815   # Extract the first word of "$ac_prog", so it can be a program name with args.
1816 set dummy $ac_prog; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1820   echo $ECHO_N "(cached) $ECHO_C" >&6
1821 else
1822   if test -n "$ac_ct_CC"; then
1823   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1824 else
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 for as_dir in $PATH
1827 do
1828   IFS=$as_save_IFS
1829   test -z "$as_dir" && as_dir=.
1830   for ac_exec_ext in '' $ac_executable_extensions; do
1831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832     ac_cv_prog_ac_ct_CC="$ac_prog"
1833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834     break 2
1835   fi
1836 done
1837 done
1838
1839 fi
1840 fi
1841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1842 if test -n "$ac_ct_CC"; then
1843   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1844 echo "${ECHO_T}$ac_ct_CC" >&6
1845 else
1846   echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1848 fi
1849
1850   test -n "$ac_ct_CC" && break
1851 done
1852
1853   CC=$ac_ct_CC
1854 fi
1855
1856 fi
1857
1858
1859 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1860 See \`config.log' for more details." >&5
1861 echo "$as_me: error: no acceptable C compiler found in \$PATH
1862 See \`config.log' for more details." >&2;}
1863    { (exit 1); exit 1; }; }
1864
1865 # Provide some information about the compiler.
1866 echo "$as_me:$LINENO:" \
1867      "checking for C compiler version" >&5
1868 ac_compiler=`set X $ac_compile; echo $2`
1869 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1870   (eval $ac_compiler --version </dev/null >&5) 2>&5
1871   ac_status=$?
1872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873   (exit $ac_status); }
1874 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1875   (eval $ac_compiler -v </dev/null >&5) 2>&5
1876   ac_status=$?
1877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878   (exit $ac_status); }
1879 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1880   (eval $ac_compiler -V </dev/null >&5) 2>&5
1881   ac_status=$?
1882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883   (exit $ac_status); }
1884
1885 cat >conftest.$ac_ext <<_ACEOF
1886 /* confdefs.h.  */
1887 _ACEOF
1888 cat confdefs.h >>conftest.$ac_ext
1889 cat >>conftest.$ac_ext <<_ACEOF
1890 /* end confdefs.h.  */
1891
1892 int
1893 main ()
1894 {
1895
1896   ;
1897   return 0;
1898 }
1899 _ACEOF
1900 ac_clean_files_save=$ac_clean_files
1901 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1902 # Try to create an executable without -o first, disregard a.out.
1903 # It will help us diagnose broken compilers, and finding out an intuition
1904 # of exeext.
1905 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1906 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1907 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1908 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1909   (eval $ac_link_default) 2>&5
1910   ac_status=$?
1911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912   (exit $ac_status); }; then
1913   # Find the output, starting from the most likely.  This scheme is
1914 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1915 # resort.
1916
1917 # Be careful to initialize this variable, since it used to be cached.
1918 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1919 ac_cv_exeext=
1920 # b.out is created by i960 compilers.
1921 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1922 do
1923   test -f "$ac_file" || continue
1924   case $ac_file in
1925     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1926         ;;
1927     conftest.$ac_ext )
1928         # This is the source file.
1929         ;;
1930     [ab].out )
1931         # We found the default executable, but exeext='' is most
1932         # certainly right.
1933         break;;
1934     *.* )
1935         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1936         # FIXME: I believe we export ac_cv_exeext for Libtool,
1937         # but it would be cool to find out if it's true.  Does anybody
1938         # maintain Libtool? --akim.
1939         export ac_cv_exeext
1940         break;;
1941     * )
1942         break;;
1943   esac
1944 done
1945 else
1946   echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1948
1949 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1950 See \`config.log' for more details." >&5
1951 echo "$as_me: error: C compiler cannot create executables
1952 See \`config.log' for more details." >&2;}
1953    { (exit 77); exit 77; }; }
1954 fi
1955
1956 ac_exeext=$ac_cv_exeext
1957 echo "$as_me:$LINENO: result: $ac_file" >&5
1958 echo "${ECHO_T}$ac_file" >&6
1959
1960 # Check the compiler produces executables we can run.  If not, either
1961 # the compiler is broken, or we cross compile.
1962 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1963 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1964 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1965 # If not cross compiling, check that we can run a simple program.
1966 if test "$cross_compiling" != yes; then
1967   if { ac_try='./$ac_file'
1968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1969   (eval $ac_try) 2>&5
1970   ac_status=$?
1971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972   (exit $ac_status); }; }; then
1973     cross_compiling=no
1974   else
1975     if test "$cross_compiling" = maybe; then
1976         cross_compiling=yes
1977     else
1978         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1979 If you meant to cross compile, use \`--host'.
1980 See \`config.log' for more details." >&5
1981 echo "$as_me: error: cannot run C compiled programs.
1982 If you meant to cross compile, use \`--host'.
1983 See \`config.log' for more details." >&2;}
1984    { (exit 1); exit 1; }; }
1985     fi
1986   fi
1987 fi
1988 echo "$as_me:$LINENO: result: yes" >&5
1989 echo "${ECHO_T}yes" >&6
1990
1991 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1992 ac_clean_files=$ac_clean_files_save
1993 # Check the compiler produces executables we can run.  If not, either
1994 # the compiler is broken, or we cross compile.
1995 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1996 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1997 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1998 echo "${ECHO_T}$cross_compiling" >&6
1999
2000 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2001 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2003   (eval $ac_link) 2>&5
2004   ac_status=$?
2005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006   (exit $ac_status); }; then
2007   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2008 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2009 # work properly (i.e., refer to `conftest.exe'), while it won't with
2010 # `rm'.
2011 for ac_file in conftest.exe conftest conftest.*; do
2012   test -f "$ac_file" || continue
2013   case $ac_file in
2014     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2015     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2016           export ac_cv_exeext
2017           break;;
2018     * ) break;;
2019   esac
2020 done
2021 else
2022   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2023 See \`config.log' for more details." >&5
2024 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2025 See \`config.log' for more details." >&2;}
2026    { (exit 1); exit 1; }; }
2027 fi
2028
2029 rm -f conftest$ac_cv_exeext
2030 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2031 echo "${ECHO_T}$ac_cv_exeext" >&6
2032
2033 rm -f conftest.$ac_ext
2034 EXEEXT=$ac_cv_exeext
2035 ac_exeext=$EXEEXT
2036 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2037 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2038 if test "${ac_cv_objext+set}" = set; then
2039   echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041   cat >conftest.$ac_ext <<_ACEOF
2042 /* confdefs.h.  */
2043 _ACEOF
2044 cat confdefs.h >>conftest.$ac_ext
2045 cat >>conftest.$ac_ext <<_ACEOF
2046 /* end confdefs.h.  */
2047
2048 int
2049 main ()
2050 {
2051
2052   ;
2053   return 0;
2054 }
2055 _ACEOF
2056 rm -f conftest.o conftest.obj
2057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2058   (eval $ac_compile) 2>&5
2059   ac_status=$?
2060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061   (exit $ac_status); }; then
2062   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2063   case $ac_file in
2064     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2065     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2066        break;;
2067   esac
2068 done
2069 else
2070   echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2072
2073 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2076 See \`config.log' for more details." >&2;}
2077    { (exit 1); exit 1; }; }
2078 fi
2079
2080 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2081 fi
2082 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2083 echo "${ECHO_T}$ac_cv_objext" >&6
2084 OBJEXT=$ac_cv_objext
2085 ac_objext=$OBJEXT
2086 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2087 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2088 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2089   echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091   cat >conftest.$ac_ext <<_ACEOF
2092 /* confdefs.h.  */
2093 _ACEOF
2094 cat confdefs.h >>conftest.$ac_ext
2095 cat >>conftest.$ac_ext <<_ACEOF
2096 /* end confdefs.h.  */
2097
2098 int
2099 main ()
2100 {
2101 #ifndef __GNUC__
2102        choke me
2103 #endif
2104
2105   ;
2106   return 0;
2107 }
2108 _ACEOF
2109 rm -f conftest.$ac_objext
2110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2111   (eval $ac_compile) 2>conftest.er1
2112   ac_status=$?
2113   grep -v '^ *+' conftest.er1 >conftest.err
2114   rm -f conftest.er1
2115   cat conftest.err >&5
2116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117   (exit $ac_status); } &&
2118          { ac_try='test -z "$ac_c_werror_flag"
2119                          || test ! -s conftest.err'
2120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121   (eval $ac_try) 2>&5
2122   ac_status=$?
2123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124   (exit $ac_status); }; } &&
2125          { ac_try='test -s conftest.$ac_objext'
2126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127   (eval $ac_try) 2>&5
2128   ac_status=$?
2129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130   (exit $ac_status); }; }; then
2131   ac_compiler_gnu=yes
2132 else
2133   echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2135
2136 ac_compiler_gnu=no
2137 fi
2138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2139 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2140
2141 fi
2142 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2143 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2144 GCC=`test $ac_compiler_gnu = yes && echo yes`
2145 ac_test_CFLAGS=${CFLAGS+set}
2146 ac_save_CFLAGS=$CFLAGS
2147 CFLAGS="-g"
2148 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2149 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2150 if test "${ac_cv_prog_cc_g+set}" = set; then
2151   echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153   cat >conftest.$ac_ext <<_ACEOF
2154 /* confdefs.h.  */
2155 _ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h.  */
2159
2160 int
2161 main ()
2162 {
2163
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170   (eval $ac_compile) 2>conftest.er1
2171   ac_status=$?
2172   grep -v '^ *+' conftest.er1 >conftest.err
2173   rm -f conftest.er1
2174   cat conftest.err >&5
2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176   (exit $ac_status); } &&
2177          { ac_try='test -z "$ac_c_werror_flag"
2178                          || test ! -s conftest.err'
2179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180   (eval $ac_try) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); }; } &&
2184          { ac_try='test -s conftest.$ac_objext'
2185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186   (eval $ac_try) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; }; then
2190   ac_cv_prog_cc_g=yes
2191 else
2192   echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2194
2195 ac_cv_prog_cc_g=no
2196 fi
2197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2198 fi
2199 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2200 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2201 if test "$ac_test_CFLAGS" = set; then
2202   CFLAGS=$ac_save_CFLAGS
2203 elif test $ac_cv_prog_cc_g = yes; then
2204   if test "$GCC" = yes; then
2205     CFLAGS="-g -O2"
2206   else
2207     CFLAGS="-g"
2208   fi
2209 else
2210   if test "$GCC" = yes; then
2211     CFLAGS="-O2"
2212   else
2213     CFLAGS=
2214   fi
2215 fi
2216 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2217 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2218 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2219   echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221   ac_cv_prog_cc_stdc=no
2222 ac_save_CC=$CC
2223 cat >conftest.$ac_ext <<_ACEOF
2224 /* confdefs.h.  */
2225 _ACEOF
2226 cat confdefs.h >>conftest.$ac_ext
2227 cat >>conftest.$ac_ext <<_ACEOF
2228 /* end confdefs.h.  */
2229 #include <stdarg.h>
2230 #include <stdio.h>
2231 #include <sys/types.h>
2232 #include <sys/stat.h>
2233 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2234 struct buf { int x; };
2235 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2236 static char *e (p, i)
2237      char **p;
2238      int i;
2239 {
2240   return p[i];
2241 }
2242 static char *f (char * (*g) (char **, int), char **p, ...)
2243 {
2244   char *s;
2245   va_list v;
2246   va_start (v,p);
2247   s = g (p, va_arg (v,int));
2248   va_end (v);
2249   return s;
2250 }
2251
2252 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2253    function prototypes and stuff, but not '\xHH' hex character constants.
2254    These don't provoke an error unfortunately, instead are silently treated
2255    as 'x'.  The following induces an error, until -std1 is added to get
2256    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2257    array size at least.  It's necessary to write '\x00'==0 to get something
2258    that's true only with -std1.  */
2259 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2260
2261 int test (int i, double x);
2262 struct s1 {int (*f) (int a);};
2263 struct s2 {int (*f) (double a);};
2264 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2265 int argc;
2266 char **argv;
2267 int
2268 main ()
2269 {
2270 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2271   ;
2272   return 0;
2273 }
2274 _ACEOF
2275 # Don't try gcc -ansi; that turns off useful extensions and
2276 # breaks some systems' header files.
2277 # AIX                   -qlanglvl=ansi
2278 # Ultrix and OSF/1      -std1
2279 # HP-UX 10.20 and later -Ae
2280 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2281 # SVR4                  -Xc -D__EXTENSIONS__
2282 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2283 do
2284   CC="$ac_save_CC $ac_arg"
2285   rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287   (eval $ac_compile) 2>conftest.er1
2288   ac_status=$?
2289   grep -v '^ *+' conftest.er1 >conftest.err
2290   rm -f conftest.er1
2291   cat conftest.err >&5
2292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293   (exit $ac_status); } &&
2294          { ac_try='test -z "$ac_c_werror_flag"
2295                          || test ! -s conftest.err'
2296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297   (eval $ac_try) 2>&5
2298   ac_status=$?
2299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300   (exit $ac_status); }; } &&
2301          { ac_try='test -s conftest.$ac_objext'
2302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303   (eval $ac_try) 2>&5
2304   ac_status=$?
2305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306   (exit $ac_status); }; }; then
2307   ac_cv_prog_cc_stdc=$ac_arg
2308 break
2309 else
2310   echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2312
2313 fi
2314 rm -f conftest.err conftest.$ac_objext
2315 done
2316 rm -f conftest.$ac_ext conftest.$ac_objext
2317 CC=$ac_save_CC
2318
2319 fi
2320
2321 case "x$ac_cv_prog_cc_stdc" in
2322   x|xno)
2323     echo "$as_me:$LINENO: result: none needed" >&5
2324 echo "${ECHO_T}none needed" >&6 ;;
2325   *)
2326     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2327 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2328     CC="$CC $ac_cv_prog_cc_stdc" ;;
2329 esac
2330
2331 # Some people use a C++ compiler to compile C.  Since we use `exit',
2332 # in C++ we need to declare it.  In case someone uses the same compiler
2333 # for both compiling C and C++ we need to have the C++ compiler decide
2334 # the declaration of exit, since it's the most demanding environment.
2335 cat >conftest.$ac_ext <<_ACEOF
2336 #ifndef __cplusplus
2337   choke me
2338 #endif
2339 _ACEOF
2340 rm -f conftest.$ac_objext
2341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2342   (eval $ac_compile) 2>conftest.er1
2343   ac_status=$?
2344   grep -v '^ *+' conftest.er1 >conftest.err
2345   rm -f conftest.er1
2346   cat conftest.err >&5
2347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348   (exit $ac_status); } &&
2349          { ac_try='test -z "$ac_c_werror_flag"
2350                          || test ! -s conftest.err'
2351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352   (eval $ac_try) 2>&5
2353   ac_status=$?
2354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355   (exit $ac_status); }; } &&
2356          { ac_try='test -s conftest.$ac_objext'
2357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358   (eval $ac_try) 2>&5
2359   ac_status=$?
2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); }; }; then
2362   for ac_declaration in \
2363    '' \
2364    'extern "C" void std::exit (int) throw (); using std::exit;' \
2365    'extern "C" void std::exit (int); using std::exit;' \
2366    'extern "C" void exit (int) throw ();' \
2367    'extern "C" void exit (int);' \
2368    'void exit (int);'
2369 do
2370   cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h.  */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h.  */
2376 $ac_declaration
2377 #include <stdlib.h>
2378 int
2379 main ()
2380 {
2381 exit (42);
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388   (eval $ac_compile) 2>conftest.er1
2389   ac_status=$?
2390   grep -v '^ *+' conftest.er1 >conftest.err
2391   rm -f conftest.er1
2392   cat conftest.err >&5
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); } &&
2395          { ac_try='test -z "$ac_c_werror_flag"
2396                          || test ! -s conftest.err'
2397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398   (eval $ac_try) 2>&5
2399   ac_status=$?
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); }; } &&
2402          { ac_try='test -s conftest.$ac_objext'
2403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404   (eval $ac_try) 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; }; then
2408   :
2409 else
2410   echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2412
2413 continue
2414 fi
2415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2416   cat >conftest.$ac_ext <<_ACEOF
2417 /* confdefs.h.  */
2418 _ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h.  */
2422 $ac_declaration
2423 int
2424 main ()
2425 {
2426 exit (42);
2427   ;
2428   return 0;
2429 }
2430 _ACEOF
2431 rm -f conftest.$ac_objext
2432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433   (eval $ac_compile) 2>conftest.er1
2434   ac_status=$?
2435   grep -v '^ *+' conftest.er1 >conftest.err
2436   rm -f conftest.er1
2437   cat conftest.err >&5
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); } &&
2440          { ac_try='test -z "$ac_c_werror_flag"
2441                          || test ! -s conftest.err'
2442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443   (eval $ac_try) 2>&5
2444   ac_status=$?
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); }; } &&
2447          { ac_try='test -s conftest.$ac_objext'
2448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449   (eval $ac_try) 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }; }; then
2453   break
2454 else
2455   echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2457
2458 fi
2459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2460 done
2461 rm -f conftest*
2462 if test -n "$ac_declaration"; then
2463   echo '#ifdef __cplusplus' >>confdefs.h
2464   echo $ac_declaration      >>confdefs.h
2465   echo '#endif'             >>confdefs.h
2466 fi
2467
2468 else
2469   echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 fi
2473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2474 ac_ext=c
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479
2480 ac_ext=cc
2481 ac_cpp='$CXXCPP $CPPFLAGS'
2482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2485 if test -n "$ac_tool_prefix"; then
2486   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2487   do
2488     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2490 echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2492 if test "${ac_cv_prog_CXX+set}" = set; then
2493   echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495   if test -n "$CXX"; then
2496   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2500 do
2501   IFS=$as_save_IFS
2502   test -z "$as_dir" && as_dir=.
2503   for ac_exec_ext in '' $ac_executable_extensions; do
2504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2505     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507     break 2
2508   fi
2509 done
2510 done
2511
2512 fi
2513 fi
2514 CXX=$ac_cv_prog_CXX
2515 if test -n "$CXX"; then
2516   echo "$as_me:$LINENO: result: $CXX" >&5
2517 echo "${ECHO_T}$CXX" >&6
2518 else
2519   echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6
2521 fi
2522
2523     test -n "$CXX" && break
2524   done
2525 fi
2526 if test -z "$CXX"; then
2527   ac_ct_CXX=$CXX
2528   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2529 do
2530   # Extract the first word of "$ac_prog", so it can be a program name with args.
2531 set dummy $ac_prog; ac_word=$2
2532 echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2534 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2535   echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537   if test -n "$ac_ct_CXX"; then
2538   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543   IFS=$as_save_IFS
2544   test -z "$as_dir" && as_dir=.
2545   for ac_exec_ext in '' $ac_executable_extensions; do
2546   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547     ac_cv_prog_ac_ct_CXX="$ac_prog"
2548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549     break 2
2550   fi
2551 done
2552 done
2553
2554 fi
2555 fi
2556 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2557 if test -n "$ac_ct_CXX"; then
2558   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2559 echo "${ECHO_T}$ac_ct_CXX" >&6
2560 else
2561   echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6
2563 fi
2564
2565   test -n "$ac_ct_CXX" && break
2566 done
2567 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2568
2569   CXX=$ac_ct_CXX
2570 fi
2571
2572
2573 # Provide some information about the compiler.
2574 echo "$as_me:$LINENO:" \
2575      "checking for C++ compiler version" >&5
2576 ac_compiler=`set X $ac_compile; echo $2`
2577 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2578   (eval $ac_compiler --version </dev/null >&5) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }
2582 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2583   (eval $ac_compiler -v </dev/null >&5) 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }
2587 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2588   (eval $ac_compiler -V </dev/null >&5) 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); }
2592
2593 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2594 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2595 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2596   echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598   cat >conftest.$ac_ext <<_ACEOF
2599 /* confdefs.h.  */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h.  */
2604
2605 int
2606 main ()
2607 {
2608 #ifndef __GNUC__
2609        choke me
2610 #endif
2611
2612   ;
2613   return 0;
2614 }
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618   (eval $ac_compile) 2>conftest.er1
2619   ac_status=$?
2620   grep -v '^ *+' conftest.er1 >conftest.err
2621   rm -f conftest.er1
2622   cat conftest.err >&5
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); } &&
2625          { ac_try='test -z "$ac_cxx_werror_flag"
2626                          || test ! -s conftest.err'
2627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; } &&
2632          { ac_try='test -s conftest.$ac_objext'
2633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634   (eval $ac_try) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); }; }; then
2638   ac_compiler_gnu=yes
2639 else
2640   echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643 ac_compiler_gnu=no
2644 fi
2645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2646 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2647
2648 fi
2649 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2650 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2651 GXX=`test $ac_compiler_gnu = yes && echo yes`
2652 ac_test_CXXFLAGS=${CXXFLAGS+set}
2653 ac_save_CXXFLAGS=$CXXFLAGS
2654 CXXFLAGS="-g"
2655 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2656 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2657 if test "${ac_cv_prog_cxx_g+set}" = set; then
2658   echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660   cat >conftest.$ac_ext <<_ACEOF
2661 /* confdefs.h.  */
2662 _ACEOF
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h.  */
2666
2667 int
2668 main ()
2669 {
2670
2671   ;
2672   return 0;
2673 }
2674 _ACEOF
2675 rm -f conftest.$ac_objext
2676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677   (eval $ac_compile) 2>conftest.er1
2678   ac_status=$?
2679   grep -v '^ *+' conftest.er1 >conftest.err
2680   rm -f conftest.er1
2681   cat conftest.err >&5
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); } &&
2684          { ac_try='test -z "$ac_cxx_werror_flag"
2685                          || test ! -s conftest.err'
2686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687   (eval $ac_try) 2>&5
2688   ac_status=$?
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); }; } &&
2691          { ac_try='test -s conftest.$ac_objext'
2692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693   (eval $ac_try) 2>&5
2694   ac_status=$?
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); }; }; then
2697   ac_cv_prog_cxx_g=yes
2698 else
2699   echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2701
2702 ac_cv_prog_cxx_g=no
2703 fi
2704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2705 fi
2706 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2707 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2708 if test "$ac_test_CXXFLAGS" = set; then
2709   CXXFLAGS=$ac_save_CXXFLAGS
2710 elif test $ac_cv_prog_cxx_g = yes; then
2711   if test "$GXX" = yes; then
2712     CXXFLAGS="-g -O2"
2713   else
2714     CXXFLAGS="-g"
2715   fi
2716 else
2717   if test "$GXX" = yes; then
2718     CXXFLAGS="-O2"
2719   else
2720     CXXFLAGS=
2721   fi
2722 fi
2723 for ac_declaration in \
2724    '' \
2725    'extern "C" void std::exit (int) throw (); using std::exit;' \
2726    'extern "C" void std::exit (int); using std::exit;' \
2727    'extern "C" void exit (int) throw ();' \
2728    'extern "C" void exit (int);' \
2729    'void exit (int);'
2730 do
2731   cat >conftest.$ac_ext <<_ACEOF
2732 /* confdefs.h.  */
2733 _ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h.  */
2737 $ac_declaration
2738 #include <stdlib.h>
2739 int
2740 main ()
2741 {
2742 exit (42);
2743   ;
2744   return 0;
2745 }
2746 _ACEOF
2747 rm -f conftest.$ac_objext
2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749   (eval $ac_compile) 2>conftest.er1
2750   ac_status=$?
2751   grep -v '^ *+' conftest.er1 >conftest.err
2752   rm -f conftest.er1
2753   cat conftest.err >&5
2754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); } &&
2756          { ac_try='test -z "$ac_cxx_werror_flag"
2757                          || test ! -s conftest.err'
2758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759   (eval $ac_try) 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; } &&
2763          { ac_try='test -s conftest.$ac_objext'
2764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765   (eval $ac_try) 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); }; }; then
2769   :
2770 else
2771   echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2773
2774 continue
2775 fi
2776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2777   cat >conftest.$ac_ext <<_ACEOF
2778 /* confdefs.h.  */
2779 _ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h.  */
2783 $ac_declaration
2784 int
2785 main ()
2786 {
2787 exit (42);
2788   ;
2789   return 0;
2790 }
2791 _ACEOF
2792 rm -f conftest.$ac_objext
2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794   (eval $ac_compile) 2>conftest.er1
2795   ac_status=$?
2796   grep -v '^ *+' conftest.er1 >conftest.err
2797   rm -f conftest.er1
2798   cat conftest.err >&5
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); } &&
2801          { ac_try='test -z "$ac_cxx_werror_flag"
2802                          || test ! -s conftest.err'
2803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804   (eval $ac_try) 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); }; } &&
2808          { ac_try='test -s conftest.$ac_objext'
2809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810   (eval $ac_try) 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }; }; then
2814   break
2815 else
2816   echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2818
2819 fi
2820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2821 done
2822 rm -f conftest*
2823 if test -n "$ac_declaration"; then
2824   echo '#ifdef __cplusplus' >>confdefs.h
2825   echo $ac_declaration      >>confdefs.h
2826   echo '#endif'             >>confdefs.h
2827 fi
2828
2829 ac_ext=c
2830 ac_cpp='$CPP $CPPFLAGS'
2831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2834
2835 if test "x$CC" != xcc; then
2836   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2837 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2838 else
2839   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2840 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2841 fi
2842 set dummy $CC; ac_cc=`echo $2 |
2843                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2844 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2845   echo $ECHO_N "(cached) $ECHO_C" >&6
2846 else
2847   cat >conftest.$ac_ext <<_ACEOF
2848 /* confdefs.h.  */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h.  */
2853
2854 int
2855 main ()
2856 {
2857
2858   ;
2859   return 0;
2860 }
2861 _ACEOF
2862 # Make sure it works both with $CC and with simple cc.
2863 # We do the test twice because some compilers refuse to overwrite an
2864 # existing .o file with -o, though they will create one.
2865 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2866 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867   (eval $ac_try) 2>&5
2868   ac_status=$?
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); } &&
2871    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); };
2876 then
2877   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2878   if test "x$CC" != xcc; then
2879     # Test first that cc exists at all.
2880     if { ac_try='cc -c conftest.$ac_ext >&5'
2881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882   (eval $ac_try) 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }; }; then
2886       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2887       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888   (eval $ac_try) 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); } &&
2892          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893   (eval $ac_try) 2>&5
2894   ac_status=$?
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); };
2897       then
2898         # cc works too.
2899         :
2900       else
2901         # cc exists but doesn't like -o.
2902         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2903       fi
2904     fi
2905   fi
2906 else
2907   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2908 fi
2909 rm -f conftest*
2910
2911 fi
2912 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2913   echo "$as_me:$LINENO: result: yes" >&5
2914 echo "${ECHO_T}yes" >&6
2915 else
2916   echo "$as_me:$LINENO: result: no" >&5
2917 echo "${ECHO_T}no" >&6
2918
2919 cat >>confdefs.h <<\_ACEOF
2920 #define NO_MINUS_C_MINUS_O 1
2921 _ACEOF
2922
2923 fi
2924
2925 ac_ext=c
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2931 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2932 # On Suns, sometimes $CPP names a directory.
2933 if test -n "$CPP" && test -d "$CPP"; then
2934   CPP=
2935 fi
2936 if test -z "$CPP"; then
2937   if test "${ac_cv_prog_CPP+set}" = set; then
2938   echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940       # Double quotes because CPP needs to be expanded
2941     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2942     do
2943       ac_preproc_ok=false
2944 for ac_c_preproc_warn_flag in '' yes
2945 do
2946   # Use a header file that comes with gcc, so configuring glibc
2947   # with a fresh cross-compiler works.
2948   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2949   # <limits.h> exists even on freestanding compilers.
2950   # On the NeXT, cc -E runs the code through the compiler's parser,
2951   # not just through cpp. "Syntax error" is here to catch this case.
2952   cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h.  */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h.  */
2958 #ifdef __STDC__
2959 # include <limits.h>
2960 #else
2961 # include <assert.h>
2962 #endif
2963                      Syntax error
2964 _ACEOF
2965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2967   ac_status=$?
2968   grep -v '^ *+' conftest.er1 >conftest.err
2969   rm -f conftest.er1
2970   cat conftest.err >&5
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); } >/dev/null; then
2973   if test -s conftest.err; then
2974     ac_cpp_err=$ac_c_preproc_warn_flag
2975     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2976   else
2977     ac_cpp_err=
2978   fi
2979 else
2980   ac_cpp_err=yes
2981 fi
2982 if test -z "$ac_cpp_err"; then
2983   :
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988   # Broken: fails on valid input.
2989 continue
2990 fi
2991 rm -f conftest.err conftest.$ac_ext
2992
2993   # OK, works on sane cases.  Now check whether non-existent headers
2994   # can be detected and how.
2995   cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h.  */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h.  */
3001 #include <ac_nonexistent.h>
3002 _ACEOF
3003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3005   ac_status=$?
3006   grep -v '^ *+' conftest.er1 >conftest.err
3007   rm -f conftest.er1
3008   cat conftest.err >&5
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); } >/dev/null; then
3011   if test -s conftest.err; then
3012     ac_cpp_err=$ac_c_preproc_warn_flag
3013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3014   else
3015     ac_cpp_err=
3016   fi
3017 else
3018   ac_cpp_err=yes
3019 fi
3020 if test -z "$ac_cpp_err"; then
3021   # Broken: success on invalid input.
3022 continue
3023 else
3024   echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3026
3027   # Passes both tests.
3028 ac_preproc_ok=:
3029 break
3030 fi
3031 rm -f conftest.err conftest.$ac_ext
3032
3033 done
3034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3035 rm -f conftest.err conftest.$ac_ext
3036 if $ac_preproc_ok; then
3037   break
3038 fi
3039
3040     done
3041     ac_cv_prog_CPP=$CPP
3042
3043 fi
3044   CPP=$ac_cv_prog_CPP
3045 else
3046   ac_cv_prog_CPP=$CPP
3047 fi
3048 echo "$as_me:$LINENO: result: $CPP" >&5
3049 echo "${ECHO_T}$CPP" >&6
3050 ac_preproc_ok=false
3051 for ac_c_preproc_warn_flag in '' yes
3052 do
3053   # Use a header file that comes with gcc, so configuring glibc
3054   # with a fresh cross-compiler works.
3055   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3056   # <limits.h> exists even on freestanding compilers.
3057   # On the NeXT, cc -E runs the code through the compiler's parser,
3058   # not just through cpp. "Syntax error" is here to catch this case.
3059   cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h.  */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h.  */
3065 #ifdef __STDC__
3066 # include <limits.h>
3067 #else
3068 # include <assert.h>
3069 #endif
3070                      Syntax error
3071 _ACEOF
3072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3074   ac_status=$?
3075   grep -v '^ *+' conftest.er1 >conftest.err
3076   rm -f conftest.er1
3077   cat conftest.err >&5
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); } >/dev/null; then
3080   if test -s conftest.err; then
3081     ac_cpp_err=$ac_c_preproc_warn_flag
3082     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3083   else
3084     ac_cpp_err=
3085   fi
3086 else
3087   ac_cpp_err=yes
3088 fi
3089 if test -z "$ac_cpp_err"; then
3090   :
3091 else
3092   echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095   # Broken: fails on valid input.
3096 continue
3097 fi
3098 rm -f conftest.err conftest.$ac_ext
3099
3100   # OK, works on sane cases.  Now check whether non-existent headers
3101   # can be detected and how.
3102   cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h.  */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h.  */
3108 #include <ac_nonexistent.h>
3109 _ACEOF
3110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3112   ac_status=$?
3113   grep -v '^ *+' conftest.er1 >conftest.err
3114   rm -f conftest.er1
3115   cat conftest.err >&5
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); } >/dev/null; then
3118   if test -s conftest.err; then
3119     ac_cpp_err=$ac_c_preproc_warn_flag
3120     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3121   else
3122     ac_cpp_err=
3123   fi
3124 else
3125   ac_cpp_err=yes
3126 fi
3127 if test -z "$ac_cpp_err"; then
3128   # Broken: success on invalid input.
3129 continue
3130 else
3131   echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3133
3134   # Passes both tests.
3135 ac_preproc_ok=:
3136 break
3137 fi
3138 rm -f conftest.err conftest.$ac_ext
3139
3140 done
3141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3142 rm -f conftest.err conftest.$ac_ext
3143 if $ac_preproc_ok; then
3144   :
3145 else
3146   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3147 See \`config.log' for more details." >&5
3148 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3149 See \`config.log' for more details." >&2;}
3150    { (exit 1); exit 1; }; }
3151 fi
3152
3153 ac_ext=c
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158
3159
3160 echo "$as_me:$LINENO: checking for egrep" >&5
3161 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3162 if test "${ac_cv_prog_egrep+set}" = set; then
3163   echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3166     then ac_cv_prog_egrep='grep -E'
3167     else ac_cv_prog_egrep='egrep'
3168     fi
3169 fi
3170 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3171 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3172  EGREP=$ac_cv_prog_egrep
3173
3174
3175 if test $ac_cv_c_compiler_gnu = yes; then
3176     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3177 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3178 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3179   echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181     ac_pattern="Autoconf.*'x'"
3182   cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h.  */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h.  */
3188 #include <sgtty.h>
3189 Autoconf TIOCGETP
3190 _ACEOF
3191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3192   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3193   ac_cv_prog_gcc_traditional=yes
3194 else
3195   ac_cv_prog_gcc_traditional=no
3196 fi
3197 rm -f conftest*
3198
3199
3200   if test $ac_cv_prog_gcc_traditional = no; then
3201     cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h.  */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h.  */
3207 #include <termio.h>
3208 Autoconf TCGETA
3209 _ACEOF
3210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3211   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3212   ac_cv_prog_gcc_traditional=yes
3213 fi
3214 rm -f conftest*
3215
3216   fi
3217 fi
3218 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3219 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3220   if test $ac_cv_prog_gcc_traditional = yes; then
3221     CC="$CC -traditional"
3222   fi
3223 fi
3224
3225 BASECC=`basename $CC`
3226 have_gcc=no
3227 if test "x$BASECC" = xgcc; then
3228    cat >>confdefs.h <<\_ACEOF
3229 #define HAVE_GCC 1
3230 _ACEOF
3231
3232    have_gcc=yes
3233 fi
3234 # Extract the first word of "$CXX", so it can be a program name with args.
3235 set dummy $CXX; ac_word=$2
3236 echo "$as_me:$LINENO: checking for $ac_word" >&5
3237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238 if test "${ac_cv_path_CXX+set}" = set; then
3239   echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241   case $CXX in
3242   [\\/]* | ?:[\\/]*)
3243   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3244   ;;
3245   *)
3246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249   IFS=$as_save_IFS
3250   test -z "$as_dir" && as_dir=.
3251   for ac_exec_ext in '' $ac_executable_extensions; do
3252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255     break 2
3256   fi
3257 done
3258 done
3259
3260   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3261   ;;
3262 esac
3263 fi
3264 CXX=$ac_cv_path_CXX
3265
3266 if test -n "$CXX"; then
3267   echo "$as_me:$LINENO: result: $CXX" >&5
3268 echo "${ECHO_T}$CXX" >&6
3269 else
3270   echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6
3272 fi
3273
3274 if test ! -e $CXX; then
3275    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3276 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3277    { (exit 1); exit 1; }; }
3278 fi
3279
3280 # Find a good install program.  We prefer a C program (faster),
3281 # so one script is as good as another.  But avoid the broken or
3282 # incompatible versions:
3283 # SysV /etc/install, /usr/sbin/install
3284 # SunOS /usr/etc/install
3285 # IRIX /sbin/install
3286 # AIX /bin/install
3287 # AmigaOS /C/install, which installs bootblocks on floppy discs
3288 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3289 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3290 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3291 # OS/2's system install, which has a completely different semantic
3292 # ./install, which can be erroneously created by make from ./install.sh.
3293 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3294 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3295 if test -z "$INSTALL"; then
3296 if test "${ac_cv_path_install+set}" = set; then
3297   echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302   IFS=$as_save_IFS
3303   test -z "$as_dir" && as_dir=.
3304   # Account for people who put trailing slashes in PATH elements.
3305 case $as_dir/ in
3306   ./ | .// | /cC/* | \
3307   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3308   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3309   /usr/ucb/* ) ;;
3310   *)
3311     # OSF1 and SCO ODT 3.0 have their own names for install.
3312     # Don't use installbsd from OSF since it installs stuff as root
3313     # by default.
3314     for ac_prog in ginstall scoinst install; do
3315       for ac_exec_ext in '' $ac_executable_extensions; do
3316         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3317           if test $ac_prog = install &&
3318             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3319             # AIX install.  It has an incompatible calling convention.
3320             :
3321           elif test $ac_prog = install &&
3322             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3323             # program-specific install script used by HP pwplus--don't use.
3324             :
3325           else
3326             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3327             break 3
3328           fi
3329         fi
3330       done
3331     done
3332     ;;
3333 esac
3334 done
3335
3336
3337 fi
3338   if test "${ac_cv_path_install+set}" = set; then
3339     INSTALL=$ac_cv_path_install
3340   else
3341     # As a last resort, use the slow shell script.  We don't cache a
3342     # path for INSTALL within a source directory, because that will
3343     # break other packages using the cache if that directory is
3344     # removed, or if the path is relative.
3345     INSTALL=$ac_install_sh
3346   fi
3347 fi
3348 echo "$as_me:$LINENO: result: $INSTALL" >&5
3349 echo "${ECHO_T}$INSTALL" >&6
3350
3351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3352 # It thinks the first close brace ends the variable substitution.
3353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3354
3355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3356
3357 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3358
3359 if test -n "$ac_tool_prefix"; then
3360   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3362 echo "$as_me:$LINENO: checking for $ac_word" >&5
3363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3364 if test "${ac_cv_prog_RANLIB+set}" = set; then
3365   echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367   if test -n "$RANLIB"; then
3368   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373   IFS=$as_save_IFS
3374   test -z "$as_dir" && as_dir=.
3375   for ac_exec_ext in '' $ac_executable_extensions; do
3376   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3379     break 2
3380   fi
3381 done
3382 done
3383
3384 fi
3385 fi
3386 RANLIB=$ac_cv_prog_RANLIB
3387 if test -n "$RANLIB"; then
3388   echo "$as_me:$LINENO: result: $RANLIB" >&5
3389 echo "${ECHO_T}$RANLIB" >&6
3390 else
3391   echo "$as_me:$LINENO: result: no" >&5
3392 echo "${ECHO_T}no" >&6
3393 fi
3394
3395 fi
3396 if test -z "$ac_cv_prog_RANLIB"; then
3397   ac_ct_RANLIB=$RANLIB
3398   # Extract the first word of "ranlib", so it can be a program name with args.
3399 set dummy ranlib; ac_word=$2
3400 echo "$as_me:$LINENO: checking for $ac_word" >&5
3401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3402 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3403   echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405   if test -n "$ac_ct_RANLIB"; then
3406   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411   IFS=$as_save_IFS
3412   test -z "$as_dir" && as_dir=.
3413   for ac_exec_ext in '' $ac_executable_extensions; do
3414   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415     ac_cv_prog_ac_ct_RANLIB="ranlib"
3416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417     break 2
3418   fi
3419 done
3420 done
3421
3422   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3423 fi
3424 fi
3425 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3426 if test -n "$ac_ct_RANLIB"; then
3427   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3428 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3429 else
3430   echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6
3432 fi
3433
3434   RANLIB=$ac_ct_RANLIB
3435 else
3436   RANLIB="$ac_cv_prog_RANLIB"
3437 fi
3438
3439 # Extract the first word of "mv", so it can be a program name with args.
3440 set dummy mv; ac_word=$2
3441 echo "$as_me:$LINENO: checking for $ac_word" >&5
3442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3443 if test "${ac_cv_path_MV+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446   case $MV in
3447   [\\/]* | ?:[\\/]*)
3448   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3449   ;;
3450   *)
3451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3453 do
3454   IFS=$as_save_IFS
3455   test -z "$as_dir" && as_dir=.
3456   for ac_exec_ext in '' $ac_executable_extensions; do
3457   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3458     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460     break 2
3461   fi
3462 done
3463 done
3464
3465   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3466   ;;
3467 esac
3468 fi
3469 MV=$ac_cv_path_MV
3470
3471 if test -n "$MV"; then
3472   echo "$as_me:$LINENO: result: $MV" >&5
3473 echo "${ECHO_T}$MV" >&6
3474 else
3475   echo "$as_me:$LINENO: result: no" >&5
3476 echo "${ECHO_T}no" >&6
3477 fi
3478
3479 # Extract the first word of "rm", so it can be a program name with args.
3480 set dummy rm; ac_word=$2
3481 echo "$as_me:$LINENO: checking for $ac_word" >&5
3482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3483 if test "${ac_cv_path_RM+set}" = set; then
3484   echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486   case $RM in
3487   [\\/]* | ?:[\\/]*)
3488   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3489   ;;
3490   *)
3491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3493 do
3494   IFS=$as_save_IFS
3495   test -z "$as_dir" && as_dir=.
3496   for ac_exec_ext in '' $ac_executable_extensions; do
3497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3500     break 2
3501   fi
3502 done
3503 done
3504
3505   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3506   ;;
3507 esac
3508 fi
3509 RM=$ac_cv_path_RM
3510
3511 if test -n "$RM"; then
3512   echo "$as_me:$LINENO: result: $RM" >&5
3513 echo "${ECHO_T}$RM" >&6
3514 else
3515   echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6
3517 fi
3518
3519 # Extract the first word of "cp", so it can be a program name with args.
3520 set dummy cp; ac_word=$2
3521 echo "$as_me:$LINENO: checking for $ac_word" >&5
3522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3523 if test "${ac_cv_path_CP+set}" = set; then
3524   echo $ECHO_N "(cached) $ECHO_C" >&6
3525 else
3526   case $CP in
3527   [\\/]* | ?:[\\/]*)
3528   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3529   ;;
3530   *)
3531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3533 do
3534   IFS=$as_save_IFS
3535   test -z "$as_dir" && as_dir=.
3536   for ac_exec_ext in '' $ac_executable_extensions; do
3537   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3538     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3540     break 2
3541   fi
3542 done
3543 done
3544
3545   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3546   ;;
3547 esac
3548 fi
3549 CP=$ac_cv_path_CP
3550
3551 if test -n "$CP"; then
3552   echo "$as_me:$LINENO: result: $CP" >&5
3553 echo "${ECHO_T}$CP" >&6
3554 else
3555   echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3557 fi
3558
3559 # Extract the first word of "sed", so it can be a program name with args.
3560 set dummy sed; ac_word=$2
3561 echo "$as_me:$LINENO: checking for $ac_word" >&5
3562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3563 if test "${ac_cv_path_SED+set}" = set; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566   case $SED in
3567   [\\/]* | ?:[\\/]*)
3568   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3569   ;;
3570   *)
3571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574   IFS=$as_save_IFS
3575   test -z "$as_dir" && as_dir=.
3576   for ac_exec_ext in '' $ac_executable_extensions; do
3577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3580     break 2
3581   fi
3582 done
3583 done
3584
3585   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3586   ;;
3587 esac
3588 fi
3589 SED=$ac_cv_path_SED
3590
3591 if test -n "$SED"; then
3592   echo "$as_me:$LINENO: result: $SED" >&5
3593 echo "${ECHO_T}$SED" >&6
3594 else
3595   echo "$as_me:$LINENO: result: no" >&5
3596 echo "${ECHO_T}no" >&6
3597 fi
3598
3599 # Extract the first word of "echo", so it can be a program name with args.
3600 set dummy echo; ac_word=$2
3601 echo "$as_me:$LINENO: checking for $ac_word" >&5
3602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3603 if test "${ac_cv_path_ECHO+set}" = set; then
3604   echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606   case $ECHO in
3607   [\\/]* | ?:[\\/]*)
3608   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3609   ;;
3610   *)
3611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614   IFS=$as_save_IFS
3615   test -z "$as_dir" && as_dir=.
3616   for ac_exec_ext in '' $ac_executable_extensions; do
3617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620     break 2
3621   fi
3622 done
3623 done
3624
3625   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3626   ;;
3627 esac
3628 fi
3629 ECHO=$ac_cv_path_ECHO
3630
3631 if test -n "$ECHO"; then
3632   echo "$as_me:$LINENO: result: $ECHO" >&5
3633 echo "${ECHO_T}$ECHO" >&6
3634 else
3635   echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6
3637 fi
3638
3639 # Extract the first word of "cmp", so it can be a program name with args.
3640 set dummy cmp; ac_word=$2
3641 echo "$as_me:$LINENO: checking for $ac_word" >&5
3642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3643 if test "${ac_cv_path_CMP+set}" = set; then
3644   echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646   case $CMP in
3647   [\\/]* | ?:[\\/]*)
3648   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3649   ;;
3650   *)
3651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3653 do
3654   IFS=$as_save_IFS
3655   test -z "$as_dir" && as_dir=.
3656   for ac_exec_ext in '' $ac_executable_extensions; do
3657   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3660     break 2
3661   fi
3662 done
3663 done
3664
3665   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3666   ;;
3667 esac
3668 fi
3669 CMP=$ac_cv_path_CMP
3670
3671 if test -n "$CMP"; then
3672   echo "$as_me:$LINENO: result: $CMP" >&5
3673 echo "${ECHO_T}$CMP" >&6
3674 else
3675   echo "$as_me:$LINENO: result: no" >&5
3676 echo "${ECHO_T}no" >&6
3677 fi
3678
3679 # Extract the first word of "tbl", so it can be a program name with args.
3680 set dummy tbl; ac_word=$2
3681 echo "$as_me:$LINENO: checking for $ac_word" >&5
3682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3683 if test "${ac_cv_path_TBL+set}" = set; then
3684   echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686   case $TBL in
3687   [\\/]* | ?:[\\/]*)
3688   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3689   ;;
3690   *)
3691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3693 do
3694   IFS=$as_save_IFS
3695   test -z "$as_dir" && as_dir=.
3696   for ac_exec_ext in '' $ac_executable_extensions; do
3697   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3698     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3700     break 2
3701   fi
3702 done
3703 done
3704
3705   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3706   ;;
3707 esac
3708 fi
3709 TBL=$ac_cv_path_TBL
3710
3711 if test -n "$TBL"; then
3712   echo "$as_me:$LINENO: result: $TBL" >&5
3713 echo "${ECHO_T}$TBL" >&6
3714 else
3715   echo "$as_me:$LINENO: result: no" >&5
3716 echo "${ECHO_T}no" >&6
3717 fi
3718
3719 # Extract the first word of "ar", so it can be a program name with args.
3720 set dummy ar; ac_word=$2
3721 echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_path_AR+set}" = set; then
3724   echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726   case $AR in
3727   [\\/]* | ?:[\\/]*)
3728   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3729   ;;
3730   *)
3731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3733 do
3734   IFS=$as_save_IFS
3735   test -z "$as_dir" && as_dir=.
3736   for ac_exec_ext in '' $ac_executable_extensions; do
3737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3738     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3740     break 2
3741   fi
3742 done
3743 done
3744
3745   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3746   ;;
3747 esac
3748 fi
3749 AR=$ac_cv_path_AR
3750
3751 if test -n "$AR"; then
3752   echo "$as_me:$LINENO: result: $AR" >&5
3753 echo "${ECHO_T}$AR" >&6
3754 else
3755   echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6
3757 fi
3758
3759 # Extract the first word of "openssl", so it can be a program name with args.
3760 set dummy openssl; ac_word=$2
3761 echo "$as_me:$LINENO: checking for $ac_word" >&5
3762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3763 if test "${ac_cv_path_OPENSSL+set}" = set; then
3764   echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766   case $OPENSSL in
3767   [\\/]* | ?:[\\/]*)
3768   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3769   ;;
3770   *)
3771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774   IFS=$as_save_IFS
3775   test -z "$as_dir" && as_dir=.
3776   for ac_exec_ext in '' $ac_executable_extensions; do
3777   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780     break 2
3781   fi
3782 done
3783 done
3784
3785   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3786   ;;
3787 esac
3788 fi
3789 OPENSSL=$ac_cv_path_OPENSSL
3790
3791 if test -n "$OPENSSL"; then
3792   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3793 echo "${ECHO_T}$OPENSSL" >&6
3794 else
3795   echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6
3797 fi
3798
3799 # Extract the first word of "mtx", so it can be a program name with args.
3800 set dummy mtx; ac_word=$2
3801 echo "$as_me:$LINENO: checking for $ac_word" >&5
3802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3803 if test "${ac_cv_path_MTX+set}" = set; then
3804   echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806   case $MTX in
3807   [\\/]* | ?:[\\/]*)
3808   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3809   ;;
3810   *)
3811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3813 do
3814   IFS=$as_save_IFS
3815   test -z "$as_dir" && as_dir=.
3816   for ac_exec_ext in '' $ac_executable_extensions; do
3817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3818     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3820     break 2
3821   fi
3822 done
3823 done
3824
3825   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3826   ;;
3827 esac
3828 fi
3829 MTX=$ac_cv_path_MTX
3830
3831 if test -n "$MTX"; then
3832   echo "$as_me:$LINENO: result: $MTX" >&5
3833 echo "${ECHO_T}$MTX" >&6
3834 else
3835   echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6
3837 fi
3838
3839 # Extract the first word of "dd", so it can be a program name with args.
3840 set dummy dd; ac_word=$2
3841 echo "$as_me:$LINENO: checking for $ac_word" >&5
3842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3843 if test "${ac_cv_path_DD+set}" = set; then
3844   echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846   case $DD in
3847   [\\/]* | ?:[\\/]*)
3848   ac_cv_path_DD="$DD" # Let the user override the test with a path.
3849   ;;
3850   *)
3851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854   IFS=$as_save_IFS
3855   test -z "$as_dir" && as_dir=.
3856   for ac_exec_ext in '' $ac_executable_extensions; do
3857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860     break 2
3861   fi
3862 done
3863 done
3864
3865   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3866   ;;
3867 esac
3868 fi
3869 DD=$ac_cv_path_DD
3870
3871 if test -n "$DD"; then
3872   echo "$as_me:$LINENO: result: $DD" >&5
3873 echo "${ECHO_T}$DD" >&6
3874 else
3875   echo "$as_me:$LINENO: result: no" >&5
3876 echo "${ECHO_T}no" >&6
3877 fi
3878
3879 # Extract the first word of "mkisofs", so it can be a program name with args.
3880 set dummy mkisofs; ac_word=$2
3881 echo "$as_me:$LINENO: checking for $ac_word" >&5
3882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3883 if test "${ac_cv_path_MKISOFS+set}" = set; then
3884   echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886   case $MKISOFS in
3887   [\\/]* | ?:[\\/]*)
3888   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3889   ;;
3890   *)
3891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894   IFS=$as_save_IFS
3895   test -z "$as_dir" && as_dir=.
3896   for ac_exec_ext in '' $ac_executable_extensions; do
3897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900     break 2
3901   fi
3902 done
3903 done
3904
3905   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3906   ;;
3907 esac
3908 fi
3909 MKISOFS=$ac_cv_path_MKISOFS
3910
3911 if test -n "$MKISOFS"; then
3912   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3913 echo "${ECHO_T}$MKISOFS" >&6
3914 else
3915   echo "$as_me:$LINENO: result: no" >&5
3916 echo "${ECHO_T}no" >&6
3917 fi
3918
3919 # Extract the first word of "python", so it can be a program name with args.
3920 set dummy python; ac_word=$2
3921 echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_path_PYTHON+set}" = set; then
3924   echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926   case $PYTHON in
3927   [\\/]* | ?:[\\/]*)
3928   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3929   ;;
3930   *)
3931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH
3933 do
3934   IFS=$as_save_IFS
3935   test -z "$as_dir" && as_dir=.
3936   for ac_exec_ext in '' $ac_executable_extensions; do
3937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3938     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3940     break 2
3941   fi
3942 done
3943 done
3944
3945   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3946   ;;
3947 esac
3948 fi
3949 PYTHON=$ac_cv_path_PYTHON
3950
3951 if test -n "$PYTHON"; then
3952   echo "$as_me:$LINENO: result: $PYTHON" >&5
3953 echo "${ECHO_T}$PYTHON" >&6
3954 else
3955   echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6
3957 fi
3958
3959 # Extract the first word of "growisofs", so it can be a program name with args.
3960 set dummy growisofs; ac_word=$2
3961 echo "$as_me:$LINENO: checking for $ac_word" >&5
3962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   case $GROWISOFS in
3967   [\\/]* | ?:[\\/]*)
3968   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3969   ;;
3970   *)
3971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974   IFS=$as_save_IFS
3975   test -z "$as_dir" && as_dir=.
3976   for ac_exec_ext in '' $ac_executable_extensions; do
3977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980     break 2
3981   fi
3982 done
3983 done
3984
3985   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3986   ;;
3987 esac
3988 fi
3989 GROWISOFS=$ac_cv_path_GROWISOFS
3990
3991 if test -n "$GROWISOFS"; then
3992   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3993 echo "${ECHO_T}$GROWISOFS" >&6
3994 else
3995   echo "$as_me:$LINENO: result: no" >&5
3996 echo "${ECHO_T}no" >&6
3997 fi
3998
3999 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4000 set dummy dvd+rw-mediainfo; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   case $DVDRWMEDIAINFO in
4007   [\\/]* | ?:[\\/]*)
4008   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4009   ;;
4010   *)
4011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in $PATH
4013 do
4014   IFS=$as_save_IFS
4015   test -z "$as_dir" && as_dir=.
4016   for ac_exec_ext in '' $ac_executable_extensions; do
4017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4018     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4020     break 2
4021   fi
4022 done
4023 done
4024
4025   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4026   ;;
4027 esac
4028 fi
4029 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4030
4031 if test -n "$DVDRWMEDIAINFO"; then
4032   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4033 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4034 else
4035   echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4037 fi
4038
4039 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4040 set dummy dvd+rw-format; ac_word=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   case $DVDRWFORMAT in
4047   [\\/]* | ?:[\\/]*)
4048   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4049   ;;
4050   *)
4051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4053 do
4054   IFS=$as_save_IFS
4055   test -z "$as_dir" && as_dir=.
4056   for ac_exec_ext in '' $ac_executable_extensions; do
4057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060     break 2
4061   fi
4062 done
4063 done
4064
4065   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4066   ;;
4067 esac
4068 fi
4069 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4070
4071 if test -n "$DVDRWFORMAT"; then
4072   echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4073 echo "${ECHO_T}$DVDRWFORMAT" >&6
4074 else
4075   echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4077 fi
4078
4079 # Extract the first word of "pkg-config", so it can be a program name with args.
4080 set dummy pkg-config; ac_word=$2
4081 echo "$as_me:$LINENO: checking for $ac_word" >&5
4082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4084   echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086   case $PKGCONFIG in
4087   [\\/]* | ?:[\\/]*)
4088   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4089   ;;
4090   *)
4091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094   IFS=$as_save_IFS
4095   test -z "$as_dir" && as_dir=.
4096   for ac_exec_ext in '' $ac_executable_extensions; do
4097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4100     break 2
4101   fi
4102 done
4103 done
4104
4105   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4106   ;;
4107 esac
4108 fi
4109 PKGCONFIG=$ac_cv_path_PKGCONFIG
4110
4111 if test -n "$PKGCONFIG"; then
4112   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4113 echo "${ECHO_T}$PKGCONFIG" >&6
4114 else
4115   echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6
4117 fi
4118
4119
4120 if test "x$WXCONFIG" = x; then
4121   WXCONFIG=wx-config
4122 fi
4123 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4124 set dummy ${WXCONFIG}; ac_word=$2
4125 echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4127 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130   case $WXCONFIG in
4131   [\\/]* | ?:[\\/]*)
4132   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4133   ;;
4134   *)
4135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138   IFS=$as_save_IFS
4139   test -z "$as_dir" && as_dir=.
4140   for ac_exec_ext in '' $ac_executable_extensions; do
4141   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144     break 2
4145   fi
4146 done
4147 done
4148
4149   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4150   ;;
4151 esac
4152 fi
4153 WXCONFIG=$ac_cv_path_WXCONFIG
4154
4155 if test -n "$WXCONFIG"; then
4156   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4157 echo "${ECHO_T}$WXCONFIG" >&6
4158 else
4159   echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6
4161 fi
4162
4163
4164 # Extract the first word of "cdrecord", so it can be a program name with args.
4165 set dummy cdrecord; ac_word=$2
4166 echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4168 if test "${ac_cv_path_CDRECORD+set}" = set; then
4169   echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171   case $CDRECORD in
4172   [\\/]* | ?:[\\/]*)
4173   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4174   ;;
4175   *)
4176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4178 do
4179   IFS=$as_save_IFS
4180   test -z "$as_dir" && as_dir=.
4181   for ac_exec_ext in '' $ac_executable_extensions; do
4182   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185     break 2
4186   fi
4187 done
4188 done
4189
4190   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4191   ;;
4192 esac
4193 fi
4194 CDRECORD=$ac_cv_path_CDRECORD
4195
4196 if test -n "$CDRECORD"; then
4197   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4198 echo "${ECHO_T}$CDRECORD" >&6
4199 else
4200   echo "$as_me:$LINENO: result: no" >&5
4201 echo "${ECHO_T}no" >&6
4202 fi
4203
4204 # Extract the first word of "pidof", so it can be a program name with args.
4205 set dummy pidof; ac_word=$2
4206 echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4208 if test "${ac_cv_path_PIDOF+set}" = set; then
4209   echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211   case $PIDOF in
4212   [\\/]* | ?:[\\/]*)
4213   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4214   ;;
4215   *)
4216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4218 do
4219   IFS=$as_save_IFS
4220   test -z "$as_dir" && as_dir=.
4221   for ac_exec_ext in '' $ac_executable_extensions; do
4222   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4223     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225     break 2
4226   fi
4227 done
4228 done
4229
4230   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4231   ;;
4232 esac
4233 fi
4234 PIDOF=$ac_cv_path_PIDOF
4235
4236 if test -n "$PIDOF"; then
4237   echo "$as_me:$LINENO: result: $PIDOF" >&5
4238 echo "${ECHO_T}$PIDOF" >&6
4239 else
4240   echo "$as_me:$LINENO: result: no" >&5
4241 echo "${ECHO_T}no" >&6
4242 fi
4243
4244 for ac_prog in gawk mawk nawk awk
4245 do
4246   # Extract the first word of "$ac_prog", so it can be a program name with args.
4247 set dummy $ac_prog; ac_word=$2
4248 echo "$as_me:$LINENO: checking for $ac_word" >&5
4249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4250 if test "${ac_cv_prog_AWK+set}" = set; then
4251   echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253   if test -n "$AWK"; then
4254   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4258 do
4259   IFS=$as_save_IFS
4260   test -z "$as_dir" && as_dir=.
4261   for ac_exec_ext in '' $ac_executable_extensions; do
4262   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4263     ac_cv_prog_AWK="$ac_prog"
4264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265     break 2
4266   fi
4267 done
4268 done
4269
4270 fi
4271 fi
4272 AWK=$ac_cv_prog_AWK
4273 if test -n "$AWK"; then
4274   echo "$as_me:$LINENO: result: $AWK" >&5
4275 echo "${ECHO_T}$AWK" >&6
4276 else
4277   echo "$as_me:$LINENO: result: no" >&5
4278 echo "${ECHO_T}no" >&6
4279 fi
4280
4281   test -n "$AWK" && break
4282 done
4283
4284 # Some AWK programs fail, so test it and warn the user
4285 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4286       { if ((prog == $2) || (("(" prog ")") == $2) ||
4287            (("" prog "") == $2) ||
4288            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4289 else
4290   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4291    The regex engine of $AWK is too broken to be used you
4292    might want to install GNU AWK.
4293    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4294 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4295    The regex engine of $AWK is too broken to be used you
4296    might want to install GNU AWK.
4297    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4298    { (exit 1); exit 1; }; }
4299 fi
4300 THE_AWK=$AWK
4301 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4302 set dummy $THE_AWK; ac_word=$2
4303 echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4305 if test "${ac_cv_path_AWK+set}" = set; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308   case $AWK in
4309   [\\/]* | ?:[\\/]*)
4310   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4311   ;;
4312   *)
4313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316   IFS=$as_save_IFS
4317   test -z "$as_dir" && as_dir=.
4318   for ac_exec_ext in '' $ac_executable_extensions; do
4319   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4320     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322     break 2
4323   fi
4324 done
4325 done
4326
4327   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4328   ;;
4329 esac
4330 fi
4331 AWK=$ac_cv_path_AWK
4332
4333 if test -n "$AWK"; then
4334   echo "$as_me:$LINENO: result: $AWK" >&5
4335 echo "${ECHO_T}$AWK" >&6
4336 else
4337   echo "$as_me:$LINENO: result: no" >&5
4338 echo "${ECHO_T}no" >&6
4339 fi
4340
4341
4342
4343 test -n "$ARFLAG" || ARFLAGS="cr"
4344
4345
4346 MAKE_SHELL=/bin/sh
4347
4348
4349
4350
4351
4352
4353
4354 # Make sure we can run config.sub.
4355 $ac_config_sub sun4 >/dev/null 2>&1 ||
4356   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4357 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4358    { (exit 1); exit 1; }; }
4359
4360 echo "$as_me:$LINENO: checking build system type" >&5
4361 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4362 if test "${ac_cv_build+set}" = set; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365   ac_cv_build_alias=$build_alias
4366 test -z "$ac_cv_build_alias" &&
4367   ac_cv_build_alias=`$ac_config_guess`
4368 test -z "$ac_cv_build_alias" &&
4369   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4370 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4371    { (exit 1); exit 1; }; }
4372 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4373   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4374 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4375    { (exit 1); exit 1; }; }
4376
4377 fi
4378 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4379 echo "${ECHO_T}$ac_cv_build" >&6
4380 build=$ac_cv_build
4381 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4382 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4383 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4384
4385
4386
4387 echo "$as_me:$LINENO: checking host system type" >&5
4388 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4389 if test "${ac_cv_host+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392   ac_cv_host_alias=$host_alias
4393 test -z "$ac_cv_host_alias" &&
4394   ac_cv_host_alias=$ac_cv_build_alias
4395 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4396   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4397 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4398    { (exit 1); exit 1; }; }
4399
4400 fi
4401 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4402 echo "${ECHO_T}$ac_cv_host" >&6
4403 host=$ac_cv_host
4404 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4405 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4406 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4407
4408
4409 case $host_os in
4410   *cygwin* ) CYGWIN=yes;;
4411          * ) CYGWIN=no;;
4412 esac
4413
4414 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4415 then
4416
4417
4418 if $TRUEPRG; then
4419   HAVE_SUN_OS_TRUE=
4420   HAVE_SUN_OS_FALSE='#'
4421 else
4422   HAVE_SUN_OS_TRUE='#'
4423   HAVE_SUN_OS_FALSE=
4424 fi
4425         cat >>confdefs.h <<\_ACEOF
4426 #define HAVE_SUN_OS 1
4427 _ACEOF
4428
4429 else
4430
4431
4432 if $FALSEPRG; then
4433   HAVE_SUN_OS_TRUE=
4434   HAVE_SUN_OS_FALSE='#'
4435 else
4436   HAVE_SUN_OS_TRUE='#'
4437   HAVE_SUN_OS_FALSE=
4438 fi
4439 fi
4440
4441 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4442 then
4443
4444
4445 if $TRUEPRG; then
4446   HAVE_OSF1_OS_TRUE=
4447   HAVE_OSF1_OS_FALSE='#'
4448 else
4449   HAVE_OSF1_OS_TRUE='#'
4450   HAVE_OSF1_OS_FALSE=
4451 fi
4452         cat >>confdefs.h <<\_ACEOF
4453 #define HAVE_OSF1_OS 1
4454 _ACEOF
4455
4456 else
4457
4458
4459 if $FALSEPRG; then
4460   HAVE_OSF1_OS_TRUE=
4461   HAVE_OSF1_OS_FALSE='#'
4462 else
4463   HAVE_OSF1_OS_TRUE='#'
4464   HAVE_OSF1_OS_FALSE=
4465 fi
4466 fi
4467
4468 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4469 then
4470
4471
4472 if $TRUEPRG; then
4473   HAVE_AIX_OS_TRUE=
4474   HAVE_AIX_OS_FALSE='#'
4475 else
4476   HAVE_AIX_OS_TRUE='#'
4477   HAVE_AIX_OS_FALSE=
4478 fi
4479         cat >>confdefs.h <<\_ACEOF
4480 #define HAVE_AIX_OS 1
4481 _ACEOF
4482
4483 else
4484
4485
4486 if $FALSEPRG; then
4487   HAVE_AIX_OS_TRUE=
4488   HAVE_AIX_OS_FALSE='#'
4489 else
4490   HAVE_AIX_OS_TRUE='#'
4491   HAVE_AIX_OS_FALSE=
4492 fi
4493 fi
4494
4495 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4496 then
4497
4498
4499 if $TRUEPRG; then
4500   HAVE_HPUX_OS_TRUE=
4501   HAVE_HPUX_OS_FALSE='#'
4502 else
4503   HAVE_HPUX_OS_TRUE='#'
4504   HAVE_HPUX_OS_FALSE=
4505 fi
4506         cat >>confdefs.h <<\_ACEOF
4507 #define HAVE_HPUX_OS 1
4508 _ACEOF
4509
4510 else
4511
4512
4513 if $FALSEPRG; then
4514   HAVE_HPUX_OS_TRUE=
4515   HAVE_HPUX_OS_FALSE='#'
4516 else
4517   HAVE_HPUX_OS_TRUE='#'
4518   HAVE_HPUX_OS_FALSE=
4519 fi
4520 fi
4521
4522 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4523 then
4524
4525
4526 if $TRUEPRG; then
4527   HAVE_LINUX_OS_TRUE=
4528   HAVE_LINUX_OS_FALSE='#'
4529 else
4530   HAVE_LINUX_OS_TRUE='#'
4531   HAVE_LINUX_OS_FALSE=
4532 fi
4533         cat >>confdefs.h <<\_ACEOF
4534 #define HAVE_LINUX_OS 1
4535 _ACEOF
4536
4537 else
4538
4539
4540 if $FALSEPRG; then
4541   HAVE_LINUX_OS_TRUE=
4542   HAVE_LINUX_OS_FALSE='#'
4543 else
4544   HAVE_LINUX_OS_TRUE='#'
4545   HAVE_LINUX_OS_FALSE=
4546 fi
4547 fi
4548
4549 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4550 then
4551
4552
4553 if $TRUEPRG; then
4554   HAVE_FREEBSD_OS_TRUE=
4555   HAVE_FREEBSD_OS_FALSE='#'
4556 else
4557   HAVE_FREEBSD_OS_TRUE='#'
4558   HAVE_FREEBSD_OS_FALSE=
4559 fi
4560         cat >>confdefs.h <<\_ACEOF
4561 #define HAVE_FREEBSD_OS 1
4562 _ACEOF
4563
4564 else
4565
4566
4567 if $FALSEPRG; then
4568   HAVE_FREEBSD_OS_TRUE=
4569   HAVE_FREEBSD_OS_FALSE='#'
4570 else
4571   HAVE_FREEBSD_OS_TRUE='#'
4572   HAVE_FREEBSD_OS_FALSE=
4573 fi
4574 fi
4575
4576 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4577 then
4578
4579
4580 if $TRUEPRG; then
4581   HAVE_NETBSD_OS_TRUE=
4582   HAVE_NETBSD_OS_FALSE='#'
4583 else
4584   HAVE_NETBSD_OS_TRUE='#'
4585   HAVE_NETBSD_OS_FALSE=
4586 fi
4587         cat >>confdefs.h <<\_ACEOF
4588 #define HAVE_NETBSD_OS 1
4589 _ACEOF
4590
4591 else
4592
4593
4594 if $FALSEPRG; then
4595   HAVE_NETBSD_OS_TRUE=
4596   HAVE_NETBSD_OS_FALSE='#'
4597 else
4598   HAVE_NETBSD_OS_TRUE='#'
4599   HAVE_NETBSD_OS_FALSE=
4600 fi
4601 fi
4602
4603 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4604 then
4605
4606
4607 if $TRUEPRG; then
4608   HAVE_OPENBSD_OS_TRUE=
4609   HAVE_OPENBSD_OS_FALSE='#'
4610 else
4611   HAVE_OPENBSD_OS_TRUE='#'
4612   HAVE_OPENBSD_OS_FALSE=
4613 fi
4614         cat >>confdefs.h <<\_ACEOF
4615 #define HAVE_OPENBSD_OS 1
4616 _ACEOF
4617
4618 else
4619
4620
4621 if $FALSEPRG; then
4622   HAVE_OPENBSD_OS_TRUE=
4623   HAVE_OPENBSD_OS_FALSE='#'
4624 else
4625   HAVE_OPENBSD_OS_TRUE='#'
4626   HAVE_OPENBSD_OS_FALSE=
4627 fi
4628 fi
4629
4630 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4631 then
4632
4633
4634 if $TRUEPRG; then
4635   HAVE_BSDI_OS_TRUE=
4636   HAVE_BSDI_OS_FALSE='#'
4637 else
4638   HAVE_BSDI_OS_TRUE='#'
4639   HAVE_BSDI_OS_FALSE=
4640 fi
4641         cat >>confdefs.h <<\_ACEOF
4642 #define HAVE_BSDI_OS 1
4643 _ACEOF
4644
4645 else
4646
4647
4648 if $FALSEPRG; then
4649   HAVE_BSDI_OS_TRUE=
4650   HAVE_BSDI_OS_FALSE='#'
4651 else
4652   HAVE_BSDI_OS_TRUE='#'
4653   HAVE_BSDI_OS_FALSE=
4654 fi
4655 fi
4656
4657 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4658 then
4659
4660
4661 if $TRUEPRG; then
4662   HAVE_SGI_OS_TRUE=
4663   HAVE_SGI_OS_FALSE='#'
4664 else
4665   HAVE_SGI_OS_TRUE='#'
4666   HAVE_SGI_OS_FALSE=
4667 fi
4668         cat >>confdefs.h <<\_ACEOF
4669 #define HAVE_SGI_OS 1
4670 _ACEOF
4671
4672 else
4673
4674
4675 if $FALSEPRG; then
4676   HAVE_SGI_OS_TRUE=
4677   HAVE_SGI_OS_FALSE='#'
4678 else
4679   HAVE_SGI_OS_TRUE='#'
4680   HAVE_SGI_OS_FALSE=
4681 fi
4682 fi
4683
4684 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
4685 then
4686
4687
4688 if $TRUEPRG; then
4689   HAVE_IRIX_OS_TRUE=
4690   HAVE_IRIX_OS_FALSE='#'
4691 else
4692   HAVE_IRIX_OS_TRUE='#'
4693   HAVE_IRIX_OS_FALSE=
4694 fi
4695         cat >>confdefs.h <<\_ACEOF
4696 #define HAVE_IRIX_OS 1
4697 _ACEOF
4698
4699 else
4700
4701
4702 if $FALSEPRG; then
4703   HAVE_IRIX_OS_TRUE=
4704   HAVE_IRIX_OS_FALSE='#'
4705 else
4706   HAVE_IRIX_OS_TRUE='#'
4707   HAVE_IRIX_OS_FALSE=
4708 fi
4709 fi
4710
4711 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4712 then
4713
4714
4715 if $TRUEPRG; then
4716   HAVE_DARWIN_OS_TRUE=
4717   HAVE_DARWIN_OS_FALSE='#'
4718 else
4719   HAVE_DARWIN_OS_TRUE='#'
4720   HAVE_DARWIN_OS_FALSE=
4721 fi
4722     cat >>confdefs.h <<\_ACEOF
4723 #define HAVE_DARWIN_OS 1
4724 _ACEOF
4725
4726 else
4727
4728
4729 if $FALSEPRG; then
4730   HAVE_DARWIN_OS_TRUE=
4731   HAVE_DARWIN_OS_FALSE='#'
4732 else
4733   HAVE_DARWIN_OS_TRUE='#'
4734   HAVE_DARWIN_OS_FALSE=
4735 fi
4736 fi
4737
4738
4739 # -----------------------------------------------------------
4740 # ----------------------------------------------------------
4741 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4742 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4743 if test "x$DISTNAME" != "x"
4744 then
4745         echo "distname set to $DISTNAME"
4746 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4747 then
4748         DISTNAME=alpha
4749 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4750 then
4751         DISTNAME=aix
4752 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4753 then
4754         DISTNAME=hpux
4755 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4756 then
4757         DISTNAME=solaris
4758 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4759 then
4760         DISTNAME=freebsd
4761 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4762 then
4763         DISTNAME=netbsd
4764 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4765 then
4766         DISTNAME=openbsd
4767 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4768 then
4769         DISTNAME=irix
4770 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4771 then
4772         DISTNAME=bsdi
4773 elif test -f /etc/SuSE-release
4774 then
4775         DISTNAME=suse
4776 elif test -d /etc/SuSEconfig
4777 then
4778         DISTNAME=suse5
4779 elif test -f /etc/mandrake-release
4780 then
4781         DISTNAME=mandrake
4782 elif test -f /etc/whitebox-release
4783 then
4784        DISTNAME=redhat
4785 elif test -f /etc/redhat-release
4786 then
4787         DISTNAME=redhat
4788 elif test -f /etc/gentoo-release
4789 then
4790         DISTNAME=gentoo
4791 elif test -f /etc/debian_version
4792 then
4793         DISTNAME=debian
4794 elif test -f /etc/slackware-version
4795 then
4796         DISTNAME=slackware
4797 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4798 then
4799     DISTNAME=darwin
4800 elif test -f /etc/engarde-version
4801 then
4802         DISTNAME=engarde
4803 elif test "$CYGWIN" = yes
4804 then
4805         DISTNAME=cygwin
4806         cat >>confdefs.h <<\_ACEOF
4807 #define HAVE_CYGWIN 1
4808 _ACEOF
4809
4810 else
4811         DISTNAME=unknown
4812 fi
4813 echo "$as_me:$LINENO: result: done" >&5
4814 echo "${ECHO_T}done" >&6
4815
4816
4817 # --------------------------------------------------
4818 # Suppport for gettext (translations)
4819 # By default, $datadir is ${prefix}/share
4820 # --------------------------------------------------
4821 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4822 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4823 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4824 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4825   echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827   cat >conftest.make <<\_ACEOF
4828 all:
4829         @echo 'ac_maketemp="$(MAKE)"'
4830 _ACEOF
4831 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4832 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4833 if test -n "$ac_maketemp"; then
4834   eval ac_cv_prog_make_${ac_make}_set=yes
4835 else
4836   eval ac_cv_prog_make_${ac_make}_set=no
4837 fi
4838 rm -f conftest.make
4839 fi
4840 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4841   echo "$as_me:$LINENO: result: yes" >&5
4842 echo "${ECHO_T}yes" >&6
4843   SET_MAKE=
4844 else
4845   echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6
4847   SET_MAKE="MAKE=${MAKE-make}"
4848 fi
4849
4850
4851
4852         MKINSTALLDIRS=
4853   if test -n "$ac_aux_dir"; then
4854     case "$ac_aux_dir" in
4855       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4856       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4857     esac
4858   fi
4859   if test -z "$MKINSTALLDIRS"; then
4860     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4861   fi
4862
4863
4864
4865   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4866 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4867     # Check whether --enable-nls or --disable-nls was given.
4868 if test "${enable_nls+set}" = set; then
4869   enableval="$enable_nls"
4870   USE_NLS=$enableval
4871 else
4872   USE_NLS=yes
4873 fi;
4874   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4875 echo "${ECHO_T}$USE_NLS" >&6
4876
4877
4878
4879
4880
4881
4882 # Prepare PATH_SEPARATOR.
4883 # The user is always right.
4884 if test "${PATH_SEPARATOR+set}" != set; then
4885   echo "#! /bin/sh" >conf$$.sh
4886   echo  "exit 0"   >>conf$$.sh
4887   chmod +x conf$$.sh
4888   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4889     PATH_SEPARATOR=';'
4890   else
4891     PATH_SEPARATOR=:
4892   fi
4893   rm -f conf$$.sh
4894 fi
4895
4896 # Find out how to test for executable files. Don't use a zero-byte file,
4897 # as systems may use methods other than mode bits to determine executability.
4898 cat >conf$$.file <<_ASEOF
4899 #! /bin/sh
4900 exit 0
4901 _ASEOF
4902 chmod +x conf$$.file
4903 if test -x conf$$.file >/dev/null 2>&1; then
4904   ac_executable_p="test -x"
4905 else
4906   ac_executable_p="test -f"
4907 fi
4908 rm -f conf$$.file
4909
4910 # Extract the first word of "msgfmt", so it can be a program name with args.
4911 set dummy msgfmt; ac_word=$2
4912 echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4914 if test "${ac_cv_path_MSGFMT+set}" = set; then
4915   echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917   case "$MSGFMT" in
4918   [\\/]* | ?:[\\/]*)
4919     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4920     ;;
4921   *)
4922     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4923     for ac_dir in $PATH; do
4924       IFS="$ac_save_IFS"
4925       test -z "$ac_dir" && ac_dir=.
4926       for ac_exec_ext in '' $ac_executable_extensions; do
4927         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4928           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4929           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4930      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4931             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4932             break 2
4933           fi
4934         fi
4935       done
4936     done
4937     IFS="$ac_save_IFS"
4938   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4939     ;;
4940 esac
4941 fi
4942 MSGFMT="$ac_cv_path_MSGFMT"
4943 if test "$MSGFMT" != ":"; then
4944   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4945 echo "${ECHO_T}$MSGFMT" >&6
4946 else
4947   echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6
4949 fi
4950
4951   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4952 set dummy gmsgfmt; ac_word=$2
4953 echo "$as_me:$LINENO: checking for $ac_word" >&5
4954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4955 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4956   echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958   case $GMSGFMT in
4959   [\\/]* | ?:[\\/]*)
4960   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4961   ;;
4962   *)
4963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4965 do
4966   IFS=$as_save_IFS
4967   test -z "$as_dir" && as_dir=.
4968   for ac_exec_ext in '' $ac_executable_extensions; do
4969   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972     break 2
4973   fi
4974 done
4975 done
4976
4977   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4978   ;;
4979 esac
4980 fi
4981 GMSGFMT=$ac_cv_path_GMSGFMT
4982
4983 if test -n "$GMSGFMT"; then
4984   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4985 echo "${ECHO_T}$GMSGFMT" >&6
4986 else
4987   echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6
4989 fi
4990
4991
4992
4993 # Prepare PATH_SEPARATOR.
4994 # The user is always right.
4995 if test "${PATH_SEPARATOR+set}" != set; then
4996   echo "#! /bin/sh" >conf$$.sh
4997   echo  "exit 0"   >>conf$$.sh
4998   chmod +x conf$$.sh
4999   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5000     PATH_SEPARATOR=';'
5001   else
5002     PATH_SEPARATOR=:
5003   fi
5004   rm -f conf$$.sh
5005 fi
5006
5007 # Find out how to test for executable files. Don't use a zero-byte file,
5008 # as systems may use methods other than mode bits to determine executability.
5009 cat >conf$$.file <<_ASEOF
5010 #! /bin/sh
5011 exit 0
5012 _ASEOF
5013 chmod +x conf$$.file
5014 if test -x conf$$.file >/dev/null 2>&1; then
5015   ac_executable_p="test -x"
5016 else
5017   ac_executable_p="test -f"
5018 fi
5019 rm -f conf$$.file
5020
5021 # Extract the first word of "xgettext", so it can be a program name with args.
5022 set dummy xgettext; ac_word=$2
5023 echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5025 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5026   echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028   case "$XGETTEXT" in
5029   [\\/]* | ?:[\\/]*)
5030     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5031     ;;
5032   *)
5033     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5034     for ac_dir in $PATH; do
5035       IFS="$ac_save_IFS"
5036       test -z "$ac_dir" && ac_dir=.
5037       for ac_exec_ext in '' $ac_executable_extensions; do
5038         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5039           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5040           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5041      (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
5042             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5043             break 2
5044           fi
5045         fi
5046       done
5047     done
5048     IFS="$ac_save_IFS"
5049   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5050     ;;
5051 esac
5052 fi
5053 XGETTEXT="$ac_cv_path_XGETTEXT"
5054 if test "$XGETTEXT" != ":"; then
5055   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5056 echo "${ECHO_T}$XGETTEXT" >&6
5057 else
5058   echo "$as_me:$LINENO: result: no" >&5
5059 echo "${ECHO_T}no" >&6
5060 fi
5061
5062     rm -f messages.po
5063
5064
5065 # Prepare PATH_SEPARATOR.
5066 # The user is always right.
5067 if test "${PATH_SEPARATOR+set}" != set; then
5068   echo "#! /bin/sh" >conf$$.sh
5069   echo  "exit 0"   >>conf$$.sh
5070   chmod +x conf$$.sh
5071   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5072     PATH_SEPARATOR=';'
5073   else
5074     PATH_SEPARATOR=:
5075   fi
5076   rm -f conf$$.sh
5077 fi
5078
5079 # Find out how to test for executable files. Don't use a zero-byte file,
5080 # as systems may use methods other than mode bits to determine executability.
5081 cat >conf$$.file <<_ASEOF
5082 #! /bin/sh
5083 exit 0
5084 _ASEOF
5085 chmod +x conf$$.file
5086 if test -x conf$$.file >/dev/null 2>&1; then
5087   ac_executable_p="test -x"
5088 else
5089   ac_executable_p="test -f"
5090 fi
5091 rm -f conf$$.file
5092
5093 # Extract the first word of "msgmerge", so it can be a program name with args.
5094 set dummy msgmerge; ac_word=$2
5095 echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5097 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5098   echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100   case "$MSGMERGE" in
5101   [\\/]* | ?:[\\/]*)
5102     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5103     ;;
5104   *)
5105     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5106     for ac_dir in $PATH; do
5107       IFS="$ac_save_IFS"
5108       test -z "$ac_dir" && ac_dir=.
5109       for ac_exec_ext in '' $ac_executable_extensions; do
5110         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5111           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5112           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5113             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5114             break 2
5115           fi
5116         fi
5117       done
5118     done
5119     IFS="$ac_save_IFS"
5120   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5121     ;;
5122 esac
5123 fi
5124 MSGMERGE="$ac_cv_path_MSGMERGE"
5125 if test "$MSGMERGE" != ":"; then
5126   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5127 echo "${ECHO_T}$MSGMERGE" >&6
5128 else
5129   echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6
5131 fi
5132
5133
5134       if test "$GMSGFMT" != ":"; then
5135             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5136        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5137       : ;
5138     else
5139       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5140       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5141 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5142       GMSGFMT=":"
5143     fi
5144   fi
5145
5146       if test "$XGETTEXT" != ":"; then
5147             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5148        (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
5149       : ;
5150     else
5151       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5152 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5153       XGETTEXT=":"
5154     fi
5155         rm -f messages.po
5156   fi
5157
5158             ac_config_commands="$ac_config_commands default-1"
5159
5160
5161
5162       if test "X$prefix" = "XNONE"; then
5163     acl_final_prefix="$ac_default_prefix"
5164   else
5165     acl_final_prefix="$prefix"
5166   fi
5167   if test "X$exec_prefix" = "XNONE"; then
5168     acl_final_exec_prefix='${prefix}'
5169   else
5170     acl_final_exec_prefix="$exec_prefix"
5171   fi
5172   acl_save_prefix="$prefix"
5173   prefix="$acl_final_prefix"
5174   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5175   prefix="$acl_save_prefix"
5176
5177
5178 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5179 if test "${with_gnu_ld+set}" = set; then
5180   withval="$with_gnu_ld"
5181   test "$withval" = no || with_gnu_ld=yes
5182 else
5183   with_gnu_ld=no
5184 fi;
5185 # Prepare PATH_SEPARATOR.
5186 # The user is always right.
5187 if test "${PATH_SEPARATOR+set}" != set; then
5188   echo "#! /bin/sh" >conf$$.sh
5189   echo  "exit 0"   >>conf$$.sh
5190   chmod +x conf$$.sh
5191   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5192     PATH_SEPARATOR=';'
5193   else
5194     PATH_SEPARATOR=:
5195   fi
5196   rm -f conf$$.sh
5197 fi
5198 ac_prog=ld
5199 if test "$GCC" = yes; then
5200   # Check if gcc -print-prog-name=ld gives a path.
5201   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5202 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5203   case $host in
5204   *-*-mingw*)
5205     # gcc leaves a trailing carriage return which upsets mingw
5206     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5207   *)
5208     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5209   esac
5210   case $ac_prog in
5211     # Accept absolute paths.
5212     [\\/]* | [A-Za-z]:[\\/]*)
5213       re_direlt='/[^/][^/]*/\.\./'
5214       # Canonicalize the path of ld
5215       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5216       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5217         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5218       done
5219       test -z "$LD" && LD="$ac_prog"
5220       ;;
5221   "")
5222     # If it fails, then pretend we aren't using GCC.
5223     ac_prog=ld
5224     ;;
5225   *)
5226     # If it is relative, then search for the first ld in PATH.
5227     with_gnu_ld=unknown
5228     ;;
5229   esac
5230 elif test "$with_gnu_ld" = yes; then
5231   echo "$as_me:$LINENO: checking for GNU ld" >&5
5232 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5233 else
5234   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5235 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5236 fi
5237 if test "${acl_cv_path_LD+set}" = set; then
5238   echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240   if test -z "$LD"; then
5241   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5242   for ac_dir in $PATH; do
5243     test -z "$ac_dir" && ac_dir=.
5244     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5245       acl_cv_path_LD="$ac_dir/$ac_prog"
5246       # Check to see if the program is GNU ld.  I'd rather use --version,
5247       # but apparently some GNU ld's only accept -v.
5248       # Break only if it was the GNU/non-GNU ld that we prefer.
5249       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5250       *GNU* | *'with BFD'*)
5251         test "$with_gnu_ld" != no && break ;;
5252       *)
5253         test "$with_gnu_ld" != yes && break ;;
5254       esac
5255     fi
5256   done
5257   IFS="$ac_save_ifs"
5258 else
5259   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5260 fi
5261 fi
5262
5263 LD="$acl_cv_path_LD"
5264 if test -n "$LD"; then
5265   echo "$as_me:$LINENO: result: $LD" >&5
5266 echo "${ECHO_T}$LD" >&6
5267 else
5268   echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5270 fi
5271 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5272 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5273    { (exit 1); exit 1; }; }
5274 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5275 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5276 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5280 case `$LD -v 2>&1 </dev/null` in
5281 *GNU* | *'with BFD'*)
5282   acl_cv_prog_gnu_ld=yes ;;
5283 *)
5284   acl_cv_prog_gnu_ld=no ;;
5285 esac
5286 fi
5287 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5288 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5289 with_gnu_ld=$acl_cv_prog_gnu_ld
5290
5291
5292
5293
5294                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5295 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5296 if test "${acl_cv_rpath+set}" = set; then
5297   echo $ECHO_N "(cached) $ECHO_C" >&6
5298 else
5299
5300     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5301     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5302     . ./conftest.sh
5303     rm -f ./conftest.sh
5304     acl_cv_rpath=done
5305
5306 fi
5307 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5308 echo "${ECHO_T}$acl_cv_rpath" >&6
5309   wl="$acl_cv_wl"
5310   libext="$acl_cv_libext"
5311   shlibext="$acl_cv_shlibext"
5312   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5313   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5314   hardcode_direct="$acl_cv_hardcode_direct"
5315   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5316     # Check whether --enable-rpath or --disable-rpath was given.
5317 if test "${enable_rpath+set}" = set; then
5318   enableval="$enable_rpath"
5319   :
5320 else
5321   enable_rpath=yes
5322 fi;
5323
5324
5325
5326
5327
5328
5329
5330     use_additional=yes
5331
5332   acl_save_prefix="$prefix"
5333   prefix="$acl_final_prefix"
5334   acl_save_exec_prefix="$exec_prefix"
5335   exec_prefix="$acl_final_exec_prefix"
5336
5337     eval additional_includedir=\"$includedir\"
5338     eval additional_libdir=\"$libdir\"
5339
5340   exec_prefix="$acl_save_exec_prefix"
5341   prefix="$acl_save_prefix"
5342
5343
5344 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5345 if test "${with_libiconv_prefix+set}" = set; then
5346   withval="$with_libiconv_prefix"
5347
5348     if test "X$withval" = "Xno"; then
5349       use_additional=no
5350     else
5351       if test "X$withval" = "X"; then
5352
5353   acl_save_prefix="$prefix"
5354   prefix="$acl_final_prefix"
5355   acl_save_exec_prefix="$exec_prefix"
5356   exec_prefix="$acl_final_exec_prefix"
5357
5358           eval additional_includedir=\"$includedir\"
5359           eval additional_libdir=\"$libdir\"
5360
5361   exec_prefix="$acl_save_exec_prefix"
5362   prefix="$acl_save_prefix"
5363
5364       else
5365         additional_includedir="$withval/include"
5366         additional_libdir="$withval/lib"
5367       fi
5368     fi
5369
5370 fi;
5371       LIBICONV=
5372   LTLIBICONV=
5373   INCICONV=
5374   rpathdirs=
5375   ltrpathdirs=
5376   names_already_handled=
5377   names_next_round='iconv '
5378   while test -n "$names_next_round"; do
5379     names_this_round="$names_next_round"
5380     names_next_round=
5381     for name in $names_this_round; do
5382       already_handled=
5383       for n in $names_already_handled; do
5384         if test "$n" = "$name"; then
5385           already_handled=yes
5386           break
5387         fi
5388       done
5389       if test -z "$already_handled"; then
5390         names_already_handled="$names_already_handled $name"
5391                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5392         eval value=\"\$HAVE_LIB$uppername\"
5393         if test -n "$value"; then
5394           if test "$value" = yes; then
5395             eval value=\"\$LIB$uppername\"
5396             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5397             eval value=\"\$LTLIB$uppername\"
5398             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5399           else
5400                                     :
5401           fi
5402         else
5403                               found_dir=
5404           found_la=
5405           found_so=
5406           found_a=
5407           if test $use_additional = yes; then
5408             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5409               found_dir="$additional_libdir"
5410               found_so="$additional_libdir/lib$name.$shlibext"
5411               if test -f "$additional_libdir/lib$name.la"; then
5412                 found_la="$additional_libdir/lib$name.la"
5413               fi
5414             else
5415               if test -f "$additional_libdir/lib$name.$libext"; then
5416                 found_dir="$additional_libdir"
5417                 found_a="$additional_libdir/lib$name.$libext"
5418                 if test -f "$additional_libdir/lib$name.la"; then
5419                   found_la="$additional_libdir/lib$name.la"
5420                 fi
5421               fi
5422             fi
5423           fi
5424           if test "X$found_dir" = "X"; then
5425             for x in $LDFLAGS $LTLIBICONV; do
5426
5427   acl_save_prefix="$prefix"
5428   prefix="$acl_final_prefix"
5429   acl_save_exec_prefix="$exec_prefix"
5430   exec_prefix="$acl_final_exec_prefix"
5431   eval x=\"$x\"
5432   exec_prefix="$acl_save_exec_prefix"
5433   prefix="$acl_save_prefix"
5434
5435               case "$x" in
5436                 -L*)
5437                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5438                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5439                     found_dir="$dir"
5440                     found_so="$dir/lib$name.$shlibext"
5441                     if test -f "$dir/lib$name.la"; then
5442                       found_la="$dir/lib$name.la"
5443                     fi
5444                   else
5445                     if test -f "$dir/lib$name.$libext"; then
5446                       found_dir="$dir"
5447                       found_a="$dir/lib$name.$libext"
5448                       if test -f "$dir/lib$name.la"; then
5449                         found_la="$dir/lib$name.la"
5450                       fi
5451                     fi
5452                   fi
5453                   ;;
5454               esac
5455               if test "X$found_dir" != "X"; then
5456                 break
5457               fi
5458             done
5459           fi
5460           if test "X$found_dir" != "X"; then
5461                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5462             if test "X$found_so" != "X"; then
5463                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5464                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5465               else
5466                                                                                 haveit=
5467                 for x in $ltrpathdirs; do
5468                   if test "X$x" = "X$found_dir"; then
5469                     haveit=yes
5470                     break
5471                   fi
5472                 done
5473                 if test -z "$haveit"; then
5474                   ltrpathdirs="$ltrpathdirs $found_dir"
5475                 fi
5476                                 if test "$hardcode_direct" = yes; then
5477                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5478                 else
5479                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5480                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5481                                                             haveit=
5482                     for x in $rpathdirs; do
5483                       if test "X$x" = "X$found_dir"; then
5484                         haveit=yes
5485                         break
5486                       fi
5487                     done
5488                     if test -z "$haveit"; then
5489                       rpathdirs="$rpathdirs $found_dir"
5490                     fi
5491                   else
5492                                                                                 haveit=
5493                     for x in $LDFLAGS $LIBICONV; do
5494
5495   acl_save_prefix="$prefix"
5496   prefix="$acl_final_prefix"
5497   acl_save_exec_prefix="$exec_prefix"
5498   exec_prefix="$acl_final_exec_prefix"
5499   eval x=\"$x\"
5500   exec_prefix="$acl_save_exec_prefix"
5501   prefix="$acl_save_prefix"
5502
5503                       if test "X$x" = "X-L$found_dir"; then
5504                         haveit=yes
5505                         break
5506                       fi
5507                     done
5508                     if test -z "$haveit"; then
5509                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5510                     fi
5511                     if test "$hardcode_minus_L" != no; then
5512                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5513                     else
5514                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5515                     fi
5516                   fi
5517                 fi
5518               fi
5519             else
5520               if test "X$found_a" != "X"; then
5521                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5522               else
5523                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5524               fi
5525             fi
5526                         additional_includedir=
5527             case "$found_dir" in
5528               */lib | */lib/)
5529                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5530                 additional_includedir="$basedir/include"
5531                 ;;
5532             esac
5533             if test "X$additional_includedir" != "X"; then
5534                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5535                 haveit=
5536                 if test "X$additional_includedir" = "X/usr/local/include"; then
5537                   if test -n "$GCC"; then
5538                     case $host_os in
5539                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5540                     esac
5541                   fi
5542                 fi
5543                 if test -z "$haveit"; then
5544                   for x in $CPPFLAGS $INCICONV; do
5545
5546   acl_save_prefix="$prefix"
5547   prefix="$acl_final_prefix"
5548   acl_save_exec_prefix="$exec_prefix"
5549   exec_prefix="$acl_final_exec_prefix"
5550   eval x=\"$x\"
5551   exec_prefix="$acl_save_exec_prefix"
5552   prefix="$acl_save_prefix"
5553
5554                     if test "X$x" = "X-I$additional_includedir"; then
5555                       haveit=yes
5556                       break
5557                     fi
5558                   done
5559                   if test -z "$haveit"; then
5560                     if test -d "$additional_includedir"; then
5561                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5562                     fi
5563                   fi
5564                 fi
5565               fi
5566             fi
5567                         if test -n "$found_la"; then
5568                                                         save_libdir="$libdir"
5569               case "$found_la" in
5570                 */* | *\\*) . "$found_la" ;;
5571                 *) . "./$found_la" ;;
5572               esac
5573               libdir="$save_libdir"
5574                             for dep in $dependency_libs; do
5575                 case "$dep" in
5576                   -L*)
5577                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5578                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5579                       haveit=
5580                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5581                         if test -n "$GCC"; then
5582                           case $host_os in
5583                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5584                           esac
5585                         fi
5586                       fi
5587                       if test -z "$haveit"; then
5588                         haveit=
5589                         for x in $LDFLAGS $LIBICONV; do
5590
5591   acl_save_prefix="$prefix"
5592   prefix="$acl_final_prefix"
5593   acl_save_exec_prefix="$exec_prefix"
5594   exec_prefix="$acl_final_exec_prefix"
5595   eval x=\"$x\"
5596   exec_prefix="$acl_save_exec_prefix"
5597   prefix="$acl_save_prefix"
5598
5599                           if test "X$x" = "X-L$additional_libdir"; then
5600                             haveit=yes
5601                             break
5602                           fi
5603                         done
5604                         if test -z "$haveit"; then
5605                           if test -d "$additional_libdir"; then
5606                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5607                           fi
5608                         fi
5609                         haveit=
5610                         for x in $LDFLAGS $LTLIBICONV; do
5611
5612   acl_save_prefix="$prefix"
5613   prefix="$acl_final_prefix"
5614   acl_save_exec_prefix="$exec_prefix"
5615   exec_prefix="$acl_final_exec_prefix"
5616   eval x=\"$x\"
5617   exec_prefix="$acl_save_exec_prefix"
5618   prefix="$acl_save_prefix"
5619
5620                           if test "X$x" = "X-L$additional_libdir"; then
5621                             haveit=yes
5622                             break
5623                           fi
5624                         done
5625                         if test -z "$haveit"; then
5626                           if test -d "$additional_libdir"; then
5627                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5628                           fi
5629                         fi
5630                       fi
5631                     fi
5632                     ;;
5633                   -R*)
5634                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5635                     if test "$enable_rpath" != no; then
5636                                                                   haveit=
5637                       for x in $rpathdirs; 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                         rpathdirs="$rpathdirs $dir"
5645                       fi
5646                                                                   haveit=
5647                       for x in $ltrpathdirs; do
5648                         if test "X$x" = "X$dir"; then
5649                           haveit=yes
5650                           break
5651                         fi
5652                       done
5653                       if test -z "$haveit"; then
5654                         ltrpathdirs="$ltrpathdirs $dir"
5655                       fi
5656                     fi
5657                     ;;
5658                   -l*)
5659                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5660                     ;;
5661                   *.la)
5662                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5663                     ;;
5664                   *)
5665                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5666                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5667                     ;;
5668                 esac
5669               done
5670             fi
5671           else
5672                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5673             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5674           fi
5675         fi
5676       fi
5677     done
5678   done
5679   if test "X$rpathdirs" != "X"; then
5680     if test -n "$hardcode_libdir_separator"; then
5681                         alldirs=
5682       for found_dir in $rpathdirs; do
5683         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5684       done
5685             acl_save_libdir="$libdir"
5686       libdir="$alldirs"
5687       eval flag=\"$hardcode_libdir_flag_spec\"
5688       libdir="$acl_save_libdir"
5689       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5690     else
5691             for found_dir in $rpathdirs; do
5692         acl_save_libdir="$libdir"
5693         libdir="$found_dir"
5694         eval flag=\"$hardcode_libdir_flag_spec\"
5695         libdir="$acl_save_libdir"
5696         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5697       done
5698     fi
5699   fi
5700   if test "X$ltrpathdirs" != "X"; then
5701             for found_dir in $ltrpathdirs; do
5702       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5703     done
5704   fi
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5724 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5725 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5726   echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728   gt_save_CPPFLAGS="$CPPFLAGS"
5729      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5730      gt_save_LIBS="$LIBS"
5731      LIBS="$LIBS -framework CoreFoundation"
5732      cat >conftest.$ac_ext <<_ACEOF
5733 /* confdefs.h.  */
5734 _ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h.  */
5738 #include <CFPreferences.h>
5739 int
5740 main ()
5741 {
5742 CFPreferencesCopyAppValue(NULL, NULL)
5743   ;
5744   return 0;
5745 }
5746 _ACEOF
5747 rm -f conftest.$ac_objext conftest$ac_exeext
5748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5749   (eval $ac_link) 2>conftest.er1
5750   ac_status=$?
5751   grep -v '^ *+' conftest.er1 >conftest.err
5752   rm -f conftest.er1
5753   cat conftest.err >&5
5754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755   (exit $ac_status); } &&
5756          { ac_try='test -z "$ac_c_werror_flag"
5757                          || test ! -s conftest.err'
5758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759   (eval $ac_try) 2>&5
5760   ac_status=$?
5761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762   (exit $ac_status); }; } &&
5763          { ac_try='test -s conftest$ac_exeext'
5764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765   (eval $ac_try) 2>&5
5766   ac_status=$?
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); }; }; then
5769   gt_cv_func_CFPreferencesCopyAppValue=yes
5770 else
5771   echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5773
5774 gt_cv_func_CFPreferencesCopyAppValue=no
5775 fi
5776 rm -f conftest.err conftest.$ac_objext \
5777       conftest$ac_exeext conftest.$ac_ext
5778      CPPFLAGS="$gt_save_CPPFLAGS"
5779      LIBS="$gt_save_LIBS"
5780 fi
5781 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5782 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5783   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5784
5785 cat >>confdefs.h <<\_ACEOF
5786 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5787 _ACEOF
5788
5789   fi
5790     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5791 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5792 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5793   echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795   gt_save_CPPFLAGS="$CPPFLAGS"
5796      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5797      gt_save_LIBS="$LIBS"
5798      LIBS="$LIBS -framework CoreFoundation"
5799      cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h.  */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h.  */
5805 #include <CFLocale.h>
5806 int
5807 main ()
5808 {
5809 CFLocaleCopyCurrent();
5810   ;
5811   return 0;
5812 }
5813 _ACEOF
5814 rm -f conftest.$ac_objext conftest$ac_exeext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5816   (eval $ac_link) 2>conftest.er1
5817   ac_status=$?
5818   grep -v '^ *+' conftest.er1 >conftest.err
5819   rm -f conftest.er1
5820   cat conftest.err >&5
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); } &&
5823          { ac_try='test -z "$ac_c_werror_flag"
5824                          || test ! -s conftest.err'
5825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826   (eval $ac_try) 2>&5
5827   ac_status=$?
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); }; } &&
5830          { ac_try='test -s conftest$ac_exeext'
5831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832   (eval $ac_try) 2>&5
5833   ac_status=$?
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); }; }; then
5836   gt_cv_func_CFLocaleCopyCurrent=yes
5837 else
5838   echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5840
5841 gt_cv_func_CFLocaleCopyCurrent=no
5842 fi
5843 rm -f conftest.err conftest.$ac_objext \
5844       conftest$ac_exeext conftest.$ac_ext
5845      CPPFLAGS="$gt_save_CPPFLAGS"
5846      LIBS="$gt_save_LIBS"
5847 fi
5848 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5849 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5850   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5851
5852 cat >>confdefs.h <<\_ACEOF
5853 #define HAVE_CFLOCALECOPYCURRENT 1
5854 _ACEOF
5855
5856   fi
5857   INTL_MACOSX_LIBS=
5858   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5859     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5860   fi
5861
5862
5863
5864
5865   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5866 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5867     # Check whether --enable-nls or --disable-nls was given.
5868 if test "${enable_nls+set}" = set; then
5869   enableval="$enable_nls"
5870   USE_NLS=$enableval
5871 else
5872   USE_NLS=yes
5873 fi;
5874   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5875 echo "${ECHO_T}$USE_NLS" >&6
5876
5877
5878
5879
5880   LIBINTL=
5881   LTLIBINTL=
5882   POSUB=
5883
5884     if test "$USE_NLS" = "yes"; then
5885     gt_use_preinstalled_gnugettext=no
5886
5887
5888
5889
5890
5891
5892         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5893 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5894 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5895   echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897   cat >conftest.$ac_ext <<_ACEOF
5898 /* confdefs.h.  */
5899 _ACEOF
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h.  */
5903 #include <libintl.h>
5904 extern int _nl_msg_cat_cntr;
5905 extern int *_nl_domain_bindings;
5906 int
5907 main ()
5908 {
5909 bindtextdomain ("", "");
5910 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5911   ;
5912   return 0;
5913 }
5914 _ACEOF
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5917   (eval $ac_link) 2>conftest.er1
5918   ac_status=$?
5919   grep -v '^ *+' conftest.er1 >conftest.err
5920   rm -f conftest.er1
5921   cat conftest.err >&5
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); } &&
5924          { ac_try='test -z "$ac_c_werror_flag"
5925                          || test ! -s conftest.err'
5926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927   (eval $ac_try) 2>&5
5928   ac_status=$?
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); }; } &&
5931          { ac_try='test -s conftest$ac_exeext'
5932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933   (eval $ac_try) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); }; }; then
5937   gt_cv_func_gnugettext1_libc=yes
5938 else
5939   echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942 gt_cv_func_gnugettext1_libc=no
5943 fi
5944 rm -f conftest.err conftest.$ac_objext \
5945       conftest$ac_exeext conftest.$ac_ext
5946 fi
5947 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5948 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5949
5950         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5951
5952
5953
5954
5955
5956           am_save_CPPFLAGS="$CPPFLAGS"
5957
5958   for element in $INCICONV; do
5959     haveit=
5960     for x in $CPPFLAGS; do
5961
5962   acl_save_prefix="$prefix"
5963   prefix="$acl_final_prefix"
5964   acl_save_exec_prefix="$exec_prefix"
5965   exec_prefix="$acl_final_exec_prefix"
5966   eval x=\"$x\"
5967   exec_prefix="$acl_save_exec_prefix"
5968   prefix="$acl_save_prefix"
5969
5970       if test "X$x" = "X$element"; then
5971         haveit=yes
5972         break
5973       fi
5974     done
5975     if test -z "$haveit"; then
5976       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5977     fi
5978   done
5979
5980
5981   echo "$as_me:$LINENO: checking for iconv" >&5
5982 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5983 if test "${am_cv_func_iconv+set}" = set; then
5984   echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986
5987     am_cv_func_iconv="no, consider installing GNU libiconv"
5988     am_cv_lib_iconv=no
5989     cat >conftest.$ac_ext <<_ACEOF
5990 /* confdefs.h.  */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h.  */
5995 #include <stdlib.h>
5996 #include <iconv.h>
5997 int
5998 main ()
5999 {
6000 iconv_t cd = iconv_open("","");
6001        iconv(cd,NULL,NULL,NULL,NULL);
6002        iconv_close(cd);
6003   ;
6004   return 0;
6005 }
6006 _ACEOF
6007 rm -f conftest.$ac_objext conftest$ac_exeext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6009   (eval $ac_link) 2>conftest.er1
6010   ac_status=$?
6011   grep -v '^ *+' conftest.er1 >conftest.err
6012   rm -f conftest.er1
6013   cat conftest.err >&5
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); } &&
6016          { ac_try='test -z "$ac_c_werror_flag"
6017                          || test ! -s conftest.err'
6018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019   (eval $ac_try) 2>&5
6020   ac_status=$?
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); }; } &&
6023          { ac_try='test -s conftest$ac_exeext'
6024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025   (eval $ac_try) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }; }; then
6029   am_cv_func_iconv=yes
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034 fi
6035 rm -f conftest.err conftest.$ac_objext \
6036       conftest$ac_exeext conftest.$ac_ext
6037     if test "$am_cv_func_iconv" != yes; then
6038       am_save_LIBS="$LIBS"
6039       LIBS="$LIBS $LIBICONV"
6040       cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h.  */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h.  */
6046 #include <stdlib.h>
6047 #include <iconv.h>
6048 int
6049 main ()
6050 {
6051 iconv_t cd = iconv_open("","");
6052          iconv(cd,NULL,NULL,NULL,NULL);
6053          iconv_close(cd);
6054   ;
6055   return 0;
6056 }
6057 _ACEOF
6058 rm -f conftest.$ac_objext conftest$ac_exeext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6060   (eval $ac_link) 2>conftest.er1
6061   ac_status=$?
6062   grep -v '^ *+' conftest.er1 >conftest.err
6063   rm -f conftest.er1
6064   cat conftest.err >&5
6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066   (exit $ac_status); } &&
6067          { ac_try='test -z "$ac_c_werror_flag"
6068                          || test ! -s conftest.err'
6069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070   (eval $ac_try) 2>&5
6071   ac_status=$?
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); }; } &&
6074          { ac_try='test -s conftest$ac_exeext'
6075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076   (eval $ac_try) 2>&5
6077   ac_status=$?
6078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079   (exit $ac_status); }; }; then
6080   am_cv_lib_iconv=yes
6081         am_cv_func_iconv=yes
6082 else
6083   echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6085
6086 fi
6087 rm -f conftest.err conftest.$ac_objext \
6088       conftest$ac_exeext conftest.$ac_ext
6089       LIBS="$am_save_LIBS"
6090     fi
6091
6092 fi
6093 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6094 echo "${ECHO_T}$am_cv_func_iconv" >&6
6095   if test "$am_cv_func_iconv" = yes; then
6096
6097 cat >>confdefs.h <<\_ACEOF
6098 #define HAVE_ICONV 1
6099 _ACEOF
6100
6101   fi
6102   if test "$am_cv_lib_iconv" = yes; then
6103     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6104 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6105     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6106 echo "${ECHO_T}$LIBICONV" >&6
6107   else
6108             CPPFLAGS="$am_save_CPPFLAGS"
6109     LIBICONV=
6110     LTLIBICONV=
6111   fi
6112
6113
6114
6115
6116
6117
6118     use_additional=yes
6119
6120   acl_save_prefix="$prefix"
6121   prefix="$acl_final_prefix"
6122   acl_save_exec_prefix="$exec_prefix"
6123   exec_prefix="$acl_final_exec_prefix"
6124
6125     eval additional_includedir=\"$includedir\"
6126     eval additional_libdir=\"$libdir\"
6127
6128   exec_prefix="$acl_save_exec_prefix"
6129   prefix="$acl_save_prefix"
6130
6131
6132 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6133 if test "${with_libintl_prefix+set}" = set; then
6134   withval="$with_libintl_prefix"
6135
6136     if test "X$withval" = "Xno"; then
6137       use_additional=no
6138     else
6139       if test "X$withval" = "X"; then
6140
6141   acl_save_prefix="$prefix"
6142   prefix="$acl_final_prefix"
6143   acl_save_exec_prefix="$exec_prefix"
6144   exec_prefix="$acl_final_exec_prefix"
6145
6146           eval additional_includedir=\"$includedir\"
6147           eval additional_libdir=\"$libdir\"
6148
6149   exec_prefix="$acl_save_exec_prefix"
6150   prefix="$acl_save_prefix"
6151
6152       else
6153         additional_includedir="$withval/include"
6154         additional_libdir="$withval/lib"
6155       fi
6156     fi
6157
6158 fi;
6159       LIBINTL=
6160   LTLIBINTL=
6161   INCINTL=
6162   rpathdirs=
6163   ltrpathdirs=
6164   names_already_handled=
6165   names_next_round='intl '
6166   while test -n "$names_next_round"; do
6167     names_this_round="$names_next_round"
6168     names_next_round=
6169     for name in $names_this_round; do
6170       already_handled=
6171       for n in $names_already_handled; do
6172         if test "$n" = "$name"; then
6173           already_handled=yes
6174           break
6175         fi
6176       done
6177       if test -z "$already_handled"; then
6178         names_already_handled="$names_already_handled $name"
6179                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6180         eval value=\"\$HAVE_LIB$uppername\"
6181         if test -n "$value"; then
6182           if test "$value" = yes; then
6183             eval value=\"\$LIB$uppername\"
6184             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6185             eval value=\"\$LTLIB$uppername\"
6186             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6187           else
6188                                     :
6189           fi
6190         else
6191                               found_dir=
6192           found_la=
6193           found_so=
6194           found_a=
6195           if test $use_additional = yes; then
6196             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6197               found_dir="$additional_libdir"
6198               found_so="$additional_libdir/lib$name.$shlibext"
6199               if test -f "$additional_libdir/lib$name.la"; then
6200                 found_la="$additional_libdir/lib$name.la"
6201               fi
6202             else
6203               if test -f "$additional_libdir/lib$name.$libext"; then
6204                 found_dir="$additional_libdir"
6205                 found_a="$additional_libdir/lib$name.$libext"
6206                 if test -f "$additional_libdir/lib$name.la"; then
6207                   found_la="$additional_libdir/lib$name.la"
6208                 fi
6209               fi
6210             fi
6211           fi
6212           if test "X$found_dir" = "X"; then
6213             for x in $LDFLAGS $LTLIBINTL; do
6214
6215   acl_save_prefix="$prefix"
6216   prefix="$acl_final_prefix"
6217   acl_save_exec_prefix="$exec_prefix"
6218   exec_prefix="$acl_final_exec_prefix"
6219   eval x=\"$x\"
6220   exec_prefix="$acl_save_exec_prefix"
6221   prefix="$acl_save_prefix"
6222
6223               case "$x" in
6224                 -L*)
6225                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6226                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6227                     found_dir="$dir"
6228                     found_so="$dir/lib$name.$shlibext"
6229                     if test -f "$dir/lib$name.la"; then
6230                       found_la="$dir/lib$name.la"
6231                     fi
6232                   else
6233                     if test -f "$dir/lib$name.$libext"; then
6234                       found_dir="$dir"
6235                       found_a="$dir/lib$name.$libext"
6236                       if test -f "$dir/lib$name.la"; then
6237                         found_la="$dir/lib$name.la"
6238                       fi
6239                     fi
6240                   fi
6241                   ;;
6242               esac
6243               if test "X$found_dir" != "X"; then
6244                 break
6245               fi
6246             done
6247           fi
6248           if test "X$found_dir" != "X"; then
6249                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6250             if test "X$found_so" != "X"; then
6251                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6252                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6253               else
6254                                                                                 haveit=
6255                 for x in $ltrpathdirs; do
6256                   if test "X$x" = "X$found_dir"; then
6257                     haveit=yes
6258                     break
6259                   fi
6260                 done
6261                 if test -z "$haveit"; then
6262                   ltrpathdirs="$ltrpathdirs $found_dir"
6263                 fi
6264                                 if test "$hardcode_direct" = yes; then
6265                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6266                 else
6267                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6268                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6269                                                             haveit=
6270                     for x in $rpathdirs; do
6271                       if test "X$x" = "X$found_dir"; then
6272                         haveit=yes
6273                         break
6274                       fi
6275                     done
6276                     if test -z "$haveit"; then
6277                       rpathdirs="$rpathdirs $found_dir"
6278                     fi
6279                   else
6280                                                                                 haveit=
6281                     for x in $LDFLAGS $LIBINTL; do
6282
6283   acl_save_prefix="$prefix"
6284   prefix="$acl_final_prefix"
6285   acl_save_exec_prefix="$exec_prefix"
6286   exec_prefix="$acl_final_exec_prefix"
6287   eval x=\"$x\"
6288   exec_prefix="$acl_save_exec_prefix"
6289   prefix="$acl_save_prefix"
6290
6291                       if test "X$x" = "X-L$found_dir"; then
6292                         haveit=yes
6293                         break
6294                       fi
6295                     done
6296                     if test -z "$haveit"; then
6297                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6298                     fi
6299                     if test "$hardcode_minus_L" != no; then
6300                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6301                     else
6302                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6303                     fi
6304                   fi
6305                 fi
6306               fi
6307             else
6308               if test "X$found_a" != "X"; then
6309                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6310               else
6311                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6312               fi
6313             fi
6314                         additional_includedir=
6315             case "$found_dir" in
6316               */lib | */lib/)
6317                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6318                 additional_includedir="$basedir/include"
6319                 ;;
6320             esac
6321             if test "X$additional_includedir" != "X"; then
6322                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6323                 haveit=
6324                 if test "X$additional_includedir" = "X/usr/local/include"; then
6325                   if test -n "$GCC"; then
6326                     case $host_os in
6327                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6328                     esac
6329                   fi
6330                 fi
6331                 if test -z "$haveit"; then
6332                   for x in $CPPFLAGS $INCINTL; do
6333
6334   acl_save_prefix="$prefix"
6335   prefix="$acl_final_prefix"
6336   acl_save_exec_prefix="$exec_prefix"
6337   exec_prefix="$acl_final_exec_prefix"
6338   eval x=\"$x\"
6339   exec_prefix="$acl_save_exec_prefix"
6340   prefix="$acl_save_prefix"
6341
6342                     if test "X$x" = "X-I$additional_includedir"; then
6343                       haveit=yes
6344                       break
6345                     fi
6346                   done
6347                   if test -z "$haveit"; then
6348                     if test -d "$additional_includedir"; then
6349                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6350                     fi
6351                   fi
6352                 fi
6353               fi
6354             fi
6355                         if test -n "$found_la"; then
6356                                                         save_libdir="$libdir"
6357               case "$found_la" in
6358                 */* | *\\*) . "$found_la" ;;
6359                 *) . "./$found_la" ;;
6360               esac
6361               libdir="$save_libdir"
6362                             for dep in $dependency_libs; do
6363                 case "$dep" in
6364                   -L*)
6365                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6366                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6367                       haveit=
6368                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6369                         if test -n "$GCC"; then
6370                           case $host_os in
6371                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6372                           esac
6373                         fi
6374                       fi
6375                       if test -z "$haveit"; then
6376                         haveit=
6377                         for x in $LDFLAGS $LIBINTL; do
6378
6379   acl_save_prefix="$prefix"
6380   prefix="$acl_final_prefix"
6381   acl_save_exec_prefix="$exec_prefix"
6382   exec_prefix="$acl_final_exec_prefix"
6383   eval x=\"$x\"
6384   exec_prefix="$acl_save_exec_prefix"
6385   prefix="$acl_save_prefix"
6386
6387                           if test "X$x" = "X-L$additional_libdir"; then
6388                             haveit=yes
6389                             break
6390                           fi
6391                         done
6392                         if test -z "$haveit"; then
6393                           if test -d "$additional_libdir"; then
6394                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6395                           fi
6396                         fi
6397                         haveit=
6398                         for x in $LDFLAGS $LTLIBINTL; do
6399
6400   acl_save_prefix="$prefix"
6401   prefix="$acl_final_prefix"
6402   acl_save_exec_prefix="$exec_prefix"
6403   exec_prefix="$acl_final_exec_prefix"
6404   eval x=\"$x\"
6405   exec_prefix="$acl_save_exec_prefix"
6406   prefix="$acl_save_prefix"
6407
6408                           if test "X$x" = "X-L$additional_libdir"; then
6409                             haveit=yes
6410                             break
6411                           fi
6412                         done
6413                         if test -z "$haveit"; then
6414                           if test -d "$additional_libdir"; then
6415                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6416                           fi
6417                         fi
6418                       fi
6419                     fi
6420                     ;;
6421                   -R*)
6422                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6423                     if test "$enable_rpath" != no; then
6424                                                                   haveit=
6425                       for x in $rpathdirs; 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                         rpathdirs="$rpathdirs $dir"
6433                       fi
6434                                                                   haveit=
6435                       for x in $ltrpathdirs; do
6436                         if test "X$x" = "X$dir"; then
6437                           haveit=yes
6438                           break
6439                         fi
6440                       done
6441                       if test -z "$haveit"; then
6442                         ltrpathdirs="$ltrpathdirs $dir"
6443                       fi
6444                     fi
6445                     ;;
6446                   -l*)
6447                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6448                     ;;
6449                   *.la)
6450                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6451                     ;;
6452                   *)
6453                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6454                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6455                     ;;
6456                 esac
6457               done
6458             fi
6459           else
6460                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6461             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6462           fi
6463         fi
6464       fi
6465     done
6466   done
6467   if test "X$rpathdirs" != "X"; then
6468     if test -n "$hardcode_libdir_separator"; then
6469                         alldirs=
6470       for found_dir in $rpathdirs; do
6471         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6472       done
6473             acl_save_libdir="$libdir"
6474       libdir="$alldirs"
6475       eval flag=\"$hardcode_libdir_flag_spec\"
6476       libdir="$acl_save_libdir"
6477       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6478     else
6479             for found_dir in $rpathdirs; do
6480         acl_save_libdir="$libdir"
6481         libdir="$found_dir"
6482         eval flag=\"$hardcode_libdir_flag_spec\"
6483         libdir="$acl_save_libdir"
6484         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6485       done
6486     fi
6487   fi
6488   if test "X$ltrpathdirs" != "X"; then
6489             for found_dir in $ltrpathdirs; do
6490       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6491     done
6492   fi
6493
6494           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6495 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6496 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6497   echo $ECHO_N "(cached) $ECHO_C" >&6
6498 else
6499   gt_save_CPPFLAGS="$CPPFLAGS"
6500             CPPFLAGS="$CPPFLAGS $INCINTL"
6501             gt_save_LIBS="$LIBS"
6502             LIBS="$LIBS $LIBINTL"
6503                         cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h.  */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h.  */
6509 #include <libintl.h>
6510 extern int _nl_msg_cat_cntr;
6511 extern
6512 #ifdef __cplusplus
6513 "C"
6514 #endif
6515 const char *_nl_expand_alias (const char *);
6516 int
6517 main ()
6518 {
6519 bindtextdomain ("", "");
6520 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6521   ;
6522   return 0;
6523 }
6524 _ACEOF
6525 rm -f conftest.$ac_objext conftest$ac_exeext
6526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6527   (eval $ac_link) 2>conftest.er1
6528   ac_status=$?
6529   grep -v '^ *+' conftest.er1 >conftest.err
6530   rm -f conftest.er1
6531   cat conftest.err >&5
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); } &&
6534          { ac_try='test -z "$ac_c_werror_flag"
6535                          || test ! -s conftest.err'
6536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537   (eval $ac_try) 2>&5
6538   ac_status=$?
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); }; } &&
6541          { ac_try='test -s conftest$ac_exeext'
6542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543   (eval $ac_try) 2>&5
6544   ac_status=$?
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); }; }; then
6547   gt_cv_func_gnugettext1_libintl=yes
6548 else
6549   echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6551
6552 gt_cv_func_gnugettext1_libintl=no
6553 fi
6554 rm -f conftest.err conftest.$ac_objext \
6555       conftest$ac_exeext conftest.$ac_ext
6556                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6557               LIBS="$LIBS $LIBICONV"
6558               cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h.  */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h.  */
6564 #include <libintl.h>
6565 extern int _nl_msg_cat_cntr;
6566 extern
6567 #ifdef __cplusplus
6568 "C"
6569 #endif
6570 const char *_nl_expand_alias (const char *);
6571 int
6572 main ()
6573 {
6574 bindtextdomain ("", "");
6575 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6576   ;
6577   return 0;
6578 }
6579 _ACEOF
6580 rm -f conftest.$ac_objext conftest$ac_exeext
6581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6582   (eval $ac_link) 2>conftest.er1
6583   ac_status=$?
6584   grep -v '^ *+' conftest.er1 >conftest.err
6585   rm -f conftest.er1
6586   cat conftest.err >&5
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); } &&
6589          { ac_try='test -z "$ac_c_werror_flag"
6590                          || test ! -s conftest.err'
6591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592   (eval $ac_try) 2>&5
6593   ac_status=$?
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); }; } &&
6596          { ac_try='test -s conftest$ac_exeext'
6597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598   (eval $ac_try) 2>&5
6599   ac_status=$?
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); }; }; then
6602   LIBINTL="$LIBINTL $LIBICONV"
6603                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6604                 gt_cv_func_gnugettext1_libintl=yes
6605
6606 else
6607   echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6609
6610 fi
6611 rm -f conftest.err conftest.$ac_objext \
6612       conftest$ac_exeext conftest.$ac_ext
6613             fi
6614             CPPFLAGS="$gt_save_CPPFLAGS"
6615             LIBS="$gt_save_LIBS"
6616 fi
6617 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6618 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6619         fi
6620
6621                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6622            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6623                 && test "$PACKAGE" != gettext-runtime \
6624                 && test "$PACKAGE" != gettext-tools; }; then
6625           gt_use_preinstalled_gnugettext=yes
6626         else
6627                     LIBINTL=
6628           LTLIBINTL=
6629           INCINTL=
6630         fi
6631
6632
6633
6634     if test -n "$INTL_MACOSX_LIBS"; then
6635       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6636          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6637                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6638         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6639       fi
6640     fi
6641
6642     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6643        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6644
6645 cat >>confdefs.h <<\_ACEOF
6646 #define ENABLE_NLS 1
6647 _ACEOF
6648
6649     else
6650       USE_NLS=no
6651     fi
6652   fi
6653
6654   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6655 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6656   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6657 echo "${ECHO_T}$USE_NLS" >&6
6658   if test "$USE_NLS" = "yes"; then
6659     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6660 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6661     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6662       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6663         gt_source="external libintl"
6664       else
6665         gt_source="libc"
6666       fi
6667     else
6668       gt_source="included intl directory"
6669     fi
6670     echo "$as_me:$LINENO: result: $gt_source" >&5
6671 echo "${ECHO_T}$gt_source" >&6
6672   fi
6673
6674   if test "$USE_NLS" = "yes"; then
6675
6676     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6677       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6678         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6679 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6680         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6681 echo "${ECHO_T}$LIBINTL" >&6
6682
6683   for element in $INCINTL; do
6684     haveit=
6685     for x in $CPPFLAGS; do
6686
6687   acl_save_prefix="$prefix"
6688   prefix="$acl_final_prefix"
6689   acl_save_exec_prefix="$exec_prefix"
6690   exec_prefix="$acl_final_exec_prefix"
6691   eval x=\"$x\"
6692   exec_prefix="$acl_save_exec_prefix"
6693   prefix="$acl_save_prefix"
6694
6695       if test "X$x" = "X$element"; then
6696         haveit=yes
6697         break
6698       fi
6699     done
6700     if test -z "$haveit"; then
6701       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6702     fi
6703   done
6704
6705       fi
6706
6707
6708 cat >>confdefs.h <<\_ACEOF
6709 #define HAVE_GETTEXT 1
6710 _ACEOF
6711
6712
6713 cat >>confdefs.h <<\_ACEOF
6714 #define HAVE_DCGETTEXT 1
6715 _ACEOF
6716
6717     fi
6718
6719         POSUB=po
6720   fi
6721
6722
6723
6724     INTLLIBS="$LIBINTL"
6725
6726
6727
6728
6729
6730
6731 if test x${prefix} = xNONE ; then
6732    if test `eval echo ${datadir}` = NONE/share ; then
6733       datadir=/usr/share
6734    fi
6735 fi
6736
6737 # ------------------------------------------------------------------
6738 #  If the user has not set --prefix, we set our default to nothing.
6739 #  In this case, if the user has not set --sysconfdir, we set it
6740 #  to the package default of /etc/bacula.  If either --prefix or
6741 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6742 # ------------------------------------------------------------------
6743 if test x${prefix} = xNONE ; then
6744     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6745         sysconfdir=/etc/bacula
6746     fi
6747     prefix=
6748 fi
6749 sysconfdir=`eval echo ${sysconfdir}`
6750 datadir=`eval echo ${datadir}`
6751 localedir=`eval echo ${datadir}/locale`
6752 cat >>confdefs.h <<_ACEOF
6753 #define LOCALEDIR "$localedir"
6754 _ACEOF
6755
6756 cat >>confdefs.h <<_ACEOF
6757 #define SYSCONFDIR "$sysconfdir"
6758 _ACEOF
6759
6760
6761 # -------------------------------------------------------------------------
6762 #  If the user has not set --exec-prefix, we default to ${prefix}
6763 # -------------------------------------------------------------------------
6764 if test x${exec_prefix} = xNONE ; then
6765     exec_prefix=${prefix}
6766 fi
6767
6768 # ------------------------------------------------------------------
6769 # If the user has not set --sbindir, we set our default as /sbin
6770 # ------------------------------------------------------------------
6771 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6772     sbindir=${exec_prefix}/sbin
6773 fi
6774 sbindir=`eval echo ${sbindir}`
6775
6776 # ------------------------------------------------------------------
6777 # If the user has not set --archivedir, we set our default as /tmp
6778 # ------------------------------------------------------------------
6779 if test x$archivedir = x'/tmp' ; then
6780     archivedir=/tmp
6781 fi
6782 archivedir=`eval echo ${archivedir}`
6783
6784 # -------------------------------------------------------------------------
6785 #  If the user has not set --mandir, we default to /usr/share/man
6786 # -------------------------------------------------------------------------
6787 if test x$mandir = x'${prefix}/man' ; then
6788    mandir=/usr/share/man
6789 fi
6790
6791
6792 for ac_prog in msgfmt
6793 do
6794   # Extract the first word of "$ac_prog", so it can be a program name with args.
6795 set dummy $ac_prog; ac_word=$2
6796 echo "$as_me:$LINENO: checking for $ac_word" >&5
6797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6798 if test "${ac_cv_path_MSGFMT+set}" = set; then
6799   echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801   case $MSGFMT in
6802   [\\/]* | ?:[\\/]*)
6803   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6804   ;;
6805   *)
6806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809   IFS=$as_save_IFS
6810   test -z "$as_dir" && as_dir=.
6811   for ac_exec_ext in '' $ac_executable_extensions; do
6812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815     break 2
6816   fi
6817 done
6818 done
6819
6820   ;;
6821 esac
6822 fi
6823 MSGFMT=$ac_cv_path_MSGFMT
6824
6825 if test -n "$MSGFMT"; then
6826   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6827 echo "${ECHO_T}$MSGFMT" >&6
6828 else
6829   echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6
6831 fi
6832
6833   test -n "$MSGFMT" && break
6834 done
6835 test -n "$MSGFMT" || MSGFMT="no"
6836
6837 if test "$MSGFMT" = "no"
6838 then
6839    echo 'msgfmt program not found, disabling NLS !'
6840    USE_NLS=no
6841    USE_INCLUDED_LIBINTL=no
6842 #else
6843
6844     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6845 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6846 if test "${ac_cv_gnu_library_2+set}" = set; then
6847   echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849   cat >conftest.$ac_ext <<_ACEOF
6850 /* confdefs.h.  */
6851 _ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h.  */
6855
6856 #include <features.h>
6857 #ifdef __GNU_LIBRARY__
6858  #if (__GLIBC__ >= 2)
6859   Lucky GNU user
6860  #endif
6861 #endif
6862
6863 _ACEOF
6864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6865   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6866   ac_cv_gnu_library_2=yes
6867 else
6868   ac_cv_gnu_library_2=no
6869 fi
6870 rm -f conftest*
6871
6872
6873
6874 fi
6875 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6876 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6877
6878     GLIBC2="$ac_cv_gnu_library_2"
6879
6880
6881
6882         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
6883 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
6884 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887   ac_check_lib_save_LIBS=$LIBS
6888 LIBS="-lcposix  $LIBS"
6889 cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h.  */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h.  */
6895
6896 /* Override any gcc2 internal prototype to avoid an error.  */
6897 #ifdef __cplusplus
6898 extern "C"
6899 #endif
6900 /* We use char because int might match the return type of a gcc2
6901    builtin and then its argument prototype would still apply.  */
6902 char strerror ();
6903 int
6904 main ()
6905 {
6906 strerror ();
6907   ;
6908   return 0;
6909 }
6910 _ACEOF
6911 rm -f conftest.$ac_objext conftest$ac_exeext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6913   (eval $ac_link) 2>conftest.er1
6914   ac_status=$?
6915   grep -v '^ *+' conftest.er1 >conftest.err
6916   rm -f conftest.er1
6917   cat conftest.err >&5
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); } &&
6920          { ac_try='test -z "$ac_c_werror_flag"
6921                          || test ! -s conftest.err'
6922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923   (eval $ac_try) 2>&5
6924   ac_status=$?
6925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926   (exit $ac_status); }; } &&
6927          { ac_try='test -s conftest$ac_exeext'
6928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929   (eval $ac_try) 2>&5
6930   ac_status=$?
6931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932   (exit $ac_status); }; }; then
6933   ac_cv_lib_cposix_strerror=yes
6934 else
6935   echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6937
6938 ac_cv_lib_cposix_strerror=no
6939 fi
6940 rm -f conftest.err conftest.$ac_objext \
6941       conftest$ac_exeext conftest.$ac_ext
6942 LIBS=$ac_check_lib_save_LIBS
6943 fi
6944 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
6945 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
6946 if test $ac_cv_lib_cposix_strerror = yes; then
6947   LIBS="$LIBS -lcposix"
6948 fi
6949
6950
6951
6952 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6953 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6954 if test "${ac_cv_header_stdc+set}" = set; then
6955   echo $ECHO_N "(cached) $ECHO_C" >&6
6956 else
6957   cat >conftest.$ac_ext <<_ACEOF
6958 /* confdefs.h.  */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h.  */
6963 #include <stdlib.h>
6964 #include <stdarg.h>
6965 #include <string.h>
6966 #include <float.h>
6967
6968 int
6969 main ()
6970 {
6971
6972   ;
6973   return 0;
6974 }
6975 _ACEOF
6976 rm -f conftest.$ac_objext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978   (eval $ac_compile) 2>conftest.er1
6979   ac_status=$?
6980   grep -v '^ *+' conftest.er1 >conftest.err
6981   rm -f conftest.er1
6982   cat conftest.err >&5
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); } &&
6985          { ac_try='test -z "$ac_c_werror_flag"
6986                          || test ! -s conftest.err'
6987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988   (eval $ac_try) 2>&5
6989   ac_status=$?
6990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991   (exit $ac_status); }; } &&
6992          { ac_try='test -s conftest.$ac_objext'
6993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994   (eval $ac_try) 2>&5
6995   ac_status=$?
6996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); }; }; then
6998   ac_cv_header_stdc=yes
6999 else
7000   echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7002
7003 ac_cv_header_stdc=no
7004 fi
7005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7006
7007 if test $ac_cv_header_stdc = yes; then
7008   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7009   cat >conftest.$ac_ext <<_ACEOF
7010 /* confdefs.h.  */
7011 _ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h.  */
7015 #include <string.h>
7016
7017 _ACEOF
7018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7019   $EGREP "memchr" >/dev/null 2>&1; then
7020   :
7021 else
7022   ac_cv_header_stdc=no
7023 fi
7024 rm -f conftest*
7025
7026 fi
7027
7028 if test $ac_cv_header_stdc = yes; then
7029   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7030   cat >conftest.$ac_ext <<_ACEOF
7031 /* confdefs.h.  */
7032 _ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h.  */
7036 #include <stdlib.h>
7037
7038 _ACEOF
7039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7040   $EGREP "free" >/dev/null 2>&1; then
7041   :
7042 else
7043   ac_cv_header_stdc=no
7044 fi
7045 rm -f conftest*
7046
7047 fi
7048
7049 if test $ac_cv_header_stdc = yes; then
7050   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7051   if test "$cross_compiling" = yes; then
7052   :
7053 else
7054   cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h.  */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h.  */
7060 #include <ctype.h>
7061 #if ((' ' & 0x0FF) == 0x020)
7062 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7063 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7064 #else
7065 # define ISLOWER(c) \
7066                    (('a' <= (c) && (c) <= 'i') \
7067                      || ('j' <= (c) && (c) <= 'r') \
7068                      || ('s' <= (c) && (c) <= 'z'))
7069 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7070 #endif
7071
7072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7073 int
7074 main ()
7075 {
7076   int i;
7077   for (i = 0; i < 256; i++)
7078     if (XOR (islower (i), ISLOWER (i))
7079         || toupper (i) != TOUPPER (i))
7080       exit(2);
7081   exit (0);
7082 }
7083 _ACEOF
7084 rm -f conftest$ac_exeext
7085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7086   (eval $ac_link) 2>&5
7087   ac_status=$?
7088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091   (eval $ac_try) 2>&5
7092   ac_status=$?
7093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094   (exit $ac_status); }; }; then
7095   :
7096 else
7097   echo "$as_me: program exited with status $ac_status" >&5
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7100
7101 ( exit $ac_status )
7102 ac_cv_header_stdc=no
7103 fi
7104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7105 fi
7106 fi
7107 fi
7108 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7109 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7110 if test $ac_cv_header_stdc = yes; then
7111
7112 cat >>confdefs.h <<\_ACEOF
7113 #define STDC_HEADERS 1
7114 _ACEOF
7115
7116 fi
7117
7118 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7119 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7120 if test "${ac_cv_c_const+set}" = set; then
7121   echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123   cat >conftest.$ac_ext <<_ACEOF
7124 /* confdefs.h.  */
7125 _ACEOF
7126 cat confdefs.h >>conftest.$ac_ext
7127 cat >>conftest.$ac_ext <<_ACEOF
7128 /* end confdefs.h.  */
7129
7130 int
7131 main ()
7132 {
7133 /* FIXME: Include the comments suggested by Paul. */
7134 #ifndef __cplusplus
7135   /* Ultrix mips cc rejects this.  */
7136   typedef int charset[2];
7137   const charset x;
7138   /* SunOS 4.1.1 cc rejects this.  */
7139   char const *const *ccp;
7140   char **p;
7141   /* NEC SVR4.0.2 mips cc rejects this.  */
7142   struct point {int x, y;};
7143   static struct point const zero = {0,0};
7144   /* AIX XL C 1.02.0.0 rejects this.
7145      It does not let you subtract one const X* pointer from another in
7146      an arm of an if-expression whose if-part is not a constant
7147      expression */
7148   const char *g = "string";
7149   ccp = &g + (g ? g-g : 0);
7150   /* HPUX 7.0 cc rejects these. */
7151   ++ccp;
7152   p = (char**) ccp;
7153   ccp = (char const *const *) p;
7154   { /* SCO 3.2v4 cc rejects this.  */
7155     char *t;
7156     char const *s = 0 ? (char *) 0 : (char const *) 0;
7157
7158     *t++ = 0;
7159   }
7160   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7161     int x[] = {25, 17};
7162     const int *foo = &x[0];
7163     ++foo;
7164   }
7165   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7166     typedef const int *iptr;
7167     iptr p = 0;
7168     ++p;
7169   }
7170   { /* AIX XL C 1.02.0.0 rejects this saying
7171        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7172     struct s { int j; const int *ap[3]; };
7173     struct s *b; b->j = 5;
7174   }
7175   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7176     const int foo = 10;
7177   }
7178 #endif
7179
7180   ;
7181   return 0;
7182 }
7183 _ACEOF
7184 rm -f conftest.$ac_objext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7186   (eval $ac_compile) 2>conftest.er1
7187   ac_status=$?
7188   grep -v '^ *+' conftest.er1 >conftest.err
7189   rm -f conftest.er1
7190   cat conftest.err >&5
7191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); } &&
7193          { ac_try='test -z "$ac_c_werror_flag"
7194                          || test ! -s conftest.err'
7195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196   (eval $ac_try) 2>&5
7197   ac_status=$?
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); }; } &&
7200          { ac_try='test -s conftest.$ac_objext'
7201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202   (eval $ac_try) 2>&5
7203   ac_status=$?
7204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); }; }; then
7206   ac_cv_c_const=yes
7207 else
7208   echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7210
7211 ac_cv_c_const=no
7212 fi
7213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7214 fi
7215 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7216 echo "${ECHO_T}$ac_cv_c_const" >&6
7217 if test $ac_cv_c_const = no; then
7218
7219 cat >>confdefs.h <<\_ACEOF
7220 #define const
7221 _ACEOF
7222
7223 fi
7224
7225
7226   echo "$as_me:$LINENO: checking for signed" >&5
7227 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7228 if test "${bh_cv_c_signed+set}" = set; then
7229   echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231   cat >conftest.$ac_ext <<_ACEOF
7232 /* confdefs.h.  */
7233 _ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h.  */
7237
7238 int
7239 main ()
7240 {
7241 signed char x;
7242   ;
7243   return 0;
7244 }
7245 _ACEOF
7246 rm -f conftest.$ac_objext
7247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7248   (eval $ac_compile) 2>conftest.er1
7249   ac_status=$?
7250   grep -v '^ *+' conftest.er1 >conftest.err
7251   rm -f conftest.er1
7252   cat conftest.err >&5
7253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254   (exit $ac_status); } &&
7255          { ac_try='test -z "$ac_c_werror_flag"
7256                          || test ! -s conftest.err'
7257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258   (eval $ac_try) 2>&5
7259   ac_status=$?
7260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261   (exit $ac_status); }; } &&
7262          { ac_try='test -s conftest.$ac_objext'
7263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264   (eval $ac_try) 2>&5
7265   ac_status=$?
7266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); }; }; then
7268   bh_cv_c_signed=yes
7269 else
7270   echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7272
7273 bh_cv_c_signed=no
7274 fi
7275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7276 fi
7277 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7278 echo "${ECHO_T}$bh_cv_c_signed" >&6
7279   if test $bh_cv_c_signed = no; then
7280
7281 cat >>confdefs.h <<\_ACEOF
7282 #define signed
7283 _ACEOF
7284
7285   fi
7286
7287 echo "$as_me:$LINENO: checking for inline" >&5
7288 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7289 if test "${ac_cv_c_inline+set}" = set; then
7290   echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292   ac_cv_c_inline=no
7293 for ac_kw in inline __inline__ __inline; do
7294   cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h.  */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h.  */
7300 #ifndef __cplusplus
7301 typedef int foo_t;
7302 static $ac_kw foo_t static_foo () {return 0; }
7303 $ac_kw foo_t foo () {return 0; }
7304 #endif
7305
7306 _ACEOF
7307 rm -f conftest.$ac_objext
7308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7309   (eval $ac_compile) 2>conftest.er1
7310   ac_status=$?
7311   grep -v '^ *+' conftest.er1 >conftest.err
7312   rm -f conftest.er1
7313   cat conftest.err >&5
7314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315   (exit $ac_status); } &&
7316          { ac_try='test -z "$ac_c_werror_flag"
7317                          || test ! -s conftest.err'
7318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319   (eval $ac_try) 2>&5
7320   ac_status=$?
7321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322   (exit $ac_status); }; } &&
7323          { ac_try='test -s conftest.$ac_objext'
7324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325   (eval $ac_try) 2>&5
7326   ac_status=$?
7327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328   (exit $ac_status); }; }; then
7329   ac_cv_c_inline=$ac_kw; break
7330 else
7331   echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7333
7334 fi
7335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7336 done
7337
7338 fi
7339 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7340 echo "${ECHO_T}$ac_cv_c_inline" >&6
7341
7342
7343 case $ac_cv_c_inline in
7344   inline | yes) ;;
7345   *)
7346     case $ac_cv_c_inline in
7347       no) ac_val=;;
7348       *) ac_val=$ac_cv_c_inline;;
7349     esac
7350     cat >>confdefs.h <<_ACEOF
7351 #ifndef __cplusplus
7352 #define inline $ac_val
7353 #endif
7354 _ACEOF
7355     ;;
7356 esac
7357
7358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7369                   inttypes.h stdint.h unistd.h
7370 do
7371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7372 echo "$as_me:$LINENO: checking for $ac_header" >&5
7373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7375   echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377   cat >conftest.$ac_ext <<_ACEOF
7378 /* confdefs.h.  */
7379 _ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h.  */
7383 $ac_includes_default
7384
7385 #include <$ac_header>
7386 _ACEOF
7387 rm -f conftest.$ac_objext
7388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7389   (eval $ac_compile) 2>conftest.er1
7390   ac_status=$?
7391   grep -v '^ *+' conftest.er1 >conftest.err
7392   rm -f conftest.er1
7393   cat conftest.err >&5
7394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395   (exit $ac_status); } &&
7396          { ac_try='test -z "$ac_c_werror_flag"
7397                          || test ! -s conftest.err'
7398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399   (eval $ac_try) 2>&5
7400   ac_status=$?
7401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402   (exit $ac_status); }; } &&
7403          { ac_try='test -s conftest.$ac_objext'
7404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405   (eval $ac_try) 2>&5
7406   ac_status=$?
7407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408   (exit $ac_status); }; }; then
7409   eval "$as_ac_Header=yes"
7410 else
7411   echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7413
7414 eval "$as_ac_Header=no"
7415 fi
7416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7417 fi
7418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7421   cat >>confdefs.h <<_ACEOF
7422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7423 _ACEOF
7424
7425 fi
7426
7427 done
7428
7429
7430 echo "$as_me:$LINENO: checking for off_t" >&5
7431 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7432 if test "${ac_cv_type_off_t+set}" = set; then
7433   echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435   cat >conftest.$ac_ext <<_ACEOF
7436 /* confdefs.h.  */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h.  */
7441 $ac_includes_default
7442 int
7443 main ()
7444 {
7445 if ((off_t *) 0)
7446   return 0;
7447 if (sizeof (off_t))
7448   return 0;
7449   ;
7450   return 0;
7451 }
7452 _ACEOF
7453 rm -f conftest.$ac_objext
7454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7455   (eval $ac_compile) 2>conftest.er1
7456   ac_status=$?
7457   grep -v '^ *+' conftest.er1 >conftest.err
7458   rm -f conftest.er1
7459   cat conftest.err >&5
7460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461   (exit $ac_status); } &&
7462          { ac_try='test -z "$ac_c_werror_flag"
7463                          || test ! -s conftest.err'
7464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465   (eval $ac_try) 2>&5
7466   ac_status=$?
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); }; } &&
7469          { ac_try='test -s conftest.$ac_objext'
7470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471   (eval $ac_try) 2>&5
7472   ac_status=$?
7473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474   (exit $ac_status); }; }; then
7475   ac_cv_type_off_t=yes
7476 else
7477   echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7479
7480 ac_cv_type_off_t=no
7481 fi
7482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7483 fi
7484 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7485 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7486 if test $ac_cv_type_off_t = yes; then
7487   :
7488 else
7489
7490 cat >>confdefs.h <<_ACEOF
7491 #define off_t long
7492 _ACEOF
7493
7494 fi
7495
7496 echo "$as_me:$LINENO: checking for size_t" >&5
7497 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7498 if test "${ac_cv_type_size_t+set}" = set; then
7499   echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501   cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h.  */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h.  */
7507 $ac_includes_default
7508 int
7509 main ()
7510 {
7511 if ((size_t *) 0)
7512   return 0;
7513 if (sizeof (size_t))
7514   return 0;
7515   ;
7516   return 0;
7517 }
7518 _ACEOF
7519 rm -f conftest.$ac_objext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7521   (eval $ac_compile) 2>conftest.er1
7522   ac_status=$?
7523   grep -v '^ *+' conftest.er1 >conftest.err
7524   rm -f conftest.er1
7525   cat conftest.err >&5
7526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527   (exit $ac_status); } &&
7528          { ac_try='test -z "$ac_c_werror_flag"
7529                          || test ! -s conftest.err'
7530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531   (eval $ac_try) 2>&5
7532   ac_status=$?
7533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534   (exit $ac_status); }; } &&
7535          { ac_try='test -s conftest.$ac_objext'
7536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537   (eval $ac_try) 2>&5
7538   ac_status=$?
7539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540   (exit $ac_status); }; }; then
7541   ac_cv_type_size_t=yes
7542 else
7543   echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7545
7546 ac_cv_type_size_t=no
7547 fi
7548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7549 fi
7550 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7551 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7552 if test $ac_cv_type_size_t = yes; then
7553   :
7554 else
7555
7556 cat >>confdefs.h <<_ACEOF
7557 #define size_t unsigned
7558 _ACEOF
7559
7560 fi
7561
7562
7563   echo "$as_me:$LINENO: checking for long long" >&5
7564 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7565 if test "${ac_cv_type_long_long+set}" = set; then
7566   echo $ECHO_N "(cached) $ECHO_C" >&6
7567 else
7568   cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h.  */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h.  */
7574 long long ll = 1LL; int i = 63;
7575 int
7576 main ()
7577 {
7578 long long llmax = (long long) -1;
7579      return ll << i | ll >> i | llmax / ll | llmax % ll;
7580   ;
7581   return 0;
7582 }
7583 _ACEOF
7584 rm -f conftest.$ac_objext conftest$ac_exeext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586   (eval $ac_link) 2>conftest.er1
7587   ac_status=$?
7588   grep -v '^ *+' conftest.er1 >conftest.err
7589   rm -f conftest.er1
7590   cat conftest.err >&5
7591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592   (exit $ac_status); } &&
7593          { ac_try='test -z "$ac_c_werror_flag"
7594                          || test ! -s conftest.err'
7595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596   (eval $ac_try) 2>&5
7597   ac_status=$?
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); }; } &&
7600          { ac_try='test -s conftest$ac_exeext'
7601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602   (eval $ac_try) 2>&5
7603   ac_status=$?
7604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); }; }; then
7606   ac_cv_type_long_long=yes
7607 else
7608   echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7610
7611 ac_cv_type_long_long=no
7612 fi
7613 rm -f conftest.err conftest.$ac_objext \
7614       conftest$ac_exeext conftest.$ac_ext
7615 fi
7616 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7617 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7618   if test $ac_cv_type_long_long = yes; then
7619
7620 cat >>confdefs.h <<\_ACEOF
7621 #define HAVE_LONG_LONG 1
7622 _ACEOF
7623
7624   fi
7625
7626
7627   echo "$as_me:$LINENO: checking for long double" >&5
7628 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7629 if test "${gt_cv_c_long_double+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632   if test "$GCC" = yes; then
7633        gt_cv_c_long_double=yes
7634      else
7635        cat >conftest.$ac_ext <<_ACEOF
7636 /* confdefs.h.  */
7637 _ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h.  */
7641
7642          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
7643          long double foo = 0.0;
7644          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7645          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7646
7647 int
7648 main ()
7649 {
7650
7651   ;
7652   return 0;
7653 }
7654 _ACEOF
7655 rm -f conftest.$ac_objext
7656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7657   (eval $ac_compile) 2>conftest.er1
7658   ac_status=$?
7659   grep -v '^ *+' conftest.er1 >conftest.err
7660   rm -f conftest.er1
7661   cat conftest.err >&5
7662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663   (exit $ac_status); } &&
7664          { ac_try='test -z "$ac_c_werror_flag"
7665                          || test ! -s conftest.err'
7666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667   (eval $ac_try) 2>&5
7668   ac_status=$?
7669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670   (exit $ac_status); }; } &&
7671          { ac_try='test -s conftest.$ac_objext'
7672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673   (eval $ac_try) 2>&5
7674   ac_status=$?
7675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676   (exit $ac_status); }; }; then
7677   gt_cv_c_long_double=yes
7678 else
7679   echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7681
7682 gt_cv_c_long_double=no
7683 fi
7684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7685      fi
7686 fi
7687 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7688 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7689   if test $gt_cv_c_long_double = yes; then
7690
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_LONG_DOUBLE 1
7693 _ACEOF
7694
7695   fi
7696
7697
7698   echo "$as_me:$LINENO: checking for wchar_t" >&5
7699 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7700 if test "${gt_cv_c_wchar_t+set}" = set; then
7701   echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703   cat >conftest.$ac_ext <<_ACEOF
7704 /* confdefs.h.  */
7705 _ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h.  */
7709 #include <stddef.h>
7710        wchar_t foo = (wchar_t)'\0';
7711 int
7712 main ()
7713 {
7714
7715   ;
7716   return 0;
7717 }
7718 _ACEOF
7719 rm -f conftest.$ac_objext
7720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7721   (eval $ac_compile) 2>conftest.er1
7722   ac_status=$?
7723   grep -v '^ *+' conftest.er1 >conftest.err
7724   rm -f conftest.er1
7725   cat conftest.err >&5
7726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); } &&
7728          { ac_try='test -z "$ac_c_werror_flag"
7729                          || test ! -s conftest.err'
7730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731   (eval $ac_try) 2>&5
7732   ac_status=$?
7733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734   (exit $ac_status); }; } &&
7735          { ac_try='test -s conftest.$ac_objext'
7736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737   (eval $ac_try) 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); }; }; then
7741   gt_cv_c_wchar_t=yes
7742 else
7743   echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7745
7746 gt_cv_c_wchar_t=no
7747 fi
7748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7749 fi
7750 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7751 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7752   if test $gt_cv_c_wchar_t = yes; then
7753
7754 cat >>confdefs.h <<\_ACEOF
7755 #define HAVE_WCHAR_T 1
7756 _ACEOF
7757
7758   fi
7759
7760
7761   echo "$as_me:$LINENO: checking for wint_t" >&5
7762 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7763 if test "${gt_cv_c_wint_t+set}" = set; then
7764   echo $ECHO_N "(cached) $ECHO_C" >&6
7765 else
7766   cat >conftest.$ac_ext <<_ACEOF
7767 /* confdefs.h.  */
7768 _ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h.  */
7772 #include <wchar.h>
7773        wint_t foo = (wchar_t)'\0';
7774 int
7775 main ()
7776 {
7777
7778   ;
7779   return 0;
7780 }
7781 _ACEOF
7782 rm -f conftest.$ac_objext
7783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7784   (eval $ac_compile) 2>conftest.er1
7785   ac_status=$?
7786   grep -v '^ *+' conftest.er1 >conftest.err
7787   rm -f conftest.er1
7788   cat conftest.err >&5
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   (exit $ac_status); } &&
7791          { ac_try='test -z "$ac_c_werror_flag"
7792                          || test ! -s conftest.err'
7793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794   (eval $ac_try) 2>&5
7795   ac_status=$?
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); }; } &&
7798          { ac_try='test -s conftest.$ac_objext'
7799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800   (eval $ac_try) 2>&5
7801   ac_status=$?
7802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803   (exit $ac_status); }; }; then
7804   gt_cv_c_wint_t=yes
7805 else
7806   echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7808
7809 gt_cv_c_wint_t=no
7810 fi
7811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7812 fi
7813 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7814 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7815   if test $gt_cv_c_wint_t = yes; then
7816
7817 cat >>confdefs.h <<\_ACEOF
7818 #define HAVE_WINT_T 1
7819 _ACEOF
7820
7821   fi
7822
7823
7824   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7825 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7826 if test "${gl_cv_header_inttypes_h+set}" = set; then
7827   echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829   cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h.  */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h.  */
7835 #include <sys/types.h>
7836 #include <inttypes.h>
7837 int
7838 main ()
7839 {
7840 uintmax_t i = (uintmax_t) -1;
7841   ;
7842   return 0;
7843 }
7844 _ACEOF
7845 rm -f conftest.$ac_objext
7846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7847   (eval $ac_compile) 2>conftest.er1
7848   ac_status=$?
7849   grep -v '^ *+' conftest.er1 >conftest.err
7850   rm -f conftest.er1
7851   cat conftest.err >&5
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); } &&
7854          { ac_try='test -z "$ac_c_werror_flag"
7855                          || test ! -s conftest.err'
7856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857   (eval $ac_try) 2>&5
7858   ac_status=$?
7859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860   (exit $ac_status); }; } &&
7861          { ac_try='test -s conftest.$ac_objext'
7862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863   (eval $ac_try) 2>&5
7864   ac_status=$?
7865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866   (exit $ac_status); }; }; then
7867   gl_cv_header_inttypes_h=yes
7868 else
7869   echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7871
7872 gl_cv_header_inttypes_h=no
7873 fi
7874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7875 fi
7876 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7877 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7878   if test $gl_cv_header_inttypes_h = yes; then
7879
7880 cat >>confdefs.h <<_ACEOF
7881 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7882 _ACEOF
7883
7884   fi
7885
7886
7887   echo "$as_me:$LINENO: checking for stdint.h" >&5
7888 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7889 if test "${gl_cv_header_stdint_h+set}" = set; then
7890   echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892   cat >conftest.$ac_ext <<_ACEOF
7893 /* confdefs.h.  */
7894 _ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h.  */
7898 #include <sys/types.h>
7899 #include <stdint.h>
7900 int
7901 main ()
7902 {
7903 uintmax_t i = (uintmax_t) -1;
7904   ;
7905   return 0;
7906 }
7907 _ACEOF
7908 rm -f conftest.$ac_objext
7909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7910   (eval $ac_compile) 2>conftest.er1
7911   ac_status=$?
7912   grep -v '^ *+' conftest.er1 >conftest.err
7913   rm -f conftest.er1
7914   cat conftest.err >&5
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); } &&
7917          { ac_try='test -z "$ac_c_werror_flag"
7918                          || test ! -s conftest.err'
7919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920   (eval $ac_try) 2>&5
7921   ac_status=$?
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); }; } &&
7924          { ac_try='test -s conftest.$ac_objext'
7925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926   (eval $ac_try) 2>&5
7927   ac_status=$?
7928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929   (exit $ac_status); }; }; then
7930   gl_cv_header_stdint_h=yes
7931 else
7932   echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7934
7935 gl_cv_header_stdint_h=no
7936 fi
7937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7938 fi
7939 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7940 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7941   if test $gl_cv_header_stdint_h = yes; then
7942
7943 cat >>confdefs.h <<_ACEOF
7944 #define HAVE_STDINT_H_WITH_UINTMAX 1
7945 _ACEOF
7946
7947   fi
7948
7949
7950
7951
7952   echo "$as_me:$LINENO: checking for intmax_t" >&5
7953 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7954 if test "${gt_cv_c_intmax_t+set}" = set; then
7955   echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957   cat >conftest.$ac_ext <<_ACEOF
7958 /* confdefs.h.  */
7959 _ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h.  */
7963
7964 #include <stddef.h>
7965 #include <stdlib.h>
7966 #if HAVE_STDINT_H_WITH_UINTMAX
7967 #include <stdint.h>
7968 #endif
7969 #if HAVE_INTTYPES_H_WITH_UINTMAX
7970 #include <inttypes.h>
7971 #endif
7972
7973 int
7974 main ()
7975 {
7976 intmax_t x = -1;
7977   ;
7978   return 0;
7979 }
7980 _ACEOF
7981 rm -f conftest.$ac_objext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7983   (eval $ac_compile) 2>conftest.er1
7984   ac_status=$?
7985   grep -v '^ *+' conftest.er1 >conftest.err
7986   rm -f conftest.er1
7987   cat conftest.err >&5
7988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989   (exit $ac_status); } &&
7990          { ac_try='test -z "$ac_c_werror_flag"
7991                          || test ! -s conftest.err'
7992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993   (eval $ac_try) 2>&5
7994   ac_status=$?
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); }; } &&
7997          { ac_try='test -s conftest.$ac_objext'
7998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999   (eval $ac_try) 2>&5
8000   ac_status=$?
8001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002   (exit $ac_status); }; }; then
8003   gt_cv_c_intmax_t=yes
8004 else
8005   echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8007
8008 gt_cv_c_intmax_t=no
8009 fi
8010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8011 fi
8012 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8013 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8014   if test $gt_cv_c_intmax_t = yes; then
8015
8016 cat >>confdefs.h <<\_ACEOF
8017 #define HAVE_INTMAX_T 1
8018 _ACEOF
8019
8020   fi
8021
8022
8023
8024   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8025 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8026 if test "${gt_cv_func_printf_posix+set}" = set; then
8027   echo $ECHO_N "(cached) $ECHO_C" >&6
8028 else
8029
8030       if test "$cross_compiling" = yes; then
8031
8032         cat >conftest.$ac_ext <<_ACEOF
8033 /* confdefs.h.  */
8034 _ACEOF
8035 cat confdefs.h >>conftest.$ac_ext
8036 cat >>conftest.$ac_ext <<_ACEOF
8037 /* end confdefs.h.  */
8038
8039 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8040   notposix
8041 #endif
8042
8043 _ACEOF
8044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8045   $EGREP "notposix" >/dev/null 2>&1; then
8046   gt_cv_func_printf_posix="guessing no"
8047 else
8048   gt_cv_func_printf_posix="guessing yes"
8049 fi
8050 rm -f conftest*
8051
8052
8053 else
8054   cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h.  */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h.  */
8060
8061 #include <stdio.h>
8062 #include <string.h>
8063 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8064    dollar expansion (possibly an autoconf bug).  */
8065 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8066 static char buf[100];
8067 int main ()
8068 {
8069   sprintf (buf, format, 33, 55);
8070   return (strcmp (buf, "55 33") != 0);
8071 }
8072 _ACEOF
8073 rm -f conftest$ac_exeext
8074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8075   (eval $ac_link) 2>&5
8076   ac_status=$?
8077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080   (eval $ac_try) 2>&5
8081   ac_status=$?
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); }; }; then
8084   gt_cv_func_printf_posix=yes
8085 else
8086   echo "$as_me: program exited with status $ac_status" >&5
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8089
8090 ( exit $ac_status )
8091 gt_cv_func_printf_posix=no
8092 fi
8093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8094 fi
8095
8096 fi
8097 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8098 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8099   case $gt_cv_func_printf_posix in
8100     *yes)
8101
8102 cat >>confdefs.h <<\_ACEOF
8103 #define HAVE_POSIX_PRINTF 1
8104 _ACEOF
8105
8106       ;;
8107   esac
8108
8109 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8110 # for constant arguments.  Useless!
8111 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8112 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8113 if test "${ac_cv_working_alloca_h+set}" = set; then
8114   echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116   cat >conftest.$ac_ext <<_ACEOF
8117 /* confdefs.h.  */
8118 _ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h.  */
8122 #include <alloca.h>
8123 int
8124 main ()
8125 {
8126 char *p = (char *) alloca (2 * sizeof (int));
8127   ;
8128   return 0;
8129 }
8130 _ACEOF
8131 rm -f conftest.$ac_objext conftest$ac_exeext
8132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8133   (eval $ac_link) 2>conftest.er1
8134   ac_status=$?
8135   grep -v '^ *+' conftest.er1 >conftest.err
8136   rm -f conftest.er1
8137   cat conftest.err >&5
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); } &&
8140          { ac_try='test -z "$ac_c_werror_flag"
8141                          || test ! -s conftest.err'
8142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143   (eval $ac_try) 2>&5
8144   ac_status=$?
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); }; } &&
8147          { ac_try='test -s conftest$ac_exeext'
8148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149   (eval $ac_try) 2>&5
8150   ac_status=$?
8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152   (exit $ac_status); }; }; then
8153   ac_cv_working_alloca_h=yes
8154 else
8155   echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8157
8158 ac_cv_working_alloca_h=no
8159 fi
8160 rm -f conftest.err conftest.$ac_objext \
8161       conftest$ac_exeext conftest.$ac_ext
8162 fi
8163 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8164 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8165 if test $ac_cv_working_alloca_h = yes; then
8166
8167 cat >>confdefs.h <<\_ACEOF
8168 #define HAVE_ALLOCA_H 1
8169 _ACEOF
8170
8171 fi
8172
8173 echo "$as_me:$LINENO: checking for alloca" >&5
8174 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8175 if test "${ac_cv_func_alloca_works+set}" = set; then
8176   echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178   cat >conftest.$ac_ext <<_ACEOF
8179 /* confdefs.h.  */
8180 _ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h.  */
8184 #ifdef __GNUC__
8185 # define alloca __builtin_alloca
8186 #else
8187 # ifdef _MSC_VER
8188 #  include <malloc.h>
8189 #  define alloca _alloca
8190 # else
8191 #  if HAVE_ALLOCA_H
8192 #   include <alloca.h>
8193 #  else
8194 #   ifdef _AIX
8195  #pragma alloca
8196 #   else
8197 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8198 char *alloca ();
8199 #    endif
8200 #   endif
8201 #  endif
8202 # endif
8203 #endif
8204
8205 int
8206 main ()
8207 {
8208 char *p = (char *) alloca (1);
8209   ;
8210   return 0;
8211 }
8212 _ACEOF
8213 rm -f conftest.$ac_objext conftest$ac_exeext
8214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8215   (eval $ac_link) 2>conftest.er1
8216   ac_status=$?
8217   grep -v '^ *+' conftest.er1 >conftest.err
8218   rm -f conftest.er1
8219   cat conftest.err >&5
8220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221   (exit $ac_status); } &&
8222          { ac_try='test -z "$ac_c_werror_flag"
8223                          || test ! -s conftest.err'
8224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225   (eval $ac_try) 2>&5
8226   ac_status=$?
8227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228   (exit $ac_status); }; } &&
8229          { ac_try='test -s conftest$ac_exeext'
8230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231   (eval $ac_try) 2>&5
8232   ac_status=$?
8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); }; }; then
8235   ac_cv_func_alloca_works=yes
8236 else
8237   echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8239
8240 ac_cv_func_alloca_works=no
8241 fi
8242 rm -f conftest.err conftest.$ac_objext \
8243       conftest$ac_exeext conftest.$ac_ext
8244 fi
8245 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8246 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8247
8248 if test $ac_cv_func_alloca_works = yes; then
8249
8250 cat >>confdefs.h <<\_ACEOF
8251 #define HAVE_ALLOCA 1
8252 _ACEOF
8253
8254 else
8255   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8256 # that cause trouble.  Some versions do not even contain alloca or
8257 # contain a buggy version.  If you still want to use their alloca,
8258 # use ar to extract alloca.o from them instead of compiling alloca.c.
8259
8260 ALLOCA=alloca.$ac_objext
8261
8262 cat >>confdefs.h <<\_ACEOF
8263 #define C_ALLOCA 1
8264 _ACEOF
8265
8266
8267 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8268 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8269 if test "${ac_cv_os_cray+set}" = set; then
8270   echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272   cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h.  */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h.  */
8278 #if defined(CRAY) && ! defined(CRAY2)
8279 webecray
8280 #else
8281 wenotbecray
8282 #endif
8283
8284 _ACEOF
8285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8286   $EGREP "webecray" >/dev/null 2>&1; then
8287   ac_cv_os_cray=yes
8288 else
8289   ac_cv_os_cray=no
8290 fi
8291 rm -f conftest*
8292
8293 fi
8294 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8295 echo "${ECHO_T}$ac_cv_os_cray" >&6
8296 if test $ac_cv_os_cray = yes; then
8297   for ac_func in _getb67 GETB67 getb67; do
8298     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8299 echo "$as_me:$LINENO: checking for $ac_func" >&5
8300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8301 if eval "test \"\${$as_ac_var+set}\" = set"; then
8302   echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304   cat >conftest.$ac_ext <<_ACEOF
8305 /* confdefs.h.  */
8306 _ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h.  */
8310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8312 #define $ac_func innocuous_$ac_func
8313
8314 /* System header to define __stub macros and hopefully few prototypes,
8315     which can conflict with char $ac_func (); below.
8316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8317     <limits.h> exists even on freestanding compilers.  */
8318
8319 #ifdef __STDC__
8320 # include <limits.h>
8321 #else
8322 # include <assert.h>
8323 #endif
8324
8325 #undef $ac_func
8326
8327 /* Override any gcc2 internal prototype to avoid an error.  */
8328 #ifdef __cplusplus
8329 extern "C"
8330 {
8331 #endif
8332 /* We use char because int might match the return type of a gcc2
8333    builtin and then its argument prototype would still apply.  */
8334 char $ac_func ();
8335 /* The GNU C library defines this for functions which it implements
8336     to always fail with ENOSYS.  Some functions are actually named
8337     something starting with __ and the normal name is an alias.  */
8338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8339 choke me
8340 #else
8341 char (*f) () = $ac_func;
8342 #endif
8343 #ifdef __cplusplus
8344 }
8345 #endif
8346
8347 int
8348 main ()
8349 {
8350 return f != $ac_func;
8351   ;
8352   return 0;
8353 }
8354 _ACEOF
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357   (eval $ac_link) 2>conftest.er1
8358   ac_status=$?
8359   grep -v '^ *+' conftest.er1 >conftest.err
8360   rm -f conftest.er1
8361   cat conftest.err >&5
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); } &&
8364          { ac_try='test -z "$ac_c_werror_flag"
8365                          || test ! -s conftest.err'
8366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367   (eval $ac_try) 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); }; } &&
8371          { ac_try='test -s conftest$ac_exeext'
8372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373   (eval $ac_try) 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; }; then
8377   eval "$as_ac_var=yes"
8378 else
8379   echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 eval "$as_ac_var=no"
8383 fi
8384 rm -f conftest.err conftest.$ac_objext \
8385       conftest$ac_exeext conftest.$ac_ext
8386 fi
8387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8389 if test `eval echo '${'$as_ac_var'}'` = yes; then
8390
8391 cat >>confdefs.h <<_ACEOF
8392 #define CRAY_STACKSEG_END $ac_func
8393 _ACEOF
8394
8395     break
8396 fi
8397
8398   done
8399 fi
8400
8401 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8402 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8403 if test "${ac_cv_c_stack_direction+set}" = set; then
8404   echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406   if test "$cross_compiling" = yes; then
8407   ac_cv_c_stack_direction=0
8408 else
8409   cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h.  */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h.  */
8415 int
8416 find_stack_direction ()
8417 {
8418   static char *addr = 0;
8419   auto char dummy;
8420   if (addr == 0)
8421     {
8422       addr = &dummy;
8423       return find_stack_direction ();
8424     }
8425   else
8426     return (&dummy > addr) ? 1 : -1;
8427 }
8428
8429 int
8430 main ()
8431 {
8432   exit (find_stack_direction () < 0);
8433 }
8434 _ACEOF
8435 rm -f conftest$ac_exeext
8436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8437   (eval $ac_link) 2>&5
8438   ac_status=$?
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442   (eval $ac_try) 2>&5
8443   ac_status=$?
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); }; }; then
8446   ac_cv_c_stack_direction=1
8447 else
8448   echo "$as_me: program exited with status $ac_status" >&5
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 ( exit $ac_status )
8453 ac_cv_c_stack_direction=-1
8454 fi
8455 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8456 fi
8457 fi
8458 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8459 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8460
8461 cat >>confdefs.h <<_ACEOF
8462 #define STACK_DIRECTION $ac_cv_c_stack_direction
8463 _ACEOF
8464
8465
8466 fi
8467
8468
8469
8470 for ac_header in stdlib.h unistd.h
8471 do
8472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8474   echo "$as_me:$LINENO: checking for $ac_header" >&5
8475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8477   echo $ECHO_N "(cached) $ECHO_C" >&6
8478 fi
8479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8481 else
8482   # Is the header compilable?
8483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8485 cat >conftest.$ac_ext <<_ACEOF
8486 /* confdefs.h.  */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h.  */
8491 $ac_includes_default
8492 #include <$ac_header>
8493 _ACEOF
8494 rm -f conftest.$ac_objext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496   (eval $ac_compile) 2>conftest.er1
8497   ac_status=$?
8498   grep -v '^ *+' conftest.er1 >conftest.err
8499   rm -f conftest.er1
8500   cat conftest.err >&5
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); } &&
8503          { ac_try='test -z "$ac_c_werror_flag"
8504                          || test ! -s conftest.err'
8505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506   (eval $ac_try) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; } &&
8510          { ac_try='test -s conftest.$ac_objext'
8511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512   (eval $ac_try) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }; }; then
8516   ac_header_compiler=yes
8517 else
8518   echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8520
8521 ac_header_compiler=no
8522 fi
8523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8525 echo "${ECHO_T}$ac_header_compiler" >&6
8526
8527 # Is the header present?
8528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8530 cat >conftest.$ac_ext <<_ACEOF
8531 /* confdefs.h.  */
8532 _ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h.  */
8536 #include <$ac_header>
8537 _ACEOF
8538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8539   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8540   ac_status=$?
8541   grep -v '^ *+' conftest.er1 >conftest.err
8542   rm -f conftest.er1
8543   cat conftest.err >&5
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); } >/dev/null; then
8546   if test -s conftest.err; then
8547     ac_cpp_err=$ac_c_preproc_warn_flag
8548     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8549   else
8550     ac_cpp_err=
8551   fi
8552 else
8553   ac_cpp_err=yes
8554 fi
8555 if test -z "$ac_cpp_err"; then
8556   ac_header_preproc=yes
8557 else
8558   echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8560
8561   ac_header_preproc=no
8562 fi
8563 rm -f conftest.err conftest.$ac_ext
8564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8565 echo "${ECHO_T}$ac_header_preproc" >&6
8566
8567 # So?  What about this header?
8568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8569   yes:no: )
8570     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8574     ac_header_preproc=yes
8575     ;;
8576   no:yes:* )
8577     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8579     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8580 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8581     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8583     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8584 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8587     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8589     (
8590       cat <<\_ASBOX
8591 ## ------------------------------------------ ##
8592 ## Report this to the AC_PACKAGE_NAME lists.  ##
8593 ## ------------------------------------------ ##
8594 _ASBOX
8595     ) |
8596       sed "s/^/$as_me: WARNING:     /" >&2
8597     ;;
8598 esac
8599 echo "$as_me:$LINENO: checking for $ac_header" >&5
8600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8602   echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604   eval "$as_ac_Header=\$ac_header_preproc"
8605 fi
8606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8608
8609 fi
8610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8611   cat >>confdefs.h <<_ACEOF
8612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8613 _ACEOF
8614
8615 fi
8616
8617 done
8618
8619
8620 for ac_func in getpagesize
8621 do
8622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8623 echo "$as_me:$LINENO: checking for $ac_func" >&5
8624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8625 if eval "test \"\${$as_ac_var+set}\" = set"; then
8626   echo $ECHO_N "(cached) $ECHO_C" >&6
8627 else
8628   cat >conftest.$ac_ext <<_ACEOF
8629 /* confdefs.h.  */
8630 _ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h.  */
8634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8635    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8636 #define $ac_func innocuous_$ac_func
8637
8638 /* System header to define __stub macros and hopefully few prototypes,
8639     which can conflict with char $ac_func (); below.
8640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8641     <limits.h> exists even on freestanding compilers.  */
8642
8643 #ifdef __STDC__
8644 # include <limits.h>
8645 #else
8646 # include <assert.h>
8647 #endif
8648
8649 #undef $ac_func
8650
8651 /* Override any gcc2 internal prototype to avoid an error.  */
8652 #ifdef __cplusplus
8653 extern "C"
8654 {
8655 #endif
8656 /* We use char because int might match the return type of a gcc2
8657    builtin and then its argument prototype would still apply.  */
8658 char $ac_func ();
8659 /* The GNU C library defines this for functions which it implements
8660     to always fail with ENOSYS.  Some functions are actually named
8661     something starting with __ and the normal name is an alias.  */
8662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8663 choke me
8664 #else
8665 char (*f) () = $ac_func;
8666 #endif
8667 #ifdef __cplusplus
8668 }
8669 #endif
8670
8671 int
8672 main ()
8673 {
8674 return f != $ac_func;
8675   ;
8676   return 0;
8677 }
8678 _ACEOF
8679 rm -f conftest.$ac_objext conftest$ac_exeext
8680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8681   (eval $ac_link) 2>conftest.er1
8682   ac_status=$?
8683   grep -v '^ *+' conftest.er1 >conftest.err
8684   rm -f conftest.er1
8685   cat conftest.err >&5
8686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687   (exit $ac_status); } &&
8688          { ac_try='test -z "$ac_c_werror_flag"
8689                          || test ! -s conftest.err'
8690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691   (eval $ac_try) 2>&5
8692   ac_status=$?
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); }; } &&
8695          { ac_try='test -s conftest$ac_exeext'
8696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697   (eval $ac_try) 2>&5
8698   ac_status=$?
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); }; }; then
8701   eval "$as_ac_var=yes"
8702 else
8703   echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8705
8706 eval "$as_ac_var=no"
8707 fi
8708 rm -f conftest.err conftest.$ac_objext \
8709       conftest$ac_exeext conftest.$ac_ext
8710 fi
8711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8713 if test `eval echo '${'$as_ac_var'}'` = yes; then
8714   cat >>confdefs.h <<_ACEOF
8715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8716 _ACEOF
8717
8718 fi
8719 done
8720
8721 echo "$as_me:$LINENO: checking for working mmap" >&5
8722 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8723 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8724   echo $ECHO_N "(cached) $ECHO_C" >&6
8725 else
8726   if test "$cross_compiling" = yes; then
8727   ac_cv_func_mmap_fixed_mapped=no
8728 else
8729   cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h.  */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h.  */
8735 $ac_includes_default
8736 /* malloc might have been renamed as rpl_malloc. */
8737 #undef malloc
8738
8739 /* Thanks to Mike Haertel and Jim Avera for this test.
8740    Here is a matrix of mmap possibilities:
8741         mmap private not fixed
8742         mmap private fixed at somewhere currently unmapped
8743         mmap private fixed at somewhere already mapped
8744         mmap shared not fixed
8745         mmap shared fixed at somewhere currently unmapped
8746         mmap shared fixed at somewhere already mapped
8747    For private mappings, we should verify that changes cannot be read()
8748    back from the file, nor mmap's back from the file at a different
8749    address.  (There have been systems where private was not correctly
8750    implemented like the infamous i386 svr4.0, and systems where the
8751    VM page cache was not coherent with the file system buffer cache
8752    like early versions of FreeBSD and possibly contemporary NetBSD.)
8753    For shared mappings, we should conversely verify that changes get
8754    propagated back to all the places they're supposed to be.
8755
8756    Grep wants private fixed already mapped.
8757    The main things grep needs to know about mmap are:
8758    * does it exist and is it safe to write into the mmap'd area
8759    * how to use it (BSD variants)  */
8760
8761 #include <fcntl.h>
8762 #include <sys/mman.h>
8763
8764 #if !STDC_HEADERS && !HAVE_STDLIB_H
8765 char *malloc ();
8766 #endif
8767
8768 /* This mess was copied from the GNU getpagesize.h.  */
8769 #if !HAVE_GETPAGESIZE
8770 /* Assume that all systems that can run configure have sys/param.h.  */
8771 # if !HAVE_SYS_PARAM_H
8772 #  define HAVE_SYS_PARAM_H 1
8773 # endif
8774
8775 # ifdef _SC_PAGESIZE
8776 #  define getpagesize() sysconf(_SC_PAGESIZE)
8777 # else /* no _SC_PAGESIZE */
8778 #  if HAVE_SYS_PARAM_H
8779 #   include <sys/param.h>
8780 #   ifdef EXEC_PAGESIZE
8781 #    define getpagesize() EXEC_PAGESIZE
8782 #   else /* no EXEC_PAGESIZE */
8783 #    ifdef NBPG
8784 #     define getpagesize() NBPG * CLSIZE
8785 #     ifndef CLSIZE
8786 #      define CLSIZE 1
8787 #     endif /* no CLSIZE */
8788 #    else /* no NBPG */
8789 #     ifdef NBPC
8790 #      define getpagesize() NBPC
8791 #     else /* no NBPC */
8792 #      ifdef PAGESIZE
8793 #       define getpagesize() PAGESIZE
8794 #      endif /* PAGESIZE */
8795 #     endif /* no NBPC */
8796 #    endif /* no NBPG */
8797 #   endif /* no EXEC_PAGESIZE */
8798 #  else /* no HAVE_SYS_PARAM_H */
8799 #   define getpagesize() 8192   /* punt totally */
8800 #  endif /* no HAVE_SYS_PARAM_H */
8801 # endif /* no _SC_PAGESIZE */
8802
8803 #endif /* no HAVE_GETPAGESIZE */
8804
8805 int
8806 main ()
8807 {
8808   char *data, *data2, *data3;
8809   int i, pagesize;
8810   int fd;
8811
8812   pagesize = getpagesize ();
8813
8814   /* First, make a file with some known garbage in it. */
8815   data = (char *) malloc (pagesize);
8816   if (!data)
8817     exit (1);
8818   for (i = 0; i < pagesize; ++i)
8819     *(data + i) = rand ();
8820   umask (0);
8821   fd = creat ("conftest.mmap", 0600);
8822   if (fd < 0)
8823     exit (1);
8824   if (write (fd, data, pagesize) != pagesize)
8825     exit (1);
8826   close (fd);
8827
8828   /* Next, try to mmap the file at a fixed address which already has
8829      something else allocated at it.  If we can, also make sure that
8830      we see the same garbage.  */
8831   fd = open ("conftest.mmap", O_RDWR);
8832   if (fd < 0)
8833     exit (1);
8834   data2 = (char *) malloc (2 * pagesize);
8835   if (!data2)
8836     exit (1);
8837   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8838   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8839                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8840     exit (1);
8841   for (i = 0; i < pagesize; ++i)
8842     if (*(data + i) != *(data2 + i))
8843       exit (1);
8844
8845   /* Finally, make sure that changes to the mapped area do not
8846      percolate back to the file as seen by read().  (This is a bug on
8847      some variants of i386 svr4.0.)  */
8848   for (i = 0; i < pagesize; ++i)
8849     *(data2 + i) = *(data2 + i) + 1;
8850   data3 = (char *) malloc (pagesize);
8851   if (!data3)
8852     exit (1);
8853   if (read (fd, data3, pagesize) != pagesize)
8854     exit (1);
8855   for (i = 0; i < pagesize; ++i)
8856     if (*(data + i) != *(data3 + i))
8857       exit (1);
8858   close (fd);
8859   exit (0);
8860 }
8861 _ACEOF
8862 rm -f conftest$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864   (eval $ac_link) 2>&5
8865   ac_status=$?
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869   (eval $ac_try) 2>&5
8870   ac_status=$?
8871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872   (exit $ac_status); }; }; then
8873   ac_cv_func_mmap_fixed_mapped=yes
8874 else
8875   echo "$as_me: program exited with status $ac_status" >&5
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8878
8879 ( exit $ac_status )
8880 ac_cv_func_mmap_fixed_mapped=no
8881 fi
8882 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8883 fi
8884 fi
8885 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8886 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8887 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8888
8889 cat >>confdefs.h <<\_ACEOF
8890 #define HAVE_MMAP 1
8891 _ACEOF
8892
8893 fi
8894 rm -f conftest.mmap
8895
8896
8897     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8898 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8899 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8900   echo $ECHO_N "(cached) $ECHO_C" >&6
8901 else
8902   cat >conftest.$ac_ext <<_ACEOF
8903 /* confdefs.h.  */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h.  */
8908
8909 #include <features.h>
8910 #ifdef __GNU_LIBRARY__
8911  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8912   Lucky GNU user
8913  #endif
8914 #endif
8915
8916 _ACEOF
8917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8918   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8919   ac_cv_gnu_library_2_1=yes
8920 else
8921   ac_cv_gnu_library_2_1=no
8922 fi
8923 rm -f conftest*
8924
8925
8926
8927 fi
8928 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8929 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8930
8931     GLIBC21="$ac_cv_gnu_library_2_1"
8932
8933
8934
8935
8936   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8937 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8938 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941
8942       if test "$cross_compiling" = yes; then
8943
8944           # Guess based on the CPU.
8945           case "$host_cpu" in
8946             alpha* | i3456786 | m68k | s390*)
8947               gt_cv_int_divbyzero_sigfpe="guessing yes";;
8948             *)
8949               gt_cv_int_divbyzero_sigfpe="guessing no";;
8950           esac
8951
8952 else
8953   cat >conftest.$ac_ext <<_ACEOF
8954 /* confdefs.h.  */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h.  */
8959
8960 #include <stdlib.h>
8961 #include <signal.h>
8962
8963 static void
8964 #ifdef __cplusplus
8965 sigfpe_handler (int sig)
8966 #else
8967 sigfpe_handler (sig) int sig;
8968 #endif
8969 {
8970   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
8971   exit (sig != SIGFPE);
8972 }
8973
8974 int x = 1;
8975 int y = 0;
8976 int z;
8977 int nan;
8978
8979 int main ()
8980 {
8981   signal (SIGFPE, sigfpe_handler);
8982 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
8983 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8984   signal (SIGTRAP, sigfpe_handler);
8985 #endif
8986 /* Linux/SPARC yields signal SIGILL.  */
8987 #if defined (__sparc__) && defined (__linux__)
8988   signal (SIGILL, sigfpe_handler);
8989 #endif
8990
8991   z = x / y;
8992   nan = y / y;
8993   exit (1);
8994 }
8995
8996 _ACEOF
8997 rm -f conftest$ac_exeext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8999   (eval $ac_link) 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004   (eval $ac_try) 2>&5
9005   ac_status=$?
9006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   (exit $ac_status); }; }; then
9008   gt_cv_int_divbyzero_sigfpe=yes
9009 else
9010   echo "$as_me: program exited with status $ac_status" >&5
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9013
9014 ( exit $ac_status )
9015 gt_cv_int_divbyzero_sigfpe=no
9016 fi
9017 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9018 fi
9019
9020 fi
9021 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9022 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9023   case "$gt_cv_int_divbyzero_sigfpe" in
9024     *yes) value=1;;
9025     *) value=0;;
9026   esac
9027
9028 cat >>confdefs.h <<_ACEOF
9029 #define INTDIV0_RAISES_SIGFPE $value
9030 _ACEOF
9031
9032
9033
9034   echo "$as_me:$LINENO: checking for unsigned long long" >&5
9035 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9036 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9037   echo $ECHO_N "(cached) $ECHO_C" >&6
9038 else
9039   cat >conftest.$ac_ext <<_ACEOF
9040 /* confdefs.h.  */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h.  */
9045 unsigned long long ull = 1ULL; int i = 63;
9046 int
9047 main ()
9048 {
9049 unsigned long long ullmax = (unsigned long long) -1;
9050      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9051   ;
9052   return 0;
9053 }
9054 _ACEOF
9055 rm -f conftest.$ac_objext conftest$ac_exeext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9057   (eval $ac_link) 2>conftest.er1
9058   ac_status=$?
9059   grep -v '^ *+' conftest.er1 >conftest.err
9060   rm -f conftest.er1
9061   cat conftest.err >&5
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); } &&
9064          { ac_try='test -z "$ac_c_werror_flag"
9065                          || test ! -s conftest.err'
9066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067   (eval $ac_try) 2>&5
9068   ac_status=$?
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); }; } &&
9071          { ac_try='test -s conftest$ac_exeext'
9072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073   (eval $ac_try) 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); }; }; then
9077   ac_cv_type_unsigned_long_long=yes
9078 else
9079   echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9081
9082 ac_cv_type_unsigned_long_long=no
9083 fi
9084 rm -f conftest.err conftest.$ac_objext \
9085       conftest$ac_exeext conftest.$ac_ext
9086 fi
9087 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9088 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9089   if test $ac_cv_type_unsigned_long_long = yes; then
9090
9091 cat >>confdefs.h <<\_ACEOF
9092 #define HAVE_UNSIGNED_LONG_LONG 1
9093 _ACEOF
9094
9095   fi
9096
9097
9098
9099
9100   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9101
9102     test $ac_cv_type_unsigned_long_long = yes \
9103       && ac_type='unsigned long long' \
9104       || ac_type='unsigned long'
9105
9106 cat >>confdefs.h <<_ACEOF
9107 #define uintmax_t $ac_type
9108 _ACEOF
9109
9110   else
9111
9112 cat >>confdefs.h <<\_ACEOF
9113 #define HAVE_UINTMAX_T 1
9114 _ACEOF
9115
9116   fi
9117
9118
9119   echo "$as_me:$LINENO: checking for inttypes.h" >&5
9120 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9121 if test "${gt_cv_header_inttypes_h+set}" = set; then
9122   echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124
9125     cat >conftest.$ac_ext <<_ACEOF
9126 /* confdefs.h.  */
9127 _ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h.  */
9131 #include <sys/types.h>
9132 #include <inttypes.h>
9133 int
9134 main ()
9135 {
9136
9137   ;
9138   return 0;
9139 }
9140 _ACEOF
9141 rm -f conftest.$ac_objext
9142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9143   (eval $ac_compile) 2>conftest.er1
9144   ac_status=$?
9145   grep -v '^ *+' conftest.er1 >conftest.err
9146   rm -f conftest.er1
9147   cat conftest.err >&5
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); } &&
9150          { ac_try='test -z "$ac_c_werror_flag"
9151                          || test ! -s conftest.err'
9152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153   (eval $ac_try) 2>&5
9154   ac_status=$?
9155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156   (exit $ac_status); }; } &&
9157          { ac_try='test -s conftest.$ac_objext'
9158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159   (eval $ac_try) 2>&5
9160   ac_status=$?
9161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162   (exit $ac_status); }; }; then
9163   gt_cv_header_inttypes_h=yes
9164 else
9165   echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9167
9168 gt_cv_header_inttypes_h=no
9169 fi
9170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9171
9172 fi
9173 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9174 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9175   if test $gt_cv_header_inttypes_h = yes; then
9176
9177 cat >>confdefs.h <<_ACEOF
9178 #define HAVE_INTTYPES_H 1
9179 _ACEOF
9180
9181   fi
9182
9183
9184
9185   if test $gt_cv_header_inttypes_h = yes; then
9186     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9187 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9188 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9189   echo $ECHO_N "(cached) $ECHO_C" >&6
9190 else
9191
9192         cat >conftest.$ac_ext <<_ACEOF
9193 /* confdefs.h.  */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h.  */
9198 #include <inttypes.h>
9199 #ifdef PRId32
9200 char *p = PRId32;
9201 #endif
9202
9203 int
9204 main ()
9205 {
9206
9207   ;
9208   return 0;
9209 }
9210 _ACEOF
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213   (eval $ac_compile) 2>conftest.er1
9214   ac_status=$?
9215   grep -v '^ *+' conftest.er1 >conftest.err
9216   rm -f conftest.er1
9217   cat conftest.err >&5
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); } &&
9220          { ac_try='test -z "$ac_c_werror_flag"
9221                          || test ! -s conftest.err'
9222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223   (eval $ac_try) 2>&5
9224   ac_status=$?
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); }; } &&
9227          { ac_try='test -s conftest.$ac_objext'
9228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229   (eval $ac_try) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); }; }; then
9233   gt_cv_inttypes_pri_broken=no
9234 else
9235   echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9237
9238 gt_cv_inttypes_pri_broken=yes
9239 fi
9240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9241
9242 fi
9243 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9244 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9245   fi
9246   if test "$gt_cv_inttypes_pri_broken" = yes; then
9247
9248 cat >>confdefs.h <<_ACEOF
9249 #define PRI_MACROS_BROKEN 1
9250 _ACEOF
9251
9252   fi
9253
9254
9255
9256 for ac_header in stdint.h
9257 do
9258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9260   echo "$as_me:$LINENO: checking for $ac_header" >&5
9261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9263   echo $ECHO_N "(cached) $ECHO_C" >&6
9264 fi
9265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9267 else
9268   # Is the header compilable?
9269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9271 cat >conftest.$ac_ext <<_ACEOF
9272 /* confdefs.h.  */
9273 _ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h.  */
9277 $ac_includes_default
9278 #include <$ac_header>
9279 _ACEOF
9280 rm -f conftest.$ac_objext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282   (eval $ac_compile) 2>conftest.er1
9283   ac_status=$?
9284   grep -v '^ *+' conftest.er1 >conftest.err
9285   rm -f conftest.er1
9286   cat conftest.err >&5
9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); } &&
9289          { ac_try='test -z "$ac_c_werror_flag"
9290                          || test ! -s conftest.err'
9291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292   (eval $ac_try) 2>&5
9293   ac_status=$?
9294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295   (exit $ac_status); }; } &&
9296          { ac_try='test -s conftest.$ac_objext'
9297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298   (eval $ac_try) 2>&5
9299   ac_status=$?
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); }; }; then
9302   ac_header_compiler=yes
9303 else
9304   echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306
9307 ac_header_compiler=no
9308 fi
9309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9311 echo "${ECHO_T}$ac_header_compiler" >&6
9312
9313 # Is the header present?
9314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9316 cat >conftest.$ac_ext <<_ACEOF
9317 /* confdefs.h.  */
9318 _ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h.  */
9322 #include <$ac_header>
9323 _ACEOF
9324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9325   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9326   ac_status=$?
9327   grep -v '^ *+' conftest.er1 >conftest.err
9328   rm -f conftest.er1
9329   cat conftest.err >&5
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); } >/dev/null; then
9332   if test -s conftest.err; then
9333     ac_cpp_err=$ac_c_preproc_warn_flag
9334     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9335   else
9336     ac_cpp_err=
9337   fi
9338 else
9339   ac_cpp_err=yes
9340 fi
9341 if test -z "$ac_cpp_err"; then
9342   ac_header_preproc=yes
9343 else
9344   echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9346
9347   ac_header_preproc=no
9348 fi
9349 rm -f conftest.err conftest.$ac_ext
9350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9351 echo "${ECHO_T}$ac_header_preproc" >&6
9352
9353 # So?  What about this header?
9354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9355   yes:no: )
9356     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9360     ac_header_preproc=yes
9361     ;;
9362   no:yes:* )
9363     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9365     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9366 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9367     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9369     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9370 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9373     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9375     (
9376       cat <<\_ASBOX
9377 ## ------------------------------------------ ##
9378 ## Report this to the AC_PACKAGE_NAME lists.  ##
9379 ## ------------------------------------------ ##
9380 _ASBOX
9381     ) |
9382       sed "s/^/$as_me: WARNING:     /" >&2
9383     ;;
9384 esac
9385 echo "$as_me:$LINENO: checking for $ac_header" >&5
9386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9388   echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390   eval "$as_ac_Header=\$ac_header_preproc"
9391 fi
9392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9394
9395 fi
9396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9397   cat >>confdefs.h <<_ACEOF
9398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9399 _ACEOF
9400
9401 fi
9402
9403 done
9404
9405     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9406 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9407   result=
9408   cat >conftest.$ac_ext <<_ACEOF
9409 /* confdefs.h.  */
9410 _ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h.  */
9414
9415 #include <limits.h>
9416 #if HAVE_STDINT_H
9417 #include <stdint.h>
9418 #endif
9419 #ifdef SIZE_MAX
9420 Found it
9421 #endif
9422
9423 _ACEOF
9424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9425   $EGREP "Found it" >/dev/null 2>&1; then
9426   result=yes
9427 fi
9428 rm -f conftest*
9429
9430   if test -z "$result"; then
9431                     if test "$cross_compiling" = yes; then
9432   # Depending upon the size, compute the lo and hi bounds.
9433 cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h.  */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h.  */
9439 #include <stddef.h>
9440 int
9441 main ()
9442 {
9443 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9444 test_array [0] = 0
9445
9446   ;
9447   return 0;
9448 }
9449 _ACEOF
9450 rm -f conftest.$ac_objext
9451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9452   (eval $ac_compile) 2>conftest.er1
9453   ac_status=$?
9454   grep -v '^ *+' conftest.er1 >conftest.err
9455   rm -f conftest.er1
9456   cat conftest.err >&5
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); } &&
9459          { ac_try='test -z "$ac_c_werror_flag"
9460                          || test ! -s conftest.err'
9461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462   (eval $ac_try) 2>&5
9463   ac_status=$?
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); }; } &&
9466          { ac_try='test -s conftest.$ac_objext'
9467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468   (eval $ac_try) 2>&5
9469   ac_status=$?
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); }; }; then
9472   ac_lo=0 ac_mid=0
9473   while :; do
9474     cat >conftest.$ac_ext <<_ACEOF
9475 /* confdefs.h.  */
9476 _ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h.  */
9480 #include <stddef.h>
9481 int
9482 main ()
9483 {
9484 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9485 test_array [0] = 0
9486
9487   ;
9488   return 0;
9489 }
9490 _ACEOF
9491 rm -f conftest.$ac_objext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9493   (eval $ac_compile) 2>conftest.er1
9494   ac_status=$?
9495   grep -v '^ *+' conftest.er1 >conftest.err
9496   rm -f conftest.er1
9497   cat conftest.err >&5
9498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); } &&
9500          { ac_try='test -z "$ac_c_werror_flag"
9501                          || test ! -s conftest.err'
9502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503   (eval $ac_try) 2>&5
9504   ac_status=$?
9505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506   (exit $ac_status); }; } &&
9507          { ac_try='test -s conftest.$ac_objext'
9508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509   (eval $ac_try) 2>&5
9510   ac_status=$?
9511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512   (exit $ac_status); }; }; then
9513   ac_hi=$ac_mid; break
9514 else
9515   echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9517
9518 ac_lo=`expr $ac_mid + 1`
9519                     if test $ac_lo -le $ac_mid; then
9520                       ac_lo= ac_hi=
9521                       break
9522                     fi
9523                     ac_mid=`expr 2 '*' $ac_mid + 1`
9524 fi
9525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9526   done
9527 else
9528   echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9530
9531 cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h.  */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h.  */
9537 #include <stddef.h>
9538 int
9539 main ()
9540 {
9541 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9542 test_array [0] = 0
9543
9544   ;
9545   return 0;
9546 }
9547 _ACEOF
9548 rm -f conftest.$ac_objext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9550   (eval $ac_compile) 2>conftest.er1
9551   ac_status=$?
9552   grep -v '^ *+' conftest.er1 >conftest.err
9553   rm -f conftest.er1
9554   cat conftest.err >&5
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); } &&
9557          { ac_try='test -z "$ac_c_werror_flag"
9558                          || test ! -s conftest.err'
9559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560   (eval $ac_try) 2>&5
9561   ac_status=$?
9562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); }; } &&
9564          { ac_try='test -s conftest.$ac_objext'
9565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566   (eval $ac_try) 2>&5
9567   ac_status=$?
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); }; }; then
9570   ac_hi=-1 ac_mid=-1
9571   while :; do
9572     cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h.  */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h.  */
9578 #include <stddef.h>
9579 int
9580 main ()
9581 {
9582 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9583 test_array [0] = 0
9584
9585   ;
9586   return 0;
9587 }
9588 _ACEOF
9589 rm -f conftest.$ac_objext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9591   (eval $ac_compile) 2>conftest.er1
9592   ac_status=$?
9593   grep -v '^ *+' conftest.er1 >conftest.err
9594   rm -f conftest.er1
9595   cat conftest.err >&5
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); } &&
9598          { ac_try='test -z "$ac_c_werror_flag"
9599                          || test ! -s conftest.err'
9600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601   (eval $ac_try) 2>&5
9602   ac_status=$?
9603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604   (exit $ac_status); }; } &&
9605          { ac_try='test -s conftest.$ac_objext'
9606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607   (eval $ac_try) 2>&5
9608   ac_status=$?
9609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610   (exit $ac_status); }; }; then
9611   ac_lo=$ac_mid; break
9612 else
9613   echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9615
9616 ac_hi=`expr '(' $ac_mid ')' - 1`
9617                        if test $ac_mid -le $ac_hi; then
9618                          ac_lo= ac_hi=
9619                          break
9620                        fi
9621                        ac_mid=`expr 2 '*' $ac_mid`
9622 fi
9623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9624   done
9625 else
9626   echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629 ac_lo= ac_hi=
9630 fi
9631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9632 fi
9633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9634 # Binary search between lo and hi bounds.
9635 while test "x$ac_lo" != "x$ac_hi"; do
9636   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9637   cat >conftest.$ac_ext <<_ACEOF
9638 /* confdefs.h.  */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h.  */
9643 #include <stddef.h>
9644 int
9645 main ()
9646 {
9647 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9648 test_array [0] = 0
9649
9650   ;
9651   return 0;
9652 }
9653 _ACEOF
9654 rm -f conftest.$ac_objext
9655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9656   (eval $ac_compile) 2>conftest.er1
9657   ac_status=$?
9658   grep -v '^ *+' conftest.er1 >conftest.err
9659   rm -f conftest.er1
9660   cat conftest.err >&5
9661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662   (exit $ac_status); } &&
9663          { ac_try='test -z "$ac_c_werror_flag"
9664                          || test ! -s conftest.err'
9665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666   (eval $ac_try) 2>&5
9667   ac_status=$?
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); }; } &&
9670          { ac_try='test -s conftest.$ac_objext'
9671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672   (eval $ac_try) 2>&5
9673   ac_status=$?
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); }; }; then
9676   ac_hi=$ac_mid
9677 else
9678   echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9680
9681 ac_lo=`expr '(' $ac_mid ')' + 1`
9682 fi
9683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9684 done
9685 case $ac_lo in
9686 ?*) res_hi=$ac_lo;;
9687 '') result=? ;;
9688 esac
9689 else
9690   if test "$cross_compiling" = yes; then
9691   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9692 See \`config.log' for more details." >&5
9693 echo "$as_me: error: cannot run test program while cross compiling
9694 See \`config.log' for more details." >&2;}
9695    { (exit 1); exit 1; }; }
9696 else
9697   cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h.  */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h.  */
9703 #include <stddef.h>
9704 long longval () { return ~(size_t)0 / 10; }
9705 unsigned long ulongval () { return ~(size_t)0 / 10; }
9706 #include <stdio.h>
9707 #include <stdlib.h>
9708 int
9709 main ()
9710 {
9711
9712   FILE *f = fopen ("conftest.val", "w");
9713   if (! f)
9714     exit (1);
9715   if ((~(size_t)0 / 10) < 0)
9716     {
9717       long i = longval ();
9718       if (i != (~(size_t)0 / 10))
9719         exit (1);
9720       fprintf (f, "%ld\n", i);
9721     }
9722   else
9723     {
9724       unsigned long i = ulongval ();
9725       if (i != (~(size_t)0 / 10))
9726         exit (1);
9727       fprintf (f, "%lu\n", i);
9728     }
9729   exit (ferror (f) || fclose (f) != 0);
9730
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest$ac_exeext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737   (eval $ac_link) 2>&5
9738   ac_status=$?
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742   (eval $ac_try) 2>&5
9743   ac_status=$?
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   (exit $ac_status); }; }; then
9746   res_hi=`cat conftest.val`
9747 else
9748   echo "$as_me: program exited with status $ac_status" >&5
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9751
9752 ( exit $ac_status )
9753 result=?
9754 fi
9755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9756 fi
9757 fi
9758 rm -f conftest.val
9759     if test "$cross_compiling" = yes; then
9760   # Depending upon the size, compute the lo and hi bounds.
9761 cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h.  */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h.  */
9767 #include <stddef.h>
9768 int
9769 main ()
9770 {
9771 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9772 test_array [0] = 0
9773
9774   ;
9775   return 0;
9776 }
9777 _ACEOF
9778 rm -f conftest.$ac_objext
9779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9780   (eval $ac_compile) 2>conftest.er1
9781   ac_status=$?
9782   grep -v '^ *+' conftest.er1 >conftest.err
9783   rm -f conftest.er1
9784   cat conftest.err >&5
9785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786   (exit $ac_status); } &&
9787          { ac_try='test -z "$ac_c_werror_flag"
9788                          || test ! -s conftest.err'
9789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790   (eval $ac_try) 2>&5
9791   ac_status=$?
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); }; } &&
9794          { ac_try='test -s conftest.$ac_objext'
9795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796   (eval $ac_try) 2>&5
9797   ac_status=$?
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); }; }; then
9800   ac_lo=0 ac_mid=0
9801   while :; do
9802     cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h.  */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h.  */
9808 #include <stddef.h>
9809 int
9810 main ()
9811 {
9812 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9813 test_array [0] = 0
9814
9815   ;
9816   return 0;
9817 }
9818 _ACEOF
9819 rm -f conftest.$ac_objext
9820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9821   (eval $ac_compile) 2>conftest.er1
9822   ac_status=$?
9823   grep -v '^ *+' conftest.er1 >conftest.err
9824   rm -f conftest.er1
9825   cat conftest.err >&5
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); } &&
9828          { ac_try='test -z "$ac_c_werror_flag"
9829                          || test ! -s conftest.err'
9830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831   (eval $ac_try) 2>&5
9832   ac_status=$?
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); }; } &&
9835          { ac_try='test -s conftest.$ac_objext'
9836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837   (eval $ac_try) 2>&5
9838   ac_status=$?
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); }; }; then
9841   ac_hi=$ac_mid; break
9842 else
9843   echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9845
9846 ac_lo=`expr $ac_mid + 1`
9847                     if test $ac_lo -le $ac_mid; then
9848                       ac_lo= ac_hi=
9849                       break
9850                     fi
9851                     ac_mid=`expr 2 '*' $ac_mid + 1`
9852 fi
9853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9854   done
9855 else
9856   echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9858
9859 cat >conftest.$ac_ext <<_ACEOF
9860 /* confdefs.h.  */
9861 _ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h.  */
9865 #include <stddef.h>
9866 int
9867 main ()
9868 {
9869 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9870 test_array [0] = 0
9871
9872   ;
9873   return 0;
9874 }
9875 _ACEOF
9876 rm -f conftest.$ac_objext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9878   (eval $ac_compile) 2>conftest.er1
9879   ac_status=$?
9880   grep -v '^ *+' conftest.er1 >conftest.err
9881   rm -f conftest.er1
9882   cat conftest.err >&5
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); } &&
9885          { ac_try='test -z "$ac_c_werror_flag"
9886                          || test ! -s conftest.err'
9887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888   (eval $ac_try) 2>&5
9889   ac_status=$?
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); }; } &&
9892          { ac_try='test -s conftest.$ac_objext'
9893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894   (eval $ac_try) 2>&5
9895   ac_status=$?
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); }; }; then
9898   ac_hi=-1 ac_mid=-1
9899   while :; do
9900     cat >conftest.$ac_ext <<_ACEOF
9901 /* confdefs.h.  */
9902 _ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h.  */
9906 #include <stddef.h>
9907 int
9908 main ()
9909 {
9910 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9911 test_array [0] = 0
9912
9913   ;
9914   return 0;
9915 }
9916 _ACEOF
9917 rm -f conftest.$ac_objext
9918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9919   (eval $ac_compile) 2>conftest.er1
9920   ac_status=$?
9921   grep -v '^ *+' conftest.er1 >conftest.err
9922   rm -f conftest.er1
9923   cat conftest.err >&5
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); } &&
9926          { ac_try='test -z "$ac_c_werror_flag"
9927                          || test ! -s conftest.err'
9928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929   (eval $ac_try) 2>&5
9930   ac_status=$?
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); }; } &&
9933          { ac_try='test -s conftest.$ac_objext'
9934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935   (eval $ac_try) 2>&5
9936   ac_status=$?
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); }; }; then
9939   ac_lo=$ac_mid; break
9940 else
9941   echo "$as_me: failed program was:" >&5
9942 sed 's/^/| /' conftest.$ac_ext >&5
9943
9944 ac_hi=`expr '(' $ac_mid ')' - 1`
9945                        if test $ac_mid -le $ac_hi; then
9946                          ac_lo= ac_hi=
9947                          break
9948                        fi
9949                        ac_mid=`expr 2 '*' $ac_mid`
9950 fi
9951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9952   done
9953 else
9954   echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9956
9957 ac_lo= ac_hi=
9958 fi
9959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9960 fi
9961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9962 # Binary search between lo and hi bounds.
9963 while test "x$ac_lo" != "x$ac_hi"; do
9964   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9965   cat >conftest.$ac_ext <<_ACEOF
9966 /* confdefs.h.  */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h.  */
9971 #include <stddef.h>
9972 int
9973 main ()
9974 {
9975 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9976 test_array [0] = 0
9977
9978   ;
9979   return 0;
9980 }
9981 _ACEOF
9982 rm -f conftest.$ac_objext
9983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9984   (eval $ac_compile) 2>conftest.er1
9985   ac_status=$?
9986   grep -v '^ *+' conftest.er1 >conftest.err
9987   rm -f conftest.er1
9988   cat conftest.err >&5
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); } &&
9991          { ac_try='test -z "$ac_c_werror_flag"
9992                          || test ! -s conftest.err'
9993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994   (eval $ac_try) 2>&5
9995   ac_status=$?
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); }; } &&
9998          { ac_try='test -s conftest.$ac_objext'
9999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000   (eval $ac_try) 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); }; }; then
10004   ac_hi=$ac_mid
10005 else
10006   echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10008
10009 ac_lo=`expr '(' $ac_mid ')' + 1`
10010 fi
10011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10012 done
10013 case $ac_lo in
10014 ?*) res_lo=$ac_lo;;
10015 '') result=? ;;
10016 esac
10017 else
10018   if test "$cross_compiling" = yes; then
10019   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10020 See \`config.log' for more details." >&5
10021 echo "$as_me: error: cannot run test program while cross compiling
10022 See \`config.log' for more details." >&2;}
10023    { (exit 1); exit 1; }; }
10024 else
10025   cat >conftest.$ac_ext <<_ACEOF
10026 /* confdefs.h.  */
10027 _ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h.  */
10031 #include <stddef.h>
10032 long longval () { return ~(size_t)0 % 10; }
10033 unsigned long ulongval () { return ~(size_t)0 % 10; }
10034 #include <stdio.h>
10035 #include <stdlib.h>
10036 int
10037 main ()
10038 {
10039
10040   FILE *f = fopen ("conftest.val", "w");
10041   if (! f)
10042     exit (1);
10043   if ((~(size_t)0 % 10) < 0)
10044     {
10045       long i = longval ();
10046       if (i != (~(size_t)0 % 10))
10047         exit (1);
10048       fprintf (f, "%ld\n", i);
10049     }
10050   else
10051     {
10052       unsigned long i = ulongval ();
10053       if (i != (~(size_t)0 % 10))
10054         exit (1);
10055       fprintf (f, "%lu\n", i);
10056     }
10057   exit (ferror (f) || fclose (f) != 0);
10058
10059   ;
10060   return 0;
10061 }
10062 _ACEOF
10063 rm -f conftest$ac_exeext
10064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10065   (eval $ac_link) 2>&5
10066   ac_status=$?
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070   (eval $ac_try) 2>&5
10071   ac_status=$?
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); }; }; then
10074   res_lo=`cat conftest.val`
10075 else
10076   echo "$as_me: program exited with status $ac_status" >&5
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10079
10080 ( exit $ac_status )
10081 result=?
10082 fi
10083 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10084 fi
10085 fi
10086 rm -f conftest.val
10087     if test "$cross_compiling" = yes; then
10088   # Depending upon the size, compute the lo and hi bounds.
10089 cat >conftest.$ac_ext <<_ACEOF
10090 /* confdefs.h.  */
10091 _ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h.  */
10095 #include <stddef.h>
10096 int
10097 main ()
10098 {
10099 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10100 test_array [0] = 0
10101
10102   ;
10103   return 0;
10104 }
10105 _ACEOF
10106 rm -f conftest.$ac_objext
10107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10108   (eval $ac_compile) 2>conftest.er1
10109   ac_status=$?
10110   grep -v '^ *+' conftest.er1 >conftest.err
10111   rm -f conftest.er1
10112   cat conftest.err >&5
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); } &&
10115          { ac_try='test -z "$ac_c_werror_flag"
10116                          || test ! -s conftest.err'
10117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118   (eval $ac_try) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); }; } &&
10122          { ac_try='test -s conftest.$ac_objext'
10123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124   (eval $ac_try) 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); }; }; then
10128   ac_lo=0 ac_mid=0
10129   while :; do
10130     cat >conftest.$ac_ext <<_ACEOF
10131 /* confdefs.h.  */
10132 _ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h.  */
10136 #include <stddef.h>
10137 int
10138 main ()
10139 {
10140 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10141 test_array [0] = 0
10142
10143   ;
10144   return 0;
10145 }
10146 _ACEOF
10147 rm -f conftest.$ac_objext
10148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10149   (eval $ac_compile) 2>conftest.er1
10150   ac_status=$?
10151   grep -v '^ *+' conftest.er1 >conftest.err
10152   rm -f conftest.er1
10153   cat conftest.err >&5
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); } &&
10156          { ac_try='test -z "$ac_c_werror_flag"
10157                          || test ! -s conftest.err'
10158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159   (eval $ac_try) 2>&5
10160   ac_status=$?
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); }; } &&
10163          { ac_try='test -s conftest.$ac_objext'
10164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165   (eval $ac_try) 2>&5
10166   ac_status=$?
10167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168   (exit $ac_status); }; }; then
10169   ac_hi=$ac_mid; break
10170 else
10171   echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10173
10174 ac_lo=`expr $ac_mid + 1`
10175                     if test $ac_lo -le $ac_mid; then
10176                       ac_lo= ac_hi=
10177                       break
10178                     fi
10179                     ac_mid=`expr 2 '*' $ac_mid + 1`
10180 fi
10181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10182   done
10183 else
10184   echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10186
10187 cat >conftest.$ac_ext <<_ACEOF
10188 /* confdefs.h.  */
10189 _ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h.  */
10193 #include <stddef.h>
10194 int
10195 main ()
10196 {
10197 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10198 test_array [0] = 0
10199
10200   ;
10201   return 0;
10202 }
10203 _ACEOF
10204 rm -f conftest.$ac_objext
10205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10206   (eval $ac_compile) 2>conftest.er1
10207   ac_status=$?
10208   grep -v '^ *+' conftest.er1 >conftest.err
10209   rm -f conftest.er1
10210   cat conftest.err >&5
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); } &&
10213          { ac_try='test -z "$ac_c_werror_flag"
10214                          || test ! -s conftest.err'
10215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216   (eval $ac_try) 2>&5
10217   ac_status=$?
10218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219   (exit $ac_status); }; } &&
10220          { ac_try='test -s conftest.$ac_objext'
10221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222   (eval $ac_try) 2>&5
10223   ac_status=$?
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); }; }; then
10226   ac_hi=-1 ac_mid=-1
10227   while :; do
10228     cat >conftest.$ac_ext <<_ACEOF
10229 /* confdefs.h.  */
10230 _ACEOF
10231 cat confdefs.h >>conftest.$ac_ext
10232 cat >>conftest.$ac_ext <<_ACEOF
10233 /* end confdefs.h.  */
10234 #include <stddef.h>
10235 int
10236 main ()
10237 {
10238 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10239 test_array [0] = 0
10240
10241   ;
10242   return 0;
10243 }
10244 _ACEOF
10245 rm -f conftest.$ac_objext
10246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10247   (eval $ac_compile) 2>conftest.er1
10248   ac_status=$?
10249   grep -v '^ *+' conftest.er1 >conftest.err
10250   rm -f conftest.er1
10251   cat conftest.err >&5
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); } &&
10254          { ac_try='test -z "$ac_c_werror_flag"
10255                          || test ! -s conftest.err'
10256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257   (eval $ac_try) 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); }; } &&
10261          { ac_try='test -s conftest.$ac_objext'
10262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263   (eval $ac_try) 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); }; }; then
10267   ac_lo=$ac_mid; break
10268 else
10269   echo "$as_me: failed program was:" >&5
10270 sed 's/^/| /' conftest.$ac_ext >&5
10271
10272 ac_hi=`expr '(' $ac_mid ')' - 1`
10273                        if test $ac_mid -le $ac_hi; then
10274                          ac_lo= ac_hi=
10275                          break
10276                        fi
10277                        ac_mid=`expr 2 '*' $ac_mid`
10278 fi
10279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10280   done
10281 else
10282   echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10284
10285 ac_lo= ac_hi=
10286 fi
10287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10288 fi
10289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10290 # Binary search between lo and hi bounds.
10291 while test "x$ac_lo" != "x$ac_hi"; do
10292   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10293   cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h.  */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h.  */
10299 #include <stddef.h>
10300 int
10301 main ()
10302 {
10303 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10304 test_array [0] = 0
10305
10306   ;
10307   return 0;
10308 }
10309 _ACEOF
10310 rm -f conftest.$ac_objext
10311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10312   (eval $ac_compile) 2>conftest.er1
10313   ac_status=$?
10314   grep -v '^ *+' conftest.er1 >conftest.err
10315   rm -f conftest.er1
10316   cat conftest.err >&5
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); } &&
10319          { ac_try='test -z "$ac_c_werror_flag"
10320                          || test ! -s conftest.err'
10321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322   (eval $ac_try) 2>&5
10323   ac_status=$?
10324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325   (exit $ac_status); }; } &&
10326          { ac_try='test -s conftest.$ac_objext'
10327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328   (eval $ac_try) 2>&5
10329   ac_status=$?
10330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331   (exit $ac_status); }; }; then
10332   ac_hi=$ac_mid
10333 else
10334   echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10336
10337 ac_lo=`expr '(' $ac_mid ')' + 1`
10338 fi
10339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10340 done
10341 case $ac_lo in
10342 ?*) fits_in_uint=$ac_lo;;
10343 '') result=? ;;
10344 esac
10345 else
10346   if test "$cross_compiling" = yes; then
10347   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10348 See \`config.log' for more details." >&5
10349 echo "$as_me: error: cannot run test program while cross compiling
10350 See \`config.log' for more details." >&2;}
10351    { (exit 1); exit 1; }; }
10352 else
10353   cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h.  */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h.  */
10359 #include <stddef.h>
10360 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10361 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10362 #include <stdio.h>
10363 #include <stdlib.h>
10364 int
10365 main ()
10366 {
10367
10368   FILE *f = fopen ("conftest.val", "w");
10369   if (! f)
10370     exit (1);
10371   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10372     {
10373       long i = longval ();
10374       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10375         exit (1);
10376       fprintf (f, "%ld\n", i);
10377     }
10378   else
10379     {
10380       unsigned long i = ulongval ();
10381       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10382         exit (1);
10383       fprintf (f, "%lu\n", i);
10384     }
10385   exit (ferror (f) || fclose (f) != 0);
10386
10387   ;
10388   return 0;
10389 }
10390 _ACEOF
10391 rm -f conftest$ac_exeext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10393   (eval $ac_link) 2>&5
10394   ac_status=$?
10395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398   (eval $ac_try) 2>&5
10399   ac_status=$?
10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401   (exit $ac_status); }; }; then
10402   fits_in_uint=`cat conftest.val`
10403 else
10404   echo "$as_me: program exited with status $ac_status" >&5
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10407
10408 ( exit $ac_status )
10409 result=?
10410 fi
10411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10412 fi
10413 fi
10414 rm -f conftest.val
10415     if test "$fits_in_uint" = 1; then
10416                   cat >conftest.$ac_ext <<_ACEOF
10417 /* confdefs.h.  */
10418 _ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h.  */
10422 #include <stddef.h>
10423         extern size_t foo;
10424         extern unsigned long foo;
10425
10426 int
10427 main ()
10428 {
10429
10430   ;
10431   return 0;
10432 }
10433 _ACEOF
10434 rm -f conftest.$ac_objext
10435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10436   (eval $ac_compile) 2>conftest.er1
10437   ac_status=$?
10438   grep -v '^ *+' conftest.er1 >conftest.err
10439   rm -f conftest.er1
10440   cat conftest.err >&5
10441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442   (exit $ac_status); } &&
10443          { ac_try='test -z "$ac_c_werror_flag"
10444                          || test ! -s conftest.err'
10445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446   (eval $ac_try) 2>&5
10447   ac_status=$?
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); }; } &&
10450          { ac_try='test -s conftest.$ac_objext'
10451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452   (eval $ac_try) 2>&5
10453   ac_status=$?
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); }; }; then
10456   fits_in_uint=0
10457 else
10458   echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10460
10461 fi
10462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10463     fi
10464     if test -z "$result"; then
10465       if test "$fits_in_uint" = 1; then
10466         result="$res_hi$res_lo"U
10467       else
10468         result="$res_hi$res_lo"UL
10469       fi
10470     else
10471             result='~(size_t)0'
10472     fi
10473   fi
10474   echo "$as_me:$LINENO: result: $result" >&5
10475 echo "${ECHO_T}$result" >&6
10476   if test "$result" != yes; then
10477
10478 cat >>confdefs.h <<_ACEOF
10479 #define SIZE_MAX $result
10480 _ACEOF
10481
10482   fi
10483
10484
10485
10486
10487
10488 for ac_header in stdint.h
10489 do
10490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10492   echo "$as_me:$LINENO: checking for $ac_header" >&5
10493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10495   echo $ECHO_N "(cached) $ECHO_C" >&6
10496 fi
10497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10499 else
10500   # Is the header compilable?
10501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10503 cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h.  */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h.  */
10509 $ac_includes_default
10510 #include <$ac_header>
10511 _ACEOF
10512 rm -f conftest.$ac_objext
10513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10514   (eval $ac_compile) 2>conftest.er1
10515   ac_status=$?
10516   grep -v '^ *+' conftest.er1 >conftest.err
10517   rm -f conftest.er1
10518   cat conftest.err >&5
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); } &&
10521          { ac_try='test -z "$ac_c_werror_flag"
10522                          || test ! -s conftest.err'
10523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524   (eval $ac_try) 2>&5
10525   ac_status=$?
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   (exit $ac_status); }; } &&
10528          { ac_try='test -s conftest.$ac_objext'
10529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530   (eval $ac_try) 2>&5
10531   ac_status=$?
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); }; }; then
10534   ac_header_compiler=yes
10535 else
10536   echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10538
10539 ac_header_compiler=no
10540 fi
10541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10543 echo "${ECHO_T}$ac_header_compiler" >&6
10544
10545 # Is the header present?
10546 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10548 cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h.  */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h.  */
10554 #include <$ac_header>
10555 _ACEOF
10556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10557   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10558   ac_status=$?
10559   grep -v '^ *+' conftest.er1 >conftest.err
10560   rm -f conftest.er1
10561   cat conftest.err >&5
10562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563   (exit $ac_status); } >/dev/null; then
10564   if test -s conftest.err; then
10565     ac_cpp_err=$ac_c_preproc_warn_flag
10566     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10567   else
10568     ac_cpp_err=
10569   fi
10570 else
10571   ac_cpp_err=yes
10572 fi
10573 if test -z "$ac_cpp_err"; then
10574   ac_header_preproc=yes
10575 else
10576   echo "$as_me: failed program was:" >&5
10577 sed 's/^/| /' conftest.$ac_ext >&5
10578
10579   ac_header_preproc=no
10580 fi
10581 rm -f conftest.err conftest.$ac_ext
10582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10583 echo "${ECHO_T}$ac_header_preproc" >&6
10584
10585 # So?  What about this header?
10586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10587   yes:no: )
10588     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10592     ac_header_preproc=yes
10593     ;;
10594   no:yes:* )
10595     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10597     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10598 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10599     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10601     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10602 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10603     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10605     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10607     (
10608       cat <<\_ASBOX
10609 ## ------------------------------------------ ##
10610 ## Report this to the AC_PACKAGE_NAME lists.  ##
10611 ## ------------------------------------------ ##
10612 _ASBOX
10613     ) |
10614       sed "s/^/$as_me: WARNING:     /" >&2
10615     ;;
10616 esac
10617 echo "$as_me:$LINENO: checking for $ac_header" >&5
10618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10620   echo $ECHO_N "(cached) $ECHO_C" >&6
10621 else
10622   eval "$as_ac_Header=\$ac_header_preproc"
10623 fi
10624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10626
10627 fi
10628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10629   cat >>confdefs.h <<_ACEOF
10630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10631 _ACEOF
10632
10633 fi
10634
10635 done
10636
10637
10638
10639
10640
10641
10642
10643
10644   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10645 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10646 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10647   echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649   cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h.  */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h.  */
10655 $ac_includes_default
10656 int
10657 main ()
10658 {
10659 if ((ptrdiff_t *) 0)
10660   return 0;
10661 if (sizeof (ptrdiff_t))
10662   return 0;
10663   ;
10664   return 0;
10665 }
10666 _ACEOF
10667 rm -f conftest.$ac_objext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669   (eval $ac_compile) 2>conftest.er1
10670   ac_status=$?
10671   grep -v '^ *+' conftest.er1 >conftest.err
10672   rm -f conftest.er1
10673   cat conftest.err >&5
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); } &&
10676          { ac_try='test -z "$ac_c_werror_flag"
10677                          || test ! -s conftest.err'
10678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679   (eval $ac_try) 2>&5
10680   ac_status=$?
10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); }; } &&
10683          { ac_try='test -s conftest.$ac_objext'
10684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685   (eval $ac_try) 2>&5
10686   ac_status=$?
10687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688   (exit $ac_status); }; }; then
10689   ac_cv_type_ptrdiff_t=yes
10690 else
10691   echo "$as_me: failed program was:" >&5
10692 sed 's/^/| /' conftest.$ac_ext >&5
10693
10694 ac_cv_type_ptrdiff_t=no
10695 fi
10696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10697 fi
10698 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10699 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10700 if test $ac_cv_type_ptrdiff_t = yes; then
10701   :
10702 else
10703
10704 cat >>confdefs.h <<\_ACEOF
10705 #define ptrdiff_t long
10706 _ACEOF
10707
10708
10709 fi
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10722 stdlib.h string.h unistd.h sys/param.h
10723 do
10724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10726   echo "$as_me:$LINENO: checking for $ac_header" >&5
10727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10729   echo $ECHO_N "(cached) $ECHO_C" >&6
10730 fi
10731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10733 else
10734   # Is the header compilable?
10735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10737 cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743 $ac_includes_default
10744 #include <$ac_header>
10745 _ACEOF
10746 rm -f conftest.$ac_objext
10747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10748   (eval $ac_compile) 2>conftest.er1
10749   ac_status=$?
10750   grep -v '^ *+' conftest.er1 >conftest.err
10751   rm -f conftest.er1
10752   cat conftest.err >&5
10753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); } &&
10755          { ac_try='test -z "$ac_c_werror_flag"
10756                          || test ! -s conftest.err'
10757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758   (eval $ac_try) 2>&5
10759   ac_status=$?
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); }; } &&
10762          { ac_try='test -s conftest.$ac_objext'
10763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764   (eval $ac_try) 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }; }; then
10768   ac_header_compiler=yes
10769 else
10770   echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10772
10773 ac_header_compiler=no
10774 fi
10775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10777 echo "${ECHO_T}$ac_header_compiler" >&6
10778
10779 # Is the header present?
10780 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10782 cat >conftest.$ac_ext <<_ACEOF
10783 /* confdefs.h.  */
10784 _ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h.  */
10788 #include <$ac_header>
10789 _ACEOF
10790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10791   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10792   ac_status=$?
10793   grep -v '^ *+' conftest.er1 >conftest.err
10794   rm -f conftest.er1
10795   cat conftest.err >&5
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); } >/dev/null; then
10798   if test -s conftest.err; then
10799     ac_cpp_err=$ac_c_preproc_warn_flag
10800     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10801   else
10802     ac_cpp_err=
10803   fi
10804 else
10805   ac_cpp_err=yes
10806 fi
10807 if test -z "$ac_cpp_err"; then
10808   ac_header_preproc=yes
10809 else
10810   echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10812
10813   ac_header_preproc=no
10814 fi
10815 rm -f conftest.err conftest.$ac_ext
10816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10817 echo "${ECHO_T}$ac_header_preproc" >&6
10818
10819 # So?  What about this header?
10820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10821   yes:no: )
10822     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10826     ac_header_preproc=yes
10827     ;;
10828   no:yes:* )
10829     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10831     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10832 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10833     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10835     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10836 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10839     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10841     (
10842       cat <<\_ASBOX
10843 ## ------------------------------------------ ##
10844 ## Report this to the AC_PACKAGE_NAME lists.  ##
10845 ## ------------------------------------------ ##
10846 _ASBOX
10847     ) |
10848       sed "s/^/$as_me: WARNING:     /" >&2
10849     ;;
10850 esac
10851 echo "$as_me:$LINENO: checking for $ac_header" >&5
10852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10854   echo $ECHO_N "(cached) $ECHO_C" >&6
10855 else
10856   eval "$as_ac_Header=\$ac_header_preproc"
10857 fi
10858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10860
10861 fi
10862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10863   cat >>confdefs.h <<_ACEOF
10864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10865 _ACEOF
10866
10867 fi
10868
10869 done
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10895 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10896 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10897 __fsetlocking
10898 do
10899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10900 echo "$as_me:$LINENO: checking for $ac_func" >&5
10901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10902 if eval "test \"\${$as_ac_var+set}\" = set"; then
10903   echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905   cat >conftest.$ac_ext <<_ACEOF
10906 /* confdefs.h.  */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h.  */
10911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10913 #define $ac_func innocuous_$ac_func
10914
10915 /* System header to define __stub macros and hopefully few prototypes,
10916     which can conflict with char $ac_func (); below.
10917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10918     <limits.h> exists even on freestanding compilers.  */
10919
10920 #ifdef __STDC__
10921 # include <limits.h>
10922 #else
10923 # include <assert.h>
10924 #endif
10925
10926 #undef $ac_func
10927
10928 /* Override any gcc2 internal prototype to avoid an error.  */
10929 #ifdef __cplusplus
10930 extern "C"
10931 {
10932 #endif
10933 /* We use char because int might match the return type of a gcc2
10934    builtin and then its argument prototype would still apply.  */
10935 char $ac_func ();
10936 /* The GNU C library defines this for functions which it implements
10937     to always fail with ENOSYS.  Some functions are actually named
10938     something starting with __ and the normal name is an alias.  */
10939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10940 choke me
10941 #else
10942 char (*f) () = $ac_func;
10943 #endif
10944 #ifdef __cplusplus
10945 }
10946 #endif
10947
10948 int
10949 main ()
10950 {
10951 return f != $ac_func;
10952   ;
10953   return 0;
10954 }
10955 _ACEOF
10956 rm -f conftest.$ac_objext conftest$ac_exeext
10957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10958   (eval $ac_link) 2>conftest.er1
10959   ac_status=$?
10960   grep -v '^ *+' conftest.er1 >conftest.err
10961   rm -f conftest.er1
10962   cat conftest.err >&5
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); } &&
10965          { ac_try='test -z "$ac_c_werror_flag"
10966                          || test ! -s conftest.err'
10967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968   (eval $ac_try) 2>&5
10969   ac_status=$?
10970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971   (exit $ac_status); }; } &&
10972          { ac_try='test -s conftest$ac_exeext'
10973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974   (eval $ac_try) 2>&5
10975   ac_status=$?
10976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977   (exit $ac_status); }; }; then
10978   eval "$as_ac_var=yes"
10979 else
10980   echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10982
10983 eval "$as_ac_var=no"
10984 fi
10985 rm -f conftest.err conftest.$ac_objext \
10986       conftest$ac_exeext conftest.$ac_ext
10987 fi
10988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10990 if test `eval echo '${'$as_ac_var'}'` = yes; then
10991   cat >>confdefs.h <<_ACEOF
10992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10993 _ACEOF
10994
10995 fi
10996 done
10997
10998
10999
11000   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11001 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11002 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11003   echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005   cat >conftest.$ac_ext <<_ACEOF
11006 /* confdefs.h.  */
11007 _ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h.  */
11011 #include <stdio.h>
11012 int
11013 main ()
11014 {
11015
11016 #ifndef _snprintf
11017   char *p = (char *) _snprintf;
11018 #endif
11019
11020   ;
11021   return 0;
11022 }
11023 _ACEOF
11024 rm -f conftest.$ac_objext
11025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11026   (eval $ac_compile) 2>conftest.er1
11027   ac_status=$?
11028   grep -v '^ *+' conftest.er1 >conftest.err
11029   rm -f conftest.er1
11030   cat conftest.err >&5
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); } &&
11033          { ac_try='test -z "$ac_c_werror_flag"
11034                          || test ! -s conftest.err'
11035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036   (eval $ac_try) 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); }; } &&
11040          { ac_try='test -s conftest.$ac_objext'
11041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042   (eval $ac_try) 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; }; then
11046   ac_cv_have_decl__snprintf=yes
11047 else
11048   echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11050
11051 ac_cv_have_decl__snprintf=no
11052 fi
11053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11054 fi
11055 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11056 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11057   if test $ac_cv_have_decl__snprintf = yes; then
11058     gt_value=1
11059   else
11060     gt_value=0
11061   fi
11062
11063 cat >>confdefs.h <<_ACEOF
11064 #define HAVE_DECL__SNPRINTF $gt_value
11065 _ACEOF
11066
11067
11068
11069   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11070 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11071 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11072   echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074   cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h.  */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h.  */
11080 #include <stdio.h>
11081 int
11082 main ()
11083 {
11084
11085 #ifndef _snwprintf
11086   char *p = (char *) _snwprintf;
11087 #endif
11088
11089   ;
11090   return 0;
11091 }
11092 _ACEOF
11093 rm -f conftest.$ac_objext
11094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11095   (eval $ac_compile) 2>conftest.er1
11096   ac_status=$?
11097   grep -v '^ *+' conftest.er1 >conftest.err
11098   rm -f conftest.er1
11099   cat conftest.err >&5
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); } &&
11102          { ac_try='test -z "$ac_c_werror_flag"
11103                          || test ! -s conftest.err'
11104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105   (eval $ac_try) 2>&5
11106   ac_status=$?
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); }; } &&
11109          { ac_try='test -s conftest.$ac_objext'
11110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111   (eval $ac_try) 2>&5
11112   ac_status=$?
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); }; }; then
11115   ac_cv_have_decl__snwprintf=yes
11116 else
11117   echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11119
11120 ac_cv_have_decl__snwprintf=no
11121 fi
11122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11123 fi
11124 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11125 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11126   if test $ac_cv_have_decl__snwprintf = yes; then
11127     gt_value=1
11128   else
11129     gt_value=0
11130   fi
11131
11132 cat >>confdefs.h <<_ACEOF
11133 #define HAVE_DECL__SNWPRINTF $gt_value
11134 _ACEOF
11135
11136
11137
11138
11139   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11140 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11141 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11142   echo $ECHO_N "(cached) $ECHO_C" >&6
11143 else
11144   cat >conftest.$ac_ext <<_ACEOF
11145 /* confdefs.h.  */
11146 _ACEOF
11147 cat confdefs.h >>conftest.$ac_ext
11148 cat >>conftest.$ac_ext <<_ACEOF
11149 /* end confdefs.h.  */
11150 #include <stdio.h>
11151 int
11152 main ()
11153 {
11154
11155 #ifndef feof_unlocked
11156   char *p = (char *) feof_unlocked;
11157 #endif
11158
11159   ;
11160   return 0;
11161 }
11162 _ACEOF
11163 rm -f conftest.$ac_objext
11164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11165   (eval $ac_compile) 2>conftest.er1
11166   ac_status=$?
11167   grep -v '^ *+' conftest.er1 >conftest.err
11168   rm -f conftest.er1
11169   cat conftest.err >&5
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); } &&
11172          { ac_try='test -z "$ac_c_werror_flag"
11173                          || test ! -s conftest.err'
11174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175   (eval $ac_try) 2>&5
11176   ac_status=$?
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); }; } &&
11179          { ac_try='test -s conftest.$ac_objext'
11180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181   (eval $ac_try) 2>&5
11182   ac_status=$?
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); }; }; then
11185   ac_cv_have_decl_feof_unlocked=yes
11186 else
11187   echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11189
11190 ac_cv_have_decl_feof_unlocked=no
11191 fi
11192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11193 fi
11194 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11195 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11196   if test $ac_cv_have_decl_feof_unlocked = yes; then
11197     gt_value=1
11198   else
11199     gt_value=0
11200   fi
11201
11202 cat >>confdefs.h <<_ACEOF
11203 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11204 _ACEOF
11205
11206
11207
11208   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11209 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11210 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11211   echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213   cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h.  */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h.  */
11219 #include <stdio.h>
11220 int
11221 main ()
11222 {
11223
11224 #ifndef fgets_unlocked
11225   char *p = (char *) fgets_unlocked;
11226 #endif
11227
11228   ;
11229   return 0;
11230 }
11231 _ACEOF
11232 rm -f conftest.$ac_objext
11233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11234   (eval $ac_compile) 2>conftest.er1
11235   ac_status=$?
11236   grep -v '^ *+' conftest.er1 >conftest.err
11237   rm -f conftest.er1
11238   cat conftest.err >&5
11239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240   (exit $ac_status); } &&
11241          { ac_try='test -z "$ac_c_werror_flag"
11242                          || test ! -s conftest.err'
11243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244   (eval $ac_try) 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); }; } &&
11248          { ac_try='test -s conftest.$ac_objext'
11249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250   (eval $ac_try) 2>&5
11251   ac_status=$?
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); }; }; then
11254   ac_cv_have_decl_fgets_unlocked=yes
11255 else
11256   echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11258
11259 ac_cv_have_decl_fgets_unlocked=no
11260 fi
11261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11262 fi
11263 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11264 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11265   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11266     gt_value=1
11267   else
11268     gt_value=0
11269   fi
11270
11271 cat >>confdefs.h <<_ACEOF
11272 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11273 _ACEOF
11274
11275
11276
11277   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11278 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11279 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11280   echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282   cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h.  */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h.  */
11288 #include <stdio.h>
11289 int
11290 main ()
11291 {
11292
11293 #ifndef getc_unlocked
11294   char *p = (char *) getc_unlocked;
11295 #endif
11296
11297   ;
11298   return 0;
11299 }
11300 _ACEOF
11301 rm -f conftest.$ac_objext
11302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11303   (eval $ac_compile) 2>conftest.er1
11304   ac_status=$?
11305   grep -v '^ *+' conftest.er1 >conftest.err
11306   rm -f conftest.er1
11307   cat conftest.err >&5
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); } &&
11310          { ac_try='test -z "$ac_c_werror_flag"
11311                          || test ! -s conftest.err'
11312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313   (eval $ac_try) 2>&5
11314   ac_status=$?
11315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316   (exit $ac_status); }; } &&
11317          { ac_try='test -s conftest.$ac_objext'
11318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319   (eval $ac_try) 2>&5
11320   ac_status=$?
11321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); }; }; then
11323   ac_cv_have_decl_getc_unlocked=yes
11324 else
11325   echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.$ac_ext >&5
11327
11328 ac_cv_have_decl_getc_unlocked=no
11329 fi
11330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11331 fi
11332 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11333 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11334   if test $ac_cv_have_decl_getc_unlocked = yes; then
11335     gt_value=1
11336   else
11337     gt_value=0
11338   fi
11339
11340 cat >>confdefs.h <<_ACEOF
11341 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11342 _ACEOF
11343
11344
11345
11346   case $gt_cv_func_printf_posix in
11347     *yes) HAVE_POSIX_PRINTF=1 ;;
11348     *) HAVE_POSIX_PRINTF=0 ;;
11349   esac
11350
11351   if test "$ac_cv_func_asprintf" = yes; then
11352     HAVE_ASPRINTF=1
11353   else
11354     HAVE_ASPRINTF=0
11355   fi
11356
11357   if test "$ac_cv_func_snprintf" = yes; then
11358     HAVE_SNPRINTF=1
11359   else
11360     HAVE_SNPRINTF=0
11361   fi
11362
11363   if test "$ac_cv_func_wprintf" = yes; then
11364     HAVE_WPRINTF=1
11365   else
11366     HAVE_WPRINTF=0
11367   fi
11368
11369
11370
11371
11372
11373
11374
11375           am_save_CPPFLAGS="$CPPFLAGS"
11376
11377   for element in $INCICONV; do
11378     haveit=
11379     for x in $CPPFLAGS; do
11380
11381   acl_save_prefix="$prefix"
11382   prefix="$acl_final_prefix"
11383   acl_save_exec_prefix="$exec_prefix"
11384   exec_prefix="$acl_final_exec_prefix"
11385   eval x=\"$x\"
11386   exec_prefix="$acl_save_exec_prefix"
11387   prefix="$acl_save_prefix"
11388
11389       if test "X$x" = "X$element"; then
11390         haveit=yes
11391         break
11392       fi
11393     done
11394     if test -z "$haveit"; then
11395       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11396     fi
11397   done
11398
11399
11400   echo "$as_me:$LINENO: checking for iconv" >&5
11401 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11402 if test "${am_cv_func_iconv+set}" = set; then
11403   echo $ECHO_N "(cached) $ECHO_C" >&6
11404 else
11405
11406     am_cv_func_iconv="no, consider installing GNU libiconv"
11407     am_cv_lib_iconv=no
11408     cat >conftest.$ac_ext <<_ACEOF
11409 /* confdefs.h.  */
11410 _ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h.  */
11414 #include <stdlib.h>
11415 #include <iconv.h>
11416 int
11417 main ()
11418 {
11419 iconv_t cd = iconv_open("","");
11420        iconv(cd,NULL,NULL,NULL,NULL);
11421        iconv_close(cd);
11422   ;
11423   return 0;
11424 }
11425 _ACEOF
11426 rm -f conftest.$ac_objext conftest$ac_exeext
11427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11428   (eval $ac_link) 2>conftest.er1
11429   ac_status=$?
11430   grep -v '^ *+' conftest.er1 >conftest.err
11431   rm -f conftest.er1
11432   cat conftest.err >&5
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); } &&
11435          { ac_try='test -z "$ac_c_werror_flag"
11436                          || test ! -s conftest.err'
11437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438   (eval $ac_try) 2>&5
11439   ac_status=$?
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); }; } &&
11442          { ac_try='test -s conftest$ac_exeext'
11443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444   (eval $ac_try) 2>&5
11445   ac_status=$?
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); }; }; then
11448   am_cv_func_iconv=yes
11449 else
11450   echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11452
11453 fi
11454 rm -f conftest.err conftest.$ac_objext \
11455       conftest$ac_exeext conftest.$ac_ext
11456     if test "$am_cv_func_iconv" != yes; then
11457       am_save_LIBS="$LIBS"
11458       LIBS="$LIBS $LIBICONV"
11459       cat >conftest.$ac_ext <<_ACEOF
11460 /* confdefs.h.  */
11461 _ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h.  */
11465 #include <stdlib.h>
11466 #include <iconv.h>
11467 int
11468 main ()
11469 {
11470 iconv_t cd = iconv_open("","");
11471          iconv(cd,NULL,NULL,NULL,NULL);
11472          iconv_close(cd);
11473   ;
11474   return 0;
11475 }
11476 _ACEOF
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11479   (eval $ac_link) 2>conftest.er1
11480   ac_status=$?
11481   grep -v '^ *+' conftest.er1 >conftest.err
11482   rm -f conftest.er1
11483   cat conftest.err >&5
11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485   (exit $ac_status); } &&
11486          { ac_try='test -z "$ac_c_werror_flag"
11487                          || test ! -s conftest.err'
11488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489   (eval $ac_try) 2>&5
11490   ac_status=$?
11491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492   (exit $ac_status); }; } &&
11493          { ac_try='test -s conftest$ac_exeext'
11494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495   (eval $ac_try) 2>&5
11496   ac_status=$?
11497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498   (exit $ac_status); }; }; then
11499   am_cv_lib_iconv=yes
11500         am_cv_func_iconv=yes
11501 else
11502   echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11504
11505 fi
11506 rm -f conftest.err conftest.$ac_objext \
11507       conftest$ac_exeext conftest.$ac_ext
11508       LIBS="$am_save_LIBS"
11509     fi
11510
11511 fi
11512 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11513 echo "${ECHO_T}$am_cv_func_iconv" >&6
11514   if test "$am_cv_func_iconv" = yes; then
11515
11516 cat >>confdefs.h <<\_ACEOF
11517 #define HAVE_ICONV 1
11518 _ACEOF
11519
11520   fi
11521   if test "$am_cv_lib_iconv" = yes; then
11522     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11523 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11524     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11525 echo "${ECHO_T}$LIBICONV" >&6
11526   else
11527             CPPFLAGS="$am_save_CPPFLAGS"
11528     LIBICONV=
11529     LTLIBICONV=
11530   fi
11531
11532
11533
11534   if test "$am_cv_func_iconv" = yes; then
11535     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11536 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11537     if test "${am_cv_proto_iconv+set}" = set; then
11538   echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540
11541       cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h.  */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h.  */
11547
11548 #include <stdlib.h>
11549 #include <iconv.h>
11550 extern
11551 #ifdef __cplusplus
11552 "C"
11553 #endif
11554 #if defined(__STDC__) || defined(__cplusplus)
11555 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11556 #else
11557 size_t iconv();
11558 #endif
11559
11560 int
11561 main ()
11562 {
11563
11564   ;
11565   return 0;
11566 }
11567 _ACEOF
11568 rm -f conftest.$ac_objext
11569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11570   (eval $ac_compile) 2>conftest.er1
11571   ac_status=$?
11572   grep -v '^ *+' conftest.er1 >conftest.err
11573   rm -f conftest.er1
11574   cat conftest.err >&5
11575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); } &&
11577          { ac_try='test -z "$ac_c_werror_flag"
11578                          || test ! -s conftest.err'
11579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580   (eval $ac_try) 2>&5
11581   ac_status=$?
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); }; } &&
11584          { ac_try='test -s conftest.$ac_objext'
11585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586   (eval $ac_try) 2>&5
11587   ac_status=$?
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); }; }; then
11590   am_cv_proto_iconv_arg1=""
11591 else
11592   echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11594
11595 am_cv_proto_iconv_arg1="const"
11596 fi
11597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11598       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);"
11599 fi
11600
11601     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11602     echo "$as_me:$LINENO: result: ${ac_t:-
11603          }$am_cv_proto_iconv" >&5
11604 echo "${ECHO_T}${ac_t:-
11605          }$am_cv_proto_iconv" >&6
11606
11607 cat >>confdefs.h <<_ACEOF
11608 #define ICONV_CONST $am_cv_proto_iconv_arg1
11609 _ACEOF
11610
11611   fi
11612
11613
11614   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11615 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11616 if test "${am_cv_langinfo_codeset+set}" = set; then
11617   echo $ECHO_N "(cached) $ECHO_C" >&6
11618 else
11619   cat >conftest.$ac_ext <<_ACEOF
11620 /* confdefs.h.  */
11621 _ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h.  */
11625 #include <langinfo.h>
11626 int
11627 main ()
11628 {
11629 char* cs = nl_langinfo(CODESET);
11630   ;
11631   return 0;
11632 }
11633 _ACEOF
11634 rm -f conftest.$ac_objext conftest$ac_exeext
11635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11636   (eval $ac_link) 2>conftest.er1
11637   ac_status=$?
11638   grep -v '^ *+' conftest.er1 >conftest.err
11639   rm -f conftest.er1
11640   cat conftest.err >&5
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); } &&
11643          { ac_try='test -z "$ac_c_werror_flag"
11644                          || test ! -s conftest.err'
11645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646   (eval $ac_try) 2>&5
11647   ac_status=$?
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); }; } &&
11650          { ac_try='test -s conftest$ac_exeext'
11651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652   (eval $ac_try) 2>&5
11653   ac_status=$?
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); }; }; then
11656   am_cv_langinfo_codeset=yes
11657 else
11658   echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11660
11661 am_cv_langinfo_codeset=no
11662 fi
11663 rm -f conftest.err conftest.$ac_objext \
11664       conftest$ac_exeext conftest.$ac_ext
11665
11666 fi
11667 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11668 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11669   if test $am_cv_langinfo_codeset = yes; then
11670
11671 cat >>confdefs.h <<\_ACEOF
11672 #define HAVE_LANGINFO_CODESET 1
11673 _ACEOF
11674
11675   fi
11676
11677   if test $ac_cv_header_locale_h = yes; then
11678
11679   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11680 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11681 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11682   echo $ECHO_N "(cached) $ECHO_C" >&6
11683 else
11684   cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h.  */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h.  */
11690 #include <locale.h>
11691 int
11692 main ()
11693 {
11694 return LC_MESSAGES
11695   ;
11696   return 0;
11697 }
11698 _ACEOF
11699 rm -f conftest.$ac_objext conftest$ac_exeext
11700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11701   (eval $ac_link) 2>conftest.er1
11702   ac_status=$?
11703   grep -v '^ *+' conftest.er1 >conftest.err
11704   rm -f conftest.er1
11705   cat conftest.err >&5
11706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707   (exit $ac_status); } &&
11708          { ac_try='test -z "$ac_c_werror_flag"
11709                          || test ! -s conftest.err'
11710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711   (eval $ac_try) 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); }; } &&
11715          { ac_try='test -s conftest$ac_exeext'
11716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717   (eval $ac_try) 2>&5
11718   ac_status=$?
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); }; }; then
11721   gt_cv_val_LC_MESSAGES=yes
11722 else
11723   echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11725
11726 gt_cv_val_LC_MESSAGES=no
11727 fi
11728 rm -f conftest.err conftest.$ac_objext \
11729       conftest$ac_exeext conftest.$ac_ext
11730 fi
11731 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11732 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11733   if test $gt_cv_val_LC_MESSAGES = yes; then
11734
11735 cat >>confdefs.h <<\_ACEOF
11736 #define HAVE_LC_MESSAGES 1
11737 _ACEOF
11738
11739   fi
11740
11741   fi
11742
11743   if test -n "$INTL_MACOSX_LIBS"; then
11744     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11745   fi
11746
11747                       for ac_prog in bison
11748 do
11749   # Extract the first word of "$ac_prog", so it can be a program name with args.
11750 set dummy $ac_prog; ac_word=$2
11751 echo "$as_me:$LINENO: checking for $ac_word" >&5
11752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11753 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11754   echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756   if test -n "$INTLBISON"; then
11757   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11758 else
11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760 for as_dir in $PATH
11761 do
11762   IFS=$as_save_IFS
11763   test -z "$as_dir" && as_dir=.
11764   for ac_exec_ext in '' $ac_executable_extensions; do
11765   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11766     ac_cv_prog_INTLBISON="$ac_prog"
11767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11768     break 2
11769   fi
11770 done
11771 done
11772
11773 fi
11774 fi
11775 INTLBISON=$ac_cv_prog_INTLBISON
11776 if test -n "$INTLBISON"; then
11777   echo "$as_me:$LINENO: result: $INTLBISON" >&5
11778 echo "${ECHO_T}$INTLBISON" >&6
11779 else
11780   echo "$as_me:$LINENO: result: no" >&5
11781 echo "${ECHO_T}no" >&6
11782 fi
11783
11784   test -n "$INTLBISON" && break
11785 done
11786
11787   if test -z "$INTLBISON"; then
11788     ac_verc_fail=yes
11789   else
11790         echo "$as_me:$LINENO: checking version of bison" >&5
11791 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11792     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11793     case $ac_prog_version in
11794       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11795       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11796          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11797       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11798     esac
11799     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11800 echo "${ECHO_T}$ac_prog_version" >&6
11801   fi
11802   if test $ac_verc_fail = yes; then
11803     INTLBISON=:
11804   fi
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11822 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11823 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11824   echo $ECHO_N "(cached) $ECHO_C" >&6
11825 else
11826   gt_save_CPPFLAGS="$CPPFLAGS"
11827      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11828      gt_save_LIBS="$LIBS"
11829      LIBS="$LIBS -framework CoreFoundation"
11830      cat >conftest.$ac_ext <<_ACEOF
11831 /* confdefs.h.  */
11832 _ACEOF
11833 cat confdefs.h >>conftest.$ac_ext
11834 cat >>conftest.$ac_ext <<_ACEOF
11835 /* end confdefs.h.  */
11836 #include <CFPreferences.h>
11837 int
11838 main ()
11839 {
11840 CFPreferencesCopyAppValue(NULL, NULL)
11841   ;
11842   return 0;
11843 }
11844 _ACEOF
11845 rm -f conftest.$ac_objext conftest$ac_exeext
11846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11847   (eval $ac_link) 2>conftest.er1
11848   ac_status=$?
11849   grep -v '^ *+' conftest.er1 >conftest.err
11850   rm -f conftest.er1
11851   cat conftest.err >&5
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); } &&
11854          { ac_try='test -z "$ac_c_werror_flag"
11855                          || test ! -s conftest.err'
11856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857   (eval $ac_try) 2>&5
11858   ac_status=$?
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); }; } &&
11861          { ac_try='test -s conftest$ac_exeext'
11862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863   (eval $ac_try) 2>&5
11864   ac_status=$?
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); }; }; then
11867   gt_cv_func_CFPreferencesCopyAppValue=yes
11868 else
11869   echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11871
11872 gt_cv_func_CFPreferencesCopyAppValue=no
11873 fi
11874 rm -f conftest.err conftest.$ac_objext \
11875       conftest$ac_exeext conftest.$ac_ext
11876      CPPFLAGS="$gt_save_CPPFLAGS"
11877      LIBS="$gt_save_LIBS"
11878 fi
11879 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11880 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11881   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11882
11883 cat >>confdefs.h <<\_ACEOF
11884 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11885 _ACEOF
11886
11887   fi
11888     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11889 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11890 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11891   echo $ECHO_N "(cached) $ECHO_C" >&6
11892 else
11893   gt_save_CPPFLAGS="$CPPFLAGS"
11894      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11895      gt_save_LIBS="$LIBS"
11896      LIBS="$LIBS -framework CoreFoundation"
11897      cat >conftest.$ac_ext <<_ACEOF
11898 /* confdefs.h.  */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h.  */
11903 #include <CFLocale.h>
11904 int
11905 main ()
11906 {
11907 CFLocaleCopyCurrent();
11908   ;
11909   return 0;
11910 }
11911 _ACEOF
11912 rm -f conftest.$ac_objext conftest$ac_exeext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11914   (eval $ac_link) 2>conftest.er1
11915   ac_status=$?
11916   grep -v '^ *+' conftest.er1 >conftest.err
11917   rm -f conftest.er1
11918   cat conftest.err >&5
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); } &&
11921          { ac_try='test -z "$ac_c_werror_flag"
11922                          || test ! -s conftest.err'
11923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924   (eval $ac_try) 2>&5
11925   ac_status=$?
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); }; } &&
11928          { ac_try='test -s conftest$ac_exeext'
11929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930   (eval $ac_try) 2>&5
11931   ac_status=$?
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); }; }; then
11934   gt_cv_func_CFLocaleCopyCurrent=yes
11935 else
11936   echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11938
11939 gt_cv_func_CFLocaleCopyCurrent=no
11940 fi
11941 rm -f conftest.err conftest.$ac_objext \
11942       conftest$ac_exeext conftest.$ac_ext
11943      CPPFLAGS="$gt_save_CPPFLAGS"
11944      LIBS="$gt_save_LIBS"
11945 fi
11946 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11947 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11948   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11949
11950 cat >>confdefs.h <<\_ACEOF
11951 #define HAVE_CFLOCALECOPYCURRENT 1
11952 _ACEOF
11953
11954   fi
11955   INTL_MACOSX_LIBS=
11956   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11957     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11958   fi
11959
11960
11961
11962
11963   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11964 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11965     # Check whether --enable-nls or --disable-nls was given.
11966 if test "${enable_nls+set}" = set; then
11967   enableval="$enable_nls"
11968   USE_NLS=$enableval
11969 else
11970   USE_NLS=yes
11971 fi;
11972   echo "$as_me:$LINENO: result: $USE_NLS" >&5
11973 echo "${ECHO_T}$USE_NLS" >&6
11974
11975
11976
11977
11978     BUILD_INCLUDED_LIBINTL=no
11979     USE_INCLUDED_LIBINTL=no
11980
11981   LIBINTL=
11982   LTLIBINTL=
11983   POSUB=
11984
11985     if test "$USE_NLS" = "yes"; then
11986     gt_use_preinstalled_gnugettext=no
11987
11988       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11989 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11990
11991 # Check whether --with-included-gettext or --without-included-gettext was given.
11992 if test "${with_included_gettext+set}" = set; then
11993   withval="$with_included_gettext"
11994   nls_cv_force_use_gnu_gettext=$withval
11995 else
11996   nls_cv_force_use_gnu_gettext=no
11997 fi;
11998       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11999 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12000
12001       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12002       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12003
12004
12005
12006
12007
12008
12009         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12010 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12011 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12012   echo $ECHO_N "(cached) $ECHO_C" >&6
12013 else
12014   cat >conftest.$ac_ext <<_ACEOF
12015 /* confdefs.h.  */
12016 _ACEOF
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h.  */
12020 #include <libintl.h>
12021 extern int _nl_msg_cat_cntr;
12022 extern int *_nl_domain_bindings;
12023 int
12024 main ()
12025 {
12026 bindtextdomain ("", "");
12027 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12028   ;
12029   return 0;
12030 }
12031 _ACEOF
12032 rm -f conftest.$ac_objext conftest$ac_exeext
12033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12034   (eval $ac_link) 2>conftest.er1
12035   ac_status=$?
12036   grep -v '^ *+' conftest.er1 >conftest.err
12037   rm -f conftest.er1
12038   cat conftest.err >&5
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); } &&
12041          { ac_try='test -z "$ac_c_werror_flag"
12042                          || test ! -s conftest.err'
12043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044   (eval $ac_try) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; } &&
12048          { ac_try='test -s conftest$ac_exeext'
12049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050   (eval $ac_try) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); }; }; then
12054   gt_cv_func_gnugettext1_libc=yes
12055 else
12056   echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12058
12059 gt_cv_func_gnugettext1_libc=no
12060 fi
12061 rm -f conftest.err conftest.$ac_objext \
12062       conftest$ac_exeext conftest.$ac_ext
12063 fi
12064 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12065 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12066
12067         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12068
12069
12070
12071     use_additional=yes
12072
12073   acl_save_prefix="$prefix"
12074   prefix="$acl_final_prefix"
12075   acl_save_exec_prefix="$exec_prefix"
12076   exec_prefix="$acl_final_exec_prefix"
12077
12078     eval additional_includedir=\"$includedir\"
12079     eval additional_libdir=\"$libdir\"
12080
12081   exec_prefix="$acl_save_exec_prefix"
12082   prefix="$acl_save_prefix"
12083
12084
12085 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12086 if test "${with_libintl_prefix+set}" = set; then
12087   withval="$with_libintl_prefix"
12088
12089     if test "X$withval" = "Xno"; then
12090       use_additional=no
12091     else
12092       if test "X$withval" = "X"; then
12093
12094   acl_save_prefix="$prefix"
12095   prefix="$acl_final_prefix"
12096   acl_save_exec_prefix="$exec_prefix"
12097   exec_prefix="$acl_final_exec_prefix"
12098
12099           eval additional_includedir=\"$includedir\"
12100           eval additional_libdir=\"$libdir\"
12101
12102   exec_prefix="$acl_save_exec_prefix"
12103   prefix="$acl_save_prefix"
12104
12105       else
12106         additional_includedir="$withval/include"
12107         additional_libdir="$withval/lib"
12108       fi
12109     fi
12110
12111 fi;
12112       LIBINTL=
12113   LTLIBINTL=
12114   INCINTL=
12115   rpathdirs=
12116   ltrpathdirs=
12117   names_already_handled=
12118   names_next_round='intl '
12119   while test -n "$names_next_round"; do
12120     names_this_round="$names_next_round"
12121     names_next_round=
12122     for name in $names_this_round; do
12123       already_handled=
12124       for n in $names_already_handled; do
12125         if test "$n" = "$name"; then
12126           already_handled=yes
12127           break
12128         fi
12129       done
12130       if test -z "$already_handled"; then
12131         names_already_handled="$names_already_handled $name"
12132                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12133         eval value=\"\$HAVE_LIB$uppername\"
12134         if test -n "$value"; then
12135           if test "$value" = yes; then
12136             eval value=\"\$LIB$uppername\"
12137             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12138             eval value=\"\$LTLIB$uppername\"
12139             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12140           else
12141                                     :
12142           fi
12143         else
12144                               found_dir=
12145           found_la=
12146           found_so=
12147           found_a=
12148           if test $use_additional = yes; then
12149             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12150               found_dir="$additional_libdir"
12151               found_so="$additional_libdir/lib$name.$shlibext"
12152               if test -f "$additional_libdir/lib$name.la"; then
12153                 found_la="$additional_libdir/lib$name.la"
12154               fi
12155             else
12156               if test -f "$additional_libdir/lib$name.$libext"; then
12157                 found_dir="$additional_libdir"
12158                 found_a="$additional_libdir/lib$name.$libext"
12159                 if test -f "$additional_libdir/lib$name.la"; then
12160                   found_la="$additional_libdir/lib$name.la"
12161                 fi
12162               fi
12163             fi
12164           fi
12165           if test "X$found_dir" = "X"; then
12166             for x in $LDFLAGS $LTLIBINTL; do
12167
12168   acl_save_prefix="$prefix"
12169   prefix="$acl_final_prefix"
12170   acl_save_exec_prefix="$exec_prefix"
12171   exec_prefix="$acl_final_exec_prefix"
12172   eval x=\"$x\"
12173   exec_prefix="$acl_save_exec_prefix"
12174   prefix="$acl_save_prefix"
12175
12176               case "$x" in
12177                 -L*)
12178                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12179                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12180                     found_dir="$dir"
12181                     found_so="$dir/lib$name.$shlibext"
12182                     if test -f "$dir/lib$name.la"; then
12183                       found_la="$dir/lib$name.la"
12184                     fi
12185                   else
12186                     if test -f "$dir/lib$name.$libext"; then
12187                       found_dir="$dir"
12188                       found_a="$dir/lib$name.$libext"
12189                       if test -f "$dir/lib$name.la"; then
12190                         found_la="$dir/lib$name.la"
12191                       fi
12192                     fi
12193                   fi
12194                   ;;
12195               esac
12196               if test "X$found_dir" != "X"; then
12197                 break
12198               fi
12199             done
12200           fi
12201           if test "X$found_dir" != "X"; then
12202                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12203             if test "X$found_so" != "X"; then
12204                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12205                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12206               else
12207                                                                                 haveit=
12208                 for x in $ltrpathdirs; do
12209                   if test "X$x" = "X$found_dir"; then
12210                     haveit=yes
12211                     break
12212                   fi
12213                 done
12214                 if test -z "$haveit"; then
12215                   ltrpathdirs="$ltrpathdirs $found_dir"
12216                 fi
12217                                 if test "$hardcode_direct" = yes; then
12218                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12219                 else
12220                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12221                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12222                                                             haveit=
12223                     for x in $rpathdirs; do
12224                       if test "X$x" = "X$found_dir"; then
12225                         haveit=yes
12226                         break
12227                       fi
12228                     done
12229                     if test -z "$haveit"; then
12230                       rpathdirs="$rpathdirs $found_dir"
12231                     fi
12232                   else
12233                                                                                 haveit=
12234                     for x in $LDFLAGS $LIBINTL; do
12235
12236   acl_save_prefix="$prefix"
12237   prefix="$acl_final_prefix"
12238   acl_save_exec_prefix="$exec_prefix"
12239   exec_prefix="$acl_final_exec_prefix"
12240   eval x=\"$x\"
12241   exec_prefix="$acl_save_exec_prefix"
12242   prefix="$acl_save_prefix"
12243
12244                       if test "X$x" = "X-L$found_dir"; then
12245                         haveit=yes
12246                         break
12247                       fi
12248                     done
12249                     if test -z "$haveit"; then
12250                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12251                     fi
12252                     if test "$hardcode_minus_L" != no; then
12253                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12254                     else
12255                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12256                     fi
12257                   fi
12258                 fi
12259               fi
12260             else
12261               if test "X$found_a" != "X"; then
12262                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12263               else
12264                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12265               fi
12266             fi
12267                         additional_includedir=
12268             case "$found_dir" in
12269               */lib | */lib/)
12270                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12271                 additional_includedir="$basedir/include"
12272                 ;;
12273             esac
12274             if test "X$additional_includedir" != "X"; then
12275                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12276                 haveit=
12277                 if test "X$additional_includedir" = "X/usr/local/include"; then
12278                   if test -n "$GCC"; then
12279                     case $host_os in
12280                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12281                     esac
12282                   fi
12283                 fi
12284                 if test -z "$haveit"; then
12285                   for x in $CPPFLAGS $INCINTL; do
12286
12287   acl_save_prefix="$prefix"
12288   prefix="$acl_final_prefix"
12289   acl_save_exec_prefix="$exec_prefix"
12290   exec_prefix="$acl_final_exec_prefix"
12291   eval x=\"$x\"
12292   exec_prefix="$acl_save_exec_prefix"
12293   prefix="$acl_save_prefix"
12294
12295                     if test "X$x" = "X-I$additional_includedir"; then
12296                       haveit=yes
12297                       break
12298                     fi
12299                   done
12300                   if test -z "$haveit"; then
12301                     if test -d "$additional_includedir"; then
12302                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12303                     fi
12304                   fi
12305                 fi
12306               fi
12307             fi
12308                         if test -n "$found_la"; then
12309                                                         save_libdir="$libdir"
12310               case "$found_la" in
12311                 */* | *\\*) . "$found_la" ;;
12312                 *) . "./$found_la" ;;
12313               esac
12314               libdir="$save_libdir"
12315                             for dep in $dependency_libs; do
12316                 case "$dep" in
12317                   -L*)
12318                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12319                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
12320                       haveit=
12321                       if test "X$additional_libdir" = "X/usr/local/lib"; then
12322                         if test -n "$GCC"; then
12323                           case $host_os in
12324                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12325                           esac
12326                         fi
12327                       fi
12328                       if test -z "$haveit"; then
12329                         haveit=
12330                         for x in $LDFLAGS $LIBINTL; do
12331
12332   acl_save_prefix="$prefix"
12333   prefix="$acl_final_prefix"
12334   acl_save_exec_prefix="$exec_prefix"
12335   exec_prefix="$acl_final_exec_prefix"
12336   eval x=\"$x\"
12337   exec_prefix="$acl_save_exec_prefix"
12338   prefix="$acl_save_prefix"
12339
12340                           if test "X$x" = "X-L$additional_libdir"; then
12341                             haveit=yes
12342                             break
12343                           fi
12344                         done
12345                         if test -z "$haveit"; then
12346                           if test -d "$additional_libdir"; then
12347                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12348                           fi
12349                         fi
12350                         haveit=
12351                         for x in $LDFLAGS $LTLIBINTL; do
12352
12353   acl_save_prefix="$prefix"
12354   prefix="$acl_final_prefix"
12355   acl_save_exec_prefix="$exec_prefix"
12356   exec_prefix="$acl_final_exec_prefix"
12357   eval x=\"$x\"
12358   exec_prefix="$acl_save_exec_prefix"
12359   prefix="$acl_save_prefix"
12360
12361                           if test "X$x" = "X-L$additional_libdir"; then
12362                             haveit=yes
12363                             break
12364                           fi
12365                         done
12366                         if test -z "$haveit"; then
12367                           if test -d "$additional_libdir"; then
12368                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12369                           fi
12370                         fi
12371                       fi
12372                     fi
12373                     ;;
12374                   -R*)
12375                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12376                     if test "$enable_rpath" != no; then
12377                                                                   haveit=
12378                       for x in $rpathdirs; do
12379                         if test "X$x" = "X$dir"; then
12380                           haveit=yes
12381                           break
12382                         fi
12383                       done
12384                       if test -z "$haveit"; then
12385                         rpathdirs="$rpathdirs $dir"
12386                       fi
12387                                                                   haveit=
12388                       for x in $ltrpathdirs; do
12389                         if test "X$x" = "X$dir"; then
12390                           haveit=yes
12391                           break
12392                         fi
12393                       done
12394                       if test -z "$haveit"; then
12395                         ltrpathdirs="$ltrpathdirs $dir"
12396                       fi
12397                     fi
12398                     ;;
12399                   -l*)
12400                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12401                     ;;
12402                   *.la)
12403                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12404                     ;;
12405                   *)
12406                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12407                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12408                     ;;
12409                 esac
12410               done
12411             fi
12412           else
12413                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12414             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12415           fi
12416         fi
12417       fi
12418     done
12419   done
12420   if test "X$rpathdirs" != "X"; then
12421     if test -n "$hardcode_libdir_separator"; then
12422                         alldirs=
12423       for found_dir in $rpathdirs; do
12424         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12425       done
12426             acl_save_libdir="$libdir"
12427       libdir="$alldirs"
12428       eval flag=\"$hardcode_libdir_flag_spec\"
12429       libdir="$acl_save_libdir"
12430       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12431     else
12432             for found_dir in $rpathdirs; do
12433         acl_save_libdir="$libdir"
12434         libdir="$found_dir"
12435         eval flag=\"$hardcode_libdir_flag_spec\"
12436         libdir="$acl_save_libdir"
12437         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12438       done
12439     fi
12440   fi
12441   if test "X$ltrpathdirs" != "X"; then
12442             for found_dir in $ltrpathdirs; do
12443       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12444     done
12445   fi
12446
12447           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12448 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12449 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12450   echo $ECHO_N "(cached) $ECHO_C" >&6
12451 else
12452   gt_save_CPPFLAGS="$CPPFLAGS"
12453             CPPFLAGS="$CPPFLAGS $INCINTL"
12454             gt_save_LIBS="$LIBS"
12455             LIBS="$LIBS $LIBINTL"
12456                         cat >conftest.$ac_ext <<_ACEOF
12457 /* confdefs.h.  */
12458 _ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h.  */
12462 #include <libintl.h>
12463 extern int _nl_msg_cat_cntr;
12464 extern
12465 #ifdef __cplusplus
12466 "C"
12467 #endif
12468 const char *_nl_expand_alias (const char *);
12469 int
12470 main ()
12471 {
12472 bindtextdomain ("", "");
12473 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12474   ;
12475   return 0;
12476 }
12477 _ACEOF
12478 rm -f conftest.$ac_objext conftest$ac_exeext
12479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12480   (eval $ac_link) 2>conftest.er1
12481   ac_status=$?
12482   grep -v '^ *+' conftest.er1 >conftest.err
12483   rm -f conftest.er1
12484   cat conftest.err >&5
12485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486   (exit $ac_status); } &&
12487          { ac_try='test -z "$ac_c_werror_flag"
12488                          || test ! -s conftest.err'
12489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490   (eval $ac_try) 2>&5
12491   ac_status=$?
12492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493   (exit $ac_status); }; } &&
12494          { ac_try='test -s conftest$ac_exeext'
12495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496   (eval $ac_try) 2>&5
12497   ac_status=$?
12498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); }; }; then
12500   gt_cv_func_gnugettext1_libintl=yes
12501 else
12502   echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12504
12505 gt_cv_func_gnugettext1_libintl=no
12506 fi
12507 rm -f conftest.err conftest.$ac_objext \
12508       conftest$ac_exeext conftest.$ac_ext
12509                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12510               LIBS="$LIBS $LIBICONV"
12511               cat >conftest.$ac_ext <<_ACEOF
12512 /* confdefs.h.  */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h.  */
12517 #include <libintl.h>
12518 extern int _nl_msg_cat_cntr;
12519 extern
12520 #ifdef __cplusplus
12521 "C"
12522 #endif
12523 const char *_nl_expand_alias (const char *);
12524 int
12525 main ()
12526 {
12527 bindtextdomain ("", "");
12528 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12529   ;
12530   return 0;
12531 }
12532 _ACEOF
12533 rm -f conftest.$ac_objext conftest$ac_exeext
12534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12535   (eval $ac_link) 2>conftest.er1
12536   ac_status=$?
12537   grep -v '^ *+' conftest.er1 >conftest.err
12538   rm -f conftest.er1
12539   cat conftest.err >&5
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); } &&
12542          { ac_try='test -z "$ac_c_werror_flag"
12543                          || test ! -s conftest.err'
12544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545   (eval $ac_try) 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }; } &&
12549          { ac_try='test -s conftest$ac_exeext'
12550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551   (eval $ac_try) 2>&5
12552   ac_status=$?
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); }; }; then
12555   LIBINTL="$LIBINTL $LIBICONV"
12556                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12557                 gt_cv_func_gnugettext1_libintl=yes
12558
12559 else
12560   echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12562
12563 fi
12564 rm -f conftest.err conftest.$ac_objext \
12565       conftest$ac_exeext conftest.$ac_ext
12566             fi
12567             CPPFLAGS="$gt_save_CPPFLAGS"
12568             LIBS="$gt_save_LIBS"
12569 fi
12570 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12571 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12572         fi
12573
12574                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12575            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12576                 && test "$PACKAGE" != gettext-runtime \
12577                 && test "$PACKAGE" != gettext-tools; }; then
12578           gt_use_preinstalled_gnugettext=yes
12579         else
12580                     LIBINTL=
12581           LTLIBINTL=
12582           INCINTL=
12583         fi
12584
12585
12586         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12587                               nls_cv_use_gnu_gettext=yes
12588         fi
12589       fi
12590
12591       if test "$nls_cv_use_gnu_gettext" = "yes"; then
12592                 BUILD_INCLUDED_LIBINTL=yes
12593         USE_INCLUDED_LIBINTL=yes
12594         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12595         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12596         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12597       fi
12598
12599       CATOBJEXT=
12600       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12601          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12602                 CATOBJEXT=.gmo
12603       fi
12604
12605
12606     if test -n "$INTL_MACOSX_LIBS"; then
12607       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12608          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12609                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12610         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12611       fi
12612     fi
12613
12614     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12615        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12616
12617 cat >>confdefs.h <<\_ACEOF
12618 #define ENABLE_NLS 1
12619 _ACEOF
12620
12621     else
12622       USE_NLS=no
12623     fi
12624   fi
12625
12626   echo "$as_me:$LINENO: checking whether to use NLS" >&5
12627 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12628   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12629 echo "${ECHO_T}$USE_NLS" >&6
12630   if test "$USE_NLS" = "yes"; then
12631     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12632 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12633     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12634       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12635         gt_source="external libintl"
12636       else
12637         gt_source="libc"
12638       fi
12639     else
12640       gt_source="included intl directory"
12641     fi
12642     echo "$as_me:$LINENO: result: $gt_source" >&5
12643 echo "${ECHO_T}$gt_source" >&6
12644   fi
12645
12646   if test "$USE_NLS" = "yes"; then
12647
12648     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12649       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12650         echo "$as_me:$LINENO: checking how to link with libintl" >&5
12651 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12652         echo "$as_me:$LINENO: result: $LIBINTL" >&5
12653 echo "${ECHO_T}$LIBINTL" >&6
12654
12655   for element in $INCINTL; do
12656     haveit=
12657     for x in $CPPFLAGS; do
12658
12659   acl_save_prefix="$prefix"
12660   prefix="$acl_final_prefix"
12661   acl_save_exec_prefix="$exec_prefix"
12662   exec_prefix="$acl_final_exec_prefix"
12663   eval x=\"$x\"
12664   exec_prefix="$acl_save_exec_prefix"
12665   prefix="$acl_save_prefix"
12666
12667       if test "X$x" = "X$element"; then
12668         haveit=yes
12669         break
12670       fi
12671     done
12672     if test -z "$haveit"; then
12673       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12674     fi
12675   done
12676
12677       fi
12678
12679
12680 cat >>confdefs.h <<\_ACEOF
12681 #define HAVE_GETTEXT 1
12682 _ACEOF
12683
12684
12685 cat >>confdefs.h <<\_ACEOF
12686 #define HAVE_DCGETTEXT 1
12687 _ACEOF
12688
12689     fi
12690
12691         POSUB=po
12692   fi
12693
12694
12695             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12696       BUILD_INCLUDED_LIBINTL=yes
12697     fi
12698
12699
12700
12701
12702
12703         nls_cv_header_intl=
12704     nls_cv_header_libgt=
12705
12706         DATADIRNAME=share
12707
12708
12709         INSTOBJEXT=.mo
12710
12711
12712         GENCAT=gencat
12713
12714
12715         INTLOBJS=
12716     if test "$USE_INCLUDED_LIBINTL" = yes; then
12717       INTLOBJS="\$(GETTOBJS)"
12718     fi
12719
12720
12721         INTL_LIBTOOL_SUFFIX_PREFIX=
12722
12723
12724
12725     INTLLIBS="$LIBINTL"
12726
12727
12728
12729
12730
12731
12732 fi
12733
12734
12735 support_mysql=no
12736 support_sqlite=no
12737 support_sqlite3=no
12738 support_postgresql=no
12739 support_smartalloc=yes
12740 support_readline=yes
12741 support_conio=yes
12742 support_gnome=no
12743 support_bat=no
12744 support_wx_console=no
12745 support_tls=no
12746 support_crypto=no
12747 gnome_version=
12748 wx_version=
12749 support_static_tools=no
12750 support_static_fd=no
12751 support_static_sd=no
12752 support_static_dir=no
12753 support_static_cons=no
12754 support_python=no
12755 build_client_only=no
12756 build_dird=yes
12757 build_stored=yes
12758 cats=
12759 db_type=Internal
12760 DB_TYPE=bdb
12761
12762
12763 # -------------------------------------------
12764 # gnome (default off)
12765 # -------------------------------------------
12766 # Check whether --enable-gnome or --disable-gnome was given.
12767 if test "${enable_gnome+set}" = set; then
12768   enableval="$enable_gnome"
12769   if test x$enableval = xyes; then
12770     support_gnome=yes
12771   fi
12772 fi;
12773
12774 GNOME_DIR=
12775 if test x$support_gnome = xyes; then
12776   abc=`$PKGCONFIG --exists libgnomeui-2.0`
12777   pkg=$?
12778   if test $pkg = 0; then
12779      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12780      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12781      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12782      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12783
12784
12785
12786
12787      GNOME_DIR=src/gnome2-console
12788      gnome_version="Version 2.x"
12789   else
12790      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12791 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12792    { (exit 1); exit 1; }; }
12793   fi
12794 fi
12795
12796
12797 # -------------------------------------------
12798 # bat (default off)
12799 # -------------------------------------------
12800 # Check whether --enable-bat or --disable-bat was given.
12801 if test "${enable_bat+set}" = set; then
12802   enableval="$enable_bat"
12803   if test x$enableval = xyes; then
12804
12805 cat >>confdefs.h <<\_ACEOF
12806 #define HAVE_BAT 1
12807 _ACEOF
12808
12809     support_bat=yes
12810   fi
12811 fi;
12812
12813 BAT_DIR=
12814 if test x$support_bat = xyes; then
12815   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
12816   pkg=$?
12817   if test $pkg = 0; then
12818      BAT_DIR=src/qt-console
12819   else
12820      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
12821 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
12822    { (exit 1); exit 1; }; }
12823   fi
12824 fi
12825
12826 #
12827 #  If bat is enabled, we need the qwt library
12828 got_qwt=no
12829 QWT_INC=
12830 QWT_LDFLAGS=
12831 if test x$support_bat = xyes; then
12832    echo "$as_me:$LINENO: checking for qwt support" >&5
12833 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6
12834
12835 # Check whether --with-qwt or --without-qwt was given.
12836 if test "${with_qwt+set}" = set; then
12837   withval="$with_qwt"
12838
12839         case "$with_qwt" in
12840         no)
12841           ;;
12842         yes|*)
12843           if test -f ${with_qwt}/include/qwt.h; then
12844              QWT_INC="${with_qwt}/include"
12845              QWT_LDFLAGS="-L${with_qwt}/lib"
12846           fi
12847           ;;
12848         esac
12849
12850
12851 fi;
12852 #
12853 # Search in standard places, or --with-qwt not specified
12854 #
12855    if test x$QWT_INC = x; then
12856       for root in /usr /usr/local; do
12857          for ver in qwt qwt5 qwt-qt4; do
12858             if test -f ${root}/include/${ver}/qwt.h; then
12859                QWT_INC="${root}/include/${ver}"
12860                if test -d ${root}/lib64/; then
12861                   QWT_LDFLAGS="-L${root}/lib64"
12862                else
12863                   QWT_LDFLAGS="-L${root}/lib"
12864                fi
12865                got_qwt=yes
12866                break;
12867             fi
12868          done
12869       done
12870    fi
12871    if test x$QWT_INC = x; then
12872       echo "$as_me:$LINENO: result: no" >&5
12873 echo "${ECHO_T}no" >&6
12874       { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
12875 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
12876    { (exit 1); exit 1; }; }
12877       BAT_DIR=
12878       support_bat=no
12879    else
12880       echo "$as_me:$LINENO: result: yes" >&5
12881 echo "${ECHO_T}yes" >&6
12882    fi
12883 fi
12884
12885
12886
12887
12888
12889
12890 # -------------------------------------------
12891 # bwx-console (default off)
12892 # -------------------------------------------
12893 # Check whether --enable-bwx-console or --disable-bwx-console was given.
12894 if test "${enable_bwx_console+set}" = set; then
12895   enableval="$enable_bwx_console"
12896   if test x$enableval = xyes; then
12897     support_wx_console=yes
12898   fi
12899 fi;
12900
12901 WX_DIR=
12902 if test x$support_wx_console = xyes; then
12903   abc=`$WXCONFIG $WXFLAGS --cppflags`
12904   pkg=$?
12905   if test $pkg = 0; then
12906      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12907      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12908      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12909
12910
12911
12912      WX_DIR=src/wx-console
12913   else
12914      echo " "
12915      echo "wx-config program not found. bwx-console disabled."
12916      echo " "
12917      support_wx_console=no
12918   fi
12919 fi
12920
12921
12922
12923 # -------------------------------------------
12924 # tray-monitor (default off)
12925 # -------------------------------------------
12926 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12927 if test "${enable_tray_monitor+set}" = set; then
12928   enableval="$enable_tray_monitor"
12929   if test x$enableval = xyes; then
12930     support_tray_monitor=yes
12931   fi
12932 fi;
12933
12934 TRAY_MONITOR_DIR=
12935 if test x$support_tray_monitor = xyes; then
12936   abc=`$PKGCONFIG --exists gtk+-2.0`
12937   pkg=$?
12938   if test $pkg = 0; then
12939      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12940      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12941
12942
12943      TRAY_MONITOR_DIR=src/tray-monitor
12944      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12945      pkg=$?
12946      if test $pkg = 0; then
12947
12948 cat >>confdefs.h <<\_ACEOF
12949 #define HAVE_GTK_2_4 1
12950 _ACEOF
12951
12952      fi
12953   fi
12954 fi
12955
12956
12957 # -------------------------------------------
12958 # smartalloc (default off)
12959 # -------------------------------------------
12960 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12961 if test "${enable_smartalloc+set}" = set; then
12962   enableval="$enable_smartalloc"
12963   if test x$enableval = xno; then
12964     support_smartalloc=no
12965   fi
12966 fi;
12967
12968 if test x$support_smartalloc = xyes; then
12969
12970 cat >>confdefs.h <<\_ACEOF
12971 #define SMARTALLOC 1
12972 _ACEOF
12973
12974 fi
12975
12976 # -------------------------------------------
12977 # static-tools (default off)
12978 # -------------------------------------------
12979 # Check whether --enable-static-tools or --disable-static-tools was given.
12980 if test "${enable_static_tools+set}" = set; then
12981   enableval="$enable_static_tools"
12982   if test x$enableval = xyes; then
12983      support_static_tools=yes
12984    fi
12985 fi;
12986
12987 TTOOL_LDFLAGS=
12988 if test x$support_static_tools = xyes; then
12989    TTOOL_LDFLAGS="-static"
12990 fi
12991
12992
12993 # -------------------------------------------
12994 # static-fd    (default off)
12995 # -------------------------------------------
12996 # Check whether --enable-static-fd or --disable-static-fd was given.
12997 if test "${enable_static_fd+set}" = set; then
12998   enableval="$enable_static_fd"
12999   if test x$enableval = xyes; then
13000      support_static_fd=yes
13001    fi
13002 fi;
13003
13004 STATIC_FD=
13005 if test x$support_static_fd = xyes; then
13006    STATIC_FD="static-bacula-fd"
13007 fi
13008
13009
13010 # -------------------------------------------
13011 # static-sd    (default off)
13012 # -------------------------------------------
13013 # Check whether --enable-static-sd or --disable-static-sd was given.
13014 if test "${enable_static_sd+set}" = set; then
13015   enableval="$enable_static_sd"
13016   if test x$enableval = xyes; then
13017      support_static_sd=yes
13018    fi
13019 fi;
13020
13021 STATIC_SD=
13022 if test x$support_static_sd = xyes; then
13023    STATIC_SD="static-bacula-sd"
13024 fi
13025
13026
13027 # -------------------------------------------
13028 # static-dir   (default off)
13029 # -------------------------------------------
13030 # Check whether --enable-static-dir or --disable-static-dir was given.
13031 if test "${enable_static_dir+set}" = set; then
13032   enableval="$enable_static_dir"
13033   if test x$enableval = xyes; then
13034      support_static_dir=yes
13035    fi
13036 fi;
13037
13038 STATIC_DIR=
13039 if test x$support_static_dir = xyes; then
13040    STATIC_DIR="static-bacula-dir"
13041 fi
13042
13043
13044 # -------------------------------------------
13045 # static-cons  (default off)
13046 # -------------------------------------------
13047 # Check whether --enable-static-cons or --disable-static-cons was given.
13048 if test "${enable_static_cons+set}" = set; then
13049   enableval="$enable_static_cons"
13050   if test x$enableval = xyes; then
13051      support_static_cons=yes
13052    fi
13053 fi;
13054
13055 STATIC_CONS=
13056 STATIC_GNOME_CONS=
13057 STATIC_WX_CONS=
13058 if test x$support_static_cons = xyes; then
13059    STATIC_CONS="static-bconsole"
13060    STATIC_GNOME_CONS="static-bgnome-console"
13061    STATIC_WX_CONS="static-bwx-console"
13062 fi
13063
13064
13065
13066
13067 # -------------------------------------------
13068 # client_only  (default off)
13069 # -------------------------------------------
13070 # Check whether --enable-client-only or --disable-client-only was given.
13071 if test "${enable_client_only+set}" = set; then
13072   enableval="$enable_client_only"
13073   if test x$enableval = xyes; then
13074       build_client_only=yes
13075       db_type=None
13076       DB_TYPE=none
13077    fi
13078 fi;
13079 if test x$build_client_only = xno; then
13080    ALL_DIRS="subdirs"
13081 else
13082    ALL_DIRS=""
13083 fi
13084
13085
13086 # -------------------------------------------
13087 # director  (default on)
13088 # -------------------------------------------
13089 # Check whether --enable-build-dird or --disable-build-dird was given.
13090 if test "${enable_build_dird+set}" = set; then
13091   enableval="$enable_build_dird"
13092   if test x$enableval = xno; then
13093       build_dird=no
13094    fi
13095 fi;
13096 if test x$build_dird = xyes; then
13097    DIRD_DIR="src/dird"
13098    DIR_TOOLS="DIRTOOLS"
13099 else
13100    DIRD_DIR=""
13101    DIR_TOOLS="NODIRTOOLS"
13102 fi
13103
13104
13105
13106 # -------------------------------------------
13107 # stored  (default on)
13108 # -------------------------------------------
13109 # Check whether --enable-build-stored or --disable-build-stored was given.
13110 if test "${enable_build_stored+set}" = set; then
13111   enableval="$enable_build_stored"
13112   if test x$enableval = xno; then
13113       build_stored=no
13114    fi
13115 fi;
13116 if test x$build_stored = xyes; then
13117    STORED_DIR="src/stored"
13118 else
13119    STORED_DIR=""
13120 fi
13121
13122
13123 # ---------------------------------------------------
13124 # Check for conio (Bacula readline substitute)(
13125 # ---------------------------------------------------
13126 # this allows you to turn it completely off
13127 # Check whether --enable-conio or --disable-conio was given.
13128 if test "${enable_conio+set}" = set; then
13129   enableval="$enable_conio"
13130   if test x$enableval = xno; then
13131      support_conio=no
13132   fi
13133
13134 fi;
13135
13136
13137 # ---------------------------------------------------
13138 # Check for IPv6 support
13139 # ---------------------------------------------------
13140 # this allows you to turn it completely off
13141 support_ipv6=yes
13142 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13143 if test "${enable_ipv6+set}" = set; then
13144   enableval="$enable_ipv6"
13145   if test x$enableval = xno; then
13146      support_ipv6=no
13147   fi
13148
13149 fi;
13150
13151 if test x$support_ipv6 = xyes; then
13152     cat >conftest.$ac_ext <<_ACEOF
13153 /* confdefs.h.  */
13154 _ACEOF
13155 cat confdefs.h >>conftest.$ac_ext
13156 cat >>conftest.$ac_ext <<_ACEOF
13157 /* end confdefs.h.  */
13158  #include <sys/types.h>
13159 #include <sys/socket.h>
13160 #include <netinet/in.h>
13161 int
13162 main ()
13163 {
13164 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13165   ;
13166   return 0;
13167 }
13168 _ACEOF
13169 rm -f conftest.$ac_objext conftest$ac_exeext
13170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13171   (eval $ac_link) 2>conftest.er1
13172   ac_status=$?
13173   grep -v '^ *+' conftest.er1 >conftest.err
13174   rm -f conftest.er1
13175   cat conftest.err >&5
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); } &&
13178          { ac_try='test -z "$ac_c_werror_flag"
13179                          || test ! -s conftest.err'
13180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181   (eval $ac_try) 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); }; } &&
13185          { ac_try='test -s conftest$ac_exeext'
13186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13187   (eval $ac_try) 2>&5
13188   ac_status=$?
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); }; }; then
13191   support_ipv6=yes
13192 else
13193   echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13195
13196 support_ipv6=no
13197 fi
13198 rm -f conftest.err conftest.$ac_objext \
13199       conftest$ac_exeext conftest.$ac_ext
13200 fi
13201
13202 if test x$support_ipv6 = xyes; then
13203
13204 cat >>confdefs.h <<\_ACEOF
13205 #define HAVE_IPV6 1
13206 _ACEOF
13207
13208 fi
13209
13210
13211
13212 got_conio="no"
13213 if test x$support_conio = xyes; then
13214    if test "${ac_cv_header_termcap_h+set}" = set; then
13215   echo "$as_me:$LINENO: checking for termcap.h" >&5
13216 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13217 if test "${ac_cv_header_termcap_h+set}" = set; then
13218   echo $ECHO_N "(cached) $ECHO_C" >&6
13219 fi
13220 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13221 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13222 else
13223   # Is the header compilable?
13224 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13225 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13226 cat >conftest.$ac_ext <<_ACEOF
13227 /* confdefs.h.  */
13228 _ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h.  */
13232 $ac_includes_default
13233 #include <termcap.h>
13234 _ACEOF
13235 rm -f conftest.$ac_objext
13236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13237   (eval $ac_compile) 2>conftest.er1
13238   ac_status=$?
13239   grep -v '^ *+' conftest.er1 >conftest.err
13240   rm -f conftest.er1
13241   cat conftest.err >&5
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); } &&
13244          { ac_try='test -z "$ac_c_werror_flag"
13245                          || test ! -s conftest.err'
13246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247   (eval $ac_try) 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); }; } &&
13251          { ac_try='test -s conftest.$ac_objext'
13252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253   (eval $ac_try) 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; }; then
13257   ac_header_compiler=yes
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262 ac_header_compiler=no
13263 fi
13264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13266 echo "${ECHO_T}$ac_header_compiler" >&6
13267
13268 # Is the header present?
13269 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13270 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13271 cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h.  */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h.  */
13277 #include <termcap.h>
13278 _ACEOF
13279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13281   ac_status=$?
13282   grep -v '^ *+' conftest.er1 >conftest.err
13283   rm -f conftest.er1
13284   cat conftest.err >&5
13285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286   (exit $ac_status); } >/dev/null; then
13287   if test -s conftest.err; then
13288     ac_cpp_err=$ac_c_preproc_warn_flag
13289     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13290   else
13291     ac_cpp_err=
13292   fi
13293 else
13294   ac_cpp_err=yes
13295 fi
13296 if test -z "$ac_cpp_err"; then
13297   ac_header_preproc=yes
13298 else
13299   echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13301
13302   ac_header_preproc=no
13303 fi
13304 rm -f conftest.err conftest.$ac_ext
13305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13306 echo "${ECHO_T}$ac_header_preproc" >&6
13307
13308 # So?  What about this header?
13309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13310   yes:no: )
13311     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13312 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13313     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13314 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13315     ac_header_preproc=yes
13316     ;;
13317   no:yes:* )
13318     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13319 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13320     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
13321 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
13322     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13323 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13324     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
13325 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13326     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13327 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13328     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13329 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13330     (
13331       cat <<\_ASBOX
13332 ## ------------------------------------------ ##
13333 ## Report this to the AC_PACKAGE_NAME lists.  ##
13334 ## ------------------------------------------ ##
13335 _ASBOX
13336     ) |
13337       sed "s/^/$as_me: WARNING:     /" >&2
13338     ;;
13339 esac
13340 echo "$as_me:$LINENO: checking for termcap.h" >&5
13341 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13342 if test "${ac_cv_header_termcap_h+set}" = set; then
13343   echo $ECHO_N "(cached) $ECHO_C" >&6
13344 else
13345   ac_cv_header_termcap_h=$ac_header_preproc
13346 fi
13347 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13348 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13349
13350 fi
13351 if test $ac_cv_header_termcap_h = yes; then
13352    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13353 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13354 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13355   echo $ECHO_N "(cached) $ECHO_C" >&6
13356 else
13357   ac_check_lib_save_LIBS=$LIBS
13358 LIBS="-ltermcap  $LIBS"
13359 cat >conftest.$ac_ext <<_ACEOF
13360 /* confdefs.h.  */
13361 _ACEOF
13362 cat confdefs.h >>conftest.$ac_ext
13363 cat >>conftest.$ac_ext <<_ACEOF
13364 /* end confdefs.h.  */
13365
13366 /* Override any gcc2 internal prototype to avoid an error.  */
13367 #ifdef __cplusplus
13368 extern "C"
13369 #endif
13370 /* We use char because int might match the return type of a gcc2
13371    builtin and then its argument prototype would still apply.  */
13372 char tgetent ();
13373 int
13374 main ()
13375 {
13376 tgetent ();
13377   ;
13378   return 0;
13379 }
13380 _ACEOF
13381 rm -f conftest.$ac_objext conftest$ac_exeext
13382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13383   (eval $ac_link) 2>conftest.er1
13384   ac_status=$?
13385   grep -v '^ *+' conftest.er1 >conftest.err
13386   rm -f conftest.er1
13387   cat conftest.err >&5
13388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); } &&
13390          { ac_try='test -z "$ac_c_werror_flag"
13391                          || test ! -s conftest.err'
13392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393   (eval $ac_try) 2>&5
13394   ac_status=$?
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); }; } &&
13397          { ac_try='test -s conftest$ac_exeext'
13398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399   (eval $ac_try) 2>&5
13400   ac_status=$?
13401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402   (exit $ac_status); }; }; then
13403   ac_cv_lib_termcap_tgetent=yes
13404 else
13405   echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13407
13408 ac_cv_lib_termcap_tgetent=no
13409 fi
13410 rm -f conftest.err conftest.$ac_objext \
13411       conftest$ac_exeext conftest.$ac_ext
13412 LIBS=$ac_check_lib_save_LIBS
13413 fi
13414 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13415 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13416 if test $ac_cv_lib_termcap_tgetent = yes; then
13417    CONS_LIBS="-ltermcap"
13418          CONS_OBJ="conio.o"
13419          CONS_SRC="conio.c"
13420          got_conio="yes"
13421          support_readline=no
13422
13423 cat >>confdefs.h <<\_ACEOF
13424 #define HAVE_CONIO 1
13425 _ACEOF
13426
13427
13428 else
13429    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13430 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13431 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13432   echo $ECHO_N "(cached) $ECHO_C" >&6
13433 else
13434   ac_check_lib_save_LIBS=$LIBS
13435 LIBS="-lncurses  $LIBS"
13436 cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h.  */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h.  */
13442
13443 /* Override any gcc2 internal prototype to avoid an error.  */
13444 #ifdef __cplusplus
13445 extern "C"
13446 #endif
13447 /* We use char because int might match the return type of a gcc2
13448    builtin and then its argument prototype would still apply.  */
13449 char tgetent ();
13450 int
13451 main ()
13452 {
13453 tgetent ();
13454   ;
13455   return 0;
13456 }
13457 _ACEOF
13458 rm -f conftest.$ac_objext conftest$ac_exeext
13459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13460   (eval $ac_link) 2>conftest.er1
13461   ac_status=$?
13462   grep -v '^ *+' conftest.er1 >conftest.err
13463   rm -f conftest.er1
13464   cat conftest.err >&5
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); } &&
13467          { ac_try='test -z "$ac_c_werror_flag"
13468                          || test ! -s conftest.err'
13469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470   (eval $ac_try) 2>&5
13471   ac_status=$?
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); }; } &&
13474          { ac_try='test -s conftest$ac_exeext'
13475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476   (eval $ac_try) 2>&5
13477   ac_status=$?
13478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); }; }; then
13480   ac_cv_lib_ncurses_tgetent=yes
13481 else
13482   echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13484
13485 ac_cv_lib_ncurses_tgetent=no
13486 fi
13487 rm -f conftest.err conftest.$ac_objext \
13488       conftest$ac_exeext conftest.$ac_ext
13489 LIBS=$ac_check_lib_save_LIBS
13490 fi
13491 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13492 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13493 if test $ac_cv_lib_ncurses_tgetent = yes; then
13494    CONS_LIBS="-lncurses"
13495            CONS_OBJ="conio.o"
13496            CONS_SRC="conio.c"
13497            got_conio="yes"
13498            support_readline=no
13499
13500 cat >>confdefs.h <<\_ACEOF
13501 #define HAVE_CONIO 1
13502 _ACEOF
13503
13504
13505 fi
13506
13507
13508 fi
13509
13510
13511 else
13512
13513
13514 for ac_header in curses.h
13515 do
13516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13518   echo "$as_me:$LINENO: checking for $ac_header" >&5
13519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13521   echo $ECHO_N "(cached) $ECHO_C" >&6
13522 fi
13523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13525 else
13526   # Is the header compilable?
13527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13529 cat >conftest.$ac_ext <<_ACEOF
13530 /* confdefs.h.  */
13531 _ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h.  */
13535 $ac_includes_default
13536 #include <$ac_header>
13537 _ACEOF
13538 rm -f conftest.$ac_objext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540   (eval $ac_compile) 2>conftest.er1
13541   ac_status=$?
13542   grep -v '^ *+' conftest.er1 >conftest.err
13543   rm -f conftest.er1
13544   cat conftest.err >&5
13545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546   (exit $ac_status); } &&
13547          { ac_try='test -z "$ac_c_werror_flag"
13548                          || test ! -s conftest.err'
13549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550   (eval $ac_try) 2>&5
13551   ac_status=$?
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); }; } &&
13554          { ac_try='test -s conftest.$ac_objext'
13555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556   (eval $ac_try) 2>&5
13557   ac_status=$?
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); }; }; then
13560   ac_header_compiler=yes
13561 else
13562   echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13564
13565 ac_header_compiler=no
13566 fi
13567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13569 echo "${ECHO_T}$ac_header_compiler" >&6
13570
13571 # Is the header present?
13572 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13574 cat >conftest.$ac_ext <<_ACEOF
13575 /* confdefs.h.  */
13576 _ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h.  */
13580 #include <$ac_header>
13581 _ACEOF
13582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13583   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13584   ac_status=$?
13585   grep -v '^ *+' conftest.er1 >conftest.err
13586   rm -f conftest.er1
13587   cat conftest.err >&5
13588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); } >/dev/null; then
13590   if test -s conftest.err; then
13591     ac_cpp_err=$ac_c_preproc_warn_flag
13592     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13593   else
13594     ac_cpp_err=
13595   fi
13596 else
13597   ac_cpp_err=yes
13598 fi
13599 if test -z "$ac_cpp_err"; then
13600   ac_header_preproc=yes
13601 else
13602   echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13604
13605   ac_header_preproc=no
13606 fi
13607 rm -f conftest.err conftest.$ac_ext
13608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13609 echo "${ECHO_T}$ac_header_preproc" >&6
13610
13611 # So?  What about this header?
13612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13613   yes:no: )
13614     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13618     ac_header_preproc=yes
13619     ;;
13620   no:yes:* )
13621     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13623     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13624 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13625     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13627     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13628 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13631     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13633     (
13634       cat <<\_ASBOX
13635 ## ------------------------------------------ ##
13636 ## Report this to the AC_PACKAGE_NAME lists.  ##
13637 ## ------------------------------------------ ##
13638 _ASBOX
13639     ) |
13640       sed "s/^/$as_me: WARNING:     /" >&2
13641     ;;
13642 esac
13643 echo "$as_me:$LINENO: checking for $ac_header" >&5
13644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13646   echo $ECHO_N "(cached) $ECHO_C" >&6
13647 else
13648   eval "$as_ac_Header=\$ac_header_preproc"
13649 fi
13650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13652
13653 fi
13654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13655   cat >>confdefs.h <<_ACEOF
13656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13657 _ACEOF
13658
13659 fi
13660
13661 done
13662
13663          echo "$as_me:$LINENO: checking for term.h" >&5
13664 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13665 if test "${ac_cv_header_term_h+set}" = set; then
13666   echo $ECHO_N "(cached) $ECHO_C" >&6
13667 else
13668   cat >conftest.$ac_ext <<_ACEOF
13669 /* confdefs.h.  */
13670 _ACEOF
13671 cat confdefs.h >>conftest.$ac_ext
13672 cat >>conftest.$ac_ext <<_ACEOF
13673 /* end confdefs.h.  */
13674 #if HAVE_CURSES_H
13675 #include <curses.h>
13676 #endif
13677
13678
13679 #include <term.h>
13680 _ACEOF
13681 rm -f conftest.$ac_objext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13683   (eval $ac_compile) 2>conftest.er1
13684   ac_status=$?
13685   grep -v '^ *+' conftest.er1 >conftest.err
13686   rm -f conftest.er1
13687   cat conftest.err >&5
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); } &&
13690          { ac_try='test -z "$ac_c_werror_flag"
13691                          || test ! -s conftest.err'
13692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693   (eval $ac_try) 2>&5
13694   ac_status=$?
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); }; } &&
13697          { ac_try='test -s conftest.$ac_objext'
13698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699   (eval $ac_try) 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; }; then
13703   ac_cv_header_term_h=yes
13704 else
13705   echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13707
13708 ac_cv_header_term_h=no
13709 fi
13710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13711 fi
13712 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13713 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13714 if test $ac_cv_header_term_h = yes; then
13715    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13716 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13717 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13718   echo $ECHO_N "(cached) $ECHO_C" >&6
13719 else
13720   ac_check_lib_save_LIBS=$LIBS
13721 LIBS="-lcurses  $LIBS"
13722 cat >conftest.$ac_ext <<_ACEOF
13723 /* confdefs.h.  */
13724 _ACEOF
13725 cat confdefs.h >>conftest.$ac_ext
13726 cat >>conftest.$ac_ext <<_ACEOF
13727 /* end confdefs.h.  */
13728
13729 /* Override any gcc2 internal prototype to avoid an error.  */
13730 #ifdef __cplusplus
13731 extern "C"
13732 #endif
13733 /* We use char because int might match the return type of a gcc2
13734    builtin and then its argument prototype would still apply.  */
13735 char tgetent ();
13736 int
13737 main ()
13738 {
13739 tgetent ();
13740   ;
13741   return 0;
13742 }
13743 _ACEOF
13744 rm -f conftest.$ac_objext conftest$ac_exeext
13745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13746   (eval $ac_link) 2>conftest.er1
13747   ac_status=$?
13748   grep -v '^ *+' conftest.er1 >conftest.err
13749   rm -f conftest.er1
13750   cat conftest.err >&5
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); } &&
13753          { ac_try='test -z "$ac_c_werror_flag"
13754                          || test ! -s conftest.err'
13755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756   (eval $ac_try) 2>&5
13757   ac_status=$?
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); }; } &&
13760          { ac_try='test -s conftest$ac_exeext'
13761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762   (eval $ac_try) 2>&5
13763   ac_status=$?
13764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765   (exit $ac_status); }; }; then
13766   ac_cv_lib_curses_tgetent=yes
13767 else
13768   echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13770
13771 ac_cv_lib_curses_tgetent=no
13772 fi
13773 rm -f conftest.err conftest.$ac_objext \
13774       conftest$ac_exeext conftest.$ac_ext
13775 LIBS=$ac_check_lib_save_LIBS
13776 fi
13777 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13778 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13779 if test $ac_cv_lib_curses_tgetent = yes; then
13780    CONS_LIBS="-lcurses"
13781                    CONS_OBJ="conio.o"
13782                    CONS_SRC="conio.c"
13783                    got_conio="yes"
13784                    support_readline=no
13785
13786 cat >>confdefs.h <<\_ACEOF
13787 #define HAVE_CONIO 1
13788 _ACEOF
13789
13790
13791 fi
13792
13793
13794 else
13795    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13796 fi
13797
13798
13799
13800 fi
13801
13802
13803 fi
13804
13805
13806 # ---------------------------------------------------
13807 # Check for readline support/directory (default off)
13808 # ---------------------------------------------------
13809 # this allows you to turn it completely off
13810 # Check whether --enable-readline or --disable-readline was given.
13811 if test "${enable_readline+set}" = set; then
13812   enableval="$enable_readline"
13813   if test x$enableval = xno; then
13814     support_readline=no
13815   fi
13816 fi;
13817
13818 got_readline="no"
13819 READLINE_SRC=
13820 if test x$support_readline = xyes; then
13821
13822 # Check whether --with-readline or --without-readline was given.
13823 if test "${with_readline+set}" = set; then
13824   withval="$with_readline"
13825
13826         case "$with_readline" in
13827         no) : ;;
13828         yes|*)
13829           if test -f ${with_readline}/readline.h; then
13830              CONS_INC="-I${with_readline}"
13831              CONS_LDFLAGS="-L$with_readline"
13832           elif test -f ${with_readline}/include/readline/readline.h; then
13833              CONS_INC="-I${with_readline}/include/readline"
13834              CONS_LDFLAGS="-L${with_readline}/lib"
13835              with_readline="${with_readline}/include/readline"
13836           else
13837              with_readline="/usr/include/readline"
13838           fi
13839           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13841   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13842 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13844   echo $ECHO_N "(cached) $ECHO_C" >&6
13845 fi
13846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13848 else
13849   # Is the header compilable?
13850 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13851 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13852 cat >conftest.$ac_ext <<_ACEOF
13853 /* confdefs.h.  */
13854 _ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h.  */
13858 $ac_includes_default
13859 #include <${with_readline}/readline.h>
13860 _ACEOF
13861 rm -f conftest.$ac_objext
13862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13863   (eval $ac_compile) 2>conftest.er1
13864   ac_status=$?
13865   grep -v '^ *+' conftest.er1 >conftest.err
13866   rm -f conftest.er1
13867   cat conftest.err >&5
13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); } &&
13870          { ac_try='test -z "$ac_c_werror_flag"
13871                          || test ! -s conftest.err'
13872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873   (eval $ac_try) 2>&5
13874   ac_status=$?
13875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876   (exit $ac_status); }; } &&
13877          { ac_try='test -s conftest.$ac_objext'
13878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879   (eval $ac_try) 2>&5
13880   ac_status=$?
13881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882   (exit $ac_status); }; }; then
13883   ac_header_compiler=yes
13884 else
13885   echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13887
13888 ac_header_compiler=no
13889 fi
13890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13892 echo "${ECHO_T}$ac_header_compiler" >&6
13893
13894 # Is the header present?
13895 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13896 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13897 cat >conftest.$ac_ext <<_ACEOF
13898 /* confdefs.h.  */
13899 _ACEOF
13900 cat confdefs.h >>conftest.$ac_ext
13901 cat >>conftest.$ac_ext <<_ACEOF
13902 /* end confdefs.h.  */
13903 #include <${with_readline}/readline.h>
13904 _ACEOF
13905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13907   ac_status=$?
13908   grep -v '^ *+' conftest.er1 >conftest.err
13909   rm -f conftest.er1
13910   cat conftest.err >&5
13911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912   (exit $ac_status); } >/dev/null; then
13913   if test -s conftest.err; then
13914     ac_cpp_err=$ac_c_preproc_warn_flag
13915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13916   else
13917     ac_cpp_err=
13918   fi
13919 else
13920   ac_cpp_err=yes
13921 fi
13922 if test -z "$ac_cpp_err"; then
13923   ac_header_preproc=yes
13924 else
13925   echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13927
13928   ac_header_preproc=no
13929 fi
13930 rm -f conftest.err conftest.$ac_ext
13931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13932 echo "${ECHO_T}$ac_header_preproc" >&6
13933
13934 # So?  What about this header?
13935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13936   yes:no: )
13937     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13938 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13939     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13940 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13941     ac_header_preproc=yes
13942     ;;
13943   no:yes:* )
13944     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13945 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13946     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
13947 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
13948     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13949 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13950     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13951 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13952     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13953 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13954     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13955 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13956     (
13957       cat <<\_ASBOX
13958 ## ------------------------------------------ ##
13959 ## Report this to the AC_PACKAGE_NAME lists.  ##
13960 ## ------------------------------------------ ##
13961 _ASBOX
13962     ) |
13963       sed "s/^/$as_me: WARNING:     /" >&2
13964     ;;
13965 esac
13966 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13967 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13969   echo $ECHO_N "(cached) $ECHO_C" >&6
13970 else
13971   eval "$as_ac_Header=\$ac_header_preproc"
13972 fi
13973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13975
13976 fi
13977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13978
13979 cat >>confdefs.h <<\_ACEOF
13980 #define HAVE_READLINE 1
13981 _ACEOF
13982
13983                CONS_LIBS="-lreadline -lhistory -ltermcap"
13984                got_readline="yes"
13985
13986 else
13987    echo " "
13988                echo "readline.h not found. readline turned off ..."
13989                echo " "
13990
13991
13992 fi
13993
13994
13995           ;;
13996         esac
13997
13998 else
13999
14000        # check for standard readline library
14001        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14002   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14003 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14004 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14005   echo $ECHO_N "(cached) $ECHO_C" >&6
14006 fi
14007 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14008 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14009 else
14010   # Is the header compilable?
14011 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14012 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
14013 cat >conftest.$ac_ext <<_ACEOF
14014 /* confdefs.h.  */
14015 _ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h.  */
14019 $ac_includes_default
14020 #include </usr/include/readline/readline.h>
14021 _ACEOF
14022 rm -f conftest.$ac_objext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14024   (eval $ac_compile) 2>conftest.er1
14025   ac_status=$?
14026   grep -v '^ *+' conftest.er1 >conftest.err
14027   rm -f conftest.er1
14028   cat conftest.err >&5
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } &&
14031          { ac_try='test -z "$ac_c_werror_flag"
14032                          || test ! -s conftest.err'
14033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034   (eval $ac_try) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; } &&
14038          { ac_try='test -s conftest.$ac_objext'
14039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040   (eval $ac_try) 2>&5
14041   ac_status=$?
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); }; }; then
14044   ac_header_compiler=yes
14045 else
14046   echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14048
14049 ac_header_compiler=no
14050 fi
14051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14053 echo "${ECHO_T}$ac_header_compiler" >&6
14054
14055 # Is the header present?
14056 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14057 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
14058 cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h.  */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h.  */
14064 #include </usr/include/readline/readline.h>
14065 _ACEOF
14066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14067   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14068   ac_status=$?
14069   grep -v '^ *+' conftest.er1 >conftest.err
14070   rm -f conftest.er1
14071   cat conftest.err >&5
14072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073   (exit $ac_status); } >/dev/null; then
14074   if test -s conftest.err; then
14075     ac_cpp_err=$ac_c_preproc_warn_flag
14076     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14077   else
14078     ac_cpp_err=
14079   fi
14080 else
14081   ac_cpp_err=yes
14082 fi
14083 if test -z "$ac_cpp_err"; then
14084   ac_header_preproc=yes
14085 else
14086   echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14088
14089   ac_header_preproc=no
14090 fi
14091 rm -f conftest.err conftest.$ac_ext
14092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14093 echo "${ECHO_T}$ac_header_preproc" >&6
14094
14095 # So?  What about this header?
14096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14097   yes:no: )
14098     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14099 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14100     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14101 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14102     ac_header_preproc=yes
14103     ;;
14104   no:yes:* )
14105     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14106 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14107     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14108 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14109     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14110 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14111     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14112 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14113     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14114 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14115     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14116 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14117     (
14118       cat <<\_ASBOX
14119 ## ------------------------------------------ ##
14120 ## Report this to the AC_PACKAGE_NAME lists.  ##
14121 ## ------------------------------------------ ##
14122 _ASBOX
14123     ) |
14124       sed "s/^/$as_me: WARNING:     /" >&2
14125     ;;
14126 esac
14127 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14128 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14129 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14130   echo $ECHO_N "(cached) $ECHO_C" >&6
14131 else
14132   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14133 fi
14134 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14135 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14136
14137 fi
14138 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14139
14140 cat >>confdefs.h <<\_ACEOF
14141 #define HAVE_READLINE 1
14142 _ACEOF
14143
14144            got_readline="yes"
14145            CONS_INC="-I/usr/include/readline"
14146            CONS_LIBS="-lreadline -ltermcap"
14147
14148 else
14149
14150            # Did not find standard library, so try Bacula's default
14151             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14153   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14154 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14156   echo $ECHO_N "(cached) $ECHO_C" >&6
14157 fi
14158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14160 else
14161   # Is the header compilable?
14162 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14163 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14164 cat >conftest.$ac_ext <<_ACEOF
14165 /* confdefs.h.  */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h.  */
14170 $ac_includes_default
14171 #include <${TOP_DIR}/depkgs/readline/readline.h>
14172 _ACEOF
14173 rm -f conftest.$ac_objext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14175   (eval $ac_compile) 2>conftest.er1
14176   ac_status=$?
14177   grep -v '^ *+' conftest.er1 >conftest.err
14178   rm -f conftest.er1
14179   cat conftest.err >&5
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); } &&
14182          { ac_try='test -z "$ac_c_werror_flag"
14183                          || test ! -s conftest.err'
14184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185   (eval $ac_try) 2>&5
14186   ac_status=$?
14187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188   (exit $ac_status); }; } &&
14189          { ac_try='test -s conftest.$ac_objext'
14190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191   (eval $ac_try) 2>&5
14192   ac_status=$?
14193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); }; }; then
14195   ac_header_compiler=yes
14196 else
14197   echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14199
14200 ac_header_compiler=no
14201 fi
14202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14204 echo "${ECHO_T}$ac_header_compiler" >&6
14205
14206 # Is the header present?
14207 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14208 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14209 cat >conftest.$ac_ext <<_ACEOF
14210 /* confdefs.h.  */
14211 _ACEOF
14212 cat confdefs.h >>conftest.$ac_ext
14213 cat >>conftest.$ac_ext <<_ACEOF
14214 /* end confdefs.h.  */
14215 #include <${TOP_DIR}/depkgs/readline/readline.h>
14216 _ACEOF
14217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14218   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14219   ac_status=$?
14220   grep -v '^ *+' conftest.er1 >conftest.err
14221   rm -f conftest.er1
14222   cat conftest.err >&5
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); } >/dev/null; then
14225   if test -s conftest.err; then
14226     ac_cpp_err=$ac_c_preproc_warn_flag
14227     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14228   else
14229     ac_cpp_err=
14230   fi
14231 else
14232   ac_cpp_err=yes
14233 fi
14234 if test -z "$ac_cpp_err"; then
14235   ac_header_preproc=yes
14236 else
14237   echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14239
14240   ac_header_preproc=no
14241 fi
14242 rm -f conftest.err conftest.$ac_ext
14243 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14244 echo "${ECHO_T}$ac_header_preproc" >&6
14245
14246 # So?  What about this header?
14247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14248   yes:no: )
14249     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14250 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14251     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14252 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14253     ac_header_preproc=yes
14254     ;;
14255   no:yes:* )
14256     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14257 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14258     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14259 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14260     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14261 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14262     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14263 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14264     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14265 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14266     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14267 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14268     (
14269       cat <<\_ASBOX
14270 ## ------------------------------------------ ##
14271 ## Report this to the AC_PACKAGE_NAME lists.  ##
14272 ## ------------------------------------------ ##
14273 _ASBOX
14274     ) |
14275       sed "s/^/$as_me: WARNING:     /" >&2
14276     ;;
14277 esac
14278 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14279 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14281   echo $ECHO_N "(cached) $ECHO_C" >&6
14282 else
14283   eval "$as_ac_Header=\$ac_header_preproc"
14284 fi
14285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14287
14288 fi
14289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14290
14291 cat >>confdefs.h <<\_ACEOF
14292 #define HAVE_READLINE 1
14293 _ACEOF
14294
14295                  got_readline="yes"
14296                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14297                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14298                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14299                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14300
14301 else
14302    echo " "
14303                 echo "readline.h not found. readline turned off ..."
14304                 echo " "
14305
14306
14307 fi
14308
14309
14310
14311
14312 fi
14313
14314
14315
14316
14317 fi;
14318 fi
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329 # Minimal stuff for readline Makefile configuration
14330 MAKE_SHELL=/bin/sh
14331
14332 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14333 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14334 if test "${ac_cv_header_stat_broken+set}" = set; then
14335   echo $ECHO_N "(cached) $ECHO_C" >&6
14336 else
14337   cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h.  */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h.  */
14343 #include <sys/types.h>
14344 #include <sys/stat.h>
14345
14346 #if defined(S_ISBLK) && defined(S_IFDIR)
14347 # if S_ISBLK (S_IFDIR)
14348 You lose.
14349 # endif
14350 #endif
14351
14352 #if defined(S_ISBLK) && defined(S_IFCHR)
14353 # if S_ISBLK (S_IFCHR)
14354 You lose.
14355 # endif
14356 #endif
14357
14358 #if defined(S_ISLNK) && defined(S_IFREG)
14359 # if S_ISLNK (S_IFREG)
14360 You lose.
14361 # endif
14362 #endif
14363
14364 #if defined(S_ISSOCK) && defined(S_IFREG)
14365 # if S_ISSOCK (S_IFREG)
14366 You lose.
14367 # endif
14368 #endif
14369
14370 _ACEOF
14371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14372   $EGREP "You lose" >/dev/null 2>&1; then
14373   ac_cv_header_stat_broken=yes
14374 else
14375   ac_cv_header_stat_broken=no
14376 fi
14377 rm -f conftest*
14378
14379 fi
14380 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14381 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14382 if test $ac_cv_header_stat_broken = yes; then
14383
14384 cat >>confdefs.h <<\_ACEOF
14385 #define STAT_MACROS_BROKEN 1
14386 _ACEOF
14387
14388 fi
14389
14390
14391
14392
14393
14394
14395 ac_header_dirent=no
14396 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14397   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14398 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14399 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14401   echo $ECHO_N "(cached) $ECHO_C" >&6
14402 else
14403   cat >conftest.$ac_ext <<_ACEOF
14404 /* confdefs.h.  */
14405 _ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h.  */
14409 #include <sys/types.h>
14410 #include <$ac_hdr>
14411
14412 int
14413 main ()
14414 {
14415 if ((DIR *) 0)
14416 return 0;
14417   ;
14418   return 0;
14419 }
14420 _ACEOF
14421 rm -f conftest.$ac_objext
14422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14423   (eval $ac_compile) 2>conftest.er1
14424   ac_status=$?
14425   grep -v '^ *+' conftest.er1 >conftest.err
14426   rm -f conftest.er1
14427   cat conftest.err >&5
14428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); } &&
14430          { ac_try='test -z "$ac_c_werror_flag"
14431                          || test ! -s conftest.err'
14432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433   (eval $ac_try) 2>&5
14434   ac_status=$?
14435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); }; } &&
14437          { ac_try='test -s conftest.$ac_objext'
14438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439   (eval $ac_try) 2>&5
14440   ac_status=$?
14441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442   (exit $ac_status); }; }; then
14443   eval "$as_ac_Header=yes"
14444 else
14445   echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.$ac_ext >&5
14447
14448 eval "$as_ac_Header=no"
14449 fi
14450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14451 fi
14452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14455   cat >>confdefs.h <<_ACEOF
14456 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14457 _ACEOF
14458
14459 ac_header_dirent=$ac_hdr; break
14460 fi
14461
14462 done
14463 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14464 if test $ac_header_dirent = dirent.h; then
14465   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14466 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14467 if test "${ac_cv_search_opendir+set}" = set; then
14468   echo $ECHO_N "(cached) $ECHO_C" >&6
14469 else
14470   ac_func_search_save_LIBS=$LIBS
14471 ac_cv_search_opendir=no
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h.  */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h.  */
14478
14479 /* Override any gcc2 internal prototype to avoid an error.  */
14480 #ifdef __cplusplus
14481 extern "C"
14482 #endif
14483 /* We use char because int might match the return type of a gcc2
14484    builtin and then its argument prototype would still apply.  */
14485 char opendir ();
14486 int
14487 main ()
14488 {
14489 opendir ();
14490   ;
14491   return 0;
14492 }
14493 _ACEOF
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14496   (eval $ac_link) 2>conftest.er1
14497   ac_status=$?
14498   grep -v '^ *+' conftest.er1 >conftest.err
14499   rm -f conftest.er1
14500   cat conftest.err >&5
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); } &&
14503          { ac_try='test -z "$ac_c_werror_flag"
14504                          || test ! -s conftest.err'
14505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506   (eval $ac_try) 2>&5
14507   ac_status=$?
14508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509   (exit $ac_status); }; } &&
14510          { ac_try='test -s conftest$ac_exeext'
14511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512   (eval $ac_try) 2>&5
14513   ac_status=$?
14514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515   (exit $ac_status); }; }; then
14516   ac_cv_search_opendir="none required"
14517 else
14518   echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14520
14521 fi
14522 rm -f conftest.err conftest.$ac_objext \
14523       conftest$ac_exeext conftest.$ac_ext
14524 if test "$ac_cv_search_opendir" = no; then
14525   for ac_lib in dir; do
14526     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14527     cat >conftest.$ac_ext <<_ACEOF
14528 /* confdefs.h.  */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h.  */
14533
14534 /* Override any gcc2 internal prototype to avoid an error.  */
14535 #ifdef __cplusplus
14536 extern "C"
14537 #endif
14538 /* We use char because int might match the return type of a gcc2
14539    builtin and then its argument prototype would still apply.  */
14540 char opendir ();
14541 int
14542 main ()
14543 {
14544 opendir ();
14545   ;
14546   return 0;
14547 }
14548 _ACEOF
14549 rm -f conftest.$ac_objext conftest$ac_exeext
14550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14551   (eval $ac_link) 2>conftest.er1
14552   ac_status=$?
14553   grep -v '^ *+' conftest.er1 >conftest.err
14554   rm -f conftest.er1
14555   cat conftest.err >&5
14556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557   (exit $ac_status); } &&
14558          { ac_try='test -z "$ac_c_werror_flag"
14559                          || test ! -s conftest.err'
14560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561   (eval $ac_try) 2>&5
14562   ac_status=$?
14563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564   (exit $ac_status); }; } &&
14565          { ac_try='test -s conftest$ac_exeext'
14566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14567   (eval $ac_try) 2>&5
14568   ac_status=$?
14569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570   (exit $ac_status); }; }; then
14571   ac_cv_search_opendir="-l$ac_lib"
14572 break
14573 else
14574   echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14576
14577 fi
14578 rm -f conftest.err conftest.$ac_objext \
14579       conftest$ac_exeext conftest.$ac_ext
14580   done
14581 fi
14582 LIBS=$ac_func_search_save_LIBS
14583 fi
14584 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14585 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14586 if test "$ac_cv_search_opendir" != no; then
14587   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14588
14589 fi
14590
14591 else
14592   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14593 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14594 if test "${ac_cv_search_opendir+set}" = set; then
14595   echo $ECHO_N "(cached) $ECHO_C" >&6
14596 else
14597   ac_func_search_save_LIBS=$LIBS
14598 ac_cv_search_opendir=no
14599 cat >conftest.$ac_ext <<_ACEOF
14600 /* confdefs.h.  */
14601 _ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h.  */
14605
14606 /* Override any gcc2 internal prototype to avoid an error.  */
14607 #ifdef __cplusplus
14608 extern "C"
14609 #endif
14610 /* We use char because int might match the return type of a gcc2
14611    builtin and then its argument prototype would still apply.  */
14612 char opendir ();
14613 int
14614 main ()
14615 {
14616 opendir ();
14617   ;
14618   return 0;
14619 }
14620 _ACEOF
14621 rm -f conftest.$ac_objext conftest$ac_exeext
14622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14623   (eval $ac_link) 2>conftest.er1
14624   ac_status=$?
14625   grep -v '^ *+' conftest.er1 >conftest.err
14626   rm -f conftest.er1
14627   cat conftest.err >&5
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); } &&
14630          { ac_try='test -z "$ac_c_werror_flag"
14631                          || test ! -s conftest.err'
14632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633   (eval $ac_try) 2>&5
14634   ac_status=$?
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); }; } &&
14637          { ac_try='test -s conftest$ac_exeext'
14638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639   (eval $ac_try) 2>&5
14640   ac_status=$?
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); }; }; then
14643   ac_cv_search_opendir="none required"
14644 else
14645   echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14647
14648 fi
14649 rm -f conftest.err conftest.$ac_objext \
14650       conftest$ac_exeext conftest.$ac_ext
14651 if test "$ac_cv_search_opendir" = no; then
14652   for ac_lib in x; do
14653     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14654     cat >conftest.$ac_ext <<_ACEOF
14655 /* confdefs.h.  */
14656 _ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h.  */
14660
14661 /* Override any gcc2 internal prototype to avoid an error.  */
14662 #ifdef __cplusplus
14663 extern "C"
14664 #endif
14665 /* We use char because int might match the return type of a gcc2
14666    builtin and then its argument prototype would still apply.  */
14667 char opendir ();
14668 int
14669 main ()
14670 {
14671 opendir ();
14672   ;
14673   return 0;
14674 }
14675 _ACEOF
14676 rm -f conftest.$ac_objext conftest$ac_exeext
14677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14678   (eval $ac_link) 2>conftest.er1
14679   ac_status=$?
14680   grep -v '^ *+' conftest.er1 >conftest.err
14681   rm -f conftest.er1
14682   cat conftest.err >&5
14683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); } &&
14685          { ac_try='test -z "$ac_c_werror_flag"
14686                          || test ! -s conftest.err'
14687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688   (eval $ac_try) 2>&5
14689   ac_status=$?
14690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); }; } &&
14692          { ac_try='test -s conftest$ac_exeext'
14693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694   (eval $ac_try) 2>&5
14695   ac_status=$?
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); }; }; then
14698   ac_cv_search_opendir="-l$ac_lib"
14699 break
14700 else
14701   echo "$as_me: failed program was:" >&5
14702 sed 's/^/| /' conftest.$ac_ext >&5
14703
14704 fi
14705 rm -f conftest.err conftest.$ac_objext \
14706       conftest$ac_exeext conftest.$ac_ext
14707   done
14708 fi
14709 LIBS=$ac_func_search_save_LIBS
14710 fi
14711 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14712 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14713 if test "$ac_cv_search_opendir" != no; then
14714   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14715
14716 fi
14717
14718 fi
14719
14720
14721
14722
14723
14724
14725
14726
14727 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14728 do
14729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14730 echo "$as_me:$LINENO: checking for $ac_func" >&5
14731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14732 if eval "test \"\${$as_ac_var+set}\" = set"; then
14733   echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735   cat >conftest.$ac_ext <<_ACEOF
14736 /* confdefs.h.  */
14737 _ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h.  */
14741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14743 #define $ac_func innocuous_$ac_func
14744
14745 /* System header to define __stub macros and hopefully few prototypes,
14746     which can conflict with char $ac_func (); below.
14747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14748     <limits.h> exists even on freestanding compilers.  */
14749
14750 #ifdef __STDC__
14751 # include <limits.h>
14752 #else
14753 # include <assert.h>
14754 #endif
14755
14756 #undef $ac_func
14757
14758 /* Override any gcc2 internal prototype to avoid an error.  */
14759 #ifdef __cplusplus
14760 extern "C"
14761 {
14762 #endif
14763 /* We use char because int might match the return type of a gcc2
14764    builtin and then its argument prototype would still apply.  */
14765 char $ac_func ();
14766 /* The GNU C library defines this for functions which it implements
14767     to always fail with ENOSYS.  Some functions are actually named
14768     something starting with __ and the normal name is an alias.  */
14769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14770 choke me
14771 #else
14772 char (*f) () = $ac_func;
14773 #endif
14774 #ifdef __cplusplus
14775 }
14776 #endif
14777
14778 int
14779 main ()
14780 {
14781 return f != $ac_func;
14782   ;
14783   return 0;
14784 }
14785 _ACEOF
14786 rm -f conftest.$ac_objext conftest$ac_exeext
14787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14788   (eval $ac_link) 2>conftest.er1
14789   ac_status=$?
14790   grep -v '^ *+' conftest.er1 >conftest.err
14791   rm -f conftest.er1
14792   cat conftest.err >&5
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); } &&
14795          { ac_try='test -z "$ac_c_werror_flag"
14796                          || test ! -s conftest.err'
14797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798   (eval $ac_try) 2>&5
14799   ac_status=$?
14800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801   (exit $ac_status); }; } &&
14802          { ac_try='test -s conftest$ac_exeext'
14803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804   (eval $ac_try) 2>&5
14805   ac_status=$?
14806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807   (exit $ac_status); }; }; then
14808   eval "$as_ac_var=yes"
14809 else
14810   echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14812
14813 eval "$as_ac_var=no"
14814 fi
14815 rm -f conftest.err conftest.$ac_objext \
14816       conftest$ac_exeext conftest.$ac_ext
14817 fi
14818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14820 if test `eval echo '${'$as_ac_var'}'` = yes; then
14821   cat >>confdefs.h <<_ACEOF
14822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14823 _ACEOF
14824
14825 fi
14826 done
14827
14828
14829
14830 for ac_func in nanosleep nl_langinfo
14831 do
14832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14833 echo "$as_me:$LINENO: checking for $ac_func" >&5
14834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14835 if eval "test \"\${$as_ac_var+set}\" = set"; then
14836   echo $ECHO_N "(cached) $ECHO_C" >&6
14837 else
14838   cat >conftest.$ac_ext <<_ACEOF
14839 /* confdefs.h.  */
14840 _ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h.  */
14844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14846 #define $ac_func innocuous_$ac_func
14847
14848 /* System header to define __stub macros and hopefully few prototypes,
14849     which can conflict with char $ac_func (); below.
14850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14851     <limits.h> exists even on freestanding compilers.  */
14852
14853 #ifdef __STDC__
14854 # include <limits.h>
14855 #else
14856 # include <assert.h>
14857 #endif
14858
14859 #undef $ac_func
14860
14861 /* Override any gcc2 internal prototype to avoid an error.  */
14862 #ifdef __cplusplus
14863 extern "C"
14864 {
14865 #endif
14866 /* We use char because int might match the return type of a gcc2
14867    builtin and then its argument prototype would still apply.  */
14868 char $ac_func ();
14869 /* The GNU C library defines this for functions which it implements
14870     to always fail with ENOSYS.  Some functions are actually named
14871     something starting with __ and the normal name is an alias.  */
14872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14873 choke me
14874 #else
14875 char (*f) () = $ac_func;
14876 #endif
14877 #ifdef __cplusplus
14878 }
14879 #endif
14880
14881 int
14882 main ()
14883 {
14884 return f != $ac_func;
14885   ;
14886   return 0;
14887 }
14888 _ACEOF
14889 rm -f conftest.$ac_objext conftest$ac_exeext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14891   (eval $ac_link) 2>conftest.er1
14892   ac_status=$?
14893   grep -v '^ *+' conftest.er1 >conftest.err
14894   rm -f conftest.er1
14895   cat conftest.err >&5
14896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897   (exit $ac_status); } &&
14898          { ac_try='test -z "$ac_c_werror_flag"
14899                          || test ! -s conftest.err'
14900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901   (eval $ac_try) 2>&5
14902   ac_status=$?
14903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); }; } &&
14905          { ac_try='test -s conftest$ac_exeext'
14906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907   (eval $ac_try) 2>&5
14908   ac_status=$?
14909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); }; }; then
14911   eval "$as_ac_var=yes"
14912 else
14913   echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14915
14916 eval "$as_ac_var=no"
14917 fi
14918 rm -f conftest.err conftest.$ac_objext \
14919       conftest$ac_exeext conftest.$ac_ext
14920 fi
14921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14923 if test `eval echo '${'$as_ac_var'}'` = yes; then
14924   cat >>confdefs.h <<_ACEOF
14925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14926 _ACEOF
14927
14928 fi
14929 done
14930
14931
14932 for ac_header in varargs.h
14933 do
14934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14936   echo "$as_me:$LINENO: checking for $ac_header" >&5
14937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14939   echo $ECHO_N "(cached) $ECHO_C" >&6
14940 fi
14941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14943 else
14944   # Is the header compilable?
14945 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14947 cat >conftest.$ac_ext <<_ACEOF
14948 /* confdefs.h.  */
14949 _ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h.  */
14953 $ac_includes_default
14954 #include <$ac_header>
14955 _ACEOF
14956 rm -f conftest.$ac_objext
14957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14958   (eval $ac_compile) 2>conftest.er1
14959   ac_status=$?
14960   grep -v '^ *+' conftest.er1 >conftest.err
14961   rm -f conftest.er1
14962   cat conftest.err >&5
14963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964   (exit $ac_status); } &&
14965          { ac_try='test -z "$ac_c_werror_flag"
14966                          || test ! -s conftest.err'
14967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968   (eval $ac_try) 2>&5
14969   ac_status=$?
14970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971   (exit $ac_status); }; } &&
14972          { ac_try='test -s conftest.$ac_objext'
14973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974   (eval $ac_try) 2>&5
14975   ac_status=$?
14976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977   (exit $ac_status); }; }; then
14978   ac_header_compiler=yes
14979 else
14980   echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14982
14983 ac_header_compiler=no
14984 fi
14985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14987 echo "${ECHO_T}$ac_header_compiler" >&6
14988
14989 # Is the header present?
14990 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14992 cat >conftest.$ac_ext <<_ACEOF
14993 /* confdefs.h.  */
14994 _ACEOF
14995 cat confdefs.h >>conftest.$ac_ext
14996 cat >>conftest.$ac_ext <<_ACEOF
14997 /* end confdefs.h.  */
14998 #include <$ac_header>
14999 _ACEOF
15000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15002   ac_status=$?
15003   grep -v '^ *+' conftest.er1 >conftest.err
15004   rm -f conftest.er1
15005   cat conftest.err >&5
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); } >/dev/null; then
15008   if test -s conftest.err; then
15009     ac_cpp_err=$ac_c_preproc_warn_flag
15010     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15011   else
15012     ac_cpp_err=
15013   fi
15014 else
15015   ac_cpp_err=yes
15016 fi
15017 if test -z "$ac_cpp_err"; then
15018   ac_header_preproc=yes
15019 else
15020   echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15022
15023   ac_header_preproc=no
15024 fi
15025 rm -f conftest.err conftest.$ac_ext
15026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15027 echo "${ECHO_T}$ac_header_preproc" >&6
15028
15029 # So?  What about this header?
15030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15031   yes:no: )
15032     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15036     ac_header_preproc=yes
15037     ;;
15038   no:yes:* )
15039     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15041     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15042 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15043     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15045     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15046 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15047     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15049     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15051     (
15052       cat <<\_ASBOX
15053 ## ------------------------------------------ ##
15054 ## Report this to the AC_PACKAGE_NAME lists.  ##
15055 ## ------------------------------------------ ##
15056 _ASBOX
15057     ) |
15058       sed "s/^/$as_me: WARNING:     /" >&2
15059     ;;
15060 esac
15061 echo "$as_me:$LINENO: checking for $ac_header" >&5
15062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15064   echo $ECHO_N "(cached) $ECHO_C" >&6
15065 else
15066   eval "$as_ac_Header=\$ac_header_preproc"
15067 fi
15068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15070
15071 fi
15072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15073   cat >>confdefs.h <<_ACEOF
15074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15075 _ACEOF
15076
15077 fi
15078
15079 done
15080
15081
15082 # End of readline/conio stuff
15083 # -----------------------------------------------------------------------
15084
15085 # -----------------------------------------------------------------------
15086 #  Check for Python support
15087 #
15088 echo "$as_me:$LINENO: checking for Python support" >&5
15089 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
15090
15091 # Check whether --with-python or --without-python was given.
15092 if test "${with_python+set}" = set; then
15093   withval="$with_python"
15094
15095   PYTHON_INCDIR=
15096   PYTHON_LIBS=
15097   if test "$withval" != "no"; then
15098      if test "$withval" = "yes"; then
15099         for python_root in /usr /usr/local /usr/sfw; do
15100           for ver in python2.2 python2.3 python2.4 python2.5; do
15101              if test -f $python_root/include/${ver}/Python.h; then
15102                 PYTHON_INCDIR=-I$python_root/include/${ver}
15103                 if test -d $python_root/lib64/${ver}/config; then
15104                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15105                 else
15106                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15107                 fi
15108                 break
15109              fi
15110           done
15111         done
15112         if test x$PYTHON_INCDIR = x; then
15113           if test -f $prefix/include/Python.h; then
15114              PYTHON_INCDIR=-I$prefix/include
15115              if test -d $prefix/lib64/config; then
15116                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15117              else
15118                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15119              fi
15120           else
15121            echo "$as_me:$LINENO: result: no" >&5
15122 echo "${ECHO_T}no" >&6
15123            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15124 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15125    { (exit 1); exit 1; }; }
15126           fi
15127         fi
15128      else
15129         if test -f $withval/Python.h; then
15130            PYTHON_INCDIR=-I$withval
15131            PYTHON_LIBS="-L$withval/config -lpython"
15132         elif test -f $withval/include/Python.h; then
15133            PYTHON_INCDIR=-I$withval/include
15134            if test -d $withval/lib64/config; then
15135               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15136            else
15137               PYTHON_LIBS="-L$withval/lib/config -lpython"
15138            fi
15139         elif test -f $withval/include/python/Python.h; then
15140            PYTHON_INCDIR=-I$withval/include/python
15141            if test -d $withval/lib64/python/config; then
15142               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15143            else
15144               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15145            fi
15146         else
15147            echo "$as_me:$LINENO: result: no" >&5
15148 echo "${ECHO_T}no" >&6
15149            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15150 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15151    { (exit 1); exit 1; }; }
15152         fi
15153      fi
15154      cat >>confdefs.h <<\_ACEOF
15155 #define HAVE_PYTHON 1
15156 _ACEOF
15157
15158      echo "$as_me:$LINENO: result: yes" >&5
15159 echo "${ECHO_T}yes" >&6
15160      support_python=yes
15161      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15162 echo "$as_me: checking for more Python libs" >&6;}
15163      saved_LIBS="$LIBS"; LIBS=
15164      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15165 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15166 if test "${ac_cv_search_shm_open+set}" = set; then
15167   echo $ECHO_N "(cached) $ECHO_C" >&6
15168 else
15169   ac_func_search_save_LIBS=$LIBS
15170 ac_cv_search_shm_open=no
15171 cat >conftest.$ac_ext <<_ACEOF
15172 /* confdefs.h.  */
15173 _ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h.  */
15177
15178 /* Override any gcc2 internal prototype to avoid an error.  */
15179 #ifdef __cplusplus
15180 extern "C"
15181 #endif
15182 /* We use char because int might match the return type of a gcc2
15183    builtin and then its argument prototype would still apply.  */
15184 char shm_open ();
15185 int
15186 main ()
15187 {
15188 shm_open ();
15189   ;
15190   return 0;
15191 }
15192 _ACEOF
15193 rm -f conftest.$ac_objext conftest$ac_exeext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15195   (eval $ac_link) 2>conftest.er1
15196   ac_status=$?
15197   grep -v '^ *+' conftest.er1 >conftest.err
15198   rm -f conftest.er1
15199   cat conftest.err >&5
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); } &&
15202          { ac_try='test -z "$ac_c_werror_flag"
15203                          || test ! -s conftest.err'
15204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205   (eval $ac_try) 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); }; } &&
15209          { ac_try='test -s conftest$ac_exeext'
15210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211   (eval $ac_try) 2>&5
15212   ac_status=$?
15213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   (exit $ac_status); }; }; then
15215   ac_cv_search_shm_open="none required"
15216 else
15217   echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15219
15220 fi
15221 rm -f conftest.err conftest.$ac_objext \
15222       conftest$ac_exeext conftest.$ac_ext
15223 if test "$ac_cv_search_shm_open" = no; then
15224   for ac_lib in rt; do
15225     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15226     cat >conftest.$ac_ext <<_ACEOF
15227 /* confdefs.h.  */
15228 _ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h.  */
15232
15233 /* Override any gcc2 internal prototype to avoid an error.  */
15234 #ifdef __cplusplus
15235 extern "C"
15236 #endif
15237 /* We use char because int might match the return type of a gcc2
15238    builtin and then its argument prototype would still apply.  */
15239 char shm_open ();
15240 int
15241 main ()
15242 {
15243 shm_open ();
15244   ;
15245   return 0;
15246 }
15247 _ACEOF
15248 rm -f conftest.$ac_objext conftest$ac_exeext
15249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15250   (eval $ac_link) 2>conftest.er1
15251   ac_status=$?
15252   grep -v '^ *+' conftest.er1 >conftest.err
15253   rm -f conftest.er1
15254   cat conftest.err >&5
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); } &&
15257          { ac_try='test -z "$ac_c_werror_flag"
15258                          || test ! -s conftest.err'
15259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260   (eval $ac_try) 2>&5
15261   ac_status=$?
15262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263   (exit $ac_status); }; } &&
15264          { ac_try='test -s conftest$ac_exeext'
15265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266   (eval $ac_try) 2>&5
15267   ac_status=$?
15268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269   (exit $ac_status); }; }; then
15270   ac_cv_search_shm_open="-l$ac_lib"
15271 break
15272 else
15273   echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15275
15276 fi
15277 rm -f conftest.err conftest.$ac_objext \
15278       conftest$ac_exeext conftest.$ac_ext
15279   done
15280 fi
15281 LIBS=$ac_func_search_save_LIBS
15282 fi
15283 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15284 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15285 if test "$ac_cv_search_shm_open" != no; then
15286   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15287
15288 fi
15289
15290
15291 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15292 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15293 if test "${ac_cv_lib_util_openpty+set}" = set; then
15294   echo $ECHO_N "(cached) $ECHO_C" >&6
15295 else
15296   ac_check_lib_save_LIBS=$LIBS
15297 LIBS="-lutil  $LIBS"
15298 cat >conftest.$ac_ext <<_ACEOF
15299 /* confdefs.h.  */
15300 _ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h.  */
15304
15305 /* Override any gcc2 internal prototype to avoid an error.  */
15306 #ifdef __cplusplus
15307 extern "C"
15308 #endif
15309 /* We use char because int might match the return type of a gcc2
15310    builtin and then its argument prototype would still apply.  */
15311 char openpty ();
15312 int
15313 main ()
15314 {
15315 openpty ();
15316   ;
15317   return 0;
15318 }
15319 _ACEOF
15320 rm -f conftest.$ac_objext conftest$ac_exeext
15321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15322   (eval $ac_link) 2>conftest.er1
15323   ac_status=$?
15324   grep -v '^ *+' conftest.er1 >conftest.err
15325   rm -f conftest.er1
15326   cat conftest.err >&5
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); } &&
15329          { ac_try='test -z "$ac_c_werror_flag"
15330                          || test ! -s conftest.err'
15331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332   (eval $ac_try) 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); }; } &&
15336          { ac_try='test -s conftest$ac_exeext'
15337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338   (eval $ac_try) 2>&5
15339   ac_status=$?
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); }; }; then
15342   ac_cv_lib_util_openpty=yes
15343 else
15344   echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15346
15347 ac_cv_lib_util_openpty=no
15348 fi
15349 rm -f conftest.err conftest.$ac_objext \
15350       conftest$ac_exeext conftest.$ac_ext
15351 LIBS=$ac_check_lib_save_LIBS
15352 fi
15353 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15354 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15355 if test $ac_cv_lib_util_openpty = yes; then
15356   cat >>confdefs.h <<_ACEOF
15357 #define HAVE_LIBUTIL 1
15358 _ACEOF
15359
15360   LIBS="-lutil $LIBS"
15361
15362 fi
15363
15364      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15365      LIBS="$saved_LIBS"
15366   else
15367      echo "$as_me:$LINENO: result: no" >&5
15368 echo "${ECHO_T}no" >&6
15369   fi
15370
15371 else
15372
15373   echo "$as_me:$LINENO: result: no" >&5
15374 echo "${ECHO_T}no" >&6
15375
15376 fi;
15377
15378
15379
15380 #
15381 # Find where sockets are (especially for Solaris)
15382 # Do this before the TCP Wrappers test since tcp wrappers
15383 # uses the socket library and some linkers are stupid.
15384 #
15385 echo "$as_me:$LINENO: checking for socket" >&5
15386 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15387 if test "${ac_cv_func_socket+set}" = set; then
15388   echo $ECHO_N "(cached) $ECHO_C" >&6
15389 else
15390   cat >conftest.$ac_ext <<_ACEOF
15391 /* confdefs.h.  */
15392 _ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h.  */
15396 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15398 #define socket innocuous_socket
15399
15400 /* System header to define __stub macros and hopefully few prototypes,
15401     which can conflict with char socket (); below.
15402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15403     <limits.h> exists even on freestanding compilers.  */
15404
15405 #ifdef __STDC__
15406 # include <limits.h>
15407 #else
15408 # include <assert.h>
15409 #endif
15410
15411 #undef socket
15412
15413 /* Override any gcc2 internal prototype to avoid an error.  */
15414 #ifdef __cplusplus
15415 extern "C"
15416 {
15417 #endif
15418 /* We use char because int might match the return type of a gcc2
15419    builtin and then its argument prototype would still apply.  */
15420 char socket ();
15421 /* The GNU C library defines this for functions which it implements
15422     to always fail with ENOSYS.  Some functions are actually named
15423     something starting with __ and the normal name is an alias.  */
15424 #if defined (__stub_socket) || defined (__stub___socket)
15425 choke me
15426 #else
15427 char (*f) () = socket;
15428 #endif
15429 #ifdef __cplusplus
15430 }
15431 #endif
15432
15433 int
15434 main ()
15435 {
15436 return f != socket;
15437   ;
15438   return 0;
15439 }
15440 _ACEOF
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15443   (eval $ac_link) 2>conftest.er1
15444   ac_status=$?
15445   grep -v '^ *+' conftest.er1 >conftest.err
15446   rm -f conftest.er1
15447   cat conftest.err >&5
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); } &&
15450          { ac_try='test -z "$ac_c_werror_flag"
15451                          || test ! -s conftest.err'
15452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453   (eval $ac_try) 2>&5
15454   ac_status=$?
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); }; } &&
15457          { ac_try='test -s conftest$ac_exeext'
15458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459   (eval $ac_try) 2>&5
15460   ac_status=$?
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); }; }; then
15463   ac_cv_func_socket=yes
15464 else
15465   echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15467
15468 ac_cv_func_socket=no
15469 fi
15470 rm -f conftest.err conftest.$ac_objext \
15471       conftest$ac_exeext conftest.$ac_ext
15472 fi
15473 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15474 echo "${ECHO_T}$ac_cv_func_socket" >&6
15475 if test $ac_cv_func_socket = yes; then
15476   echo "$as_me:$LINENO: result: using libc's socket" >&5
15477 echo "${ECHO_T}using libc's socket" >&6
15478 else
15479
15480 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15481 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15482 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15483   echo $ECHO_N "(cached) $ECHO_C" >&6
15484 else
15485   ac_check_lib_save_LIBS=$LIBS
15486 LIBS="-lxnet  $LIBS"
15487 cat >conftest.$ac_ext <<_ACEOF
15488 /* confdefs.h.  */
15489 _ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h.  */
15493
15494 /* Override any gcc2 internal prototype to avoid an error.  */
15495 #ifdef __cplusplus
15496 extern "C"
15497 #endif
15498 /* We use char because int might match the return type of a gcc2
15499    builtin and then its argument prototype would still apply.  */
15500 char socket ();
15501 int
15502 main ()
15503 {
15504 socket ();
15505   ;
15506   return 0;
15507 }
15508 _ACEOF
15509 rm -f conftest.$ac_objext conftest$ac_exeext
15510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15511   (eval $ac_link) 2>conftest.er1
15512   ac_status=$?
15513   grep -v '^ *+' conftest.er1 >conftest.err
15514   rm -f conftest.er1
15515   cat conftest.err >&5
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); } &&
15518          { ac_try='test -z "$ac_c_werror_flag"
15519                          || test ! -s conftest.err'
15520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521   (eval $ac_try) 2>&5
15522   ac_status=$?
15523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524   (exit $ac_status); }; } &&
15525          { ac_try='test -s conftest$ac_exeext'
15526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527   (eval $ac_try) 2>&5
15528   ac_status=$?
15529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); }; }; then
15531   ac_cv_lib_xnet_socket=yes
15532 else
15533   echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15535
15536 ac_cv_lib_xnet_socket=no
15537 fi
15538 rm -f conftest.err conftest.$ac_objext \
15539       conftest$ac_exeext conftest.$ac_ext
15540 LIBS=$ac_check_lib_save_LIBS
15541 fi
15542 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15543 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15544 if test $ac_cv_lib_xnet_socket = yes; then
15545   cat >>confdefs.h <<_ACEOF
15546 #define HAVE_LIBXNET 1
15547 _ACEOF
15548
15549   LIBS="-lxnet $LIBS"
15550
15551 fi
15552
15553
15554 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15555 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15556 if test "${ac_cv_lib_socket_socket+set}" = set; then
15557   echo $ECHO_N "(cached) $ECHO_C" >&6
15558 else
15559   ac_check_lib_save_LIBS=$LIBS
15560 LIBS="-lsocket  $LIBS"
15561 cat >conftest.$ac_ext <<_ACEOF
15562 /* confdefs.h.  */
15563 _ACEOF
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h.  */
15567
15568 /* Override any gcc2 internal prototype to avoid an error.  */
15569 #ifdef __cplusplus
15570 extern "C"
15571 #endif
15572 /* We use char because int might match the return type of a gcc2
15573    builtin and then its argument prototype would still apply.  */
15574 char socket ();
15575 int
15576 main ()
15577 {
15578 socket ();
15579   ;
15580   return 0;
15581 }
15582 _ACEOF
15583 rm -f conftest.$ac_objext conftest$ac_exeext
15584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15585   (eval $ac_link) 2>conftest.er1
15586   ac_status=$?
15587   grep -v '^ *+' conftest.er1 >conftest.err
15588   rm -f conftest.er1
15589   cat conftest.err >&5
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); } &&
15592          { ac_try='test -z "$ac_c_werror_flag"
15593                          || test ! -s conftest.err'
15594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595   (eval $ac_try) 2>&5
15596   ac_status=$?
15597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598   (exit $ac_status); }; } &&
15599          { ac_try='test -s conftest$ac_exeext'
15600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601   (eval $ac_try) 2>&5
15602   ac_status=$?
15603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); }; }; then
15605   ac_cv_lib_socket_socket=yes
15606 else
15607   echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15609
15610 ac_cv_lib_socket_socket=no
15611 fi
15612 rm -f conftest.err conftest.$ac_objext \
15613       conftest$ac_exeext conftest.$ac_ext
15614 LIBS=$ac_check_lib_save_LIBS
15615 fi
15616 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15617 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15618 if test $ac_cv_lib_socket_socket = yes; then
15619   cat >>confdefs.h <<_ACEOF
15620 #define HAVE_LIBSOCKET 1
15621 _ACEOF
15622
15623   LIBS="-lsocket $LIBS"
15624
15625 fi
15626
15627
15628 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15629 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15630 if test "${ac_cv_lib_inet_socket+set}" = set; then
15631   echo $ECHO_N "(cached) $ECHO_C" >&6
15632 else
15633   ac_check_lib_save_LIBS=$LIBS
15634 LIBS="-linet  $LIBS"
15635 cat >conftest.$ac_ext <<_ACEOF
15636 /* confdefs.h.  */
15637 _ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h.  */
15641
15642 /* Override any gcc2 internal prototype to avoid an error.  */
15643 #ifdef __cplusplus
15644 extern "C"
15645 #endif
15646 /* We use char because int might match the return type of a gcc2
15647    builtin and then its argument prototype would still apply.  */
15648 char socket ();
15649 int
15650 main ()
15651 {
15652 socket ();
15653   ;
15654   return 0;
15655 }
15656 _ACEOF
15657 rm -f conftest.$ac_objext conftest$ac_exeext
15658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15659   (eval $ac_link) 2>conftest.er1
15660   ac_status=$?
15661   grep -v '^ *+' conftest.er1 >conftest.err
15662   rm -f conftest.er1
15663   cat conftest.err >&5
15664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665   (exit $ac_status); } &&
15666          { ac_try='test -z "$ac_c_werror_flag"
15667                          || test ! -s conftest.err'
15668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669   (eval $ac_try) 2>&5
15670   ac_status=$?
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); }; } &&
15673          { ac_try='test -s conftest$ac_exeext'
15674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675   (eval $ac_try) 2>&5
15676   ac_status=$?
15677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); }; }; then
15679   ac_cv_lib_inet_socket=yes
15680 else
15681   echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684 ac_cv_lib_inet_socket=no
15685 fi
15686 rm -f conftest.err conftest.$ac_objext \
15687       conftest$ac_exeext conftest.$ac_ext
15688 LIBS=$ac_check_lib_save_LIBS
15689 fi
15690 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15691 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15692 if test $ac_cv_lib_inet_socket = yes; then
15693   cat >>confdefs.h <<_ACEOF
15694 #define HAVE_LIBINET 1
15695 _ACEOF
15696
15697   LIBS="-linet $LIBS"
15698
15699 fi
15700
15701 fi
15702
15703
15704
15705 # -----------------------------------------------------------
15706 # Check whether user wants TCP wrappers support (default off)
15707 # -----------------------------------------------------------
15708 TCPW_MSG="no"
15709 WRAPLIBS=""
15710
15711 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15712 if test "${with_tcp_wrappers+set}" = set; then
15713   withval="$with_tcp_wrappers"
15714
15715     if test "x$withval" != "xno" ; then
15716        saved_LIBS="$LIBS"
15717        LIBS="$saved_LIBS -lwrap"
15718        echo "$as_me:$LINENO: checking for libwrap" >&5
15719 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15720        echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15721 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15722 if test "${ac_cv_search_nanosleep+set}" = set; then
15723   echo $ECHO_N "(cached) $ECHO_C" >&6
15724 else
15725   ac_func_search_save_LIBS=$LIBS
15726 ac_cv_search_nanosleep=no
15727 cat >conftest.$ac_ext <<_ACEOF
15728 /* confdefs.h.  */
15729 _ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h.  */
15733
15734 /* Override any gcc2 internal prototype to avoid an error.  */
15735 #ifdef __cplusplus
15736 extern "C"
15737 #endif
15738 /* We use char because int might match the return type of a gcc2
15739    builtin and then its argument prototype would still apply.  */
15740 char nanosleep ();
15741 int
15742 main ()
15743 {
15744 nanosleep ();
15745   ;
15746   return 0;
15747 }
15748 _ACEOF
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15751   (eval $ac_link) 2>conftest.er1
15752   ac_status=$?
15753   grep -v '^ *+' conftest.er1 >conftest.err
15754   rm -f conftest.er1
15755   cat conftest.err >&5
15756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); } &&
15758          { ac_try='test -z "$ac_c_werror_flag"
15759                          || test ! -s conftest.err'
15760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761   (eval $ac_try) 2>&5
15762   ac_status=$?
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); }; } &&
15765          { ac_try='test -s conftest$ac_exeext'
15766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767   (eval $ac_try) 2>&5
15768   ac_status=$?
15769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770   (exit $ac_status); }; }; then
15771   ac_cv_search_nanosleep="none required"
15772 else
15773   echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15775
15776 fi
15777 rm -f conftest.err conftest.$ac_objext \
15778       conftest$ac_exeext conftest.$ac_ext
15779 if test "$ac_cv_search_nanosleep" = no; then
15780   for ac_lib in rt; do
15781     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15782     cat >conftest.$ac_ext <<_ACEOF
15783 /* confdefs.h.  */
15784 _ACEOF
15785 cat confdefs.h >>conftest.$ac_ext
15786 cat >>conftest.$ac_ext <<_ACEOF
15787 /* end confdefs.h.  */
15788
15789 /* Override any gcc2 internal prototype to avoid an error.  */
15790 #ifdef __cplusplus
15791 extern "C"
15792 #endif
15793 /* We use char because int might match the return type of a gcc2
15794    builtin and then its argument prototype would still apply.  */
15795 char nanosleep ();
15796 int
15797 main ()
15798 {
15799 nanosleep ();
15800   ;
15801   return 0;
15802 }
15803 _ACEOF
15804 rm -f conftest.$ac_objext conftest$ac_exeext
15805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15806   (eval $ac_link) 2>conftest.er1
15807   ac_status=$?
15808   grep -v '^ *+' conftest.er1 >conftest.err
15809   rm -f conftest.er1
15810   cat conftest.err >&5
15811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812   (exit $ac_status); } &&
15813          { ac_try='test -z "$ac_c_werror_flag"
15814                          || test ! -s conftest.err'
15815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816   (eval $ac_try) 2>&5
15817   ac_status=$?
15818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819   (exit $ac_status); }; } &&
15820          { ac_try='test -s conftest$ac_exeext'
15821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822   (eval $ac_try) 2>&5
15823   ac_status=$?
15824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825   (exit $ac_status); }; }; then
15826   ac_cv_search_nanosleep="-l$ac_lib"
15827 break
15828 else
15829   echo "$as_me: failed program was:" >&5
15830 sed 's/^/| /' conftest.$ac_ext >&5
15831
15832 fi
15833 rm -f conftest.err conftest.$ac_objext \
15834       conftest$ac_exeext conftest.$ac_ext
15835   done
15836 fi
15837 LIBS=$ac_func_search_save_LIBS
15838 fi
15839 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15840 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15841 if test "$ac_cv_search_nanosleep" != no; then
15842   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15843
15844 fi
15845
15846        cat >conftest.$ac_ext <<_ACEOF
15847 /* confdefs.h.  */
15848 _ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h.  */
15852  #include <sys/types.h>
15853             #include <tcpd.h>
15854              int deny_severity = 0;
15855              int allow_severity = 0;
15856              struct request_info *req;
15857 int
15858 main ()
15859 {
15860  hosts_access(req);
15861   ;
15862   return 0;
15863 }
15864 _ACEOF
15865 rm -f conftest.$ac_objext conftest$ac_exeext
15866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15867   (eval $ac_link) 2>conftest.er1
15868   ac_status=$?
15869   grep -v '^ *+' conftest.er1 >conftest.err
15870   rm -f conftest.er1
15871   cat conftest.err >&5
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); } &&
15874          { ac_try='test -z "$ac_c_werror_flag"
15875                          || test ! -s conftest.err'
15876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877   (eval $ac_try) 2>&5
15878   ac_status=$?
15879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880   (exit $ac_status); }; } &&
15881          { ac_try='test -s conftest$ac_exeext'
15882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883   (eval $ac_try) 2>&5
15884   ac_status=$?
15885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886   (exit $ac_status); }; }; then
15887
15888             echo "$as_me:$LINENO: result: yes" >&5
15889 echo "${ECHO_T}yes" >&6
15890
15891 cat >>confdefs.h <<\_ACEOF
15892 #define HAVE_LIBWRAP 1
15893 _ACEOF
15894
15895             TCPW_MSG="yes"
15896             LIBS="$saved_LIBS"
15897             WRAPLIBS="-lwrap"
15898
15899 else
15900   echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.$ac_ext >&5
15902
15903
15904             LIBS="$saved_LIBS -lwrap -lnsl"
15905             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15906             cat >conftest.$ac_ext <<_ACEOF
15907 /* confdefs.h.  */
15908 _ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h.  */
15912  #include <sys/types.h>
15913                  #include <tcpd.h>
15914                  int deny_severity = 0;
15915                  int allow_severity = 0;
15916                  struct request_info *req;
15917 int
15918 main ()
15919 {
15920  hosts_access(req);
15921   ;
15922   return 0;
15923 }
15924 _ACEOF
15925 rm -f conftest.$ac_objext conftest$ac_exeext
15926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15927   (eval $ac_link) 2>conftest.er1
15928   ac_status=$?
15929   grep -v '^ *+' conftest.er1 >conftest.err
15930   rm -f conftest.er1
15931   cat conftest.err >&5
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); } &&
15934          { ac_try='test -z "$ac_c_werror_flag"
15935                          || test ! -s conftest.err'
15936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15937   (eval $ac_try) 2>&5
15938   ac_status=$?
15939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940   (exit $ac_status); }; } &&
15941          { ac_try='test -s conftest$ac_exeext'
15942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943   (eval $ac_try) 2>&5
15944   ac_status=$?
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); }; }; then
15947
15948                  echo "$as_me:$LINENO: result: yes" >&5
15949 echo "${ECHO_T}yes" >&6
15950
15951 cat >>confdefs.h <<\_ACEOF
15952 #define HAVE_LIBWRAP 1
15953 _ACEOF
15954
15955                  TCPW_MSG="yes"
15956                  LIBS="$saved_LIBS"
15957                  WRAPLIBS="-lwrap"
15958
15959 else
15960   echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15962
15963 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15964 echo "$as_me: error: *** libwrap missing" >&2;}
15965    { (exit 1); exit 1; }; }
15966
15967 fi
15968 rm -f conftest.err conftest.$ac_objext \
15969       conftest$ac_exeext conftest.$ac_ext
15970
15971 fi
15972 rm -f conftest.err conftest.$ac_objext \
15973       conftest$ac_exeext conftest.$ac_ext
15974     fi
15975
15976
15977 fi;
15978
15979 # -----------------------------------------------------------
15980 # Check whether OpenSSL is available
15981 # -----------------------------------------------------------
15982 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15983 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15984
15985 # Check whether --with-openssl or --without-openssl was given.
15986 if test "${with_openssl+set}" = set; then
15987   withval="$with_openssl"
15988   with_openssl_directory=${withval}
15989 fi;
15990
15991 if test "x$with_openssl_directory" != "x"; then
15992         OPENSSL_LIBS="-lssl -lcrypto"
15993         OPENSSL_INC=""
15994
15995         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15996                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15997                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15998         fi
15999
16000         saved_LIBS="${LIBS}"
16001         saved_CFLAGS="${CFLAGS}"
16002         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16003         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16004
16005         cat >conftest.$ac_ext <<_ACEOF
16006 /* confdefs.h.  */
16007 _ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h.  */
16011  #include <openssl/ssl.h>
16012 int
16013 main ()
16014 {
16015  CRYPTO_set_id_callback(NULL);
16016   ;
16017   return 0;
16018 }
16019 _ACEOF
16020 rm -f conftest.$ac_objext conftest$ac_exeext
16021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16022   (eval $ac_link) 2>conftest.er1
16023   ac_status=$?
16024   grep -v '^ *+' conftest.er1 >conftest.err
16025   rm -f conftest.er1
16026   cat conftest.err >&5
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); } &&
16029          { ac_try='test -z "$ac_c_werror_flag"
16030                          || test ! -s conftest.err'
16031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032   (eval $ac_try) 2>&5
16033   ac_status=$?
16034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035   (exit $ac_status); }; } &&
16036          { ac_try='test -s conftest$ac_exeext'
16037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038   (eval $ac_try) 2>&5
16039   ac_status=$?
16040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041   (exit $ac_status); }; }; then
16042
16043                         support_tls="yes"
16044                         support_crypto="yes"
16045
16046 else
16047   echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16049
16050  support_tls="no"
16051
16052 fi
16053 rm -f conftest.err conftest.$ac_objext \
16054       conftest$ac_exeext conftest.$ac_ext
16055
16056         cat >conftest.$ac_ext <<_ACEOF
16057 /* confdefs.h.  */
16058 _ACEOF
16059 cat confdefs.h >>conftest.$ac_ext
16060 cat >>conftest.$ac_ext <<_ACEOF
16061 /* end confdefs.h.  */
16062  #include <openssl/evp.h>
16063 int
16064 main ()
16065 {
16066  EVP_sha512();
16067   ;
16068   return 0;
16069 }
16070 _ACEOF
16071 rm -f conftest.$ac_objext conftest$ac_exeext
16072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16073   (eval $ac_link) 2>conftest.er1
16074   ac_status=$?
16075   grep -v '^ *+' conftest.er1 >conftest.err
16076   rm -f conftest.er1
16077   cat conftest.err >&5
16078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079   (exit $ac_status); } &&
16080          { ac_try='test -z "$ac_c_werror_flag"
16081                          || test ! -s conftest.err'
16082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083   (eval $ac_try) 2>&5
16084   ac_status=$?
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); }; } &&
16087          { ac_try='test -s conftest$ac_exeext'
16088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089   (eval $ac_try) 2>&5
16090   ac_status=$?
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); }; }; then
16093    ac_cv_openssl_sha2="yes"
16094 else
16095   echo "$as_me: failed program was:" >&5
16096 sed 's/^/| /' conftest.$ac_ext >&5
16097
16098  ac_cv_openssl_sha2="no"
16099
16100 fi
16101 rm -f conftest.err conftest.$ac_objext \
16102       conftest$ac_exeext conftest.$ac_ext
16103
16104         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16105         # implementation, presumably for export reasons. If 192bit AES
16106         # is available, we assume that we're running with a 'non-export'
16107         # openssl library.
16108         cat >conftest.$ac_ext <<_ACEOF
16109 /* confdefs.h.  */
16110 _ACEOF
16111 cat confdefs.h >>conftest.$ac_ext
16112 cat >>conftest.$ac_ext <<_ACEOF
16113 /* end confdefs.h.  */
16114  #include <openssl/evp.h>
16115 int
16116 main ()
16117 {
16118  EVP_aes_192_cbc();
16119   ;
16120   return 0;
16121 }
16122 _ACEOF
16123 rm -f conftest.$ac_objext conftest$ac_exeext
16124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16125   (eval $ac_link) 2>conftest.er1
16126   ac_status=$?
16127   grep -v '^ *+' conftest.er1 >conftest.err
16128   rm -f conftest.er1
16129   cat conftest.err >&5
16130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131   (exit $ac_status); } &&
16132          { ac_try='test -z "$ac_c_werror_flag"
16133                          || test ! -s conftest.err'
16134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135   (eval $ac_try) 2>&5
16136   ac_status=$?
16137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138   (exit $ac_status); }; } &&
16139          { ac_try='test -s conftest$ac_exeext'
16140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141   (eval $ac_try) 2>&5
16142   ac_status=$?
16143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144   (exit $ac_status); }; }; then
16145    ac_cv_openssl_export="no"
16146 else
16147   echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16149
16150  ac_cv_openssl_export="yes"
16151
16152 fi
16153 rm -f conftest.err conftest.$ac_objext \
16154       conftest$ac_exeext conftest.$ac_ext
16155
16156         LIBS="${saved_LIBS}"
16157         CFLAGS="${saved_CFLAGS}"
16158
16159         if test "$support_tls" = "yes"; then
16160
16161 cat >>confdefs.h <<\_ACEOF
16162 #define HAVE_OPENSSL 1
16163 _ACEOF
16164
16165
16166 cat >>confdefs.h <<\_ACEOF
16167 #define HAVE_TLS 1
16168 _ACEOF
16169
16170
16171 cat >>confdefs.h <<\_ACEOF
16172 #define HAVE_CRYPTO 1
16173 _ACEOF
16174
16175         fi
16176
16177         if test "$ac_cv_openssl_sha2" = "yes"; then
16178
16179 cat >>confdefs.h <<\_ACEOF
16180 #define HAVE_SHA2 1
16181 _ACEOF
16182
16183         fi
16184
16185         if test "$ac_cv_openssl_export" = "yes"; then
16186
16187 cat >>confdefs.h <<\_ACEOF
16188 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16189 _ACEOF
16190
16191         fi
16192 else
16193         support_tls="no"
16194         support_crypto="no"
16195         OPENSSL_LIBS=""
16196         OPENSSL_INC=""
16197 fi
16198
16199 echo "$as_me:$LINENO: result: $support_tls" >&5
16200 echo "${ECHO_T}$support_tls" >&6
16201
16202
16203
16204
16205 # -----------------------------------------------------------
16206 # Python and OpenSSL are using dlopen
16207 # -----------------------------------------------------------
16208
16209 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16210    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16211 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16212 if test "${ac_cv_search_dlopen+set}" = set; then
16213   echo $ECHO_N "(cached) $ECHO_C" >&6
16214 else
16215   ac_func_search_save_LIBS=$LIBS
16216 ac_cv_search_dlopen=no
16217 cat >conftest.$ac_ext <<_ACEOF
16218 /* confdefs.h.  */
16219 _ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h.  */
16223
16224 /* Override any gcc2 internal prototype to avoid an error.  */
16225 #ifdef __cplusplus
16226 extern "C"
16227 #endif
16228 /* We use char because int might match the return type of a gcc2
16229    builtin and then its argument prototype would still apply.  */
16230 char dlopen ();
16231 int
16232 main ()
16233 {
16234 dlopen ();
16235   ;
16236   return 0;
16237 }
16238 _ACEOF
16239 rm -f conftest.$ac_objext conftest$ac_exeext
16240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16241   (eval $ac_link) 2>conftest.er1
16242   ac_status=$?
16243   grep -v '^ *+' conftest.er1 >conftest.err
16244   rm -f conftest.er1
16245   cat conftest.err >&5
16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247   (exit $ac_status); } &&
16248          { ac_try='test -z "$ac_c_werror_flag"
16249                          || test ! -s conftest.err'
16250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251   (eval $ac_try) 2>&5
16252   ac_status=$?
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); }; } &&
16255          { ac_try='test -s conftest$ac_exeext'
16256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257   (eval $ac_try) 2>&5
16258   ac_status=$?
16259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260   (exit $ac_status); }; }; then
16261   ac_cv_search_dlopen="none required"
16262 else
16263   echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16265
16266 fi
16267 rm -f conftest.err conftest.$ac_objext \
16268       conftest$ac_exeext conftest.$ac_ext
16269 if test "$ac_cv_search_dlopen" = no; then
16270   for ac_lib in dl; do
16271     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16272     cat >conftest.$ac_ext <<_ACEOF
16273 /* confdefs.h.  */
16274 _ACEOF
16275 cat confdefs.h >>conftest.$ac_ext
16276 cat >>conftest.$ac_ext <<_ACEOF
16277 /* end confdefs.h.  */
16278
16279 /* Override any gcc2 internal prototype to avoid an error.  */
16280 #ifdef __cplusplus
16281 extern "C"
16282 #endif
16283 /* We use char because int might match the return type of a gcc2
16284    builtin and then its argument prototype would still apply.  */
16285 char dlopen ();
16286 int
16287 main ()
16288 {
16289 dlopen ();
16290   ;
16291   return 0;
16292 }
16293 _ACEOF
16294 rm -f conftest.$ac_objext conftest$ac_exeext
16295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16296   (eval $ac_link) 2>conftest.er1
16297   ac_status=$?
16298   grep -v '^ *+' conftest.er1 >conftest.err
16299   rm -f conftest.er1
16300   cat conftest.err >&5
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); } &&
16303          { ac_try='test -z "$ac_c_werror_flag"
16304                          || test ! -s conftest.err'
16305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306   (eval $ac_try) 2>&5
16307   ac_status=$?
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); }; } &&
16310          { ac_try='test -s conftest$ac_exeext'
16311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312   (eval $ac_try) 2>&5
16313   ac_status=$?
16314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315   (exit $ac_status); }; }; then
16316   ac_cv_search_dlopen="-l$ac_lib"
16317 break
16318 else
16319   echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16321
16322 fi
16323 rm -f conftest.err conftest.$ac_objext \
16324       conftest$ac_exeext conftest.$ac_ext
16325   done
16326 fi
16327 LIBS=$ac_func_search_save_LIBS
16328 fi
16329 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16330 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16331 if test "$ac_cv_search_dlopen" != no; then
16332   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16333
16334 fi
16335
16336 fi
16337
16338 # ------------------------------------------
16339 # Where to place working dir
16340 # ------------------------------------------
16341 working_dir=`eval echo ${prefix}/var/bacula/working`
16342
16343 # Check whether --with-working-dir or --without-working-dir was given.
16344 if test "${with_working_dir+set}" = set; then
16345   withval="$with_working_dir"
16346
16347        if test "x$withval" != "xno" ; then
16348               working_dir=$withval
16349        fi
16350
16351
16352 fi;
16353
16354
16355
16356
16357 # ------------------------------------------
16358 # Where to place scriptdir (script files)
16359 # ------------------------------------------
16360 scriptdir=`eval echo ${sysconfdir}`
16361
16362 # Check whether --with-scriptdir or --without-scriptdir was given.
16363 if test "${with_scriptdir+set}" = set; then
16364   withval="$with_scriptdir"
16365
16366        if test "x$withval" != "xno" ; then
16367               scriptdir=$withval
16368        fi
16369
16370
16371 fi;
16372
16373
16374
16375
16376 # ------------------------------------------
16377 # Where to send dump email
16378 # ------------------------------------------
16379 dump_email=root@localhost
16380
16381 # Check whether --with-dump-email or --without-dump-email was given.
16382 if test "${with_dump_email+set}" = set; then
16383   withval="$with_dump_email"
16384
16385        if test "x$withval" != "xno" ; then
16386               dump_email=$withval
16387        fi
16388
16389
16390 fi;
16391
16392
16393
16394 # ------------------------------------------
16395 # Where to send job email
16396 # ------------------------------------------
16397 job_email=root@localhost
16398
16399 # Check whether --with-job-email or --without-job-email was given.
16400 if test "${with_job_email+set}" = set; then
16401   withval="$with_job_email"
16402
16403        if test "x$withval" != "xno" ; then
16404               job_email=$withval
16405        fi
16406
16407
16408 fi;
16409
16410
16411
16412 # ------------------------------------------
16413 # Where to find smtp host
16414 # ------------------------------------------
16415 smtp_host=localhost
16416
16417 # Check whether --with-smtp_host or --without-smtp_host was given.
16418 if test "${with_smtp_host+set}" = set; then
16419   withval="$with_smtp_host"
16420
16421        if test "x$withval" != "xno" ; then
16422               smtp_host=$withval
16423        fi
16424
16425
16426 fi;
16427
16428
16429
16430
16431 # ------------------------------------
16432 # Where to place pid files
16433 # ------------------------------------
16434 piddir=/var/run
16435
16436 # Check whether --with-pid-dir or --without-pid-dir was given.
16437 if test "${with_pid_dir+set}" = set; then
16438   withval="$with_pid_dir"
16439
16440         if test "x$withval" != "xno" ; then
16441             piddir=$withval
16442         fi
16443
16444
16445 fi;
16446
16447 cat >>confdefs.h <<_ACEOF
16448 #define _PATH_BACULA_PIDDIR "$piddir"
16449 _ACEOF
16450
16451
16452
16453
16454 # ------------------------------------
16455 # Where to place subsys "lock file"
16456 # ------------------------------------
16457 subsysdir=/var/run/subsys
16458 if test -d /var/run/subsys; then
16459    subsysdir=/var/run/subsys
16460 elif test -d /var/lock/subsys; then
16461    subsysdir=/var/lock/subsys
16462 else
16463    subsysdir=/var/run/subsys
16464 fi
16465
16466 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16467 if test "${with_subsys_dir+set}" = set; then
16468   withval="$with_subsys_dir"
16469
16470         if test "x$withval" != "xno" ; then
16471             subsysdir=$withval
16472         fi
16473
16474
16475 fi;
16476
16477
16478
16479
16480
16481 # ------------------------------------
16482 # Where to start assigning ports
16483 # ------------------------------------
16484 baseport=9101
16485
16486 # Check whether --with-baseport or --without-baseport was given.
16487 if test "${with_baseport+set}" = set; then
16488   withval="$with_baseport"
16489
16490         if test "x$withval" != "xno" ; then
16491              baseport=$withval
16492         fi
16493
16494
16495 fi;
16496
16497
16498 dir_port=`expr $baseport`
16499 fd_port=`expr $baseport + 1`
16500 sd_port=`expr $fd_port + 1`
16501
16502
16503
16504
16505
16506
16507 # ------------------------------------------
16508 # Generate passwords
16509 # ------------------------------------------
16510 dir_password=
16511
16512 # Check whether --with-dir-password or --without-dir-password was given.
16513 if test "${with_dir_password+set}" = set; then
16514   withval="$with_dir_password"
16515
16516        if test "x$withval" != "xno" ; then
16517            dir_password=$withval
16518        fi
16519
16520
16521 fi;
16522
16523 if test "x$dir_password" = "x" ; then
16524    if test "x$OPENSSL" = "xnone" ; then
16525       key=`autoconf/randpass 33`
16526    else
16527       key=`openssl rand -base64 33`
16528    fi
16529    dir_password=$key
16530 fi
16531
16532 fd_password=
16533
16534 # Check whether --with-fd-password or --without-fd-password was given.
16535 if test "${with_fd_password+set}" = set; then
16536   withval="$with_fd_password"
16537
16538        if test "x$withval" != "xno" ; then
16539            fd_password=$withval
16540        fi
16541
16542
16543 fi;
16544
16545 if test "x$fd_password" = "x" ; then
16546    if test "x$OPENSSL" = "xnone" ; then
16547       key=`autoconf/randpass 37`
16548    else
16549       key=`openssl rand -base64 33`
16550    fi
16551    fd_password=$key
16552 fi
16553
16554 sd_password=
16555
16556 # Check whether --with-sd-password or --without-sd-password was given.
16557 if test "${with_sd_password+set}" = set; then
16558   withval="$with_sd_password"
16559
16560        if test "x$withval" != "xno" ; then
16561            sd_password=$withval
16562        fi
16563
16564
16565 fi;
16566
16567 if test "x$sd_password" = "x" ; then
16568    if test "x$OPENSSL" = "xnone" ; then
16569       key=`autoconf/randpass 41`
16570    else
16571       key=`openssl rand -base64 33`
16572    fi
16573    sd_password=$key
16574 fi
16575
16576 mon_dir_password=
16577
16578 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16579 if test "${with_mon_dir_password+set}" = set; then
16580   withval="$with_mon_dir_password"
16581
16582        if test "x$withval" != "xno" ; then
16583            mon_dir_password=$withval
16584        fi
16585
16586
16587 fi;
16588
16589 if test "x$mon_dir_password" = "x" ; then
16590    if test "x$OPENSSL" = "xnone" ; then
16591       key=`autoconf/randpass 33`
16592    else
16593       key=`openssl rand -base64 33`
16594    fi
16595    mon_dir_password=$key
16596 fi
16597
16598 mon_fd_password=
16599
16600 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16601 if test "${with_mon_fd_password+set}" = set; then
16602   withval="$with_mon_fd_password"
16603
16604        if test "x$withval" != "xno" ; then
16605            mon_fd_password=$withval
16606        fi
16607
16608
16609 fi;
16610
16611 if test "x$mon_fd_password" = "x" ; then
16612    if test "x$OPENSSL" = "xnone" ; then
16613       key=`autoconf/randpass 37`
16614    else
16615       key=`openssl rand -base64 33`
16616    fi
16617    mon_fd_password=$key
16618 fi
16619
16620 mon_sd_password=
16621
16622 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16623 if test "${with_mon_sd_password+set}" = set; then
16624   withval="$with_mon_sd_password"
16625
16626        if test "x$withval" != "xno" ; then
16627            mon_sd_password=$withval
16628        fi
16629
16630
16631 fi;
16632
16633 if test "x$mon_sd_password" = "x" ; then
16634    if test "x$OPENSSL" = "xnone" ; then
16635       key=`autoconf/randpass 41`
16636    else
16637       key=`openssl rand -base64 33`
16638    fi
16639    mon_sd_password=$key
16640 fi
16641
16642
16643
16644
16645
16646
16647
16648
16649 #
16650 # Pickup any database name
16651 #
16652 db_name=bacula
16653
16654 # Check whether --with-db_name or --without-db_name was given.
16655 if test "${with_db_name+set}" = set; then
16656   withval="$with_db_name"
16657
16658         if test "x$withval" != "x" ; then
16659              db_name=$withval
16660         fi
16661
16662
16663 fi;
16664
16665
16666 db_user=bacula
16667
16668 # Check whether --with-db_user or --without-db_user was given.
16669 if test "${with_db_user+set}" = set; then
16670   withval="$with_db_user"
16671
16672         if test "x$withval" != "x" ; then
16673              db_user=$withval
16674         fi
16675
16676
16677 fi;
16678
16679
16680
16681 #
16682 # Handle users and groups for each daemon
16683 #
16684 dir_user=
16685
16686 # Check whether --with-dir_user or --without-dir_user was given.
16687 if test "${with_dir_user+set}" = set; then
16688   withval="$with_dir_user"
16689
16690         if test "x$withval" != "x" ; then
16691              dir_user=$withval
16692         fi
16693
16694
16695 fi;
16696
16697 dir_group=
16698
16699 # Check whether --with-dir_group or --without-dir_group was given.
16700 if test "${with_dir_group+set}" = set; then
16701   withval="$with_dir_group"
16702
16703         if test "x$withval" != "x" ; then
16704              dir_group=$withval
16705         fi
16706
16707
16708 fi;
16709
16710 sd_user=
16711
16712 # Check whether --with-sd_user or --without-sd_user was given.
16713 if test "${with_sd_user+set}" = set; then
16714   withval="$with_sd_user"
16715
16716         if test "x$withval" != "x" ; then
16717              sd_user=$withval
16718         fi
16719
16720
16721 fi;
16722
16723 sd_group=
16724
16725 # Check whether --with-sd_group or --without-sd_group was given.
16726 if test "${with_sd_group+set}" = set; then
16727   withval="$with_sd_group"
16728
16729         if test "x$withval" != "x" ; then
16730              sd_group=$withval
16731         fi
16732
16733
16734 fi;
16735
16736 fd_user=
16737
16738 # Check whether --with-fd_user or --without-fd_user was given.
16739 if test "${with_fd_user+set}" = set; then
16740   withval="$with_fd_user"
16741
16742         if test "x$withval" != "x" ; then
16743              fd_user=$withval
16744         fi
16745
16746
16747 fi;
16748
16749 fd_group=
16750
16751 # Check whether --with-fd_group or --without-fd_group was given.
16752 if test "${with_fd_group+set}" = set; then
16753   withval="$with_fd_group"
16754
16755         if test "x$withval" != "x" ; then
16756              fd_group=$withval
16757         fi
16758
16759
16760 fi;
16761
16762
16763
16764
16765
16766
16767
16768
16769 #
16770 # allow setting default executable permissions
16771 #
16772 SBINPERM=0754
16773
16774 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16775 if test "${with_sbin_perm+set}" = set; then
16776   withval="$with_sbin_perm"
16777
16778         if test "x$withval" != "x" ; then
16779             SBINPERM=$withval
16780         fi
16781
16782
16783 fi;
16784
16785
16786
16787 # ------------------------------------------------
16788 # Bacula check for various SQL database engines
16789 # ------------------------------------------------
16790 SQL_LIB=
16791
16792 db_found=no
16793 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16794 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16795
16796 # Check whether --with-postgresql or --without-postgresql was given.
16797 if test "${with_postgresql+set}" = set; then
16798   withval="$with_postgresql"
16799
16800   if test "$withval" != "no"; then
16801       if test "$db_found" = "yes"; then
16802           echo "$as_me:$LINENO: result: error" >&5
16803 echo "${ECHO_T}error" >&6
16804           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16805 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16806    { (exit 1); exit 1; }; };
16807       fi
16808       if test "$withval" = "yes"; then
16809           PG_CONFIG=`which pg_config`
16810           if test -n "$PG_CONFIG";then
16811               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16812               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16813               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16814           elif test -f /usr/local/include/libpq-fe.h; then
16815               POSTGRESQL_INCDIR=/usr/local/include
16816               if test -d /usr/local/lib64; then
16817                  POSTGRESQL_LIBDIR=/usr/local/lib64
16818               else
16819                  POSTGRESQL_LIBDIR=/usr/local/lib
16820               fi
16821               POSTGRESQL_BINDIR=/usr/local/bin
16822           elif test -f /usr/include/libpq-fe.h; then
16823               POSTGRESQL_INCDIR=/usr/include
16824               if test -d /usr/lib64; then
16825                  POSTGRESQL_LIBDIR=/usr/lib64
16826               else
16827                  POSTGRESQL_LIBDIR=/usr/lib
16828               fi
16829               POSTGRESQL_BINDIR=/usr/bin
16830           elif test -f /usr/include/pgsql/libpq-fe.h; then
16831               POSTGRESQL_INCDIR=/usr/include/pgsql
16832               if test -d /usr/lib64/pgsql; then
16833                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16834               else
16835                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
16836               fi
16837               POSTGRESQL_BINDIR=/usr/bin
16838           elif test -f /usr/include/postgresql/libpq-fe.h; then
16839               POSTGRESQL_INCDIR=/usr/include/postgresql
16840               if test -d /usr/lib64/postgresql; then
16841                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16842               else
16843                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
16844               fi
16845               POSTGRESQL_BINDIR=/usr/bin
16846           else
16847               echo "$as_me:$LINENO: result: no" >&5
16848 echo "${ECHO_T}no" >&6
16849               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16850 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16851    { (exit 1); exit 1; }; }
16852           fi
16853       elif test -f $withval/include/libpq-fe.h; then
16854           POSTGRESQL_INCDIR=$withval/include
16855           POSTGRESQL_LIBDIR=$withval/lib
16856           POSTGRESQL_BINDIR=$withval/bin
16857       elif test -f $withval/include/postgresql/libpq-fe.h; then
16858           POSTGRESQL_INCDIR=$withval/include/postgresql
16859      if test -d $withval/lib64; then
16860          POSTGRESQL_LIBDIR=$withval/lib64
16861      else
16862          POSTGRESQL_LIBDIR=$withval/lib
16863      fi
16864           POSTGRESQL_BINDIR=$withval/bin
16865       else
16866           echo "$as_me:$LINENO: result: no" >&5
16867 echo "${ECHO_T}no" >&6
16868           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16869 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16870    { (exit 1); exit 1; }; }
16871       fi
16872       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16873       echo "$as_me:$LINENO: checking for crypt" >&5
16874 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16875 if test "${ac_cv_func_crypt+set}" = set; then
16876   echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878   cat >conftest.$ac_ext <<_ACEOF
16879 /* confdefs.h.  */
16880 _ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h.  */
16884 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16886 #define crypt innocuous_crypt
16887
16888 /* System header to define __stub macros and hopefully few prototypes,
16889     which can conflict with char crypt (); below.
16890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16891     <limits.h> exists even on freestanding compilers.  */
16892
16893 #ifdef __STDC__
16894 # include <limits.h>
16895 #else
16896 # include <assert.h>
16897 #endif
16898
16899 #undef crypt
16900
16901 /* Override any gcc2 internal prototype to avoid an error.  */
16902 #ifdef __cplusplus
16903 extern "C"
16904 {
16905 #endif
16906 /* We use char because int might match the return type of a gcc2
16907    builtin and then its argument prototype would still apply.  */
16908 char crypt ();
16909 /* The GNU C library defines this for functions which it implements
16910     to always fail with ENOSYS.  Some functions are actually named
16911     something starting with __ and the normal name is an alias.  */
16912 #if defined (__stub_crypt) || defined (__stub___crypt)
16913 choke me
16914 #else
16915 char (*f) () = crypt;
16916 #endif
16917 #ifdef __cplusplus
16918 }
16919 #endif
16920
16921 int
16922 main ()
16923 {
16924 return f != crypt;
16925   ;
16926   return 0;
16927 }
16928 _ACEOF
16929 rm -f conftest.$ac_objext conftest$ac_exeext
16930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16931   (eval $ac_link) 2>conftest.er1
16932   ac_status=$?
16933   grep -v '^ *+' conftest.er1 >conftest.err
16934   rm -f conftest.er1
16935   cat conftest.err >&5
16936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937   (exit $ac_status); } &&
16938          { ac_try='test -z "$ac_c_werror_flag"
16939                          || test ! -s conftest.err'
16940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16941   (eval $ac_try) 2>&5
16942   ac_status=$?
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); }; } &&
16945          { ac_try='test -s conftest$ac_exeext'
16946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947   (eval $ac_try) 2>&5
16948   ac_status=$?
16949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); }; }; then
16951   ac_cv_func_crypt=yes
16952 else
16953   echo "$as_me: failed program was:" >&5
16954 sed 's/^/| /' conftest.$ac_ext >&5
16955
16956 ac_cv_func_crypt=no
16957 fi
16958 rm -f conftest.err conftest.$ac_objext \
16959       conftest$ac_exeext conftest.$ac_ext
16960 fi
16961 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16962 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16963 if test $ac_cv_func_crypt = yes; then
16964   :
16965 else
16966   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16967 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16968 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16969   echo $ECHO_N "(cached) $ECHO_C" >&6
16970 else
16971   ac_check_lib_save_LIBS=$LIBS
16972 LIBS="-lcrypt  $LIBS"
16973 cat >conftest.$ac_ext <<_ACEOF
16974 /* confdefs.h.  */
16975 _ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h.  */
16979
16980 /* Override any gcc2 internal prototype to avoid an error.  */
16981 #ifdef __cplusplus
16982 extern "C"
16983 #endif
16984 /* We use char because int might match the return type of a gcc2
16985    builtin and then its argument prototype would still apply.  */
16986 char crypt ();
16987 int
16988 main ()
16989 {
16990 crypt ();
16991   ;
16992   return 0;
16993 }
16994 _ACEOF
16995 rm -f conftest.$ac_objext conftest$ac_exeext
16996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16997   (eval $ac_link) 2>conftest.er1
16998   ac_status=$?
16999   grep -v '^ *+' conftest.er1 >conftest.err
17000   rm -f conftest.er1
17001   cat conftest.err >&5
17002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003   (exit $ac_status); } &&
17004          { ac_try='test -z "$ac_c_werror_flag"
17005                          || test ! -s conftest.err'
17006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007   (eval $ac_try) 2>&5
17008   ac_status=$?
17009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010   (exit $ac_status); }; } &&
17011          { ac_try='test -s conftest$ac_exeext'
17012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013   (eval $ac_try) 2>&5
17014   ac_status=$?
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); }; }; then
17017   ac_cv_lib_crypt_crypt=yes
17018 else
17019   echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17021
17022 ac_cv_lib_crypt_crypt=no
17023 fi
17024 rm -f conftest.err conftest.$ac_objext \
17025       conftest$ac_exeext conftest.$ac_ext
17026 LIBS=$ac_check_lib_save_LIBS
17027 fi
17028 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17029 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
17030 if test $ac_cv_lib_crypt_crypt = yes; then
17031   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17032 fi
17033
17034 fi
17035
17036       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17037       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17038       SQL_BINDIR=$POSTGRESQL_BINDIR
17039       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17040
17041       cat >>confdefs.h <<\_ACEOF
17042 #define HAVE_POSTGRESQL 1
17043 _ACEOF
17044
17045       echo "$as_me:$LINENO: result: yes" >&5
17046 echo "${ECHO_T}yes" >&6
17047       db_found=yes
17048       support_postgresql=yes
17049       db_type=PostgreSQL
17050       DB_TYPE=postgresql
17051   else
17052       echo "$as_me:$LINENO: result: no" >&5
17053 echo "${ECHO_T}no" >&6
17054   fi
17055
17056 else
17057
17058   echo "$as_me:$LINENO: result: no" >&5
17059 echo "${ECHO_T}no" >&6
17060
17061 fi;
17062
17063
17064
17065
17066
17067
17068
17069 db_found=no
17070 echo "$as_me:$LINENO: checking for MySQL support" >&5
17071 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
17072
17073 # Check whether --with-mysql or --without-mysql was given.
17074 if test "${with_mysql+set}" = set; then
17075   withval="$with_mysql"
17076
17077   if test "$withval" != "no"; then
17078         if test "$withval" = "yes"; then
17079            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17080                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17081                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17082                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17083                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17084                    else
17085                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17086                    fi
17087                    MYSQL_BINDIR=/usr/local/mysql/bin
17088            elif test -f /usr/include/mysql/mysql.h; then
17089                    MYSQL_INCDIR=/usr/include/mysql
17090                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17091                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17092                            MYSQL_LIBDIR=/usr/lib64/mysql
17093                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17094                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17095                            MYSQL_LIBDIR=/usr/lib/mysql
17096                    else
17097                            MYSQL_LIBDIR=/usr/lib
17098                    fi
17099                    MYSQL_BINDIR=/usr/bin
17100            elif test -f /usr/include/mysql.h; then
17101                    MYSQL_INCDIR=/usr/include
17102                    if test -f /usr/lib64/libmysqlclient_r.a \
17103                         -o -f /usr/lib64/libmysqlclient_r.so; then
17104                            MYSQL_LIBDIR=/usr/lib64
17105                    else
17106                            MYSQL_LIBDIR=/usr/lib
17107                    fi
17108                    MYSQL_BINDIR=/usr/bin
17109            elif test -f /usr/local/include/mysql/mysql.h; then
17110                    MYSQL_INCDIR=/usr/local/include/mysql
17111                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17112                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17113                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17114                    else
17115                            MYSQL_LIBDIR=/usr/local/lib/mysql
17116                    fi
17117                    MYSQL_BINDIR=/usr/local/bin
17118            elif test -f /usr/local/include/mysql.h; then
17119                    MYSQL_INCDIR=/usr/local/include
17120                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17121                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17122                            MYSQL_LIBDIR=/usr/local/lib64
17123                    else
17124                            MYSQL_LIBDIR=/usr/local/lib
17125                    fi
17126                    MYSQL_BINDIR=/usr/local/bin
17127            else
17128               echo "$as_me:$LINENO: result: no" >&5
17129 echo "${ECHO_T}no" >&6
17130               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17131 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17132    { (exit 1); exit 1; }; }
17133            fi
17134         else
17135            if test -f $withval/include/mysql/mysql.h; then
17136               MYSQL_INCDIR=$withval/include/mysql
17137               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17138                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17139                  MYSQL_LIBDIR=$withval/lib64/mysql
17140               else
17141                  MYSQL_LIBDIR=$withval/lib/mysql
17142                  # Solaris ...
17143                  if test -f $withval/lib/libmysqlclient_r.so; then
17144                     MYSQL_LIBDIR=$withval/lib
17145                  fi
17146               fi
17147               MYSQL_BINDIR=$withval/bin
17148            elif test -f $withval/include/mysql.h; then
17149               MYSQL_INCDIR=$withval/include
17150               if test -f $withval/lib64/libmysqlclient_r.a \
17151                    -o -f $withval/lib64/libmysqlclient_r.so; then
17152                  MYSQL_LIBDIR=$withval/lib64
17153               else
17154                  MYSQL_LIBDIR=$withval/lib
17155               fi
17156               MYSQL_BINDIR=$withval/bin
17157            else
17158               echo "$as_me:$LINENO: result: no" >&5
17159 echo "${ECHO_T}no" >&6
17160               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17161 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17162    { (exit 1); exit 1; }; }
17163            fi
17164         fi
17165     SQL_INCLUDE=-I$MYSQL_INCDIR
17166     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17167          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17168        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17169        cat >>confdefs.h <<\_ACEOF
17170 #define HAVE_THREAD_SAFE_MYSQL 1
17171 _ACEOF
17172
17173     fi
17174     SQL_BINDIR=$MYSQL_BINDIR
17175     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17176
17177     cat >>confdefs.h <<\_ACEOF
17178 #define HAVE_MYSQL 1
17179 _ACEOF
17180
17181     echo "$as_me:$LINENO: result: yes" >&5
17182 echo "${ECHO_T}yes" >&6
17183     db_found=yes
17184     support_mysql=yes
17185     db_type=MySQL
17186     DB_TYPE=mysql
17187
17188   else
17189         echo "$as_me:$LINENO: result: no" >&5
17190 echo "${ECHO_T}no" >&6
17191   fi
17192
17193
17194 fi;
17195
17196
17197 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
17198 if test "${with_embedded_mysql+set}" = set; then
17199   withval="$with_embedded_mysql"
17200
17201   if test "$withval" != "no"; then
17202         if test "$withval" = "yes"; then
17203                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17204                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17205                         if test -d /usr/local/mysql/lib64/mysql; then
17206                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17207                         else
17208                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17209                         fi
17210                         MYSQL_BINDIR=/usr/local/mysql/bin
17211                 elif test -f /usr/include/mysql/mysql.h; then
17212                         MYSQL_INCDIR=/usr/include/mysql
17213                         if test -d /usr/lib64/mysql; then
17214                                 MYSQL_LIBDIR=/usr/lib64/mysql
17215                         else
17216                                 MYSQL_LIBDIR=/usr/lib/mysql
17217                         fi
17218                         MYSQL_BINDIR=/usr/bin
17219                 elif test -f /usr/include/mysql.h; then
17220                         MYSQL_INCDIR=/usr/include
17221                         if test -d /usr/lib64; then
17222                                 MYSQL_LIBDIR=/usr/lib64
17223                         else
17224                                 MYSQL_LIBDIR=/usr/lib
17225                         fi
17226                         MYSQL_BINDIR=/usr/bin
17227                 elif test -f /usr/local/include/mysql/mysql.h; then
17228                         MYSQL_INCDIR=/usr/local/include/mysql
17229                         if test -d /usr/local/lib64/mysql; then
17230                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17231                         else
17232                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17233                         fi
17234                         MYSQL_BINDIR=/usr/local/bin
17235                 elif test -f /usr/local/include/mysql.h; then
17236                         MYSQL_INCDIR=/usr/local/include
17237                         if test -d /usr/local/lib64; then
17238                                 MYSQL_LIBDIR=/usr/local/lib64
17239                         else
17240                                 MYSQL_LIBDIR=/usr/local/lib
17241                         fi
17242                         MYSQL_BINDIR=/usr/local/bin
17243                 else
17244                    echo "$as_me:$LINENO: result: no" >&5
17245 echo "${ECHO_T}no" >&6
17246                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17247 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17248    { (exit 1); exit 1; }; }
17249                 fi
17250         else
17251                 if test -f $withval/include/mysql/mysql.h; then
17252                         MYSQL_INCDIR=$withval/include/mysql
17253                         if test -d $withval/lib64/mysql; then
17254                                 MYSQL_LIBDIR=$withval/lib64/mysql
17255                         else
17256                                 MYSQL_LIBDIR=$withval/lib/mysql
17257                         fi
17258                         MYSQL_BINDIR=$withval/bin
17259                 elif test -f $withval/include/mysql.h; then
17260                         MYSQL_INCDIR=$withval/include
17261                         if test -d $withval/lib64; then
17262                                 MYSQL_LIBDIR=$withval/lib64
17263                         else
17264                                 MYSQL_LIBDIR=$withval/lib
17265                         fi
17266                         MYSQL_BINDIR=$withval/bin
17267                 else
17268                    echo "$as_me:$LINENO: result: no" >&5
17269 echo "${ECHO_T}no" >&6
17270                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17271 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17272    { (exit 1); exit 1; }; }
17273                 fi
17274         fi
17275     SQL_INCLUDE=-I$MYSQL_INCDIR
17276     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17277     SQL_BINDIR=$MYSQL_BINDIR
17278     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17279
17280     cat >>confdefs.h <<\_ACEOF
17281 #define HAVE_MYSQL 1
17282 _ACEOF
17283
17284     cat >>confdefs.h <<\_ACEOF
17285 #define HAVE_EMBEDDED_MYSQL 1
17286 _ACEOF
17287
17288     echo "$as_me:$LINENO: result: yes" >&5
17289 echo "${ECHO_T}yes" >&6
17290     db_found=yes
17291     support_mysql=yes
17292     db_type=MySQL
17293     DB_TYPE=mysql
17294
17295   else
17296         echo "$as_me:$LINENO: result: no" >&5
17297 echo "${ECHO_T}no" >&6
17298   fi
17299
17300
17301 fi;
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311 db_found=no
17312 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17313 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17314
17315 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17316 if test "${with_sqlite3+set}" = set; then
17317   withval="$with_sqlite3"
17318
17319   if test "$withval" != "no"; then
17320      if test "$withval" = "yes"; then
17321         if test -f /usr/local/include/sqlite3.h; then
17322            SQLITE_INCDIR=/usr/local/include
17323            if test -d /usr/local/lib64; then
17324               SQLITE_LIBDIR=/usr/local/lib64
17325            else
17326               SQLITE_LIBDIR=/usr/local/lib
17327            fi
17328            SQLITE_BINDIR=/usr/local/bin
17329         elif test -f /usr/include/sqlite3.h; then
17330            SQLITE_INCDIR=/usr/include
17331            if test -d /usr/lib64; then
17332               SQLITE_LIBDIR=/usr/lib64
17333            else
17334               SQLITE_LIBDIR=/usr/lib
17335            fi
17336            SQLITE_BINDIR=/usr/bin
17337         elif test -f $prefix/include/sqlite3.h; then
17338            SQLITE_INCDIR=$prefix/include
17339            if test -d $prefix/lib64; then
17340               SQLITE_LIBDIR=$prefix/lib64
17341            else
17342               SQLITE_LIBDIR=$prefix/lib
17343            fi
17344            SQLITE_BINDIR=$prefix/bin
17345         else
17346            echo "$as_me:$LINENO: result: no" >&5
17347 echo "${ECHO_T}no" >&6
17348            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17349 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17350    { (exit 1); exit 1; }; }
17351         fi
17352      else
17353         if test -f $withval/sqlite3.h; then
17354            SQLITE_INCDIR=$withval
17355            SQLITE_LIBDIR=$withval
17356            SQLITE_BINDIR=$withval
17357         elif test -f $withval/include/sqlite3.h; then
17358            SQLITE_INCDIR=$withval/include
17359            if test -d $withval/lib64; then
17360               SQLITE_LIBDIR=$withval/lib64
17361            else
17362               SQLITE_LIBDIR=$withval/lib
17363            fi
17364            SQLITE_BINDIR=$withval/bin
17365         else
17366            echo "$as_me:$LINENO: result: no" >&5
17367 echo "${ECHO_T}no" >&6
17368            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17369 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17370    { (exit 1); exit 1; }; }
17371         fi
17372      fi
17373      SQL_INCLUDE=-I$SQLITE_INCDIR
17374      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17375      SQL_BINDIR=$SQLITE_BINDIR
17376      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17377
17378      cat >>confdefs.h <<\_ACEOF
17379 #define HAVE_SQLITE3 1
17380 _ACEOF
17381
17382      echo "$as_me:$LINENO: result: yes" >&5
17383 echo "${ECHO_T}yes" >&6
17384      db_found=yes
17385      support_sqlite3=yes
17386      db_type=SQLite3
17387      DB_TYPE=sqlite3
17388
17389   else
17390      echo "$as_me:$LINENO: result: no" >&5
17391 echo "${ECHO_T}no" >&6
17392   fi
17393
17394 else
17395
17396   echo "$as_me:$LINENO: result: no" >&5
17397 echo "${ECHO_T}no" >&6
17398
17399 fi;
17400
17401
17402
17403
17404
17405
17406
17407 db_found=no
17408 echo "$as_me:$LINENO: checking for SQLite support" >&5
17409 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17410
17411 # Check whether --with-sqlite or --without-sqlite was given.
17412 if test "${with_sqlite+set}" = set; then
17413   withval="$with_sqlite"
17414
17415   if test "$withval" != "no"; then
17416      if test "$withval" = "yes"; then
17417         if test -f /usr/local/include/sqlite.h; then
17418            SQLITE_INCDIR=/usr/local/include
17419            if test -d /usr/local/lib64; then
17420               SQLITE_LIBDIR=/usr/local/lib64
17421            else
17422               SQLITE_LIBDIR=/usr/local/lib
17423            fi
17424            SQLITE_BINDIR=/usr/local/bin
17425         elif test -f /usr/include/sqlite.h; then
17426            SQLITE_INCDIR=/usr/include
17427            if test -d /usr/lib64; then
17428               SQLITE_LIBDIR=/usr/lib64
17429            else
17430               SQLITE_LIBDIR=/usr/lib
17431            fi
17432            SQLITE_BINDIR=/usr/bin
17433         elif test -f $prefix/include/sqlite.h; then
17434            SQLITE_INCDIR=$prefix/include
17435            if test -d $prefix/lib64; then
17436               SQLITE_LIBDIR=$prefix/lib64
17437            else
17438               SQLITE_LIBDIR=$prefix/lib
17439            fi
17440            SQLITE_BINDIR=$prefix/bin
17441         else
17442            echo "$as_me:$LINENO: result: no" >&5
17443 echo "${ECHO_T}no" >&6
17444            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17445 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17446    { (exit 1); exit 1; }; }
17447         fi
17448      else
17449         if test -f $withval/sqlite.h; then
17450            SQLITE_INCDIR=$withval
17451            SQLITE_LIBDIR=$withval
17452            SQLITE_BINDIR=$withval
17453         elif test -f $withval/include/sqlite.h; then
17454            SQLITE_INCDIR=$withval/include
17455            if test -d $withval/lib64; then
17456               SQLITE_LIBDIR=$withval/lib64
17457            else
17458               SQLITE_LIBDIR=$withval/lib
17459            fi
17460            SQLITE_BINDIR=$withval/bin
17461         else
17462            echo "$as_me:$LINENO: result: no" >&5
17463 echo "${ECHO_T}no" >&6
17464            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17465 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17466    { (exit 1); exit 1; }; }
17467         fi
17468      fi
17469      SQL_INCLUDE=-I$SQLITE_INCDIR
17470      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17471      SQL_BINDIR=$SQLITE_BINDIR
17472      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17473
17474      cat >>confdefs.h <<\_ACEOF
17475 #define HAVE_SQLITE 1
17476 _ACEOF
17477
17478      echo "$as_me:$LINENO: result: yes" >&5
17479 echo "${ECHO_T}yes" >&6
17480      db_found=yes
17481      support_sqlite=yes
17482      db_type=SQLite
17483      DB_TYPE=sqlite
17484
17485   else
17486      echo "$as_me:$LINENO: result: no" >&5
17487 echo "${ECHO_T}no" >&6
17488   fi
17489
17490 else
17491
17492   echo "$as_me:$LINENO: result: no" >&5
17493 echo "${ECHO_T}no" >&6
17494
17495 fi;
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505 # -------------------------------------------
17506 # enable batch attribute DB insert (default on)
17507 # -------------------------------------------
17508 support_batch_insert=no
17509 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17510 pkg=$?
17511 if test $pkg = 0; then
17512    support_batch_insert=yes
17513    # Check whether --enable-batch-insert or --disable-batch-insert was given.
17514 if test "${enable_batch_insert+set}" = set; then
17515   enableval="$enable_batch_insert"
17516   if test x$enableval = xno; then
17517        support_batch_insert=no
17518       else
17519        support_batch_insert=yes
17520      fi
17521 fi;
17522 fi
17523
17524 # Check if postgresql support batch mode
17525 if test x$DB_TYPE = xpostgresql; then
17526    A=`nm $SQL_LIB | grep PQputCopyData`
17527    pkg=$?
17528    if test $pkg != 0; then
17529       support_batch_insert=no
17530    fi
17531 fi
17532
17533 if test $support_batch_insert = yes ; then
17534
17535 cat >>confdefs.h <<\_ACEOF
17536 #define HAVE_BATCH_FILE_INSERT 1
17537 _ACEOF
17538
17539 fi
17540
17541
17542 cat >>confdefs.h <<\_ACEOF
17543 #define PROTOTYPES 1
17544 _ACEOF
17545
17546
17547 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17548     if test -z "$CCOPTS"; then
17549         CCOPTS='-g -O2 -Wall'
17550     fi
17551     CFLAGS="$CCOPTS"
17552 fi
17553
17554
17555
17556
17557 largefile_support="no"
17558
17559    # Check whether --enable-largefile or --disable-largefile was given.
17560 if test "${enable_largefile+set}" = set; then
17561   enableval="$enable_largefile"
17562
17563 fi;
17564    if test "$enable_largefile" != no; then
17565      if test -n "$ac_tool_prefix"; then
17566   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17567 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17568 echo "$as_me:$LINENO: checking for $ac_word" >&5
17569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17570 if test "${ac_cv_prog_GETCONF+set}" = set; then
17571   echo $ECHO_N "(cached) $ECHO_C" >&6
17572 else
17573   if test -n "$GETCONF"; then
17574   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17575 else
17576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17577 for as_dir in $PATH
17578 do
17579   IFS=$as_save_IFS
17580   test -z "$as_dir" && as_dir=.
17581   for ac_exec_ext in '' $ac_executable_extensions; do
17582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17583     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17585     break 2
17586   fi
17587 done
17588 done
17589
17590 fi
17591 fi
17592 GETCONF=$ac_cv_prog_GETCONF
17593 if test -n "$GETCONF"; then
17594   echo "$as_me:$LINENO: result: $GETCONF" >&5
17595 echo "${ECHO_T}$GETCONF" >&6
17596 else
17597   echo "$as_me:$LINENO: result: no" >&5
17598 echo "${ECHO_T}no" >&6
17599 fi
17600
17601 fi
17602 if test -z "$ac_cv_prog_GETCONF"; then
17603   ac_ct_GETCONF=$GETCONF
17604   # Extract the first word of "getconf", so it can be a program name with args.
17605 set dummy getconf; ac_word=$2
17606 echo "$as_me:$LINENO: checking for $ac_word" >&5
17607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17608 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17609   echo $ECHO_N "(cached) $ECHO_C" >&6
17610 else
17611   if test -n "$ac_ct_GETCONF"; then
17612   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17613 else
17614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17615 for as_dir in $PATH
17616 do
17617   IFS=$as_save_IFS
17618   test -z "$as_dir" && as_dir=.
17619   for ac_exec_ext in '' $ac_executable_extensions; do
17620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17621     ac_cv_prog_ac_ct_GETCONF="getconf"
17622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17623     break 2
17624   fi
17625 done
17626 done
17627
17628 fi
17629 fi
17630 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17631 if test -n "$ac_ct_GETCONF"; then
17632   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17633 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17634 else
17635   echo "$as_me:$LINENO: result: no" >&5
17636 echo "${ECHO_T}no" >&6
17637 fi
17638
17639   GETCONF=$ac_ct_GETCONF
17640 else
17641   GETCONF="$ac_cv_prog_GETCONF"
17642 fi
17643
17644      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17645 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17646 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17647   echo $ECHO_N "(cached) $ECHO_C" >&6
17648 else
17649   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17650         ac_cv_sys_largefile_CFLAGS=no
17651         case "$host_os" in
17652            # IRIX 6.2 and later require cc -n32.
17653            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17654              if test "$GCC" != yes; then
17655                ac_cv_sys_largefile_CFLAGS=-n32
17656              fi
17657              ac_save_CC="$CC"
17658              CC="$CC $ac_cv_sys_largefile_CFLAGS"
17659              cat >conftest.$ac_ext <<_ACEOF
17660 /* confdefs.h.  */
17661 _ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h.  */
17665
17666 int
17667 main ()
17668 {
17669
17670   ;
17671   return 0;
17672 }
17673 _ACEOF
17674 rm -f conftest.$ac_objext conftest$ac_exeext
17675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17676   (eval $ac_link) 2>conftest.er1
17677   ac_status=$?
17678   grep -v '^ *+' conftest.er1 >conftest.err
17679   rm -f conftest.er1
17680   cat conftest.err >&5
17681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682   (exit $ac_status); } &&
17683          { ac_try='test -z "$ac_c_werror_flag"
17684                          || test ! -s conftest.err'
17685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686   (eval $ac_try) 2>&5
17687   ac_status=$?
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); }; } &&
17690          { ac_try='test -s conftest$ac_exeext'
17691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692   (eval $ac_try) 2>&5
17693   ac_status=$?
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); }; }; then
17696   :
17697 else
17698   echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17700
17701 ac_cv_sys_largefile_CFLAGS=no
17702 fi
17703 rm -f conftest.err conftest.$ac_objext \
17704       conftest$ac_exeext conftest.$ac_ext
17705              CC="$ac_save_CC"
17706            esac
17707       }
17708 fi
17709 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17710 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17711      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17712 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17713 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17714   echo $ECHO_N "(cached) $ECHO_C" >&6
17715 else
17716   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17717         ac_cv_sys_largefile_LDFLAGS=no
17718
17719       }
17720 fi
17721 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17722 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17723      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17724 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17725 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17726   echo $ECHO_N "(cached) $ECHO_C" >&6
17727 else
17728   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17729         ac_cv_sys_largefile_LIBS=no
17730
17731       }
17732 fi
17733 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17734 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17735
17736      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17737        case "$ac_flag" in
17738        no) ;;
17739        -D_FILE_OFFSET_BITS=*) ;;
17740        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17741        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17742        -D?* | -I?*)
17743          case "$ac_flag" in
17744    no) ;;
17745    ?*)
17746      case "$CPPFLAGS" in
17747      '') CPPFLAGS="$ac_flag" ;;
17748      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17749      esac ;;
17750    esac ;;
17751        *)
17752          case "$ac_flag" in
17753    no) ;;
17754    ?*)
17755      case "$CFLAGS" in
17756      '') CFLAGS="$ac_flag" ;;
17757      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17758      esac ;;
17759    esac ;;
17760        esac
17761      done
17762      case "$ac_cv_sys_largefile_LDFLAGS" in
17763    no) ;;
17764    ?*)
17765      case "$LDFLAGS" in
17766      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17767      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17768      esac ;;
17769    esac
17770      case "$ac_cv_sys_largefile_LIBS" in
17771    no) ;;
17772    ?*)
17773      case "$LIBS" in
17774      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17775      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17776      esac ;;
17777    esac
17778      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17779 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17780 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17781   echo $ECHO_N "(cached) $ECHO_C" >&6
17782 else
17783   ac_cv_sys_file_offset_bits=no
17784       ac_cv_sys_file_offset_bits=64
17785       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17786         case "$ac_flag" in
17787         -D_FILE_OFFSET_BITS)
17788           ac_cv_sys_file_offset_bits=1 ;;
17789         -D_FILE_OFFSET_BITS=*)
17790           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17791         esac
17792       done
17793
17794 fi
17795 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17796 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17797    if test "$ac_cv_sys_file_offset_bits" != no; then
17798
17799 cat >>confdefs.h <<_ACEOF
17800 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17801 _ACEOF
17802
17803    fi
17804      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17805 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17806 if test "${ac_cv_sys_largefile_source+set}" = set; then
17807   echo $ECHO_N "(cached) $ECHO_C" >&6
17808 else
17809   ac_cv_sys_largefile_source=no
17810       ac_cv_sys_largefile_source=1
17811       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17812         case "$ac_flag" in
17813         -D_LARGEFILE_SOURCE)
17814           ac_cv_sys_largefile_source=1 ;;
17815         -D_LARGEFILE_SOURCE=*)
17816           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17817         esac
17818       done
17819
17820 fi
17821 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17822 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17823    if test "$ac_cv_sys_largefile_source" != no; then
17824
17825 cat >>confdefs.h <<_ACEOF
17826 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17827 _ACEOF
17828
17829    fi
17830      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17831 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17832 if test "${ac_cv_sys_large_files+set}" = set; then
17833   echo $ECHO_N "(cached) $ECHO_C" >&6
17834 else
17835   ac_cv_sys_large_files=no
17836       ac_cv_sys_large_files=1
17837       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17838         case "$ac_flag" in
17839         -D_LARGE_FILES)
17840           ac_cv_sys_large_files=1 ;;
17841         -D_LARGE_FILES=*)
17842           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17843         esac
17844       done
17845
17846 fi
17847 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17848 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17849    if test "$ac_cv_sys_large_files" != no; then
17850
17851 cat >>confdefs.h <<_ACEOF
17852 #define _LARGE_FILES $ac_cv_sys_large_files
17853 _ACEOF
17854
17855    fi
17856    fi
17857
17858
17859
17860 echo "$as_me:$LINENO: checking for X" >&5
17861 echo $ECHO_N "checking for X... $ECHO_C" >&6
17862
17863
17864 # Check whether --with-x or --without-x was given.
17865 if test "${with_x+set}" = set; then
17866   withval="$with_x"
17867
17868 fi;
17869 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17870 if test "x$with_x" = xno; then
17871   # The user explicitly disabled X.
17872   have_x=disabled
17873 else
17874   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17875     # Both variables are already set.
17876     have_x=yes
17877   else
17878     if test "${ac_cv_have_x+set}" = set; then
17879   echo $ECHO_N "(cached) $ECHO_C" >&6
17880 else
17881   # One or both of the vars are not set, and there is no cached value.
17882 ac_x_includes=no ac_x_libraries=no
17883 rm -fr conftest.dir
17884 if mkdir conftest.dir; then
17885   cd conftest.dir
17886   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17887   cat >Imakefile <<'_ACEOF'
17888 acfindx:
17889         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17890 _ACEOF
17891   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17892     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17893     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17894     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17895     for ac_extension in a so sl; do
17896       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17897          test -f $ac_im_libdir/libX11.$ac_extension; then
17898         ac_im_usrlibdir=$ac_im_libdir; break
17899       fi
17900     done
17901     # Screen out bogus values from the imake configuration.  They are
17902     # bogus both because they are the default anyway, and because
17903     # using them would break gcc on systems where it needs fixed includes.
17904     case $ac_im_incroot in
17905         /usr/include) ;;
17906         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17907     esac
17908     case $ac_im_usrlibdir in
17909         /usr/lib | /lib) ;;
17910         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17911     esac
17912   fi
17913   cd ..
17914   rm -fr conftest.dir
17915 fi
17916
17917 # Standard set of common directories for X headers.
17918 # Check X11 before X11Rn because it is often a symlink to the current release.
17919 ac_x_header_dirs='
17920 /usr/X11/include
17921 /usr/X11R6/include
17922 /usr/X11R5/include
17923 /usr/X11R4/include
17924
17925 /usr/include/X11
17926 /usr/include/X11R6
17927 /usr/include/X11R5
17928 /usr/include/X11R4
17929
17930 /usr/local/X11/include
17931 /usr/local/X11R6/include
17932 /usr/local/X11R5/include
17933 /usr/local/X11R4/include
17934
17935 /usr/local/include/X11
17936 /usr/local/include/X11R6
17937 /usr/local/include/X11R5
17938 /usr/local/include/X11R4
17939
17940 /usr/X386/include
17941 /usr/x386/include
17942 /usr/XFree86/include/X11
17943
17944 /usr/include
17945 /usr/local/include
17946 /usr/unsupported/include
17947 /usr/athena/include
17948 /usr/local/x11r5/include
17949 /usr/lpp/Xamples/include
17950
17951 /usr/openwin/include
17952 /usr/openwin/share/include'
17953
17954 if test "$ac_x_includes" = no; then
17955   # Guess where to find include files, by looking for Xlib.h.
17956   # First, try using that file with no special directory specified.
17957   cat >conftest.$ac_ext <<_ACEOF
17958 /* confdefs.h.  */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h.  */
17963 #include <X11/Xlib.h>
17964 _ACEOF
17965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17967   ac_status=$?
17968   grep -v '^ *+' conftest.er1 >conftest.err
17969   rm -f conftest.er1
17970   cat conftest.err >&5
17971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972   (exit $ac_status); } >/dev/null; then
17973   if test -s conftest.err; then
17974     ac_cpp_err=$ac_c_preproc_warn_flag
17975     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17976   else
17977     ac_cpp_err=
17978   fi
17979 else
17980   ac_cpp_err=yes
17981 fi
17982 if test -z "$ac_cpp_err"; then
17983   # We can compile using X headers with no special include directory.
17984 ac_x_includes=
17985 else
17986   echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17988
17989   for ac_dir in $ac_x_header_dirs; do
17990   if test -r "$ac_dir/X11/Xlib.h"; then
17991     ac_x_includes=$ac_dir
17992     break
17993   fi
17994 done
17995 fi
17996 rm -f conftest.err conftest.$ac_ext
17997 fi # $ac_x_includes = no
17998
17999 if test "$ac_x_libraries" = no; then
18000   # Check for the libraries.
18001   # See if we find them without any special options.
18002   # Don't add to $LIBS permanently.
18003   ac_save_LIBS=$LIBS
18004   LIBS="-lX11 $LIBS"
18005   cat >conftest.$ac_ext <<_ACEOF
18006 /* confdefs.h.  */
18007 _ACEOF
18008 cat confdefs.h >>conftest.$ac_ext
18009 cat >>conftest.$ac_ext <<_ACEOF
18010 /* end confdefs.h.  */
18011 #include <X11/Xlib.h>
18012 int
18013 main ()
18014 {
18015 XrmInitialize ()
18016   ;
18017   return 0;
18018 }
18019 _ACEOF
18020 rm -f conftest.$ac_objext conftest$ac_exeext
18021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18022   (eval $ac_link) 2>conftest.er1
18023   ac_status=$?
18024   grep -v '^ *+' conftest.er1 >conftest.err
18025   rm -f conftest.er1
18026   cat conftest.err >&5
18027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028   (exit $ac_status); } &&
18029          { ac_try='test -z "$ac_c_werror_flag"
18030                          || test ! -s conftest.err'
18031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032   (eval $ac_try) 2>&5
18033   ac_status=$?
18034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); }; } &&
18036          { ac_try='test -s conftest$ac_exeext'
18037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18038   (eval $ac_try) 2>&5
18039   ac_status=$?
18040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041   (exit $ac_status); }; }; then
18042   LIBS=$ac_save_LIBS
18043 # We can link X programs with no special library path.
18044 ac_x_libraries=
18045 else
18046   echo "$as_me: failed program was:" >&5
18047 sed 's/^/| /' conftest.$ac_ext >&5
18048
18049 LIBS=$ac_save_LIBS
18050 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18051 do
18052   # Don't even attempt the hair of trying to link an X program!
18053   for ac_extension in a so sl; do
18054     if test -r $ac_dir/libXt.$ac_extension; then
18055       ac_x_libraries=$ac_dir
18056       break 2
18057     fi
18058   done
18059 done
18060 fi
18061 rm -f conftest.err conftest.$ac_objext \
18062       conftest$ac_exeext conftest.$ac_ext
18063 fi # $ac_x_libraries = no
18064
18065 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18066   # Didn't find X anywhere.  Cache the known absence of X.
18067   ac_cv_have_x="have_x=no"
18068 else
18069   # Record where we found X for the cache.
18070   ac_cv_have_x="have_x=yes \
18071                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18072 fi
18073 fi
18074
18075   fi
18076   eval "$ac_cv_have_x"
18077 fi # $with_x != no
18078
18079 if test "$have_x" != yes; then
18080   echo "$as_me:$LINENO: result: $have_x" >&5
18081 echo "${ECHO_T}$have_x" >&6
18082   no_x=yes
18083 else
18084   # If each of the values was on the command line, it overrides each guess.
18085   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18086   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18087   # Update the cache value to reflect the command line values.
18088   ac_cv_have_x="have_x=yes \
18089                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18090   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18091 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
18092 fi
18093
18094 if test "$no_x" = yes; then
18095   # Not all programs may use this symbol, but it does not hurt to define it.
18096
18097 cat >>confdefs.h <<\_ACEOF
18098 #define X_DISPLAY_MISSING 1
18099 _ACEOF
18100
18101   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18102 else
18103   if test -n "$x_includes"; then
18104     X_CFLAGS="$X_CFLAGS -I$x_includes"
18105   fi
18106
18107   # It would also be nice to do this for all -L options, not just this one.
18108   if test -n "$x_libraries"; then
18109     X_LIBS="$X_LIBS -L$x_libraries"
18110     # For Solaris; some versions of Sun CC require a space after -R and
18111     # others require no space.  Words are not sufficient . . . .
18112     case `(uname -sr) 2>/dev/null` in
18113     "SunOS 5"*)
18114       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18115 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
18116       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18117       cat >conftest.$ac_ext <<_ACEOF
18118 /* confdefs.h.  */
18119 _ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h.  */
18123
18124 int
18125 main ()
18126 {
18127
18128   ;
18129   return 0;
18130 }
18131 _ACEOF
18132 rm -f conftest.$ac_objext conftest$ac_exeext
18133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18134   (eval $ac_link) 2>conftest.er1
18135   ac_status=$?
18136   grep -v '^ *+' conftest.er1 >conftest.err
18137   rm -f conftest.er1
18138   cat conftest.err >&5
18139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140   (exit $ac_status); } &&
18141          { ac_try='test -z "$ac_c_werror_flag"
18142                          || test ! -s conftest.err'
18143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144   (eval $ac_try) 2>&5
18145   ac_status=$?
18146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147   (exit $ac_status); }; } &&
18148          { ac_try='test -s conftest$ac_exeext'
18149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150   (eval $ac_try) 2>&5
18151   ac_status=$?
18152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153   (exit $ac_status); }; }; then
18154   ac_R_nospace=yes
18155 else
18156   echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18158
18159 ac_R_nospace=no
18160 fi
18161 rm -f conftest.err conftest.$ac_objext \
18162       conftest$ac_exeext conftest.$ac_ext
18163       if test $ac_R_nospace = yes; then
18164         echo "$as_me:$LINENO: result: no" >&5
18165 echo "${ECHO_T}no" >&6
18166         X_LIBS="$X_LIBS -R$x_libraries"
18167       else
18168         LIBS="$ac_xsave_LIBS -R $x_libraries"
18169         cat >conftest.$ac_ext <<_ACEOF
18170 /* confdefs.h.  */
18171 _ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h.  */
18175
18176 int
18177 main ()
18178 {
18179
18180   ;
18181   return 0;
18182 }
18183 _ACEOF
18184 rm -f conftest.$ac_objext conftest$ac_exeext
18185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18186   (eval $ac_link) 2>conftest.er1
18187   ac_status=$?
18188   grep -v '^ *+' conftest.er1 >conftest.err
18189   rm -f conftest.er1
18190   cat conftest.err >&5
18191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); } &&
18193          { ac_try='test -z "$ac_c_werror_flag"
18194                          || test ! -s conftest.err'
18195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18196   (eval $ac_try) 2>&5
18197   ac_status=$?
18198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199   (exit $ac_status); }; } &&
18200          { ac_try='test -s conftest$ac_exeext'
18201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202   (eval $ac_try) 2>&5
18203   ac_status=$?
18204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205   (exit $ac_status); }; }; then
18206   ac_R_space=yes
18207 else
18208   echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18210
18211 ac_R_space=no
18212 fi
18213 rm -f conftest.err conftest.$ac_objext \
18214       conftest$ac_exeext conftest.$ac_ext
18215         if test $ac_R_space = yes; then
18216           echo "$as_me:$LINENO: result: yes" >&5
18217 echo "${ECHO_T}yes" >&6
18218           X_LIBS="$X_LIBS -R $x_libraries"
18219         else
18220           echo "$as_me:$LINENO: result: neither works" >&5
18221 echo "${ECHO_T}neither works" >&6
18222         fi
18223       fi
18224       LIBS=$ac_xsave_LIBS
18225     esac
18226   fi
18227
18228   # Check for system-dependent libraries X programs must link with.
18229   # Do this before checking for the system-independent R6 libraries
18230   # (-lICE), since we may need -lsocket or whatever for X linking.
18231
18232   if test "$ISC" = yes; then
18233     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18234   else
18235     # Martyn Johnson says this is needed for Ultrix, if the X
18236     # libraries were built with DECnet support.  And Karl Berry says
18237     # the Alpha needs dnet_stub (dnet does not exist).
18238     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18239     cat >conftest.$ac_ext <<_ACEOF
18240 /* confdefs.h.  */
18241 _ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h.  */
18245
18246 /* Override any gcc2 internal prototype to avoid an error.  */
18247 #ifdef __cplusplus
18248 extern "C"
18249 #endif
18250 /* We use char because int might match the return type of a gcc2
18251    builtin and then its argument prototype would still apply.  */
18252 char XOpenDisplay ();
18253 int
18254 main ()
18255 {
18256 XOpenDisplay ();
18257   ;
18258   return 0;
18259 }
18260 _ACEOF
18261 rm -f conftest.$ac_objext conftest$ac_exeext
18262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18263   (eval $ac_link) 2>conftest.er1
18264   ac_status=$?
18265   grep -v '^ *+' conftest.er1 >conftest.err
18266   rm -f conftest.er1
18267   cat conftest.err >&5
18268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269   (exit $ac_status); } &&
18270          { ac_try='test -z "$ac_c_werror_flag"
18271                          || test ! -s conftest.err'
18272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273   (eval $ac_try) 2>&5
18274   ac_status=$?
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); }; } &&
18277          { ac_try='test -s conftest$ac_exeext'
18278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279   (eval $ac_try) 2>&5
18280   ac_status=$?
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); }; }; then
18283   :
18284 else
18285   echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18287
18288 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18289 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18290 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18291   echo $ECHO_N "(cached) $ECHO_C" >&6
18292 else
18293   ac_check_lib_save_LIBS=$LIBS
18294 LIBS="-ldnet  $LIBS"
18295 cat >conftest.$ac_ext <<_ACEOF
18296 /* confdefs.h.  */
18297 _ACEOF
18298 cat confdefs.h >>conftest.$ac_ext
18299 cat >>conftest.$ac_ext <<_ACEOF
18300 /* end confdefs.h.  */
18301
18302 /* Override any gcc2 internal prototype to avoid an error.  */
18303 #ifdef __cplusplus
18304 extern "C"
18305 #endif
18306 /* We use char because int might match the return type of a gcc2
18307    builtin and then its argument prototype would still apply.  */
18308 char dnet_ntoa ();
18309 int
18310 main ()
18311 {
18312 dnet_ntoa ();
18313   ;
18314   return 0;
18315 }
18316 _ACEOF
18317 rm -f conftest.$ac_objext conftest$ac_exeext
18318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18319   (eval $ac_link) 2>conftest.er1
18320   ac_status=$?
18321   grep -v '^ *+' conftest.er1 >conftest.err
18322   rm -f conftest.er1
18323   cat conftest.err >&5
18324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325   (exit $ac_status); } &&
18326          { ac_try='test -z "$ac_c_werror_flag"
18327                          || test ! -s conftest.err'
18328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329   (eval $ac_try) 2>&5
18330   ac_status=$?
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); }; } &&
18333          { ac_try='test -s conftest$ac_exeext'
18334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335   (eval $ac_try) 2>&5
18336   ac_status=$?
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); }; }; then
18339   ac_cv_lib_dnet_dnet_ntoa=yes
18340 else
18341   echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18343
18344 ac_cv_lib_dnet_dnet_ntoa=no
18345 fi
18346 rm -f conftest.err conftest.$ac_objext \
18347       conftest$ac_exeext conftest.$ac_ext
18348 LIBS=$ac_check_lib_save_LIBS
18349 fi
18350 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18351 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18352 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18353   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18354 fi
18355
18356     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18357       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18358 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18359 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18360   echo $ECHO_N "(cached) $ECHO_C" >&6
18361 else
18362   ac_check_lib_save_LIBS=$LIBS
18363 LIBS="-ldnet_stub  $LIBS"
18364 cat >conftest.$ac_ext <<_ACEOF
18365 /* confdefs.h.  */
18366 _ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h.  */
18370
18371 /* Override any gcc2 internal prototype to avoid an error.  */
18372 #ifdef __cplusplus
18373 extern "C"
18374 #endif
18375 /* We use char because int might match the return type of a gcc2
18376    builtin and then its argument prototype would still apply.  */
18377 char dnet_ntoa ();
18378 int
18379 main ()
18380 {
18381 dnet_ntoa ();
18382   ;
18383   return 0;
18384 }
18385 _ACEOF
18386 rm -f conftest.$ac_objext conftest$ac_exeext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18388   (eval $ac_link) 2>conftest.er1
18389   ac_status=$?
18390   grep -v '^ *+' conftest.er1 >conftest.err
18391   rm -f conftest.er1
18392   cat conftest.err >&5
18393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394   (exit $ac_status); } &&
18395          { ac_try='test -z "$ac_c_werror_flag"
18396                          || test ! -s conftest.err'
18397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398   (eval $ac_try) 2>&5
18399   ac_status=$?
18400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401   (exit $ac_status); }; } &&
18402          { ac_try='test -s conftest$ac_exeext'
18403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404   (eval $ac_try) 2>&5
18405   ac_status=$?
18406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407   (exit $ac_status); }; }; then
18408   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18409 else
18410   echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.$ac_ext >&5
18412
18413 ac_cv_lib_dnet_stub_dnet_ntoa=no
18414 fi
18415 rm -f conftest.err conftest.$ac_objext \
18416       conftest$ac_exeext conftest.$ac_ext
18417 LIBS=$ac_check_lib_save_LIBS
18418 fi
18419 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18420 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18421 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18422   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18423 fi
18424
18425     fi
18426 fi
18427 rm -f conftest.err conftest.$ac_objext \
18428       conftest$ac_exeext conftest.$ac_ext
18429     LIBS="$ac_xsave_LIBS"
18430
18431     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18432     # to get the SysV transport functions.
18433     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18434     # needs -lnsl.
18435     # The nsl library prevents programs from opening the X display
18436     # on Irix 5.2, according to T.E. Dickey.
18437     # The functions gethostbyname, getservbyname, and inet_addr are
18438     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18439     echo "$as_me:$LINENO: checking for gethostbyname" >&5
18440 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18441 if test "${ac_cv_func_gethostbyname+set}" = set; then
18442   echo $ECHO_N "(cached) $ECHO_C" >&6
18443 else
18444   cat >conftest.$ac_ext <<_ACEOF
18445 /* confdefs.h.  */
18446 _ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h.  */
18450 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18452 #define gethostbyname innocuous_gethostbyname
18453
18454 /* System header to define __stub macros and hopefully few prototypes,
18455     which can conflict with char gethostbyname (); below.
18456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18457     <limits.h> exists even on freestanding compilers.  */
18458
18459 #ifdef __STDC__
18460 # include <limits.h>
18461 #else
18462 # include <assert.h>
18463 #endif
18464
18465 #undef gethostbyname
18466
18467 /* Override any gcc2 internal prototype to avoid an error.  */
18468 #ifdef __cplusplus
18469 extern "C"
18470 {
18471 #endif
18472 /* We use char because int might match the return type of a gcc2
18473    builtin and then its argument prototype would still apply.  */
18474 char gethostbyname ();
18475 /* The GNU C library defines this for functions which it implements
18476     to always fail with ENOSYS.  Some functions are actually named
18477     something starting with __ and the normal name is an alias.  */
18478 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18479 choke me
18480 #else
18481 char (*f) () = gethostbyname;
18482 #endif
18483 #ifdef __cplusplus
18484 }
18485 #endif
18486
18487 int
18488 main ()
18489 {
18490 return f != gethostbyname;
18491   ;
18492   return 0;
18493 }
18494 _ACEOF
18495 rm -f conftest.$ac_objext conftest$ac_exeext
18496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18497   (eval $ac_link) 2>conftest.er1
18498   ac_status=$?
18499   grep -v '^ *+' conftest.er1 >conftest.err
18500   rm -f conftest.er1
18501   cat conftest.err >&5
18502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503   (exit $ac_status); } &&
18504          { ac_try='test -z "$ac_c_werror_flag"
18505                          || test ! -s conftest.err'
18506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18507   (eval $ac_try) 2>&5
18508   ac_status=$?
18509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510   (exit $ac_status); }; } &&
18511          { ac_try='test -s conftest$ac_exeext'
18512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513   (eval $ac_try) 2>&5
18514   ac_status=$?
18515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516   (exit $ac_status); }; }; then
18517   ac_cv_func_gethostbyname=yes
18518 else
18519   echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18521
18522 ac_cv_func_gethostbyname=no
18523 fi
18524 rm -f conftest.err conftest.$ac_objext \
18525       conftest$ac_exeext conftest.$ac_ext
18526 fi
18527 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18528 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18529
18530     if test $ac_cv_func_gethostbyname = no; then
18531       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18532 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18533 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18534   echo $ECHO_N "(cached) $ECHO_C" >&6
18535 else
18536   ac_check_lib_save_LIBS=$LIBS
18537 LIBS="-lnsl  $LIBS"
18538 cat >conftest.$ac_ext <<_ACEOF
18539 /* confdefs.h.  */
18540 _ACEOF
18541 cat confdefs.h >>conftest.$ac_ext
18542 cat >>conftest.$ac_ext <<_ACEOF
18543 /* end confdefs.h.  */
18544
18545 /* Override any gcc2 internal prototype to avoid an error.  */
18546 #ifdef __cplusplus
18547 extern "C"
18548 #endif
18549 /* We use char because int might match the return type of a gcc2
18550    builtin and then its argument prototype would still apply.  */
18551 char gethostbyname ();
18552 int
18553 main ()
18554 {
18555 gethostbyname ();
18556   ;
18557   return 0;
18558 }
18559 _ACEOF
18560 rm -f conftest.$ac_objext conftest$ac_exeext
18561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18562   (eval $ac_link) 2>conftest.er1
18563   ac_status=$?
18564   grep -v '^ *+' conftest.er1 >conftest.err
18565   rm -f conftest.er1
18566   cat conftest.err >&5
18567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568   (exit $ac_status); } &&
18569          { ac_try='test -z "$ac_c_werror_flag"
18570                          || test ! -s conftest.err'
18571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572   (eval $ac_try) 2>&5
18573   ac_status=$?
18574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575   (exit $ac_status); }; } &&
18576          { ac_try='test -s conftest$ac_exeext'
18577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578   (eval $ac_try) 2>&5
18579   ac_status=$?
18580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581   (exit $ac_status); }; }; then
18582   ac_cv_lib_nsl_gethostbyname=yes
18583 else
18584   echo "$as_me: failed program was:" >&5
18585 sed 's/^/| /' conftest.$ac_ext >&5
18586
18587 ac_cv_lib_nsl_gethostbyname=no
18588 fi
18589 rm -f conftest.err conftest.$ac_objext \
18590       conftest$ac_exeext conftest.$ac_ext
18591 LIBS=$ac_check_lib_save_LIBS
18592 fi
18593 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18594 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18595 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18596   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18597 fi
18598
18599       if test $ac_cv_lib_nsl_gethostbyname = no; then
18600         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18601 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18602 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18603   echo $ECHO_N "(cached) $ECHO_C" >&6
18604 else
18605   ac_check_lib_save_LIBS=$LIBS
18606 LIBS="-lbsd  $LIBS"
18607 cat >conftest.$ac_ext <<_ACEOF
18608 /* confdefs.h.  */
18609 _ACEOF
18610 cat confdefs.h >>conftest.$ac_ext
18611 cat >>conftest.$ac_ext <<_ACEOF
18612 /* end confdefs.h.  */
18613
18614 /* Override any gcc2 internal prototype to avoid an error.  */
18615 #ifdef __cplusplus
18616 extern "C"
18617 #endif
18618 /* We use char because int might match the return type of a gcc2
18619    builtin and then its argument prototype would still apply.  */
18620 char gethostbyname ();
18621 int
18622 main ()
18623 {
18624 gethostbyname ();
18625   ;
18626   return 0;
18627 }
18628 _ACEOF
18629 rm -f conftest.$ac_objext conftest$ac_exeext
18630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18631   (eval $ac_link) 2>conftest.er1
18632   ac_status=$?
18633   grep -v '^ *+' conftest.er1 >conftest.err
18634   rm -f conftest.er1
18635   cat conftest.err >&5
18636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637   (exit $ac_status); } &&
18638          { ac_try='test -z "$ac_c_werror_flag"
18639                          || test ! -s conftest.err'
18640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641   (eval $ac_try) 2>&5
18642   ac_status=$?
18643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644   (exit $ac_status); }; } &&
18645          { ac_try='test -s conftest$ac_exeext'
18646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647   (eval $ac_try) 2>&5
18648   ac_status=$?
18649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650   (exit $ac_status); }; }; then
18651   ac_cv_lib_bsd_gethostbyname=yes
18652 else
18653   echo "$as_me: failed program was:" >&5
18654 sed 's/^/| /' conftest.$ac_ext >&5
18655
18656 ac_cv_lib_bsd_gethostbyname=no
18657 fi
18658 rm -f conftest.err conftest.$ac_objext \
18659       conftest$ac_exeext conftest.$ac_ext
18660 LIBS=$ac_check_lib_save_LIBS
18661 fi
18662 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18663 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18664 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18665   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18666 fi
18667
18668       fi
18669     fi
18670
18671     # lieder@skyler.mavd.honeywell.com says without -lsocket,
18672     # socket/setsockopt and other routines are undefined under SCO ODT
18673     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18674     # on later versions), says Simon Leinen: it contains gethostby*
18675     # variants that don't use the name server (or something).  -lsocket
18676     # must be given before -lnsl if both are needed.  We assume that
18677     # if connect needs -lnsl, so does gethostbyname.
18678     echo "$as_me:$LINENO: checking for connect" >&5
18679 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18680 if test "${ac_cv_func_connect+set}" = set; then
18681   echo $ECHO_N "(cached) $ECHO_C" >&6
18682 else
18683   cat >conftest.$ac_ext <<_ACEOF
18684 /* confdefs.h.  */
18685 _ACEOF
18686 cat confdefs.h >>conftest.$ac_ext
18687 cat >>conftest.$ac_ext <<_ACEOF
18688 /* end confdefs.h.  */
18689 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18691 #define connect innocuous_connect
18692
18693 /* System header to define __stub macros and hopefully few prototypes,
18694     which can conflict with char connect (); below.
18695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18696     <limits.h> exists even on freestanding compilers.  */
18697
18698 #ifdef __STDC__
18699 # include <limits.h>
18700 #else
18701 # include <assert.h>
18702 #endif
18703
18704 #undef connect
18705
18706 /* Override any gcc2 internal prototype to avoid an error.  */
18707 #ifdef __cplusplus
18708 extern "C"
18709 {
18710 #endif
18711 /* We use char because int might match the return type of a gcc2
18712    builtin and then its argument prototype would still apply.  */
18713 char connect ();
18714 /* The GNU C library defines this for functions which it implements
18715     to always fail with ENOSYS.  Some functions are actually named
18716     something starting with __ and the normal name is an alias.  */
18717 #if defined (__stub_connect) || defined (__stub___connect)
18718 choke me
18719 #else
18720 char (*f) () = connect;
18721 #endif
18722 #ifdef __cplusplus
18723 }
18724 #endif
18725
18726 int
18727 main ()
18728 {
18729 return f != connect;
18730   ;
18731   return 0;
18732 }
18733 _ACEOF
18734 rm -f conftest.$ac_objext conftest$ac_exeext
18735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18736   (eval $ac_link) 2>conftest.er1
18737   ac_status=$?
18738   grep -v '^ *+' conftest.er1 >conftest.err
18739   rm -f conftest.er1
18740   cat conftest.err >&5
18741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742   (exit $ac_status); } &&
18743          { ac_try='test -z "$ac_c_werror_flag"
18744                          || test ! -s conftest.err'
18745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18746   (eval $ac_try) 2>&5
18747   ac_status=$?
18748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749   (exit $ac_status); }; } &&
18750          { ac_try='test -s conftest$ac_exeext'
18751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18752   (eval $ac_try) 2>&5
18753   ac_status=$?
18754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755   (exit $ac_status); }; }; then
18756   ac_cv_func_connect=yes
18757 else
18758   echo "$as_me: failed program was:" >&5
18759 sed 's/^/| /' conftest.$ac_ext >&5
18760
18761 ac_cv_func_connect=no
18762 fi
18763 rm -f conftest.err conftest.$ac_objext \
18764       conftest$ac_exeext conftest.$ac_ext
18765 fi
18766 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18767 echo "${ECHO_T}$ac_cv_func_connect" >&6
18768
18769     if test $ac_cv_func_connect = no; then
18770       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18771 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18772 if test "${ac_cv_lib_socket_connect+set}" = set; then
18773   echo $ECHO_N "(cached) $ECHO_C" >&6
18774 else
18775   ac_check_lib_save_LIBS=$LIBS
18776 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18777 cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h.  */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h.  */
18783
18784 /* Override any gcc2 internal prototype to avoid an error.  */
18785 #ifdef __cplusplus
18786 extern "C"
18787 #endif
18788 /* We use char because int might match the return type of a gcc2
18789    builtin and then its argument prototype would still apply.  */
18790 char connect ();
18791 int
18792 main ()
18793 {
18794 connect ();
18795   ;
18796   return 0;
18797 }
18798 _ACEOF
18799 rm -f conftest.$ac_objext conftest$ac_exeext
18800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18801   (eval $ac_link) 2>conftest.er1
18802   ac_status=$?
18803   grep -v '^ *+' conftest.er1 >conftest.err
18804   rm -f conftest.er1
18805   cat conftest.err >&5
18806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807   (exit $ac_status); } &&
18808          { ac_try='test -z "$ac_c_werror_flag"
18809                          || test ! -s conftest.err'
18810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811   (eval $ac_try) 2>&5
18812   ac_status=$?
18813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814   (exit $ac_status); }; } &&
18815          { ac_try='test -s conftest$ac_exeext'
18816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817   (eval $ac_try) 2>&5
18818   ac_status=$?
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); }; }; then
18821   ac_cv_lib_socket_connect=yes
18822 else
18823   echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18825
18826 ac_cv_lib_socket_connect=no
18827 fi
18828 rm -f conftest.err conftest.$ac_objext \
18829       conftest$ac_exeext conftest.$ac_ext
18830 LIBS=$ac_check_lib_save_LIBS
18831 fi
18832 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18833 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18834 if test $ac_cv_lib_socket_connect = yes; then
18835   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18836 fi
18837
18838     fi
18839
18840     # Guillermo Gomez says -lposix is necessary on A/UX.
18841     echo "$as_me:$LINENO: checking for remove" >&5
18842 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18843 if test "${ac_cv_func_remove+set}" = set; then
18844   echo $ECHO_N "(cached) $ECHO_C" >&6
18845 else
18846   cat >conftest.$ac_ext <<_ACEOF
18847 /* confdefs.h.  */
18848 _ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h.  */
18852 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18854 #define remove innocuous_remove
18855
18856 /* System header to define __stub macros and hopefully few prototypes,
18857     which can conflict with char remove (); below.
18858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18859     <limits.h> exists even on freestanding compilers.  */
18860
18861 #ifdef __STDC__
18862 # include <limits.h>
18863 #else
18864 # include <assert.h>
18865 #endif
18866
18867 #undef remove
18868
18869 /* Override any gcc2 internal prototype to avoid an error.  */
18870 #ifdef __cplusplus
18871 extern "C"
18872 {
18873 #endif
18874 /* We use char because int might match the return type of a gcc2
18875    builtin and then its argument prototype would still apply.  */
18876 char remove ();
18877 /* The GNU C library defines this for functions which it implements
18878     to always fail with ENOSYS.  Some functions are actually named
18879     something starting with __ and the normal name is an alias.  */
18880 #if defined (__stub_remove) || defined (__stub___remove)
18881 choke me
18882 #else
18883 char (*f) () = remove;
18884 #endif
18885 #ifdef __cplusplus
18886 }
18887 #endif
18888
18889 int
18890 main ()
18891 {
18892 return f != remove;
18893   ;
18894   return 0;
18895 }
18896 _ACEOF
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18899   (eval $ac_link) 2>conftest.er1
18900   ac_status=$?
18901   grep -v '^ *+' conftest.er1 >conftest.err
18902   rm -f conftest.er1
18903   cat conftest.err >&5
18904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905   (exit $ac_status); } &&
18906          { ac_try='test -z "$ac_c_werror_flag"
18907                          || test ! -s conftest.err'
18908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909   (eval $ac_try) 2>&5
18910   ac_status=$?
18911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912   (exit $ac_status); }; } &&
18913          { ac_try='test -s conftest$ac_exeext'
18914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915   (eval $ac_try) 2>&5
18916   ac_status=$?
18917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918   (exit $ac_status); }; }; then
18919   ac_cv_func_remove=yes
18920 else
18921   echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18923
18924 ac_cv_func_remove=no
18925 fi
18926 rm -f conftest.err conftest.$ac_objext \
18927       conftest$ac_exeext conftest.$ac_ext
18928 fi
18929 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18930 echo "${ECHO_T}$ac_cv_func_remove" >&6
18931
18932     if test $ac_cv_func_remove = no; then
18933       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18934 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18935 if test "${ac_cv_lib_posix_remove+set}" = set; then
18936   echo $ECHO_N "(cached) $ECHO_C" >&6
18937 else
18938   ac_check_lib_save_LIBS=$LIBS
18939 LIBS="-lposix  $LIBS"
18940 cat >conftest.$ac_ext <<_ACEOF
18941 /* confdefs.h.  */
18942 _ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h.  */
18946
18947 /* Override any gcc2 internal prototype to avoid an error.  */
18948 #ifdef __cplusplus
18949 extern "C"
18950 #endif
18951 /* We use char because int might match the return type of a gcc2
18952    builtin and then its argument prototype would still apply.  */
18953 char remove ();
18954 int
18955 main ()
18956 {
18957 remove ();
18958   ;
18959   return 0;
18960 }
18961 _ACEOF
18962 rm -f conftest.$ac_objext conftest$ac_exeext
18963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18964   (eval $ac_link) 2>conftest.er1
18965   ac_status=$?
18966   grep -v '^ *+' conftest.er1 >conftest.err
18967   rm -f conftest.er1
18968   cat conftest.err >&5
18969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970   (exit $ac_status); } &&
18971          { ac_try='test -z "$ac_c_werror_flag"
18972                          || test ! -s conftest.err'
18973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974   (eval $ac_try) 2>&5
18975   ac_status=$?
18976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977   (exit $ac_status); }; } &&
18978          { ac_try='test -s conftest$ac_exeext'
18979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980   (eval $ac_try) 2>&5
18981   ac_status=$?
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); }; }; then
18984   ac_cv_lib_posix_remove=yes
18985 else
18986   echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18988
18989 ac_cv_lib_posix_remove=no
18990 fi
18991 rm -f conftest.err conftest.$ac_objext \
18992       conftest$ac_exeext conftest.$ac_ext
18993 LIBS=$ac_check_lib_save_LIBS
18994 fi
18995 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18996 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18997 if test $ac_cv_lib_posix_remove = yes; then
18998   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18999 fi
19000
19001     fi
19002
19003     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19004     echo "$as_me:$LINENO: checking for shmat" >&5
19005 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
19006 if test "${ac_cv_func_shmat+set}" = set; then
19007   echo $ECHO_N "(cached) $ECHO_C" >&6
19008 else
19009   cat >conftest.$ac_ext <<_ACEOF
19010 /* confdefs.h.  */
19011 _ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h.  */
19015 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19017 #define shmat innocuous_shmat
19018
19019 /* System header to define __stub macros and hopefully few prototypes,
19020     which can conflict with char shmat (); below.
19021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19022     <limits.h> exists even on freestanding compilers.  */
19023
19024 #ifdef __STDC__
19025 # include <limits.h>
19026 #else
19027 # include <assert.h>
19028 #endif
19029
19030 #undef shmat
19031
19032 /* Override any gcc2 internal prototype to avoid an error.  */
19033 #ifdef __cplusplus
19034 extern "C"
19035 {
19036 #endif
19037 /* We use char because int might match the return type of a gcc2
19038    builtin and then its argument prototype would still apply.  */
19039 char shmat ();
19040 /* The GNU C library defines this for functions which it implements
19041     to always fail with ENOSYS.  Some functions are actually named
19042     something starting with __ and the normal name is an alias.  */
19043 #if defined (__stub_shmat) || defined (__stub___shmat)
19044 choke me
19045 #else
19046 char (*f) () = shmat;
19047 #endif
19048 #ifdef __cplusplus
19049 }
19050 #endif
19051
19052 int
19053 main ()
19054 {
19055 return f != shmat;
19056   ;
19057   return 0;
19058 }
19059 _ACEOF
19060 rm -f conftest.$ac_objext conftest$ac_exeext
19061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19062   (eval $ac_link) 2>conftest.er1
19063   ac_status=$?
19064   grep -v '^ *+' conftest.er1 >conftest.err
19065   rm -f conftest.er1
19066   cat conftest.err >&5
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); } &&
19069          { ac_try='test -z "$ac_c_werror_flag"
19070                          || test ! -s conftest.err'
19071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072   (eval $ac_try) 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); }; } &&
19076          { ac_try='test -s conftest$ac_exeext'
19077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078   (eval $ac_try) 2>&5
19079   ac_status=$?
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); }; }; then
19082   ac_cv_func_shmat=yes
19083 else
19084   echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19086
19087 ac_cv_func_shmat=no
19088 fi
19089 rm -f conftest.err conftest.$ac_objext \
19090       conftest$ac_exeext conftest.$ac_ext
19091 fi
19092 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19093 echo "${ECHO_T}$ac_cv_func_shmat" >&6
19094
19095     if test $ac_cv_func_shmat = no; then
19096       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19097 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
19098 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19099   echo $ECHO_N "(cached) $ECHO_C" >&6
19100 else
19101   ac_check_lib_save_LIBS=$LIBS
19102 LIBS="-lipc  $LIBS"
19103 cat >conftest.$ac_ext <<_ACEOF
19104 /* confdefs.h.  */
19105 _ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h.  */
19109
19110 /* Override any gcc2 internal prototype to avoid an error.  */
19111 #ifdef __cplusplus
19112 extern "C"
19113 #endif
19114 /* We use char because int might match the return type of a gcc2
19115    builtin and then its argument prototype would still apply.  */
19116 char shmat ();
19117 int
19118 main ()
19119 {
19120 shmat ();
19121   ;
19122   return 0;
19123 }
19124 _ACEOF
19125 rm -f conftest.$ac_objext conftest$ac_exeext
19126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19127   (eval $ac_link) 2>conftest.er1
19128   ac_status=$?
19129   grep -v '^ *+' conftest.er1 >conftest.err
19130   rm -f conftest.er1
19131   cat conftest.err >&5
19132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133   (exit $ac_status); } &&
19134          { ac_try='test -z "$ac_c_werror_flag"
19135                          || test ! -s conftest.err'
19136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137   (eval $ac_try) 2>&5
19138   ac_status=$?
19139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140   (exit $ac_status); }; } &&
19141          { ac_try='test -s conftest$ac_exeext'
19142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143   (eval $ac_try) 2>&5
19144   ac_status=$?
19145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146   (exit $ac_status); }; }; then
19147   ac_cv_lib_ipc_shmat=yes
19148 else
19149   echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19151
19152 ac_cv_lib_ipc_shmat=no
19153 fi
19154 rm -f conftest.err conftest.$ac_objext \
19155       conftest$ac_exeext conftest.$ac_ext
19156 LIBS=$ac_check_lib_save_LIBS
19157 fi
19158 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19159 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
19160 if test $ac_cv_lib_ipc_shmat = yes; then
19161   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19162 fi
19163
19164     fi
19165   fi
19166
19167   # Check for libraries that X11R6 Xt/Xaw programs need.
19168   ac_save_LDFLAGS=$LDFLAGS
19169   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19170   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19171   # check for ICE first), but we must link in the order -lSM -lICE or
19172   # we get undefined symbols.  So assume we have SM if we have ICE.
19173   # These have to be linked with before -lX11, unlike the other
19174   # libraries we check for below, so use a different variable.
19175   # John Interrante, Karl Berry
19176   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19177 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
19178 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19179   echo $ECHO_N "(cached) $ECHO_C" >&6
19180 else
19181   ac_check_lib_save_LIBS=$LIBS
19182 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19183 cat >conftest.$ac_ext <<_ACEOF
19184 /* confdefs.h.  */
19185 _ACEOF
19186 cat confdefs.h >>conftest.$ac_ext
19187 cat >>conftest.$ac_ext <<_ACEOF
19188 /* end confdefs.h.  */
19189
19190 /* Override any gcc2 internal prototype to avoid an error.  */
19191 #ifdef __cplusplus
19192 extern "C"
19193 #endif
19194 /* We use char because int might match the return type of a gcc2
19195    builtin and then its argument prototype would still apply.  */
19196 char IceConnectionNumber ();
19197 int
19198 main ()
19199 {
19200 IceConnectionNumber ();
19201   ;
19202   return 0;
19203 }
19204 _ACEOF
19205 rm -f conftest.$ac_objext conftest$ac_exeext
19206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19207   (eval $ac_link) 2>conftest.er1
19208   ac_status=$?
19209   grep -v '^ *+' conftest.er1 >conftest.err
19210   rm -f conftest.er1
19211   cat conftest.err >&5
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); } &&
19214          { ac_try='test -z "$ac_c_werror_flag"
19215                          || test ! -s conftest.err'
19216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217   (eval $ac_try) 2>&5
19218   ac_status=$?
19219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220   (exit $ac_status); }; } &&
19221          { ac_try='test -s conftest$ac_exeext'
19222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223   (eval $ac_try) 2>&5
19224   ac_status=$?
19225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226   (exit $ac_status); }; }; then
19227   ac_cv_lib_ICE_IceConnectionNumber=yes
19228 else
19229   echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19231
19232 ac_cv_lib_ICE_IceConnectionNumber=no
19233 fi
19234 rm -f conftest.err conftest.$ac_objext \
19235       conftest$ac_exeext conftest.$ac_ext
19236 LIBS=$ac_check_lib_save_LIBS
19237 fi
19238 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19239 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
19240 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19241   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19242 fi
19243
19244   LDFLAGS=$ac_save_LDFLAGS
19245
19246 fi
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276 for ac_header in \
19277         assert.h \
19278         fcntl.h \
19279         grp.h \
19280         pwd.h \
19281         libc.h \
19282         limits.h \
19283         stdarg.h \
19284         stdlib.h \
19285         stdint.h \
19286         string.h \
19287         termios.h \
19288         termcap.h \
19289         term.h \
19290         unistd.h \
19291         sys/bitypes.h \
19292         sys/byteorder.h \
19293         sys/ioctl.h \
19294         sys/select.h \
19295         sys/sockio.h \
19296         sys/time.h \
19297         sys/socket.h \
19298         arpa/nameser.h \
19299         resolv.h \
19300         mtio.h \
19301         sys/mtio.h \
19302         sys/tape.h \
19303         regex.h \
19304
19305 do
19306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19308   echo "$as_me:$LINENO: checking for $ac_header" >&5
19309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19311   echo $ECHO_N "(cached) $ECHO_C" >&6
19312 fi
19313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19315 else
19316   # Is the header compilable?
19317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19319 cat >conftest.$ac_ext <<_ACEOF
19320 /* confdefs.h.  */
19321 _ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h.  */
19325 $ac_includes_default
19326 #include <$ac_header>
19327 _ACEOF
19328 rm -f conftest.$ac_objext
19329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19330   (eval $ac_compile) 2>conftest.er1
19331   ac_status=$?
19332   grep -v '^ *+' conftest.er1 >conftest.err
19333   rm -f conftest.er1
19334   cat conftest.err >&5
19335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); } &&
19337          { ac_try='test -z "$ac_c_werror_flag"
19338                          || test ! -s conftest.err'
19339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340   (eval $ac_try) 2>&5
19341   ac_status=$?
19342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); }; } &&
19344          { ac_try='test -s conftest.$ac_objext'
19345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19346   (eval $ac_try) 2>&5
19347   ac_status=$?
19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); }; }; then
19350   ac_header_compiler=yes
19351 else
19352   echo "$as_me: failed program was:" >&5
19353 sed 's/^/| /' conftest.$ac_ext >&5
19354
19355 ac_header_compiler=no
19356 fi
19357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19359 echo "${ECHO_T}$ac_header_compiler" >&6
19360
19361 # Is the header present?
19362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19364 cat >conftest.$ac_ext <<_ACEOF
19365 /* confdefs.h.  */
19366 _ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h.  */
19370 #include <$ac_header>
19371 _ACEOF
19372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19373   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19374   ac_status=$?
19375   grep -v '^ *+' conftest.er1 >conftest.err
19376   rm -f conftest.er1
19377   cat conftest.err >&5
19378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379   (exit $ac_status); } >/dev/null; then
19380   if test -s conftest.err; then
19381     ac_cpp_err=$ac_c_preproc_warn_flag
19382     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19383   else
19384     ac_cpp_err=
19385   fi
19386 else
19387   ac_cpp_err=yes
19388 fi
19389 if test -z "$ac_cpp_err"; then
19390   ac_header_preproc=yes
19391 else
19392   echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.$ac_ext >&5
19394
19395   ac_header_preproc=no
19396 fi
19397 rm -f conftest.err conftest.$ac_ext
19398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19399 echo "${ECHO_T}$ac_header_preproc" >&6
19400
19401 # So?  What about this header?
19402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19403   yes:no: )
19404     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19408     ac_header_preproc=yes
19409     ;;
19410   no:yes:* )
19411     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19413     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19414 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19415     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19417     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19418 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19421     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19423     (
19424       cat <<\_ASBOX
19425 ## ------------------------------------------ ##
19426 ## Report this to the AC_PACKAGE_NAME lists.  ##
19427 ## ------------------------------------------ ##
19428 _ASBOX
19429     ) |
19430       sed "s/^/$as_me: WARNING:     /" >&2
19431     ;;
19432 esac
19433 echo "$as_me:$LINENO: checking for $ac_header" >&5
19434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19436   echo $ECHO_N "(cached) $ECHO_C" >&6
19437 else
19438   eval "$as_ac_Header=\$ac_header_preproc"
19439 fi
19440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19442
19443 fi
19444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19445   cat >>confdefs.h <<_ACEOF
19446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19447 _ACEOF
19448
19449 fi
19450
19451 done
19452
19453 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19454 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19455 if test "${ac_cv_header_stdc+set}" = set; then
19456   echo $ECHO_N "(cached) $ECHO_C" >&6
19457 else
19458   cat >conftest.$ac_ext <<_ACEOF
19459 /* confdefs.h.  */
19460 _ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h.  */
19464 #include <stdlib.h>
19465 #include <stdarg.h>
19466 #include <string.h>
19467 #include <float.h>
19468
19469 int
19470 main ()
19471 {
19472
19473   ;
19474   return 0;
19475 }
19476 _ACEOF
19477 rm -f conftest.$ac_objext
19478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19479   (eval $ac_compile) 2>conftest.er1
19480   ac_status=$?
19481   grep -v '^ *+' conftest.er1 >conftest.err
19482   rm -f conftest.er1
19483   cat conftest.err >&5
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); } &&
19486          { ac_try='test -z "$ac_c_werror_flag"
19487                          || test ! -s conftest.err'
19488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489   (eval $ac_try) 2>&5
19490   ac_status=$?
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); }; } &&
19493          { ac_try='test -s conftest.$ac_objext'
19494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495   (eval $ac_try) 2>&5
19496   ac_status=$?
19497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498   (exit $ac_status); }; }; then
19499   ac_cv_header_stdc=yes
19500 else
19501   echo "$as_me: failed program was:" >&5
19502 sed 's/^/| /' conftest.$ac_ext >&5
19503
19504 ac_cv_header_stdc=no
19505 fi
19506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19507
19508 if test $ac_cv_header_stdc = yes; then
19509   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19510   cat >conftest.$ac_ext <<_ACEOF
19511 /* confdefs.h.  */
19512 _ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h.  */
19516 #include <string.h>
19517
19518 _ACEOF
19519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19520   $EGREP "memchr" >/dev/null 2>&1; then
19521   :
19522 else
19523   ac_cv_header_stdc=no
19524 fi
19525 rm -f conftest*
19526
19527 fi
19528
19529 if test $ac_cv_header_stdc = yes; then
19530   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19531   cat >conftest.$ac_ext <<_ACEOF
19532 /* confdefs.h.  */
19533 _ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h.  */
19537 #include <stdlib.h>
19538
19539 _ACEOF
19540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19541   $EGREP "free" >/dev/null 2>&1; then
19542   :
19543 else
19544   ac_cv_header_stdc=no
19545 fi
19546 rm -f conftest*
19547
19548 fi
19549
19550 if test $ac_cv_header_stdc = yes; then
19551   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19552   if test "$cross_compiling" = yes; then
19553   :
19554 else
19555   cat >conftest.$ac_ext <<_ACEOF
19556 /* confdefs.h.  */
19557 _ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h.  */
19561 #include <ctype.h>
19562 #if ((' ' & 0x0FF) == 0x020)
19563 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19564 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19565 #else
19566 # define ISLOWER(c) \
19567                    (('a' <= (c) && (c) <= 'i') \
19568                      || ('j' <= (c) && (c) <= 'r') \
19569                      || ('s' <= (c) && (c) <= 'z'))
19570 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19571 #endif
19572
19573 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19574 int
19575 main ()
19576 {
19577   int i;
19578   for (i = 0; i < 256; i++)
19579     if (XOR (islower (i), ISLOWER (i))
19580         || toupper (i) != TOUPPER (i))
19581       exit(2);
19582   exit (0);
19583 }
19584 _ACEOF
19585 rm -f conftest$ac_exeext
19586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19587   (eval $ac_link) 2>&5
19588   ac_status=$?
19589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592   (eval $ac_try) 2>&5
19593   ac_status=$?
19594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595   (exit $ac_status); }; }; then
19596   :
19597 else
19598   echo "$as_me: program exited with status $ac_status" >&5
19599 echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19601
19602 ( exit $ac_status )
19603 ac_cv_header_stdc=no
19604 fi
19605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19606 fi
19607 fi
19608 fi
19609 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19610 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19611 if test $ac_cv_header_stdc = yes; then
19612
19613 cat >>confdefs.h <<\_ACEOF
19614 #define STDC_HEADERS 1
19615 _ACEOF
19616
19617 fi
19618
19619 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19620 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19621 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19622   echo $ECHO_N "(cached) $ECHO_C" >&6
19623 else
19624   cat >conftest.$ac_ext <<_ACEOF
19625 /* confdefs.h.  */
19626 _ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h.  */
19630 #include <sys/types.h>
19631 int
19632 main ()
19633 {
19634 return makedev(0, 0);
19635   ;
19636   return 0;
19637 }
19638 _ACEOF
19639 rm -f conftest.$ac_objext conftest$ac_exeext
19640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19641   (eval $ac_link) 2>conftest.er1
19642   ac_status=$?
19643   grep -v '^ *+' conftest.er1 >conftest.err
19644   rm -f conftest.er1
19645   cat conftest.err >&5
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); } &&
19648          { ac_try='test -z "$ac_c_werror_flag"
19649                          || test ! -s conftest.err'
19650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651   (eval $ac_try) 2>&5
19652   ac_status=$?
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); }; } &&
19655          { ac_try='test -s conftest$ac_exeext'
19656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657   (eval $ac_try) 2>&5
19658   ac_status=$?
19659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); }; }; then
19661   ac_cv_header_sys_types_h_makedev=yes
19662 else
19663   echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19665
19666 ac_cv_header_sys_types_h_makedev=no
19667 fi
19668 rm -f conftest.err conftest.$ac_objext \
19669       conftest$ac_exeext conftest.$ac_ext
19670
19671 fi
19672 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19673 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19674
19675 if test $ac_cv_header_sys_types_h_makedev = no; then
19676 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19677   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19678 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19679 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19680   echo $ECHO_N "(cached) $ECHO_C" >&6
19681 fi
19682 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19683 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19684 else
19685   # Is the header compilable?
19686 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19687 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19688 cat >conftest.$ac_ext <<_ACEOF
19689 /* confdefs.h.  */
19690 _ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h.  */
19694 $ac_includes_default
19695 #include <sys/mkdev.h>
19696 _ACEOF
19697 rm -f conftest.$ac_objext
19698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19699   (eval $ac_compile) 2>conftest.er1
19700   ac_status=$?
19701   grep -v '^ *+' conftest.er1 >conftest.err
19702   rm -f conftest.er1
19703   cat conftest.err >&5
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); } &&
19706          { ac_try='test -z "$ac_c_werror_flag"
19707                          || test ! -s conftest.err'
19708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709   (eval $ac_try) 2>&5
19710   ac_status=$?
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); }; } &&
19713          { ac_try='test -s conftest.$ac_objext'
19714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715   (eval $ac_try) 2>&5
19716   ac_status=$?
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); }; }; then
19719   ac_header_compiler=yes
19720 else
19721   echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19723
19724 ac_header_compiler=no
19725 fi
19726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19728 echo "${ECHO_T}$ac_header_compiler" >&6
19729
19730 # Is the header present?
19731 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19732 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19733 cat >conftest.$ac_ext <<_ACEOF
19734 /* confdefs.h.  */
19735 _ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h.  */
19739 #include <sys/mkdev.h>
19740 _ACEOF
19741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19742   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19743   ac_status=$?
19744   grep -v '^ *+' conftest.er1 >conftest.err
19745   rm -f conftest.er1
19746   cat conftest.err >&5
19747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   (exit $ac_status); } >/dev/null; then
19749   if test -s conftest.err; then
19750     ac_cpp_err=$ac_c_preproc_warn_flag
19751     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19752   else
19753     ac_cpp_err=
19754   fi
19755 else
19756   ac_cpp_err=yes
19757 fi
19758 if test -z "$ac_cpp_err"; then
19759   ac_header_preproc=yes
19760 else
19761   echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19763
19764   ac_header_preproc=no
19765 fi
19766 rm -f conftest.err conftest.$ac_ext
19767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19768 echo "${ECHO_T}$ac_header_preproc" >&6
19769
19770 # So?  What about this header?
19771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19772   yes:no: )
19773     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19774 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19775     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19776 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19777     ac_header_preproc=yes
19778     ;;
19779   no:yes:* )
19780     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19781 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19782     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
19783 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
19784     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19785 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19786     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
19787 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19788     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19789 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19790     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19791 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19792     (
19793       cat <<\_ASBOX
19794 ## ------------------------------------------ ##
19795 ## Report this to the AC_PACKAGE_NAME lists.  ##
19796 ## ------------------------------------------ ##
19797 _ASBOX
19798     ) |
19799       sed "s/^/$as_me: WARNING:     /" >&2
19800     ;;
19801 esac
19802 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19803 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19804 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19805   echo $ECHO_N "(cached) $ECHO_C" >&6
19806 else
19807   ac_cv_header_sys_mkdev_h=$ac_header_preproc
19808 fi
19809 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19810 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19811
19812 fi
19813 if test $ac_cv_header_sys_mkdev_h = yes; then
19814
19815 cat >>confdefs.h <<\_ACEOF
19816 #define MAJOR_IN_MKDEV 1
19817 _ACEOF
19818
19819 fi
19820
19821
19822
19823   if test $ac_cv_header_sys_mkdev_h = no; then
19824     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19825   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19826 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19827 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19828   echo $ECHO_N "(cached) $ECHO_C" >&6
19829 fi
19830 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19831 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19832 else
19833   # Is the header compilable?
19834 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19835 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19836 cat >conftest.$ac_ext <<_ACEOF
19837 /* confdefs.h.  */
19838 _ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h.  */
19842 $ac_includes_default
19843 #include <sys/sysmacros.h>
19844 _ACEOF
19845 rm -f conftest.$ac_objext
19846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19847   (eval $ac_compile) 2>conftest.er1
19848   ac_status=$?
19849   grep -v '^ *+' conftest.er1 >conftest.err
19850   rm -f conftest.er1
19851   cat conftest.err >&5
19852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853   (exit $ac_status); } &&
19854          { ac_try='test -z "$ac_c_werror_flag"
19855                          || test ! -s conftest.err'
19856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857   (eval $ac_try) 2>&5
19858   ac_status=$?
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); }; } &&
19861          { ac_try='test -s conftest.$ac_objext'
19862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863   (eval $ac_try) 2>&5
19864   ac_status=$?
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); }; }; then
19867   ac_header_compiler=yes
19868 else
19869   echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19871
19872 ac_header_compiler=no
19873 fi
19874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19876 echo "${ECHO_T}$ac_header_compiler" >&6
19877
19878 # Is the header present?
19879 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19880 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19881 cat >conftest.$ac_ext <<_ACEOF
19882 /* confdefs.h.  */
19883 _ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h.  */
19887 #include <sys/sysmacros.h>
19888 _ACEOF
19889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19890   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19891   ac_status=$?
19892   grep -v '^ *+' conftest.er1 >conftest.err
19893   rm -f conftest.er1
19894   cat conftest.err >&5
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); } >/dev/null; then
19897   if test -s conftest.err; then
19898     ac_cpp_err=$ac_c_preproc_warn_flag
19899     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19900   else
19901     ac_cpp_err=
19902   fi
19903 else
19904   ac_cpp_err=yes
19905 fi
19906 if test -z "$ac_cpp_err"; then
19907   ac_header_preproc=yes
19908 else
19909   echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19911
19912   ac_header_preproc=no
19913 fi
19914 rm -f conftest.err conftest.$ac_ext
19915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19916 echo "${ECHO_T}$ac_header_preproc" >&6
19917
19918 # So?  What about this header?
19919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19920   yes:no: )
19921     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19922 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19923     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19924 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19925     ac_header_preproc=yes
19926     ;;
19927   no:yes:* )
19928     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19929 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19930     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
19931 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
19932     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19933 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19934     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
19935 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19936     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19937 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19938     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19939 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19940     (
19941       cat <<\_ASBOX
19942 ## ------------------------------------------ ##
19943 ## Report this to the AC_PACKAGE_NAME lists.  ##
19944 ## ------------------------------------------ ##
19945 _ASBOX
19946     ) |
19947       sed "s/^/$as_me: WARNING:     /" >&2
19948     ;;
19949 esac
19950 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19951 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19952 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19953   echo $ECHO_N "(cached) $ECHO_C" >&6
19954 else
19955   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19956 fi
19957 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19958 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19959
19960 fi
19961 if test $ac_cv_header_sys_sysmacros_h = yes; then
19962
19963 cat >>confdefs.h <<\_ACEOF
19964 #define MAJOR_IN_SYSMACROS 1
19965 _ACEOF
19966
19967 fi
19968
19969
19970   fi
19971 fi
19972
19973
19974
19975
19976
19977
19978 ac_header_dirent=no
19979 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19980   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19981 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19982 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19984   echo $ECHO_N "(cached) $ECHO_C" >&6
19985 else
19986   cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h.  */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h.  */
19992 #include <sys/types.h>
19993 #include <$ac_hdr>
19994
19995 int
19996 main ()
19997 {
19998 if ((DIR *) 0)
19999 return 0;
20000   ;
20001   return 0;
20002 }
20003 _ACEOF
20004 rm -f conftest.$ac_objext
20005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20006   (eval $ac_compile) 2>conftest.er1
20007   ac_status=$?
20008   grep -v '^ *+' conftest.er1 >conftest.err
20009   rm -f conftest.er1
20010   cat conftest.err >&5
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); } &&
20013          { ac_try='test -z "$ac_c_werror_flag"
20014                          || test ! -s conftest.err'
20015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016   (eval $ac_try) 2>&5
20017   ac_status=$?
20018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019   (exit $ac_status); }; } &&
20020          { ac_try='test -s conftest.$ac_objext'
20021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20022   (eval $ac_try) 2>&5
20023   ac_status=$?
20024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025   (exit $ac_status); }; }; then
20026   eval "$as_ac_Header=yes"
20027 else
20028   echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20030
20031 eval "$as_ac_Header=no"
20032 fi
20033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20034 fi
20035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20038   cat >>confdefs.h <<_ACEOF
20039 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20040 _ACEOF
20041
20042 ac_header_dirent=$ac_hdr; break
20043 fi
20044
20045 done
20046 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20047 if test $ac_header_dirent = dirent.h; then
20048   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20049 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20050 if test "${ac_cv_search_opendir+set}" = set; then
20051   echo $ECHO_N "(cached) $ECHO_C" >&6
20052 else
20053   ac_func_search_save_LIBS=$LIBS
20054 ac_cv_search_opendir=no
20055 cat >conftest.$ac_ext <<_ACEOF
20056 /* confdefs.h.  */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h.  */
20061
20062 /* Override any gcc2 internal prototype to avoid an error.  */
20063 #ifdef __cplusplus
20064 extern "C"
20065 #endif
20066 /* We use char because int might match the return type of a gcc2
20067    builtin and then its argument prototype would still apply.  */
20068 char opendir ();
20069 int
20070 main ()
20071 {
20072 opendir ();
20073   ;
20074   return 0;
20075 }
20076 _ACEOF
20077 rm -f conftest.$ac_objext conftest$ac_exeext
20078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20079   (eval $ac_link) 2>conftest.er1
20080   ac_status=$?
20081   grep -v '^ *+' conftest.er1 >conftest.err
20082   rm -f conftest.er1
20083   cat conftest.err >&5
20084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085   (exit $ac_status); } &&
20086          { ac_try='test -z "$ac_c_werror_flag"
20087                          || test ! -s conftest.err'
20088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089   (eval $ac_try) 2>&5
20090   ac_status=$?
20091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092   (exit $ac_status); }; } &&
20093          { ac_try='test -s conftest$ac_exeext'
20094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095   (eval $ac_try) 2>&5
20096   ac_status=$?
20097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098   (exit $ac_status); }; }; then
20099   ac_cv_search_opendir="none required"
20100 else
20101   echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20103
20104 fi
20105 rm -f conftest.err conftest.$ac_objext \
20106       conftest$ac_exeext conftest.$ac_ext
20107 if test "$ac_cv_search_opendir" = no; then
20108   for ac_lib in dir; do
20109     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20110     cat >conftest.$ac_ext <<_ACEOF
20111 /* confdefs.h.  */
20112 _ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h.  */
20116
20117 /* Override any gcc2 internal prototype to avoid an error.  */
20118 #ifdef __cplusplus
20119 extern "C"
20120 #endif
20121 /* We use char because int might match the return type of a gcc2
20122    builtin and then its argument prototype would still apply.  */
20123 char opendir ();
20124 int
20125 main ()
20126 {
20127 opendir ();
20128   ;
20129   return 0;
20130 }
20131 _ACEOF
20132 rm -f conftest.$ac_objext conftest$ac_exeext
20133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20134   (eval $ac_link) 2>conftest.er1
20135   ac_status=$?
20136   grep -v '^ *+' conftest.er1 >conftest.err
20137   rm -f conftest.er1
20138   cat conftest.err >&5
20139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140   (exit $ac_status); } &&
20141          { ac_try='test -z "$ac_c_werror_flag"
20142                          || test ! -s conftest.err'
20143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144   (eval $ac_try) 2>&5
20145   ac_status=$?
20146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147   (exit $ac_status); }; } &&
20148          { ac_try='test -s conftest$ac_exeext'
20149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150   (eval $ac_try) 2>&5
20151   ac_status=$?
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); }; }; then
20154   ac_cv_search_opendir="-l$ac_lib"
20155 break
20156 else
20157   echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20159
20160 fi
20161 rm -f conftest.err conftest.$ac_objext \
20162       conftest$ac_exeext conftest.$ac_ext
20163   done
20164 fi
20165 LIBS=$ac_func_search_save_LIBS
20166 fi
20167 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20168 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20169 if test "$ac_cv_search_opendir" != no; then
20170   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20171
20172 fi
20173
20174 else
20175   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20176 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20177 if test "${ac_cv_search_opendir+set}" = set; then
20178   echo $ECHO_N "(cached) $ECHO_C" >&6
20179 else
20180   ac_func_search_save_LIBS=$LIBS
20181 ac_cv_search_opendir=no
20182 cat >conftest.$ac_ext <<_ACEOF
20183 /* confdefs.h.  */
20184 _ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h.  */
20188
20189 /* Override any gcc2 internal prototype to avoid an error.  */
20190 #ifdef __cplusplus
20191 extern "C"
20192 #endif
20193 /* We use char because int might match the return type of a gcc2
20194    builtin and then its argument prototype would still apply.  */
20195 char opendir ();
20196 int
20197 main ()
20198 {
20199 opendir ();
20200   ;
20201   return 0;
20202 }
20203 _ACEOF
20204 rm -f conftest.$ac_objext conftest$ac_exeext
20205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20206   (eval $ac_link) 2>conftest.er1
20207   ac_status=$?
20208   grep -v '^ *+' conftest.er1 >conftest.err
20209   rm -f conftest.er1
20210   cat conftest.err >&5
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); } &&
20213          { ac_try='test -z "$ac_c_werror_flag"
20214                          || test ! -s conftest.err'
20215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216   (eval $ac_try) 2>&5
20217   ac_status=$?
20218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219   (exit $ac_status); }; } &&
20220          { ac_try='test -s conftest$ac_exeext'
20221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222   (eval $ac_try) 2>&5
20223   ac_status=$?
20224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225   (exit $ac_status); }; }; then
20226   ac_cv_search_opendir="none required"
20227 else
20228   echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20230
20231 fi
20232 rm -f conftest.err conftest.$ac_objext \
20233       conftest$ac_exeext conftest.$ac_ext
20234 if test "$ac_cv_search_opendir" = no; then
20235   for ac_lib in x; do
20236     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20237     cat >conftest.$ac_ext <<_ACEOF
20238 /* confdefs.h.  */
20239 _ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h.  */
20243
20244 /* Override any gcc2 internal prototype to avoid an error.  */
20245 #ifdef __cplusplus
20246 extern "C"
20247 #endif
20248 /* We use char because int might match the return type of a gcc2
20249    builtin and then its argument prototype would still apply.  */
20250 char opendir ();
20251 int
20252 main ()
20253 {
20254 opendir ();
20255   ;
20256   return 0;
20257 }
20258 _ACEOF
20259 rm -f conftest.$ac_objext conftest$ac_exeext
20260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20261   (eval $ac_link) 2>conftest.er1
20262   ac_status=$?
20263   grep -v '^ *+' conftest.er1 >conftest.err
20264   rm -f conftest.er1
20265   cat conftest.err >&5
20266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267   (exit $ac_status); } &&
20268          { ac_try='test -z "$ac_c_werror_flag"
20269                          || test ! -s conftest.err'
20270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20271   (eval $ac_try) 2>&5
20272   ac_status=$?
20273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274   (exit $ac_status); }; } &&
20275          { ac_try='test -s conftest$ac_exeext'
20276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277   (eval $ac_try) 2>&5
20278   ac_status=$?
20279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280   (exit $ac_status); }; }; then
20281   ac_cv_search_opendir="-l$ac_lib"
20282 break
20283 else
20284   echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20286
20287 fi
20288 rm -f conftest.err conftest.$ac_objext \
20289       conftest$ac_exeext conftest.$ac_ext
20290   done
20291 fi
20292 LIBS=$ac_func_search_save_LIBS
20293 fi
20294 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20295 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20296 if test "$ac_cv_search_opendir" != no; then
20297   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20298
20299 fi
20300
20301 fi
20302
20303 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20304 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20305 if test "${ac_cv_header_stat_broken+set}" = set; then
20306   echo $ECHO_N "(cached) $ECHO_C" >&6
20307 else
20308   cat >conftest.$ac_ext <<_ACEOF
20309 /* confdefs.h.  */
20310 _ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h.  */
20314 #include <sys/types.h>
20315 #include <sys/stat.h>
20316
20317 #if defined(S_ISBLK) && defined(S_IFDIR)
20318 # if S_ISBLK (S_IFDIR)
20319 You lose.
20320 # endif
20321 #endif
20322
20323 #if defined(S_ISBLK) && defined(S_IFCHR)
20324 # if S_ISBLK (S_IFCHR)
20325 You lose.
20326 # endif
20327 #endif
20328
20329 #if defined(S_ISLNK) && defined(S_IFREG)
20330 # if S_ISLNK (S_IFREG)
20331 You lose.
20332 # endif
20333 #endif
20334
20335 #if defined(S_ISSOCK) && defined(S_IFREG)
20336 # if S_ISSOCK (S_IFREG)
20337 You lose.
20338 # endif
20339 #endif
20340
20341 _ACEOF
20342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20343   $EGREP "You lose" >/dev/null 2>&1; then
20344   ac_cv_header_stat_broken=yes
20345 else
20346   ac_cv_header_stat_broken=no
20347 fi
20348 rm -f conftest*
20349
20350 fi
20351 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20352 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20353 if test $ac_cv_header_stat_broken = yes; then
20354
20355 cat >>confdefs.h <<\_ACEOF
20356 #define STAT_MACROS_BROKEN 1
20357 _ACEOF
20358
20359 fi
20360
20361 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20362 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20363 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20364   echo $ECHO_N "(cached) $ECHO_C" >&6
20365 else
20366   cat >conftest.$ac_ext <<_ACEOF
20367 /* confdefs.h.  */
20368 _ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h.  */
20372 #include <sys/types.h>
20373 #include <sys/wait.h>
20374 #ifndef WEXITSTATUS
20375 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20376 #endif
20377 #ifndef WIFEXITED
20378 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20379 #endif
20380
20381 int
20382 main ()
20383 {
20384   int s;
20385   wait (&s);
20386   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20387   ;
20388   return 0;
20389 }
20390 _ACEOF
20391 rm -f conftest.$ac_objext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20393   (eval $ac_compile) 2>conftest.er1
20394   ac_status=$?
20395   grep -v '^ *+' conftest.er1 >conftest.err
20396   rm -f conftest.er1
20397   cat conftest.err >&5
20398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399   (exit $ac_status); } &&
20400          { ac_try='test -z "$ac_c_werror_flag"
20401                          || test ! -s conftest.err'
20402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403   (eval $ac_try) 2>&5
20404   ac_status=$?
20405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406   (exit $ac_status); }; } &&
20407          { ac_try='test -s conftest.$ac_objext'
20408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409   (eval $ac_try) 2>&5
20410   ac_status=$?
20411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412   (exit $ac_status); }; }; then
20413   ac_cv_header_sys_wait_h=yes
20414 else
20415   echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20417
20418 ac_cv_header_sys_wait_h=no
20419 fi
20420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20421 fi
20422 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20423 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20424 if test $ac_cv_header_sys_wait_h = yes; then
20425
20426 cat >>confdefs.h <<\_ACEOF
20427 #define HAVE_SYS_WAIT_H 1
20428 _ACEOF
20429
20430 fi
20431
20432 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20433 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20434 if test "${ac_cv_header_time+set}" = set; then
20435   echo $ECHO_N "(cached) $ECHO_C" >&6
20436 else
20437   cat >conftest.$ac_ext <<_ACEOF
20438 /* confdefs.h.  */
20439 _ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h.  */
20443 #include <sys/types.h>
20444 #include <sys/time.h>
20445 #include <time.h>
20446
20447 int
20448 main ()
20449 {
20450 if ((struct tm *) 0)
20451 return 0;
20452   ;
20453   return 0;
20454 }
20455 _ACEOF
20456 rm -f conftest.$ac_objext
20457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20458   (eval $ac_compile) 2>conftest.er1
20459   ac_status=$?
20460   grep -v '^ *+' conftest.er1 >conftest.err
20461   rm -f conftest.er1
20462   cat conftest.err >&5
20463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464   (exit $ac_status); } &&
20465          { ac_try='test -z "$ac_c_werror_flag"
20466                          || test ! -s conftest.err'
20467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468   (eval $ac_try) 2>&5
20469   ac_status=$?
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); }; } &&
20472          { ac_try='test -s conftest.$ac_objext'
20473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474   (eval $ac_try) 2>&5
20475   ac_status=$?
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); }; }; then
20478   ac_cv_header_time=yes
20479 else
20480   echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20482
20483 ac_cv_header_time=no
20484 fi
20485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20486 fi
20487 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20488 echo "${ECHO_T}$ac_cv_header_time" >&6
20489 if test $ac_cv_header_time = yes; then
20490
20491 cat >>confdefs.h <<\_ACEOF
20492 #define TIME_WITH_SYS_TIME 1
20493 _ACEOF
20494
20495 fi
20496
20497
20498 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20499 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20500 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20501   echo $ECHO_N "(cached) $ECHO_C" >&6
20502 else
20503   cat >conftest.$ac_ext <<_ACEOF
20504 /* confdefs.h.  */
20505 _ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h.  */
20509 $ac_includes_default
20510 int
20511 main ()
20512 {
20513 static struct stat ac_aggr;
20514 if (ac_aggr.st_blksize)
20515 return 0;
20516   ;
20517   return 0;
20518 }
20519 _ACEOF
20520 rm -f conftest.$ac_objext
20521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20522   (eval $ac_compile) 2>conftest.er1
20523   ac_status=$?
20524   grep -v '^ *+' conftest.er1 >conftest.err
20525   rm -f conftest.er1
20526   cat conftest.err >&5
20527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528   (exit $ac_status); } &&
20529          { ac_try='test -z "$ac_c_werror_flag"
20530                          || test ! -s conftest.err'
20531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532   (eval $ac_try) 2>&5
20533   ac_status=$?
20534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   (exit $ac_status); }; } &&
20536          { ac_try='test -s conftest.$ac_objext'
20537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538   (eval $ac_try) 2>&5
20539   ac_status=$?
20540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541   (exit $ac_status); }; }; then
20542   ac_cv_member_struct_stat_st_blksize=yes
20543 else
20544   echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20546
20547 cat >conftest.$ac_ext <<_ACEOF
20548 /* confdefs.h.  */
20549 _ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h.  */
20553 $ac_includes_default
20554 int
20555 main ()
20556 {
20557 static struct stat ac_aggr;
20558 if (sizeof ac_aggr.st_blksize)
20559 return 0;
20560   ;
20561   return 0;
20562 }
20563 _ACEOF
20564 rm -f conftest.$ac_objext
20565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20566   (eval $ac_compile) 2>conftest.er1
20567   ac_status=$?
20568   grep -v '^ *+' conftest.er1 >conftest.err
20569   rm -f conftest.er1
20570   cat conftest.err >&5
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); } &&
20573          { ac_try='test -z "$ac_c_werror_flag"
20574                          || test ! -s conftest.err'
20575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576   (eval $ac_try) 2>&5
20577   ac_status=$?
20578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579   (exit $ac_status); }; } &&
20580          { ac_try='test -s conftest.$ac_objext'
20581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582   (eval $ac_try) 2>&5
20583   ac_status=$?
20584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585   (exit $ac_status); }; }; then
20586   ac_cv_member_struct_stat_st_blksize=yes
20587 else
20588   echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20590
20591 ac_cv_member_struct_stat_st_blksize=no
20592 fi
20593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20594 fi
20595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20596 fi
20597 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20598 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20599 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20600
20601 cat >>confdefs.h <<_ACEOF
20602 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20603 _ACEOF
20604
20605
20606 cat >>confdefs.h <<\_ACEOF
20607 #define HAVE_ST_BLKSIZE 1
20608 _ACEOF
20609
20610 fi
20611
20612
20613 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20614 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20615 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20616   echo $ECHO_N "(cached) $ECHO_C" >&6
20617 else
20618   cat >conftest.$ac_ext <<_ACEOF
20619 /* confdefs.h.  */
20620 _ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h.  */
20624 $ac_includes_default
20625 int
20626 main ()
20627 {
20628 static struct stat ac_aggr;
20629 if (ac_aggr.st_blocks)
20630 return 0;
20631   ;
20632   return 0;
20633 }
20634 _ACEOF
20635 rm -f conftest.$ac_objext
20636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20637   (eval $ac_compile) 2>conftest.er1
20638   ac_status=$?
20639   grep -v '^ *+' conftest.er1 >conftest.err
20640   rm -f conftest.er1
20641   cat conftest.err >&5
20642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); } &&
20644          { ac_try='test -z "$ac_c_werror_flag"
20645                          || test ! -s conftest.err'
20646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20647   (eval $ac_try) 2>&5
20648   ac_status=$?
20649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650   (exit $ac_status); }; } &&
20651          { ac_try='test -s conftest.$ac_objext'
20652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653   (eval $ac_try) 2>&5
20654   ac_status=$?
20655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656   (exit $ac_status); }; }; then
20657   ac_cv_member_struct_stat_st_blocks=yes
20658 else
20659   echo "$as_me: failed program was:" >&5
20660 sed 's/^/| /' conftest.$ac_ext >&5
20661
20662 cat >conftest.$ac_ext <<_ACEOF
20663 /* confdefs.h.  */
20664 _ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h.  */
20668 $ac_includes_default
20669 int
20670 main ()
20671 {
20672 static struct stat ac_aggr;
20673 if (sizeof ac_aggr.st_blocks)
20674 return 0;
20675   ;
20676   return 0;
20677 }
20678 _ACEOF
20679 rm -f conftest.$ac_objext
20680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20681   (eval $ac_compile) 2>conftest.er1
20682   ac_status=$?
20683   grep -v '^ *+' conftest.er1 >conftest.err
20684   rm -f conftest.er1
20685   cat conftest.err >&5
20686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687   (exit $ac_status); } &&
20688          { ac_try='test -z "$ac_c_werror_flag"
20689                          || test ! -s conftest.err'
20690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691   (eval $ac_try) 2>&5
20692   ac_status=$?
20693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694   (exit $ac_status); }; } &&
20695          { ac_try='test -s conftest.$ac_objext'
20696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697   (eval $ac_try) 2>&5
20698   ac_status=$?
20699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); }; }; then
20701   ac_cv_member_struct_stat_st_blocks=yes
20702 else
20703   echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20705
20706 ac_cv_member_struct_stat_st_blocks=no
20707 fi
20708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20709 fi
20710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20711 fi
20712 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20713 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20714 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20715
20716 cat >>confdefs.h <<_ACEOF
20717 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20718 _ACEOF
20719
20720
20721 cat >>confdefs.h <<\_ACEOF
20722 #define HAVE_ST_BLOCKS 1
20723 _ACEOF
20724
20725 else
20726   case $LIBOBJS in
20727     "fileblocks.$ac_objext"   | \
20728   *" fileblocks.$ac_objext"   | \
20729     "fileblocks.$ac_objext "* | \
20730   *" fileblocks.$ac_objext "* ) ;;
20731   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20732 esac
20733
20734 fi
20735
20736
20737 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20738 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20739 if test "${ac_cv_struct_tm+set}" = set; then
20740   echo $ECHO_N "(cached) $ECHO_C" >&6
20741 else
20742   cat >conftest.$ac_ext <<_ACEOF
20743 /* confdefs.h.  */
20744 _ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h.  */
20748 #include <sys/types.h>
20749 #include <time.h>
20750
20751 int
20752 main ()
20753 {
20754 struct tm *tp; tp->tm_sec;
20755   ;
20756   return 0;
20757 }
20758 _ACEOF
20759 rm -f conftest.$ac_objext
20760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20761   (eval $ac_compile) 2>conftest.er1
20762   ac_status=$?
20763   grep -v '^ *+' conftest.er1 >conftest.err
20764   rm -f conftest.er1
20765   cat conftest.err >&5
20766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767   (exit $ac_status); } &&
20768          { ac_try='test -z "$ac_c_werror_flag"
20769                          || test ! -s conftest.err'
20770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771   (eval $ac_try) 2>&5
20772   ac_status=$?
20773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774   (exit $ac_status); }; } &&
20775          { ac_try='test -s conftest.$ac_objext'
20776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20777   (eval $ac_try) 2>&5
20778   ac_status=$?
20779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780   (exit $ac_status); }; }; then
20781   ac_cv_struct_tm=time.h
20782 else
20783   echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.$ac_ext >&5
20785
20786 ac_cv_struct_tm=sys/time.h
20787 fi
20788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20789 fi
20790 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20791 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20792 if test $ac_cv_struct_tm = sys/time.h; then
20793
20794 cat >>confdefs.h <<\_ACEOF
20795 #define TM_IN_SYS_TIME 1
20796 _ACEOF
20797
20798 fi
20799
20800 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20801 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20802 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20803   echo $ECHO_N "(cached) $ECHO_C" >&6
20804 else
20805   cat >conftest.$ac_ext <<_ACEOF
20806 /* confdefs.h.  */
20807 _ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h.  */
20811 #include <sys/types.h>
20812 #include <$ac_cv_struct_tm>
20813
20814
20815 int
20816 main ()
20817 {
20818 static struct tm ac_aggr;
20819 if (ac_aggr.tm_zone)
20820 return 0;
20821   ;
20822   return 0;
20823 }
20824 _ACEOF
20825 rm -f conftest.$ac_objext
20826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20827   (eval $ac_compile) 2>conftest.er1
20828   ac_status=$?
20829   grep -v '^ *+' conftest.er1 >conftest.err
20830   rm -f conftest.er1
20831   cat conftest.err >&5
20832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833   (exit $ac_status); } &&
20834          { ac_try='test -z "$ac_c_werror_flag"
20835                          || test ! -s conftest.err'
20836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837   (eval $ac_try) 2>&5
20838   ac_status=$?
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); }; } &&
20841          { ac_try='test -s conftest.$ac_objext'
20842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20843   (eval $ac_try) 2>&5
20844   ac_status=$?
20845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846   (exit $ac_status); }; }; then
20847   ac_cv_member_struct_tm_tm_zone=yes
20848 else
20849   echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20851
20852 cat >conftest.$ac_ext <<_ACEOF
20853 /* confdefs.h.  */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h.  */
20858 #include <sys/types.h>
20859 #include <$ac_cv_struct_tm>
20860
20861
20862 int
20863 main ()
20864 {
20865 static struct tm ac_aggr;
20866 if (sizeof ac_aggr.tm_zone)
20867 return 0;
20868   ;
20869   return 0;
20870 }
20871 _ACEOF
20872 rm -f conftest.$ac_objext
20873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20874   (eval $ac_compile) 2>conftest.er1
20875   ac_status=$?
20876   grep -v '^ *+' conftest.er1 >conftest.err
20877   rm -f conftest.er1
20878   cat conftest.err >&5
20879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880   (exit $ac_status); } &&
20881          { ac_try='test -z "$ac_c_werror_flag"
20882                          || test ! -s conftest.err'
20883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884   (eval $ac_try) 2>&5
20885   ac_status=$?
20886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887   (exit $ac_status); }; } &&
20888          { ac_try='test -s conftest.$ac_objext'
20889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890   (eval $ac_try) 2>&5
20891   ac_status=$?
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); }; }; then
20894   ac_cv_member_struct_tm_tm_zone=yes
20895 else
20896   echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20898
20899 ac_cv_member_struct_tm_tm_zone=no
20900 fi
20901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20902 fi
20903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20904 fi
20905 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20906 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20907 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20908
20909 cat >>confdefs.h <<_ACEOF
20910 #define HAVE_STRUCT_TM_TM_ZONE 1
20911 _ACEOF
20912
20913
20914 fi
20915
20916 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20917
20918 cat >>confdefs.h <<\_ACEOF
20919 #define HAVE_TM_ZONE 1
20920 _ACEOF
20921
20922 else
20923   echo "$as_me:$LINENO: checking for tzname" >&5
20924 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20925 if test "${ac_cv_var_tzname+set}" = set; then
20926   echo $ECHO_N "(cached) $ECHO_C" >&6
20927 else
20928   cat >conftest.$ac_ext <<_ACEOF
20929 /* confdefs.h.  */
20930 _ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h.  */
20934 #include <time.h>
20935 #ifndef tzname /* For SGI.  */
20936 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
20937 #endif
20938
20939 int
20940 main ()
20941 {
20942 atoi(*tzname);
20943   ;
20944   return 0;
20945 }
20946 _ACEOF
20947 rm -f conftest.$ac_objext conftest$ac_exeext
20948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20949   (eval $ac_link) 2>conftest.er1
20950   ac_status=$?
20951   grep -v '^ *+' conftest.er1 >conftest.err
20952   rm -f conftest.er1
20953   cat conftest.err >&5
20954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955   (exit $ac_status); } &&
20956          { ac_try='test -z "$ac_c_werror_flag"
20957                          || test ! -s conftest.err'
20958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959   (eval $ac_try) 2>&5
20960   ac_status=$?
20961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962   (exit $ac_status); }; } &&
20963          { ac_try='test -s conftest$ac_exeext'
20964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965   (eval $ac_try) 2>&5
20966   ac_status=$?
20967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968   (exit $ac_status); }; }; then
20969   ac_cv_var_tzname=yes
20970 else
20971   echo "$as_me: failed program was:" >&5
20972 sed 's/^/| /' conftest.$ac_ext >&5
20973
20974 ac_cv_var_tzname=no
20975 fi
20976 rm -f conftest.err conftest.$ac_objext \
20977       conftest$ac_exeext conftest.$ac_ext
20978 fi
20979 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20980 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20981   if test $ac_cv_var_tzname = yes; then
20982
20983 cat >>confdefs.h <<\_ACEOF
20984 #define HAVE_TZNAME 1
20985 _ACEOF
20986
20987   fi
20988 fi
20989
20990
20991 echo "$as_me:$LINENO: checking for utime.h" >&5
20992 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20993 if test "${ba_cv_header_utime_h+set}" = set; then
20994   echo $ECHO_N "(cached) $ECHO_C" >&6
20995 else
20996   cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h.  */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h.  */
21002
21003 #include <sys/types.h>
21004 #include <utime.h>
21005 int
21006 main ()
21007 {
21008 struct utimbuf foo
21009   ;
21010   return 0;
21011 }
21012 _ACEOF
21013 rm -f conftest.$ac_objext
21014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21015   (eval $ac_compile) 2>conftest.er1
21016   ac_status=$?
21017   grep -v '^ *+' conftest.er1 >conftest.err
21018   rm -f conftest.er1
21019   cat conftest.err >&5
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); } &&
21022          { ac_try='test -z "$ac_c_werror_flag"
21023                          || test ! -s conftest.err'
21024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025   (eval $ac_try) 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); }; } &&
21029          { ac_try='test -s conftest.$ac_objext'
21030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031   (eval $ac_try) 2>&5
21032   ac_status=$?
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); }; }; then
21035   ba_cv_header_utime_h=yes
21036 else
21037   echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21039
21040 ba_cv_header_utime_h=no
21041 fi
21042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21043 fi
21044 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21045 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
21046 test $ba_cv_header_utime_h = yes &&
21047 cat >>confdefs.h <<\_ACEOF
21048 #define HAVE_UTIME_H 1
21049 _ACEOF
21050
21051
21052 echo "$as_me:$LINENO: checking for socklen_t" >&5
21053 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21054 if test "${ba_cv_header_socklen_t+set}" = set; then
21055   echo $ECHO_N "(cached) $ECHO_C" >&6
21056 else
21057   cat >conftest.$ac_ext <<_ACEOF
21058 /* confdefs.h.  */
21059 _ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h.  */
21063
21064 #include <sys/types.h>
21065 #include <sys/socket.h>
21066 int
21067 main ()
21068 {
21069 socklen_t x
21070   ;
21071   return 0;
21072 }
21073 _ACEOF
21074 rm -f conftest.$ac_objext
21075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21076   (eval $ac_compile) 2>conftest.er1
21077   ac_status=$?
21078   grep -v '^ *+' conftest.er1 >conftest.err
21079   rm -f conftest.er1
21080   cat conftest.err >&5
21081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082   (exit $ac_status); } &&
21083          { ac_try='test -z "$ac_c_werror_flag"
21084                          || test ! -s conftest.err'
21085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086   (eval $ac_try) 2>&5
21087   ac_status=$?
21088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089   (exit $ac_status); }; } &&
21090          { ac_try='test -s conftest.$ac_objext'
21091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21092   (eval $ac_try) 2>&5
21093   ac_status=$?
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); }; }; then
21096   ba_cv_header_socklen_t=yes
21097 else
21098   echo "$as_me: failed program was:" >&5
21099 sed 's/^/| /' conftest.$ac_ext >&5
21100
21101 ba_cv_header_socklen_t=no
21102 fi
21103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21104 fi
21105 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21106 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
21107 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21108 #define HAVE_SOCKLEN_T 1
21109 _ACEOF
21110
21111
21112 echo "$as_me:$LINENO: checking for bigendian" >&5
21113 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
21114 if test "${ba_cv_bigendian+set}" = set; then
21115   echo $ECHO_N "(cached) $ECHO_C" >&6
21116 else
21117   if test "$cross_compiling" = yes; then
21118   ba_cv_bigendian=no
21119 else
21120   cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h.  */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h.  */
21126 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21127 _ACEOF
21128 rm -f conftest$ac_exeext
21129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21130   (eval $ac_link) 2>&5
21131   ac_status=$?
21132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21135   (eval $ac_try) 2>&5
21136   ac_status=$?
21137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138   (exit $ac_status); }; }; then
21139   ba_cv_bigendian=yes
21140 else
21141   echo "$as_me: program exited with status $ac_status" >&5
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21144
21145 ( exit $ac_status )
21146 ba_cv_bigendian=no
21147 fi
21148 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21149 fi
21150 fi
21151 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21152 echo "${ECHO_T}$ba_cv_bigendian" >&6
21153 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21154 #define HAVE_BIGENDIAN 1
21155 _ACEOF
21156
21157
21158 ac_ext=cc
21159 ac_cpp='$CXXCPP $CPPFLAGS'
21160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21163
21164
21165 echo "$as_me:$LINENO: checking for typeof" >&5
21166 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
21167 if test "${ba_cv_have_typeof+set}" = set; then
21168   echo $ECHO_N "(cached) $ECHO_C" >&6
21169 else
21170   if test "$cross_compiling" = yes; then
21171   ba_cv_have_typeof=no
21172 else
21173   cat >conftest.$ac_ext <<_ACEOF
21174 /* confdefs.h.  */
21175 _ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h.  */
21179 main(){char *a = 0; a = (typeof a)a;}
21180 _ACEOF
21181 rm -f conftest$ac_exeext
21182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21183   (eval $ac_link) 2>&5
21184   ac_status=$?
21185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188   (eval $ac_try) 2>&5
21189   ac_status=$?
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); }; }; then
21192   ba_cv_have_typeof=yes
21193 else
21194   echo "$as_me: program exited with status $ac_status" >&5
21195 echo "$as_me: failed program was:" >&5
21196 sed 's/^/| /' conftest.$ac_ext >&5
21197
21198 ( exit $ac_status )
21199 ba_cv_have_typeof=no
21200 fi
21201 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21202 fi
21203 fi
21204 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21205 echo "${ECHO_T}$ba_cv_have_typeof" >&6
21206 test $ba_cv_have_typeof = yes &&
21207 cat >>confdefs.h <<\_ACEOF
21208 #define HAVE_TYPEOF 1
21209 _ACEOF
21210
21211 ac_ext=c
21212 ac_cpp='$CPP $CPPFLAGS'
21213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21216
21217
21218 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21219 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21220 if test "${ac_cv_c_const+set}" = set; then
21221   echo $ECHO_N "(cached) $ECHO_C" >&6
21222 else
21223   cat >conftest.$ac_ext <<_ACEOF
21224 /* confdefs.h.  */
21225 _ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h.  */
21229
21230 int
21231 main ()
21232 {
21233 /* FIXME: Include the comments suggested by Paul. */
21234 #ifndef __cplusplus
21235   /* Ultrix mips cc rejects this.  */
21236   typedef int charset[2];
21237   const charset x;
21238   /* SunOS 4.1.1 cc rejects this.  */
21239   char const *const *ccp;
21240   char **p;
21241   /* NEC SVR4.0.2 mips cc rejects this.  */
21242   struct point {int x, y;};
21243   static struct point const zero = {0,0};
21244   /* AIX XL C 1.02.0.0 rejects this.
21245      It does not let you subtract one const X* pointer from another in
21246      an arm of an if-expression whose if-part is not a constant
21247      expression */
21248   const char *g = "string";
21249   ccp = &g + (g ? g-g : 0);
21250   /* HPUX 7.0 cc rejects these. */
21251   ++ccp;
21252   p = (char**) ccp;
21253   ccp = (char const *const *) p;
21254   { /* SCO 3.2v4 cc rejects this.  */
21255     char *t;
21256     char const *s = 0 ? (char *) 0 : (char const *) 0;
21257
21258     *t++ = 0;
21259   }
21260   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21261     int x[] = {25, 17};
21262     const int *foo = &x[0];
21263     ++foo;
21264   }
21265   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21266     typedef const int *iptr;
21267     iptr p = 0;
21268     ++p;
21269   }
21270   { /* AIX XL C 1.02.0.0 rejects this saying
21271        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21272     struct s { int j; const int *ap[3]; };
21273     struct s *b; b->j = 5;
21274   }
21275   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21276     const int foo = 10;
21277   }
21278 #endif
21279
21280   ;
21281   return 0;
21282 }
21283 _ACEOF
21284 rm -f conftest.$ac_objext
21285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21286   (eval $ac_compile) 2>conftest.er1
21287   ac_status=$?
21288   grep -v '^ *+' conftest.er1 >conftest.err
21289   rm -f conftest.er1
21290   cat conftest.err >&5
21291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); } &&
21293          { ac_try='test -z "$ac_c_werror_flag"
21294                          || test ! -s conftest.err'
21295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21296   (eval $ac_try) 2>&5
21297   ac_status=$?
21298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299   (exit $ac_status); }; } &&
21300          { ac_try='test -s conftest.$ac_objext'
21301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302   (eval $ac_try) 2>&5
21303   ac_status=$?
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); }; }; then
21306   ac_cv_c_const=yes
21307 else
21308   echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21310
21311 ac_cv_c_const=no
21312 fi
21313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21314 fi
21315 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21316 echo "${ECHO_T}$ac_cv_c_const" >&6
21317 if test $ac_cv_c_const = no; then
21318
21319 cat >>confdefs.h <<\_ACEOF
21320 #define const
21321 _ACEOF
21322
21323 fi
21324
21325
21326
21327 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21328 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21329 fstype=no
21330 # The order of these tests is important.
21331 cat >conftest.$ac_ext <<_ACEOF
21332 /* confdefs.h.  */
21333 _ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h.  */
21337 #include <sys/statvfs.h>
21338 #include <sys/fstyp.h>
21339 _ACEOF
21340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21341   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21342   ac_status=$?
21343   grep -v '^ *+' conftest.er1 >conftest.err
21344   rm -f conftest.er1
21345   cat conftest.err >&5
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); } >/dev/null; then
21348   if test -s conftest.err; then
21349     ac_cpp_err=$ac_c_preproc_warn_flag
21350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21351   else
21352     ac_cpp_err=
21353   fi
21354 else
21355   ac_cpp_err=yes
21356 fi
21357 if test -z "$ac_cpp_err"; then
21358   cat >>confdefs.h <<\_ACEOF
21359 #define FSTYPE_STATVFS 1
21360 _ACEOF
21361  fstype=SVR4
21362 else
21363   echo "$as_me: failed program was:" >&5
21364 sed 's/^/| /' conftest.$ac_ext >&5
21365
21366
21367 fi
21368 rm -f conftest.err conftest.$ac_ext
21369 if test $fstype = no; then
21370 cat >conftest.$ac_ext <<_ACEOF
21371 /* confdefs.h.  */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h.  */
21376 #include <sys/statfs.h>
21377 #include <sys/fstyp.h>
21378 _ACEOF
21379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21381   ac_status=$?
21382   grep -v '^ *+' conftest.er1 >conftest.err
21383   rm -f conftest.er1
21384   cat conftest.err >&5
21385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386   (exit $ac_status); } >/dev/null; then
21387   if test -s conftest.err; then
21388     ac_cpp_err=$ac_c_preproc_warn_flag
21389     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21390   else
21391     ac_cpp_err=
21392   fi
21393 else
21394   ac_cpp_err=yes
21395 fi
21396 if test -z "$ac_cpp_err"; then
21397   cat >>confdefs.h <<\_ACEOF
21398 #define FSTYPE_USG_STATFS 1
21399 _ACEOF
21400  fstype=SVR3
21401 else
21402   echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21404
21405
21406 fi
21407 rm -f conftest.err conftest.$ac_ext
21408 fi
21409 if test $fstype = no; then
21410 cat >conftest.$ac_ext <<_ACEOF
21411 /* confdefs.h.  */
21412 _ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h.  */
21416 #include <sys/statfs.h>
21417 #include <sys/vmount.h>
21418 _ACEOF
21419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21420   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21421   ac_status=$?
21422   grep -v '^ *+' conftest.er1 >conftest.err
21423   rm -f conftest.er1
21424   cat conftest.err >&5
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); } >/dev/null; then
21427   if test -s conftest.err; then
21428     ac_cpp_err=$ac_c_preproc_warn_flag
21429     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21430   else
21431     ac_cpp_err=
21432   fi
21433 else
21434   ac_cpp_err=yes
21435 fi
21436 if test -z "$ac_cpp_err"; then
21437   cat >>confdefs.h <<\_ACEOF
21438 #define FSTYPE_AIX_STATFS 1
21439 _ACEOF
21440  fstype=AIX
21441 else
21442   echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445
21446 fi
21447 rm -f conftest.err conftest.$ac_ext
21448 fi
21449 if test $fstype = no; then
21450 cat >conftest.$ac_ext <<_ACEOF
21451 /* confdefs.h.  */
21452 _ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h.  */
21456 #include <mntent.h>
21457 _ACEOF
21458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21459   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21460   ac_status=$?
21461   grep -v '^ *+' conftest.er1 >conftest.err
21462   rm -f conftest.er1
21463   cat conftest.err >&5
21464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465   (exit $ac_status); } >/dev/null; then
21466   if test -s conftest.err; then
21467     ac_cpp_err=$ac_c_preproc_warn_flag
21468     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21469   else
21470     ac_cpp_err=
21471   fi
21472 else
21473   ac_cpp_err=yes
21474 fi
21475 if test -z "$ac_cpp_err"; then
21476   cat >>confdefs.h <<\_ACEOF
21477 #define FSTYPE_MNTENT 1
21478 _ACEOF
21479  fstype=4.3BSD
21480 else
21481   echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21483
21484
21485 fi
21486 rm -f conftest.err conftest.$ac_ext
21487 fi
21488 if test $fstype = no; then
21489 cat >conftest.$ac_ext <<_ACEOF
21490 /* confdefs.h.  */
21491 _ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h.  */
21495 #include <sys/mount.h>
21496
21497 _ACEOF
21498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21499   $EGREP "f_type;" >/dev/null 2>&1; then
21500   cat >>confdefs.h <<\_ACEOF
21501 #define FSTYPE_STATFS 1
21502 _ACEOF
21503  fstype=4.4BSD/OSF1
21504 fi
21505 rm -f conftest*
21506
21507 fi
21508 if test $fstype = no; then
21509 cat >conftest.$ac_ext <<_ACEOF
21510 /* confdefs.h.  */
21511 _ACEOF
21512 cat confdefs.h >>conftest.$ac_ext
21513 cat >>conftest.$ac_ext <<_ACEOF
21514 /* end confdefs.h.  */
21515 #include <sys/mount.h>
21516 #include <sys/fs_types.h>
21517 _ACEOF
21518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21519   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21520   ac_status=$?
21521   grep -v '^ *+' conftest.er1 >conftest.err
21522   rm -f conftest.er1
21523   cat conftest.err >&5
21524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525   (exit $ac_status); } >/dev/null; then
21526   if test -s conftest.err; then
21527     ac_cpp_err=$ac_c_preproc_warn_flag
21528     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21529   else
21530     ac_cpp_err=
21531   fi
21532 else
21533   ac_cpp_err=yes
21534 fi
21535 if test -z "$ac_cpp_err"; then
21536   cat >>confdefs.h <<\_ACEOF
21537 #define FSTYPE_GETMNT 1
21538 _ACEOF
21539  fstype=Ultrix
21540 else
21541   echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21543
21544
21545 fi
21546 rm -f conftest.err conftest.$ac_ext
21547 fi
21548 echo "$as_me:$LINENO: result: $fstype" >&5
21549 echo "${ECHO_T}$fstype" >&6
21550
21551 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21552   echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21553 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21554 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21555   echo $ECHO_N "(cached) $ECHO_C" >&6
21556 fi
21557 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21558 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21559 else
21560   # Is the header compilable?
21561 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21562 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21563 cat >conftest.$ac_ext <<_ACEOF
21564 /* confdefs.h.  */
21565 _ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h.  */
21569 $ac_includes_default
21570 #include <sys/statvfs.h>
21571 _ACEOF
21572 rm -f conftest.$ac_objext
21573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21574   (eval $ac_compile) 2>conftest.er1
21575   ac_status=$?
21576   grep -v '^ *+' conftest.er1 >conftest.err
21577   rm -f conftest.er1
21578   cat conftest.err >&5
21579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580   (exit $ac_status); } &&
21581          { ac_try='test -z "$ac_c_werror_flag"
21582                          || test ! -s conftest.err'
21583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584   (eval $ac_try) 2>&5
21585   ac_status=$?
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); }; } &&
21588          { ac_try='test -s conftest.$ac_objext'
21589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590   (eval $ac_try) 2>&5
21591   ac_status=$?
21592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593   (exit $ac_status); }; }; then
21594   ac_header_compiler=yes
21595 else
21596   echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21598
21599 ac_header_compiler=no
21600 fi
21601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21603 echo "${ECHO_T}$ac_header_compiler" >&6
21604
21605 # Is the header present?
21606 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21607 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21608 cat >conftest.$ac_ext <<_ACEOF
21609 /* confdefs.h.  */
21610 _ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h.  */
21614 #include <sys/statvfs.h>
21615 _ACEOF
21616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21617   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21618   ac_status=$?
21619   grep -v '^ *+' conftest.er1 >conftest.err
21620   rm -f conftest.er1
21621   cat conftest.err >&5
21622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623   (exit $ac_status); } >/dev/null; then
21624   if test -s conftest.err; then
21625     ac_cpp_err=$ac_c_preproc_warn_flag
21626     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21627   else
21628     ac_cpp_err=
21629   fi
21630 else
21631   ac_cpp_err=yes
21632 fi
21633 if test -z "$ac_cpp_err"; then
21634   ac_header_preproc=yes
21635 else
21636   echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21638
21639   ac_header_preproc=no
21640 fi
21641 rm -f conftest.err conftest.$ac_ext
21642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21643 echo "${ECHO_T}$ac_header_preproc" >&6
21644
21645 # So?  What about this header?
21646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21647   yes:no: )
21648     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21649 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21650     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21651 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21652     ac_header_preproc=yes
21653     ;;
21654   no:yes:* )
21655     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21656 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21657     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21658 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21659     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21660 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21661     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21662 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21663     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21664 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21665     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21666 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21667     (
21668       cat <<\_ASBOX
21669 ## ------------------------------------------ ##
21670 ## Report this to the AC_PACKAGE_NAME lists.  ##
21671 ## ------------------------------------------ ##
21672 _ASBOX
21673     ) |
21674       sed "s/^/$as_me: WARNING:     /" >&2
21675     ;;
21676 esac
21677 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21678 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21679 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21680   echo $ECHO_N "(cached) $ECHO_C" >&6
21681 else
21682   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21683 fi
21684 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21685 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21686
21687 fi
21688 if test $ac_cv_header_sys_statvfs_h = yes; then
21689
21690 cat >>confdefs.h <<\_ACEOF
21691 #define HAVE_SYS_STATVFS_H 1
21692 _ACEOF
21693
21694 fi
21695
21696
21697
21698 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21699 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21700 if test "${ac_cv_type_signal+set}" = set; then
21701   echo $ECHO_N "(cached) $ECHO_C" >&6
21702 else
21703   cat >conftest.$ac_ext <<_ACEOF
21704 /* confdefs.h.  */
21705 _ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h.  */
21709 #include <sys/types.h>
21710 #include <signal.h>
21711 #ifdef signal
21712 # undef signal
21713 #endif
21714 #ifdef __cplusplus
21715 extern "C" void (*signal (int, void (*)(int)))(int);
21716 #else
21717 void (*signal ()) ();
21718 #endif
21719
21720 int
21721 main ()
21722 {
21723 int i;
21724   ;
21725   return 0;
21726 }
21727 _ACEOF
21728 rm -f conftest.$ac_objext
21729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21730   (eval $ac_compile) 2>conftest.er1
21731   ac_status=$?
21732   grep -v '^ *+' conftest.er1 >conftest.err
21733   rm -f conftest.er1
21734   cat conftest.err >&5
21735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736   (exit $ac_status); } &&
21737          { ac_try='test -z "$ac_c_werror_flag"
21738                          || test ! -s conftest.err'
21739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740   (eval $ac_try) 2>&5
21741   ac_status=$?
21742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743   (exit $ac_status); }; } &&
21744          { ac_try='test -s conftest.$ac_objext'
21745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746   (eval $ac_try) 2>&5
21747   ac_status=$?
21748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749   (exit $ac_status); }; }; then
21750   ac_cv_type_signal=void
21751 else
21752   echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21754
21755 ac_cv_type_signal=int
21756 fi
21757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21758 fi
21759 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21760 echo "${ECHO_T}$ac_cv_type_signal" >&6
21761
21762 cat >>confdefs.h <<_ACEOF
21763 #define RETSIGTYPE $ac_cv_type_signal
21764 _ACEOF
21765
21766
21767
21768   echo "$as_me:$LINENO: checking for type of signal functions" >&5
21769 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21770   if test "${bash_cv_signal_vintage+set}" = set; then
21771   echo $ECHO_N "(cached) $ECHO_C" >&6
21772 else
21773
21774     cat >conftest.$ac_ext <<_ACEOF
21775 /* confdefs.h.  */
21776 _ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h.  */
21780 #include <signal.h>
21781 int
21782 main ()
21783 {
21784
21785       sigset_t ss;
21786       struct sigaction sa;
21787       sigemptyset(&ss); sigsuspend(&ss);
21788       sigaction(SIGINT, &sa, (struct sigaction *) 0);
21789       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21790
21791   ;
21792   return 0;
21793 }
21794 _ACEOF
21795 rm -f conftest.$ac_objext conftest$ac_exeext
21796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21797   (eval $ac_link) 2>conftest.er1
21798   ac_status=$?
21799   grep -v '^ *+' conftest.er1 >conftest.err
21800   rm -f conftest.er1
21801   cat conftest.err >&5
21802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803   (exit $ac_status); } &&
21804          { ac_try='test -z "$ac_c_werror_flag"
21805                          || test ! -s conftest.err'
21806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807   (eval $ac_try) 2>&5
21808   ac_status=$?
21809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); }; } &&
21811          { ac_try='test -s conftest$ac_exeext'
21812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813   (eval $ac_try) 2>&5
21814   ac_status=$?
21815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); }; }; then
21817   bash_cv_signal_vintage="posix"
21818 else
21819   echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21821
21822
21823       cat >conftest.$ac_ext <<_ACEOF
21824 /* confdefs.h.  */
21825 _ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h.  */
21829 #include <signal.h>
21830 int
21831 main ()
21832 {
21833
21834           int mask = sigmask(SIGINT);
21835           sigsetmask(mask); sigblock(mask); sigpause(mask);
21836
21837   ;
21838   return 0;
21839 }
21840 _ACEOF
21841 rm -f conftest.$ac_objext conftest$ac_exeext
21842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21843   (eval $ac_link) 2>conftest.er1
21844   ac_status=$?
21845   grep -v '^ *+' conftest.er1 >conftest.err
21846   rm -f conftest.er1
21847   cat conftest.err >&5
21848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849   (exit $ac_status); } &&
21850          { ac_try='test -z "$ac_c_werror_flag"
21851                          || test ! -s conftest.err'
21852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21853   (eval $ac_try) 2>&5
21854   ac_status=$?
21855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856   (exit $ac_status); }; } &&
21857          { ac_try='test -s conftest$ac_exeext'
21858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859   (eval $ac_try) 2>&5
21860   ac_status=$?
21861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862   (exit $ac_status); }; }; then
21863   bash_cv_signal_vintage="4.2bsd"
21864 else
21865   echo "$as_me: failed program was:" >&5
21866 sed 's/^/| /' conftest.$ac_ext >&5
21867
21868
21869         cat >conftest.$ac_ext <<_ACEOF
21870 /* confdefs.h.  */
21871 _ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h.  */
21875
21876           #include <signal.h>
21877           RETSIGTYPE foo() { }
21878 int
21879 main ()
21880 {
21881
21882                   int mask = sigmask(SIGINT);
21883                   sigset(SIGINT, foo); sigrelse(SIGINT);
21884                   sighold(SIGINT); sigpause(SIGINT);
21885
21886   ;
21887   return 0;
21888 }
21889 _ACEOF
21890 rm -f conftest.$ac_objext conftest$ac_exeext
21891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21892   (eval $ac_link) 2>conftest.er1
21893   ac_status=$?
21894   grep -v '^ *+' conftest.er1 >conftest.err
21895   rm -f conftest.er1
21896   cat conftest.err >&5
21897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898   (exit $ac_status); } &&
21899          { ac_try='test -z "$ac_c_werror_flag"
21900                          || test ! -s conftest.err'
21901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21902   (eval $ac_try) 2>&5
21903   ac_status=$?
21904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905   (exit $ac_status); }; } &&
21906          { ac_try='test -s conftest$ac_exeext'
21907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908   (eval $ac_try) 2>&5
21909   ac_status=$?
21910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911   (exit $ac_status); }; }; then
21912   bash_cv_signal_vintage="svr3"
21913 else
21914   echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21916
21917 bash_cv_signal_vintage="v7"
21918
21919 fi
21920 rm -f conftest.err conftest.$ac_objext \
21921       conftest$ac_exeext conftest.$ac_ext
21922
21923 fi
21924 rm -f conftest.err conftest.$ac_objext \
21925       conftest$ac_exeext conftest.$ac_ext
21926
21927 fi
21928 rm -f conftest.err conftest.$ac_objext \
21929       conftest$ac_exeext conftest.$ac_ext
21930
21931 fi
21932
21933   echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21934 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21935   if test "$bash_cv_signal_vintage" = "posix"; then
21936     cat >>confdefs.h <<\_ACEOF
21937 #define HAVE_POSIX_SIGNALS 1
21938 _ACEOF
21939
21940   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21941     cat >>confdefs.h <<\_ACEOF
21942 #define HAVE_BSD_SIGNALS 1
21943 _ACEOF
21944
21945   elif test "$bash_cv_signal_vintage" = "svr3"; then
21946     cat >>confdefs.h <<\_ACEOF
21947 #define HAVE_USG_SIGHOLD 1
21948 _ACEOF
21949
21950   fi
21951
21952 echo "$as_me:$LINENO: checking for mode_t" >&5
21953 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21954 if test "${ac_cv_type_mode_t+set}" = set; then
21955   echo $ECHO_N "(cached) $ECHO_C" >&6
21956 else
21957   cat >conftest.$ac_ext <<_ACEOF
21958 /* confdefs.h.  */
21959 _ACEOF
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h.  */
21963 $ac_includes_default
21964 int
21965 main ()
21966 {
21967 if ((mode_t *) 0)
21968   return 0;
21969 if (sizeof (mode_t))
21970   return 0;
21971   ;
21972   return 0;
21973 }
21974 _ACEOF
21975 rm -f conftest.$ac_objext
21976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21977   (eval $ac_compile) 2>conftest.er1
21978   ac_status=$?
21979   grep -v '^ *+' conftest.er1 >conftest.err
21980   rm -f conftest.er1
21981   cat conftest.err >&5
21982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983   (exit $ac_status); } &&
21984          { ac_try='test -z "$ac_c_werror_flag"
21985                          || test ! -s conftest.err'
21986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21987   (eval $ac_try) 2>&5
21988   ac_status=$?
21989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990   (exit $ac_status); }; } &&
21991          { ac_try='test -s conftest.$ac_objext'
21992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21993   (eval $ac_try) 2>&5
21994   ac_status=$?
21995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996   (exit $ac_status); }; }; then
21997   ac_cv_type_mode_t=yes
21998 else
21999   echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22001
22002 ac_cv_type_mode_t=no
22003 fi
22004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22005 fi
22006 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22007 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
22008 if test $ac_cv_type_mode_t = yes; then
22009   :
22010 else
22011
22012 cat >>confdefs.h <<_ACEOF
22013 #define mode_t int
22014 _ACEOF
22015
22016 fi
22017
22018 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22019 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22020 if test "${ac_cv_type_uid_t+set}" = set; then
22021   echo $ECHO_N "(cached) $ECHO_C" >&6
22022 else
22023   cat >conftest.$ac_ext <<_ACEOF
22024 /* confdefs.h.  */
22025 _ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h.  */
22029 #include <sys/types.h>
22030
22031 _ACEOF
22032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22033   $EGREP "uid_t" >/dev/null 2>&1; then
22034   ac_cv_type_uid_t=yes
22035 else
22036   ac_cv_type_uid_t=no
22037 fi
22038 rm -f conftest*
22039
22040 fi
22041 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22042 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22043 if test $ac_cv_type_uid_t = no; then
22044
22045 cat >>confdefs.h <<\_ACEOF
22046 #define uid_t int
22047 _ACEOF
22048
22049
22050 cat >>confdefs.h <<\_ACEOF
22051 #define gid_t int
22052 _ACEOF
22053
22054 fi
22055
22056 echo "$as_me:$LINENO: checking for size_t" >&5
22057 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22058 if test "${ac_cv_type_size_t+set}" = set; then
22059   echo $ECHO_N "(cached) $ECHO_C" >&6
22060 else
22061   cat >conftest.$ac_ext <<_ACEOF
22062 /* confdefs.h.  */
22063 _ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h.  */
22067 $ac_includes_default
22068 int
22069 main ()
22070 {
22071 if ((size_t *) 0)
22072   return 0;
22073 if (sizeof (size_t))
22074   return 0;
22075   ;
22076   return 0;
22077 }
22078 _ACEOF
22079 rm -f conftest.$ac_objext
22080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22081   (eval $ac_compile) 2>conftest.er1
22082   ac_status=$?
22083   grep -v '^ *+' conftest.er1 >conftest.err
22084   rm -f conftest.er1
22085   cat conftest.err >&5
22086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087   (exit $ac_status); } &&
22088          { ac_try='test -z "$ac_c_werror_flag"
22089                          || test ! -s conftest.err'
22090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091   (eval $ac_try) 2>&5
22092   ac_status=$?
22093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); }; } &&
22095          { ac_try='test -s conftest.$ac_objext'
22096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22097   (eval $ac_try) 2>&5
22098   ac_status=$?
22099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100   (exit $ac_status); }; }; then
22101   ac_cv_type_size_t=yes
22102 else
22103   echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22105
22106 ac_cv_type_size_t=no
22107 fi
22108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22109 fi
22110 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22111 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22112 if test $ac_cv_type_size_t = yes; then
22113   :
22114 else
22115
22116 cat >>confdefs.h <<_ACEOF
22117 #define size_t unsigned
22118 _ACEOF
22119
22120 fi
22121
22122 echo "$as_me:$LINENO: checking for pid_t" >&5
22123 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22124 if test "${ac_cv_type_pid_t+set}" = set; then
22125   echo $ECHO_N "(cached) $ECHO_C" >&6
22126 else
22127   cat >conftest.$ac_ext <<_ACEOF
22128 /* confdefs.h.  */
22129 _ACEOF
22130 cat confdefs.h >>conftest.$ac_ext
22131 cat >>conftest.$ac_ext <<_ACEOF
22132 /* end confdefs.h.  */
22133 $ac_includes_default
22134 int
22135 main ()
22136 {
22137 if ((pid_t *) 0)
22138   return 0;
22139 if (sizeof (pid_t))
22140   return 0;
22141   ;
22142   return 0;
22143 }
22144 _ACEOF
22145 rm -f conftest.$ac_objext
22146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22147   (eval $ac_compile) 2>conftest.er1
22148   ac_status=$?
22149   grep -v '^ *+' conftest.er1 >conftest.err
22150   rm -f conftest.er1
22151   cat conftest.err >&5
22152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153   (exit $ac_status); } &&
22154          { ac_try='test -z "$ac_c_werror_flag"
22155                          || test ! -s conftest.err'
22156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22157   (eval $ac_try) 2>&5
22158   ac_status=$?
22159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); }; } &&
22161          { ac_try='test -s conftest.$ac_objext'
22162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163   (eval $ac_try) 2>&5
22164   ac_status=$?
22165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166   (exit $ac_status); }; }; then
22167   ac_cv_type_pid_t=yes
22168 else
22169   echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22171
22172 ac_cv_type_pid_t=no
22173 fi
22174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22175 fi
22176 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22177 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22178 if test $ac_cv_type_pid_t = yes; then
22179   :
22180 else
22181
22182 cat >>confdefs.h <<_ACEOF
22183 #define pid_t int
22184 _ACEOF
22185
22186 fi
22187
22188 echo "$as_me:$LINENO: checking for off_t" >&5
22189 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22190 if test "${ac_cv_type_off_t+set}" = set; then
22191   echo $ECHO_N "(cached) $ECHO_C" >&6
22192 else
22193   cat >conftest.$ac_ext <<_ACEOF
22194 /* confdefs.h.  */
22195 _ACEOF
22196 cat confdefs.h >>conftest.$ac_ext
22197 cat >>conftest.$ac_ext <<_ACEOF
22198 /* end confdefs.h.  */
22199 $ac_includes_default
22200 int
22201 main ()
22202 {
22203 if ((off_t *) 0)
22204   return 0;
22205 if (sizeof (off_t))
22206   return 0;
22207   ;
22208   return 0;
22209 }
22210 _ACEOF
22211 rm -f conftest.$ac_objext
22212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22213   (eval $ac_compile) 2>conftest.er1
22214   ac_status=$?
22215   grep -v '^ *+' conftest.er1 >conftest.err
22216   rm -f conftest.er1
22217   cat conftest.err >&5
22218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219   (exit $ac_status); } &&
22220          { ac_try='test -z "$ac_c_werror_flag"
22221                          || test ! -s conftest.err'
22222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22223   (eval $ac_try) 2>&5
22224   ac_status=$?
22225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226   (exit $ac_status); }; } &&
22227          { ac_try='test -s conftest.$ac_objext'
22228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22229   (eval $ac_try) 2>&5
22230   ac_status=$?
22231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232   (exit $ac_status); }; }; then
22233   ac_cv_type_off_t=yes
22234 else
22235   echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22237
22238 ac_cv_type_off_t=no
22239 fi
22240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22241 fi
22242 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22243 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22244 if test $ac_cv_type_off_t = yes; then
22245   :
22246 else
22247
22248 cat >>confdefs.h <<_ACEOF
22249 #define off_t long
22250 _ACEOF
22251
22252 fi
22253
22254 echo "$as_me:$LINENO: checking for ino_t" >&5
22255 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
22256 if test "${ac_cv_type_ino_t+set}" = set; then
22257   echo $ECHO_N "(cached) $ECHO_C" >&6
22258 else
22259   cat >conftest.$ac_ext <<_ACEOF
22260 /* confdefs.h.  */
22261 _ACEOF
22262 cat confdefs.h >>conftest.$ac_ext
22263 cat >>conftest.$ac_ext <<_ACEOF
22264 /* end confdefs.h.  */
22265 $ac_includes_default
22266 int
22267 main ()
22268 {
22269 if ((ino_t *) 0)
22270   return 0;
22271 if (sizeof (ino_t))
22272   return 0;
22273   ;
22274   return 0;
22275 }
22276 _ACEOF
22277 rm -f conftest.$ac_objext
22278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22279   (eval $ac_compile) 2>conftest.er1
22280   ac_status=$?
22281   grep -v '^ *+' conftest.er1 >conftest.err
22282   rm -f conftest.er1
22283   cat conftest.err >&5
22284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285   (exit $ac_status); } &&
22286          { ac_try='test -z "$ac_c_werror_flag"
22287                          || test ! -s conftest.err'
22288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289   (eval $ac_try) 2>&5
22290   ac_status=$?
22291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292   (exit $ac_status); }; } &&
22293          { ac_try='test -s conftest.$ac_objext'
22294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295   (eval $ac_try) 2>&5
22296   ac_status=$?
22297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298   (exit $ac_status); }; }; then
22299   ac_cv_type_ino_t=yes
22300 else
22301   echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22303
22304 ac_cv_type_ino_t=no
22305 fi
22306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22307 fi
22308 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22309 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22310 if test $ac_cv_type_ino_t = yes; then
22311   :
22312 else
22313
22314 cat >>confdefs.h <<_ACEOF
22315 #define ino_t unsigned long
22316 _ACEOF
22317
22318 fi
22319
22320 echo "$as_me:$LINENO: checking for dev_t" >&5
22321 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22322 if test "${ac_cv_type_dev_t+set}" = set; then
22323   echo $ECHO_N "(cached) $ECHO_C" >&6
22324 else
22325   cat >conftest.$ac_ext <<_ACEOF
22326 /* confdefs.h.  */
22327 _ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h.  */
22331 $ac_includes_default
22332 int
22333 main ()
22334 {
22335 if ((dev_t *) 0)
22336   return 0;
22337 if (sizeof (dev_t))
22338   return 0;
22339   ;
22340   return 0;
22341 }
22342 _ACEOF
22343 rm -f conftest.$ac_objext
22344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22345   (eval $ac_compile) 2>conftest.er1
22346   ac_status=$?
22347   grep -v '^ *+' conftest.er1 >conftest.err
22348   rm -f conftest.er1
22349   cat conftest.err >&5
22350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351   (exit $ac_status); } &&
22352          { ac_try='test -z "$ac_c_werror_flag"
22353                          || test ! -s conftest.err'
22354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22355   (eval $ac_try) 2>&5
22356   ac_status=$?
22357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358   (exit $ac_status); }; } &&
22359          { ac_try='test -s conftest.$ac_objext'
22360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22361   (eval $ac_try) 2>&5
22362   ac_status=$?
22363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364   (exit $ac_status); }; }; then
22365   ac_cv_type_dev_t=yes
22366 else
22367   echo "$as_me: failed program was:" >&5
22368 sed 's/^/| /' conftest.$ac_ext >&5
22369
22370 ac_cv_type_dev_t=no
22371 fi
22372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22373 fi
22374 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22375 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22376 if test $ac_cv_type_dev_t = yes; then
22377   :
22378 else
22379
22380 cat >>confdefs.h <<_ACEOF
22381 #define dev_t unsigned long
22382 _ACEOF
22383
22384 fi
22385
22386 echo "$as_me:$LINENO: checking for daddr_t" >&5
22387 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22388 if test "${ac_cv_type_daddr_t+set}" = set; then
22389   echo $ECHO_N "(cached) $ECHO_C" >&6
22390 else
22391   cat >conftest.$ac_ext <<_ACEOF
22392 /* confdefs.h.  */
22393 _ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h.  */
22397 $ac_includes_default
22398 int
22399 main ()
22400 {
22401 if ((daddr_t *) 0)
22402   return 0;
22403 if (sizeof (daddr_t))
22404   return 0;
22405   ;
22406   return 0;
22407 }
22408 _ACEOF
22409 rm -f conftest.$ac_objext
22410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22411   (eval $ac_compile) 2>conftest.er1
22412   ac_status=$?
22413   grep -v '^ *+' conftest.er1 >conftest.err
22414   rm -f conftest.er1
22415   cat conftest.err >&5
22416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417   (exit $ac_status); } &&
22418          { ac_try='test -z "$ac_c_werror_flag"
22419                          || test ! -s conftest.err'
22420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421   (eval $ac_try) 2>&5
22422   ac_status=$?
22423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424   (exit $ac_status); }; } &&
22425          { ac_try='test -s conftest.$ac_objext'
22426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22427   (eval $ac_try) 2>&5
22428   ac_status=$?
22429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430   (exit $ac_status); }; }; then
22431   ac_cv_type_daddr_t=yes
22432 else
22433   echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22435
22436 ac_cv_type_daddr_t=no
22437 fi
22438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22439 fi
22440 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22441 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22442 if test $ac_cv_type_daddr_t = yes; then
22443   :
22444 else
22445
22446 cat >>confdefs.h <<_ACEOF
22447 #define daddr_t long
22448 _ACEOF
22449
22450 fi
22451
22452 echo "$as_me:$LINENO: checking for major_t" >&5
22453 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22454 if test "${ac_cv_type_major_t+set}" = set; then
22455   echo $ECHO_N "(cached) $ECHO_C" >&6
22456 else
22457   cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h.  */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h.  */
22463 $ac_includes_default
22464 int
22465 main ()
22466 {
22467 if ((major_t *) 0)
22468   return 0;
22469 if (sizeof (major_t))
22470   return 0;
22471   ;
22472   return 0;
22473 }
22474 _ACEOF
22475 rm -f conftest.$ac_objext
22476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22477   (eval $ac_compile) 2>conftest.er1
22478   ac_status=$?
22479   grep -v '^ *+' conftest.er1 >conftest.err
22480   rm -f conftest.er1
22481   cat conftest.err >&5
22482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483   (exit $ac_status); } &&
22484          { ac_try='test -z "$ac_c_werror_flag"
22485                          || test ! -s conftest.err'
22486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487   (eval $ac_try) 2>&5
22488   ac_status=$?
22489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490   (exit $ac_status); }; } &&
22491          { ac_try='test -s conftest.$ac_objext'
22492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493   (eval $ac_try) 2>&5
22494   ac_status=$?
22495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496   (exit $ac_status); }; }; then
22497   ac_cv_type_major_t=yes
22498 else
22499   echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22501
22502 ac_cv_type_major_t=no
22503 fi
22504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22505 fi
22506 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22507 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22508 if test $ac_cv_type_major_t = yes; then
22509   :
22510 else
22511
22512 cat >>confdefs.h <<_ACEOF
22513 #define major_t int
22514 _ACEOF
22515
22516 fi
22517
22518 echo "$as_me:$LINENO: checking for minor_t" >&5
22519 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22520 if test "${ac_cv_type_minor_t+set}" = set; then
22521   echo $ECHO_N "(cached) $ECHO_C" >&6
22522 else
22523   cat >conftest.$ac_ext <<_ACEOF
22524 /* confdefs.h.  */
22525 _ACEOF
22526 cat confdefs.h >>conftest.$ac_ext
22527 cat >>conftest.$ac_ext <<_ACEOF
22528 /* end confdefs.h.  */
22529 $ac_includes_default
22530 int
22531 main ()
22532 {
22533 if ((minor_t *) 0)
22534   return 0;
22535 if (sizeof (minor_t))
22536   return 0;
22537   ;
22538   return 0;
22539 }
22540 _ACEOF
22541 rm -f conftest.$ac_objext
22542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22543   (eval $ac_compile) 2>conftest.er1
22544   ac_status=$?
22545   grep -v '^ *+' conftest.er1 >conftest.err
22546   rm -f conftest.er1
22547   cat conftest.err >&5
22548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549   (exit $ac_status); } &&
22550          { ac_try='test -z "$ac_c_werror_flag"
22551                          || test ! -s conftest.err'
22552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22553   (eval $ac_try) 2>&5
22554   ac_status=$?
22555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556   (exit $ac_status); }; } &&
22557          { ac_try='test -s conftest.$ac_objext'
22558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22559   (eval $ac_try) 2>&5
22560   ac_status=$?
22561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562   (exit $ac_status); }; }; then
22563   ac_cv_type_minor_t=yes
22564 else
22565   echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22567
22568 ac_cv_type_minor_t=no
22569 fi
22570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22571 fi
22572 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22573 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22574 if test $ac_cv_type_minor_t = yes; then
22575   :
22576 else
22577
22578 cat >>confdefs.h <<_ACEOF
22579 #define minor_t int
22580 _ACEOF
22581
22582 fi
22583
22584 echo "$as_me:$LINENO: checking for ssize_t" >&5
22585 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22586 if test "${ac_cv_type_ssize_t+set}" = set; then
22587   echo $ECHO_N "(cached) $ECHO_C" >&6
22588 else
22589   cat >conftest.$ac_ext <<_ACEOF
22590 /* confdefs.h.  */
22591 _ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h.  */
22595 $ac_includes_default
22596 int
22597 main ()
22598 {
22599 if ((ssize_t *) 0)
22600   return 0;
22601 if (sizeof (ssize_t))
22602   return 0;
22603   ;
22604   return 0;
22605 }
22606 _ACEOF
22607 rm -f conftest.$ac_objext
22608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22609   (eval $ac_compile) 2>conftest.er1
22610   ac_status=$?
22611   grep -v '^ *+' conftest.er1 >conftest.err
22612   rm -f conftest.er1
22613   cat conftest.err >&5
22614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615   (exit $ac_status); } &&
22616          { ac_try='test -z "$ac_c_werror_flag"
22617                          || test ! -s conftest.err'
22618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619   (eval $ac_try) 2>&5
22620   ac_status=$?
22621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622   (exit $ac_status); }; } &&
22623          { ac_try='test -s conftest.$ac_objext'
22624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22625   (eval $ac_try) 2>&5
22626   ac_status=$?
22627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628   (exit $ac_status); }; }; then
22629   ac_cv_type_ssize_t=yes
22630 else
22631   echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22633
22634 ac_cv_type_ssize_t=no
22635 fi
22636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22637 fi
22638 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22639 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22640 if test $ac_cv_type_ssize_t = yes; then
22641   :
22642 else
22643
22644 cat >>confdefs.h <<_ACEOF
22645 #define ssize_t int
22646 _ACEOF
22647
22648 fi
22649
22650 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22651 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22652 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22653   echo $ECHO_N "(cached) $ECHO_C" >&6
22654 else
22655   cat >conftest.$ac_ext <<_ACEOF
22656 /* confdefs.h.  */
22657 _ACEOF
22658 cat confdefs.h >>conftest.$ac_ext
22659 cat >>conftest.$ac_ext <<_ACEOF
22660 /* end confdefs.h.  */
22661 $ac_includes_default
22662 int
22663 main ()
22664 {
22665 static struct stat ac_aggr;
22666 if (ac_aggr.st_blocks)
22667 return 0;
22668   ;
22669   return 0;
22670 }
22671 _ACEOF
22672 rm -f conftest.$ac_objext
22673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22674   (eval $ac_compile) 2>conftest.er1
22675   ac_status=$?
22676   grep -v '^ *+' conftest.er1 >conftest.err
22677   rm -f conftest.er1
22678   cat conftest.err >&5
22679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680   (exit $ac_status); } &&
22681          { ac_try='test -z "$ac_c_werror_flag"
22682                          || test ! -s conftest.err'
22683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684   (eval $ac_try) 2>&5
22685   ac_status=$?
22686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687   (exit $ac_status); }; } &&
22688          { ac_try='test -s conftest.$ac_objext'
22689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690   (eval $ac_try) 2>&5
22691   ac_status=$?
22692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693   (exit $ac_status); }; }; then
22694   ac_cv_member_struct_stat_st_blocks=yes
22695 else
22696   echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22698
22699 cat >conftest.$ac_ext <<_ACEOF
22700 /* confdefs.h.  */
22701 _ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h.  */
22705 $ac_includes_default
22706 int
22707 main ()
22708 {
22709 static struct stat ac_aggr;
22710 if (sizeof ac_aggr.st_blocks)
22711 return 0;
22712   ;
22713   return 0;
22714 }
22715 _ACEOF
22716 rm -f conftest.$ac_objext
22717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22718   (eval $ac_compile) 2>conftest.er1
22719   ac_status=$?
22720   grep -v '^ *+' conftest.er1 >conftest.err
22721   rm -f conftest.er1
22722   cat conftest.err >&5
22723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724   (exit $ac_status); } &&
22725          { ac_try='test -z "$ac_c_werror_flag"
22726                          || test ! -s conftest.err'
22727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22728   (eval $ac_try) 2>&5
22729   ac_status=$?
22730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731   (exit $ac_status); }; } &&
22732          { ac_try='test -s conftest.$ac_objext'
22733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734   (eval $ac_try) 2>&5
22735   ac_status=$?
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); }; }; then
22738   ac_cv_member_struct_stat_st_blocks=yes
22739 else
22740   echo "$as_me: failed program was:" >&5
22741 sed 's/^/| /' conftest.$ac_ext >&5
22742
22743 ac_cv_member_struct_stat_st_blocks=no
22744 fi
22745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22746 fi
22747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22748 fi
22749 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22750 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22751 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22752
22753 cat >>confdefs.h <<_ACEOF
22754 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22755 _ACEOF
22756
22757
22758 cat >>confdefs.h <<\_ACEOF
22759 #define HAVE_ST_BLOCKS 1
22760 _ACEOF
22761
22762 else
22763   case $LIBOBJS in
22764     "fileblocks.$ac_objext"   | \
22765   *" fileblocks.$ac_objext"   | \
22766     "fileblocks.$ac_objext "* | \
22767   *" fileblocks.$ac_objext "* ) ;;
22768   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22769 esac
22770
22771 fi
22772
22773
22774
22775 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22776 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22777 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22778   echo $ECHO_N "(cached) $ECHO_C" >&6
22779 else
22780   cat >conftest.$ac_ext <<_ACEOF
22781 /* confdefs.h.  */
22782 _ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h.  */
22786 $ac_includes_default
22787 int
22788 main ()
22789 {
22790 static struct stat ac_aggr;
22791 if (ac_aggr.st_rdev)
22792 return 0;
22793   ;
22794   return 0;
22795 }
22796 _ACEOF
22797 rm -f conftest.$ac_objext
22798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22799   (eval $ac_compile) 2>conftest.er1
22800   ac_status=$?
22801   grep -v '^ *+' conftest.er1 >conftest.err
22802   rm -f conftest.er1
22803   cat conftest.err >&5
22804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805   (exit $ac_status); } &&
22806          { ac_try='test -z "$ac_c_werror_flag"
22807                          || test ! -s conftest.err'
22808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22809   (eval $ac_try) 2>&5
22810   ac_status=$?
22811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); }; } &&
22813          { ac_try='test -s conftest.$ac_objext'
22814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22815   (eval $ac_try) 2>&5
22816   ac_status=$?
22817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818   (exit $ac_status); }; }; then
22819   ac_cv_member_struct_stat_st_rdev=yes
22820 else
22821   echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22823
22824 cat >conftest.$ac_ext <<_ACEOF
22825 /* confdefs.h.  */
22826 _ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h.  */
22830 $ac_includes_default
22831 int
22832 main ()
22833 {
22834 static struct stat ac_aggr;
22835 if (sizeof ac_aggr.st_rdev)
22836 return 0;
22837   ;
22838   return 0;
22839 }
22840 _ACEOF
22841 rm -f conftest.$ac_objext
22842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22843   (eval $ac_compile) 2>conftest.er1
22844   ac_status=$?
22845   grep -v '^ *+' conftest.er1 >conftest.err
22846   rm -f conftest.er1
22847   cat conftest.err >&5
22848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849   (exit $ac_status); } &&
22850          { ac_try='test -z "$ac_c_werror_flag"
22851                          || test ! -s conftest.err'
22852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22853   (eval $ac_try) 2>&5
22854   ac_status=$?
22855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856   (exit $ac_status); }; } &&
22857          { ac_try='test -s conftest.$ac_objext'
22858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22859   (eval $ac_try) 2>&5
22860   ac_status=$?
22861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862   (exit $ac_status); }; }; then
22863   ac_cv_member_struct_stat_st_rdev=yes
22864 else
22865   echo "$as_me: failed program was:" >&5
22866 sed 's/^/| /' conftest.$ac_ext >&5
22867
22868 ac_cv_member_struct_stat_st_rdev=no
22869 fi
22870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22871 fi
22872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22873 fi
22874 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22875 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22876 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22877
22878 cat >>confdefs.h <<_ACEOF
22879 #define HAVE_STRUCT_STAT_ST_RDEV 1
22880 _ACEOF
22881
22882
22883 cat >>confdefs.h <<\_ACEOF
22884 #define HAVE_ST_RDEV 1
22885 _ACEOF
22886
22887 fi
22888
22889
22890 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22891 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22892 if test "${ac_cv_struct_tm+set}" = set; then
22893   echo $ECHO_N "(cached) $ECHO_C" >&6
22894 else
22895   cat >conftest.$ac_ext <<_ACEOF
22896 /* confdefs.h.  */
22897 _ACEOF
22898 cat confdefs.h >>conftest.$ac_ext
22899 cat >>conftest.$ac_ext <<_ACEOF
22900 /* end confdefs.h.  */
22901 #include <sys/types.h>
22902 #include <time.h>
22903
22904 int
22905 main ()
22906 {
22907 struct tm *tp; tp->tm_sec;
22908   ;
22909   return 0;
22910 }
22911 _ACEOF
22912 rm -f conftest.$ac_objext
22913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22914   (eval $ac_compile) 2>conftest.er1
22915   ac_status=$?
22916   grep -v '^ *+' conftest.er1 >conftest.err
22917   rm -f conftest.er1
22918   cat conftest.err >&5
22919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920   (exit $ac_status); } &&
22921          { ac_try='test -z "$ac_c_werror_flag"
22922                          || test ! -s conftest.err'
22923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22924   (eval $ac_try) 2>&5
22925   ac_status=$?
22926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927   (exit $ac_status); }; } &&
22928          { ac_try='test -s conftest.$ac_objext'
22929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22930   (eval $ac_try) 2>&5
22931   ac_status=$?
22932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933   (exit $ac_status); }; }; then
22934   ac_cv_struct_tm=time.h
22935 else
22936   echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22938
22939 ac_cv_struct_tm=sys/time.h
22940 fi
22941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22942 fi
22943 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22944 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22945 if test $ac_cv_struct_tm = sys/time.h; then
22946
22947 cat >>confdefs.h <<\_ACEOF
22948 #define TM_IN_SYS_TIME 1
22949 _ACEOF
22950
22951 fi
22952
22953 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22954 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22955 if test "${ac_cv_c_const+set}" = set; then
22956   echo $ECHO_N "(cached) $ECHO_C" >&6
22957 else
22958   cat >conftest.$ac_ext <<_ACEOF
22959 /* confdefs.h.  */
22960 _ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h.  */
22964
22965 int
22966 main ()
22967 {
22968 /* FIXME: Include the comments suggested by Paul. */
22969 #ifndef __cplusplus
22970   /* Ultrix mips cc rejects this.  */
22971   typedef int charset[2];
22972   const charset x;
22973   /* SunOS 4.1.1 cc rejects this.  */
22974   char const *const *ccp;
22975   char **p;
22976   /* NEC SVR4.0.2 mips cc rejects this.  */
22977   struct point {int x, y;};
22978   static struct point const zero = {0,0};
22979   /* AIX XL C 1.02.0.0 rejects this.
22980      It does not let you subtract one const X* pointer from another in
22981      an arm of an if-expression whose if-part is not a constant
22982      expression */
22983   const char *g = "string";
22984   ccp = &g + (g ? g-g : 0);
22985   /* HPUX 7.0 cc rejects these. */
22986   ++ccp;
22987   p = (char**) ccp;
22988   ccp = (char const *const *) p;
22989   { /* SCO 3.2v4 cc rejects this.  */
22990     char *t;
22991     char const *s = 0 ? (char *) 0 : (char const *) 0;
22992
22993     *t++ = 0;
22994   }
22995   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22996     int x[] = {25, 17};
22997     const int *foo = &x[0];
22998     ++foo;
22999   }
23000   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23001     typedef const int *iptr;
23002     iptr p = 0;
23003     ++p;
23004   }
23005   { /* AIX XL C 1.02.0.0 rejects this saying
23006        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23007     struct s { int j; const int *ap[3]; };
23008     struct s *b; b->j = 5;
23009   }
23010   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23011     const int foo = 10;
23012   }
23013 #endif
23014
23015   ;
23016   return 0;
23017 }
23018 _ACEOF
23019 rm -f conftest.$ac_objext
23020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23021   (eval $ac_compile) 2>conftest.er1
23022   ac_status=$?
23023   grep -v '^ *+' conftest.er1 >conftest.err
23024   rm -f conftest.er1
23025   cat conftest.err >&5
23026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027   (exit $ac_status); } &&
23028          { ac_try='test -z "$ac_c_werror_flag"
23029                          || test ! -s conftest.err'
23030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031   (eval $ac_try) 2>&5
23032   ac_status=$?
23033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034   (exit $ac_status); }; } &&
23035          { ac_try='test -s conftest.$ac_objext'
23036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23037   (eval $ac_try) 2>&5
23038   ac_status=$?
23039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040   (exit $ac_status); }; }; then
23041   ac_cv_c_const=yes
23042 else
23043   echo "$as_me: failed program was:" >&5
23044 sed 's/^/| /' conftest.$ac_ext >&5
23045
23046 ac_cv_c_const=no
23047 fi
23048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23049 fi
23050 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23051 echo "${ECHO_T}$ac_cv_c_const" >&6
23052 if test $ac_cv_c_const = no; then
23053
23054 cat >>confdefs.h <<\_ACEOF
23055 #define const
23056 _ACEOF
23057
23058 fi
23059
23060
23061
23062 echo "$as_me:$LINENO: checking for char" >&5
23063 echo $ECHO_N "checking for char... $ECHO_C" >&6
23064 if test "${ac_cv_type_char+set}" = set; then
23065   echo $ECHO_N "(cached) $ECHO_C" >&6
23066 else
23067   cat >conftest.$ac_ext <<_ACEOF
23068 /* confdefs.h.  */
23069 _ACEOF
23070 cat confdefs.h >>conftest.$ac_ext
23071 cat >>conftest.$ac_ext <<_ACEOF
23072 /* end confdefs.h.  */
23073 $ac_includes_default
23074 int
23075 main ()
23076 {
23077 if ((char *) 0)
23078   return 0;
23079 if (sizeof (char))
23080   return 0;
23081   ;
23082   return 0;
23083 }
23084 _ACEOF
23085 rm -f conftest.$ac_objext
23086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23087   (eval $ac_compile) 2>conftest.er1
23088   ac_status=$?
23089   grep -v '^ *+' conftest.er1 >conftest.err
23090   rm -f conftest.er1
23091   cat conftest.err >&5
23092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093   (exit $ac_status); } &&
23094          { ac_try='test -z "$ac_c_werror_flag"
23095                          || test ! -s conftest.err'
23096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23097   (eval $ac_try) 2>&5
23098   ac_status=$?
23099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100   (exit $ac_status); }; } &&
23101          { ac_try='test -s conftest.$ac_objext'
23102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103   (eval $ac_try) 2>&5
23104   ac_status=$?
23105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106   (exit $ac_status); }; }; then
23107   ac_cv_type_char=yes
23108 else
23109   echo "$as_me: failed program was:" >&5
23110 sed 's/^/| /' conftest.$ac_ext >&5
23111
23112 ac_cv_type_char=no
23113 fi
23114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23115 fi
23116 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23117 echo "${ECHO_T}$ac_cv_type_char" >&6
23118
23119 echo "$as_me:$LINENO: checking size of char" >&5
23120 echo $ECHO_N "checking size of char... $ECHO_C" >&6
23121 if test "${ac_cv_sizeof_char+set}" = set; then
23122   echo $ECHO_N "(cached) $ECHO_C" >&6
23123 else
23124   if test "$ac_cv_type_char" = yes; then
23125   # The cast to unsigned long works around a bug in the HP C Compiler
23126   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23127   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23128   # This bug is HP SR number 8606223364.
23129   if test "$cross_compiling" = yes; then
23130   # Depending upon the size, compute the lo and hi bounds.
23131 cat >conftest.$ac_ext <<_ACEOF
23132 /* confdefs.h.  */
23133 _ACEOF
23134 cat confdefs.h >>conftest.$ac_ext
23135 cat >>conftest.$ac_ext <<_ACEOF
23136 /* end confdefs.h.  */
23137 $ac_includes_default
23138 int
23139 main ()
23140 {
23141 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
23142 test_array [0] = 0
23143
23144   ;
23145   return 0;
23146 }
23147 _ACEOF
23148 rm -f conftest.$ac_objext
23149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23150   (eval $ac_compile) 2>conftest.er1
23151   ac_status=$?
23152   grep -v '^ *+' conftest.er1 >conftest.err
23153   rm -f conftest.er1
23154   cat conftest.err >&5
23155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156   (exit $ac_status); } &&
23157          { ac_try='test -z "$ac_c_werror_flag"
23158                          || test ! -s conftest.err'
23159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23160   (eval $ac_try) 2>&5
23161   ac_status=$?
23162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163   (exit $ac_status); }; } &&
23164          { ac_try='test -s conftest.$ac_objext'
23165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166   (eval $ac_try) 2>&5
23167   ac_status=$?
23168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169   (exit $ac_status); }; }; then
23170   ac_lo=0 ac_mid=0
23171   while :; do
23172     cat >conftest.$ac_ext <<_ACEOF
23173 /* confdefs.h.  */
23174 _ACEOF
23175 cat confdefs.h >>conftest.$ac_ext
23176 cat >>conftest.$ac_ext <<_ACEOF
23177 /* end confdefs.h.  */
23178 $ac_includes_default
23179 int
23180 main ()
23181 {
23182 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23183 test_array [0] = 0
23184
23185   ;
23186   return 0;
23187 }
23188 _ACEOF
23189 rm -f conftest.$ac_objext
23190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23191   (eval $ac_compile) 2>conftest.er1
23192   ac_status=$?
23193   grep -v '^ *+' conftest.er1 >conftest.err
23194   rm -f conftest.er1
23195   cat conftest.err >&5
23196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197   (exit $ac_status); } &&
23198          { ac_try='test -z "$ac_c_werror_flag"
23199                          || test ! -s conftest.err'
23200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23201   (eval $ac_try) 2>&5
23202   ac_status=$?
23203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204   (exit $ac_status); }; } &&
23205          { ac_try='test -s conftest.$ac_objext'
23206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207   (eval $ac_try) 2>&5
23208   ac_status=$?
23209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210   (exit $ac_status); }; }; then
23211   ac_hi=$ac_mid; break
23212 else
23213   echo "$as_me: failed program was:" >&5
23214 sed 's/^/| /' conftest.$ac_ext >&5
23215
23216 ac_lo=`expr $ac_mid + 1`
23217                     if test $ac_lo -le $ac_mid; then
23218                       ac_lo= ac_hi=
23219                       break
23220                     fi
23221                     ac_mid=`expr 2 '*' $ac_mid + 1`
23222 fi
23223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23224   done
23225 else
23226   echo "$as_me: failed program was:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23228
23229 cat >conftest.$ac_ext <<_ACEOF
23230 /* confdefs.h.  */
23231 _ACEOF
23232 cat confdefs.h >>conftest.$ac_ext
23233 cat >>conftest.$ac_ext <<_ACEOF
23234 /* end confdefs.h.  */
23235 $ac_includes_default
23236 int
23237 main ()
23238 {
23239 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
23240 test_array [0] = 0
23241
23242   ;
23243   return 0;
23244 }
23245 _ACEOF
23246 rm -f conftest.$ac_objext
23247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23248   (eval $ac_compile) 2>conftest.er1
23249   ac_status=$?
23250   grep -v '^ *+' conftest.er1 >conftest.err
23251   rm -f conftest.er1
23252   cat conftest.err >&5
23253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254   (exit $ac_status); } &&
23255          { ac_try='test -z "$ac_c_werror_flag"
23256                          || test ! -s conftest.err'
23257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23258   (eval $ac_try) 2>&5
23259   ac_status=$?
23260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261   (exit $ac_status); }; } &&
23262          { ac_try='test -s conftest.$ac_objext'
23263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264   (eval $ac_try) 2>&5
23265   ac_status=$?
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); }; }; then
23268   ac_hi=-1 ac_mid=-1
23269   while :; do
23270     cat >conftest.$ac_ext <<_ACEOF
23271 /* confdefs.h.  */
23272 _ACEOF
23273 cat confdefs.h >>conftest.$ac_ext
23274 cat >>conftest.$ac_ext <<_ACEOF
23275 /* end confdefs.h.  */
23276 $ac_includes_default
23277 int
23278 main ()
23279 {
23280 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23281 test_array [0] = 0
23282
23283   ;
23284   return 0;
23285 }
23286 _ACEOF
23287 rm -f conftest.$ac_objext
23288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23289   (eval $ac_compile) 2>conftest.er1
23290   ac_status=$?
23291   grep -v '^ *+' conftest.er1 >conftest.err
23292   rm -f conftest.er1
23293   cat conftest.err >&5
23294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295   (exit $ac_status); } &&
23296          { ac_try='test -z "$ac_c_werror_flag"
23297                          || test ! -s conftest.err'
23298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299   (eval $ac_try) 2>&5
23300   ac_status=$?
23301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302   (exit $ac_status); }; } &&
23303          { ac_try='test -s conftest.$ac_objext'
23304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23305   (eval $ac_try) 2>&5
23306   ac_status=$?
23307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308   (exit $ac_status); }; }; then
23309   ac_lo=$ac_mid; break
23310 else
23311   echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23313
23314 ac_hi=`expr '(' $ac_mid ')' - 1`
23315                        if test $ac_mid -le $ac_hi; then
23316                          ac_lo= ac_hi=
23317                          break
23318                        fi
23319                        ac_mid=`expr 2 '*' $ac_mid`
23320 fi
23321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23322   done
23323 else
23324   echo "$as_me: failed program was:" >&5
23325 sed 's/^/| /' conftest.$ac_ext >&5
23326
23327 ac_lo= ac_hi=
23328 fi
23329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23330 fi
23331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23332 # Binary search between lo and hi bounds.
23333 while test "x$ac_lo" != "x$ac_hi"; do
23334   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23335   cat >conftest.$ac_ext <<_ACEOF
23336 /* confdefs.h.  */
23337 _ACEOF
23338 cat confdefs.h >>conftest.$ac_ext
23339 cat >>conftest.$ac_ext <<_ACEOF
23340 /* end confdefs.h.  */
23341 $ac_includes_default
23342 int
23343 main ()
23344 {
23345 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23346 test_array [0] = 0
23347
23348   ;
23349   return 0;
23350 }
23351 _ACEOF
23352 rm -f conftest.$ac_objext
23353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23354   (eval $ac_compile) 2>conftest.er1
23355   ac_status=$?
23356   grep -v '^ *+' conftest.er1 >conftest.err
23357   rm -f conftest.er1
23358   cat conftest.err >&5
23359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360   (exit $ac_status); } &&
23361          { ac_try='test -z "$ac_c_werror_flag"
23362                          || test ! -s conftest.err'
23363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23364   (eval $ac_try) 2>&5
23365   ac_status=$?
23366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367   (exit $ac_status); }; } &&
23368          { ac_try='test -s conftest.$ac_objext'
23369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23370   (eval $ac_try) 2>&5
23371   ac_status=$?
23372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373   (exit $ac_status); }; }; then
23374   ac_hi=$ac_mid
23375 else
23376   echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23378
23379 ac_lo=`expr '(' $ac_mid ')' + 1`
23380 fi
23381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23382 done
23383 case $ac_lo in
23384 ?*) ac_cv_sizeof_char=$ac_lo;;
23385 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23386 See \`config.log' for more details." >&5
23387 echo "$as_me: error: cannot compute sizeof (char), 77
23388 See \`config.log' for more details." >&2;}
23389    { (exit 1); exit 1; }; } ;;
23390 esac
23391 else
23392   if test "$cross_compiling" = yes; then
23393   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23394 See \`config.log' for more details." >&5
23395 echo "$as_me: error: cannot run test program while cross compiling
23396 See \`config.log' for more details." >&2;}
23397    { (exit 1); exit 1; }; }
23398 else
23399   cat >conftest.$ac_ext <<_ACEOF
23400 /* confdefs.h.  */
23401 _ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h.  */
23405 $ac_includes_default
23406 long longval () { return (long) (sizeof (char)); }
23407 unsigned long ulongval () { return (long) (sizeof (char)); }
23408 #include <stdio.h>
23409 #include <stdlib.h>
23410 int
23411 main ()
23412 {
23413
23414   FILE *f = fopen ("conftest.val", "w");
23415   if (! f)
23416     exit (1);
23417   if (((long) (sizeof (char))) < 0)
23418     {
23419       long i = longval ();
23420       if (i != ((long) (sizeof (char))))
23421         exit (1);
23422       fprintf (f, "%ld\n", i);
23423     }
23424   else
23425     {
23426       unsigned long i = ulongval ();
23427       if (i != ((long) (sizeof (char))))
23428         exit (1);
23429       fprintf (f, "%lu\n", i);
23430     }
23431   exit (ferror (f) || fclose (f) != 0);
23432
23433   ;
23434   return 0;
23435 }
23436 _ACEOF
23437 rm -f conftest$ac_exeext
23438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23439   (eval $ac_link) 2>&5
23440   ac_status=$?
23441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444   (eval $ac_try) 2>&5
23445   ac_status=$?
23446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447   (exit $ac_status); }; }; then
23448   ac_cv_sizeof_char=`cat conftest.val`
23449 else
23450   echo "$as_me: program exited with status $ac_status" >&5
23451 echo "$as_me: failed program was:" >&5
23452 sed 's/^/| /' conftest.$ac_ext >&5
23453
23454 ( exit $ac_status )
23455 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23456 See \`config.log' for more details." >&5
23457 echo "$as_me: error: cannot compute sizeof (char), 77
23458 See \`config.log' for more details." >&2;}
23459    { (exit 1); exit 1; }; }
23460 fi
23461 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23462 fi
23463 fi
23464 rm -f conftest.val
23465 else
23466   ac_cv_sizeof_char=0
23467 fi
23468 fi
23469 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23470 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23471 cat >>confdefs.h <<_ACEOF
23472 #define SIZEOF_CHAR $ac_cv_sizeof_char
23473 _ACEOF
23474
23475
23476 echo "$as_me:$LINENO: checking for short int" >&5
23477 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23478 if test "${ac_cv_type_short_int+set}" = set; then
23479   echo $ECHO_N "(cached) $ECHO_C" >&6
23480 else
23481   cat >conftest.$ac_ext <<_ACEOF
23482 /* confdefs.h.  */
23483 _ACEOF
23484 cat confdefs.h >>conftest.$ac_ext
23485 cat >>conftest.$ac_ext <<_ACEOF
23486 /* end confdefs.h.  */
23487 $ac_includes_default
23488 int
23489 main ()
23490 {
23491 if ((short int *) 0)
23492   return 0;
23493 if (sizeof (short int))
23494   return 0;
23495   ;
23496   return 0;
23497 }
23498 _ACEOF
23499 rm -f conftest.$ac_objext
23500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23501   (eval $ac_compile) 2>conftest.er1
23502   ac_status=$?
23503   grep -v '^ *+' conftest.er1 >conftest.err
23504   rm -f conftest.er1
23505   cat conftest.err >&5
23506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507   (exit $ac_status); } &&
23508          { ac_try='test -z "$ac_c_werror_flag"
23509                          || test ! -s conftest.err'
23510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511   (eval $ac_try) 2>&5
23512   ac_status=$?
23513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514   (exit $ac_status); }; } &&
23515          { ac_try='test -s conftest.$ac_objext'
23516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23517   (eval $ac_try) 2>&5
23518   ac_status=$?
23519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520   (exit $ac_status); }; }; then
23521   ac_cv_type_short_int=yes
23522 else
23523   echo "$as_me: failed program was:" >&5
23524 sed 's/^/| /' conftest.$ac_ext >&5
23525
23526 ac_cv_type_short_int=no
23527 fi
23528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23529 fi
23530 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23531 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23532
23533 echo "$as_me:$LINENO: checking size of short int" >&5
23534 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23535 if test "${ac_cv_sizeof_short_int+set}" = set; then
23536   echo $ECHO_N "(cached) $ECHO_C" >&6
23537 else
23538   if test "$ac_cv_type_short_int" = yes; then
23539   # The cast to unsigned long works around a bug in the HP C Compiler
23540   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23541   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23542   # This bug is HP SR number 8606223364.
23543   if test "$cross_compiling" = yes; then
23544   # Depending upon the size, compute the lo and hi bounds.
23545 cat >conftest.$ac_ext <<_ACEOF
23546 /* confdefs.h.  */
23547 _ACEOF
23548 cat confdefs.h >>conftest.$ac_ext
23549 cat >>conftest.$ac_ext <<_ACEOF
23550 /* end confdefs.h.  */
23551 $ac_includes_default
23552 int
23553 main ()
23554 {
23555 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23556 test_array [0] = 0
23557
23558   ;
23559   return 0;
23560 }
23561 _ACEOF
23562 rm -f conftest.$ac_objext
23563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23564   (eval $ac_compile) 2>conftest.er1
23565   ac_status=$?
23566   grep -v '^ *+' conftest.er1 >conftest.err
23567   rm -f conftest.er1
23568   cat conftest.err >&5
23569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570   (exit $ac_status); } &&
23571          { ac_try='test -z "$ac_c_werror_flag"
23572                          || test ! -s conftest.err'
23573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23574   (eval $ac_try) 2>&5
23575   ac_status=$?
23576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577   (exit $ac_status); }; } &&
23578          { ac_try='test -s conftest.$ac_objext'
23579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23580   (eval $ac_try) 2>&5
23581   ac_status=$?
23582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583   (exit $ac_status); }; }; then
23584   ac_lo=0 ac_mid=0
23585   while :; do
23586     cat >conftest.$ac_ext <<_ACEOF
23587 /* confdefs.h.  */
23588 _ACEOF
23589 cat confdefs.h >>conftest.$ac_ext
23590 cat >>conftest.$ac_ext <<_ACEOF
23591 /* end confdefs.h.  */
23592 $ac_includes_default
23593 int
23594 main ()
23595 {
23596 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23597 test_array [0] = 0
23598
23599   ;
23600   return 0;
23601 }
23602 _ACEOF
23603 rm -f conftest.$ac_objext
23604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23605   (eval $ac_compile) 2>conftest.er1
23606   ac_status=$?
23607   grep -v '^ *+' conftest.er1 >conftest.err
23608   rm -f conftest.er1
23609   cat conftest.err >&5
23610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611   (exit $ac_status); } &&
23612          { ac_try='test -z "$ac_c_werror_flag"
23613                          || test ! -s conftest.err'
23614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23615   (eval $ac_try) 2>&5
23616   ac_status=$?
23617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618   (exit $ac_status); }; } &&
23619          { ac_try='test -s conftest.$ac_objext'
23620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23621   (eval $ac_try) 2>&5
23622   ac_status=$?
23623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624   (exit $ac_status); }; }; then
23625   ac_hi=$ac_mid; break
23626 else
23627   echo "$as_me: failed program was:" >&5
23628 sed 's/^/| /' conftest.$ac_ext >&5
23629
23630 ac_lo=`expr $ac_mid + 1`
23631                     if test $ac_lo -le $ac_mid; then
23632                       ac_lo= ac_hi=
23633                       break
23634                     fi
23635                     ac_mid=`expr 2 '*' $ac_mid + 1`
23636 fi
23637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23638   done
23639 else
23640   echo "$as_me: failed program was:" >&5
23641 sed 's/^/| /' conftest.$ac_ext >&5
23642
23643 cat >conftest.$ac_ext <<_ACEOF
23644 /* confdefs.h.  */
23645 _ACEOF
23646 cat confdefs.h >>conftest.$ac_ext
23647 cat >>conftest.$ac_ext <<_ACEOF
23648 /* end confdefs.h.  */
23649 $ac_includes_default
23650 int
23651 main ()
23652 {
23653 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23654 test_array [0] = 0
23655
23656   ;
23657   return 0;
23658 }
23659 _ACEOF
23660 rm -f conftest.$ac_objext
23661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23662   (eval $ac_compile) 2>conftest.er1
23663   ac_status=$?
23664   grep -v '^ *+' conftest.er1 >conftest.err
23665   rm -f conftest.er1
23666   cat conftest.err >&5
23667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668   (exit $ac_status); } &&
23669          { ac_try='test -z "$ac_c_werror_flag"
23670                          || test ! -s conftest.err'
23671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23672   (eval $ac_try) 2>&5
23673   ac_status=$?
23674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675   (exit $ac_status); }; } &&
23676          { ac_try='test -s conftest.$ac_objext'
23677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23678   (eval $ac_try) 2>&5
23679   ac_status=$?
23680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681   (exit $ac_status); }; }; then
23682   ac_hi=-1 ac_mid=-1
23683   while :; do
23684     cat >conftest.$ac_ext <<_ACEOF
23685 /* confdefs.h.  */
23686 _ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h.  */
23690 $ac_includes_default
23691 int
23692 main ()
23693 {
23694 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23695 test_array [0] = 0
23696
23697   ;
23698   return 0;
23699 }
23700 _ACEOF
23701 rm -f conftest.$ac_objext
23702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23703   (eval $ac_compile) 2>conftest.er1
23704   ac_status=$?
23705   grep -v '^ *+' conftest.er1 >conftest.err
23706   rm -f conftest.er1
23707   cat conftest.err >&5
23708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709   (exit $ac_status); } &&
23710          { ac_try='test -z "$ac_c_werror_flag"
23711                          || test ! -s conftest.err'
23712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23713   (eval $ac_try) 2>&5
23714   ac_status=$?
23715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716   (exit $ac_status); }; } &&
23717          { ac_try='test -s conftest.$ac_objext'
23718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23719   (eval $ac_try) 2>&5
23720   ac_status=$?
23721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722   (exit $ac_status); }; }; then
23723   ac_lo=$ac_mid; break
23724 else
23725   echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23727
23728 ac_hi=`expr '(' $ac_mid ')' - 1`
23729                        if test $ac_mid -le $ac_hi; then
23730                          ac_lo= ac_hi=
23731                          break
23732                        fi
23733                        ac_mid=`expr 2 '*' $ac_mid`
23734 fi
23735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23736   done
23737 else
23738   echo "$as_me: failed program was:" >&5
23739 sed 's/^/| /' conftest.$ac_ext >&5
23740
23741 ac_lo= ac_hi=
23742 fi
23743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23744 fi
23745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23746 # Binary search between lo and hi bounds.
23747 while test "x$ac_lo" != "x$ac_hi"; do
23748   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23749   cat >conftest.$ac_ext <<_ACEOF
23750 /* confdefs.h.  */
23751 _ACEOF
23752 cat confdefs.h >>conftest.$ac_ext
23753 cat >>conftest.$ac_ext <<_ACEOF
23754 /* end confdefs.h.  */
23755 $ac_includes_default
23756 int
23757 main ()
23758 {
23759 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23760 test_array [0] = 0
23761
23762   ;
23763   return 0;
23764 }
23765 _ACEOF
23766 rm -f conftest.$ac_objext
23767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23768   (eval $ac_compile) 2>conftest.er1
23769   ac_status=$?
23770   grep -v '^ *+' conftest.er1 >conftest.err
23771   rm -f conftest.er1
23772   cat conftest.err >&5
23773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774   (exit $ac_status); } &&
23775          { ac_try='test -z "$ac_c_werror_flag"
23776                          || test ! -s conftest.err'
23777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23778   (eval $ac_try) 2>&5
23779   ac_status=$?
23780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781   (exit $ac_status); }; } &&
23782          { ac_try='test -s conftest.$ac_objext'
23783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23784   (eval $ac_try) 2>&5
23785   ac_status=$?
23786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787   (exit $ac_status); }; }; then
23788   ac_hi=$ac_mid
23789 else
23790   echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23792
23793 ac_lo=`expr '(' $ac_mid ')' + 1`
23794 fi
23795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23796 done
23797 case $ac_lo in
23798 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23799 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23800 See \`config.log' for more details." >&5
23801 echo "$as_me: error: cannot compute sizeof (short int), 77
23802 See \`config.log' for more details." >&2;}
23803    { (exit 1); exit 1; }; } ;;
23804 esac
23805 else
23806   if test "$cross_compiling" = yes; then
23807   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23808 See \`config.log' for more details." >&5
23809 echo "$as_me: error: cannot run test program while cross compiling
23810 See \`config.log' for more details." >&2;}
23811    { (exit 1); exit 1; }; }
23812 else
23813   cat >conftest.$ac_ext <<_ACEOF
23814 /* confdefs.h.  */
23815 _ACEOF
23816 cat confdefs.h >>conftest.$ac_ext
23817 cat >>conftest.$ac_ext <<_ACEOF
23818 /* end confdefs.h.  */
23819 $ac_includes_default
23820 long longval () { return (long) (sizeof (short int)); }
23821 unsigned long ulongval () { return (long) (sizeof (short int)); }
23822 #include <stdio.h>
23823 #include <stdlib.h>
23824 int
23825 main ()
23826 {
23827
23828   FILE *f = fopen ("conftest.val", "w");
23829   if (! f)
23830     exit (1);
23831   if (((long) (sizeof (short int))) < 0)
23832     {
23833       long i = longval ();
23834       if (i != ((long) (sizeof (short int))))
23835         exit (1);
23836       fprintf (f, "%ld\n", i);
23837     }
23838   else
23839     {
23840       unsigned long i = ulongval ();
23841       if (i != ((long) (sizeof (short int))))
23842         exit (1);
23843       fprintf (f, "%lu\n", i);
23844     }
23845   exit (ferror (f) || fclose (f) != 0);
23846
23847   ;
23848   return 0;
23849 }
23850 _ACEOF
23851 rm -f conftest$ac_exeext
23852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23853   (eval $ac_link) 2>&5
23854   ac_status=$?
23855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23856   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23858   (eval $ac_try) 2>&5
23859   ac_status=$?
23860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861   (exit $ac_status); }; }; then
23862   ac_cv_sizeof_short_int=`cat conftest.val`
23863 else
23864   echo "$as_me: program exited with status $ac_status" >&5
23865 echo "$as_me: failed program was:" >&5
23866 sed 's/^/| /' conftest.$ac_ext >&5
23867
23868 ( exit $ac_status )
23869 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23870 See \`config.log' for more details." >&5
23871 echo "$as_me: error: cannot compute sizeof (short int), 77
23872 See \`config.log' for more details." >&2;}
23873    { (exit 1); exit 1; }; }
23874 fi
23875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23876 fi
23877 fi
23878 rm -f conftest.val
23879 else
23880   ac_cv_sizeof_short_int=0
23881 fi
23882 fi
23883 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23884 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23885 cat >>confdefs.h <<_ACEOF
23886 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23887 _ACEOF
23888
23889
23890 echo "$as_me:$LINENO: checking for int" >&5
23891 echo $ECHO_N "checking for int... $ECHO_C" >&6
23892 if test "${ac_cv_type_int+set}" = set; then
23893   echo $ECHO_N "(cached) $ECHO_C" >&6
23894 else
23895   cat >conftest.$ac_ext <<_ACEOF
23896 /* confdefs.h.  */
23897 _ACEOF
23898 cat confdefs.h >>conftest.$ac_ext
23899 cat >>conftest.$ac_ext <<_ACEOF
23900 /* end confdefs.h.  */
23901 $ac_includes_default
23902 int
23903 main ()
23904 {
23905 if ((int *) 0)
23906   return 0;
23907 if (sizeof (int))
23908   return 0;
23909   ;
23910   return 0;
23911 }
23912 _ACEOF
23913 rm -f conftest.$ac_objext
23914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23915   (eval $ac_compile) 2>conftest.er1
23916   ac_status=$?
23917   grep -v '^ *+' conftest.er1 >conftest.err
23918   rm -f conftest.er1
23919   cat conftest.err >&5
23920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921   (exit $ac_status); } &&
23922          { ac_try='test -z "$ac_c_werror_flag"
23923                          || test ! -s conftest.err'
23924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23925   (eval $ac_try) 2>&5
23926   ac_status=$?
23927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928   (exit $ac_status); }; } &&
23929          { ac_try='test -s conftest.$ac_objext'
23930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931   (eval $ac_try) 2>&5
23932   ac_status=$?
23933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934   (exit $ac_status); }; }; then
23935   ac_cv_type_int=yes
23936 else
23937   echo "$as_me: failed program was:" >&5
23938 sed 's/^/| /' conftest.$ac_ext >&5
23939
23940 ac_cv_type_int=no
23941 fi
23942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23943 fi
23944 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23945 echo "${ECHO_T}$ac_cv_type_int" >&6
23946
23947 echo "$as_me:$LINENO: checking size of int" >&5
23948 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23949 if test "${ac_cv_sizeof_int+set}" = set; then
23950   echo $ECHO_N "(cached) $ECHO_C" >&6
23951 else
23952   if test "$ac_cv_type_int" = yes; then
23953   # The cast to unsigned long works around a bug in the HP C Compiler
23954   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23955   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23956   # This bug is HP SR number 8606223364.
23957   if test "$cross_compiling" = yes; then
23958   # Depending upon the size, compute the lo and hi bounds.
23959 cat >conftest.$ac_ext <<_ACEOF
23960 /* confdefs.h.  */
23961 _ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h.  */
23965 $ac_includes_default
23966 int
23967 main ()
23968 {
23969 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23970 test_array [0] = 0
23971
23972   ;
23973   return 0;
23974 }
23975 _ACEOF
23976 rm -f conftest.$ac_objext
23977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23978   (eval $ac_compile) 2>conftest.er1
23979   ac_status=$?
23980   grep -v '^ *+' conftest.er1 >conftest.err
23981   rm -f conftest.er1
23982   cat conftest.err >&5
23983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984   (exit $ac_status); } &&
23985          { ac_try='test -z "$ac_c_werror_flag"
23986                          || test ! -s conftest.err'
23987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23988   (eval $ac_try) 2>&5
23989   ac_status=$?
23990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991   (exit $ac_status); }; } &&
23992          { ac_try='test -s conftest.$ac_objext'
23993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23994   (eval $ac_try) 2>&5
23995   ac_status=$?
23996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997   (exit $ac_status); }; }; then
23998   ac_lo=0 ac_mid=0
23999   while :; do
24000     cat >conftest.$ac_ext <<_ACEOF
24001 /* confdefs.h.  */
24002 _ACEOF
24003 cat confdefs.h >>conftest.$ac_ext
24004 cat >>conftest.$ac_ext <<_ACEOF
24005 /* end confdefs.h.  */
24006 $ac_includes_default
24007 int
24008 main ()
24009 {
24010 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24011 test_array [0] = 0
24012
24013   ;
24014   return 0;
24015 }
24016 _ACEOF
24017 rm -f conftest.$ac_objext
24018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24019   (eval $ac_compile) 2>conftest.er1
24020   ac_status=$?
24021   grep -v '^ *+' conftest.er1 >conftest.err
24022   rm -f conftest.er1
24023   cat conftest.err >&5
24024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025   (exit $ac_status); } &&
24026          { ac_try='test -z "$ac_c_werror_flag"
24027                          || test ! -s conftest.err'
24028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24029   (eval $ac_try) 2>&5
24030   ac_status=$?
24031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032   (exit $ac_status); }; } &&
24033          { ac_try='test -s conftest.$ac_objext'
24034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24035   (eval $ac_try) 2>&5
24036   ac_status=$?
24037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038   (exit $ac_status); }; }; then
24039   ac_hi=$ac_mid; break
24040 else
24041   echo "$as_me: failed program was:" >&5
24042 sed 's/^/| /' conftest.$ac_ext >&5
24043
24044 ac_lo=`expr $ac_mid + 1`
24045                     if test $ac_lo -le $ac_mid; then
24046                       ac_lo= ac_hi=
24047                       break
24048                     fi
24049                     ac_mid=`expr 2 '*' $ac_mid + 1`
24050 fi
24051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24052   done
24053 else
24054   echo "$as_me: failed program was:" >&5
24055 sed 's/^/| /' conftest.$ac_ext >&5
24056
24057 cat >conftest.$ac_ext <<_ACEOF
24058 /* confdefs.h.  */
24059 _ACEOF
24060 cat confdefs.h >>conftest.$ac_ext
24061 cat >>conftest.$ac_ext <<_ACEOF
24062 /* end confdefs.h.  */
24063 $ac_includes_default
24064 int
24065 main ()
24066 {
24067 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
24068 test_array [0] = 0
24069
24070   ;
24071   return 0;
24072 }
24073 _ACEOF
24074 rm -f conftest.$ac_objext
24075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24076   (eval $ac_compile) 2>conftest.er1
24077   ac_status=$?
24078   grep -v '^ *+' conftest.er1 >conftest.err
24079   rm -f conftest.er1
24080   cat conftest.err >&5
24081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082   (exit $ac_status); } &&
24083          { ac_try='test -z "$ac_c_werror_flag"
24084                          || test ! -s conftest.err'
24085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24086   (eval $ac_try) 2>&5
24087   ac_status=$?
24088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089   (exit $ac_status); }; } &&
24090          { ac_try='test -s conftest.$ac_objext'
24091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24092   (eval $ac_try) 2>&5
24093   ac_status=$?
24094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24095   (exit $ac_status); }; }; then
24096   ac_hi=-1 ac_mid=-1
24097   while :; do
24098     cat >conftest.$ac_ext <<_ACEOF
24099 /* confdefs.h.  */
24100 _ACEOF
24101 cat confdefs.h >>conftest.$ac_ext
24102 cat >>conftest.$ac_ext <<_ACEOF
24103 /* end confdefs.h.  */
24104 $ac_includes_default
24105 int
24106 main ()
24107 {
24108 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
24109 test_array [0] = 0
24110
24111   ;
24112   return 0;
24113 }
24114 _ACEOF
24115 rm -f conftest.$ac_objext
24116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24117   (eval $ac_compile) 2>conftest.er1
24118   ac_status=$?
24119   grep -v '^ *+' conftest.er1 >conftest.err
24120   rm -f conftest.er1
24121   cat conftest.err >&5
24122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123   (exit $ac_status); } &&
24124          { ac_try='test -z "$ac_c_werror_flag"
24125                          || test ! -s conftest.err'
24126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24127   (eval $ac_try) 2>&5
24128   ac_status=$?
24129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130   (exit $ac_status); }; } &&
24131          { ac_try='test -s conftest.$ac_objext'
24132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24133   (eval $ac_try) 2>&5
24134   ac_status=$?
24135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136   (exit $ac_status); }; }; then
24137   ac_lo=$ac_mid; break
24138 else
24139   echo "$as_me: failed program was:" >&5
24140 sed 's/^/| /' conftest.$ac_ext >&5
24141
24142 ac_hi=`expr '(' $ac_mid ')' - 1`
24143                        if test $ac_mid -le $ac_hi; then
24144                          ac_lo= ac_hi=
24145                          break
24146                        fi
24147                        ac_mid=`expr 2 '*' $ac_mid`
24148 fi
24149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24150   done
24151 else
24152   echo "$as_me: failed program was:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24154
24155 ac_lo= ac_hi=
24156 fi
24157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24158 fi
24159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24160 # Binary search between lo and hi bounds.
24161 while test "x$ac_lo" != "x$ac_hi"; do
24162   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24163   cat >conftest.$ac_ext <<_ACEOF
24164 /* confdefs.h.  */
24165 _ACEOF
24166 cat confdefs.h >>conftest.$ac_ext
24167 cat >>conftest.$ac_ext <<_ACEOF
24168 /* end confdefs.h.  */
24169 $ac_includes_default
24170 int
24171 main ()
24172 {
24173 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24174 test_array [0] = 0
24175
24176   ;
24177   return 0;
24178 }
24179 _ACEOF
24180 rm -f conftest.$ac_objext
24181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24182   (eval $ac_compile) 2>conftest.er1
24183   ac_status=$?
24184   grep -v '^ *+' conftest.er1 >conftest.err
24185   rm -f conftest.er1
24186   cat conftest.err >&5
24187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188   (exit $ac_status); } &&
24189          { ac_try='test -z "$ac_c_werror_flag"
24190                          || test ! -s conftest.err'
24191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24192   (eval $ac_try) 2>&5
24193   ac_status=$?
24194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195   (exit $ac_status); }; } &&
24196          { ac_try='test -s conftest.$ac_objext'
24197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24198   (eval $ac_try) 2>&5
24199   ac_status=$?
24200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201   (exit $ac_status); }; }; then
24202   ac_hi=$ac_mid
24203 else
24204   echo "$as_me: failed program was:" >&5
24205 sed 's/^/| /' conftest.$ac_ext >&5
24206
24207 ac_lo=`expr '(' $ac_mid ')' + 1`
24208 fi
24209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24210 done
24211 case $ac_lo in
24212 ?*) ac_cv_sizeof_int=$ac_lo;;
24213 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24214 See \`config.log' for more details." >&5
24215 echo "$as_me: error: cannot compute sizeof (int), 77
24216 See \`config.log' for more details." >&2;}
24217    { (exit 1); exit 1; }; } ;;
24218 esac
24219 else
24220   if test "$cross_compiling" = yes; then
24221   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24222 See \`config.log' for more details." >&5
24223 echo "$as_me: error: cannot run test program while cross compiling
24224 See \`config.log' for more details." >&2;}
24225    { (exit 1); exit 1; }; }
24226 else
24227   cat >conftest.$ac_ext <<_ACEOF
24228 /* confdefs.h.  */
24229 _ACEOF
24230 cat confdefs.h >>conftest.$ac_ext
24231 cat >>conftest.$ac_ext <<_ACEOF
24232 /* end confdefs.h.  */
24233 $ac_includes_default
24234 long longval () { return (long) (sizeof (int)); }
24235 unsigned long ulongval () { return (long) (sizeof (int)); }
24236 #include <stdio.h>
24237 #include <stdlib.h>
24238 int
24239 main ()
24240 {
24241
24242   FILE *f = fopen ("conftest.val", "w");
24243   if (! f)
24244     exit (1);
24245   if (((long) (sizeof (int))) < 0)
24246     {
24247       long i = longval ();
24248       if (i != ((long) (sizeof (int))))
24249         exit (1);
24250       fprintf (f, "%ld\n", i);
24251     }
24252   else
24253     {
24254       unsigned long i = ulongval ();
24255       if (i != ((long) (sizeof (int))))
24256         exit (1);
24257       fprintf (f, "%lu\n", i);
24258     }
24259   exit (ferror (f) || fclose (f) != 0);
24260
24261   ;
24262   return 0;
24263 }
24264 _ACEOF
24265 rm -f conftest$ac_exeext
24266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24267   (eval $ac_link) 2>&5
24268   ac_status=$?
24269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24272   (eval $ac_try) 2>&5
24273   ac_status=$?
24274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275   (exit $ac_status); }; }; then
24276   ac_cv_sizeof_int=`cat conftest.val`
24277 else
24278   echo "$as_me: program exited with status $ac_status" >&5
24279 echo "$as_me: failed program was:" >&5
24280 sed 's/^/| /' conftest.$ac_ext >&5
24281
24282 ( exit $ac_status )
24283 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24284 See \`config.log' for more details." >&5
24285 echo "$as_me: error: cannot compute sizeof (int), 77
24286 See \`config.log' for more details." >&2;}
24287    { (exit 1); exit 1; }; }
24288 fi
24289 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24290 fi
24291 fi
24292 rm -f conftest.val
24293 else
24294   ac_cv_sizeof_int=0
24295 fi
24296 fi
24297 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24298 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24299 cat >>confdefs.h <<_ACEOF
24300 #define SIZEOF_INT $ac_cv_sizeof_int
24301 _ACEOF
24302
24303
24304 echo "$as_me:$LINENO: checking for long int" >&5
24305 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24306 if test "${ac_cv_type_long_int+set}" = set; then
24307   echo $ECHO_N "(cached) $ECHO_C" >&6
24308 else
24309   cat >conftest.$ac_ext <<_ACEOF
24310 /* confdefs.h.  */
24311 _ACEOF
24312 cat confdefs.h >>conftest.$ac_ext
24313 cat >>conftest.$ac_ext <<_ACEOF
24314 /* end confdefs.h.  */
24315 $ac_includes_default
24316 int
24317 main ()
24318 {
24319 if ((long int *) 0)
24320   return 0;
24321 if (sizeof (long int))
24322   return 0;
24323   ;
24324   return 0;
24325 }
24326 _ACEOF
24327 rm -f conftest.$ac_objext
24328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24329   (eval $ac_compile) 2>conftest.er1
24330   ac_status=$?
24331   grep -v '^ *+' conftest.er1 >conftest.err
24332   rm -f conftest.er1
24333   cat conftest.err >&5
24334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335   (exit $ac_status); } &&
24336          { ac_try='test -z "$ac_c_werror_flag"
24337                          || test ! -s conftest.err'
24338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24339   (eval $ac_try) 2>&5
24340   ac_status=$?
24341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342   (exit $ac_status); }; } &&
24343          { ac_try='test -s conftest.$ac_objext'
24344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345   (eval $ac_try) 2>&5
24346   ac_status=$?
24347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348   (exit $ac_status); }; }; then
24349   ac_cv_type_long_int=yes
24350 else
24351   echo "$as_me: failed program was:" >&5
24352 sed 's/^/| /' conftest.$ac_ext >&5
24353
24354 ac_cv_type_long_int=no
24355 fi
24356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24357 fi
24358 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24359 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24360
24361 echo "$as_me:$LINENO: checking size of long int" >&5
24362 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24363 if test "${ac_cv_sizeof_long_int+set}" = set; then
24364   echo $ECHO_N "(cached) $ECHO_C" >&6
24365 else
24366   if test "$ac_cv_type_long_int" = yes; then
24367   # The cast to unsigned long works around a bug in the HP C Compiler
24368   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24369   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24370   # This bug is HP SR number 8606223364.
24371   if test "$cross_compiling" = yes; then
24372   # Depending upon the size, compute the lo and hi bounds.
24373 cat >conftest.$ac_ext <<_ACEOF
24374 /* confdefs.h.  */
24375 _ACEOF
24376 cat confdefs.h >>conftest.$ac_ext
24377 cat >>conftest.$ac_ext <<_ACEOF
24378 /* end confdefs.h.  */
24379 $ac_includes_default
24380 int
24381 main ()
24382 {
24383 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24384 test_array [0] = 0
24385
24386   ;
24387   return 0;
24388 }
24389 _ACEOF
24390 rm -f conftest.$ac_objext
24391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24392   (eval $ac_compile) 2>conftest.er1
24393   ac_status=$?
24394   grep -v '^ *+' conftest.er1 >conftest.err
24395   rm -f conftest.er1
24396   cat conftest.err >&5
24397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398   (exit $ac_status); } &&
24399          { ac_try='test -z "$ac_c_werror_flag"
24400                          || test ! -s conftest.err'
24401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24402   (eval $ac_try) 2>&5
24403   ac_status=$?
24404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405   (exit $ac_status); }; } &&
24406          { ac_try='test -s conftest.$ac_objext'
24407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24408   (eval $ac_try) 2>&5
24409   ac_status=$?
24410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411   (exit $ac_status); }; }; then
24412   ac_lo=0 ac_mid=0
24413   while :; do
24414     cat >conftest.$ac_ext <<_ACEOF
24415 /* confdefs.h.  */
24416 _ACEOF
24417 cat confdefs.h >>conftest.$ac_ext
24418 cat >>conftest.$ac_ext <<_ACEOF
24419 /* end confdefs.h.  */
24420 $ac_includes_default
24421 int
24422 main ()
24423 {
24424 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24425 test_array [0] = 0
24426
24427   ;
24428   return 0;
24429 }
24430 _ACEOF
24431 rm -f conftest.$ac_objext
24432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24433   (eval $ac_compile) 2>conftest.er1
24434   ac_status=$?
24435   grep -v '^ *+' conftest.er1 >conftest.err
24436   rm -f conftest.er1
24437   cat conftest.err >&5
24438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439   (exit $ac_status); } &&
24440          { ac_try='test -z "$ac_c_werror_flag"
24441                          || test ! -s conftest.err'
24442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24443   (eval $ac_try) 2>&5
24444   ac_status=$?
24445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446   (exit $ac_status); }; } &&
24447          { ac_try='test -s conftest.$ac_objext'
24448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24449   (eval $ac_try) 2>&5
24450   ac_status=$?
24451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452   (exit $ac_status); }; }; then
24453   ac_hi=$ac_mid; break
24454 else
24455   echo "$as_me: failed program was:" >&5
24456 sed 's/^/| /' conftest.$ac_ext >&5
24457
24458 ac_lo=`expr $ac_mid + 1`
24459                     if test $ac_lo -le $ac_mid; then
24460                       ac_lo= ac_hi=
24461                       break
24462                     fi
24463                     ac_mid=`expr 2 '*' $ac_mid + 1`
24464 fi
24465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24466   done
24467 else
24468   echo "$as_me: failed program was:" >&5
24469 sed 's/^/| /' conftest.$ac_ext >&5
24470
24471 cat >conftest.$ac_ext <<_ACEOF
24472 /* confdefs.h.  */
24473 _ACEOF
24474 cat confdefs.h >>conftest.$ac_ext
24475 cat >>conftest.$ac_ext <<_ACEOF
24476 /* end confdefs.h.  */
24477 $ac_includes_default
24478 int
24479 main ()
24480 {
24481 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24482 test_array [0] = 0
24483
24484   ;
24485   return 0;
24486 }
24487 _ACEOF
24488 rm -f conftest.$ac_objext
24489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24490   (eval $ac_compile) 2>conftest.er1
24491   ac_status=$?
24492   grep -v '^ *+' conftest.er1 >conftest.err
24493   rm -f conftest.er1
24494   cat conftest.err >&5
24495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496   (exit $ac_status); } &&
24497          { ac_try='test -z "$ac_c_werror_flag"
24498                          || test ! -s conftest.err'
24499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24500   (eval $ac_try) 2>&5
24501   ac_status=$?
24502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503   (exit $ac_status); }; } &&
24504          { ac_try='test -s conftest.$ac_objext'
24505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24506   (eval $ac_try) 2>&5
24507   ac_status=$?
24508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509   (exit $ac_status); }; }; then
24510   ac_hi=-1 ac_mid=-1
24511   while :; do
24512     cat >conftest.$ac_ext <<_ACEOF
24513 /* confdefs.h.  */
24514 _ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h.  */
24518 $ac_includes_default
24519 int
24520 main ()
24521 {
24522 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24523 test_array [0] = 0
24524
24525   ;
24526   return 0;
24527 }
24528 _ACEOF
24529 rm -f conftest.$ac_objext
24530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24531   (eval $ac_compile) 2>conftest.er1
24532   ac_status=$?
24533   grep -v '^ *+' conftest.er1 >conftest.err
24534   rm -f conftest.er1
24535   cat conftest.err >&5
24536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537   (exit $ac_status); } &&
24538          { ac_try='test -z "$ac_c_werror_flag"
24539                          || test ! -s conftest.err'
24540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541   (eval $ac_try) 2>&5
24542   ac_status=$?
24543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544   (exit $ac_status); }; } &&
24545          { ac_try='test -s conftest.$ac_objext'
24546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24547   (eval $ac_try) 2>&5
24548   ac_status=$?
24549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550   (exit $ac_status); }; }; then
24551   ac_lo=$ac_mid; break
24552 else
24553   echo "$as_me: failed program was:" >&5
24554 sed 's/^/| /' conftest.$ac_ext >&5
24555
24556 ac_hi=`expr '(' $ac_mid ')' - 1`
24557                        if test $ac_mid -le $ac_hi; then
24558                          ac_lo= ac_hi=
24559                          break
24560                        fi
24561                        ac_mid=`expr 2 '*' $ac_mid`
24562 fi
24563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24564   done
24565 else
24566   echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24568
24569 ac_lo= ac_hi=
24570 fi
24571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24572 fi
24573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24574 # Binary search between lo and hi bounds.
24575 while test "x$ac_lo" != "x$ac_hi"; do
24576   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24577   cat >conftest.$ac_ext <<_ACEOF
24578 /* confdefs.h.  */
24579 _ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h.  */
24583 $ac_includes_default
24584 int
24585 main ()
24586 {
24587 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24588 test_array [0] = 0
24589
24590   ;
24591   return 0;
24592 }
24593 _ACEOF
24594 rm -f conftest.$ac_objext
24595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24596   (eval $ac_compile) 2>conftest.er1
24597   ac_status=$?
24598   grep -v '^ *+' conftest.er1 >conftest.err
24599   rm -f conftest.er1
24600   cat conftest.err >&5
24601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602   (exit $ac_status); } &&
24603          { ac_try='test -z "$ac_c_werror_flag"
24604                          || test ! -s conftest.err'
24605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24606   (eval $ac_try) 2>&5
24607   ac_status=$?
24608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609   (exit $ac_status); }; } &&
24610          { ac_try='test -s conftest.$ac_objext'
24611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24612   (eval $ac_try) 2>&5
24613   ac_status=$?
24614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615   (exit $ac_status); }; }; then
24616   ac_hi=$ac_mid
24617 else
24618   echo "$as_me: failed program was:" >&5
24619 sed 's/^/| /' conftest.$ac_ext >&5
24620
24621 ac_lo=`expr '(' $ac_mid ')' + 1`
24622 fi
24623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24624 done
24625 case $ac_lo in
24626 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24627 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24628 See \`config.log' for more details." >&5
24629 echo "$as_me: error: cannot compute sizeof (long int), 77
24630 See \`config.log' for more details." >&2;}
24631    { (exit 1); exit 1; }; } ;;
24632 esac
24633 else
24634   if test "$cross_compiling" = yes; then
24635   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24636 See \`config.log' for more details." >&5
24637 echo "$as_me: error: cannot run test program while cross compiling
24638 See \`config.log' for more details." >&2;}
24639    { (exit 1); exit 1; }; }
24640 else
24641   cat >conftest.$ac_ext <<_ACEOF
24642 /* confdefs.h.  */
24643 _ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h.  */
24647 $ac_includes_default
24648 long longval () { return (long) (sizeof (long int)); }
24649 unsigned long ulongval () { return (long) (sizeof (long int)); }
24650 #include <stdio.h>
24651 #include <stdlib.h>
24652 int
24653 main ()
24654 {
24655
24656   FILE *f = fopen ("conftest.val", "w");
24657   if (! f)
24658     exit (1);
24659   if (((long) (sizeof (long int))) < 0)
24660     {
24661       long i = longval ();
24662       if (i != ((long) (sizeof (long int))))
24663         exit (1);
24664       fprintf (f, "%ld\n", i);
24665     }
24666   else
24667     {
24668       unsigned long i = ulongval ();
24669       if (i != ((long) (sizeof (long int))))
24670         exit (1);
24671       fprintf (f, "%lu\n", i);
24672     }
24673   exit (ferror (f) || fclose (f) != 0);
24674
24675   ;
24676   return 0;
24677 }
24678 _ACEOF
24679 rm -f conftest$ac_exeext
24680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24681   (eval $ac_link) 2>&5
24682   ac_status=$?
24683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24686   (eval $ac_try) 2>&5
24687   ac_status=$?
24688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689   (exit $ac_status); }; }; then
24690   ac_cv_sizeof_long_int=`cat conftest.val`
24691 else
24692   echo "$as_me: program exited with status $ac_status" >&5
24693 echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.$ac_ext >&5
24695
24696 ( exit $ac_status )
24697 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24698 See \`config.log' for more details." >&5
24699 echo "$as_me: error: cannot compute sizeof (long int), 77
24700 See \`config.log' for more details." >&2;}
24701    { (exit 1); exit 1; }; }
24702 fi
24703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24704 fi
24705 fi
24706 rm -f conftest.val
24707 else
24708   ac_cv_sizeof_long_int=0
24709 fi
24710 fi
24711 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24712 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24713 cat >>confdefs.h <<_ACEOF
24714 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24715 _ACEOF
24716
24717
24718 echo "$as_me:$LINENO: checking for long long int" >&5
24719 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24720 if test "${ac_cv_type_long_long_int+set}" = set; then
24721   echo $ECHO_N "(cached) $ECHO_C" >&6
24722 else
24723   cat >conftest.$ac_ext <<_ACEOF
24724 /* confdefs.h.  */
24725 _ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h.  */
24729 $ac_includes_default
24730 int
24731 main ()
24732 {
24733 if ((long long int *) 0)
24734   return 0;
24735 if (sizeof (long long int))
24736   return 0;
24737   ;
24738   return 0;
24739 }
24740 _ACEOF
24741 rm -f conftest.$ac_objext
24742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24743   (eval $ac_compile) 2>conftest.er1
24744   ac_status=$?
24745   grep -v '^ *+' conftest.er1 >conftest.err
24746   rm -f conftest.er1
24747   cat conftest.err >&5
24748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749   (exit $ac_status); } &&
24750          { ac_try='test -z "$ac_c_werror_flag"
24751                          || test ! -s conftest.err'
24752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24753   (eval $ac_try) 2>&5
24754   ac_status=$?
24755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756   (exit $ac_status); }; } &&
24757          { ac_try='test -s conftest.$ac_objext'
24758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24759   (eval $ac_try) 2>&5
24760   ac_status=$?
24761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762   (exit $ac_status); }; }; then
24763   ac_cv_type_long_long_int=yes
24764 else
24765   echo "$as_me: failed program was:" >&5
24766 sed 's/^/| /' conftest.$ac_ext >&5
24767
24768 ac_cv_type_long_long_int=no
24769 fi
24770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24771 fi
24772 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24773 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24774
24775 echo "$as_me:$LINENO: checking size of long long int" >&5
24776 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24777 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24778   echo $ECHO_N "(cached) $ECHO_C" >&6
24779 else
24780   if test "$ac_cv_type_long_long_int" = yes; then
24781   # The cast to unsigned long works around a bug in the HP C Compiler
24782   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24783   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24784   # This bug is HP SR number 8606223364.
24785   if test "$cross_compiling" = yes; then
24786   # Depending upon the size, compute the lo and hi bounds.
24787 cat >conftest.$ac_ext <<_ACEOF
24788 /* confdefs.h.  */
24789 _ACEOF
24790 cat confdefs.h >>conftest.$ac_ext
24791 cat >>conftest.$ac_ext <<_ACEOF
24792 /* end confdefs.h.  */
24793 $ac_includes_default
24794 int
24795 main ()
24796 {
24797 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24798 test_array [0] = 0
24799
24800   ;
24801   return 0;
24802 }
24803 _ACEOF
24804 rm -f conftest.$ac_objext
24805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24806   (eval $ac_compile) 2>conftest.er1
24807   ac_status=$?
24808   grep -v '^ *+' conftest.er1 >conftest.err
24809   rm -f conftest.er1
24810   cat conftest.err >&5
24811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812   (exit $ac_status); } &&
24813          { ac_try='test -z "$ac_c_werror_flag"
24814                          || test ! -s conftest.err'
24815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24816   (eval $ac_try) 2>&5
24817   ac_status=$?
24818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819   (exit $ac_status); }; } &&
24820          { ac_try='test -s conftest.$ac_objext'
24821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24822   (eval $ac_try) 2>&5
24823   ac_status=$?
24824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825   (exit $ac_status); }; }; then
24826   ac_lo=0 ac_mid=0
24827   while :; do
24828     cat >conftest.$ac_ext <<_ACEOF
24829 /* confdefs.h.  */
24830 _ACEOF
24831 cat confdefs.h >>conftest.$ac_ext
24832 cat >>conftest.$ac_ext <<_ACEOF
24833 /* end confdefs.h.  */
24834 $ac_includes_default
24835 int
24836 main ()
24837 {
24838 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24839 test_array [0] = 0
24840
24841   ;
24842   return 0;
24843 }
24844 _ACEOF
24845 rm -f conftest.$ac_objext
24846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24847   (eval $ac_compile) 2>conftest.er1
24848   ac_status=$?
24849   grep -v '^ *+' conftest.er1 >conftest.err
24850   rm -f conftest.er1
24851   cat conftest.err >&5
24852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853   (exit $ac_status); } &&
24854          { ac_try='test -z "$ac_c_werror_flag"
24855                          || test ! -s conftest.err'
24856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857   (eval $ac_try) 2>&5
24858   ac_status=$?
24859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860   (exit $ac_status); }; } &&
24861          { ac_try='test -s conftest.$ac_objext'
24862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24863   (eval $ac_try) 2>&5
24864   ac_status=$?
24865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866   (exit $ac_status); }; }; then
24867   ac_hi=$ac_mid; break
24868 else
24869   echo "$as_me: failed program was:" >&5
24870 sed 's/^/| /' conftest.$ac_ext >&5
24871
24872 ac_lo=`expr $ac_mid + 1`
24873                     if test $ac_lo -le $ac_mid; then
24874                       ac_lo= ac_hi=
24875                       break
24876                     fi
24877                     ac_mid=`expr 2 '*' $ac_mid + 1`
24878 fi
24879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24880   done
24881 else
24882   echo "$as_me: failed program was:" >&5
24883 sed 's/^/| /' conftest.$ac_ext >&5
24884
24885 cat >conftest.$ac_ext <<_ACEOF
24886 /* confdefs.h.  */
24887 _ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h.  */
24891 $ac_includes_default
24892 int
24893 main ()
24894 {
24895 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24896 test_array [0] = 0
24897
24898   ;
24899   return 0;
24900 }
24901 _ACEOF
24902 rm -f conftest.$ac_objext
24903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24904   (eval $ac_compile) 2>conftest.er1
24905   ac_status=$?
24906   grep -v '^ *+' conftest.er1 >conftest.err
24907   rm -f conftest.er1
24908   cat conftest.err >&5
24909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910   (exit $ac_status); } &&
24911          { ac_try='test -z "$ac_c_werror_flag"
24912                          || test ! -s conftest.err'
24913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24914   (eval $ac_try) 2>&5
24915   ac_status=$?
24916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917   (exit $ac_status); }; } &&
24918          { ac_try='test -s conftest.$ac_objext'
24919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24920   (eval $ac_try) 2>&5
24921   ac_status=$?
24922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24923   (exit $ac_status); }; }; then
24924   ac_hi=-1 ac_mid=-1
24925   while :; do
24926     cat >conftest.$ac_ext <<_ACEOF
24927 /* confdefs.h.  */
24928 _ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h.  */
24932 $ac_includes_default
24933 int
24934 main ()
24935 {
24936 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24937 test_array [0] = 0
24938
24939   ;
24940   return 0;
24941 }
24942 _ACEOF
24943 rm -f conftest.$ac_objext
24944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24945   (eval $ac_compile) 2>conftest.er1
24946   ac_status=$?
24947   grep -v '^ *+' conftest.er1 >conftest.err
24948   rm -f conftest.er1
24949   cat conftest.err >&5
24950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951   (exit $ac_status); } &&
24952          { ac_try='test -z "$ac_c_werror_flag"
24953                          || test ! -s conftest.err'
24954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24955   (eval $ac_try) 2>&5
24956   ac_status=$?
24957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958   (exit $ac_status); }; } &&
24959          { ac_try='test -s conftest.$ac_objext'
24960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24961   (eval $ac_try) 2>&5
24962   ac_status=$?
24963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964   (exit $ac_status); }; }; then
24965   ac_lo=$ac_mid; break
24966 else
24967   echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.$ac_ext >&5
24969
24970 ac_hi=`expr '(' $ac_mid ')' - 1`
24971                        if test $ac_mid -le $ac_hi; then
24972                          ac_lo= ac_hi=
24973                          break
24974                        fi
24975                        ac_mid=`expr 2 '*' $ac_mid`
24976 fi
24977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24978   done
24979 else
24980   echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24982
24983 ac_lo= ac_hi=
24984 fi
24985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24986 fi
24987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24988 # Binary search between lo and hi bounds.
24989 while test "x$ac_lo" != "x$ac_hi"; do
24990   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24991   cat >conftest.$ac_ext <<_ACEOF
24992 /* confdefs.h.  */
24993 _ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h.  */
24997 $ac_includes_default
24998 int
24999 main ()
25000 {
25001 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
25002 test_array [0] = 0
25003
25004   ;
25005   return 0;
25006 }
25007 _ACEOF
25008 rm -f conftest.$ac_objext
25009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25010   (eval $ac_compile) 2>conftest.er1
25011   ac_status=$?
25012   grep -v '^ *+' conftest.er1 >conftest.err
25013   rm -f conftest.er1
25014   cat conftest.err >&5
25015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016   (exit $ac_status); } &&
25017          { ac_try='test -z "$ac_c_werror_flag"
25018                          || test ! -s conftest.err'
25019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020   (eval $ac_try) 2>&5
25021   ac_status=$?
25022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023   (exit $ac_status); }; } &&
25024          { ac_try='test -s conftest.$ac_objext'
25025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026   (eval $ac_try) 2>&5
25027   ac_status=$?
25028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029   (exit $ac_status); }; }; then
25030   ac_hi=$ac_mid
25031 else
25032   echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25034
25035 ac_lo=`expr '(' $ac_mid ')' + 1`
25036 fi
25037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25038 done
25039 case $ac_lo in
25040 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25041 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25042 See \`config.log' for more details." >&5
25043 echo "$as_me: error: cannot compute sizeof (long long int), 77
25044 See \`config.log' for more details." >&2;}
25045    { (exit 1); exit 1; }; } ;;
25046 esac
25047 else
25048   if test "$cross_compiling" = yes; then
25049   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25050 See \`config.log' for more details." >&5
25051 echo "$as_me: error: cannot run test program while cross compiling
25052 See \`config.log' for more details." >&2;}
25053    { (exit 1); exit 1; }; }
25054 else
25055   cat >conftest.$ac_ext <<_ACEOF
25056 /* confdefs.h.  */
25057 _ACEOF
25058 cat confdefs.h >>conftest.$ac_ext
25059 cat >>conftest.$ac_ext <<_ACEOF
25060 /* end confdefs.h.  */
25061 $ac_includes_default
25062 long longval () { return (long) (sizeof (long long int)); }
25063 unsigned long ulongval () { return (long) (sizeof (long long int)); }
25064 #include <stdio.h>
25065 #include <stdlib.h>
25066 int
25067 main ()
25068 {
25069
25070   FILE *f = fopen ("conftest.val", "w");
25071   if (! f)
25072     exit (1);
25073   if (((long) (sizeof (long long int))) < 0)
25074     {
25075       long i = longval ();
25076       if (i != ((long) (sizeof (long long int))))
25077         exit (1);
25078       fprintf (f, "%ld\n", i);
25079     }
25080   else
25081     {
25082       unsigned long i = ulongval ();
25083       if (i != ((long) (sizeof (long long int))))
25084         exit (1);
25085       fprintf (f, "%lu\n", i);
25086     }
25087   exit (ferror (f) || fclose (f) != 0);
25088
25089   ;
25090   return 0;
25091 }
25092 _ACEOF
25093 rm -f conftest$ac_exeext
25094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25095   (eval $ac_link) 2>&5
25096   ac_status=$?
25097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25100   (eval $ac_try) 2>&5
25101   ac_status=$?
25102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103   (exit $ac_status); }; }; then
25104   ac_cv_sizeof_long_long_int=`cat conftest.val`
25105 else
25106   echo "$as_me: program exited with status $ac_status" >&5
25107 echo "$as_me: failed program was:" >&5
25108 sed 's/^/| /' conftest.$ac_ext >&5
25109
25110 ( exit $ac_status )
25111 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25112 See \`config.log' for more details." >&5
25113 echo "$as_me: error: cannot compute sizeof (long long int), 77
25114 See \`config.log' for more details." >&2;}
25115    { (exit 1); exit 1; }; }
25116 fi
25117 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25118 fi
25119 fi
25120 rm -f conftest.val
25121 else
25122   ac_cv_sizeof_long_long_int=0
25123 fi
25124 fi
25125 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25126 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
25127 cat >>confdefs.h <<_ACEOF
25128 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25129 _ACEOF
25130
25131
25132 echo "$as_me:$LINENO: checking for int *" >&5
25133 echo $ECHO_N "checking for int *... $ECHO_C" >&6
25134 if test "${ac_cv_type_int_p+set}" = set; then
25135   echo $ECHO_N "(cached) $ECHO_C" >&6
25136 else
25137   cat >conftest.$ac_ext <<_ACEOF
25138 /* confdefs.h.  */
25139 _ACEOF
25140 cat confdefs.h >>conftest.$ac_ext
25141 cat >>conftest.$ac_ext <<_ACEOF
25142 /* end confdefs.h.  */
25143 $ac_includes_default
25144 int
25145 main ()
25146 {
25147 if ((int * *) 0)
25148   return 0;
25149 if (sizeof (int *))
25150   return 0;
25151   ;
25152   return 0;
25153 }
25154 _ACEOF
25155 rm -f conftest.$ac_objext
25156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25157   (eval $ac_compile) 2>conftest.er1
25158   ac_status=$?
25159   grep -v '^ *+' conftest.er1 >conftest.err
25160   rm -f conftest.er1
25161   cat conftest.err >&5
25162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163   (exit $ac_status); } &&
25164          { ac_try='test -z "$ac_c_werror_flag"
25165                          || test ! -s conftest.err'
25166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25167   (eval $ac_try) 2>&5
25168   ac_status=$?
25169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170   (exit $ac_status); }; } &&
25171          { ac_try='test -s conftest.$ac_objext'
25172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25173   (eval $ac_try) 2>&5
25174   ac_status=$?
25175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176   (exit $ac_status); }; }; then
25177   ac_cv_type_int_p=yes
25178 else
25179   echo "$as_me: failed program was:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25181
25182 ac_cv_type_int_p=no
25183 fi
25184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25185 fi
25186 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25187 echo "${ECHO_T}$ac_cv_type_int_p" >&6
25188
25189 echo "$as_me:$LINENO: checking size of int *" >&5
25190 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
25191 if test "${ac_cv_sizeof_int_p+set}" = set; then
25192   echo $ECHO_N "(cached) $ECHO_C" >&6
25193 else
25194   if test "$ac_cv_type_int_p" = yes; then
25195   # The cast to unsigned long works around a bug in the HP C Compiler
25196   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25197   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25198   # This bug is HP SR number 8606223364.
25199   if test "$cross_compiling" = yes; then
25200   # Depending upon the size, compute the lo and hi bounds.
25201 cat >conftest.$ac_ext <<_ACEOF
25202 /* confdefs.h.  */
25203 _ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h.  */
25207 $ac_includes_default
25208 int
25209 main ()
25210 {
25211 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
25212 test_array [0] = 0
25213
25214   ;
25215   return 0;
25216 }
25217 _ACEOF
25218 rm -f conftest.$ac_objext
25219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25220   (eval $ac_compile) 2>conftest.er1
25221   ac_status=$?
25222   grep -v '^ *+' conftest.er1 >conftest.err
25223   rm -f conftest.er1
25224   cat conftest.err >&5
25225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226   (exit $ac_status); } &&
25227          { ac_try='test -z "$ac_c_werror_flag"
25228                          || test ! -s conftest.err'
25229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25230   (eval $ac_try) 2>&5
25231   ac_status=$?
25232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233   (exit $ac_status); }; } &&
25234          { ac_try='test -s conftest.$ac_objext'
25235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236   (eval $ac_try) 2>&5
25237   ac_status=$?
25238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239   (exit $ac_status); }; }; then
25240   ac_lo=0 ac_mid=0
25241   while :; do
25242     cat >conftest.$ac_ext <<_ACEOF
25243 /* confdefs.h.  */
25244 _ACEOF
25245 cat confdefs.h >>conftest.$ac_ext
25246 cat >>conftest.$ac_ext <<_ACEOF
25247 /* end confdefs.h.  */
25248 $ac_includes_default
25249 int
25250 main ()
25251 {
25252 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25253 test_array [0] = 0
25254
25255   ;
25256   return 0;
25257 }
25258 _ACEOF
25259 rm -f conftest.$ac_objext
25260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25261   (eval $ac_compile) 2>conftest.er1
25262   ac_status=$?
25263   grep -v '^ *+' conftest.er1 >conftest.err
25264   rm -f conftest.er1
25265   cat conftest.err >&5
25266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267   (exit $ac_status); } &&
25268          { ac_try='test -z "$ac_c_werror_flag"
25269                          || test ! -s conftest.err'
25270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25271   (eval $ac_try) 2>&5
25272   ac_status=$?
25273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25274   (exit $ac_status); }; } &&
25275          { ac_try='test -s conftest.$ac_objext'
25276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25277   (eval $ac_try) 2>&5
25278   ac_status=$?
25279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280   (exit $ac_status); }; }; then
25281   ac_hi=$ac_mid; break
25282 else
25283   echo "$as_me: failed program was:" >&5
25284 sed 's/^/| /' conftest.$ac_ext >&5
25285
25286 ac_lo=`expr $ac_mid + 1`
25287                     if test $ac_lo -le $ac_mid; then
25288                       ac_lo= ac_hi=
25289                       break
25290                     fi
25291                     ac_mid=`expr 2 '*' $ac_mid + 1`
25292 fi
25293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25294   done
25295 else
25296   echo "$as_me: failed program was:" >&5
25297 sed 's/^/| /' conftest.$ac_ext >&5
25298
25299 cat >conftest.$ac_ext <<_ACEOF
25300 /* confdefs.h.  */
25301 _ACEOF
25302 cat confdefs.h >>conftest.$ac_ext
25303 cat >>conftest.$ac_ext <<_ACEOF
25304 /* end confdefs.h.  */
25305 $ac_includes_default
25306 int
25307 main ()
25308 {
25309 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25310 test_array [0] = 0
25311
25312   ;
25313   return 0;
25314 }
25315 _ACEOF
25316 rm -f conftest.$ac_objext
25317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25318   (eval $ac_compile) 2>conftest.er1
25319   ac_status=$?
25320   grep -v '^ *+' conftest.er1 >conftest.err
25321   rm -f conftest.er1
25322   cat conftest.err >&5
25323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324   (exit $ac_status); } &&
25325          { ac_try='test -z "$ac_c_werror_flag"
25326                          || test ! -s conftest.err'
25327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25328   (eval $ac_try) 2>&5
25329   ac_status=$?
25330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331   (exit $ac_status); }; } &&
25332          { ac_try='test -s conftest.$ac_objext'
25333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25334   (eval $ac_try) 2>&5
25335   ac_status=$?
25336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337   (exit $ac_status); }; }; then
25338   ac_hi=-1 ac_mid=-1
25339   while :; do
25340     cat >conftest.$ac_ext <<_ACEOF
25341 /* confdefs.h.  */
25342 _ACEOF
25343 cat confdefs.h >>conftest.$ac_ext
25344 cat >>conftest.$ac_ext <<_ACEOF
25345 /* end confdefs.h.  */
25346 $ac_includes_default
25347 int
25348 main ()
25349 {
25350 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25351 test_array [0] = 0
25352
25353   ;
25354   return 0;
25355 }
25356 _ACEOF
25357 rm -f conftest.$ac_objext
25358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25359   (eval $ac_compile) 2>conftest.er1
25360   ac_status=$?
25361   grep -v '^ *+' conftest.er1 >conftest.err
25362   rm -f conftest.er1
25363   cat conftest.err >&5
25364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365   (exit $ac_status); } &&
25366          { ac_try='test -z "$ac_c_werror_flag"
25367                          || test ! -s conftest.err'
25368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25369   (eval $ac_try) 2>&5
25370   ac_status=$?
25371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372   (exit $ac_status); }; } &&
25373          { ac_try='test -s conftest.$ac_objext'
25374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25375   (eval $ac_try) 2>&5
25376   ac_status=$?
25377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378   (exit $ac_status); }; }; then
25379   ac_lo=$ac_mid; break
25380 else
25381   echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.$ac_ext >&5
25383
25384 ac_hi=`expr '(' $ac_mid ')' - 1`
25385                        if test $ac_mid -le $ac_hi; then
25386                          ac_lo= ac_hi=
25387                          break
25388                        fi
25389                        ac_mid=`expr 2 '*' $ac_mid`
25390 fi
25391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25392   done
25393 else
25394   echo "$as_me: failed program was:" >&5
25395 sed 's/^/| /' conftest.$ac_ext >&5
25396
25397 ac_lo= ac_hi=
25398 fi
25399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25400 fi
25401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25402 # Binary search between lo and hi bounds.
25403 while test "x$ac_lo" != "x$ac_hi"; do
25404   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25405   cat >conftest.$ac_ext <<_ACEOF
25406 /* confdefs.h.  */
25407 _ACEOF
25408 cat confdefs.h >>conftest.$ac_ext
25409 cat >>conftest.$ac_ext <<_ACEOF
25410 /* end confdefs.h.  */
25411 $ac_includes_default
25412 int
25413 main ()
25414 {
25415 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25416 test_array [0] = 0
25417
25418   ;
25419   return 0;
25420 }
25421 _ACEOF
25422 rm -f conftest.$ac_objext
25423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25424   (eval $ac_compile) 2>conftest.er1
25425   ac_status=$?
25426   grep -v '^ *+' conftest.er1 >conftest.err
25427   rm -f conftest.er1
25428   cat conftest.err >&5
25429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430   (exit $ac_status); } &&
25431          { ac_try='test -z "$ac_c_werror_flag"
25432                          || test ! -s conftest.err'
25433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25434   (eval $ac_try) 2>&5
25435   ac_status=$?
25436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437   (exit $ac_status); }; } &&
25438          { ac_try='test -s conftest.$ac_objext'
25439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25440   (eval $ac_try) 2>&5
25441   ac_status=$?
25442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443   (exit $ac_status); }; }; then
25444   ac_hi=$ac_mid
25445 else
25446   echo "$as_me: failed program was:" >&5
25447 sed 's/^/| /' conftest.$ac_ext >&5
25448
25449 ac_lo=`expr '(' $ac_mid ')' + 1`
25450 fi
25451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25452 done
25453 case $ac_lo in
25454 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25455 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25456 See \`config.log' for more details." >&5
25457 echo "$as_me: error: cannot compute sizeof (int *), 77
25458 See \`config.log' for more details." >&2;}
25459    { (exit 1); exit 1; }; } ;;
25460 esac
25461 else
25462   if test "$cross_compiling" = yes; then
25463   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25464 See \`config.log' for more details." >&5
25465 echo "$as_me: error: cannot run test program while cross compiling
25466 See \`config.log' for more details." >&2;}
25467    { (exit 1); exit 1; }; }
25468 else
25469   cat >conftest.$ac_ext <<_ACEOF
25470 /* confdefs.h.  */
25471 _ACEOF
25472 cat confdefs.h >>conftest.$ac_ext
25473 cat >>conftest.$ac_ext <<_ACEOF
25474 /* end confdefs.h.  */
25475 $ac_includes_default
25476 long longval () { return (long) (sizeof (int *)); }
25477 unsigned long ulongval () { return (long) (sizeof (int *)); }
25478 #include <stdio.h>
25479 #include <stdlib.h>
25480 int
25481 main ()
25482 {
25483
25484   FILE *f = fopen ("conftest.val", "w");
25485   if (! f)
25486     exit (1);
25487   if (((long) (sizeof (int *))) < 0)
25488     {
25489       long i = longval ();
25490       if (i != ((long) (sizeof (int *))))
25491         exit (1);
25492       fprintf (f, "%ld\n", i);
25493     }
25494   else
25495     {
25496       unsigned long i = ulongval ();
25497       if (i != ((long) (sizeof (int *))))
25498         exit (1);
25499       fprintf (f, "%lu\n", i);
25500     }
25501   exit (ferror (f) || fclose (f) != 0);
25502
25503   ;
25504   return 0;
25505 }
25506 _ACEOF
25507 rm -f conftest$ac_exeext
25508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25509   (eval $ac_link) 2>&5
25510   ac_status=$?
25511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25514   (eval $ac_try) 2>&5
25515   ac_status=$?
25516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517   (exit $ac_status); }; }; then
25518   ac_cv_sizeof_int_p=`cat conftest.val`
25519 else
25520   echo "$as_me: program exited with status $ac_status" >&5
25521 echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.$ac_ext >&5
25523
25524 ( exit $ac_status )
25525 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25526 See \`config.log' for more details." >&5
25527 echo "$as_me: error: cannot compute sizeof (int *), 77
25528 See \`config.log' for more details." >&2;}
25529    { (exit 1); exit 1; }; }
25530 fi
25531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25532 fi
25533 fi
25534 rm -f conftest.val
25535 else
25536   ac_cv_sizeof_int_p=0
25537 fi
25538 fi
25539 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25540 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25541 cat >>confdefs.h <<_ACEOF
25542 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25543 _ACEOF
25544
25545
25546
25547 # Check for sys/types.h types
25548 echo "$as_me:$LINENO: checking for u_int type" >&5
25549 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25550 if test "${ac_cv_have_u_int+set}" = set; then
25551   echo $ECHO_N "(cached) $ECHO_C" >&6
25552 else
25553
25554     cat >conftest.$ac_ext <<_ACEOF
25555 /* confdefs.h.  */
25556 _ACEOF
25557 cat confdefs.h >>conftest.$ac_ext
25558 cat >>conftest.$ac_ext <<_ACEOF
25559 /* end confdefs.h.  */
25560  #include <sys/types.h>
25561 int
25562 main ()
25563 {
25564  u_int a; a = 1;
25565   ;
25566   return 0;
25567 }
25568 _ACEOF
25569 rm -f conftest.$ac_objext
25570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25571   (eval $ac_compile) 2>conftest.er1
25572   ac_status=$?
25573   grep -v '^ *+' conftest.er1 >conftest.err
25574   rm -f conftest.er1
25575   cat conftest.err >&5
25576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577   (exit $ac_status); } &&
25578          { ac_try='test -z "$ac_c_werror_flag"
25579                          || test ! -s conftest.err'
25580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25581   (eval $ac_try) 2>&5
25582   ac_status=$?
25583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584   (exit $ac_status); }; } &&
25585          { ac_try='test -s conftest.$ac_objext'
25586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25587   (eval $ac_try) 2>&5
25588   ac_status=$?
25589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590   (exit $ac_status); }; }; then
25591    ac_cv_have_u_int="yes"
25592 else
25593   echo "$as_me: failed program was:" >&5
25594 sed 's/^/| /' conftest.$ac_ext >&5
25595
25596  ac_cv_have_u_int="no"
25597
25598 fi
25599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25600
25601 fi
25602 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25603 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25604 if test "x$ac_cv_have_u_int" = "xyes" ; then
25605    cat >>confdefs.h <<\_ACEOF
25606 #define HAVE_U_INT 1
25607 _ACEOF
25608
25609    have_u_int=1
25610 fi
25611
25612 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25613 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25614 if test "${ac_cv_have_intmax_t+set}" = set; then
25615   echo $ECHO_N "(cached) $ECHO_C" >&6
25616 else
25617
25618    cat >conftest.$ac_ext <<_ACEOF
25619 /* confdefs.h.  */
25620 _ACEOF
25621 cat confdefs.h >>conftest.$ac_ext
25622 cat >>conftest.$ac_ext <<_ACEOF
25623 /* end confdefs.h.  */
25624  #include <sys/types.h>
25625 int
25626 main ()
25627 {
25628  intmax_t a; a = 1;
25629   ;
25630   return 0;
25631 }
25632 _ACEOF
25633 rm -f conftest.$ac_objext
25634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25635   (eval $ac_compile) 2>conftest.er1
25636   ac_status=$?
25637   grep -v '^ *+' conftest.er1 >conftest.err
25638   rm -f conftest.er1
25639   cat conftest.err >&5
25640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641   (exit $ac_status); } &&
25642          { ac_try='test -z "$ac_c_werror_flag"
25643                          || test ! -s conftest.err'
25644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25645   (eval $ac_try) 2>&5
25646   ac_status=$?
25647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648   (exit $ac_status); }; } &&
25649          { ac_try='test -s conftest.$ac_objext'
25650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651   (eval $ac_try) 2>&5
25652   ac_status=$?
25653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654   (exit $ac_status); }; }; then
25655    ac_cv_have_intmax_t="yes"
25656 else
25657   echo "$as_me: failed program was:" >&5
25658 sed 's/^/| /' conftest.$ac_ext >&5
25659
25660
25661          cat >conftest.$ac_ext <<_ACEOF
25662 /* confdefs.h.  */
25663 _ACEOF
25664 cat confdefs.h >>conftest.$ac_ext
25665 cat >>conftest.$ac_ext <<_ACEOF
25666 /* end confdefs.h.  */
25667  #include <stdint.h>
25668 int
25669 main ()
25670 {
25671  intmax_t a; a = 1;
25672   ;
25673   return 0;
25674 }
25675 _ACEOF
25676 rm -f conftest.$ac_objext
25677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25678   (eval $ac_compile) 2>conftest.er1
25679   ac_status=$?
25680   grep -v '^ *+' conftest.er1 >conftest.err
25681   rm -f conftest.er1
25682   cat conftest.err >&5
25683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684   (exit $ac_status); } &&
25685          { ac_try='test -z "$ac_c_werror_flag"
25686                          || test ! -s conftest.err'
25687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25688   (eval $ac_try) 2>&5
25689   ac_status=$?
25690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691   (exit $ac_status); }; } &&
25692          { ac_try='test -s conftest.$ac_objext'
25693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25694   (eval $ac_try) 2>&5
25695   ac_status=$?
25696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697   (exit $ac_status); }; }; then
25698    ac_cv_have_intmax_t="yes"
25699 else
25700   echo "$as_me: failed program was:" >&5
25701 sed 's/^/| /' conftest.$ac_ext >&5
25702
25703  ac_cv_have_intmax_t="no"
25704
25705 fi
25706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25707
25708
25709 fi
25710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25711
25712
25713 fi
25714 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25715 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25716 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25717    cat >>confdefs.h <<\_ACEOF
25718 #define HAVE_INTMAX_T 1
25719 _ACEOF
25720
25721    have_intmax_t=1
25722 fi
25723
25724
25725 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25726 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25727 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25728   echo $ECHO_N "(cached) $ECHO_C" >&6
25729 else
25730
25731    cat >conftest.$ac_ext <<_ACEOF
25732 /* confdefs.h.  */
25733 _ACEOF
25734 cat confdefs.h >>conftest.$ac_ext
25735 cat >>conftest.$ac_ext <<_ACEOF
25736 /* end confdefs.h.  */
25737  #include <sys/types.h>
25738 int
25739 main ()
25740 {
25741  u_intmax_t a; a = 1;
25742   ;
25743   return 0;
25744 }
25745 _ACEOF
25746 rm -f conftest.$ac_objext
25747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25748   (eval $ac_compile) 2>conftest.er1
25749   ac_status=$?
25750   grep -v '^ *+' conftest.er1 >conftest.err
25751   rm -f conftest.er1
25752   cat conftest.err >&5
25753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754   (exit $ac_status); } &&
25755          { ac_try='test -z "$ac_c_werror_flag"
25756                          || test ! -s conftest.err'
25757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758   (eval $ac_try) 2>&5
25759   ac_status=$?
25760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761   (exit $ac_status); }; } &&
25762          { ac_try='test -s conftest.$ac_objext'
25763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764   (eval $ac_try) 2>&5
25765   ac_status=$?
25766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767   (exit $ac_status); }; }; then
25768    ac_cv_have_u_intmax_t="yes"
25769 else
25770   echo "$as_me: failed program was:" >&5
25771 sed 's/^/| /' conftest.$ac_ext >&5
25772
25773
25774          cat >conftest.$ac_ext <<_ACEOF
25775 /* confdefs.h.  */
25776 _ACEOF
25777 cat confdefs.h >>conftest.$ac_ext
25778 cat >>conftest.$ac_ext <<_ACEOF
25779 /* end confdefs.h.  */
25780  #include <stdint.h>
25781 int
25782 main ()
25783 {
25784  u_intmax_t a; a = 1;
25785   ;
25786   return 0;
25787 }
25788 _ACEOF
25789 rm -f conftest.$ac_objext
25790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25791   (eval $ac_compile) 2>conftest.er1
25792   ac_status=$?
25793   grep -v '^ *+' conftest.er1 >conftest.err
25794   rm -f conftest.er1
25795   cat conftest.err >&5
25796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797   (exit $ac_status); } &&
25798          { ac_try='test -z "$ac_c_werror_flag"
25799                          || test ! -s conftest.err'
25800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25801   (eval $ac_try) 2>&5
25802   ac_status=$?
25803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804   (exit $ac_status); }; } &&
25805          { ac_try='test -s conftest.$ac_objext'
25806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25807   (eval $ac_try) 2>&5
25808   ac_status=$?
25809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810   (exit $ac_status); }; }; then
25811    ac_cv_have_u_intmax_t="yes"
25812 else
25813   echo "$as_me: failed program was:" >&5
25814 sed 's/^/| /' conftest.$ac_ext >&5
25815
25816  ac_cv_have_u_intmax_t="no"
25817
25818 fi
25819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25820
25821
25822 fi
25823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25824
25825 fi
25826 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25827 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25828 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25829    cat >>confdefs.h <<\_ACEOF
25830 #define HAVE_U_INTMAX_T 1
25831 _ACEOF
25832
25833    have_u_intmax_t=1
25834 fi
25835
25836
25837 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25838 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25839 if test "${ac_cv_have_intxx_t+set}" = set; then
25840   echo $ECHO_N "(cached) $ECHO_C" >&6
25841 else
25842
25843    cat >conftest.$ac_ext <<_ACEOF
25844 /* confdefs.h.  */
25845 _ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h.  */
25849  #include <sys/types.h>
25850 int
25851 main ()
25852 {
25853  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25854   ;
25855   return 0;
25856 }
25857 _ACEOF
25858 rm -f conftest.$ac_objext
25859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25860   (eval $ac_compile) 2>conftest.er1
25861   ac_status=$?
25862   grep -v '^ *+' conftest.er1 >conftest.err
25863   rm -f conftest.er1
25864   cat conftest.err >&5
25865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866   (exit $ac_status); } &&
25867          { ac_try='test -z "$ac_c_werror_flag"
25868                          || test ! -s conftest.err'
25869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25870   (eval $ac_try) 2>&5
25871   ac_status=$?
25872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873   (exit $ac_status); }; } &&
25874          { ac_try='test -s conftest.$ac_objext'
25875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876   (eval $ac_try) 2>&5
25877   ac_status=$?
25878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879   (exit $ac_status); }; }; then
25880    ac_cv_have_intxx_t="yes"
25881 else
25882   echo "$as_me: failed program was:" >&5
25883 sed 's/^/| /' conftest.$ac_ext >&5
25884
25885  ac_cv_have_intxx_t="no"
25886
25887 fi
25888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25889
25890 fi
25891 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25892 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25893 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25894    cat >>confdefs.h <<\_ACEOF
25895 #define HAVE_INTXX_T 1
25896 _ACEOF
25897
25898    have_intxx_t=1
25899 fi
25900
25901 echo "$as_me:$LINENO: checking for int64_t type" >&5
25902 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25903 if test "${ac_cv_have_int64_t+set}" = set; then
25904   echo $ECHO_N "(cached) $ECHO_C" >&6
25905 else
25906
25907    cat >conftest.$ac_ext <<_ACEOF
25908 /* confdefs.h.  */
25909 _ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h.  */
25913  #include <sys/types.h>
25914 int
25915 main ()
25916 {
25917  int64_t a; a = 1;
25918   ;
25919   return 0;
25920 }
25921 _ACEOF
25922 rm -f conftest.$ac_objext
25923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25924   (eval $ac_compile) 2>conftest.er1
25925   ac_status=$?
25926   grep -v '^ *+' conftest.er1 >conftest.err
25927   rm -f conftest.er1
25928   cat conftest.err >&5
25929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930   (exit $ac_status); } &&
25931          { ac_try='test -z "$ac_c_werror_flag"
25932                          || test ! -s conftest.err'
25933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25934   (eval $ac_try) 2>&5
25935   ac_status=$?
25936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937   (exit $ac_status); }; } &&
25938          { ac_try='test -s conftest.$ac_objext'
25939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25940   (eval $ac_try) 2>&5
25941   ac_status=$?
25942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943   (exit $ac_status); }; }; then
25944    ac_cv_have_int64_t="yes"
25945 else
25946   echo "$as_me: failed program was:" >&5
25947 sed 's/^/| /' conftest.$ac_ext >&5
25948
25949  ac_cv_have_int64_t="no"
25950
25951 fi
25952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25953
25954 fi
25955 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25956 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25957 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25958    cat >>confdefs.h <<\_ACEOF
25959 #define HAVE_INT64_T 1
25960 _ACEOF
25961
25962    have_int64_t=1
25963 fi
25964
25965 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25966 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25967 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25968   echo $ECHO_N "(cached) $ECHO_C" >&6
25969 else
25970
25971    cat >conftest.$ac_ext <<_ACEOF
25972 /* confdefs.h.  */
25973 _ACEOF
25974 cat confdefs.h >>conftest.$ac_ext
25975 cat >>conftest.$ac_ext <<_ACEOF
25976 /* end confdefs.h.  */
25977  #include <sys/types.h>
25978 int
25979 main ()
25980 {
25981  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25982   ;
25983   return 0;
25984 }
25985 _ACEOF
25986 rm -f conftest.$ac_objext
25987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25988   (eval $ac_compile) 2>conftest.er1
25989   ac_status=$?
25990   grep -v '^ *+' conftest.er1 >conftest.err
25991   rm -f conftest.er1
25992   cat conftest.err >&5
25993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994   (exit $ac_status); } &&
25995          { ac_try='test -z "$ac_c_werror_flag"
25996                          || test ! -s conftest.err'
25997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998   (eval $ac_try) 2>&5
25999   ac_status=$?
26000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001   (exit $ac_status); }; } &&
26002          { ac_try='test -s conftest.$ac_objext'
26003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004   (eval $ac_try) 2>&5
26005   ac_status=$?
26006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007   (exit $ac_status); }; }; then
26008    ac_cv_have_u_intxx_t="yes"
26009 else
26010   echo "$as_me: failed program was:" >&5
26011 sed 's/^/| /' conftest.$ac_ext >&5
26012
26013  ac_cv_have_u_intxx_t="no"
26014
26015 fi
26016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26017
26018 fi
26019 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26020 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
26021 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26022    cat >>confdefs.h <<\_ACEOF
26023 #define HAVE_U_INTXX_T 1
26024 _ACEOF
26025
26026    have_u_intxx_t=1
26027 fi
26028
26029 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26030 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
26031 if test "${ac_cv_have_u_int64_t+set}" = set; then
26032   echo $ECHO_N "(cached) $ECHO_C" >&6
26033 else
26034
26035    cat >conftest.$ac_ext <<_ACEOF
26036 /* confdefs.h.  */
26037 _ACEOF
26038 cat confdefs.h >>conftest.$ac_ext
26039 cat >>conftest.$ac_ext <<_ACEOF
26040 /* end confdefs.h.  */
26041  #include <sys/types.h>
26042 int
26043 main ()
26044 {
26045  u_int64_t a; a = 1;
26046   ;
26047   return 0;
26048 }
26049 _ACEOF
26050 rm -f conftest.$ac_objext
26051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26052   (eval $ac_compile) 2>conftest.er1
26053   ac_status=$?
26054   grep -v '^ *+' conftest.er1 >conftest.err
26055   rm -f conftest.er1
26056   cat conftest.err >&5
26057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058   (exit $ac_status); } &&
26059          { ac_try='test -z "$ac_c_werror_flag"
26060                          || test ! -s conftest.err'
26061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26062   (eval $ac_try) 2>&5
26063   ac_status=$?
26064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065   (exit $ac_status); }; } &&
26066          { ac_try='test -s conftest.$ac_objext'
26067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26068   (eval $ac_try) 2>&5
26069   ac_status=$?
26070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071   (exit $ac_status); }; }; then
26072    ac_cv_have_u_int64_t="yes"
26073 else
26074   echo "$as_me: failed program was:" >&5
26075 sed 's/^/| /' conftest.$ac_ext >&5
26076
26077  ac_cv_have_u_int64_t="no"
26078
26079 fi
26080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26081
26082 fi
26083 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26084 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
26085 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26086    cat >>confdefs.h <<\_ACEOF
26087 #define HAVE_U_INT64_T 1
26088 _ACEOF
26089
26090    have_u_int64_t=1
26091 fi
26092
26093 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26094            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26095 then
26096    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26097 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
26098    cat >conftest.$ac_ext <<_ACEOF
26099 /* confdefs.h.  */
26100 _ACEOF
26101 cat confdefs.h >>conftest.$ac_ext
26102 cat >>conftest.$ac_ext <<_ACEOF
26103 /* end confdefs.h.  */
26104  #include <sys/bitypes.h>
26105 int
26106 main ()
26107 {
26108  int8_t a; int16_t b; int32_t c;
26109         u_int8_t e; u_int16_t f; u_int32_t g;
26110         a = b = c = e = f = g = 1;
26111   ;
26112   return 0;
26113 }
26114 _ACEOF
26115 rm -f conftest.$ac_objext
26116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26117   (eval $ac_compile) 2>conftest.er1
26118   ac_status=$?
26119   grep -v '^ *+' conftest.er1 >conftest.err
26120   rm -f conftest.er1
26121   cat conftest.err >&5
26122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123   (exit $ac_status); } &&
26124          { ac_try='test -z "$ac_c_werror_flag"
26125                          || test ! -s conftest.err'
26126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26127   (eval $ac_try) 2>&5
26128   ac_status=$?
26129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130   (exit $ac_status); }; } &&
26131          { ac_try='test -s conftest.$ac_objext'
26132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133   (eval $ac_try) 2>&5
26134   ac_status=$?
26135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136   (exit $ac_status); }; }; then
26137    cat >>confdefs.h <<\_ACEOF
26138 #define HAVE_U_INTXX_T 1
26139 _ACEOF
26140
26141         cat >>confdefs.h <<\_ACEOF
26142 #define HAVE_INTXX_T 1
26143 _ACEOF
26144
26145         cat >>confdefs.h <<\_ACEOF
26146 #define HAVE_SYS_BITYPES_H 1
26147 _ACEOF
26148
26149         echo "$as_me:$LINENO: result: yes" >&5
26150 echo "${ECHO_T}yes" >&6
26151 else
26152   echo "$as_me: failed program was:" >&5
26153 sed 's/^/| /' conftest.$ac_ext >&5
26154
26155  echo "$as_me:$LINENO: result: no" >&5
26156 echo "${ECHO_T}no" >&6
26157
26158 fi
26159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26160 fi
26161
26162 if test -z "$have_u_intxx_t" ; then
26163    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26164 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
26165 if test "${ac_cv_have_uintxx_t+set}" = set; then
26166   echo $ECHO_N "(cached) $ECHO_C" >&6
26167 else
26168
26169       cat >conftest.$ac_ext <<_ACEOF
26170 /* confdefs.h.  */
26171 _ACEOF
26172 cat confdefs.h >>conftest.$ac_ext
26173 cat >>conftest.$ac_ext <<_ACEOF
26174 /* end confdefs.h.  */
26175  #include <sys/types.h>
26176 int
26177 main ()
26178 {
26179  uint8_t a; uint16_t b;
26180            uint32_t c; a = b = c = 1;
26181   ;
26182   return 0;
26183 }
26184 _ACEOF
26185 rm -f conftest.$ac_objext
26186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26187   (eval $ac_compile) 2>conftest.er1
26188   ac_status=$?
26189   grep -v '^ *+' conftest.er1 >conftest.err
26190   rm -f conftest.er1
26191   cat conftest.err >&5
26192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193   (exit $ac_status); } &&
26194          { ac_try='test -z "$ac_c_werror_flag"
26195                          || test ! -s conftest.err'
26196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26197   (eval $ac_try) 2>&5
26198   ac_status=$?
26199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200   (exit $ac_status); }; } &&
26201          { ac_try='test -s conftest.$ac_objext'
26202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26203   (eval $ac_try) 2>&5
26204   ac_status=$?
26205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206   (exit $ac_status); }; }; then
26207    ac_cv_have_uintxx_t="yes"
26208 else
26209   echo "$as_me: failed program was:" >&5
26210 sed 's/^/| /' conftest.$ac_ext >&5
26211
26212  ac_cv_have_uintxx_t="no"
26213
26214 fi
26215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26216
26217 fi
26218 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26219 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
26220    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26221       cat >>confdefs.h <<\_ACEOF
26222 #define HAVE_UINTXX_T 1
26223 _ACEOF
26224
26225    fi
26226 fi
26227
26228 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26229           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26230 then
26231    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26232 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
26233    cat >conftest.$ac_ext <<_ACEOF
26234 /* confdefs.h.  */
26235 _ACEOF
26236 cat confdefs.h >>conftest.$ac_ext
26237 cat >>conftest.$ac_ext <<_ACEOF
26238 /* end confdefs.h.  */
26239  #include <sys/bitypes.h>
26240 int
26241 main ()
26242 {
26243  int64_t a; u_int64_t b;
26244        a = b = 1;
26245   ;
26246   return 0;
26247 }
26248 _ACEOF
26249 rm -f conftest.$ac_objext
26250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26251   (eval $ac_compile) 2>conftest.er1
26252   ac_status=$?
26253   grep -v '^ *+' conftest.er1 >conftest.err
26254   rm -f conftest.er1
26255   cat conftest.err >&5
26256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257   (exit $ac_status); } &&
26258          { ac_try='test -z "$ac_c_werror_flag"
26259                          || test ! -s conftest.err'
26260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261   (eval $ac_try) 2>&5
26262   ac_status=$?
26263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264   (exit $ac_status); }; } &&
26265          { ac_try='test -s conftest.$ac_objext'
26266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26267   (eval $ac_try) 2>&5
26268   ac_status=$?
26269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270   (exit $ac_status); }; }; then
26271    cat >>confdefs.h <<\_ACEOF
26272 #define HAVE_U_INT64_T 1
26273 _ACEOF
26274
26275        cat >>confdefs.h <<\_ACEOF
26276 #define HAVE_INT64_T 1
26277 _ACEOF
26278
26279        echo "$as_me:$LINENO: result: yes" >&5
26280 echo "${ECHO_T}yes" >&6
26281 else
26282   echo "$as_me: failed program was:" >&5
26283 sed 's/^/| /' conftest.$ac_ext >&5
26284
26285  echo "$as_me:$LINENO: result: no" >&5
26286 echo "${ECHO_T}no" >&6
26287
26288 fi
26289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26290 fi
26291
26292 if (test -z "$have_uintxx_t" && \
26293           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26294 then
26295    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26296 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26297    cat >conftest.$ac_ext <<_ACEOF
26298 /* confdefs.h.  */
26299 _ACEOF
26300 cat confdefs.h >>conftest.$ac_ext
26301 cat >>conftest.$ac_ext <<_ACEOF
26302 /* end confdefs.h.  */
26303  #include <sys/bitypes.h>
26304 int
26305 main ()
26306 {
26307  uint8_t a; uint16_t b;
26308           uint32_t c; a = b = c = 1;
26309   ;
26310   return 0;
26311 }
26312 _ACEOF
26313 rm -f conftest.$ac_objext
26314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26315   (eval $ac_compile) 2>conftest.er1
26316   ac_status=$?
26317   grep -v '^ *+' conftest.er1 >conftest.err
26318   rm -f conftest.er1
26319   cat conftest.err >&5
26320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321   (exit $ac_status); } &&
26322          { ac_try='test -z "$ac_c_werror_flag"
26323                          || test ! -s conftest.err'
26324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325   (eval $ac_try) 2>&5
26326   ac_status=$?
26327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328   (exit $ac_status); }; } &&
26329          { ac_try='test -s conftest.$ac_objext'
26330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26331   (eval $ac_try) 2>&5
26332   ac_status=$?
26333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334   (exit $ac_status); }; }; then
26335    cat >>confdefs.h <<\_ACEOF
26336 #define HAVE_UINTXX_T 1
26337 _ACEOF
26338
26339        echo "$as_me:$LINENO: result: yes" >&5
26340 echo "${ECHO_T}yes" >&6
26341 else
26342   echo "$as_me: failed program was:" >&5
26343 sed 's/^/| /' conftest.$ac_ext >&5
26344
26345  echo "$as_me:$LINENO: result: no" >&5
26346 echo "${ECHO_T}no" >&6
26347
26348 fi
26349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26350
26351 fi
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369 for ac_func in \
26370         fork \
26371         getcwd \
26372         gethostname \
26373         getpid \
26374         gettimeofday \
26375         setpgid \
26376         setpgrp \
26377         setsid \
26378         signal \
26379         strerror \
26380         strncmp \
26381         strncpy \
26382         vfprintf \
26383
26384 do
26385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26386 echo "$as_me:$LINENO: checking for $ac_func" >&5
26387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26388 if eval "test \"\${$as_ac_var+set}\" = set"; then
26389   echo $ECHO_N "(cached) $ECHO_C" >&6
26390 else
26391   cat >conftest.$ac_ext <<_ACEOF
26392 /* confdefs.h.  */
26393 _ACEOF
26394 cat confdefs.h >>conftest.$ac_ext
26395 cat >>conftest.$ac_ext <<_ACEOF
26396 /* end confdefs.h.  */
26397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26399 #define $ac_func innocuous_$ac_func
26400
26401 /* System header to define __stub macros and hopefully few prototypes,
26402     which can conflict with char $ac_func (); below.
26403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26404     <limits.h> exists even on freestanding compilers.  */
26405
26406 #ifdef __STDC__
26407 # include <limits.h>
26408 #else
26409 # include <assert.h>
26410 #endif
26411
26412 #undef $ac_func
26413
26414 /* Override any gcc2 internal prototype to avoid an error.  */
26415 #ifdef __cplusplus
26416 extern "C"
26417 {
26418 #endif
26419 /* We use char because int might match the return type of a gcc2
26420    builtin and then its argument prototype would still apply.  */
26421 char $ac_func ();
26422 /* The GNU C library defines this for functions which it implements
26423     to always fail with ENOSYS.  Some functions are actually named
26424     something starting with __ and the normal name is an alias.  */
26425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26426 choke me
26427 #else
26428 char (*f) () = $ac_func;
26429 #endif
26430 #ifdef __cplusplus
26431 }
26432 #endif
26433
26434 int
26435 main ()
26436 {
26437 return f != $ac_func;
26438   ;
26439   return 0;
26440 }
26441 _ACEOF
26442 rm -f conftest.$ac_objext conftest$ac_exeext
26443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26444   (eval $ac_link) 2>conftest.er1
26445   ac_status=$?
26446   grep -v '^ *+' conftest.er1 >conftest.err
26447   rm -f conftest.er1
26448   cat conftest.err >&5
26449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450   (exit $ac_status); } &&
26451          { ac_try='test -z "$ac_c_werror_flag"
26452                          || test ! -s conftest.err'
26453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26454   (eval $ac_try) 2>&5
26455   ac_status=$?
26456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457   (exit $ac_status); }; } &&
26458          { ac_try='test -s conftest$ac_exeext'
26459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26460   (eval $ac_try) 2>&5
26461   ac_status=$?
26462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463   (exit $ac_status); }; }; then
26464   eval "$as_ac_var=yes"
26465 else
26466   echo "$as_me: failed program was:" >&5
26467 sed 's/^/| /' conftest.$ac_ext >&5
26468
26469 eval "$as_ac_var=no"
26470 fi
26471 rm -f conftest.err conftest.$ac_objext \
26472       conftest$ac_exeext conftest.$ac_ext
26473 fi
26474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26476 if test `eval echo '${'$as_ac_var'}'` = yes; then
26477   cat >>confdefs.h <<_ACEOF
26478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26479 _ACEOF
26480
26481 else
26482   echo 'configure: cannot find needed function.'; exit 1
26483
26484 fi
26485 done
26486
26487
26488
26489 for ac_func in fchdir
26490 do
26491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26492 echo "$as_me:$LINENO: checking for $ac_func" >&5
26493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26494 if eval "test \"\${$as_ac_var+set}\" = set"; then
26495   echo $ECHO_N "(cached) $ECHO_C" >&6
26496 else
26497   cat >conftest.$ac_ext <<_ACEOF
26498 /* confdefs.h.  */
26499 _ACEOF
26500 cat confdefs.h >>conftest.$ac_ext
26501 cat >>conftest.$ac_ext <<_ACEOF
26502 /* end confdefs.h.  */
26503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26505 #define $ac_func innocuous_$ac_func
26506
26507 /* System header to define __stub macros and hopefully few prototypes,
26508     which can conflict with char $ac_func (); below.
26509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26510     <limits.h> exists even on freestanding compilers.  */
26511
26512 #ifdef __STDC__
26513 # include <limits.h>
26514 #else
26515 # include <assert.h>
26516 #endif
26517
26518 #undef $ac_func
26519
26520 /* Override any gcc2 internal prototype to avoid an error.  */
26521 #ifdef __cplusplus
26522 extern "C"
26523 {
26524 #endif
26525 /* We use char because int might match the return type of a gcc2
26526    builtin and then its argument prototype would still apply.  */
26527 char $ac_func ();
26528 /* The GNU C library defines this for functions which it implements
26529     to always fail with ENOSYS.  Some functions are actually named
26530     something starting with __ and the normal name is an alias.  */
26531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26532 choke me
26533 #else
26534 char (*f) () = $ac_func;
26535 #endif
26536 #ifdef __cplusplus
26537 }
26538 #endif
26539
26540 int
26541 main ()
26542 {
26543 return f != $ac_func;
26544   ;
26545   return 0;
26546 }
26547 _ACEOF
26548 rm -f conftest.$ac_objext conftest$ac_exeext
26549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26550   (eval $ac_link) 2>conftest.er1
26551   ac_status=$?
26552   grep -v '^ *+' conftest.er1 >conftest.err
26553   rm -f conftest.er1
26554   cat conftest.err >&5
26555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556   (exit $ac_status); } &&
26557          { ac_try='test -z "$ac_c_werror_flag"
26558                          || test ! -s conftest.err'
26559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26560   (eval $ac_try) 2>&5
26561   ac_status=$?
26562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563   (exit $ac_status); }; } &&
26564          { ac_try='test -s conftest$ac_exeext'
26565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26566   (eval $ac_try) 2>&5
26567   ac_status=$?
26568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569   (exit $ac_status); }; }; then
26570   eval "$as_ac_var=yes"
26571 else
26572   echo "$as_me: failed program was:" >&5
26573 sed 's/^/| /' conftest.$ac_ext >&5
26574
26575 eval "$as_ac_var=no"
26576 fi
26577 rm -f conftest.err conftest.$ac_objext \
26578       conftest$ac_exeext conftest.$ac_ext
26579 fi
26580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26582 if test `eval echo '${'$as_ac_var'}'` = yes; then
26583   cat >>confdefs.h <<_ACEOF
26584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26585 _ACEOF
26586  cat >>confdefs.h <<\_ACEOF
26587 #define HAVE_FCHDIR 1
26588 _ACEOF
26589
26590 fi
26591 done
26592
26593
26594 for ac_func in strtoll
26595 do
26596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26597 echo "$as_me:$LINENO: checking for $ac_func" >&5
26598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26599 if eval "test \"\${$as_ac_var+set}\" = set"; then
26600   echo $ECHO_N "(cached) $ECHO_C" >&6
26601 else
26602   cat >conftest.$ac_ext <<_ACEOF
26603 /* confdefs.h.  */
26604 _ACEOF
26605 cat confdefs.h >>conftest.$ac_ext
26606 cat >>conftest.$ac_ext <<_ACEOF
26607 /* end confdefs.h.  */
26608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26610 #define $ac_func innocuous_$ac_func
26611
26612 /* System header to define __stub macros and hopefully few prototypes,
26613     which can conflict with char $ac_func (); below.
26614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26615     <limits.h> exists even on freestanding compilers.  */
26616
26617 #ifdef __STDC__
26618 # include <limits.h>
26619 #else
26620 # include <assert.h>
26621 #endif
26622
26623 #undef $ac_func
26624
26625 /* Override any gcc2 internal prototype to avoid an error.  */
26626 #ifdef __cplusplus
26627 extern "C"
26628 {
26629 #endif
26630 /* We use char because int might match the return type of a gcc2
26631    builtin and then its argument prototype would still apply.  */
26632 char $ac_func ();
26633 /* The GNU C library defines this for functions which it implements
26634     to always fail with ENOSYS.  Some functions are actually named
26635     something starting with __ and the normal name is an alias.  */
26636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26637 choke me
26638 #else
26639 char (*f) () = $ac_func;
26640 #endif
26641 #ifdef __cplusplus
26642 }
26643 #endif
26644
26645 int
26646 main ()
26647 {
26648 return f != $ac_func;
26649   ;
26650   return 0;
26651 }
26652 _ACEOF
26653 rm -f conftest.$ac_objext conftest$ac_exeext
26654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26655   (eval $ac_link) 2>conftest.er1
26656   ac_status=$?
26657   grep -v '^ *+' conftest.er1 >conftest.err
26658   rm -f conftest.er1
26659   cat conftest.err >&5
26660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661   (exit $ac_status); } &&
26662          { ac_try='test -z "$ac_c_werror_flag"
26663                          || test ! -s conftest.err'
26664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26665   (eval $ac_try) 2>&5
26666   ac_status=$?
26667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668   (exit $ac_status); }; } &&
26669          { ac_try='test -s conftest$ac_exeext'
26670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26671   (eval $ac_try) 2>&5
26672   ac_status=$?
26673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674   (exit $ac_status); }; }; then
26675   eval "$as_ac_var=yes"
26676 else
26677   echo "$as_me: failed program was:" >&5
26678 sed 's/^/| /' conftest.$ac_ext >&5
26679
26680 eval "$as_ac_var=no"
26681 fi
26682 rm -f conftest.err conftest.$ac_objext \
26683       conftest$ac_exeext conftest.$ac_ext
26684 fi
26685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26687 if test `eval echo '${'$as_ac_var'}'` = yes; then
26688   cat >>confdefs.h <<_ACEOF
26689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26690 _ACEOF
26691  cat >>confdefs.h <<\_ACEOF
26692 #define HAVE_STRTOLL 1
26693 _ACEOF
26694
26695 fi
26696 done
26697
26698
26699 for ac_func in posix_fadvise
26700 do
26701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26702 echo "$as_me:$LINENO: checking for $ac_func" >&5
26703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26704 if eval "test \"\${$as_ac_var+set}\" = set"; then
26705   echo $ECHO_N "(cached) $ECHO_C" >&6
26706 else
26707   cat >conftest.$ac_ext <<_ACEOF
26708 /* confdefs.h.  */
26709 _ACEOF
26710 cat confdefs.h >>conftest.$ac_ext
26711 cat >>conftest.$ac_ext <<_ACEOF
26712 /* end confdefs.h.  */
26713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26715 #define $ac_func innocuous_$ac_func
26716
26717 /* System header to define __stub macros and hopefully few prototypes,
26718     which can conflict with char $ac_func (); below.
26719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26720     <limits.h> exists even on freestanding compilers.  */
26721
26722 #ifdef __STDC__
26723 # include <limits.h>
26724 #else
26725 # include <assert.h>
26726 #endif
26727
26728 #undef $ac_func
26729
26730 /* Override any gcc2 internal prototype to avoid an error.  */
26731 #ifdef __cplusplus
26732 extern "C"
26733 {
26734 #endif
26735 /* We use char because int might match the return type of a gcc2
26736    builtin and then its argument prototype would still apply.  */
26737 char $ac_func ();
26738 /* The GNU C library defines this for functions which it implements
26739     to always fail with ENOSYS.  Some functions are actually named
26740     something starting with __ and the normal name is an alias.  */
26741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26742 choke me
26743 #else
26744 char (*f) () = $ac_func;
26745 #endif
26746 #ifdef __cplusplus
26747 }
26748 #endif
26749
26750 int
26751 main ()
26752 {
26753 return f != $ac_func;
26754   ;
26755   return 0;
26756 }
26757 _ACEOF
26758 rm -f conftest.$ac_objext conftest$ac_exeext
26759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26760   (eval $ac_link) 2>conftest.er1
26761   ac_status=$?
26762   grep -v '^ *+' conftest.er1 >conftest.err
26763   rm -f conftest.er1
26764   cat conftest.err >&5
26765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766   (exit $ac_status); } &&
26767          { ac_try='test -z "$ac_c_werror_flag"
26768                          || test ! -s conftest.err'
26769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26770   (eval $ac_try) 2>&5
26771   ac_status=$?
26772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773   (exit $ac_status); }; } &&
26774          { ac_try='test -s conftest$ac_exeext'
26775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26776   (eval $ac_try) 2>&5
26777   ac_status=$?
26778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779   (exit $ac_status); }; }; then
26780   eval "$as_ac_var=yes"
26781 else
26782   echo "$as_me: failed program was:" >&5
26783 sed 's/^/| /' conftest.$ac_ext >&5
26784
26785 eval "$as_ac_var=no"
26786 fi
26787 rm -f conftest.err conftest.$ac_objext \
26788       conftest$ac_exeext conftest.$ac_ext
26789 fi
26790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26792 if test `eval echo '${'$as_ac_var'}'` = yes; then
26793   cat >>confdefs.h <<_ACEOF
26794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26795 _ACEOF
26796
26797 fi
26798 done
26799
26800
26801 for ac_func in fdatasync
26802 do
26803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26804 echo "$as_me:$LINENO: checking for $ac_func" >&5
26805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26806 if eval "test \"\${$as_ac_var+set}\" = set"; then
26807   echo $ECHO_N "(cached) $ECHO_C" >&6
26808 else
26809   cat >conftest.$ac_ext <<_ACEOF
26810 /* confdefs.h.  */
26811 _ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h.  */
26815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26817 #define $ac_func innocuous_$ac_func
26818
26819 /* System header to define __stub macros and hopefully few prototypes,
26820     which can conflict with char $ac_func (); below.
26821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26822     <limits.h> exists even on freestanding compilers.  */
26823
26824 #ifdef __STDC__
26825 # include <limits.h>
26826 #else
26827 # include <assert.h>
26828 #endif
26829
26830 #undef $ac_func
26831
26832 /* Override any gcc2 internal prototype to avoid an error.  */
26833 #ifdef __cplusplus
26834 extern "C"
26835 {
26836 #endif
26837 /* We use char because int might match the return type of a gcc2
26838    builtin and then its argument prototype would still apply.  */
26839 char $ac_func ();
26840 /* The GNU C library defines this for functions which it implements
26841     to always fail with ENOSYS.  Some functions are actually named
26842     something starting with __ and the normal name is an alias.  */
26843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26844 choke me
26845 #else
26846 char (*f) () = $ac_func;
26847 #endif
26848 #ifdef __cplusplus
26849 }
26850 #endif
26851
26852 int
26853 main ()
26854 {
26855 return f != $ac_func;
26856   ;
26857   return 0;
26858 }
26859 _ACEOF
26860 rm -f conftest.$ac_objext conftest$ac_exeext
26861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26862   (eval $ac_link) 2>conftest.er1
26863   ac_status=$?
26864   grep -v '^ *+' conftest.er1 >conftest.err
26865   rm -f conftest.er1
26866   cat conftest.err >&5
26867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868   (exit $ac_status); } &&
26869          { ac_try='test -z "$ac_c_werror_flag"
26870                          || test ! -s conftest.err'
26871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26872   (eval $ac_try) 2>&5
26873   ac_status=$?
26874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875   (exit $ac_status); }; } &&
26876          { ac_try='test -s conftest$ac_exeext'
26877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26878   (eval $ac_try) 2>&5
26879   ac_status=$?
26880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881   (exit $ac_status); }; }; then
26882   eval "$as_ac_var=yes"
26883 else
26884   echo "$as_me: failed program was:" >&5
26885 sed 's/^/| /' conftest.$ac_ext >&5
26886
26887 eval "$as_ac_var=no"
26888 fi
26889 rm -f conftest.err conftest.$ac_objext \
26890       conftest$ac_exeext conftest.$ac_ext
26891 fi
26892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26894 if test `eval echo '${'$as_ac_var'}'` = yes; then
26895   cat >>confdefs.h <<_ACEOF
26896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26897 _ACEOF
26898
26899 fi
26900 done
26901
26902
26903
26904 for ac_func in chflags
26905 do
26906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26907 echo "$as_me:$LINENO: checking for $ac_func" >&5
26908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26909 if eval "test \"\${$as_ac_var+set}\" = set"; then
26910   echo $ECHO_N "(cached) $ECHO_C" >&6
26911 else
26912   cat >conftest.$ac_ext <<_ACEOF
26913 /* confdefs.h.  */
26914 _ACEOF
26915 cat confdefs.h >>conftest.$ac_ext
26916 cat >>conftest.$ac_ext <<_ACEOF
26917 /* end confdefs.h.  */
26918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26920 #define $ac_func innocuous_$ac_func
26921
26922 /* System header to define __stub macros and hopefully few prototypes,
26923     which can conflict with char $ac_func (); below.
26924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26925     <limits.h> exists even on freestanding compilers.  */
26926
26927 #ifdef __STDC__
26928 # include <limits.h>
26929 #else
26930 # include <assert.h>
26931 #endif
26932
26933 #undef $ac_func
26934
26935 /* Override any gcc2 internal prototype to avoid an error.  */
26936 #ifdef __cplusplus
26937 extern "C"
26938 {
26939 #endif
26940 /* We use char because int might match the return type of a gcc2
26941    builtin and then its argument prototype would still apply.  */
26942 char $ac_func ();
26943 /* The GNU C library defines this for functions which it implements
26944     to always fail with ENOSYS.  Some functions are actually named
26945     something starting with __ and the normal name is an alias.  */
26946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26947 choke me
26948 #else
26949 char (*f) () = $ac_func;
26950 #endif
26951 #ifdef __cplusplus
26952 }
26953 #endif
26954
26955 int
26956 main ()
26957 {
26958 return f != $ac_func;
26959   ;
26960   return 0;
26961 }
26962 _ACEOF
26963 rm -f conftest.$ac_objext conftest$ac_exeext
26964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26965   (eval $ac_link) 2>conftest.er1
26966   ac_status=$?
26967   grep -v '^ *+' conftest.er1 >conftest.err
26968   rm -f conftest.er1
26969   cat conftest.err >&5
26970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971   (exit $ac_status); } &&
26972          { ac_try='test -z "$ac_c_werror_flag"
26973                          || test ! -s conftest.err'
26974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26975   (eval $ac_try) 2>&5
26976   ac_status=$?
26977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978   (exit $ac_status); }; } &&
26979          { ac_try='test -s conftest$ac_exeext'
26980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26981   (eval $ac_try) 2>&5
26982   ac_status=$?
26983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984   (exit $ac_status); }; }; then
26985   eval "$as_ac_var=yes"
26986 else
26987   echo "$as_me: failed program was:" >&5
26988 sed 's/^/| /' conftest.$ac_ext >&5
26989
26990 eval "$as_ac_var=no"
26991 fi
26992 rm -f conftest.err conftest.$ac_objext \
26993       conftest$ac_exeext conftest.$ac_ext
26994 fi
26995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26997 if test `eval echo '${'$as_ac_var'}'` = yes; then
26998   cat >>confdefs.h <<_ACEOF
26999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27000 _ACEOF
27001
27002 fi
27003 done
27004
27005
27006
27007
27008
27009
27010 for ac_func in snprintf vsnprintf gethostid fseeko
27011 do
27012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27013 echo "$as_me:$LINENO: checking for $ac_func" >&5
27014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27015 if eval "test \"\${$as_ac_var+set}\" = set"; then
27016   echo $ECHO_N "(cached) $ECHO_C" >&6
27017 else
27018   cat >conftest.$ac_ext <<_ACEOF
27019 /* confdefs.h.  */
27020 _ACEOF
27021 cat confdefs.h >>conftest.$ac_ext
27022 cat >>conftest.$ac_ext <<_ACEOF
27023 /* end confdefs.h.  */
27024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27026 #define $ac_func innocuous_$ac_func
27027
27028 /* System header to define __stub macros and hopefully few prototypes,
27029     which can conflict with char $ac_func (); below.
27030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27031     <limits.h> exists even on freestanding compilers.  */
27032
27033 #ifdef __STDC__
27034 # include <limits.h>
27035 #else
27036 # include <assert.h>
27037 #endif
27038
27039 #undef $ac_func
27040
27041 /* Override any gcc2 internal prototype to avoid an error.  */
27042 #ifdef __cplusplus
27043 extern "C"
27044 {
27045 #endif
27046 /* We use char because int might match the return type of a gcc2
27047    builtin and then its argument prototype would still apply.  */
27048 char $ac_func ();
27049 /* The GNU C library defines this for functions which it implements
27050     to always fail with ENOSYS.  Some functions are actually named
27051     something starting with __ and the normal name is an alias.  */
27052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27053 choke me
27054 #else
27055 char (*f) () = $ac_func;
27056 #endif
27057 #ifdef __cplusplus
27058 }
27059 #endif
27060
27061 int
27062 main ()
27063 {
27064 return f != $ac_func;
27065   ;
27066   return 0;
27067 }
27068 _ACEOF
27069 rm -f conftest.$ac_objext conftest$ac_exeext
27070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27071   (eval $ac_link) 2>conftest.er1
27072   ac_status=$?
27073   grep -v '^ *+' conftest.er1 >conftest.err
27074   rm -f conftest.er1
27075   cat conftest.err >&5
27076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077   (exit $ac_status); } &&
27078          { ac_try='test -z "$ac_c_werror_flag"
27079                          || test ! -s conftest.err'
27080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27081   (eval $ac_try) 2>&5
27082   ac_status=$?
27083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084   (exit $ac_status); }; } &&
27085          { ac_try='test -s conftest$ac_exeext'
27086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087   (eval $ac_try) 2>&5
27088   ac_status=$?
27089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090   (exit $ac_status); }; }; then
27091   eval "$as_ac_var=yes"
27092 else
27093   echo "$as_me: failed program was:" >&5
27094 sed 's/^/| /' conftest.$ac_ext >&5
27095
27096 eval "$as_ac_var=no"
27097 fi
27098 rm -f conftest.err conftest.$ac_objext \
27099       conftest$ac_exeext conftest.$ac_ext
27100 fi
27101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27103 if test `eval echo '${'$as_ac_var'}'` = yes; then
27104   cat >>confdefs.h <<_ACEOF
27105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27106 _ACEOF
27107
27108 fi
27109 done
27110
27111
27112 echo "$as_me:$LINENO: checking for va_copy" >&5
27113 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
27114 if test "${ba_cv_va_copy+set}" = set; then
27115   echo $ECHO_N "(cached) $ECHO_C" >&6
27116 else
27117   cat >conftest.$ac_ext <<_ACEOF
27118 /* confdefs.h.  */
27119 _ACEOF
27120 cat confdefs.h >>conftest.$ac_ext
27121 cat >>conftest.$ac_ext <<_ACEOF
27122 /* end confdefs.h.  */
27123
27124 #include <stdarg.h>
27125 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27126 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27127
27128 int
27129 main ()
27130 {
27131 call_use_va_copy(1,2,3)
27132   ;
27133   return 0;
27134 }
27135 _ACEOF
27136 rm -f conftest.$ac_objext conftest$ac_exeext
27137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27138   (eval $ac_link) 2>conftest.er1
27139   ac_status=$?
27140   grep -v '^ *+' conftest.er1 >conftest.err
27141   rm -f conftest.er1
27142   cat conftest.err >&5
27143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144   (exit $ac_status); } &&
27145          { ac_try='test -z "$ac_c_werror_flag"
27146                          || test ! -s conftest.err'
27147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27148   (eval $ac_try) 2>&5
27149   ac_status=$?
27150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151   (exit $ac_status); }; } &&
27152          { ac_try='test -s conftest$ac_exeext'
27153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27154   (eval $ac_try) 2>&5
27155   ac_status=$?
27156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157   (exit $ac_status); }; }; then
27158   ba_cv_va_copy=yes
27159 else
27160   echo "$as_me: failed program was:" >&5
27161 sed 's/^/| /' conftest.$ac_ext >&5
27162
27163 ba_cv_va_copy=no
27164 fi
27165 rm -f conftest.err conftest.$ac_objext \
27166       conftest$ac_exeext conftest.$ac_ext
27167 fi
27168 echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27169 echo "${ECHO_T}$ba_cv_va_copy" >&6
27170 test $ba_cv_va_copy = yes &&
27171 cat >>confdefs.h <<\_ACEOF
27172 #define HAVE_VA_COPY 1
27173 _ACEOF
27174
27175
27176
27177
27178
27179
27180
27181 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27182 do
27183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27184 echo "$as_me:$LINENO: checking for $ac_func" >&5
27185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27186 if eval "test \"\${$as_ac_var+set}\" = set"; then
27187   echo $ECHO_N "(cached) $ECHO_C" >&6
27188 else
27189   cat >conftest.$ac_ext <<_ACEOF
27190 /* confdefs.h.  */
27191 _ACEOF
27192 cat confdefs.h >>conftest.$ac_ext
27193 cat >>conftest.$ac_ext <<_ACEOF
27194 /* end confdefs.h.  */
27195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27197 #define $ac_func innocuous_$ac_func
27198
27199 /* System header to define __stub macros and hopefully few prototypes,
27200     which can conflict with char $ac_func (); below.
27201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27202     <limits.h> exists even on freestanding compilers.  */
27203
27204 #ifdef __STDC__
27205 # include <limits.h>
27206 #else
27207 # include <assert.h>
27208 #endif
27209
27210 #undef $ac_func
27211
27212 /* Override any gcc2 internal prototype to avoid an error.  */
27213 #ifdef __cplusplus
27214 extern "C"
27215 {
27216 #endif
27217 /* We use char because int might match the return type of a gcc2
27218    builtin and then its argument prototype would still apply.  */
27219 char $ac_func ();
27220 /* The GNU C library defines this for functions which it implements
27221     to always fail with ENOSYS.  Some functions are actually named
27222     something starting with __ and the normal name is an alias.  */
27223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27224 choke me
27225 #else
27226 char (*f) () = $ac_func;
27227 #endif
27228 #ifdef __cplusplus
27229 }
27230 #endif
27231
27232 int
27233 main ()
27234 {
27235 return f != $ac_func;
27236   ;
27237   return 0;
27238 }
27239 _ACEOF
27240 rm -f conftest.$ac_objext conftest$ac_exeext
27241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27242   (eval $ac_link) 2>conftest.er1
27243   ac_status=$?
27244   grep -v '^ *+' conftest.er1 >conftest.err
27245   rm -f conftest.er1
27246   cat conftest.err >&5
27247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248   (exit $ac_status); } &&
27249          { ac_try='test -z "$ac_c_werror_flag"
27250                          || test ! -s conftest.err'
27251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27252   (eval $ac_try) 2>&5
27253   ac_status=$?
27254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255   (exit $ac_status); }; } &&
27256          { ac_try='test -s conftest$ac_exeext'
27257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258   (eval $ac_try) 2>&5
27259   ac_status=$?
27260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261   (exit $ac_status); }; }; then
27262   eval "$as_ac_var=yes"
27263 else
27264   echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27266
27267 eval "$as_ac_var=no"
27268 fi
27269 rm -f conftest.err conftest.$ac_objext \
27270       conftest$ac_exeext conftest.$ac_ext
27271 fi
27272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27274 if test `eval echo '${'$as_ac_var'}'` = yes; then
27275   cat >>confdefs.h <<_ACEOF
27276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27277 _ACEOF
27278
27279 fi
27280 done
27281
27282
27283 # If resolver functions are not in libc check for -lnsl or -lresolv.
27284 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27285 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27286 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27287   echo $ECHO_N "(cached) $ECHO_C" >&6
27288 else
27289   cat >conftest.$ac_ext <<_ACEOF
27290 /* confdefs.h.  */
27291 _ACEOF
27292 cat confdefs.h >>conftest.$ac_ext
27293 cat >>conftest.$ac_ext <<_ACEOF
27294 /* end confdefs.h.  */
27295 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27297 #define gethostbyname_r innocuous_gethostbyname_r
27298
27299 /* System header to define __stub macros and hopefully few prototypes,
27300     which can conflict with char gethostbyname_r (); below.
27301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27302     <limits.h> exists even on freestanding compilers.  */
27303
27304 #ifdef __STDC__
27305 # include <limits.h>
27306 #else
27307 # include <assert.h>
27308 #endif
27309
27310 #undef gethostbyname_r
27311
27312 /* Override any gcc2 internal prototype to avoid an error.  */
27313 #ifdef __cplusplus
27314 extern "C"
27315 {
27316 #endif
27317 /* We use char because int might match the return type of a gcc2
27318    builtin and then its argument prototype would still apply.  */
27319 char gethostbyname_r ();
27320 /* The GNU C library defines this for functions which it implements
27321     to always fail with ENOSYS.  Some functions are actually named
27322     something starting with __ and the normal name is an alias.  */
27323 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27324 choke me
27325 #else
27326 char (*f) () = gethostbyname_r;
27327 #endif
27328 #ifdef __cplusplus
27329 }
27330 #endif
27331
27332 int
27333 main ()
27334 {
27335 return f != gethostbyname_r;
27336   ;
27337   return 0;
27338 }
27339 _ACEOF
27340 rm -f conftest.$ac_objext conftest$ac_exeext
27341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27342   (eval $ac_link) 2>conftest.er1
27343   ac_status=$?
27344   grep -v '^ *+' conftest.er1 >conftest.err
27345   rm -f conftest.er1
27346   cat conftest.err >&5
27347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348   (exit $ac_status); } &&
27349          { ac_try='test -z "$ac_c_werror_flag"
27350                          || test ! -s conftest.err'
27351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27352   (eval $ac_try) 2>&5
27353   ac_status=$?
27354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355   (exit $ac_status); }; } &&
27356          { ac_try='test -s conftest$ac_exeext'
27357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27358   (eval $ac_try) 2>&5
27359   ac_status=$?
27360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361   (exit $ac_status); }; }; then
27362   ac_cv_func_gethostbyname_r=yes
27363 else
27364   echo "$as_me: failed program was:" >&5
27365 sed 's/^/| /' conftest.$ac_ext >&5
27366
27367 ac_cv_func_gethostbyname_r=no
27368 fi
27369 rm -f conftest.err conftest.$ac_objext \
27370       conftest$ac_exeext conftest.$ac_ext
27371 fi
27372 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27373 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27374 if test $ac_cv_func_gethostbyname_r = yes; then
27375   echo "$as_me:$LINENO: result: using libc's resolver" >&5
27376 echo "${ECHO_T}using libc's resolver" >&6
27377 else
27378
27379 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27380 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
27381 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27382   echo $ECHO_N "(cached) $ECHO_C" >&6
27383 else
27384   ac_check_lib_save_LIBS=$LIBS
27385 LIBS="-lnsl  $LIBS"
27386 cat >conftest.$ac_ext <<_ACEOF
27387 /* confdefs.h.  */
27388 _ACEOF
27389 cat confdefs.h >>conftest.$ac_ext
27390 cat >>conftest.$ac_ext <<_ACEOF
27391 /* end confdefs.h.  */
27392
27393 /* Override any gcc2 internal prototype to avoid an error.  */
27394 #ifdef __cplusplus
27395 extern "C"
27396 #endif
27397 /* We use char because int might match the return type of a gcc2
27398    builtin and then its argument prototype would still apply.  */
27399 char gethostbyname_r ();
27400 int
27401 main ()
27402 {
27403 gethostbyname_r ();
27404   ;
27405   return 0;
27406 }
27407 _ACEOF
27408 rm -f conftest.$ac_objext conftest$ac_exeext
27409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27410   (eval $ac_link) 2>conftest.er1
27411   ac_status=$?
27412   grep -v '^ *+' conftest.er1 >conftest.err
27413   rm -f conftest.er1
27414   cat conftest.err >&5
27415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416   (exit $ac_status); } &&
27417          { ac_try='test -z "$ac_c_werror_flag"
27418                          || test ! -s conftest.err'
27419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27420   (eval $ac_try) 2>&5
27421   ac_status=$?
27422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423   (exit $ac_status); }; } &&
27424          { ac_try='test -s conftest$ac_exeext'
27425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27426   (eval $ac_try) 2>&5
27427   ac_status=$?
27428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429   (exit $ac_status); }; }; then
27430   ac_cv_lib_nsl_gethostbyname_r=yes
27431 else
27432   echo "$as_me: failed program was:" >&5
27433 sed 's/^/| /' conftest.$ac_ext >&5
27434
27435 ac_cv_lib_nsl_gethostbyname_r=no
27436 fi
27437 rm -f conftest.err conftest.$ac_objext \
27438       conftest$ac_exeext conftest.$ac_ext
27439 LIBS=$ac_check_lib_save_LIBS
27440 fi
27441 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27442 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
27443 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27444   cat >>confdefs.h <<_ACEOF
27445 #define HAVE_LIBNSL 1
27446 _ACEOF
27447
27448   LIBS="-lnsl $LIBS"
27449
27450 fi
27451
27452
27453 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27454 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
27455 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27456   echo $ECHO_N "(cached) $ECHO_C" >&6
27457 else
27458   ac_check_lib_save_LIBS=$LIBS
27459 LIBS="-lresolv  $LIBS"
27460 cat >conftest.$ac_ext <<_ACEOF
27461 /* confdefs.h.  */
27462 _ACEOF
27463 cat confdefs.h >>conftest.$ac_ext
27464 cat >>conftest.$ac_ext <<_ACEOF
27465 /* end confdefs.h.  */
27466
27467 /* Override any gcc2 internal prototype to avoid an error.  */
27468 #ifdef __cplusplus
27469 extern "C"
27470 #endif
27471 /* We use char because int might match the return type of a gcc2
27472    builtin and then its argument prototype would still apply.  */
27473 char gethostbyname_r ();
27474 int
27475 main ()
27476 {
27477 gethostbyname_r ();
27478   ;
27479   return 0;
27480 }
27481 _ACEOF
27482 rm -f conftest.$ac_objext conftest$ac_exeext
27483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27484   (eval $ac_link) 2>conftest.er1
27485   ac_status=$?
27486   grep -v '^ *+' conftest.er1 >conftest.err
27487   rm -f conftest.er1
27488   cat conftest.err >&5
27489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490   (exit $ac_status); } &&
27491          { ac_try='test -z "$ac_c_werror_flag"
27492                          || test ! -s conftest.err'
27493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27494   (eval $ac_try) 2>&5
27495   ac_status=$?
27496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497   (exit $ac_status); }; } &&
27498          { ac_try='test -s conftest$ac_exeext'
27499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27500   (eval $ac_try) 2>&5
27501   ac_status=$?
27502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503   (exit $ac_status); }; }; then
27504   ac_cv_lib_resolv_gethostbyname_r=yes
27505 else
27506   echo "$as_me: failed program was:" >&5
27507 sed 's/^/| /' conftest.$ac_ext >&5
27508
27509 ac_cv_lib_resolv_gethostbyname_r=no
27510 fi
27511 rm -f conftest.err conftest.$ac_objext \
27512       conftest$ac_exeext conftest.$ac_ext
27513 LIBS=$ac_check_lib_save_LIBS
27514 fi
27515 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27516 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
27517 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27518   cat >>confdefs.h <<_ACEOF
27519 #define HAVE_LIBRESOLV 1
27520 _ACEOF
27521
27522   LIBS="-lresolv $LIBS"
27523
27524 fi
27525
27526 fi
27527
27528
27529
27530
27531
27532 for ac_func in inet_pton
27533 do
27534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27535 echo "$as_me:$LINENO: checking for $ac_func" >&5
27536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27537 if eval "test \"\${$as_ac_var+set}\" = set"; then
27538   echo $ECHO_N "(cached) $ECHO_C" >&6
27539 else
27540   cat >conftest.$ac_ext <<_ACEOF
27541 /* confdefs.h.  */
27542 _ACEOF
27543 cat confdefs.h >>conftest.$ac_ext
27544 cat >>conftest.$ac_ext <<_ACEOF
27545 /* end confdefs.h.  */
27546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27548 #define $ac_func innocuous_$ac_func
27549
27550 /* System header to define __stub macros and hopefully few prototypes,
27551     which can conflict with char $ac_func (); below.
27552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27553     <limits.h> exists even on freestanding compilers.  */
27554
27555 #ifdef __STDC__
27556 # include <limits.h>
27557 #else
27558 # include <assert.h>
27559 #endif
27560
27561 #undef $ac_func
27562
27563 /* Override any gcc2 internal prototype to avoid an error.  */
27564 #ifdef __cplusplus
27565 extern "C"
27566 {
27567 #endif
27568 /* We use char because int might match the return type of a gcc2
27569    builtin and then its argument prototype would still apply.  */
27570 char $ac_func ();
27571 /* The GNU C library defines this for functions which it implements
27572     to always fail with ENOSYS.  Some functions are actually named
27573     something starting with __ and the normal name is an alias.  */
27574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27575 choke me
27576 #else
27577 char (*f) () = $ac_func;
27578 #endif
27579 #ifdef __cplusplus
27580 }
27581 #endif
27582
27583 int
27584 main ()
27585 {
27586 return f != $ac_func;
27587   ;
27588   return 0;
27589 }
27590 _ACEOF
27591 rm -f conftest.$ac_objext conftest$ac_exeext
27592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27593   (eval $ac_link) 2>conftest.er1
27594   ac_status=$?
27595   grep -v '^ *+' conftest.er1 >conftest.err
27596   rm -f conftest.er1
27597   cat conftest.err >&5
27598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599   (exit $ac_status); } &&
27600          { ac_try='test -z "$ac_c_werror_flag"
27601                          || test ! -s conftest.err'
27602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27603   (eval $ac_try) 2>&5
27604   ac_status=$?
27605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606   (exit $ac_status); }; } &&
27607          { ac_try='test -s conftest$ac_exeext'
27608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27609   (eval $ac_try) 2>&5
27610   ac_status=$?
27611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612   (exit $ac_status); }; }; then
27613   eval "$as_ac_var=yes"
27614 else
27615   echo "$as_me: failed program was:" >&5
27616 sed 's/^/| /' conftest.$ac_ext >&5
27617
27618 eval "$as_ac_var=no"
27619 fi
27620 rm -f conftest.err conftest.$ac_objext \
27621       conftest$ac_exeext conftest.$ac_ext
27622 fi
27623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27625 if test `eval echo '${'$as_ac_var'}'` = yes; then
27626   cat >>confdefs.h <<_ACEOF
27627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27628 _ACEOF
27629  cat >>confdefs.h <<\_ACEOF
27630 #define HAVE_INET_PTON 1
27631 _ACEOF
27632
27633 fi
27634 done
27635
27636
27637 for ac_func in inet_ntop
27638 do
27639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27640 echo "$as_me:$LINENO: checking for $ac_func" >&5
27641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27642 if eval "test \"\${$as_ac_var+set}\" = set"; then
27643   echo $ECHO_N "(cached) $ECHO_C" >&6
27644 else
27645   cat >conftest.$ac_ext <<_ACEOF
27646 /* confdefs.h.  */
27647 _ACEOF
27648 cat confdefs.h >>conftest.$ac_ext
27649 cat >>conftest.$ac_ext <<_ACEOF
27650 /* end confdefs.h.  */
27651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27653 #define $ac_func innocuous_$ac_func
27654
27655 /* System header to define __stub macros and hopefully few prototypes,
27656     which can conflict with char $ac_func (); below.
27657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27658     <limits.h> exists even on freestanding compilers.  */
27659
27660 #ifdef __STDC__
27661 # include <limits.h>
27662 #else
27663 # include <assert.h>
27664 #endif
27665
27666 #undef $ac_func
27667
27668 /* Override any gcc2 internal prototype to avoid an error.  */
27669 #ifdef __cplusplus
27670 extern "C"
27671 {
27672 #endif
27673 /* We use char because int might match the return type of a gcc2
27674    builtin and then its argument prototype would still apply.  */
27675 char $ac_func ();
27676 /* The GNU C library defines this for functions which it implements
27677     to always fail with ENOSYS.  Some functions are actually named
27678     something starting with __ and the normal name is an alias.  */
27679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27680 choke me
27681 #else
27682 char (*f) () = $ac_func;
27683 #endif
27684 #ifdef __cplusplus
27685 }
27686 #endif
27687
27688 int
27689 main ()
27690 {
27691 return f != $ac_func;
27692   ;
27693   return 0;
27694 }
27695 _ACEOF
27696 rm -f conftest.$ac_objext conftest$ac_exeext
27697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27698   (eval $ac_link) 2>conftest.er1
27699   ac_status=$?
27700   grep -v '^ *+' conftest.er1 >conftest.err
27701   rm -f conftest.er1
27702   cat conftest.err >&5
27703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704   (exit $ac_status); } &&
27705          { ac_try='test -z "$ac_c_werror_flag"
27706                          || test ! -s conftest.err'
27707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27708   (eval $ac_try) 2>&5
27709   ac_status=$?
27710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711   (exit $ac_status); }; } &&
27712          { ac_try='test -s conftest$ac_exeext'
27713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27714   (eval $ac_try) 2>&5
27715   ac_status=$?
27716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717   (exit $ac_status); }; }; then
27718   eval "$as_ac_var=yes"
27719 else
27720   echo "$as_me: failed program was:" >&5
27721 sed 's/^/| /' conftest.$ac_ext >&5
27722
27723 eval "$as_ac_var=no"
27724 fi
27725 rm -f conftest.err conftest.$ac_objext \
27726       conftest$ac_exeext conftest.$ac_ext
27727 fi
27728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27730 if test `eval echo '${'$as_ac_var'}'` = yes; then
27731   cat >>confdefs.h <<_ACEOF
27732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27733 _ACEOF
27734  cat >>confdefs.h <<\_ACEOF
27735 #define HAVE_INET_NTOP 1
27736 _ACEOF
27737
27738 fi
27739 done
27740
27741
27742 for ac_func in gethostbyname2
27743 do
27744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27745 echo "$as_me:$LINENO: checking for $ac_func" >&5
27746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27747 if eval "test \"\${$as_ac_var+set}\" = set"; then
27748   echo $ECHO_N "(cached) $ECHO_C" >&6
27749 else
27750   cat >conftest.$ac_ext <<_ACEOF
27751 /* confdefs.h.  */
27752 _ACEOF
27753 cat confdefs.h >>conftest.$ac_ext
27754 cat >>conftest.$ac_ext <<_ACEOF
27755 /* end confdefs.h.  */
27756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27758 #define $ac_func innocuous_$ac_func
27759
27760 /* System header to define __stub macros and hopefully few prototypes,
27761     which can conflict with char $ac_func (); below.
27762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27763     <limits.h> exists even on freestanding compilers.  */
27764
27765 #ifdef __STDC__
27766 # include <limits.h>
27767 #else
27768 # include <assert.h>
27769 #endif
27770
27771 #undef $ac_func
27772
27773 /* Override any gcc2 internal prototype to avoid an error.  */
27774 #ifdef __cplusplus
27775 extern "C"
27776 {
27777 #endif
27778 /* We use char because int might match the return type of a gcc2
27779    builtin and then its argument prototype would still apply.  */
27780 char $ac_func ();
27781 /* The GNU C library defines this for functions which it implements
27782     to always fail with ENOSYS.  Some functions are actually named
27783     something starting with __ and the normal name is an alias.  */
27784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27785 choke me
27786 #else
27787 char (*f) () = $ac_func;
27788 #endif
27789 #ifdef __cplusplus
27790 }
27791 #endif
27792
27793 int
27794 main ()
27795 {
27796 return f != $ac_func;
27797   ;
27798   return 0;
27799 }
27800 _ACEOF
27801 rm -f conftest.$ac_objext conftest$ac_exeext
27802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27803   (eval $ac_link) 2>conftest.er1
27804   ac_status=$?
27805   grep -v '^ *+' conftest.er1 >conftest.err
27806   rm -f conftest.er1
27807   cat conftest.err >&5
27808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809   (exit $ac_status); } &&
27810          { ac_try='test -z "$ac_c_werror_flag"
27811                          || test ! -s conftest.err'
27812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27813   (eval $ac_try) 2>&5
27814   ac_status=$?
27815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816   (exit $ac_status); }; } &&
27817          { ac_try='test -s conftest$ac_exeext'
27818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27819   (eval $ac_try) 2>&5
27820   ac_status=$?
27821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27822   (exit $ac_status); }; }; then
27823   eval "$as_ac_var=yes"
27824 else
27825   echo "$as_me: failed program was:" >&5
27826 sed 's/^/| /' conftest.$ac_ext >&5
27827
27828 eval "$as_ac_var=no"
27829 fi
27830 rm -f conftest.err conftest.$ac_objext \
27831       conftest$ac_exeext conftest.$ac_ext
27832 fi
27833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27835 if test `eval echo '${'$as_ac_var'}'` = yes; then
27836   cat >>confdefs.h <<_ACEOF
27837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27838 _ACEOF
27839  cat >>confdefs.h <<\_ACEOF
27840 #define HAVE_GETHOSTBYNAME2 1
27841 _ACEOF
27842
27843 fi
27844 done
27845
27846
27847 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27848 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27849 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27850   echo $ECHO_N "(cached) $ECHO_C" >&6
27851 else
27852   cat >conftest.$ac_ext <<_ACEOF
27853 /* confdefs.h.  */
27854 _ACEOF
27855 cat confdefs.h >>conftest.$ac_ext
27856 cat >>conftest.$ac_ext <<_ACEOF
27857 /* end confdefs.h.  */
27858 #include <sys/socket.h>
27859 int
27860 main ()
27861 {
27862 struct sockaddr s; s.sa_len;
27863   ;
27864   return 0;
27865 }
27866 _ACEOF
27867 rm -f conftest.$ac_objext
27868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27869   (eval $ac_compile) 2>conftest.er1
27870   ac_status=$?
27871   grep -v '^ *+' conftest.er1 >conftest.err
27872   rm -f conftest.er1
27873   cat conftest.err >&5
27874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875   (exit $ac_status); } &&
27876          { ac_try='test -z "$ac_c_werror_flag"
27877                          || test ! -s conftest.err'
27878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27879   (eval $ac_try) 2>&5
27880   ac_status=$?
27881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882   (exit $ac_status); }; } &&
27883          { ac_try='test -s conftest.$ac_objext'
27884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27885   (eval $ac_try) 2>&5
27886   ac_status=$?
27887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888   (exit $ac_status); }; }; then
27889   ac_cv_struct_sockaddr_sa_len=yes
27890 else
27891   echo "$as_me: failed program was:" >&5
27892 sed 's/^/| /' conftest.$ac_ext >&5
27893
27894 ac_cv_struct_sockaddr_sa_len=no
27895 fi
27896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27897 fi
27898 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27899 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27900
27901  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27902
27903 cat >>confdefs.h <<\_ACEOF
27904 #define HAVE_SA_LEN 1
27905 _ACEOF
27906
27907  fi
27908
27909
27910
27911
27912
27913 for ac_func in strftime
27914 do
27915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27916 echo "$as_me:$LINENO: checking for $ac_func" >&5
27917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27918 if eval "test \"\${$as_ac_var+set}\" = set"; then
27919   echo $ECHO_N "(cached) $ECHO_C" >&6
27920 else
27921   cat >conftest.$ac_ext <<_ACEOF
27922 /* confdefs.h.  */
27923 _ACEOF
27924 cat confdefs.h >>conftest.$ac_ext
27925 cat >>conftest.$ac_ext <<_ACEOF
27926 /* end confdefs.h.  */
27927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27929 #define $ac_func innocuous_$ac_func
27930
27931 /* System header to define __stub macros and hopefully few prototypes,
27932     which can conflict with char $ac_func (); below.
27933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27934     <limits.h> exists even on freestanding compilers.  */
27935
27936 #ifdef __STDC__
27937 # include <limits.h>
27938 #else
27939 # include <assert.h>
27940 #endif
27941
27942 #undef $ac_func
27943
27944 /* Override any gcc2 internal prototype to avoid an error.  */
27945 #ifdef __cplusplus
27946 extern "C"
27947 {
27948 #endif
27949 /* We use char because int might match the return type of a gcc2
27950    builtin and then its argument prototype would still apply.  */
27951 char $ac_func ();
27952 /* The GNU C library defines this for functions which it implements
27953     to always fail with ENOSYS.  Some functions are actually named
27954     something starting with __ and the normal name is an alias.  */
27955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27956 choke me
27957 #else
27958 char (*f) () = $ac_func;
27959 #endif
27960 #ifdef __cplusplus
27961 }
27962 #endif
27963
27964 int
27965 main ()
27966 {
27967 return f != $ac_func;
27968   ;
27969   return 0;
27970 }
27971 _ACEOF
27972 rm -f conftest.$ac_objext conftest$ac_exeext
27973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27974   (eval $ac_link) 2>conftest.er1
27975   ac_status=$?
27976   grep -v '^ *+' conftest.er1 >conftest.err
27977   rm -f conftest.er1
27978   cat conftest.err >&5
27979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980   (exit $ac_status); } &&
27981          { ac_try='test -z "$ac_c_werror_flag"
27982                          || test ! -s conftest.err'
27983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27984   (eval $ac_try) 2>&5
27985   ac_status=$?
27986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987   (exit $ac_status); }; } &&
27988          { ac_try='test -s conftest$ac_exeext'
27989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27990   (eval $ac_try) 2>&5
27991   ac_status=$?
27992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993   (exit $ac_status); }; }; then
27994   eval "$as_ac_var=yes"
27995 else
27996   echo "$as_me: failed program was:" >&5
27997 sed 's/^/| /' conftest.$ac_ext >&5
27998
27999 eval "$as_ac_var=no"
28000 fi
28001 rm -f conftest.err conftest.$ac_objext \
28002       conftest$ac_exeext conftest.$ac_ext
28003 fi
28004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28006 if test `eval echo '${'$as_ac_var'}'` = yes; then
28007   cat >>confdefs.h <<_ACEOF
28008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28009 _ACEOF
28010
28011 else
28012   # strftime is in -lintl on SCO UNIX.
28013 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28014 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
28015 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28016   echo $ECHO_N "(cached) $ECHO_C" >&6
28017 else
28018   ac_check_lib_save_LIBS=$LIBS
28019 LIBS="-lintl  $LIBS"
28020 cat >conftest.$ac_ext <<_ACEOF
28021 /* confdefs.h.  */
28022 _ACEOF
28023 cat confdefs.h >>conftest.$ac_ext
28024 cat >>conftest.$ac_ext <<_ACEOF
28025 /* end confdefs.h.  */
28026
28027 /* Override any gcc2 internal prototype to avoid an error.  */
28028 #ifdef __cplusplus
28029 extern "C"
28030 #endif
28031 /* We use char because int might match the return type of a gcc2
28032    builtin and then its argument prototype would still apply.  */
28033 char strftime ();
28034 int
28035 main ()
28036 {
28037 strftime ();
28038   ;
28039   return 0;
28040 }
28041 _ACEOF
28042 rm -f conftest.$ac_objext conftest$ac_exeext
28043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28044   (eval $ac_link) 2>conftest.er1
28045   ac_status=$?
28046   grep -v '^ *+' conftest.er1 >conftest.err
28047   rm -f conftest.er1
28048   cat conftest.err >&5
28049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050   (exit $ac_status); } &&
28051          { ac_try='test -z "$ac_c_werror_flag"
28052                          || test ! -s conftest.err'
28053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054   (eval $ac_try) 2>&5
28055   ac_status=$?
28056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057   (exit $ac_status); }; } &&
28058          { ac_try='test -s conftest$ac_exeext'
28059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28060   (eval $ac_try) 2>&5
28061   ac_status=$?
28062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063   (exit $ac_status); }; }; then
28064   ac_cv_lib_intl_strftime=yes
28065 else
28066   echo "$as_me: failed program was:" >&5
28067 sed 's/^/| /' conftest.$ac_ext >&5
28068
28069 ac_cv_lib_intl_strftime=no
28070 fi
28071 rm -f conftest.err conftest.$ac_objext \
28072       conftest$ac_exeext conftest.$ac_ext
28073 LIBS=$ac_check_lib_save_LIBS
28074 fi
28075 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28076 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
28077 if test $ac_cv_lib_intl_strftime = yes; then
28078   cat >>confdefs.h <<\_ACEOF
28079 #define HAVE_STRFTIME 1
28080 _ACEOF
28081
28082 LIBS="-lintl $LIBS"
28083 fi
28084
28085 fi
28086 done
28087
28088
28089 for ac_func in vprintf
28090 do
28091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28092 echo "$as_me:$LINENO: checking for $ac_func" >&5
28093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28094 if eval "test \"\${$as_ac_var+set}\" = set"; then
28095   echo $ECHO_N "(cached) $ECHO_C" >&6
28096 else
28097   cat >conftest.$ac_ext <<_ACEOF
28098 /* confdefs.h.  */
28099 _ACEOF
28100 cat confdefs.h >>conftest.$ac_ext
28101 cat >>conftest.$ac_ext <<_ACEOF
28102 /* end confdefs.h.  */
28103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28105 #define $ac_func innocuous_$ac_func
28106
28107 /* System header to define __stub macros and hopefully few prototypes,
28108     which can conflict with char $ac_func (); below.
28109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28110     <limits.h> exists even on freestanding compilers.  */
28111
28112 #ifdef __STDC__
28113 # include <limits.h>
28114 #else
28115 # include <assert.h>
28116 #endif
28117
28118 #undef $ac_func
28119
28120 /* Override any gcc2 internal prototype to avoid an error.  */
28121 #ifdef __cplusplus
28122 extern "C"
28123 {
28124 #endif
28125 /* We use char because int might match the return type of a gcc2
28126    builtin and then its argument prototype would still apply.  */
28127 char $ac_func ();
28128 /* The GNU C library defines this for functions which it implements
28129     to always fail with ENOSYS.  Some functions are actually named
28130     something starting with __ and the normal name is an alias.  */
28131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28132 choke me
28133 #else
28134 char (*f) () = $ac_func;
28135 #endif
28136 #ifdef __cplusplus
28137 }
28138 #endif
28139
28140 int
28141 main ()
28142 {
28143 return f != $ac_func;
28144   ;
28145   return 0;
28146 }
28147 _ACEOF
28148 rm -f conftest.$ac_objext conftest$ac_exeext
28149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28150   (eval $ac_link) 2>conftest.er1
28151   ac_status=$?
28152   grep -v '^ *+' conftest.er1 >conftest.err
28153   rm -f conftest.er1
28154   cat conftest.err >&5
28155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156   (exit $ac_status); } &&
28157          { ac_try='test -z "$ac_c_werror_flag"
28158                          || test ! -s conftest.err'
28159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28160   (eval $ac_try) 2>&5
28161   ac_status=$?
28162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163   (exit $ac_status); }; } &&
28164          { ac_try='test -s conftest$ac_exeext'
28165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28166   (eval $ac_try) 2>&5
28167   ac_status=$?
28168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169   (exit $ac_status); }; }; then
28170   eval "$as_ac_var=yes"
28171 else
28172   echo "$as_me: failed program was:" >&5
28173 sed 's/^/| /' conftest.$ac_ext >&5
28174
28175 eval "$as_ac_var=no"
28176 fi
28177 rm -f conftest.err conftest.$ac_objext \
28178       conftest$ac_exeext conftest.$ac_ext
28179 fi
28180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28182 if test `eval echo '${'$as_ac_var'}'` = yes; then
28183   cat >>confdefs.h <<_ACEOF
28184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28185 _ACEOF
28186
28187 echo "$as_me:$LINENO: checking for _doprnt" >&5
28188 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28189 if test "${ac_cv_func__doprnt+set}" = set; then
28190   echo $ECHO_N "(cached) $ECHO_C" >&6
28191 else
28192   cat >conftest.$ac_ext <<_ACEOF
28193 /* confdefs.h.  */
28194 _ACEOF
28195 cat confdefs.h >>conftest.$ac_ext
28196 cat >>conftest.$ac_ext <<_ACEOF
28197 /* end confdefs.h.  */
28198 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28200 #define _doprnt innocuous__doprnt
28201
28202 /* System header to define __stub macros and hopefully few prototypes,
28203     which can conflict with char _doprnt (); below.
28204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28205     <limits.h> exists even on freestanding compilers.  */
28206
28207 #ifdef __STDC__
28208 # include <limits.h>
28209 #else
28210 # include <assert.h>
28211 #endif
28212
28213 #undef _doprnt
28214
28215 /* Override any gcc2 internal prototype to avoid an error.  */
28216 #ifdef __cplusplus
28217 extern "C"
28218 {
28219 #endif
28220 /* We use char because int might match the return type of a gcc2
28221    builtin and then its argument prototype would still apply.  */
28222 char _doprnt ();
28223 /* The GNU C library defines this for functions which it implements
28224     to always fail with ENOSYS.  Some functions are actually named
28225     something starting with __ and the normal name is an alias.  */
28226 #if defined (__stub__doprnt) || defined (__stub____doprnt)
28227 choke me
28228 #else
28229 char (*f) () = _doprnt;
28230 #endif
28231 #ifdef __cplusplus
28232 }
28233 #endif
28234
28235 int
28236 main ()
28237 {
28238 return f != _doprnt;
28239   ;
28240   return 0;
28241 }
28242 _ACEOF
28243 rm -f conftest.$ac_objext conftest$ac_exeext
28244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28245   (eval $ac_link) 2>conftest.er1
28246   ac_status=$?
28247   grep -v '^ *+' conftest.er1 >conftest.err
28248   rm -f conftest.er1
28249   cat conftest.err >&5
28250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251   (exit $ac_status); } &&
28252          { ac_try='test -z "$ac_c_werror_flag"
28253                          || test ! -s conftest.err'
28254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28255   (eval $ac_try) 2>&5
28256   ac_status=$?
28257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258   (exit $ac_status); }; } &&
28259          { ac_try='test -s conftest$ac_exeext'
28260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28261   (eval $ac_try) 2>&5
28262   ac_status=$?
28263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264   (exit $ac_status); }; }; then
28265   ac_cv_func__doprnt=yes
28266 else
28267   echo "$as_me: failed program was:" >&5
28268 sed 's/^/| /' conftest.$ac_ext >&5
28269
28270 ac_cv_func__doprnt=no
28271 fi
28272 rm -f conftest.err conftest.$ac_objext \
28273       conftest$ac_exeext conftest.$ac_ext
28274 fi
28275 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28276 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28277 if test $ac_cv_func__doprnt = yes; then
28278
28279 cat >>confdefs.h <<\_ACEOF
28280 #define HAVE_DOPRNT 1
28281 _ACEOF
28282
28283 fi
28284
28285 fi
28286 done
28287
28288
28289 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28290 # for constant arguments.  Useless!
28291 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28292 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28293 if test "${ac_cv_working_alloca_h+set}" = set; then
28294   echo $ECHO_N "(cached) $ECHO_C" >&6
28295 else
28296   cat >conftest.$ac_ext <<_ACEOF
28297 /* confdefs.h.  */
28298 _ACEOF
28299 cat confdefs.h >>conftest.$ac_ext
28300 cat >>conftest.$ac_ext <<_ACEOF
28301 /* end confdefs.h.  */
28302 #include <alloca.h>
28303 int
28304 main ()
28305 {
28306 char *p = (char *) alloca (2 * sizeof (int));
28307   ;
28308   return 0;
28309 }
28310 _ACEOF
28311 rm -f conftest.$ac_objext conftest$ac_exeext
28312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28313   (eval $ac_link) 2>conftest.er1
28314   ac_status=$?
28315   grep -v '^ *+' conftest.er1 >conftest.err
28316   rm -f conftest.er1
28317   cat conftest.err >&5
28318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28319   (exit $ac_status); } &&
28320          { ac_try='test -z "$ac_c_werror_flag"
28321                          || test ! -s conftest.err'
28322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28323   (eval $ac_try) 2>&5
28324   ac_status=$?
28325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326   (exit $ac_status); }; } &&
28327          { ac_try='test -s conftest$ac_exeext'
28328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28329   (eval $ac_try) 2>&5
28330   ac_status=$?
28331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332   (exit $ac_status); }; }; then
28333   ac_cv_working_alloca_h=yes
28334 else
28335   echo "$as_me: failed program was:" >&5
28336 sed 's/^/| /' conftest.$ac_ext >&5
28337
28338 ac_cv_working_alloca_h=no
28339 fi
28340 rm -f conftest.err conftest.$ac_objext \
28341       conftest$ac_exeext conftest.$ac_ext
28342 fi
28343 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28344 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28345 if test $ac_cv_working_alloca_h = yes; then
28346
28347 cat >>confdefs.h <<\_ACEOF
28348 #define HAVE_ALLOCA_H 1
28349 _ACEOF
28350
28351 fi
28352
28353 echo "$as_me:$LINENO: checking for alloca" >&5
28354 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28355 if test "${ac_cv_func_alloca_works+set}" = set; then
28356   echo $ECHO_N "(cached) $ECHO_C" >&6
28357 else
28358   cat >conftest.$ac_ext <<_ACEOF
28359 /* confdefs.h.  */
28360 _ACEOF
28361 cat confdefs.h >>conftest.$ac_ext
28362 cat >>conftest.$ac_ext <<_ACEOF
28363 /* end confdefs.h.  */
28364 #ifdef __GNUC__
28365 # define alloca __builtin_alloca
28366 #else
28367 # ifdef _MSC_VER
28368 #  include <malloc.h>
28369 #  define alloca _alloca
28370 # else
28371 #  if HAVE_ALLOCA_H
28372 #   include <alloca.h>
28373 #  else
28374 #   ifdef _AIX
28375  #pragma alloca
28376 #   else
28377 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28378 char *alloca ();
28379 #    endif
28380 #   endif
28381 #  endif
28382 # endif
28383 #endif
28384
28385 int
28386 main ()
28387 {
28388 char *p = (char *) alloca (1);
28389   ;
28390   return 0;
28391 }
28392 _ACEOF
28393 rm -f conftest.$ac_objext conftest$ac_exeext
28394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28395   (eval $ac_link) 2>conftest.er1
28396   ac_status=$?
28397   grep -v '^ *+' conftest.er1 >conftest.err
28398   rm -f conftest.er1
28399   cat conftest.err >&5
28400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401   (exit $ac_status); } &&
28402          { ac_try='test -z "$ac_c_werror_flag"
28403                          || test ! -s conftest.err'
28404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28405   (eval $ac_try) 2>&5
28406   ac_status=$?
28407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408   (exit $ac_status); }; } &&
28409          { ac_try='test -s conftest$ac_exeext'
28410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28411   (eval $ac_try) 2>&5
28412   ac_status=$?
28413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414   (exit $ac_status); }; }; then
28415   ac_cv_func_alloca_works=yes
28416 else
28417   echo "$as_me: failed program was:" >&5
28418 sed 's/^/| /' conftest.$ac_ext >&5
28419
28420 ac_cv_func_alloca_works=no
28421 fi
28422 rm -f conftest.err conftest.$ac_objext \
28423       conftest$ac_exeext conftest.$ac_ext
28424 fi
28425 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28426 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28427
28428 if test $ac_cv_func_alloca_works = yes; then
28429
28430 cat >>confdefs.h <<\_ACEOF
28431 #define HAVE_ALLOCA 1
28432 _ACEOF
28433
28434 else
28435   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28436 # that cause trouble.  Some versions do not even contain alloca or
28437 # contain a buggy version.  If you still want to use their alloca,
28438 # use ar to extract alloca.o from them instead of compiling alloca.c.
28439
28440 ALLOCA=alloca.$ac_objext
28441
28442 cat >>confdefs.h <<\_ACEOF
28443 #define C_ALLOCA 1
28444 _ACEOF
28445
28446
28447 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28448 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28449 if test "${ac_cv_os_cray+set}" = set; then
28450   echo $ECHO_N "(cached) $ECHO_C" >&6
28451 else
28452   cat >conftest.$ac_ext <<_ACEOF
28453 /* confdefs.h.  */
28454 _ACEOF
28455 cat confdefs.h >>conftest.$ac_ext
28456 cat >>conftest.$ac_ext <<_ACEOF
28457 /* end confdefs.h.  */
28458 #if defined(CRAY) && ! defined(CRAY2)
28459 webecray
28460 #else
28461 wenotbecray
28462 #endif
28463
28464 _ACEOF
28465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28466   $EGREP "webecray" >/dev/null 2>&1; then
28467   ac_cv_os_cray=yes
28468 else
28469   ac_cv_os_cray=no
28470 fi
28471 rm -f conftest*
28472
28473 fi
28474 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28475 echo "${ECHO_T}$ac_cv_os_cray" >&6
28476 if test $ac_cv_os_cray = yes; then
28477   for ac_func in _getb67 GETB67 getb67; do
28478     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28479 echo "$as_me:$LINENO: checking for $ac_func" >&5
28480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28481 if eval "test \"\${$as_ac_var+set}\" = set"; then
28482   echo $ECHO_N "(cached) $ECHO_C" >&6
28483 else
28484   cat >conftest.$ac_ext <<_ACEOF
28485 /* confdefs.h.  */
28486 _ACEOF
28487 cat confdefs.h >>conftest.$ac_ext
28488 cat >>conftest.$ac_ext <<_ACEOF
28489 /* end confdefs.h.  */
28490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28492 #define $ac_func innocuous_$ac_func
28493
28494 /* System header to define __stub macros and hopefully few prototypes,
28495     which can conflict with char $ac_func (); below.
28496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28497     <limits.h> exists even on freestanding compilers.  */
28498
28499 #ifdef __STDC__
28500 # include <limits.h>
28501 #else
28502 # include <assert.h>
28503 #endif
28504
28505 #undef $ac_func
28506
28507 /* Override any gcc2 internal prototype to avoid an error.  */
28508 #ifdef __cplusplus
28509 extern "C"
28510 {
28511 #endif
28512 /* We use char because int might match the return type of a gcc2
28513    builtin and then its argument prototype would still apply.  */
28514 char $ac_func ();
28515 /* The GNU C library defines this for functions which it implements
28516     to always fail with ENOSYS.  Some functions are actually named
28517     something starting with __ and the normal name is an alias.  */
28518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28519 choke me
28520 #else
28521 char (*f) () = $ac_func;
28522 #endif
28523 #ifdef __cplusplus
28524 }
28525 #endif
28526
28527 int
28528 main ()
28529 {
28530 return f != $ac_func;
28531   ;
28532   return 0;
28533 }
28534 _ACEOF
28535 rm -f conftest.$ac_objext conftest$ac_exeext
28536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28537   (eval $ac_link) 2>conftest.er1
28538   ac_status=$?
28539   grep -v '^ *+' conftest.er1 >conftest.err
28540   rm -f conftest.er1
28541   cat conftest.err >&5
28542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543   (exit $ac_status); } &&
28544          { ac_try='test -z "$ac_c_werror_flag"
28545                          || test ! -s conftest.err'
28546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28547   (eval $ac_try) 2>&5
28548   ac_status=$?
28549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550   (exit $ac_status); }; } &&
28551          { ac_try='test -s conftest$ac_exeext'
28552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28553   (eval $ac_try) 2>&5
28554   ac_status=$?
28555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556   (exit $ac_status); }; }; then
28557   eval "$as_ac_var=yes"
28558 else
28559   echo "$as_me: failed program was:" >&5
28560 sed 's/^/| /' conftest.$ac_ext >&5
28561
28562 eval "$as_ac_var=no"
28563 fi
28564 rm -f conftest.err conftest.$ac_objext \
28565       conftest$ac_exeext conftest.$ac_ext
28566 fi
28567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28569 if test `eval echo '${'$as_ac_var'}'` = yes; then
28570
28571 cat >>confdefs.h <<_ACEOF
28572 #define CRAY_STACKSEG_END $ac_func
28573 _ACEOF
28574
28575     break
28576 fi
28577
28578   done
28579 fi
28580
28581 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28582 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28583 if test "${ac_cv_c_stack_direction+set}" = set; then
28584   echo $ECHO_N "(cached) $ECHO_C" >&6
28585 else
28586   if test "$cross_compiling" = yes; then
28587   ac_cv_c_stack_direction=0
28588 else
28589   cat >conftest.$ac_ext <<_ACEOF
28590 /* confdefs.h.  */
28591 _ACEOF
28592 cat confdefs.h >>conftest.$ac_ext
28593 cat >>conftest.$ac_ext <<_ACEOF
28594 /* end confdefs.h.  */
28595 int
28596 find_stack_direction ()
28597 {
28598   static char *addr = 0;
28599   auto char dummy;
28600   if (addr == 0)
28601     {
28602       addr = &dummy;
28603       return find_stack_direction ();
28604     }
28605   else
28606     return (&dummy > addr) ? 1 : -1;
28607 }
28608
28609 int
28610 main ()
28611 {
28612   exit (find_stack_direction () < 0);
28613 }
28614 _ACEOF
28615 rm -f conftest$ac_exeext
28616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28617   (eval $ac_link) 2>&5
28618   ac_status=$?
28619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28622   (eval $ac_try) 2>&5
28623   ac_status=$?
28624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625   (exit $ac_status); }; }; then
28626   ac_cv_c_stack_direction=1
28627 else
28628   echo "$as_me: program exited with status $ac_status" >&5
28629 echo "$as_me: failed program was:" >&5
28630 sed 's/^/| /' conftest.$ac_ext >&5
28631
28632 ( exit $ac_status )
28633 ac_cv_c_stack_direction=-1
28634 fi
28635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28636 fi
28637 fi
28638 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28639 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28640
28641 cat >>confdefs.h <<_ACEOF
28642 #define STACK_DIRECTION $ac_cv_c_stack_direction
28643 _ACEOF
28644
28645
28646 fi
28647
28648 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28649 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28650 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28651 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28652   echo $ECHO_N "(cached) $ECHO_C" >&6
28653 else
28654   ac_check_lib_save_LIBS=$LIBS
28655 LIBS="-lsun  $LIBS"
28656 cat >conftest.$ac_ext <<_ACEOF
28657 /* confdefs.h.  */
28658 _ACEOF
28659 cat confdefs.h >>conftest.$ac_ext
28660 cat >>conftest.$ac_ext <<_ACEOF
28661 /* end confdefs.h.  */
28662
28663 /* Override any gcc2 internal prototype to avoid an error.  */
28664 #ifdef __cplusplus
28665 extern "C"
28666 #endif
28667 /* We use char because int might match the return type of a gcc2
28668    builtin and then its argument prototype would still apply.  */
28669 char getmntent ();
28670 int
28671 main ()
28672 {
28673 getmntent ();
28674   ;
28675   return 0;
28676 }
28677 _ACEOF
28678 rm -f conftest.$ac_objext conftest$ac_exeext
28679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28680   (eval $ac_link) 2>conftest.er1
28681   ac_status=$?
28682   grep -v '^ *+' conftest.er1 >conftest.err
28683   rm -f conftest.er1
28684   cat conftest.err >&5
28685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686   (exit $ac_status); } &&
28687          { ac_try='test -z "$ac_c_werror_flag"
28688                          || test ! -s conftest.err'
28689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28690   (eval $ac_try) 2>&5
28691   ac_status=$?
28692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693   (exit $ac_status); }; } &&
28694          { ac_try='test -s conftest$ac_exeext'
28695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28696   (eval $ac_try) 2>&5
28697   ac_status=$?
28698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699   (exit $ac_status); }; }; then
28700   ac_cv_lib_sun_getmntent=yes
28701 else
28702   echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28704
28705 ac_cv_lib_sun_getmntent=no
28706 fi
28707 rm -f conftest.err conftest.$ac_objext \
28708       conftest$ac_exeext conftest.$ac_ext
28709 LIBS=$ac_check_lib_save_LIBS
28710 fi
28711 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28712 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28713 if test $ac_cv_lib_sun_getmntent = yes; then
28714   LIBS="-lsun $LIBS"
28715 else
28716   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28717 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28718 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28719   echo $ECHO_N "(cached) $ECHO_C" >&6
28720 else
28721   ac_check_lib_save_LIBS=$LIBS
28722 LIBS="-lseq  $LIBS"
28723 cat >conftest.$ac_ext <<_ACEOF
28724 /* confdefs.h.  */
28725 _ACEOF
28726 cat confdefs.h >>conftest.$ac_ext
28727 cat >>conftest.$ac_ext <<_ACEOF
28728 /* end confdefs.h.  */
28729
28730 /* Override any gcc2 internal prototype to avoid an error.  */
28731 #ifdef __cplusplus
28732 extern "C"
28733 #endif
28734 /* We use char because int might match the return type of a gcc2
28735    builtin and then its argument prototype would still apply.  */
28736 char getmntent ();
28737 int
28738 main ()
28739 {
28740 getmntent ();
28741   ;
28742   return 0;
28743 }
28744 _ACEOF
28745 rm -f conftest.$ac_objext conftest$ac_exeext
28746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28747   (eval $ac_link) 2>conftest.er1
28748   ac_status=$?
28749   grep -v '^ *+' conftest.er1 >conftest.err
28750   rm -f conftest.er1
28751   cat conftest.err >&5
28752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753   (exit $ac_status); } &&
28754          { ac_try='test -z "$ac_c_werror_flag"
28755                          || test ! -s conftest.err'
28756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28757   (eval $ac_try) 2>&5
28758   ac_status=$?
28759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760   (exit $ac_status); }; } &&
28761          { ac_try='test -s conftest$ac_exeext'
28762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28763   (eval $ac_try) 2>&5
28764   ac_status=$?
28765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766   (exit $ac_status); }; }; then
28767   ac_cv_lib_seq_getmntent=yes
28768 else
28769   echo "$as_me: failed program was:" >&5
28770 sed 's/^/| /' conftest.$ac_ext >&5
28771
28772 ac_cv_lib_seq_getmntent=no
28773 fi
28774 rm -f conftest.err conftest.$ac_objext \
28775       conftest$ac_exeext conftest.$ac_ext
28776 LIBS=$ac_check_lib_save_LIBS
28777 fi
28778 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28779 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28780 if test $ac_cv_lib_seq_getmntent = yes; then
28781   LIBS="-lseq $LIBS"
28782 else
28783   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28784 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28785 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28786   echo $ECHO_N "(cached) $ECHO_C" >&6
28787 else
28788   ac_check_lib_save_LIBS=$LIBS
28789 LIBS="-lgen  $LIBS"
28790 cat >conftest.$ac_ext <<_ACEOF
28791 /* confdefs.h.  */
28792 _ACEOF
28793 cat confdefs.h >>conftest.$ac_ext
28794 cat >>conftest.$ac_ext <<_ACEOF
28795 /* end confdefs.h.  */
28796
28797 /* Override any gcc2 internal prototype to avoid an error.  */
28798 #ifdef __cplusplus
28799 extern "C"
28800 #endif
28801 /* We use char because int might match the return type of a gcc2
28802    builtin and then its argument prototype would still apply.  */
28803 char getmntent ();
28804 int
28805 main ()
28806 {
28807 getmntent ();
28808   ;
28809   return 0;
28810 }
28811 _ACEOF
28812 rm -f conftest.$ac_objext conftest$ac_exeext
28813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28814   (eval $ac_link) 2>conftest.er1
28815   ac_status=$?
28816   grep -v '^ *+' conftest.er1 >conftest.err
28817   rm -f conftest.er1
28818   cat conftest.err >&5
28819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820   (exit $ac_status); } &&
28821          { ac_try='test -z "$ac_c_werror_flag"
28822                          || test ! -s conftest.err'
28823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28824   (eval $ac_try) 2>&5
28825   ac_status=$?
28826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827   (exit $ac_status); }; } &&
28828          { ac_try='test -s conftest$ac_exeext'
28829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28830   (eval $ac_try) 2>&5
28831   ac_status=$?
28832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833   (exit $ac_status); }; }; then
28834   ac_cv_lib_gen_getmntent=yes
28835 else
28836   echo "$as_me: failed program was:" >&5
28837 sed 's/^/| /' conftest.$ac_ext >&5
28838
28839 ac_cv_lib_gen_getmntent=no
28840 fi
28841 rm -f conftest.err conftest.$ac_objext \
28842       conftest$ac_exeext conftest.$ac_ext
28843 LIBS=$ac_check_lib_save_LIBS
28844 fi
28845 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28846 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28847 if test $ac_cv_lib_gen_getmntent = yes; then
28848   LIBS="-lgen $LIBS"
28849 fi
28850
28851 fi
28852
28853 fi
28854
28855
28856 for ac_func in getmntent
28857 do
28858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28859 echo "$as_me:$LINENO: checking for $ac_func" >&5
28860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28861 if eval "test \"\${$as_ac_var+set}\" = set"; then
28862   echo $ECHO_N "(cached) $ECHO_C" >&6
28863 else
28864   cat >conftest.$ac_ext <<_ACEOF
28865 /* confdefs.h.  */
28866 _ACEOF
28867 cat confdefs.h >>conftest.$ac_ext
28868 cat >>conftest.$ac_ext <<_ACEOF
28869 /* end confdefs.h.  */
28870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28871    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28872 #define $ac_func innocuous_$ac_func
28873
28874 /* System header to define __stub macros and hopefully few prototypes,
28875     which can conflict with char $ac_func (); below.
28876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28877     <limits.h> exists even on freestanding compilers.  */
28878
28879 #ifdef __STDC__
28880 # include <limits.h>
28881 #else
28882 # include <assert.h>
28883 #endif
28884
28885 #undef $ac_func
28886
28887 /* Override any gcc2 internal prototype to avoid an error.  */
28888 #ifdef __cplusplus
28889 extern "C"
28890 {
28891 #endif
28892 /* We use char because int might match the return type of a gcc2
28893    builtin and then its argument prototype would still apply.  */
28894 char $ac_func ();
28895 /* The GNU C library defines this for functions which it implements
28896     to always fail with ENOSYS.  Some functions are actually named
28897     something starting with __ and the normal name is an alias.  */
28898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28899 choke me
28900 #else
28901 char (*f) () = $ac_func;
28902 #endif
28903 #ifdef __cplusplus
28904 }
28905 #endif
28906
28907 int
28908 main ()
28909 {
28910 return f != $ac_func;
28911   ;
28912   return 0;
28913 }
28914 _ACEOF
28915 rm -f conftest.$ac_objext conftest$ac_exeext
28916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28917   (eval $ac_link) 2>conftest.er1
28918   ac_status=$?
28919   grep -v '^ *+' conftest.er1 >conftest.err
28920   rm -f conftest.er1
28921   cat conftest.err >&5
28922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923   (exit $ac_status); } &&
28924          { ac_try='test -z "$ac_c_werror_flag"
28925                          || test ! -s conftest.err'
28926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28927   (eval $ac_try) 2>&5
28928   ac_status=$?
28929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930   (exit $ac_status); }; } &&
28931          { ac_try='test -s conftest$ac_exeext'
28932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28933   (eval $ac_try) 2>&5
28934   ac_status=$?
28935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936   (exit $ac_status); }; }; then
28937   eval "$as_ac_var=yes"
28938 else
28939   echo "$as_me: failed program was:" >&5
28940 sed 's/^/| /' conftest.$ac_ext >&5
28941
28942 eval "$as_ac_var=no"
28943 fi
28944 rm -f conftest.err conftest.$ac_objext \
28945       conftest$ac_exeext conftest.$ac_ext
28946 fi
28947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28949 if test `eval echo '${'$as_ac_var'}'` = yes; then
28950   cat >>confdefs.h <<_ACEOF
28951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28952 _ACEOF
28953
28954 fi
28955 done
28956
28957
28958 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28959 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28960 if test "${ac_cv_func_closedir_void+set}" = set; then
28961   echo $ECHO_N "(cached) $ECHO_C" >&6
28962 else
28963   if test "$cross_compiling" = yes; then
28964   ac_cv_func_closedir_void=yes
28965 else
28966   cat >conftest.$ac_ext <<_ACEOF
28967 /* confdefs.h.  */
28968 _ACEOF
28969 cat confdefs.h >>conftest.$ac_ext
28970 cat >>conftest.$ac_ext <<_ACEOF
28971 /* end confdefs.h.  */
28972 $ac_includes_default
28973 #include <$ac_header_dirent>
28974 #ifndef __cplusplus
28975 int closedir ();
28976 #endif
28977
28978 int
28979 main ()
28980 {
28981 exit (closedir (opendir (".")) != 0);
28982   ;
28983   return 0;
28984 }
28985 _ACEOF
28986 rm -f conftest$ac_exeext
28987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28988   (eval $ac_link) 2>&5
28989   ac_status=$?
28990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993   (eval $ac_try) 2>&5
28994   ac_status=$?
28995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996   (exit $ac_status); }; }; then
28997   ac_cv_func_closedir_void=no
28998 else
28999   echo "$as_me: program exited with status $ac_status" >&5
29000 echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.$ac_ext >&5
29002
29003 ( exit $ac_status )
29004 ac_cv_func_closedir_void=yes
29005 fi
29006 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29007 fi
29008 fi
29009 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29010 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
29011 if test $ac_cv_func_closedir_void = yes; then
29012
29013 cat >>confdefs.h <<\_ACEOF
29014 #define CLOSEDIR_VOID 1
29015 _ACEOF
29016
29017 fi
29018
29019 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29020 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
29021 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29022   echo $ECHO_N "(cached) $ECHO_C" >&6
29023 else
29024   if test "$cross_compiling" = yes; then
29025   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29026 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29027    { (exit 1); exit 1; }; }
29028 else
29029   cat >conftest.$ac_ext <<_ACEOF
29030 /* confdefs.h.  */
29031 _ACEOF
29032 cat confdefs.h >>conftest.$ac_ext
29033 cat >>conftest.$ac_ext <<_ACEOF
29034 /* end confdefs.h.  */
29035 #if HAVE_UNISTD_H
29036 # include <unistd.h>
29037 #endif
29038
29039 int
29040 main ()
29041 {
29042 /* If this system has a BSD-style setpgrp which takes arguments,
29043   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29044   exit successfully. */
29045   exit (setpgrp (1,1) == -1 ? 0 : 1);
29046   ;
29047   return 0;
29048 }
29049 _ACEOF
29050 rm -f conftest$ac_exeext
29051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29052   (eval $ac_link) 2>&5
29053   ac_status=$?
29054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29057   (eval $ac_try) 2>&5
29058   ac_status=$?
29059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060   (exit $ac_status); }; }; then
29061   ac_cv_func_setpgrp_void=no
29062 else
29063   echo "$as_me: program exited with status $ac_status" >&5
29064 echo "$as_me: failed program was:" >&5
29065 sed 's/^/| /' conftest.$ac_ext >&5
29066
29067 ( exit $ac_status )
29068 ac_cv_func_setpgrp_void=yes
29069 fi
29070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29071 fi
29072 fi
29073 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29074 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
29075 if test $ac_cv_func_setpgrp_void = yes; then
29076
29077 cat >>confdefs.h <<\_ACEOF
29078 #define SETPGRP_VOID 1
29079 _ACEOF
29080
29081 fi
29082                       # AC_FUNC_FNMATCH    dnl use local version
29083
29084
29085 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29086 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
29087 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29088   echo $ECHO_N "(cached) $ECHO_C" >&6
29089 else
29090   ac_check_lib_save_LIBS=$LIBS
29091 LIBS="-lintl  $LIBS"
29092 cat >conftest.$ac_ext <<_ACEOF
29093 /* confdefs.h.  */
29094 _ACEOF
29095 cat confdefs.h >>conftest.$ac_ext
29096 cat >>conftest.$ac_ext <<_ACEOF
29097 /* end confdefs.h.  */
29098
29099 /* Override any gcc2 internal prototype to avoid an error.  */
29100 #ifdef __cplusplus
29101 extern "C"
29102 #endif
29103 /* We use char because int might match the return type of a gcc2
29104    builtin and then its argument prototype would still apply.  */
29105 char gettext ();
29106 int
29107 main ()
29108 {
29109 gettext ();
29110   ;
29111   return 0;
29112 }
29113 _ACEOF
29114 rm -f conftest.$ac_objext conftest$ac_exeext
29115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29116   (eval $ac_link) 2>conftest.er1
29117   ac_status=$?
29118   grep -v '^ *+' conftest.er1 >conftest.err
29119   rm -f conftest.er1
29120   cat conftest.err >&5
29121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122   (exit $ac_status); } &&
29123          { ac_try='test -z "$ac_c_werror_flag"
29124                          || test ! -s conftest.err'
29125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29126   (eval $ac_try) 2>&5
29127   ac_status=$?
29128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129   (exit $ac_status); }; } &&
29130          { ac_try='test -s conftest$ac_exeext'
29131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29132   (eval $ac_try) 2>&5
29133   ac_status=$?
29134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135   (exit $ac_status); }; }; then
29136   ac_cv_lib_intl_gettext=yes
29137 else
29138   echo "$as_me: failed program was:" >&5
29139 sed 's/^/| /' conftest.$ac_ext >&5
29140
29141 ac_cv_lib_intl_gettext=no
29142 fi
29143 rm -f conftest.err conftest.$ac_objext \
29144       conftest$ac_exeext conftest.$ac_ext
29145 LIBS=$ac_check_lib_save_LIBS
29146 fi
29147 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29148 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
29149 if test $ac_cv_lib_intl_gettext = yes; then
29150   LIBS="$LIBS -lintl"
29151 fi
29152
29153
29154
29155
29156 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29157 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
29158 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29159   echo $ECHO_N "(cached) $ECHO_C" >&6
29160 else
29161   ac_check_lib_save_LIBS=$LIBS
29162 LIBS="-lsun  $LIBS"
29163 cat >conftest.$ac_ext <<_ACEOF
29164 /* confdefs.h.  */
29165 _ACEOF
29166 cat confdefs.h >>conftest.$ac_ext
29167 cat >>conftest.$ac_ext <<_ACEOF
29168 /* end confdefs.h.  */
29169
29170 /* Override any gcc2 internal prototype to avoid an error.  */
29171 #ifdef __cplusplus
29172 extern "C"
29173 #endif
29174 /* We use char because int might match the return type of a gcc2
29175    builtin and then its argument prototype would still apply.  */
29176 char getpwnam ();
29177 int
29178 main ()
29179 {
29180 getpwnam ();
29181   ;
29182   return 0;
29183 }
29184 _ACEOF
29185 rm -f conftest.$ac_objext conftest$ac_exeext
29186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29187   (eval $ac_link) 2>conftest.er1
29188   ac_status=$?
29189   grep -v '^ *+' conftest.er1 >conftest.err
29190   rm -f conftest.er1
29191   cat conftest.err >&5
29192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193   (exit $ac_status); } &&
29194          { ac_try='test -z "$ac_c_werror_flag"
29195                          || test ! -s conftest.err'
29196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29197   (eval $ac_try) 2>&5
29198   ac_status=$?
29199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200   (exit $ac_status); }; } &&
29201          { ac_try='test -s conftest$ac_exeext'
29202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29203   (eval $ac_try) 2>&5
29204   ac_status=$?
29205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206   (exit $ac_status); }; }; then
29207   ac_cv_lib_sun_getpwnam=yes
29208 else
29209   echo "$as_me: failed program was:" >&5
29210 sed 's/^/| /' conftest.$ac_ext >&5
29211
29212 ac_cv_lib_sun_getpwnam=no
29213 fi
29214 rm -f conftest.err conftest.$ac_objext \
29215       conftest$ac_exeext conftest.$ac_ext
29216 LIBS=$ac_check_lib_save_LIBS
29217 fi
29218 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29219 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
29220 if test $ac_cv_lib_sun_getpwnam = yes; then
29221   cat >>confdefs.h <<_ACEOF
29222 #define HAVE_LIBSUN 1
29223 _ACEOF
29224
29225   LIBS="-lsun $LIBS"
29226
29227 fi
29228
29229
29230
29231 for ac_header in zlib.h
29232 do
29233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29235   echo "$as_me:$LINENO: checking for $ac_header" >&5
29236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29238   echo $ECHO_N "(cached) $ECHO_C" >&6
29239 fi
29240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29242 else
29243   # Is the header compilable?
29244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29246 cat >conftest.$ac_ext <<_ACEOF
29247 /* confdefs.h.  */
29248 _ACEOF
29249 cat confdefs.h >>conftest.$ac_ext
29250 cat >>conftest.$ac_ext <<_ACEOF
29251 /* end confdefs.h.  */
29252 $ac_includes_default
29253 #include <$ac_header>
29254 _ACEOF
29255 rm -f conftest.$ac_objext
29256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29257   (eval $ac_compile) 2>conftest.er1
29258   ac_status=$?
29259   grep -v '^ *+' conftest.er1 >conftest.err
29260   rm -f conftest.er1
29261   cat conftest.err >&5
29262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263   (exit $ac_status); } &&
29264          { ac_try='test -z "$ac_c_werror_flag"
29265                          || test ! -s conftest.err'
29266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29267   (eval $ac_try) 2>&5
29268   ac_status=$?
29269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270   (exit $ac_status); }; } &&
29271          { ac_try='test -s conftest.$ac_objext'
29272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29273   (eval $ac_try) 2>&5
29274   ac_status=$?
29275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276   (exit $ac_status); }; }; then
29277   ac_header_compiler=yes
29278 else
29279   echo "$as_me: failed program was:" >&5
29280 sed 's/^/| /' conftest.$ac_ext >&5
29281
29282 ac_header_compiler=no
29283 fi
29284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29286 echo "${ECHO_T}$ac_header_compiler" >&6
29287
29288 # Is the header present?
29289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29291 cat >conftest.$ac_ext <<_ACEOF
29292 /* confdefs.h.  */
29293 _ACEOF
29294 cat confdefs.h >>conftest.$ac_ext
29295 cat >>conftest.$ac_ext <<_ACEOF
29296 /* end confdefs.h.  */
29297 #include <$ac_header>
29298 _ACEOF
29299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29301   ac_status=$?
29302   grep -v '^ *+' conftest.er1 >conftest.err
29303   rm -f conftest.er1
29304   cat conftest.err >&5
29305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306   (exit $ac_status); } >/dev/null; then
29307   if test -s conftest.err; then
29308     ac_cpp_err=$ac_c_preproc_warn_flag
29309     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29310   else
29311     ac_cpp_err=
29312   fi
29313 else
29314   ac_cpp_err=yes
29315 fi
29316 if test -z "$ac_cpp_err"; then
29317   ac_header_preproc=yes
29318 else
29319   echo "$as_me: failed program was:" >&5
29320 sed 's/^/| /' conftest.$ac_ext >&5
29321
29322   ac_header_preproc=no
29323 fi
29324 rm -f conftest.err conftest.$ac_ext
29325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29326 echo "${ECHO_T}$ac_header_preproc" >&6
29327
29328 # So?  What about this header?
29329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29330   yes:no: )
29331     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29335     ac_header_preproc=yes
29336     ;;
29337   no:yes:* )
29338     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29340     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29341 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29342     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29344     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29345 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29348     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29350     (
29351       cat <<\_ASBOX
29352 ## ------------------------------------------ ##
29353 ## Report this to the AC_PACKAGE_NAME lists.  ##
29354 ## ------------------------------------------ ##
29355 _ASBOX
29356     ) |
29357       sed "s/^/$as_me: WARNING:     /" >&2
29358     ;;
29359 esac
29360 echo "$as_me:$LINENO: checking for $ac_header" >&5
29361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29363   echo $ECHO_N "(cached) $ECHO_C" >&6
29364 else
29365   eval "$as_ac_Header=\$ac_header_preproc"
29366 fi
29367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29369
29370 fi
29371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29372   cat >>confdefs.h <<_ACEOF
29373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29374 _ACEOF
29375
29376 fi
29377
29378 done
29379
29380 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29381 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
29382 if test "${ac_cv_lib_z_deflate+set}" = set; then
29383   echo $ECHO_N "(cached) $ECHO_C" >&6
29384 else
29385   ac_check_lib_save_LIBS=$LIBS
29386 LIBS="-lz  $LIBS"
29387 cat >conftest.$ac_ext <<_ACEOF
29388 /* confdefs.h.  */
29389 _ACEOF
29390 cat confdefs.h >>conftest.$ac_ext
29391 cat >>conftest.$ac_ext <<_ACEOF
29392 /* end confdefs.h.  */
29393
29394 /* Override any gcc2 internal prototype to avoid an error.  */
29395 #ifdef __cplusplus
29396 extern "C"
29397 #endif
29398 /* We use char because int might match the return type of a gcc2
29399    builtin and then its argument prototype would still apply.  */
29400 char deflate ();
29401 int
29402 main ()
29403 {
29404 deflate ();
29405   ;
29406   return 0;
29407 }
29408 _ACEOF
29409 rm -f conftest.$ac_objext conftest$ac_exeext
29410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29411   (eval $ac_link) 2>conftest.er1
29412   ac_status=$?
29413   grep -v '^ *+' conftest.er1 >conftest.err
29414   rm -f conftest.er1
29415   cat conftest.err >&5
29416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417   (exit $ac_status); } &&
29418          { ac_try='test -z "$ac_c_werror_flag"
29419                          || test ! -s conftest.err'
29420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29421   (eval $ac_try) 2>&5
29422   ac_status=$?
29423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424   (exit $ac_status); }; } &&
29425          { ac_try='test -s conftest$ac_exeext'
29426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29427   (eval $ac_try) 2>&5
29428   ac_status=$?
29429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430   (exit $ac_status); }; }; then
29431   ac_cv_lib_z_deflate=yes
29432 else
29433   echo "$as_me: failed program was:" >&5
29434 sed 's/^/| /' conftest.$ac_ext >&5
29435
29436 ac_cv_lib_z_deflate=no
29437 fi
29438 rm -f conftest.err conftest.$ac_objext \
29439       conftest$ac_exeext conftest.$ac_ext
29440 LIBS=$ac_check_lib_save_LIBS
29441 fi
29442 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29443 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
29444 if test $ac_cv_lib_z_deflate = yes; then
29445   FDLIBS="-lz"
29446 fi
29447
29448 have_zlib=no
29449 if test x$FDLIBS = x-lz; then
29450   cat >>confdefs.h <<\_ACEOF
29451 #define HAVE_LIBZ 1
29452 _ACEOF
29453
29454   have_zlib=yes
29455 fi
29456
29457 #
29458 # Check for ACL libraries
29459 #
29460 have_acl=no
29461 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29462   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29463 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29464 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29465   echo $ECHO_N "(cached) $ECHO_C" >&6
29466 fi
29467 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29468 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29469 else
29470   # Is the header compilable?
29471 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29472 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
29473 cat >conftest.$ac_ext <<_ACEOF
29474 /* confdefs.h.  */
29475 _ACEOF
29476 cat confdefs.h >>conftest.$ac_ext
29477 cat >>conftest.$ac_ext <<_ACEOF
29478 /* end confdefs.h.  */
29479 $ac_includes_default
29480 #include <sys/acl.h>
29481 _ACEOF
29482 rm -f conftest.$ac_objext
29483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29484   (eval $ac_compile) 2>conftest.er1
29485   ac_status=$?
29486   grep -v '^ *+' conftest.er1 >conftest.err
29487   rm -f conftest.er1
29488   cat conftest.err >&5
29489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490   (exit $ac_status); } &&
29491          { ac_try='test -z "$ac_c_werror_flag"
29492                          || test ! -s conftest.err'
29493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29494   (eval $ac_try) 2>&5
29495   ac_status=$?
29496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29497   (exit $ac_status); }; } &&
29498          { ac_try='test -s conftest.$ac_objext'
29499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29500   (eval $ac_try) 2>&5
29501   ac_status=$?
29502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503   (exit $ac_status); }; }; then
29504   ac_header_compiler=yes
29505 else
29506   echo "$as_me: failed program was:" >&5
29507 sed 's/^/| /' conftest.$ac_ext >&5
29508
29509 ac_header_compiler=no
29510 fi
29511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29513 echo "${ECHO_T}$ac_header_compiler" >&6
29514
29515 # Is the header present?
29516 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29517 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29518 cat >conftest.$ac_ext <<_ACEOF
29519 /* confdefs.h.  */
29520 _ACEOF
29521 cat confdefs.h >>conftest.$ac_ext
29522 cat >>conftest.$ac_ext <<_ACEOF
29523 /* end confdefs.h.  */
29524 #include <sys/acl.h>
29525 _ACEOF
29526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29527   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29528   ac_status=$?
29529   grep -v '^ *+' conftest.er1 >conftest.err
29530   rm -f conftest.er1
29531   cat conftest.err >&5
29532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533   (exit $ac_status); } >/dev/null; then
29534   if test -s conftest.err; then
29535     ac_cpp_err=$ac_c_preproc_warn_flag
29536     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29537   else
29538     ac_cpp_err=
29539   fi
29540 else
29541   ac_cpp_err=yes
29542 fi
29543 if test -z "$ac_cpp_err"; then
29544   ac_header_preproc=yes
29545 else
29546   echo "$as_me: failed program was:" >&5
29547 sed 's/^/| /' conftest.$ac_ext >&5
29548
29549   ac_header_preproc=no
29550 fi
29551 rm -f conftest.err conftest.$ac_ext
29552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29553 echo "${ECHO_T}$ac_header_preproc" >&6
29554
29555 # So?  What about this header?
29556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29557   yes:no: )
29558     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29559 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29560     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29561 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29562     ac_header_preproc=yes
29563     ;;
29564   no:yes:* )
29565     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29566 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29567     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29568 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29569     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29570 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29571     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29572 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29573     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29574 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29575     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29576 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29577     (
29578       cat <<\_ASBOX
29579 ## ------------------------------------------ ##
29580 ## Report this to the AC_PACKAGE_NAME lists.  ##
29581 ## ------------------------------------------ ##
29582 _ASBOX
29583     ) |
29584       sed "s/^/$as_me: WARNING:     /" >&2
29585     ;;
29586 esac
29587 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29588 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29589 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29590   echo $ECHO_N "(cached) $ECHO_C" >&6
29591 else
29592   ac_cv_header_sys_acl_h=$ac_header_preproc
29593 fi
29594 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29595 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29596
29597 fi
29598
29599
29600 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29601 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29602 if test "${ac_cv_func_acl_get_file+set}" = set; then
29603   echo $ECHO_N "(cached) $ECHO_C" >&6
29604 else
29605   cat >conftest.$ac_ext <<_ACEOF
29606 /* confdefs.h.  */
29607 _ACEOF
29608 cat confdefs.h >>conftest.$ac_ext
29609 cat >>conftest.$ac_ext <<_ACEOF
29610 /* end confdefs.h.  */
29611 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29613 #define acl_get_file innocuous_acl_get_file
29614
29615 /* System header to define __stub macros and hopefully few prototypes,
29616     which can conflict with char acl_get_file (); below.
29617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29618     <limits.h> exists even on freestanding compilers.  */
29619
29620 #ifdef __STDC__
29621 # include <limits.h>
29622 #else
29623 # include <assert.h>
29624 #endif
29625
29626 #undef acl_get_file
29627
29628 /* Override any gcc2 internal prototype to avoid an error.  */
29629 #ifdef __cplusplus
29630 extern "C"
29631 {
29632 #endif
29633 /* We use char because int might match the return type of a gcc2
29634    builtin and then its argument prototype would still apply.  */
29635 char acl_get_file ();
29636 /* The GNU C library defines this for functions which it implements
29637     to always fail with ENOSYS.  Some functions are actually named
29638     something starting with __ and the normal name is an alias.  */
29639 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29640 choke me
29641 #else
29642 char (*f) () = acl_get_file;
29643 #endif
29644 #ifdef __cplusplus
29645 }
29646 #endif
29647
29648 int
29649 main ()
29650 {
29651 return f != acl_get_file;
29652   ;
29653   return 0;
29654 }
29655 _ACEOF
29656 rm -f conftest.$ac_objext conftest$ac_exeext
29657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29658   (eval $ac_link) 2>conftest.er1
29659   ac_status=$?
29660   grep -v '^ *+' conftest.er1 >conftest.err
29661   rm -f conftest.er1
29662   cat conftest.err >&5
29663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664   (exit $ac_status); } &&
29665          { ac_try='test -z "$ac_c_werror_flag"
29666                          || test ! -s conftest.err'
29667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29668   (eval $ac_try) 2>&5
29669   ac_status=$?
29670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671   (exit $ac_status); }; } &&
29672          { ac_try='test -s conftest$ac_exeext'
29673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29674   (eval $ac_try) 2>&5
29675   ac_status=$?
29676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677   (exit $ac_status); }; }; then
29678   ac_cv_func_acl_get_file=yes
29679 else
29680   echo "$as_me: failed program was:" >&5
29681 sed 's/^/| /' conftest.$ac_ext >&5
29682
29683 ac_cv_func_acl_get_file=no
29684 fi
29685 rm -f conftest.err conftest.$ac_objext \
29686       conftest$ac_exeext conftest.$ac_ext
29687 fi
29688 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29689 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29690 if test $ac_cv_func_acl_get_file = yes; then
29691   have_acl=yes
29692 else
29693   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29694 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29695 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29696   echo $ECHO_N "(cached) $ECHO_C" >&6
29697 else
29698   ac_check_lib_save_LIBS=$LIBS
29699 LIBS="-lacl  $LIBS"
29700 cat >conftest.$ac_ext <<_ACEOF
29701 /* confdefs.h.  */
29702 _ACEOF
29703 cat confdefs.h >>conftest.$ac_ext
29704 cat >>conftest.$ac_ext <<_ACEOF
29705 /* end confdefs.h.  */
29706
29707 /* Override any gcc2 internal prototype to avoid an error.  */
29708 #ifdef __cplusplus
29709 extern "C"
29710 #endif
29711 /* We use char because int might match the return type of a gcc2
29712    builtin and then its argument prototype would still apply.  */
29713 char acl_get_file ();
29714 int
29715 main ()
29716 {
29717 acl_get_file ();
29718   ;
29719   return 0;
29720 }
29721 _ACEOF
29722 rm -f conftest.$ac_objext conftest$ac_exeext
29723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29724   (eval $ac_link) 2>conftest.er1
29725   ac_status=$?
29726   grep -v '^ *+' conftest.er1 >conftest.err
29727   rm -f conftest.er1
29728   cat conftest.err >&5
29729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730   (exit $ac_status); } &&
29731          { ac_try='test -z "$ac_c_werror_flag"
29732                          || test ! -s conftest.err'
29733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29734   (eval $ac_try) 2>&5
29735   ac_status=$?
29736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737   (exit $ac_status); }; } &&
29738          { ac_try='test -s conftest$ac_exeext'
29739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29740   (eval $ac_try) 2>&5
29741   ac_status=$?
29742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743   (exit $ac_status); }; }; then
29744   ac_cv_lib_acl_acl_get_file=yes
29745 else
29746   echo "$as_me: failed program was:" >&5
29747 sed 's/^/| /' conftest.$ac_ext >&5
29748
29749 ac_cv_lib_acl_acl_get_file=no
29750 fi
29751 rm -f conftest.err conftest.$ac_objext \
29752       conftest$ac_exeext conftest.$ac_ext
29753 LIBS=$ac_check_lib_save_LIBS
29754 fi
29755 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29756 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29757 if test $ac_cv_lib_acl_acl_get_file = yes; then
29758   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29759 else
29760   echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29761 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29762 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29763   echo $ECHO_N "(cached) $ECHO_C" >&6
29764 else
29765   ac_check_lib_save_LIBS=$LIBS
29766 LIBS="-lsec  $LIBS"
29767 cat >conftest.$ac_ext <<_ACEOF
29768 /* confdefs.h.  */
29769 _ACEOF
29770 cat confdefs.h >>conftest.$ac_ext
29771 cat >>conftest.$ac_ext <<_ACEOF
29772 /* end confdefs.h.  */
29773
29774 /* Override any gcc2 internal prototype to avoid an error.  */
29775 #ifdef __cplusplus
29776 extern "C"
29777 #endif
29778 /* We use char because int might match the return type of a gcc2
29779    builtin and then its argument prototype would still apply.  */
29780 char acltotext ();
29781 int
29782 main ()
29783 {
29784 acltotext ();
29785   ;
29786   return 0;
29787 }
29788 _ACEOF
29789 rm -f conftest.$ac_objext conftest$ac_exeext
29790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29791   (eval $ac_link) 2>conftest.er1
29792   ac_status=$?
29793   grep -v '^ *+' conftest.er1 >conftest.err
29794   rm -f conftest.er1
29795   cat conftest.err >&5
29796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797   (exit $ac_status); } &&
29798          { ac_try='test -z "$ac_c_werror_flag"
29799                          || test ! -s conftest.err'
29800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29801   (eval $ac_try) 2>&5
29802   ac_status=$?
29803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804   (exit $ac_status); }; } &&
29805          { ac_try='test -s conftest$ac_exeext'
29806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29807   (eval $ac_try) 2>&5
29808   ac_status=$?
29809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810   (exit $ac_status); }; }; then
29811   ac_cv_lib_sec_acltotext=yes
29812 else
29813   echo "$as_me: failed program was:" >&5
29814 sed 's/^/| /' conftest.$ac_ext >&5
29815
29816 ac_cv_lib_sec_acltotext=no
29817 fi
29818 rm -f conftest.err conftest.$ac_objext \
29819       conftest$ac_exeext conftest.$ac_ext
29820 LIBS=$ac_check_lib_save_LIBS
29821 fi
29822 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29823 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29824 if test $ac_cv_lib_sec_acltotext = yes; then
29825   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29826 fi
29827
29828
29829 fi
29830
29831
29832 fi
29833
29834 if test $have_acl = yes; then
29835    cat >>confdefs.h <<\_ACEOF
29836 #define HAVE_ACL 1
29837 _ACEOF
29838
29839 fi
29840
29841 PTHREAD_LIB=""
29842 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29843 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29844 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29845   echo $ECHO_N "(cached) $ECHO_C" >&6
29846 else
29847   ac_check_lib_save_LIBS=$LIBS
29848 LIBS="-lpthread  $LIBS"
29849 cat >conftest.$ac_ext <<_ACEOF
29850 /* confdefs.h.  */
29851 _ACEOF
29852 cat confdefs.h >>conftest.$ac_ext
29853 cat >>conftest.$ac_ext <<_ACEOF
29854 /* end confdefs.h.  */
29855
29856 /* Override any gcc2 internal prototype to avoid an error.  */
29857 #ifdef __cplusplus
29858 extern "C"
29859 #endif
29860 /* We use char because int might match the return type of a gcc2
29861    builtin and then its argument prototype would still apply.  */
29862 char pthread_create ();
29863 int
29864 main ()
29865 {
29866 pthread_create ();
29867   ;
29868   return 0;
29869 }
29870 _ACEOF
29871 rm -f conftest.$ac_objext conftest$ac_exeext
29872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29873   (eval $ac_link) 2>conftest.er1
29874   ac_status=$?
29875   grep -v '^ *+' conftest.er1 >conftest.err
29876   rm -f conftest.er1
29877   cat conftest.err >&5
29878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879   (exit $ac_status); } &&
29880          { ac_try='test -z "$ac_c_werror_flag"
29881                          || test ! -s conftest.err'
29882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29883   (eval $ac_try) 2>&5
29884   ac_status=$?
29885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886   (exit $ac_status); }; } &&
29887          { ac_try='test -s conftest$ac_exeext'
29888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29889   (eval $ac_try) 2>&5
29890   ac_status=$?
29891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892   (exit $ac_status); }; }; then
29893   ac_cv_lib_pthread_pthread_create=yes
29894 else
29895   echo "$as_me: failed program was:" >&5
29896 sed 's/^/| /' conftest.$ac_ext >&5
29897
29898 ac_cv_lib_pthread_pthread_create=no
29899 fi
29900 rm -f conftest.err conftest.$ac_objext \
29901       conftest$ac_exeext conftest.$ac_ext
29902 LIBS=$ac_check_lib_save_LIBS
29903 fi
29904 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29905 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29906 if test $ac_cv_lib_pthread_pthread_create = yes; then
29907   PTHREAD_LIB="-lpthread"
29908 else
29909   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29910 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29911 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29912   echo $ECHO_N "(cached) $ECHO_C" >&6
29913 else
29914   ac_check_lib_save_LIBS=$LIBS
29915 LIBS="-lpthreads  $LIBS"
29916 cat >conftest.$ac_ext <<_ACEOF
29917 /* confdefs.h.  */
29918 _ACEOF
29919 cat confdefs.h >>conftest.$ac_ext
29920 cat >>conftest.$ac_ext <<_ACEOF
29921 /* end confdefs.h.  */
29922
29923 /* Override any gcc2 internal prototype to avoid an error.  */
29924 #ifdef __cplusplus
29925 extern "C"
29926 #endif
29927 /* We use char because int might match the return type of a gcc2
29928    builtin and then its argument prototype would still apply.  */
29929 char pthread_create ();
29930 int
29931 main ()
29932 {
29933 pthread_create ();
29934   ;
29935   return 0;
29936 }
29937 _ACEOF
29938 rm -f conftest.$ac_objext conftest$ac_exeext
29939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29940   (eval $ac_link) 2>conftest.er1
29941   ac_status=$?
29942   grep -v '^ *+' conftest.er1 >conftest.err
29943   rm -f conftest.er1
29944   cat conftest.err >&5
29945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946   (exit $ac_status); } &&
29947          { ac_try='test -z "$ac_c_werror_flag"
29948                          || test ! -s conftest.err'
29949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29950   (eval $ac_try) 2>&5
29951   ac_status=$?
29952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953   (exit $ac_status); }; } &&
29954          { ac_try='test -s conftest$ac_exeext'
29955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29956   (eval $ac_try) 2>&5
29957   ac_status=$?
29958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959   (exit $ac_status); }; }; then
29960   ac_cv_lib_pthreads_pthread_create=yes
29961 else
29962   echo "$as_me: failed program was:" >&5
29963 sed 's/^/| /' conftest.$ac_ext >&5
29964
29965 ac_cv_lib_pthreads_pthread_create=no
29966 fi
29967 rm -f conftest.err conftest.$ac_objext \
29968       conftest$ac_exeext conftest.$ac_ext
29969 LIBS=$ac_check_lib_save_LIBS
29970 fi
29971 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29972 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29973 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29974   PTHREAD_LIB="-lpthreads"
29975 else
29976   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29977 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29978 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29979   echo $ECHO_N "(cached) $ECHO_C" >&6
29980 else
29981   ac_check_lib_save_LIBS=$LIBS
29982 LIBS="-lc_r  $LIBS"
29983 cat >conftest.$ac_ext <<_ACEOF
29984 /* confdefs.h.  */
29985 _ACEOF
29986 cat confdefs.h >>conftest.$ac_ext
29987 cat >>conftest.$ac_ext <<_ACEOF
29988 /* end confdefs.h.  */
29989
29990 /* Override any gcc2 internal prototype to avoid an error.  */
29991 #ifdef __cplusplus
29992 extern "C"
29993 #endif
29994 /* We use char because int might match the return type of a gcc2
29995    builtin and then its argument prototype would still apply.  */
29996 char pthread_create ();
29997 int
29998 main ()
29999 {
30000 pthread_create ();
30001   ;
30002   return 0;
30003 }
30004 _ACEOF
30005 rm -f conftest.$ac_objext conftest$ac_exeext
30006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30007   (eval $ac_link) 2>conftest.er1
30008   ac_status=$?
30009   grep -v '^ *+' conftest.er1 >conftest.err
30010   rm -f conftest.er1
30011   cat conftest.err >&5
30012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013   (exit $ac_status); } &&
30014          { ac_try='test -z "$ac_c_werror_flag"
30015                          || test ! -s conftest.err'
30016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30017   (eval $ac_try) 2>&5
30018   ac_status=$?
30019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30020   (exit $ac_status); }; } &&
30021          { ac_try='test -s conftest$ac_exeext'
30022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30023   (eval $ac_try) 2>&5
30024   ac_status=$?
30025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026   (exit $ac_status); }; }; then
30027   ac_cv_lib_c_r_pthread_create=yes
30028 else
30029   echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.$ac_ext >&5
30031
30032 ac_cv_lib_c_r_pthread_create=no
30033 fi
30034 rm -f conftest.err conftest.$ac_objext \
30035       conftest$ac_exeext conftest.$ac_ext
30036 LIBS=$ac_check_lib_save_LIBS
30037 fi
30038 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30039 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
30040 if test $ac_cv_lib_c_r_pthread_create = yes; then
30041   PTHREAD_LIB="-lc_r"
30042 else
30043   echo "$as_me:$LINENO: checking for pthread_create" >&5
30044 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
30045 if test "${ac_cv_func_pthread_create+set}" = set; then
30046   echo $ECHO_N "(cached) $ECHO_C" >&6
30047 else
30048   cat >conftest.$ac_ext <<_ACEOF
30049 /* confdefs.h.  */
30050 _ACEOF
30051 cat confdefs.h >>conftest.$ac_ext
30052 cat >>conftest.$ac_ext <<_ACEOF
30053 /* end confdefs.h.  */
30054 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30056 #define pthread_create innocuous_pthread_create
30057
30058 /* System header to define __stub macros and hopefully few prototypes,
30059     which can conflict with char pthread_create (); below.
30060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30061     <limits.h> exists even on freestanding compilers.  */
30062
30063 #ifdef __STDC__
30064 # include <limits.h>
30065 #else
30066 # include <assert.h>
30067 #endif
30068
30069 #undef pthread_create
30070
30071 /* Override any gcc2 internal prototype to avoid an error.  */
30072 #ifdef __cplusplus
30073 extern "C"
30074 {
30075 #endif
30076 /* We use char because int might match the return type of a gcc2
30077    builtin and then its argument prototype would still apply.  */
30078 char pthread_create ();
30079 /* The GNU C library defines this for functions which it implements
30080     to always fail with ENOSYS.  Some functions are actually named
30081     something starting with __ and the normal name is an alias.  */
30082 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
30083 choke me
30084 #else
30085 char (*f) () = pthread_create;
30086 #endif
30087 #ifdef __cplusplus
30088 }
30089 #endif
30090
30091 int
30092 main ()
30093 {
30094 return f != pthread_create;
30095   ;
30096   return 0;
30097 }
30098 _ACEOF
30099 rm -f conftest.$ac_objext conftest$ac_exeext
30100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30101   (eval $ac_link) 2>conftest.er1
30102   ac_status=$?
30103   grep -v '^ *+' conftest.er1 >conftest.err
30104   rm -f conftest.er1
30105   cat conftest.err >&5
30106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107   (exit $ac_status); } &&
30108          { ac_try='test -z "$ac_c_werror_flag"
30109                          || test ! -s conftest.err'
30110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30111   (eval $ac_try) 2>&5
30112   ac_status=$?
30113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30114   (exit $ac_status); }; } &&
30115          { ac_try='test -s conftest$ac_exeext'
30116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30117   (eval $ac_try) 2>&5
30118   ac_status=$?
30119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30120   (exit $ac_status); }; }; then
30121   ac_cv_func_pthread_create=yes
30122 else
30123   echo "$as_me: failed program was:" >&5
30124 sed 's/^/| /' conftest.$ac_ext >&5
30125
30126 ac_cv_func_pthread_create=no
30127 fi
30128 rm -f conftest.err conftest.$ac_objext \
30129       conftest$ac_exeext conftest.$ac_ext
30130 fi
30131 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30132 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
30133
30134
30135 fi
30136
30137
30138 fi
30139
30140
30141 fi
30142
30143
30144
30145 cat >>confdefs.h <<\_ACEOF
30146 #define FDLIBS 1
30147 _ACEOF
30148
30149
30150
30151 CFLAGS=${CFLAGS--O}
30152
30153 if test x$have_gcc = xyes ; then
30154    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30155    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30156 fi
30157 LDFLAGS=${LDFLAGS--O}
30158 DB_LIBS="${SQL_LFLAGS}"
30159 CPPFLAGS="$CPPFLAGS"
30160 CFLAGS="$CFLAGS"
30161
30162
30163
30164
30165
30166
30167
30168
30169
30170
30171
30172
30173
30174
30175
30176
30177 OBJLIST=
30178
30179
30180 lld="lld"
30181 llu="llu"
30182
30183 WCFLAGS=
30184 WLDFLAGS=
30185
30186 #
30187 # Finally we set appropriate distribution specific
30188 #  variables and defaults
30189 #
30190 # PFILES are platform specific files
30191 PFILES="platforms/Makefile"
30192 PSCMD="ps -e"
30193 WIN32=
30194 MACOSX=
30195 hostname=`uname -n | cut -d '.' -f 1`
30196 if test x${hostname} = x ; then
30197   hostname="localhost"
30198 fi
30199 case "$DISTNAME" in
30200 aix)
30201         DISTVER=`uname -r`
30202         PSCMD="ps -e -o pid,comm"
30203         PFILES="${PFILES} \
30204            platforms/aix/Makefile"
30205         TAPEDRIVE="/dev/rmt0.1"
30206   ;;
30207 alpha)
30208         DISTVER=`uname -r`
30209         PTHREAD_LIB="-lpthread -lexc"
30210         if test "${CC}" = "gcc" ; then
30211            lld="lld"
30212            llu="llu"
30213         else
30214            lld="ld"
30215            llu="lu"
30216         fi
30217         TAPEDRIVE="/dev/nrmt0"
30218   ;;
30219 bsdi)
30220         DISTVER=`uname -a |awk '{print $3}'`
30221         TAPEDRIVE="/dev/nrmt0"
30222         PTHREAD_LIB="-pthread"
30223         CFLAGS="${CFLAGS} -pthread"
30224         PSCMD="ps -ax -o pid,command"
30225         lld="qd"
30226         llu="qu"
30227         PFILES="${PFILES} \
30228             platforms/bsdi/Makefile \
30229             platforms/bsdi/bacula-fd \
30230             platforms/bsdi/bacula-sd \
30231             platforms/bsdi/bacula-dir"
30232         largefile_support="yes"
30233   ;;
30234 cygwin)
30235         DISTVER=`uname -a |awk '{print $3}'`
30236         TAPEDRIVE="/dev/nrst0"
30237         WIN32=win32
30238         WCFLAGS="-mwindows"
30239         WLDFLAGS="-mwindows"
30240   ;;
30241 darwin)
30242         DISTVER=`uname -r`
30243         TAPEDRIVE="/dev/nst0"
30244         PSCMD="ps -e -o pid,command"
30245         MACOSX=macosx
30246         PFILES="${PFILES} \
30247            platforms/darwin/Makefile"
30248   ;;
30249 debian)
30250         DISTVER=`cat /etc/debian_version`
30251         TAPEDRIVE="/dev/nrst0"
30252         PSCMD="ps -e -o pid,command"
30253   ;;
30254 freebsd)
30255         DISTVER=`uname -a |awk '{print $3}'`
30256         VER=`echo $DISTVER | cut -c 1`
30257         if test x$VER = x4 ; then
30258            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30259            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30260         fi
30261         lld="qd"
30262         llu="qu"
30263         TAPEDRIVE="/dev/nrsa0"
30264         PSCMD="ps -ax -o pid,command"
30265         PFILES="${PFILES} \
30266             platforms/freebsd/Makefile \
30267             platforms/freebsd/bacula-fd \
30268             platforms/freebsd/bacula-sd \
30269             platforms/freebsd/bacula-dir"
30270         largefile_support="yes"
30271   ;;
30272 hpux)
30273         PSCMD="UNIX95=1; ps -e -o pid,comm"
30274         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30275         DISTVER=`uname -r`
30276         TAPEDRIVE="/dev/rmt/0hnb"
30277         PTHREAD_LIB="-lpthread"
30278         cat >>confdefs.h <<\_ACEOF
30279 #define _INCLUDE_LONGLONG 1
30280 _ACEOF
30281
30282   ;;
30283 irix)
30284         DISTVER=`uname -r`
30285         TAPEDRIVE="/dev/rmt/0cbn"
30286         PSCMD="ps -e -o pid,comm"
30287         PFILES="${PFILES} \
30288             platforms/irix/Makefile \
30289             platforms/irix/bacula-fd \
30290             platforms/irix/bacula-sd \
30291             platforms/irix/bacula-dir"
30292   ;;
30293 netbsd)
30294         DISTVER=`uname -a |awk '{print $3}'`
30295         lld="qd"
30296         llu="qu"
30297         TAPEDRIVE="/dev/nrst0"
30298         PSCMD="ps -ax -o pid,command"
30299         PTHREAD_LIB="-pthread"
30300         CFLAGS="${CFLAGS} -pthread"
30301   ;;
30302 openbsd)
30303         DISTVER=`uname -a |awk '{print $3}'`
30304         lld="qd"
30305         llu="qu"
30306         TAPEDRIVE="/dev/nrst0"
30307         PSCMD="ps -ax -o pid,command"
30308         PTHREAD_LIB="-pthread"
30309         CFLAGS="${CFLAGS} -pthread"
30310         PFILES="${PFILES} \
30311             platforms/openbsd/Makefile \
30312             platforms/openbsd/bacula-fd \
30313             platforms/openbsd/bacula-sd \
30314             platforms/openbsd/bacula-dir"
30315   ;;
30316 redhat)
30317         if test -f /etc/whitebox-release ; then
30318            f=/etc/whitebox-release
30319         else
30320            f=/etc/redhat-release
30321         fi
30322         if test `cat $f | grep release |\
30323                    cut -f 3 -d ' '`x = "Enterprise"x ; then
30324            DISTVER="Enterprise "`cat $f | grep release |\
30325                     cut -f 6 -d ' '`
30326         else
30327             DISTVER=`cat /etc/redhat-release | grep release |\
30328                      cut -f 5 -d ' '`
30329         fi
30330         TAPEDRIVE="/dev/nst0"
30331         PSCMD="ps -e -o pid,command"
30332         PFILES="${PFILES} \
30333             platforms/redhat/Makefile \
30334             platforms/redhat/bacula-fd \
30335             platforms/redhat/bacula-sd \
30336             platforms/redhat/bacula-dir \
30337             platforms/redhat/bacula.spec \
30338             "
30339   ;;
30340 mandrake)
30341         DISTVER=`cat /etc/mandrake-release | grep release |\
30342            cut -f 5 -d ' '`
30343         TAPEDRIVE="/dev/nst0"
30344         PSCMD="ps -e -o pid,command"
30345         PFILES="${PFILES} \
30346             platforms/mandrake/Makefile \
30347             platforms/mandrake/bacula-fd \
30348             platforms/mandrake/bacula-sd \
30349             platforms/mandrake/bacula-dir \
30350             platforms/mandrake/bacula.spec \
30351             "
30352   ;;
30353 gentoo)
30354         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30355         TAPEDRIVE="/dev/nst0"
30356         PSCMD="ps -e -o pid,command"
30357         PFILES="${PFILES} \
30358             platforms/gentoo/Makefile \
30359          platforms/gentoo/bacula-init \
30360             platforms/gentoo/bacula-fd \
30361             platforms/gentoo/bacula-sd \
30362             platforms/gentoo/bacula-dir"
30363   ;;
30364 slackware)
30365         DISTVER=`cat /etc/slackware-version`
30366         TAPEDRIVE="/dev/nst0"
30367         PSCMD="ps -e -o pid,command"
30368         PFILES="${PFILES} \
30369             platforms/slackware/Makefile \
30370             platforms/slackware/rc.bacula-fd \
30371             platforms/slackware/rc.bacula-sd \
30372             platforms/slackware/rc.bacula-dir\
30373             platforms/slackware/functions.bacula"
30374   ;;
30375 solaris)
30376         DISTVER=`uname -r`
30377         TAPEDRIVE="/dev/rmt/0cbn"
30378         PSCMD="ps -e -o pid,comm"
30379         PFILES="${PFILES} \
30380             platforms/solaris/Makefile \
30381             platforms/solaris/bacula-fd \
30382             platforms/solaris/bacula-sd \
30383             platforms/solaris/bacula-dir"
30384         if test x$DISTVER = x5.6 ; then
30385             cat >>confdefs.h <<\_ACEOF
30386 #define HAVE_OLD_SOCKOPT 1
30387 _ACEOF
30388
30389         fi
30390         LIBS="$LIBS -lresolv"
30391   ;;
30392 suse)
30393         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30394             cut -f 3 -d ' '`
30395         TAPEDRIVE="/dev/nst0"
30396         PSCMD="ps -e -o pid,command"
30397         PFILES="${PFILES} \
30398             platforms/suse/Makefile \
30399             platforms/suse/bacula-fd \
30400             platforms/suse/bacula-sd \
30401             platforms/suse/bacula-dir \
30402             platforms/suse/bacula \
30403             platforms/suse/bacula.spec"
30404   ;;
30405 suse5)
30406         DISTNAME=suse
30407         DISTVER=5.x
30408         TAPEDRIVE="/dev/nst0"
30409         PSCMD="ps -e -o pid,command"
30410         PFILES="${PFILES} \
30411             platforms/suse/Makefile \
30412             platforms/suse/bacula-fd \
30413             platforms/suse/bacula-sd \
30414             platforms/suse/bacula-dir"
30415   ;;
30416 unknown)
30417         DISTVER=unknown
30418         TAPEDRIVE="/dev/nst0"
30419   ;;
30420 *)
30421   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30422   ;;
30423 esac
30424
30425
30426
30427 LIBS="$PTHREAD_LIB $LIBS"
30428
30429 cat >>confdefs.h <<_ACEOF
30430 #define lld "$lld"
30431 _ACEOF
30432
30433 cat >>confdefs.h <<_ACEOF
30434 #define llu "$llu"
30435 _ACEOF
30436
30437
30438
30439
30440
30441
30442
30443
30444 MCOMMON=./autoconf/Make.common
30445
30446
30447 if test "x${subsysdir}" = "x${sbindir}" ; then
30448    echo " "
30449    echo " "
30450    echo "You have set both --sbindir and --with-subsys-dir"
30451    echo "  equal to: ${subsysdir} "
30452    echo "This is not permitted. Please reconfigure."
30453    echo " "
30454    echo "Aborting configuration ..."
30455    echo " "
30456    echo " "
30457    exit 1
30458 fi
30459
30460                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       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"
30461           ac_config_commands="$ac_config_commands default"
30462 cat >confcache <<\_ACEOF
30463 # This file is a shell script that caches the results of configure
30464 # tests run on this system so they can be shared between configure
30465 # scripts and configure runs, see configure's option --config-cache.
30466 # It is not useful on other systems.  If it contains results you don't
30467 # want to keep, you may remove or edit it.
30468 #
30469 # config.status only pays attention to the cache file if you give it
30470 # the --recheck option to rerun configure.
30471 #
30472 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30473 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30474 # following values.
30475
30476 _ACEOF
30477
30478 # The following way of writing the cache mishandles newlines in values,
30479 # but we know of no workaround that is simple, portable, and efficient.
30480 # So, don't put newlines in cache variables' values.
30481 # Ultrix sh set writes to stderr and can't be redirected directly,
30482 # and sets the high bit in the cache file unless we assign to the vars.
30483 {
30484   (set) 2>&1 |
30485     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30486     *ac_space=\ *)
30487       # `set' does not quote correctly, so add quotes (double-quote
30488       # substitution turns \\\\ into \\, and sed turns \\ into \).
30489       sed -n \
30490         "s/'/'\\\\''/g;
30491           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30492       ;;
30493     *)
30494       # `set' quotes correctly as required by POSIX, so do not add quotes.
30495       sed -n \
30496         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30497       ;;
30498     esac;
30499 } |
30500   sed '
30501      t clear
30502      : clear
30503      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30504      t end
30505      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30506      : end' >>confcache
30507 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30508   if test -w $cache_file; then
30509     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30510     cat confcache >$cache_file
30511   else
30512     echo "not updating unwritable cache $cache_file"
30513   fi
30514 fi
30515 rm -f confcache
30516
30517 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30518 # Let make expand exec_prefix.
30519 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30520
30521 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30522 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30523 # trailing colons and then remove the whole line if VPATH becomes empty
30524 # (actually we leave an empty line to preserve line numbers).
30525 if test "x$srcdir" = x.; then
30526   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30527 s/:*\$(srcdir):*/:/;
30528 s/:*\${srcdir}:*/:/;
30529 s/:*@srcdir@:*/:/;
30530 s/^\([^=]*=[     ]*\):*/\1/;
30531 s/:*$//;
30532 s/^[^=]*=[       ]*$//;
30533 }'
30534 fi
30535
30536 DEFS=-DHAVE_CONFIG_H
30537
30538 ac_libobjs=
30539 ac_ltlibobjs=
30540 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30541   # 1. Remove the extension, and $U if already installed.
30542   ac_i=`echo "$ac_i" |
30543          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30544   # 2. Add them.
30545   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30546   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30547 done
30548 LIBOBJS=$ac_libobjs
30549
30550 LTLIBOBJS=$ac_ltlibobjs
30551
30552
30553
30554 : ${CONFIG_STATUS=./config.status}
30555 ac_clean_files_save=$ac_clean_files
30556 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30557 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30558 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30559 cat >$CONFIG_STATUS <<_ACEOF
30560 #! $SHELL
30561 # Generated by $as_me.
30562 # Run this file to recreate the current configuration.
30563 # Compiler output produced by configure, useful for debugging
30564 # configure, is in config.log if it exists.
30565
30566 debug=false
30567 ac_cs_recheck=false
30568 ac_cs_silent=false
30569 SHELL=\${CONFIG_SHELL-$SHELL}
30570 _ACEOF
30571
30572 cat >>$CONFIG_STATUS <<\_ACEOF
30573 ## --------------------- ##
30574 ## M4sh Initialization.  ##
30575 ## --------------------- ##
30576
30577 # Be Bourne compatible
30578 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30579   emulate sh
30580   NULLCMD=:
30581   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30582   # is contrary to our usage.  Disable this feature.
30583   alias -g '${1+"$@"}'='"$@"'
30584 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30585   set -o posix
30586 fi
30587 DUALCASE=1; export DUALCASE # for MKS sh
30588
30589 # Support unset when possible.
30590 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30591   as_unset=unset
30592 else
30593   as_unset=false
30594 fi
30595
30596
30597 # Work around bugs in pre-3.0 UWIN ksh.
30598 $as_unset ENV MAIL MAILPATH
30599 PS1='$ '
30600 PS2='> '
30601 PS4='+ '
30602
30603 # NLS nuisances.
30604 for as_var in \
30605   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30606   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30607   LC_TELEPHONE LC_TIME
30608 do
30609   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30610     eval $as_var=C; export $as_var
30611   else
30612     $as_unset $as_var
30613   fi
30614 done
30615
30616 # Required to use basename.
30617 if expr a : '\(a\)' >/dev/null 2>&1; then
30618   as_expr=expr
30619 else
30620   as_expr=false
30621 fi
30622
30623 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30624   as_basename=basename
30625 else
30626   as_basename=false
30627 fi
30628
30629
30630 # Name of the executable.
30631 as_me=`$as_basename "$0" ||
30632 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30633          X"$0" : 'X\(//\)$' \| \
30634          X"$0" : 'X\(/\)$' \| \
30635          .     : '\(.\)' 2>/dev/null ||
30636 echo X/"$0" |
30637     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30638           /^X\/\(\/\/\)$/{ s//\1/; q; }
30639           /^X\/\(\/\).*/{ s//\1/; q; }
30640           s/.*/./; q'`
30641
30642
30643 # PATH needs CR, and LINENO needs CR and PATH.
30644 # Avoid depending upon Character Ranges.
30645 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30646 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30647 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30648 as_cr_digits='0123456789'
30649 as_cr_alnum=$as_cr_Letters$as_cr_digits
30650
30651 # The user is always right.
30652 if test "${PATH_SEPARATOR+set}" != set; then
30653   echo "#! /bin/sh" >conf$$.sh
30654   echo  "exit 0"   >>conf$$.sh
30655   chmod +x conf$$.sh
30656   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30657     PATH_SEPARATOR=';'
30658   else
30659     PATH_SEPARATOR=:
30660   fi
30661   rm -f conf$$.sh
30662 fi
30663
30664
30665   as_lineno_1=$LINENO
30666   as_lineno_2=$LINENO
30667   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30668   test "x$as_lineno_1" != "x$as_lineno_2" &&
30669   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30670   # Find who we are.  Look in the path if we contain no path at all
30671   # relative or not.
30672   case $0 in
30673     *[\\/]* ) as_myself=$0 ;;
30674     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30675 for as_dir in $PATH
30676 do
30677   IFS=$as_save_IFS
30678   test -z "$as_dir" && as_dir=.
30679   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30680 done
30681
30682        ;;
30683   esac
30684   # We did not find ourselves, most probably we were run as `sh COMMAND'
30685   # in which case we are not to be found in the path.
30686   if test "x$as_myself" = x; then
30687     as_myself=$0
30688   fi
30689   if test ! -f "$as_myself"; then
30690     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30691 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30692    { (exit 1); exit 1; }; }
30693   fi
30694   case $CONFIG_SHELL in
30695   '')
30696     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30697 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30698 do
30699   IFS=$as_save_IFS
30700   test -z "$as_dir" && as_dir=.
30701   for as_base in sh bash ksh sh5; do
30702          case $as_dir in
30703          /*)
30704            if ("$as_dir/$as_base" -c '
30705   as_lineno_1=$LINENO
30706   as_lineno_2=$LINENO
30707   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30708   test "x$as_lineno_1" != "x$as_lineno_2" &&
30709   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30710              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30711              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30712              CONFIG_SHELL=$as_dir/$as_base
30713              export CONFIG_SHELL
30714              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30715            fi;;
30716          esac
30717        done
30718 done
30719 ;;
30720   esac
30721
30722   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30723   # uniformly replaced by the line number.  The first 'sed' inserts a
30724   # line-number line before each line; the second 'sed' does the real
30725   # work.  The second script uses 'N' to pair each line-number line
30726   # with the numbered line, and appends trailing '-' during
30727   # substitution so that $LINENO is not a special case at line end.
30728   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30729   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30730   sed '=' <$as_myself |
30731     sed '
30732       N
30733       s,$,-,
30734       : loop
30735       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30736       t loop
30737       s,-$,,
30738       s,^['$as_cr_digits']*\n,,
30739     ' >$as_me.lineno &&
30740   chmod +x $as_me.lineno ||
30741     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30742 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30743    { (exit 1); exit 1; }; }
30744
30745   # Don't try to exec as it changes $[0], causing all sort of problems
30746   # (the dirname of $[0] is not the place where we might find the
30747   # original and so on.  Autoconf is especially sensible to this).
30748   . ./$as_me.lineno
30749   # Exit status is that of the last command.
30750   exit
30751 }
30752
30753
30754 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30755   *c*,-n*) ECHO_N= ECHO_C='
30756 ' ECHO_T='      ' ;;
30757   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30758   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30759 esac
30760
30761 if expr a : '\(a\)' >/dev/null 2>&1; then
30762   as_expr=expr
30763 else
30764   as_expr=false
30765 fi
30766
30767 rm -f conf$$ conf$$.exe conf$$.file
30768 echo >conf$$.file
30769 if ln -s conf$$.file conf$$ 2>/dev/null; then
30770   # We could just check for DJGPP; but this test a) works b) is more generic
30771   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30772   if test -f conf$$.exe; then
30773     # Don't use ln at all; we don't have any links
30774     as_ln_s='cp -p'
30775   else
30776     as_ln_s='ln -s'
30777   fi
30778 elif ln conf$$.file conf$$ 2>/dev/null; then
30779   as_ln_s=ln
30780 else
30781   as_ln_s='cp -p'
30782 fi
30783 rm -f conf$$ conf$$.exe conf$$.file
30784
30785 if mkdir -p . 2>/dev/null; then
30786   as_mkdir_p=:
30787 else
30788   test -d ./-p && rmdir ./-p
30789   as_mkdir_p=false
30790 fi
30791
30792 as_executable_p="test -f"
30793
30794 # Sed expression to map a string onto a valid CPP name.
30795 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30796
30797 # Sed expression to map a string onto a valid variable name.
30798 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30799
30800
30801 # IFS
30802 # We need space, tab and new line, in precisely that order.
30803 as_nl='
30804 '
30805 IFS="   $as_nl"
30806
30807 # CDPATH.
30808 $as_unset CDPATH
30809
30810 exec 6>&1
30811
30812 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30813 # report actual input values of CONFIG_FILES etc. instead of their
30814 # values after options handling.  Logging --version etc. is OK.
30815 exec 5>>config.log
30816 {
30817   echo
30818   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30819 ## Running $as_me. ##
30820 _ASBOX
30821 } >&5
30822 cat >&5 <<_CSEOF
30823
30824 This file was extended by $as_me, which was
30825 generated by GNU Autoconf 2.59.  Invocation command line was
30826
30827   CONFIG_FILES    = $CONFIG_FILES
30828   CONFIG_HEADERS  = $CONFIG_HEADERS
30829   CONFIG_LINKS    = $CONFIG_LINKS
30830   CONFIG_COMMANDS = $CONFIG_COMMANDS
30831   $ $0 $@
30832
30833 _CSEOF
30834 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30835 echo >&5
30836 _ACEOF
30837
30838 # Files that config.status was made for.
30839 if test -n "$ac_config_files"; then
30840   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30841 fi
30842
30843 if test -n "$ac_config_headers"; then
30844   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30845 fi
30846
30847 if test -n "$ac_config_links"; then
30848   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30849 fi
30850
30851 if test -n "$ac_config_commands"; then
30852   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30853 fi
30854
30855 cat >>$CONFIG_STATUS <<\_ACEOF
30856
30857 ac_cs_usage="\
30858 \`$as_me' instantiates files from templates according to the
30859 current configuration.
30860
30861 Usage: $0 [OPTIONS] [FILE]...
30862
30863   -h, --help       print this help, then exit
30864   -V, --version    print version number, then exit
30865   -q, --quiet      do not print progress messages
30866   -d, --debug      don't remove temporary files
30867       --recheck    update $as_me by reconfiguring in the same conditions
30868   --file=FILE[:TEMPLATE]
30869                    instantiate the configuration file FILE
30870   --header=FILE[:TEMPLATE]
30871                    instantiate the configuration header FILE
30872
30873 Configuration files:
30874 $config_files
30875
30876 Configuration headers:
30877 $config_headers
30878
30879 Configuration commands:
30880 $config_commands
30881
30882 Report bugs to <bug-autoconf@gnu.org>."
30883 _ACEOF
30884
30885 cat >>$CONFIG_STATUS <<_ACEOF
30886 ac_cs_version="\\
30887 config.status
30888 configured by $0, generated by GNU Autoconf 2.59,
30889   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30890
30891 Copyright (C) 2003 Free Software Foundation, Inc.
30892 This config.status script is free software; the Free Software Foundation
30893 gives unlimited permission to copy, distribute and modify it."
30894 srcdir=$srcdir
30895 INSTALL="$INSTALL"
30896 _ACEOF
30897
30898 cat >>$CONFIG_STATUS <<\_ACEOF
30899 # If no file are specified by the user, then we need to provide default
30900 # value.  By we need to know if files were specified by the user.
30901 ac_need_defaults=:
30902 while test $# != 0
30903 do
30904   case $1 in
30905   --*=*)
30906     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30907     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30908     ac_shift=:
30909     ;;
30910   -*)
30911     ac_option=$1
30912     ac_optarg=$2
30913     ac_shift=shift
30914     ;;
30915   *) # This is not an option, so the user has probably given explicit
30916      # arguments.
30917      ac_option=$1
30918      ac_need_defaults=false;;
30919   esac
30920
30921   case $ac_option in
30922   # Handling of the options.
30923 _ACEOF
30924 cat >>$CONFIG_STATUS <<\_ACEOF
30925   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30926     ac_cs_recheck=: ;;
30927   --version | --vers* | -V )
30928     echo "$ac_cs_version"; exit 0 ;;
30929   --he | --h)
30930     # Conflict between --help and --header
30931     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30932 Try \`$0 --help' for more information." >&5
30933 echo "$as_me: error: ambiguous option: $1
30934 Try \`$0 --help' for more information." >&2;}
30935    { (exit 1); exit 1; }; };;
30936   --help | --hel | -h )
30937     echo "$ac_cs_usage"; exit 0 ;;
30938   --debug | --d* | -d )
30939     debug=: ;;
30940   --file | --fil | --fi | --f )
30941     $ac_shift
30942     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30943     ac_need_defaults=false;;
30944   --header | --heade | --head | --hea )
30945     $ac_shift
30946     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30947     ac_need_defaults=false;;
30948   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30949   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30950     ac_cs_silent=: ;;
30951
30952   # This is an error.
30953   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30954 Try \`$0 --help' for more information." >&5
30955 echo "$as_me: error: unrecognized option: $1
30956 Try \`$0 --help' for more information." >&2;}
30957    { (exit 1); exit 1; }; } ;;
30958
30959   *) ac_config_targets="$ac_config_targets $1" ;;
30960
30961   esac
30962   shift
30963 done
30964
30965 ac_configure_extra_args=
30966
30967 if $ac_cs_silent; then
30968   exec 6>/dev/null
30969   ac_configure_extra_args="$ac_configure_extra_args --silent"
30970 fi
30971
30972 _ACEOF
30973 cat >>$CONFIG_STATUS <<_ACEOF
30974 if \$ac_cs_recheck; then
30975   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30976   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30977 fi
30978
30979 _ACEOF
30980
30981 cat >>$CONFIG_STATUS <<_ACEOF
30982 #
30983 # INIT-COMMANDS section.
30984 #
30985
30986 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30987     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30988     # from automake.
30989     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30990     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30991     LINGUAS="${LINGUAS-%UNSET%}"
30992
30993
30994 _ACEOF
30995
30996
30997
30998 cat >>$CONFIG_STATUS <<\_ACEOF
30999 for ac_config_target in $ac_config_targets
31000 do
31001   case "$ac_config_target" in
31002   # Handling of arguments.
31003   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31004   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31005   "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31006   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31007   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31008   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31009   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31010   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31011   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31012   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31013   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31014   "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31015   "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31016   "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31017   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31018   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31019   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31020   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31021   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31022   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31023   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31024   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31025   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31026   "scripts/bgnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31027   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31028   "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31029   "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31030   "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31031   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31032   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31033   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31034   "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31035   "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31036   "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31037   "scripts/bat.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31038   "scripts/bat.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31039   "scripts/bat.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31040   "scripts/bat.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31041   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31042   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31043   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31044   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31045   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31046   "src/gnome2-console/bgnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31047   "src/qt-console/bat.conf" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31048   "src/qt-console/bat.pro" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31049   "src/qt-console/install_conf_file" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31050   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31051   "src/wx-console/bwx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31052   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31053   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31054   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31055   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31056   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31057   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31058   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31059   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31060   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31061   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31062   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31063   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31064   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31065   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31066   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31067   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31068   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31069   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31070   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31071   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31072   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31073   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31074   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31075   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31076   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31077   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31078   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31079   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31080   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31081   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31082   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31083   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31084   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31085   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31086   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31087   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31088   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31089   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31090   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31091   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31092   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31093   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31094   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31095   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31096   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31097   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31098   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31099   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31100   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31101   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31102   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31103   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31104   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31105   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31106   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31107   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31108   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31109   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31110 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31111    { (exit 1); exit 1; }; };;
31112   esac
31113 done
31114
31115 # If the user did not use the arguments to specify the items to instantiate,
31116 # then the envvar interface is used.  Set only those that are not.
31117 # We use the long form for the default assignment because of an extremely
31118 # bizarre bug on SunOS 4.1.3.
31119 if $ac_need_defaults; then
31120   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31121   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31122   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31123 fi
31124
31125 # Have a temporary directory for convenience.  Make it in the build tree
31126 # simply because there is no reason to put it here, and in addition,
31127 # creating and moving files from /tmp can sometimes cause problems.
31128 # Create a temporary directory, and hook for its removal unless debugging.
31129 $debug ||
31130 {
31131   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31132   trap '{ (exit 1); exit 1; }' 1 2 13 15
31133 }
31134
31135 # Create a (secure) tmp directory for tmp files.
31136
31137 {
31138   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31139   test -n "$tmp" && test -d "$tmp"
31140 }  ||
31141 {
31142   tmp=./confstat$$-$RANDOM
31143   (umask 077 && mkdir $tmp)
31144 } ||
31145 {
31146    echo "$me: cannot create a temporary directory in ." >&2
31147    { (exit 1); exit 1; }
31148 }
31149
31150 _ACEOF
31151
31152 cat >>$CONFIG_STATUS <<_ACEOF
31153
31154 #
31155 # CONFIG_FILES section.
31156 #
31157
31158 # No need to generate the scripts if there are no CONFIG_FILES.
31159 # This happens for instance when ./config.status config.h
31160 if test -n "\$CONFIG_FILES"; then
31161   # Protect against being on the right side of a sed subst in config.status.
31162   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31163    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31164 s,@SHELL@,$SHELL,;t t
31165 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31166 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31167 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31168 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31169 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31170 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31171 s,@exec_prefix@,$exec_prefix,;t t
31172 s,@prefix@,$prefix,;t t
31173 s,@program_transform_name@,$program_transform_name,;t t
31174 s,@bindir@,$bindir,;t t
31175 s,@sbindir@,$sbindir,;t t
31176 s,@archivedir@,$archivedir,;t t
31177 s,@libexecdir@,$libexecdir,;t t
31178 s,@datadir@,$datadir,;t t
31179 s,@sysconfdir@,$sysconfdir,;t t
31180 s,@sharedstatedir@,$sharedstatedir,;t t
31181 s,@localstatedir@,$localstatedir,;t t
31182 s,@libdir@,$libdir,;t t
31183 s,@includedir@,$includedir,;t t
31184 s,@oldincludedir@,$oldincludedir,;t t
31185 s,@infodir@,$infodir,;t t
31186 s,@mandir@,$mandir,;t t
31187 s,@build_alias@,$build_alias,;t t
31188 s,@host_alias@,$host_alias,;t t
31189 s,@target_alias@,$target_alias,;t t
31190 s,@DEFS@,$DEFS,;t t
31191 s,@ECHO_C@,$ECHO_C,;t t
31192 s,@ECHO_N@,$ECHO_N,;t t
31193 s,@ECHO_T@,$ECHO_T,;t t
31194 s,@LIBS@,$LIBS,;t t
31195 s,@BUILD_DIR@,$BUILD_DIR,;t t
31196 s,@TOP_DIR@,$TOP_DIR,;t t
31197 s,@TRUEPRG@,$TRUEPRG,;t t
31198 s,@FALSEPRG@,$FALSEPRG,;t t
31199 s,@VERSION@,$VERSION,;t t
31200 s,@DATE@,$DATE,;t t
31201 s,@LSMDATE@,$LSMDATE,;t t
31202 s,@CC@,$CC,;t t
31203 s,@CFLAGS@,$CFLAGS,;t t
31204 s,@LDFLAGS@,$LDFLAGS,;t t
31205 s,@CPPFLAGS@,$CPPFLAGS,;t t
31206 s,@ac_ct_CC@,$ac_ct_CC,;t t
31207 s,@EXEEXT@,$EXEEXT,;t t
31208 s,@OBJEXT@,$OBJEXT,;t t
31209 s,@CXX@,$CXX,;t t
31210 s,@CXXFLAGS@,$CXXFLAGS,;t t
31211 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31212 s,@CPP@,$CPP,;t t
31213 s,@EGREP@,$EGREP,;t t
31214 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31215 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31216 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31217 s,@RANLIB@,$RANLIB,;t t
31218 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31219 s,@MV@,$MV,;t t
31220 s,@RM@,$RM,;t t
31221 s,@CP@,$CP,;t t
31222 s,@SED@,$SED,;t t
31223 s,@ECHO@,$ECHO,;t t
31224 s,@CMP@,$CMP,;t t
31225 s,@TBL@,$TBL,;t t
31226 s,@AR@,$AR,;t t
31227 s,@OPENSSL@,$OPENSSL,;t t
31228 s,@MTX@,$MTX,;t t
31229 s,@DD@,$DD,;t t
31230 s,@MKISOFS@,$MKISOFS,;t t
31231 s,@PYTHON@,$PYTHON,;t t
31232 s,@GROWISOFS@,$GROWISOFS,;t t
31233 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
31234 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
31235 s,@PKGCONFIG@,$PKGCONFIG,;t t
31236 s,@WXCONFIG@,$WXCONFIG,;t t
31237 s,@WXFLAGS@,$WXFLAGS,;t t
31238 s,@CDRECORD@,$CDRECORD,;t t
31239 s,@PIDOF@,$PIDOF,;t t
31240 s,@AWK@,$AWK,;t t
31241 s,@ARFLAGS@,$ARFLAGS,;t t
31242 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
31243 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
31244 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
31245 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
31246 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
31247 s,@build@,$build,;t t
31248 s,@build_cpu@,$build_cpu,;t t
31249 s,@build_vendor@,$build_vendor,;t t
31250 s,@build_os@,$build_os,;t t
31251 s,@host@,$host,;t t
31252 s,@host_cpu@,$host_cpu,;t t
31253 s,@host_vendor@,$host_vendor,;t t
31254 s,@host_os@,$host_os,;t t
31255 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
31256 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
31257 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
31258 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
31259 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
31260 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
31261 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
31262 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
31263 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
31264 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
31265 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
31266 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
31267 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
31268 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
31269 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
31270 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
31271 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
31272 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
31273 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
31274 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
31275 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
31276 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
31277 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
31278 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
31279 s,@SET_MAKE@,$SET_MAKE,;t t
31280 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31281 s,@USE_NLS@,$USE_NLS,;t t
31282 s,@MSGFMT@,$MSGFMT,;t t
31283 s,@GMSGFMT@,$GMSGFMT,;t t
31284 s,@XGETTEXT@,$XGETTEXT,;t t
31285 s,@MSGMERGE@,$MSGMERGE,;t t
31286 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
31287 s,@LIBICONV@,$LIBICONV,;t t
31288 s,@LTLIBICONV@,$LTLIBICONV,;t t
31289 s,@INTLLIBS@,$INTLLIBS,;t t
31290 s,@LIBINTL@,$LIBINTL,;t t
31291 s,@LTLIBINTL@,$LTLIBINTL,;t t
31292 s,@POSUB@,$POSUB,;t t
31293 s,@GLIBC2@,$GLIBC2,;t t
31294 s,@ALLOCA@,$ALLOCA,;t t
31295 s,@GLIBC21@,$GLIBC21,;t t
31296 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
31297 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
31298 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
31299 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
31300 s,@INTLBISON@,$INTLBISON,;t t
31301 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
31302 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
31303 s,@CATOBJEXT@,$CATOBJEXT,;t t
31304 s,@DATADIRNAME@,$DATADIRNAME,;t t
31305 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
31306 s,@GENCAT@,$GENCAT,;t t
31307 s,@INTLOBJS@,$INTLOBJS,;t t
31308 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
31309 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
31310 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
31311 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
31312 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
31313 s,@GNOME_DIR@,$GNOME_DIR,;t t
31314 s,@BAT_DIR@,$BAT_DIR,;t t
31315 s,@QWT_INC@,$QWT_INC,;t t
31316 s,@QWT_LDFLAGS@,$QWT_LDFLAGS,;t t
31317 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
31318 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
31319 s,@WX_DIR@,$WX_DIR,;t t
31320 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
31321 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
31322 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
31323 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
31324 s,@STATIC_FD@,$STATIC_FD,;t t
31325 s,@STATIC_SD@,$STATIC_SD,;t t
31326 s,@STATIC_DIR@,$STATIC_DIR,;t t
31327 s,@STATIC_CONS@,$STATIC_CONS,;t t
31328 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
31329 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
31330 s,@ALL_DIRS@,$ALL_DIRS,;t t
31331 s,@DIRD_DIR@,$DIRD_DIR,;t t
31332 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
31333 s,@STORED_DIR@,$STORED_DIR,;t t
31334 s,@CONS_INC@,$CONS_INC,;t t
31335 s,@CONS_OBJ@,$CONS_OBJ,;t t
31336 s,@CONS_SRC@,$CONS_SRC,;t t
31337 s,@CONS_LIBS@,$CONS_LIBS,;t t
31338 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
31339 s,@READLINE_SRC@,$READLINE_SRC,;t t
31340 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
31341 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
31342 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
31343 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
31344 s,@working_dir@,$working_dir,;t t
31345 s,@scriptdir@,$scriptdir,;t t
31346 s,@dump_email@,$dump_email,;t t
31347 s,@job_email@,$job_email,;t t
31348 s,@smtp_host@,$smtp_host,;t t
31349 s,@piddir@,$piddir,;t t
31350 s,@subsysdir@,$subsysdir,;t t
31351 s,@baseport@,$baseport,;t t
31352 s,@dir_port@,$dir_port,;t t
31353 s,@fd_port@,$fd_port,;t t
31354 s,@sd_port@,$sd_port,;t t
31355 s,@dir_password@,$dir_password,;t t
31356 s,@fd_password@,$fd_password,;t t
31357 s,@sd_password@,$sd_password,;t t
31358 s,@mon_dir_password@,$mon_dir_password,;t t
31359 s,@mon_fd_password@,$mon_fd_password,;t t
31360 s,@mon_sd_password@,$mon_sd_password,;t t
31361 s,@db_name@,$db_name,;t t
31362 s,@db_user@,$db_user,;t t
31363 s,@dir_user@,$dir_user,;t t
31364 s,@dir_group@,$dir_group,;t t
31365 s,@sd_user@,$sd_user,;t t
31366 s,@sd_group@,$sd_group,;t t
31367 s,@fd_user@,$fd_user,;t t
31368 s,@fd_group@,$fd_group,;t t
31369 s,@SBINPERM@,$SBINPERM,;t t
31370 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
31371 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
31372 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
31373 s,@cats@,$cats,;t t
31374 s,@DB_TYPE@,$DB_TYPE,;t t
31375 s,@GETCONF@,$GETCONF,;t t
31376 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
31377 s,@X_CFLAGS@,$X_CFLAGS,;t t
31378 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31379 s,@X_LIBS@,$X_LIBS,;t t
31380 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31381 s,@LIBOBJS@,$LIBOBJS,;t t
31382 s,@FDLIBS@,$FDLIBS,;t t
31383 s,@DEBUG@,$DEBUG,;t t
31384 s,@DINCLUDE@,$DINCLUDE,;t t
31385 s,@DLIB@,$DLIB,;t t
31386 s,@DB_LIBS@,$DB_LIBS,;t t
31387 s,@WCFLAGS@,$WCFLAGS,;t t
31388 s,@WLDFLAGS@,$WLDFLAGS,;t t
31389 s,@WRAPLIBS@,$WRAPLIBS,;t t
31390 s,@OBJLIST@,$OBJLIST,;t t
31391 s,@hostname@,$hostname,;t t
31392 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
31393 s,@PSCMD@,$PSCMD,;t t
31394 s,@WIN32@,$WIN32,;t t
31395 s,@MACOSX@,$MACOSX,;t t
31396 s,@DISTNAME@,$DISTNAME,;t t
31397 s,@DISTVER@,$DISTVER,;t t
31398 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31399 /@MCOMMON@/r $MCOMMON
31400 s,@MCOMMON@,,;t t
31401 CEOF
31402
31403 _ACEOF
31404
31405   cat >>$CONFIG_STATUS <<\_ACEOF
31406   # Split the substitutions into bite-sized pieces for seds with
31407   # small command number limits, like on Digital OSF/1 and HP-UX.
31408   ac_max_sed_lines=48
31409   ac_sed_frag=1 # Number of current file.
31410   ac_beg=1 # First line for current file.
31411   ac_end=$ac_max_sed_lines # Line after last line for current file.
31412   ac_more_lines=:
31413   ac_sed_cmds=
31414   while $ac_more_lines; do
31415     if test $ac_beg -gt 1; then
31416       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31417     else
31418       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31419     fi
31420     if test ! -s $tmp/subs.frag; then
31421       ac_more_lines=false
31422     else
31423       # The purpose of the label and of the branching condition is to
31424       # speed up the sed processing (if there are no `@' at all, there
31425       # is no need to browse any of the substitutions).
31426       # These are the two extra sed commands mentioned above.
31427       (echo ':t
31428   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31429       if test -z "$ac_sed_cmds"; then
31430         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31431       else
31432         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31433       fi
31434       ac_sed_frag=`expr $ac_sed_frag + 1`
31435       ac_beg=$ac_end
31436       ac_end=`expr $ac_end + $ac_max_sed_lines`
31437     fi
31438   done
31439   if test -z "$ac_sed_cmds"; then
31440     ac_sed_cmds=cat
31441   fi
31442 fi # test -n "$CONFIG_FILES"
31443
31444 _ACEOF
31445 cat >>$CONFIG_STATUS <<\_ACEOF
31446 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31447   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31448   case $ac_file in
31449   - | *:- | *:-:* ) # input from stdin
31450         cat >$tmp/stdin
31451         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31452         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31453   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31454         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31455   * )   ac_file_in=$ac_file.in ;;
31456   esac
31457
31458   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31459   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31460 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31461          X"$ac_file" : 'X\(//\)[^/]' \| \
31462          X"$ac_file" : 'X\(//\)$' \| \
31463          X"$ac_file" : 'X\(/\)' \| \
31464          .     : '\(.\)' 2>/dev/null ||
31465 echo X"$ac_file" |
31466     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31467           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31468           /^X\(\/\/\)$/{ s//\1/; q; }
31469           /^X\(\/\).*/{ s//\1/; q; }
31470           s/.*/./; q'`
31471   { if $as_mkdir_p; then
31472     mkdir -p "$ac_dir"
31473   else
31474     as_dir="$ac_dir"
31475     as_dirs=
31476     while test ! -d "$as_dir"; do
31477       as_dirs="$as_dir $as_dirs"
31478       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31480          X"$as_dir" : 'X\(//\)[^/]' \| \
31481          X"$as_dir" : 'X\(//\)$' \| \
31482          X"$as_dir" : 'X\(/\)' \| \
31483          .     : '\(.\)' 2>/dev/null ||
31484 echo X"$as_dir" |
31485     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31486           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31487           /^X\(\/\/\)$/{ s//\1/; q; }
31488           /^X\(\/\).*/{ s//\1/; q; }
31489           s/.*/./; q'`
31490     done
31491     test ! -n "$as_dirs" || mkdir $as_dirs
31492   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31493 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31494    { (exit 1); exit 1; }; }; }
31495
31496   ac_builddir=.
31497
31498 if test "$ac_dir" != .; then
31499   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31500   # A "../" for each directory in $ac_dir_suffix.
31501   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31502 else
31503   ac_dir_suffix= ac_top_builddir=
31504 fi
31505
31506 case $srcdir in
31507   .)  # No --srcdir option.  We are building in place.
31508     ac_srcdir=.
31509     if test -z "$ac_top_builddir"; then
31510        ac_top_srcdir=.
31511     else
31512        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31513     fi ;;
31514   [\\/]* | ?:[\\/]* )  # Absolute path.
31515     ac_srcdir=$srcdir$ac_dir_suffix;
31516     ac_top_srcdir=$srcdir ;;
31517   *) # Relative path.
31518     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31519     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31520 esac
31521
31522 # Do not use `cd foo && pwd` to compute absolute paths, because
31523 # the directories may not exist.
31524 case `pwd` in
31525 .) ac_abs_builddir="$ac_dir";;
31526 *)
31527   case "$ac_dir" in
31528   .) ac_abs_builddir=`pwd`;;
31529   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31530   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31531   esac;;
31532 esac
31533 case $ac_abs_builddir in
31534 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31535 *)
31536   case ${ac_top_builddir}. in
31537   .) ac_abs_top_builddir=$ac_abs_builddir;;
31538   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31539   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31540   esac;;
31541 esac
31542 case $ac_abs_builddir in
31543 .) ac_abs_srcdir=$ac_srcdir;;
31544 *)
31545   case $ac_srcdir in
31546   .) ac_abs_srcdir=$ac_abs_builddir;;
31547   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31548   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31549   esac;;
31550 esac
31551 case $ac_abs_builddir in
31552 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31553 *)
31554   case $ac_top_srcdir in
31555   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31556   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31557   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31558   esac;;
31559 esac
31560
31561
31562   case $INSTALL in
31563   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31564   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31565   esac
31566
31567   if test x"$ac_file" != x-; then
31568     { echo "$as_me:$LINENO: creating $ac_file" >&5
31569 echo "$as_me: creating $ac_file" >&6;}
31570     rm -f "$ac_file"
31571   fi
31572   # Let's still pretend it is `configure' which instantiates (i.e., don't
31573   # use $as_me), people would be surprised to read:
31574   #    /* config.h.  Generated by config.status.  */
31575   if test x"$ac_file" = x-; then
31576     configure_input=
31577   else
31578     configure_input="$ac_file.  "
31579   fi
31580   configure_input=$configure_input"Generated from `echo $ac_file_in |
31581                                      sed 's,.*/,,'` by configure."
31582
31583   # First look for the input files in the build tree, otherwise in the
31584   # src tree.
31585   ac_file_inputs=`IFS=:
31586     for f in $ac_file_in; do
31587       case $f in
31588       -) echo $tmp/stdin ;;
31589       [\\/$]*)
31590          # Absolute (can't be DOS-style, as IFS=:)
31591          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31592 echo "$as_me: error: cannot find input file: $f" >&2;}
31593    { (exit 1); exit 1; }; }
31594          echo "$f";;
31595       *) # Relative
31596          if test -f "$f"; then
31597            # Build tree
31598            echo "$f"
31599          elif test -f "$srcdir/$f"; then
31600            # Source tree
31601            echo "$srcdir/$f"
31602          else
31603            # /dev/null tree
31604            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31605 echo "$as_me: error: cannot find input file: $f" >&2;}
31606    { (exit 1); exit 1; }; }
31607          fi;;
31608       esac
31609     done` || { (exit 1); exit 1; }
31610 _ACEOF
31611 cat >>$CONFIG_STATUS <<_ACEOF
31612   sed "$ac_vpsub
31613 $extrasub
31614 _ACEOF
31615 cat >>$CONFIG_STATUS <<\_ACEOF
31616 :t
31617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31618 s,@configure_input@,$configure_input,;t t
31619 s,@srcdir@,$ac_srcdir,;t t
31620 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31621 s,@top_srcdir@,$ac_top_srcdir,;t t
31622 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31623 s,@builddir@,$ac_builddir,;t t
31624 s,@abs_builddir@,$ac_abs_builddir,;t t
31625 s,@top_builddir@,$ac_top_builddir,;t t
31626 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31627 s,@INSTALL@,$ac_INSTALL,;t t
31628 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31629   rm -f $tmp/stdin
31630   if test x"$ac_file" != x-; then
31631     mv $tmp/out $ac_file
31632   else
31633     cat $tmp/out
31634     rm -f $tmp/out
31635   fi
31636
31637 done
31638 _ACEOF
31639 cat >>$CONFIG_STATUS <<\_ACEOF
31640
31641 #
31642 # CONFIG_HEADER section.
31643 #
31644
31645 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31646 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31647 #
31648 # ac_d sets the value in "#define NAME VALUE" lines.
31649 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31650 ac_dB='[         ].*$,\1#\2'
31651 ac_dC=' '
31652 ac_dD=',;t'
31653 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31654 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31655 ac_uB='$,\1#\2define\3'
31656 ac_uC=' '
31657 ac_uD=',;t'
31658
31659 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31660   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31661   case $ac_file in
31662   - | *:- | *:-:* ) # input from stdin
31663         cat >$tmp/stdin
31664         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31665         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31666   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31667         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31668   * )   ac_file_in=$ac_file.in ;;
31669   esac
31670
31671   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31672 echo "$as_me: creating $ac_file" >&6;}
31673
31674   # First look for the input files in the build tree, otherwise in the
31675   # src tree.
31676   ac_file_inputs=`IFS=:
31677     for f in $ac_file_in; do
31678       case $f in
31679       -) echo $tmp/stdin ;;
31680       [\\/$]*)
31681          # Absolute (can't be DOS-style, as IFS=:)
31682          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31683 echo "$as_me: error: cannot find input file: $f" >&2;}
31684    { (exit 1); exit 1; }; }
31685          # Do quote $f, to prevent DOS paths from being IFS'd.
31686          echo "$f";;
31687       *) # Relative
31688          if test -f "$f"; then
31689            # Build tree
31690            echo "$f"
31691          elif test -f "$srcdir/$f"; then
31692            # Source tree
31693            echo "$srcdir/$f"
31694          else
31695            # /dev/null tree
31696            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31697 echo "$as_me: error: cannot find input file: $f" >&2;}
31698    { (exit 1); exit 1; }; }
31699          fi;;
31700       esac
31701     done` || { (exit 1); exit 1; }
31702   # Remove the trailing spaces.
31703   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31704
31705 _ACEOF
31706
31707 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31708 # `conftest.undefs', that substitutes the proper values into
31709 # config.h.in to produce config.h.  The first handles `#define'
31710 # templates, and the second `#undef' templates.
31711 # And first: Protect against being on the right side of a sed subst in
31712 # config.status.  Protect against being in an unquoted here document
31713 # in config.status.
31714 rm -f conftest.defines conftest.undefs
31715 # Using a here document instead of a string reduces the quoting nightmare.
31716 # Putting comments in sed scripts is not portable.
31717 #
31718 # `end' is used to avoid that the second main sed command (meant for
31719 # 0-ary CPP macros) applies to n-ary macro definitions.
31720 # See the Autoconf documentation for `clear'.
31721 cat >confdef2sed.sed <<\_ACEOF
31722 s/[\\&,]/\\&/g
31723 s,[\\$`],\\&,g
31724 t clear
31725 : clear
31726 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31727 t end
31728 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31729 : end
31730 _ACEOF
31731 # If some macros were called several times there might be several times
31732 # the same #defines, which is useless.  Nevertheless, we may not want to
31733 # sort them, since we want the *last* AC-DEFINE to be honored.
31734 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31735 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31736 rm -f confdef2sed.sed
31737
31738 # This sed command replaces #undef with comments.  This is necessary, for
31739 # example, in the case of _POSIX_SOURCE, which is predefined and required
31740 # on some systems where configure will not decide to define it.
31741 cat >>conftest.undefs <<\_ACEOF
31742 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31743 _ACEOF
31744
31745 # Break up conftest.defines because some shells have a limit on the size
31746 # of here documents, and old seds have small limits too (100 cmds).
31747 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31748 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31749 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31750 echo '  :' >>$CONFIG_STATUS
31751 rm -f conftest.tail
31752 while grep . conftest.defines >/dev/null
31753 do
31754   # Write a limited-size here document to $tmp/defines.sed.
31755   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31756   # Speed up: don't consider the non `#define' lines.
31757   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31758   # Work around the forget-to-reset-the-flag bug.
31759   echo 't clr' >>$CONFIG_STATUS
31760   echo ': clr' >>$CONFIG_STATUS
31761   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31762   echo 'CEOF
31763   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31764   rm -f $tmp/in
31765   mv $tmp/out $tmp/in
31766 ' >>$CONFIG_STATUS
31767   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31768   rm -f conftest.defines
31769   mv conftest.tail conftest.defines
31770 done
31771 rm -f conftest.defines
31772 echo '  fi # grep' >>$CONFIG_STATUS
31773 echo >>$CONFIG_STATUS
31774
31775 # Break up conftest.undefs because some shells have a limit on the size
31776 # of here documents, and old seds have small limits too (100 cmds).
31777 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31778 rm -f conftest.tail
31779 while grep . conftest.undefs >/dev/null
31780 do
31781   # Write a limited-size here document to $tmp/undefs.sed.
31782   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31783   # Speed up: don't consider the non `#undef'
31784   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31785   # Work around the forget-to-reset-the-flag bug.
31786   echo 't clr' >>$CONFIG_STATUS
31787   echo ': clr' >>$CONFIG_STATUS
31788   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31789   echo 'CEOF
31790   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31791   rm -f $tmp/in
31792   mv $tmp/out $tmp/in
31793 ' >>$CONFIG_STATUS
31794   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31795   rm -f conftest.undefs
31796   mv conftest.tail conftest.undefs
31797 done
31798 rm -f conftest.undefs
31799
31800 cat >>$CONFIG_STATUS <<\_ACEOF
31801   # Let's still pretend it is `configure' which instantiates (i.e., don't
31802   # use $as_me), people would be surprised to read:
31803   #    /* config.h.  Generated by config.status.  */
31804   if test x"$ac_file" = x-; then
31805     echo "/* Generated by configure.  */" >$tmp/config.h
31806   else
31807     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31808   fi
31809   cat $tmp/in >>$tmp/config.h
31810   rm -f $tmp/in
31811   if test x"$ac_file" != x-; then
31812     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31813       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31814 echo "$as_me: $ac_file is unchanged" >&6;}
31815     else
31816       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31817 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31818          X"$ac_file" : 'X\(//\)[^/]' \| \
31819          X"$ac_file" : 'X\(//\)$' \| \
31820          X"$ac_file" : 'X\(/\)' \| \
31821          .     : '\(.\)' 2>/dev/null ||
31822 echo X"$ac_file" |
31823     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31824           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31825           /^X\(\/\/\)$/{ s//\1/; q; }
31826           /^X\(\/\).*/{ s//\1/; q; }
31827           s/.*/./; q'`
31828       { if $as_mkdir_p; then
31829     mkdir -p "$ac_dir"
31830   else
31831     as_dir="$ac_dir"
31832     as_dirs=
31833     while test ! -d "$as_dir"; do
31834       as_dirs="$as_dir $as_dirs"
31835       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31836 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31837          X"$as_dir" : 'X\(//\)[^/]' \| \
31838          X"$as_dir" : 'X\(//\)$' \| \
31839          X"$as_dir" : 'X\(/\)' \| \
31840          .     : '\(.\)' 2>/dev/null ||
31841 echo X"$as_dir" |
31842     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31843           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31844           /^X\(\/\/\)$/{ s//\1/; q; }
31845           /^X\(\/\).*/{ s//\1/; q; }
31846           s/.*/./; q'`
31847     done
31848     test ! -n "$as_dirs" || mkdir $as_dirs
31849   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31850 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31851    { (exit 1); exit 1; }; }; }
31852
31853       rm -f $ac_file
31854       mv $tmp/config.h $ac_file
31855     fi
31856   else
31857     cat $tmp/config.h
31858     rm -f $tmp/config.h
31859   fi
31860 done
31861 _ACEOF
31862 cat >>$CONFIG_STATUS <<\_ACEOF
31863
31864 #
31865 # CONFIG_COMMANDS section.
31866 #
31867 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31868   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31869   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31870   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31871 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31872          X"$ac_dest" : 'X\(//\)[^/]' \| \
31873          X"$ac_dest" : 'X\(//\)$' \| \
31874          X"$ac_dest" : 'X\(/\)' \| \
31875          .     : '\(.\)' 2>/dev/null ||
31876 echo X"$ac_dest" |
31877     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31878           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31879           /^X\(\/\/\)$/{ s//\1/; q; }
31880           /^X\(\/\).*/{ s//\1/; q; }
31881           s/.*/./; q'`
31882   { if $as_mkdir_p; then
31883     mkdir -p "$ac_dir"
31884   else
31885     as_dir="$ac_dir"
31886     as_dirs=
31887     while test ! -d "$as_dir"; do
31888       as_dirs="$as_dir $as_dirs"
31889       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31891          X"$as_dir" : 'X\(//\)[^/]' \| \
31892          X"$as_dir" : 'X\(//\)$' \| \
31893          X"$as_dir" : 'X\(/\)' \| \
31894          .     : '\(.\)' 2>/dev/null ||
31895 echo X"$as_dir" |
31896     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31897           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31898           /^X\(\/\/\)$/{ s//\1/; q; }
31899           /^X\(\/\).*/{ s//\1/; q; }
31900           s/.*/./; q'`
31901     done
31902     test ! -n "$as_dirs" || mkdir $as_dirs
31903   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31904 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31905    { (exit 1); exit 1; }; }; }
31906
31907   ac_builddir=.
31908
31909 if test "$ac_dir" != .; then
31910   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31911   # A "../" for each directory in $ac_dir_suffix.
31912   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31913 else
31914   ac_dir_suffix= ac_top_builddir=
31915 fi
31916
31917 case $srcdir in
31918   .)  # No --srcdir option.  We are building in place.
31919     ac_srcdir=.
31920     if test -z "$ac_top_builddir"; then
31921        ac_top_srcdir=.
31922     else
31923        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31924     fi ;;
31925   [\\/]* | ?:[\\/]* )  # Absolute path.
31926     ac_srcdir=$srcdir$ac_dir_suffix;
31927     ac_top_srcdir=$srcdir ;;
31928   *) # Relative path.
31929     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31930     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31931 esac
31932
31933 # Do not use `cd foo && pwd` to compute absolute paths, because
31934 # the directories may not exist.
31935 case `pwd` in
31936 .) ac_abs_builddir="$ac_dir";;
31937 *)
31938   case "$ac_dir" in
31939   .) ac_abs_builddir=`pwd`;;
31940   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31941   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31942   esac;;
31943 esac
31944 case $ac_abs_builddir in
31945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31946 *)
31947   case ${ac_top_builddir}. in
31948   .) ac_abs_top_builddir=$ac_abs_builddir;;
31949   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31950   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31951   esac;;
31952 esac
31953 case $ac_abs_builddir in
31954 .) ac_abs_srcdir=$ac_srcdir;;
31955 *)
31956   case $ac_srcdir in
31957   .) ac_abs_srcdir=$ac_abs_builddir;;
31958   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31959   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31960   esac;;
31961 esac
31962 case $ac_abs_builddir in
31963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31964 *)
31965   case $ac_top_srcdir in
31966   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31967   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31968   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31969   esac;;
31970 esac
31971
31972
31973   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31974 echo "$as_me: executing $ac_dest commands" >&6;}
31975   case $ac_dest in
31976     default-1 )
31977     for ac_file in $CONFIG_FILES; do
31978       # Support "outfile[:infile[:infile...]]"
31979       case "$ac_file" in
31980         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31981       esac
31982       # PO directories have a Makefile.in generated from Makefile.in.in.
31983       case "$ac_file" in */Makefile.in)
31984         # Adjust a relative srcdir.
31985         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31986         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31987         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31988         # In autoconf-2.13 it is called $ac_given_srcdir.
31989         # In autoconf-2.50 it is called $srcdir.
31990         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31991         case "$ac_given_srcdir" in
31992           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31993           /*) top_srcdir="$ac_given_srcdir" ;;
31994           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31995         esac
31996         # Treat a directory as a PO directory if and only if it has a
31997         # POTFILES.in file. This allows packages to have multiple PO
31998         # directories under different names or in different locations.
31999         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32000           rm -f "$ac_dir/POTFILES"
32001           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32002           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32003           POMAKEFILEDEPS="POTFILES.in"
32004           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32005           # on $ac_dir but don't depend on user-specified configuration
32006           # parameters.
32007           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32008             # The LINGUAS file contains the set of available languages.
32009             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32010               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32011             fi
32012             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32013             # Hide the ALL_LINGUAS assigment from automake.
32014             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32015             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32016           else
32017             # The set of available languages was given in configure.in.
32018             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32019           fi
32020           # Compute POFILES
32021           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32022           # Compute UPDATEPOFILES
32023           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32024           # Compute DUMMYPOFILES
32025           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32026           # Compute GMOFILES
32027           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32028           case "$ac_given_srcdir" in
32029             .) srcdirpre= ;;
32030             *) srcdirpre='$(srcdir)/' ;;
32031           esac
32032           POFILES=
32033           UPDATEPOFILES=
32034           DUMMYPOFILES=
32035           GMOFILES=
32036           for lang in $ALL_LINGUAS; do
32037             POFILES="$POFILES $srcdirpre$lang.po"
32038             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32039             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32040             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32041           done
32042           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32043           # environment variable.
32044           INST_LINGUAS=
32045           if test -n "$ALL_LINGUAS"; then
32046             for presentlang in $ALL_LINGUAS; do
32047               useit=no
32048               if test "%UNSET%" != "$LINGUAS"; then
32049                 desiredlanguages="$LINGUAS"
32050               else
32051                 desiredlanguages="$ALL_LINGUAS"
32052               fi
32053               for desiredlang in $desiredlanguages; do
32054                 # Use the presentlang catalog if desiredlang is
32055                 #   a. equal to presentlang, or
32056                 #   b. a variant of presentlang (because in this case,
32057                 #      presentlang can be used as a fallback for messages
32058                 #      which are not translated in the desiredlang catalog).
32059                 case "$desiredlang" in
32060                   "$presentlang"*) useit=yes;;
32061                 esac
32062               done
32063               if test $useit = yes; then
32064                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32065               fi
32066             done
32067           fi
32068           CATALOGS=
32069           if test -n "$INST_LINGUAS"; then
32070             for lang in $INST_LINGUAS; do
32071               CATALOGS="$CATALOGS $lang.gmo"
32072             done
32073           fi
32074           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32075           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"
32076           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32077             if test -f "$f"; then
32078               case "$f" in
32079                 *.orig | *.bak | *~) ;;
32080                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32081               esac
32082             fi
32083           done
32084         fi
32085         ;;
32086       esac
32087     done ;;
32088     default )
32089  ;;
32090   esac
32091 done
32092 _ACEOF
32093
32094 cat >>$CONFIG_STATUS <<\_ACEOF
32095
32096 { (exit 0); exit 0; }
32097 _ACEOF
32098 chmod +x $CONFIG_STATUS
32099 ac_clean_files=$ac_clean_files_save
32100
32101
32102 # configure is writing to config.log, and then calls config.status.
32103 # config.status does its own redirection, appending to config.log.
32104 # Unfortunately, on DOS this fails, as config.log is still kept open
32105 # by configure, so config.status won't be able to write to it; its
32106 # output is simply discarded.  So we exec the FD to /dev/null,
32107 # effectively closing config.log, so it can be properly (re)opened and
32108 # appended to by config.status.  When coming back to configure, we
32109 # need to make the FD available again.
32110 if test "$no_create" != yes; then
32111   ac_cs_success=:
32112   ac_config_status_args=
32113   test "$silent" = yes &&
32114     ac_config_status_args="$ac_config_status_args --quiet"
32115   exec 5>/dev/null
32116   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32117   exec 5>>config.log
32118   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32119   # would make configure fail if this is the last instruction.
32120   $ac_cs_success || { (exit 1); exit 1; }
32121 fi
32122
32123
32124 if test "${support_bat}" = "yes" ; then
32125   cd src/qt-console
32126   chmod 755 install_conf_file build-depkgs-qt-console
32127   echo "Creating bat Makefile"
32128   qmake
32129   cd ${BUILD_DIR}
32130 fi
32131
32132 echo "Doing make of dependencies"
32133 ${MAKE:-make} depend
32134
32135 cd scripts
32136 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32137 chmod 755 dvd-handler dvd-simulator
32138 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32139 cd ..
32140
32141 c=src/cats
32142
32143 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32144 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32145
32146 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
32147 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
32148
32149 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32150 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32151
32152 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
32153 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
32154
32155 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32156 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32157
32158 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32159 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32160
32161 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32162 chmod 755 $c/sqlite
32163 chmod 755 $c/mysql
32164
32165 chmod 755 src/win32/build-depkgs-mingw32
32166
32167
32168
32169 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32170    largefile_support="yes"
32171 fi
32172
32173 #
32174 # A whole lot of hand springs to get the compiler version.
32175 #  This is because gcc changed the output in version 3.0
32176 #
32177 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32178 if test "x${CCVERSION}" = "x" ; then
32179   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32180 fi
32181 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32182 if test x"${CXXVERSION}" = x ; then
32183   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32184 fi
32185
32186 if test "x${subsysdir}" = "x${sbindir}" ; then
32187    echo " "
32188    echo " "
32189    echo "You have set --sbindir and --with-subsys-dir"
32190    echo "  both equal to: ${subsysdir} "
32191    echo "  This is not permitted. Please reconfigure."
32192    echo " "
32193    echo "Aborting configuration ..."
32194    echo " "
32195    echo " "
32196    exit 1
32197 fi
32198
32199 if test "x${db_type}" = "xInternal" ; then
32200    echo " "
32201    echo " "
32202    echo "You have not specified either --enable-client-only or one of the"
32203    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
32204    echo "  This is not permitted. Please reconfigure."
32205    echo " "
32206    echo "Aborting the configuration ..."
32207    echo " "
32208    echo " "
32209    exit 1
32210 fi
32211
32212 echo "
32213 Configuration on `date`:
32214
32215   Host:                       $host -- ${DISTNAME} ${DISTVER}
32216   Bacula version:             ${VERSION} (${DATE})
32217   Source code location:       ${srcdir}
32218   Install binaries:           ${sbindir}
32219   Install config files:       ${sysconfdir}
32220   Scripts directory:          ${scriptdir}
32221   Archive directory:          ${archivedir}
32222   Working directory:          ${working_dir}
32223   PID directory:              ${piddir}
32224   Subsys directory:           ${subsysdir}
32225   Man directory:              ${mandir}
32226   Data directory:             ${datadir}
32227   C Compiler:                 ${CC} ${CCVERSION}
32228   C++ Compiler:               ${CXX} ${CXXVERSION}
32229   Compiler flags:             ${WCFLAGS} ${CFLAGS}
32230   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
32231   Libraries:                  ${LIBS}
32232   Statically Linked Tools:    ${support_static_tools}
32233   Statically Linked FD:       ${support_static_fd}
32234   Statically Linked SD:       ${support_static_sd}
32235   Statically Linked DIR:      ${support_static_dir}
32236   Statically Linked CONS:     ${support_static_cons}
32237   Database type:              ${db_type}
32238   Database lib:               ${DB_LIBS}
32239   Database name:              ${db_name}
32240   Database user:              ${db_user}
32241
32242   Job Output Email:           ${job_email}
32243   Traceback Email:            ${dump_email}
32244   SMTP Host Address:          ${smtp_host}
32245
32246   Director Port:              ${dir_port}
32247   File daemon Port:           ${fd_port}
32248   Storage daemon Port:        ${sd_port}
32249
32250   Director User:              ${dir_user}
32251   Director Group:             ${dir_group}
32252   Storage Daemon User:        ${sd_user}
32253   Storage DaemonGroup:        ${sd_group}
32254   File Daemon User:           ${fd_user}
32255   File Daemon Group:          ${fd_group}
32256
32257   SQL binaries Directory      ${SQL_BINDIR}
32258
32259   Large file support:         $largefile_support
32260   Bacula conio support:       ${got_conio} ${CONS_LIBS}
32261   readline support:           ${got_readline} ${PRTREADLINE_SRC}
32262   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
32263   TLS support:                ${support_tls}
32264   Encryption support:         ${support_crypto}
32265   ZLIB support:               ${have_zlib}
32266   enable-smartalloc:          ${support_smartalloc}
32267   bat support:                ${support_bat} ${QWT_LDFLAGS}
32268   enable-gnome:               ${support_gnome} ${gnome_version}
32269   enable-bwx-console:         ${support_wx_console} ${wx_version}
32270   enable-tray-monitor:        ${support_tray_monitor}
32271   client-only:                ${build_client_only}
32272   build-dird:                 ${build_dird}
32273   build-stored:               ${build_stored}
32274   ACL support:                ${have_acl}
32275   Python support:             ${support_python} ${PYTHON_LIBS}
32276   Batch insert enabled:       ${support_batch_insert}
32277
32278   " > config.out
32279
32280 cat config.out