]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Apply trunk fixes update technotes
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TOP_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX DD MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO DVDRWFORMAT PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GLIBC2 ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOME_DIR BAT_DIR QWT_INC QWT_LDFLAGS WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS DIRD_DIR DIR_TOOLS STORED_DIR CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password db_name db_user dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_TYPE GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS WRAPLIBS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures this package to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861
862   cat <<\_ACEOF
863
864 Optional Features:
865   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
866   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
867   --disable-nls           do not use Native Language Support
868   --disable-rpath         do not hardcode runtime library paths
869   --enable-gnome          enable build of bgnome-console GUI disabled
870   --enable-bat  enable build of bat Qt4 GUI disabled
871   --enable-bwx-console     enable build of wxWidgets console disabled
872   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
873   --enable-smartalloc     enable smartalloc debugging support disabled
874   --enable-static-tools   enable static tape tools disabled
875   --enable-static-fd      enable static File daemon disabled
876   --enable-static-sd      enable static Storage daemon disabled
877   --enable-static-dir     enable static Director disabled
878   --enable-static-cons    enable static Console disabled
879   --enable-client-only    build client (File daemon) only disabled
880   --enable-build-dird     enable building of dird (Director) enabled
881   --enable-build-stored   enable building of stored (Storage daemon) enabled
882  --disable-conio disable conio support enabled
883
884   --enable-ipv6             enable ipv6 support enabled
885
886   --disable-readline      disable readline support disable
887
888         --enable-batch-insert       enable the DB batch insert code disabled
889   --disable-largefile     omit support for large files
890
891 Optional Packages:
892   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
893   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
894   --with-gnu-ld           assume the C compiler uses GNU ld default=no
895   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
896   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
897   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
898   --without-libintl-prefix     don't search for libintl in includedir and libdir
899   --with-included-gettext use the GNU gettext library included here
900  --with-qwt[=DIR]                 specify qwt library directory
901  --with-readline[=DIR]         specify readline library directory
902
903   --with-python[=DIR]   Include Python support.  DIR is the Python base
904                           install directory, default is to search through
905                           a number of common places for the Python files.
906   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
907   --with-openssl[=DIR]
908                           Include OpenSSL support. DIR is the OpenSSL base
909   --with-working-dir=PATH        specify path of Bacula working directory
910   --with-scriptdir=PATH    specify path of Bacula scripts directory
911   --with-dump-email=EMAIL        dump email address
912   --with-job-email=EMAIL         job output email address
913   --with-smtp-host=HOST          SMTP mail host address
914   --with-pid-dir=PATH            specify location of Bacula pid files
915   --with-subsys-dir=PATH         specify location of Bacula subsys file
916   --with-baseport=PORT           specify base port address for daemons
917   --with-dir-password=PASSWORD   specify Director's password
918   --with-fd-password=PASSWORD    specify Client's password
919   --with-sd-password=PASSWORD    specify Storage daemon's password
920   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
921   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
922   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
923   --with-db-name=DBNAME        specify database name (default bacula)
924   --with-db-user=UNAME         specify database user (default bacula)
925   --with-dir-user=USER           specify user for Director daemon
926   --with-dir-group=GROUP                 specify group for Director daemon
927   --with-sd-user=USER            specify user for Storage daemon
928   --with-sd-group=GROUP          specify group for Storage daemon
929   --with-fd-user=USER            specify user for File daemon
930   --with-fd-group=GROUP          specify group for File daemon
931   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
932   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
933                           base install directory, defaults to /usr/local/pgsql
934
935   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
936                           install directory, default is to search through
937                           a number of common places for the MySQL files.
938
939   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
940                           install directory, default is to search through
941                           a number of common places for the MySQL files.
942
943   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
944                           install directory, default is to search through
945                           a number of common places for the SQLite3 files.
946
947   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
948                           install directory, default is to search through
949                           a number of common places for the SQLite files.
950   --with-x                use the X Window System
951
952 Some influential environment variables:
953   CC          C compiler command
954   CFLAGS      C compiler flags
955   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
956               nonstandard directory <lib dir>
957   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
958               headers in a nonstandard directory <include dir>
959   CXX         C++ compiler command
960   CXXFLAGS    C++ compiler flags
961   CPP         C preprocessor
962   WXCONFIG    wx-config command. On some systems, you must set it to
963               wx-config-2.6 to use wxWidgets 2.6.
964   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
965
966 Use these variables to override the choices made by `configure' or to help
967 it to find libraries and programs with nonstandard names/locations.
968
969 _ACEOF
970 fi
971
972 if test "$ac_init_help" = "recursive"; then
973   # If there are subdirs, report their specific --help.
974   ac_popdir=`pwd`
975   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
976     test -d $ac_dir || continue
977     ac_builddir=.
978
979 if test "$ac_dir" != .; then
980   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
981   # A "../" for each directory in $ac_dir_suffix.
982   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
983 else
984   ac_dir_suffix= ac_top_builddir=
985 fi
986
987 case $srcdir in
988   .)  # No --srcdir option.  We are building in place.
989     ac_srcdir=.
990     if test -z "$ac_top_builddir"; then
991        ac_top_srcdir=.
992     else
993        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
994     fi ;;
995   [\\/]* | ?:[\\/]* )  # Absolute path.
996     ac_srcdir=$srcdir$ac_dir_suffix;
997     ac_top_srcdir=$srcdir ;;
998   *) # Relative path.
999     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1000     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1001 esac
1002
1003 # Do not use `cd foo && pwd` to compute absolute paths, because
1004 # the directories may not exist.
1005 case `pwd` in
1006 .) ac_abs_builddir="$ac_dir";;
1007 *)
1008   case "$ac_dir" in
1009   .) ac_abs_builddir=`pwd`;;
1010   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1011   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1012   esac;;
1013 esac
1014 case $ac_abs_builddir in
1015 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1016 *)
1017   case ${ac_top_builddir}. in
1018   .) ac_abs_top_builddir=$ac_abs_builddir;;
1019   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1020   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1021   esac;;
1022 esac
1023 case $ac_abs_builddir in
1024 .) ac_abs_srcdir=$ac_srcdir;;
1025 *)
1026   case $ac_srcdir in
1027   .) ac_abs_srcdir=$ac_abs_builddir;;
1028   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1029   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1030   esac;;
1031 esac
1032 case $ac_abs_builddir in
1033 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1034 *)
1035   case $ac_top_srcdir in
1036   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1037   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1038   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1039   esac;;
1040 esac
1041
1042     cd $ac_dir
1043     # Check for guested configure; otherwise get Cygnus style configure.
1044     if test -f $ac_srcdir/configure.gnu; then
1045       echo
1046       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1047     elif test -f $ac_srcdir/configure; then
1048       echo
1049       $SHELL $ac_srcdir/configure  --help=recursive
1050     elif test -f $ac_srcdir/configure.ac ||
1051            test -f $ac_srcdir/configure.in; then
1052       echo
1053       $ac_configure --help
1054     else
1055       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1056     fi
1057     cd $ac_popdir
1058   done
1059 fi
1060
1061 test -n "$ac_init_help" && exit 0
1062 if $ac_init_version; then
1063   cat <<\_ACEOF
1064
1065 Copyright (C) 2003 Free Software Foundation, Inc.
1066 This configure script is free software; the Free Software Foundation
1067 gives unlimited permission to copy, distribute and modify it.
1068 _ACEOF
1069   exit 0
1070 fi
1071 exec 5>config.log
1072 cat >&5 <<_ACEOF
1073 This file contains any messages produced by compilers while
1074 running configure, to aid debugging if configure makes a mistake.
1075
1076 It was created by $as_me, which was
1077 generated by GNU Autoconf 2.59.  Invocation command line was
1078
1079   $ $0 $@
1080
1081 _ACEOF
1082 {
1083 cat <<_ASUNAME
1084 ## --------- ##
1085 ## Platform. ##
1086 ## --------- ##
1087
1088 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1089 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1090 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1091 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1092 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1093
1094 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1095 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1096
1097 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1098 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1099 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1100 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1101 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1102 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1103 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1104
1105 _ASUNAME
1106
1107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1108 for as_dir in $PATH
1109 do
1110   IFS=$as_save_IFS
1111   test -z "$as_dir" && as_dir=.
1112   echo "PATH: $as_dir"
1113 done
1114
1115 } >&5
1116
1117 cat >&5 <<_ACEOF
1118
1119
1120 ## ----------- ##
1121 ## Core tests. ##
1122 ## ----------- ##
1123
1124 _ACEOF
1125
1126
1127 # Keep a trace of the command line.
1128 # Strip out --no-create and --no-recursion so they do not pile up.
1129 # Strip out --silent because we don't want to record it for future runs.
1130 # Also quote any args containing shell meta-characters.
1131 # Make two passes to allow for proper duplicate-argument suppression.
1132 ac_configure_args=
1133 ac_configure_args0=
1134 ac_configure_args1=
1135 ac_sep=
1136 ac_must_keep_next=false
1137 for ac_pass in 1 2
1138 do
1139   for ac_arg
1140   do
1141     case $ac_arg in
1142     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1143     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144     | -silent | --silent | --silen | --sile | --sil)
1145       continue ;;
1146     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1147       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1148     esac
1149     case $ac_pass in
1150     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1151     2)
1152       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1153       if test $ac_must_keep_next = true; then
1154         ac_must_keep_next=false # Got value, back to normal.
1155       else
1156         case $ac_arg in
1157           *=* | --config-cache | -C | -disable-* | --disable-* \
1158           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1159           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1160           | -with-* | --with-* | -without-* | --without-* | --x)
1161             case "$ac_configure_args0 " in
1162               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1163             esac
1164             ;;
1165           -* ) ac_must_keep_next=true ;;
1166         esac
1167       fi
1168       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1169       # Get rid of the leading space.
1170       ac_sep=" "
1171       ;;
1172     esac
1173   done
1174 done
1175 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1176 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1177
1178 # When interrupted or exit'd, cleanup temporary files, and complete
1179 # config.log.  We remove comments because anyway the quotes in there
1180 # would cause problems or look ugly.
1181 # WARNING: Be sure not to use single quotes in there, as some shells,
1182 # such as our DU 5.0 friend, will then `close' the trap.
1183 trap 'exit_status=$?
1184   # Save into config.log some information that might help in debugging.
1185   {
1186     echo
1187
1188     cat <<\_ASBOX
1189 ## ---------------- ##
1190 ## Cache variables. ##
1191 ## ---------------- ##
1192 _ASBOX
1193     echo
1194     # The following way of writing the cache mishandles newlines in values,
1195 {
1196   (set) 2>&1 |
1197     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1198     *ac_space=\ *)
1199       sed -n \
1200         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1201           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1202       ;;
1203     *)
1204       sed -n \
1205         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1206       ;;
1207     esac;
1208 }
1209     echo
1210
1211     cat <<\_ASBOX
1212 ## ----------------- ##
1213 ## Output variables. ##
1214 ## ----------------- ##
1215 _ASBOX
1216     echo
1217     for ac_var in $ac_subst_vars
1218     do
1219       eval ac_val=$`echo $ac_var`
1220       echo "$ac_var='"'"'$ac_val'"'"'"
1221     done | sort
1222     echo
1223
1224     if test -n "$ac_subst_files"; then
1225       cat <<\_ASBOX
1226 ## ------------- ##
1227 ## Output files. ##
1228 ## ------------- ##
1229 _ASBOX
1230       echo
1231       for ac_var in $ac_subst_files
1232       do
1233         eval ac_val=$`echo $ac_var`
1234         echo "$ac_var='"'"'$ac_val'"'"'"
1235       done | sort
1236       echo
1237     fi
1238
1239     if test -s confdefs.h; then
1240       cat <<\_ASBOX
1241 ## ----------- ##
1242 ## confdefs.h. ##
1243 ## ----------- ##
1244 _ASBOX
1245       echo
1246       sed "/^$/d" confdefs.h | sort
1247       echo
1248     fi
1249     test "$ac_signal" != 0 &&
1250       echo "$as_me: caught signal $ac_signal"
1251     echo "$as_me: exit $exit_status"
1252   } >&5
1253   rm -f core *.core &&
1254   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1255     exit $exit_status
1256      ' 0
1257 for ac_signal in 1 2 13 15; do
1258   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1259 done
1260 ac_signal=0
1261
1262 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1263 rm -rf conftest* confdefs.h
1264 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1265 echo >confdefs.h
1266
1267 # Predefined preprocessor variables.
1268
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_NAME "$PACKAGE_NAME"
1271 _ACEOF
1272
1273
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1276 _ACEOF
1277
1278
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1281 _ACEOF
1282
1283
1284 cat >>confdefs.h <<_ACEOF
1285 #define PACKAGE_STRING "$PACKAGE_STRING"
1286 _ACEOF
1287
1288
1289 cat >>confdefs.h <<_ACEOF
1290 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1291 _ACEOF
1292
1293
1294 # Let the site file select an alternate cache file if it wants to.
1295 # Prefer explicitly selected file to automatically selected ones.
1296 if test -z "$CONFIG_SITE"; then
1297   if test "x$prefix" != xNONE; then
1298     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1299   else
1300     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1301   fi
1302 fi
1303 for ac_site_file in $CONFIG_SITE; do
1304   if test -r "$ac_site_file"; then
1305     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1306 echo "$as_me: loading site script $ac_site_file" >&6;}
1307     sed 's/^/| /' "$ac_site_file" >&5
1308     . "$ac_site_file"
1309   fi
1310 done
1311
1312 if test -r "$cache_file"; then
1313   # Some versions of bash will fail to source /dev/null (special
1314   # files actually), so we avoid doing that.
1315   if test -f "$cache_file"; then
1316     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1317 echo "$as_me: loading cache $cache_file" >&6;}
1318     case $cache_file in
1319       [\\/]* | ?:[\\/]* ) . $cache_file;;
1320       *)                      . ./$cache_file;;
1321     esac
1322   fi
1323 else
1324   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1325 echo "$as_me: creating cache $cache_file" >&6;}
1326   >$cache_file
1327 fi
1328
1329 # Check that the precious variables saved in the cache have kept the same
1330 # value.
1331 ac_cache_corrupted=false
1332 for ac_var in `(set) 2>&1 |
1333                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1334   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1335   eval ac_new_set=\$ac_env_${ac_var}_set
1336   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1337   eval ac_new_val="\$ac_env_${ac_var}_value"
1338   case $ac_old_set,$ac_new_set in
1339     set,)
1340       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1341 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1342       ac_cache_corrupted=: ;;
1343     ,set)
1344       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1345 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1346       ac_cache_corrupted=: ;;
1347     ,);;
1348     *)
1349       if test "x$ac_old_val" != "x$ac_new_val"; then
1350         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1351 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1352         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1353 echo "$as_me:   former value:  $ac_old_val" >&2;}
1354         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1355 echo "$as_me:   current value: $ac_new_val" >&2;}
1356         ac_cache_corrupted=:
1357       fi;;
1358   esac
1359   # Pass precious variables to config.status.
1360   if test "$ac_new_set" = set; then
1361     case $ac_new_val in
1362     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1363       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1364     *) ac_arg=$ac_var=$ac_new_val ;;
1365     esac
1366     case " $ac_configure_args " in
1367       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1368       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1369     esac
1370   fi
1371 done
1372 if $ac_cache_corrupted; then
1373   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1374 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1375   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1376 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1377    { (exit 1); exit 1; }; }
1378 fi
1379
1380 ac_ext=c
1381 ac_cpp='$CPP $CPPFLAGS'
1382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404 BUILD_DIR=`pwd`
1405 cd ..
1406 TOP_DIR=`pwd`
1407 cd ${BUILD_DIR}
1408
1409
1410 ac_aux_dir=
1411 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1412   if test -f $ac_dir/install-sh; then
1413     ac_aux_dir=$ac_dir
1414     ac_install_sh="$ac_aux_dir/install-sh -c"
1415     break
1416   elif test -f $ac_dir/install.sh; then
1417     ac_aux_dir=$ac_dir
1418     ac_install_sh="$ac_aux_dir/install.sh -c"
1419     break
1420   elif test -f $ac_dir/shtool; then
1421     ac_aux_dir=$ac_dir
1422     ac_install_sh="$ac_aux_dir/shtool install -c"
1423     break
1424   fi
1425 done
1426 if test -z "$ac_aux_dir"; then
1427   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1428 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1429    { (exit 1); exit 1; }; }
1430 fi
1431 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1432 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1433 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1434
1435           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1436
1437
1438
1439
1440
1441 for ac_prog in true
1442 do
1443   # Extract the first word of "$ac_prog", so it can be a program name with args.
1444 set dummy $ac_prog; ac_word=$2
1445 echo "$as_me:$LINENO: checking for $ac_word" >&5
1446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1448   echo $ECHO_N "(cached) $ECHO_C" >&6
1449 else
1450   case $TRUEPRG in
1451   [\\/]* | ?:[\\/]*)
1452   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1453   ;;
1454   *)
1455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1456 for as_dir in $PATH
1457 do
1458   IFS=$as_save_IFS
1459   test -z "$as_dir" && as_dir=.
1460   for ac_exec_ext in '' $ac_executable_extensions; do
1461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1462     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464     break 2
1465   fi
1466 done
1467 done
1468
1469   ;;
1470 esac
1471 fi
1472 TRUEPRG=$ac_cv_path_TRUEPRG
1473
1474 if test -n "$TRUEPRG"; then
1475   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1476 echo "${ECHO_T}$TRUEPRG" >&6
1477 else
1478   echo "$as_me:$LINENO: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1480 fi
1481
1482   test -n "$TRUEPRG" && break
1483 done
1484 test -n "$TRUEPRG" || TRUEPRG=":"
1485
1486 for ac_prog in false
1487 do
1488   # Extract the first word of "$ac_prog", so it can be a program name with args.
1489 set dummy $ac_prog; ac_word=$2
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1493   echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495   case $FALSEPRG in
1496   [\\/]* | ?:[\\/]*)
1497   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1498   ;;
1499   *)
1500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501 for as_dir in $PATH
1502 do
1503   IFS=$as_save_IFS
1504   test -z "$as_dir" && as_dir=.
1505   for ac_exec_ext in '' $ac_executable_extensions; do
1506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1509     break 2
1510   fi
1511 done
1512 done
1513
1514   ;;
1515 esac
1516 fi
1517 FALSEPRG=$ac_cv_path_FALSEPRG
1518
1519 if test -n "$FALSEPRG"; then
1520   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1521 echo "${ECHO_T}$FALSEPRG" >&6
1522 else
1523   echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1525 fi
1526
1527   test -n "$FALSEPRG" && break
1528 done
1529 test -n "$FALSEPRG" || FALSEPRG=":"
1530
1531
1532
1533 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1534 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1535 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1536 echo "configuring for bacula $VERSION ($DATE)"
1537
1538
1539
1540 ac_ext=c
1541 ac_cpp='$CPP $CPPFLAGS'
1542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1545 if test -n "$ac_tool_prefix"; then
1546   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1547 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_CC+set}" = set; then
1551   echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553   if test -n "$CC"; then
1554   ac_cv_prog_CC="$CC" # Let the user override the test.
1555 else
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 for as_dir in $PATH
1558 do
1559   IFS=$as_save_IFS
1560   test -z "$as_dir" && as_dir=.
1561   for ac_exec_ext in '' $ac_executable_extensions; do
1562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565     break 2
1566   fi
1567 done
1568 done
1569
1570 fi
1571 fi
1572 CC=$ac_cv_prog_CC
1573 if test -n "$CC"; then
1574   echo "$as_me:$LINENO: result: $CC" >&5
1575 echo "${ECHO_T}$CC" >&6
1576 else
1577   echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1579 fi
1580
1581 fi
1582 if test -z "$ac_cv_prog_CC"; then
1583   ac_ct_CC=$CC
1584   # Extract the first word of "gcc", so it can be a program name with args.
1585 set dummy gcc; ac_word=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1589   echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591   if test -n "$ac_ct_CC"; then
1592   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1593 else
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1596 do
1597   IFS=$as_save_IFS
1598   test -z "$as_dir" && as_dir=.
1599   for ac_exec_ext in '' $ac_executable_extensions; do
1600   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601     ac_cv_prog_ac_ct_CC="gcc"
1602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603     break 2
1604   fi
1605 done
1606 done
1607
1608 fi
1609 fi
1610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1611 if test -n "$ac_ct_CC"; then
1612   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1613 echo "${ECHO_T}$ac_ct_CC" >&6
1614 else
1615   echo "$as_me:$LINENO: result: no" >&5
1616 echo "${ECHO_T}no" >&6
1617 fi
1618
1619   CC=$ac_ct_CC
1620 else
1621   CC="$ac_cv_prog_CC"
1622 fi
1623
1624 if test -z "$CC"; then
1625   if test -n "$ac_tool_prefix"; then
1626   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1627 set dummy ${ac_tool_prefix}cc; ac_word=$2
1628 echo "$as_me:$LINENO: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_CC+set}" = set; then
1631   echo $ECHO_N "(cached) $ECHO_C" >&6
1632 else
1633   if test -n "$CC"; then
1634   ac_cv_prog_CC="$CC" # Let the user override the test.
1635 else
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 for as_dir in $PATH
1638 do
1639   IFS=$as_save_IFS
1640   test -z "$as_dir" && as_dir=.
1641   for ac_exec_ext in '' $ac_executable_extensions; do
1642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643     ac_cv_prog_CC="${ac_tool_prefix}cc"
1644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645     break 2
1646   fi
1647 done
1648 done
1649
1650 fi
1651 fi
1652 CC=$ac_cv_prog_CC
1653 if test -n "$CC"; then
1654   echo "$as_me:$LINENO: result: $CC" >&5
1655 echo "${ECHO_T}$CC" >&6
1656 else
1657   echo "$as_me:$LINENO: result: no" >&5
1658 echo "${ECHO_T}no" >&6
1659 fi
1660
1661 fi
1662 if test -z "$ac_cv_prog_CC"; then
1663   ac_ct_CC=$CC
1664   # Extract the first word of "cc", so it can be a program name with args.
1665 set dummy cc; ac_word=$2
1666 echo "$as_me:$LINENO: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1669   echo $ECHO_N "(cached) $ECHO_C" >&6
1670 else
1671   if test -n "$ac_ct_CC"; then
1672   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1673 else
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 for as_dir in $PATH
1676 do
1677   IFS=$as_save_IFS
1678   test -z "$as_dir" && as_dir=.
1679   for ac_exec_ext in '' $ac_executable_extensions; do
1680   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681     ac_cv_prog_ac_ct_CC="cc"
1682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683     break 2
1684   fi
1685 done
1686 done
1687
1688 fi
1689 fi
1690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1691 if test -n "$ac_ct_CC"; then
1692   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1693 echo "${ECHO_T}$ac_ct_CC" >&6
1694 else
1695   echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1697 fi
1698
1699   CC=$ac_ct_CC
1700 else
1701   CC="$ac_cv_prog_CC"
1702 fi
1703
1704 fi
1705 if test -z "$CC"; then
1706   # Extract the first word of "cc", so it can be a program name with args.
1707 set dummy cc; ac_word=$2
1708 echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_CC+set}" = set; then
1711   echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713   if test -n "$CC"; then
1714   ac_cv_prog_CC="$CC" # Let the user override the test.
1715 else
1716   ac_prog_rejected=no
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 for as_dir in $PATH
1719 do
1720   IFS=$as_save_IFS
1721   test -z "$as_dir" && as_dir=.
1722   for ac_exec_ext in '' $ac_executable_extensions; do
1723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1725        ac_prog_rejected=yes
1726        continue
1727      fi
1728     ac_cv_prog_CC="cc"
1729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730     break 2
1731   fi
1732 done
1733 done
1734
1735 if test $ac_prog_rejected = yes; then
1736   # We found a bogon in the path, so make sure we never use it.
1737   set dummy $ac_cv_prog_CC
1738   shift
1739   if test $# != 0; then
1740     # We chose a different compiler from the bogus one.
1741     # However, it has the same basename, so the bogon will be chosen
1742     # first if we set CC to just the basename; use the full file name.
1743     shift
1744     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1745   fi
1746 fi
1747 fi
1748 fi
1749 CC=$ac_cv_prog_CC
1750 if test -n "$CC"; then
1751   echo "$as_me:$LINENO: result: $CC" >&5
1752 echo "${ECHO_T}$CC" >&6
1753 else
1754   echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1756 fi
1757
1758 fi
1759 if test -z "$CC"; then
1760   if test -n "$ac_tool_prefix"; then
1761   for ac_prog in cl
1762   do
1763     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_CC+set}" = set; then
1768   echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770   if test -n "$CC"; then
1771   ac_cv_prog_CC="$CC" # Let the user override the test.
1772 else
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 for as_dir in $PATH
1775 do
1776   IFS=$as_save_IFS
1777   test -z "$as_dir" && as_dir=.
1778   for ac_exec_ext in '' $ac_executable_extensions; do
1779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782     break 2
1783   fi
1784 done
1785 done
1786
1787 fi
1788 fi
1789 CC=$ac_cv_prog_CC
1790 if test -n "$CC"; then
1791   echo "$as_me:$LINENO: result: $CC" >&5
1792 echo "${ECHO_T}$CC" >&6
1793 else
1794   echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796 fi
1797
1798     test -n "$CC" && break
1799   done
1800 fi
1801 if test -z "$CC"; then
1802   ac_ct_CC=$CC
1803   for ac_prog in cl
1804 do
1805   # Extract the first word of "$ac_prog", so it can be a program name with args.
1806 set dummy $ac_prog; ac_word=$2
1807 echo "$as_me:$LINENO: checking for $ac_word" >&5
1808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1810   echo $ECHO_N "(cached) $ECHO_C" >&6
1811 else
1812   if test -n "$ac_ct_CC"; then
1813   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1814 else
1815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 for as_dir in $PATH
1817 do
1818   IFS=$as_save_IFS
1819   test -z "$as_dir" && as_dir=.
1820   for ac_exec_ext in '' $ac_executable_extensions; do
1821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822     ac_cv_prog_ac_ct_CC="$ac_prog"
1823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824     break 2
1825   fi
1826 done
1827 done
1828
1829 fi
1830 fi
1831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1832 if test -n "$ac_ct_CC"; then
1833   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1834 echo "${ECHO_T}$ac_ct_CC" >&6
1835 else
1836   echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6
1838 fi
1839
1840   test -n "$ac_ct_CC" && break
1841 done
1842
1843   CC=$ac_ct_CC
1844 fi
1845
1846 fi
1847
1848
1849 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1850 See \`config.log' for more details." >&5
1851 echo "$as_me: error: no acceptable C compiler found in \$PATH
1852 See \`config.log' for more details." >&2;}
1853    { (exit 1); exit 1; }; }
1854
1855 # Provide some information about the compiler.
1856 echo "$as_me:$LINENO:" \
1857      "checking for C compiler version" >&5
1858 ac_compiler=`set X $ac_compile; echo $2`
1859 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1860   (eval $ac_compiler --version </dev/null >&5) 2>&5
1861   ac_status=$?
1862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863   (exit $ac_status); }
1864 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1865   (eval $ac_compiler -v </dev/null >&5) 2>&5
1866   ac_status=$?
1867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868   (exit $ac_status); }
1869 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1870   (eval $ac_compiler -V </dev/null >&5) 2>&5
1871   ac_status=$?
1872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873   (exit $ac_status); }
1874
1875 cat >conftest.$ac_ext <<_ACEOF
1876 /* confdefs.h.  */
1877 _ACEOF
1878 cat confdefs.h >>conftest.$ac_ext
1879 cat >>conftest.$ac_ext <<_ACEOF
1880 /* end confdefs.h.  */
1881
1882 int
1883 main ()
1884 {
1885
1886   ;
1887   return 0;
1888 }
1889 _ACEOF
1890 ac_clean_files_save=$ac_clean_files
1891 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1892 # Try to create an executable without -o first, disregard a.out.
1893 # It will help us diagnose broken compilers, and finding out an intuition
1894 # of exeext.
1895 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1896 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1897 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1898 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1899   (eval $ac_link_default) 2>&5
1900   ac_status=$?
1901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902   (exit $ac_status); }; then
1903   # Find the output, starting from the most likely.  This scheme is
1904 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1905 # resort.
1906
1907 # Be careful to initialize this variable, since it used to be cached.
1908 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1909 ac_cv_exeext=
1910 # b.out is created by i960 compilers.
1911 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1912 do
1913   test -f "$ac_file" || continue
1914   case $ac_file in
1915     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1916         ;;
1917     conftest.$ac_ext )
1918         # This is the source file.
1919         ;;
1920     [ab].out )
1921         # We found the default executable, but exeext='' is most
1922         # certainly right.
1923         break;;
1924     *.* )
1925         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1926         # FIXME: I believe we export ac_cv_exeext for Libtool,
1927         # but it would be cool to find out if it's true.  Does anybody
1928         # maintain Libtool? --akim.
1929         export ac_cv_exeext
1930         break;;
1931     * )
1932         break;;
1933   esac
1934 done
1935 else
1936   echo "$as_me: failed program was:" >&5
1937 sed 's/^/| /' conftest.$ac_ext >&5
1938
1939 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: C compiler cannot create executables
1942 See \`config.log' for more details." >&2;}
1943    { (exit 77); exit 77; }; }
1944 fi
1945
1946 ac_exeext=$ac_cv_exeext
1947 echo "$as_me:$LINENO: result: $ac_file" >&5
1948 echo "${ECHO_T}$ac_file" >&6
1949
1950 # Check the compiler produces executables we can run.  If not, either
1951 # the compiler is broken, or we cross compile.
1952 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1953 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1954 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1955 # If not cross compiling, check that we can run a simple program.
1956 if test "$cross_compiling" != yes; then
1957   if { ac_try='./$ac_file'
1958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1959   (eval $ac_try) 2>&5
1960   ac_status=$?
1961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962   (exit $ac_status); }; }; then
1963     cross_compiling=no
1964   else
1965     if test "$cross_compiling" = maybe; then
1966         cross_compiling=yes
1967     else
1968         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1969 If you meant to cross compile, use \`--host'.
1970 See \`config.log' for more details." >&5
1971 echo "$as_me: error: cannot run C compiled programs.
1972 If you meant to cross compile, use \`--host'.
1973 See \`config.log' for more details." >&2;}
1974    { (exit 1); exit 1; }; }
1975     fi
1976   fi
1977 fi
1978 echo "$as_me:$LINENO: result: yes" >&5
1979 echo "${ECHO_T}yes" >&6
1980
1981 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1982 ac_clean_files=$ac_clean_files_save
1983 # Check the compiler produces executables we can run.  If not, either
1984 # the compiler is broken, or we cross compile.
1985 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1986 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1987 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1988 echo "${ECHO_T}$cross_compiling" >&6
1989
1990 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1991 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1993   (eval $ac_link) 2>&5
1994   ac_status=$?
1995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996   (exit $ac_status); }; then
1997   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1998 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1999 # work properly (i.e., refer to `conftest.exe'), while it won't with
2000 # `rm'.
2001 for ac_file in conftest.exe conftest conftest.*; do
2002   test -f "$ac_file" || continue
2003   case $ac_file in
2004     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2005     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2006           export ac_cv_exeext
2007           break;;
2008     * ) break;;
2009   esac
2010 done
2011 else
2012   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2013 See \`config.log' for more details." >&5
2014 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2015 See \`config.log' for more details." >&2;}
2016    { (exit 1); exit 1; }; }
2017 fi
2018
2019 rm -f conftest$ac_cv_exeext
2020 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2021 echo "${ECHO_T}$ac_cv_exeext" >&6
2022
2023 rm -f conftest.$ac_ext
2024 EXEEXT=$ac_cv_exeext
2025 ac_exeext=$EXEEXT
2026 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2027 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2028 if test "${ac_cv_objext+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   cat >conftest.$ac_ext <<_ACEOF
2032 /* confdefs.h.  */
2033 _ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h.  */
2037
2038 int
2039 main ()
2040 {
2041
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 rm -f conftest.o conftest.obj
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048   (eval $ac_compile) 2>&5
2049   ac_status=$?
2050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051   (exit $ac_status); }; then
2052   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2053   case $ac_file in
2054     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2055     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2056        break;;
2057   esac
2058 done
2059 else
2060   echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2062
2063 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2064 See \`config.log' for more details." >&5
2065 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2066 See \`config.log' for more details." >&2;}
2067    { (exit 1); exit 1; }; }
2068 fi
2069
2070 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2071 fi
2072 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2073 echo "${ECHO_T}$ac_cv_objext" >&6
2074 OBJEXT=$ac_cv_objext
2075 ac_objext=$OBJEXT
2076 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2077 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2078 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2079   echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081   cat >conftest.$ac_ext <<_ACEOF
2082 /* confdefs.h.  */
2083 _ACEOF
2084 cat confdefs.h >>conftest.$ac_ext
2085 cat >>conftest.$ac_ext <<_ACEOF
2086 /* end confdefs.h.  */
2087
2088 int
2089 main ()
2090 {
2091 #ifndef __GNUC__
2092        choke me
2093 #endif
2094
2095   ;
2096   return 0;
2097 }
2098 _ACEOF
2099 rm -f conftest.$ac_objext
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101   (eval $ac_compile) 2>conftest.er1
2102   ac_status=$?
2103   grep -v '^ *+' conftest.er1 >conftest.err
2104   rm -f conftest.er1
2105   cat conftest.err >&5
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); } &&
2108          { ac_try='test -z "$ac_c_werror_flag"
2109                          || test ! -s conftest.err'
2110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111   (eval $ac_try) 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }; } &&
2115          { ac_try='test -s conftest.$ac_objext'
2116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117   (eval $ac_try) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }; }; then
2121   ac_compiler_gnu=yes
2122 else
2123   echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126 ac_compiler_gnu=no
2127 fi
2128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2129 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2130
2131 fi
2132 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2133 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2134 GCC=`test $ac_compiler_gnu = yes && echo yes`
2135 ac_test_CFLAGS=${CFLAGS+set}
2136 ac_save_CFLAGS=$CFLAGS
2137 CFLAGS="-g"
2138 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2139 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2140 if test "${ac_cv_prog_cc_g+set}" = set; then
2141   echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143   cat >conftest.$ac_ext <<_ACEOF
2144 /* confdefs.h.  */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h.  */
2149
2150 int
2151 main ()
2152 {
2153
2154   ;
2155   return 0;
2156 }
2157 _ACEOF
2158 rm -f conftest.$ac_objext
2159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2160   (eval $ac_compile) 2>conftest.er1
2161   ac_status=$?
2162   grep -v '^ *+' conftest.er1 >conftest.err
2163   rm -f conftest.er1
2164   cat conftest.err >&5
2165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166   (exit $ac_status); } &&
2167          { ac_try='test -z "$ac_c_werror_flag"
2168                          || test ! -s conftest.err'
2169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170   (eval $ac_try) 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }; } &&
2174          { ac_try='test -s conftest.$ac_objext'
2175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176   (eval $ac_try) 2>&5
2177   ac_status=$?
2178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179   (exit $ac_status); }; }; then
2180   ac_cv_prog_cc_g=yes
2181 else
2182   echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2184
2185 ac_cv_prog_cc_g=no
2186 fi
2187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2188 fi
2189 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2190 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2191 if test "$ac_test_CFLAGS" = set; then
2192   CFLAGS=$ac_save_CFLAGS
2193 elif test $ac_cv_prog_cc_g = yes; then
2194   if test "$GCC" = yes; then
2195     CFLAGS="-g -O2"
2196   else
2197     CFLAGS="-g"
2198   fi
2199 else
2200   if test "$GCC" = yes; then
2201     CFLAGS="-O2"
2202   else
2203     CFLAGS=
2204   fi
2205 fi
2206 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2207 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2208 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2209   echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211   ac_cv_prog_cc_stdc=no
2212 ac_save_CC=$CC
2213 cat >conftest.$ac_ext <<_ACEOF
2214 /* confdefs.h.  */
2215 _ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h.  */
2219 #include <stdarg.h>
2220 #include <stdio.h>
2221 #include <sys/types.h>
2222 #include <sys/stat.h>
2223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2224 struct buf { int x; };
2225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2226 static char *e (p, i)
2227      char **p;
2228      int i;
2229 {
2230   return p[i];
2231 }
2232 static char *f (char * (*g) (char **, int), char **p, ...)
2233 {
2234   char *s;
2235   va_list v;
2236   va_start (v,p);
2237   s = g (p, va_arg (v,int));
2238   va_end (v);
2239   return s;
2240 }
2241
2242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2243    function prototypes and stuff, but not '\xHH' hex character constants.
2244    These don't provoke an error unfortunately, instead are silently treated
2245    as 'x'.  The following induces an error, until -std1 is added to get
2246    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2247    array size at least.  It's necessary to write '\x00'==0 to get something
2248    that's true only with -std1.  */
2249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2250
2251 int test (int i, double x);
2252 struct s1 {int (*f) (int a);};
2253 struct s2 {int (*f) (double a);};
2254 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2255 int argc;
2256 char **argv;
2257 int
2258 main ()
2259 {
2260 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 # Don't try gcc -ansi; that turns off useful extensions and
2266 # breaks some systems' header files.
2267 # AIX                   -qlanglvl=ansi
2268 # Ultrix and OSF/1      -std1
2269 # HP-UX 10.20 and later -Ae
2270 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2271 # SVR4                  -Xc -D__EXTENSIONS__
2272 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2273 do
2274   CC="$ac_save_CC $ac_arg"
2275   rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277   (eval $ac_compile) 2>conftest.er1
2278   ac_status=$?
2279   grep -v '^ *+' conftest.er1 >conftest.err
2280   rm -f conftest.er1
2281   cat conftest.err >&5
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); } &&
2284          { ac_try='test -z "$ac_c_werror_flag"
2285                          || test ! -s conftest.err'
2286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287   (eval $ac_try) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }; } &&
2291          { ac_try='test -s conftest.$ac_objext'
2292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293   (eval $ac_try) 2>&5
2294   ac_status=$?
2295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296   (exit $ac_status); }; }; then
2297   ac_cv_prog_cc_stdc=$ac_arg
2298 break
2299 else
2300   echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2302
2303 fi
2304 rm -f conftest.err conftest.$ac_objext
2305 done
2306 rm -f conftest.$ac_ext conftest.$ac_objext
2307 CC=$ac_save_CC
2308
2309 fi
2310
2311 case "x$ac_cv_prog_cc_stdc" in
2312   x|xno)
2313     echo "$as_me:$LINENO: result: none needed" >&5
2314 echo "${ECHO_T}none needed" >&6 ;;
2315   *)
2316     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2317 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2318     CC="$CC $ac_cv_prog_cc_stdc" ;;
2319 esac
2320
2321 # Some people use a C++ compiler to compile C.  Since we use `exit',
2322 # in C++ we need to declare it.  In case someone uses the same compiler
2323 # for both compiling C and C++ we need to have the C++ compiler decide
2324 # the declaration of exit, since it's the most demanding environment.
2325 cat >conftest.$ac_ext <<_ACEOF
2326 #ifndef __cplusplus
2327   choke me
2328 #endif
2329 _ACEOF
2330 rm -f conftest.$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332   (eval $ac_compile) 2>conftest.er1
2333   ac_status=$?
2334   grep -v '^ *+' conftest.er1 >conftest.err
2335   rm -f conftest.er1
2336   cat conftest.err >&5
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); } &&
2339          { ac_try='test -z "$ac_c_werror_flag"
2340                          || test ! -s conftest.err'
2341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342   (eval $ac_try) 2>&5
2343   ac_status=$?
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); }; } &&
2346          { ac_try='test -s conftest.$ac_objext'
2347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348   (eval $ac_try) 2>&5
2349   ac_status=$?
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); }; }; then
2352   for ac_declaration in \
2353    '' \
2354    'extern "C" void std::exit (int) throw (); using std::exit;' \
2355    'extern "C" void std::exit (int); using std::exit;' \
2356    'extern "C" void exit (int) throw ();' \
2357    'extern "C" void exit (int);' \
2358    'void exit (int);'
2359 do
2360   cat >conftest.$ac_ext <<_ACEOF
2361 /* confdefs.h.  */
2362 _ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h.  */
2366 $ac_declaration
2367 #include <stdlib.h>
2368 int
2369 main ()
2370 {
2371 exit (42);
2372   ;
2373   return 0;
2374 }
2375 _ACEOF
2376 rm -f conftest.$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378   (eval $ac_compile) 2>conftest.er1
2379   ac_status=$?
2380   grep -v '^ *+' conftest.er1 >conftest.err
2381   rm -f conftest.er1
2382   cat conftest.err >&5
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); } &&
2385          { ac_try='test -z "$ac_c_werror_flag"
2386                          || test ! -s conftest.err'
2387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388   (eval $ac_try) 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); }; } &&
2392          { ac_try='test -s conftest.$ac_objext'
2393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394   (eval $ac_try) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; }; then
2398   :
2399 else
2400   echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 continue
2404 fi
2405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2406   cat >conftest.$ac_ext <<_ACEOF
2407 /* confdefs.h.  */
2408 _ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h.  */
2412 $ac_declaration
2413 int
2414 main ()
2415 {
2416 exit (42);
2417   ;
2418   return 0;
2419 }
2420 _ACEOF
2421 rm -f conftest.$ac_objext
2422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423   (eval $ac_compile) 2>conftest.er1
2424   ac_status=$?
2425   grep -v '^ *+' conftest.er1 >conftest.err
2426   rm -f conftest.er1
2427   cat conftest.err >&5
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); } &&
2430          { ac_try='test -z "$ac_c_werror_flag"
2431                          || test ! -s conftest.err'
2432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433   (eval $ac_try) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }; } &&
2437          { ac_try='test -s conftest.$ac_objext'
2438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439   (eval $ac_try) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; }; then
2443   break
2444 else
2445   echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 fi
2449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2450 done
2451 rm -f conftest*
2452 if test -n "$ac_declaration"; then
2453   echo '#ifdef __cplusplus' >>confdefs.h
2454   echo $ac_declaration      >>confdefs.h
2455   echo '#endif'             >>confdefs.h
2456 fi
2457
2458 else
2459   echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2461
2462 fi
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2464 ac_ext=c
2465 ac_cpp='$CPP $CPPFLAGS'
2466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469
2470 ac_ext=cc
2471 ac_cpp='$CXXCPP $CPPFLAGS'
2472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2475 if test -n "$ac_tool_prefix"; then
2476   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2477   do
2478     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2480 echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2482 if test "${ac_cv_prog_CXX+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   if test -n "$CXX"; then
2486   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493   for ac_exec_ext in '' $ac_executable_extensions; do
2494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497     break 2
2498   fi
2499 done
2500 done
2501
2502 fi
2503 fi
2504 CXX=$ac_cv_prog_CXX
2505 if test -n "$CXX"; then
2506   echo "$as_me:$LINENO: result: $CXX" >&5
2507 echo "${ECHO_T}$CXX" >&6
2508 else
2509   echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6
2511 fi
2512
2513     test -n "$CXX" && break
2514   done
2515 fi
2516 if test -z "$CXX"; then
2517   ac_ct_CXX=$CXX
2518   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2519 do
2520   # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   if test -n "$ac_ct_CXX"; then
2528   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535   for ac_exec_ext in '' $ac_executable_extensions; do
2536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537     ac_cv_prog_ac_ct_CXX="$ac_prog"
2538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542 done
2543
2544 fi
2545 fi
2546 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2547 if test -n "$ac_ct_CXX"; then
2548   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2549 echo "${ECHO_T}$ac_ct_CXX" >&6
2550 else
2551   echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2553 fi
2554
2555   test -n "$ac_ct_CXX" && break
2556 done
2557 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2558
2559   CXX=$ac_ct_CXX
2560 fi
2561
2562
2563 # Provide some information about the compiler.
2564 echo "$as_me:$LINENO:" \
2565      "checking for C++ compiler version" >&5
2566 ac_compiler=`set X $ac_compile; echo $2`
2567 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2568   (eval $ac_compiler --version </dev/null >&5) 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }
2572 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2573   (eval $ac_compiler -v </dev/null >&5) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }
2577 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2578   (eval $ac_compiler -V </dev/null >&5) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }
2582
2583 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2584 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2585 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   cat >conftest.$ac_ext <<_ACEOF
2589 /* confdefs.h.  */
2590 _ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h.  */
2594
2595 int
2596 main ()
2597 {
2598 #ifndef __GNUC__
2599        choke me
2600 #endif
2601
2602   ;
2603   return 0;
2604 }
2605 _ACEOF
2606 rm -f conftest.$ac_objext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608   (eval $ac_compile) 2>conftest.er1
2609   ac_status=$?
2610   grep -v '^ *+' conftest.er1 >conftest.err
2611   rm -f conftest.er1
2612   cat conftest.err >&5
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); } &&
2615          { ac_try='test -z "$ac_cxx_werror_flag"
2616                          || test ! -s conftest.err'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; } &&
2622          { ac_try='test -s conftest.$ac_objext'
2623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624   (eval $ac_try) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }; }; then
2628   ac_compiler_gnu=yes
2629 else
2630   echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2632
2633 ac_compiler_gnu=no
2634 fi
2635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2636 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2637
2638 fi
2639 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2640 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2641 GXX=`test $ac_compiler_gnu = yes && echo yes`
2642 ac_test_CXXFLAGS=${CXXFLAGS+set}
2643 ac_save_CXXFLAGS=$CXXFLAGS
2644 CXXFLAGS="-g"
2645 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2646 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2647 if test "${ac_cv_prog_cxx_g+set}" = set; then
2648   echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650   cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h.  */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h.  */
2656
2657 int
2658 main ()
2659 {
2660
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667   (eval $ac_compile) 2>conftest.er1
2668   ac_status=$?
2669   grep -v '^ *+' conftest.er1 >conftest.err
2670   rm -f conftest.er1
2671   cat conftest.err >&5
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); } &&
2674          { ac_try='test -z "$ac_cxx_werror_flag"
2675                          || test ! -s conftest.err'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; } &&
2681          { ac_try='test -s conftest.$ac_objext'
2682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683   (eval $ac_try) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }; }; then
2687   ac_cv_prog_cxx_g=yes
2688 else
2689   echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2691
2692 ac_cv_prog_cxx_g=no
2693 fi
2694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695 fi
2696 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2697 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2698 if test "$ac_test_CXXFLAGS" = set; then
2699   CXXFLAGS=$ac_save_CXXFLAGS
2700 elif test $ac_cv_prog_cxx_g = yes; then
2701   if test "$GXX" = yes; then
2702     CXXFLAGS="-g -O2"
2703   else
2704     CXXFLAGS="-g"
2705   fi
2706 else
2707   if test "$GXX" = yes; then
2708     CXXFLAGS="-O2"
2709   else
2710     CXXFLAGS=
2711   fi
2712 fi
2713 for ac_declaration in \
2714    '' \
2715    'extern "C" void std::exit (int) throw (); using std::exit;' \
2716    'extern "C" void std::exit (int); using std::exit;' \
2717    'extern "C" void exit (int) throw ();' \
2718    'extern "C" void exit (int);' \
2719    'void exit (int);'
2720 do
2721   cat >conftest.$ac_ext <<_ACEOF
2722 /* confdefs.h.  */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h.  */
2727 $ac_declaration
2728 #include <stdlib.h>
2729 int
2730 main ()
2731 {
2732 exit (42);
2733   ;
2734   return 0;
2735 }
2736 _ACEOF
2737 rm -f conftest.$ac_objext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739   (eval $ac_compile) 2>conftest.er1
2740   ac_status=$?
2741   grep -v '^ *+' conftest.er1 >conftest.err
2742   rm -f conftest.er1
2743   cat conftest.err >&5
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); } &&
2746          { ac_try='test -z "$ac_cxx_werror_flag"
2747                          || test ! -s conftest.err'
2748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749   (eval $ac_try) 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; } &&
2753          { ac_try='test -s conftest.$ac_objext'
2754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755   (eval $ac_try) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; }; then
2759   :
2760 else
2761   echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2763
2764 continue
2765 fi
2766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2767   cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h.  */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h.  */
2773 $ac_declaration
2774 int
2775 main ()
2776 {
2777 exit (42);
2778   ;
2779   return 0;
2780 }
2781 _ACEOF
2782 rm -f conftest.$ac_objext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784   (eval $ac_compile) 2>conftest.er1
2785   ac_status=$?
2786   grep -v '^ *+' conftest.er1 >conftest.err
2787   rm -f conftest.er1
2788   cat conftest.err >&5
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); } &&
2791          { ac_try='test -z "$ac_cxx_werror_flag"
2792                          || test ! -s conftest.err'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; } &&
2798          { ac_try='test -s conftest.$ac_objext'
2799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; }; then
2804   break
2805 else
2806   echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809 fi
2810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811 done
2812 rm -f conftest*
2813 if test -n "$ac_declaration"; then
2814   echo '#ifdef __cplusplus' >>confdefs.h
2815   echo $ac_declaration      >>confdefs.h
2816   echo '#endif'             >>confdefs.h
2817 fi
2818
2819 ac_ext=c
2820 ac_cpp='$CPP $CPPFLAGS'
2821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2824
2825 if test "x$CC" != xcc; then
2826   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2827 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2828 else
2829   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2830 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2831 fi
2832 set dummy $CC; ac_cc=`echo $2 |
2833                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2834 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2835   echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837   cat >conftest.$ac_ext <<_ACEOF
2838 /* confdefs.h.  */
2839 _ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h.  */
2843
2844 int
2845 main ()
2846 {
2847
2848   ;
2849   return 0;
2850 }
2851 _ACEOF
2852 # Make sure it works both with $CC and with simple cc.
2853 # We do the test twice because some compilers refuse to overwrite an
2854 # existing .o file with -o, though they will create one.
2855 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2856 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857   (eval $ac_try) 2>&5
2858   ac_status=$?
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); } &&
2861    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862   (eval $ac_try) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); };
2866 then
2867   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2868   if test "x$CC" != xcc; then
2869     # Test first that cc exists at all.
2870     if { ac_try='cc -c conftest.$ac_ext >&5'
2871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); }; }; then
2876       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2877       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878   (eval $ac_try) 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); } &&
2882          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883   (eval $ac_try) 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); };
2887       then
2888         # cc works too.
2889         :
2890       else
2891         # cc exists but doesn't like -o.
2892         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2893       fi
2894     fi
2895   fi
2896 else
2897   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2898 fi
2899 rm -f conftest*
2900
2901 fi
2902 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2903   echo "$as_me:$LINENO: result: yes" >&5
2904 echo "${ECHO_T}yes" >&6
2905 else
2906   echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2908
2909 cat >>confdefs.h <<\_ACEOF
2910 #define NO_MINUS_C_MINUS_O 1
2911 _ACEOF
2912
2913 fi
2914
2915 ac_ext=c
2916 ac_cpp='$CPP $CPPFLAGS'
2917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2921 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2922 # On Suns, sometimes $CPP names a directory.
2923 if test -n "$CPP" && test -d "$CPP"; then
2924   CPP=
2925 fi
2926 if test -z "$CPP"; then
2927   if test "${ac_cv_prog_CPP+set}" = set; then
2928   echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930       # Double quotes because CPP needs to be expanded
2931     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2932     do
2933       ac_preproc_ok=false
2934 for ac_c_preproc_warn_flag in '' yes
2935 do
2936   # Use a header file that comes with gcc, so configuring glibc
2937   # with a fresh cross-compiler works.
2938   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2939   # <limits.h> exists even on freestanding compilers.
2940   # On the NeXT, cc -E runs the code through the compiler's parser,
2941   # not just through cpp. "Syntax error" is here to catch this case.
2942   cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h.  */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h.  */
2948 #ifdef __STDC__
2949 # include <limits.h>
2950 #else
2951 # include <assert.h>
2952 #endif
2953                      Syntax error
2954 _ACEOF
2955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2957   ac_status=$?
2958   grep -v '^ *+' conftest.er1 >conftest.err
2959   rm -f conftest.er1
2960   cat conftest.err >&5
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); } >/dev/null; then
2963   if test -s conftest.err; then
2964     ac_cpp_err=$ac_c_preproc_warn_flag
2965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2966   else
2967     ac_cpp_err=
2968   fi
2969 else
2970   ac_cpp_err=yes
2971 fi
2972 if test -z "$ac_cpp_err"; then
2973   :
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978   # Broken: fails on valid input.
2979 continue
2980 fi
2981 rm -f conftest.err conftest.$ac_ext
2982
2983   # OK, works on sane cases.  Now check whether non-existent headers
2984   # can be detected and how.
2985   cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h.  */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h.  */
2991 #include <ac_nonexistent.h>
2992 _ACEOF
2993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2995   ac_status=$?
2996   grep -v '^ *+' conftest.er1 >conftest.err
2997   rm -f conftest.er1
2998   cat conftest.err >&5
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); } >/dev/null; then
3001   if test -s conftest.err; then
3002     ac_cpp_err=$ac_c_preproc_warn_flag
3003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3004   else
3005     ac_cpp_err=
3006   fi
3007 else
3008   ac_cpp_err=yes
3009 fi
3010 if test -z "$ac_cpp_err"; then
3011   # Broken: success on invalid input.
3012 continue
3013 else
3014   echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017   # Passes both tests.
3018 ac_preproc_ok=:
3019 break
3020 fi
3021 rm -f conftest.err conftest.$ac_ext
3022
3023 done
3024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3025 rm -f conftest.err conftest.$ac_ext
3026 if $ac_preproc_ok; then
3027   break
3028 fi
3029
3030     done
3031     ac_cv_prog_CPP=$CPP
3032
3033 fi
3034   CPP=$ac_cv_prog_CPP
3035 else
3036   ac_cv_prog_CPP=$CPP
3037 fi
3038 echo "$as_me:$LINENO: result: $CPP" >&5
3039 echo "${ECHO_T}$CPP" >&6
3040 ac_preproc_ok=false
3041 for ac_c_preproc_warn_flag in '' yes
3042 do
3043   # Use a header file that comes with gcc, so configuring glibc
3044   # with a fresh cross-compiler works.
3045   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3046   # <limits.h> exists even on freestanding compilers.
3047   # On the NeXT, cc -E runs the code through the compiler's parser,
3048   # not just through cpp. "Syntax error" is here to catch this case.
3049   cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055 #ifdef __STDC__
3056 # include <limits.h>
3057 #else
3058 # include <assert.h>
3059 #endif
3060                      Syntax error
3061 _ACEOF
3062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3064   ac_status=$?
3065   grep -v '^ *+' conftest.er1 >conftest.err
3066   rm -f conftest.er1
3067   cat conftest.err >&5
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } >/dev/null; then
3070   if test -s conftest.err; then
3071     ac_cpp_err=$ac_c_preproc_warn_flag
3072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3073   else
3074     ac_cpp_err=
3075   fi
3076 else
3077   ac_cpp_err=yes
3078 fi
3079 if test -z "$ac_cpp_err"; then
3080   :
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085   # Broken: fails on valid input.
3086 continue
3087 fi
3088 rm -f conftest.err conftest.$ac_ext
3089
3090   # OK, works on sane cases.  Now check whether non-existent headers
3091   # can be detected and how.
3092   cat >conftest.$ac_ext <<_ACEOF
3093 /* confdefs.h.  */
3094 _ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h.  */
3098 #include <ac_nonexistent.h>
3099 _ACEOF
3100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } >/dev/null; then
3108   if test -s conftest.err; then
3109     ac_cpp_err=$ac_c_preproc_warn_flag
3110     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3111   else
3112     ac_cpp_err=
3113   fi
3114 else
3115   ac_cpp_err=yes
3116 fi
3117 if test -z "$ac_cpp_err"; then
3118   # Broken: success on invalid input.
3119 continue
3120 else
3121   echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124   # Passes both tests.
3125 ac_preproc_ok=:
3126 break
3127 fi
3128 rm -f conftest.err conftest.$ac_ext
3129
3130 done
3131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3132 rm -f conftest.err conftest.$ac_ext
3133 if $ac_preproc_ok; then
3134   :
3135 else
3136   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3137 See \`config.log' for more details." >&5
3138 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3139 See \`config.log' for more details." >&2;}
3140    { (exit 1); exit 1; }; }
3141 fi
3142
3143 ac_ext=c
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148
3149
3150 echo "$as_me:$LINENO: checking for egrep" >&5
3151 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3152 if test "${ac_cv_prog_egrep+set}" = set; then
3153   echo $ECHO_N "(cached) $ECHO_C" >&6
3154 else
3155   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3156     then ac_cv_prog_egrep='grep -E'
3157     else ac_cv_prog_egrep='egrep'
3158     fi
3159 fi
3160 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3161 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3162  EGREP=$ac_cv_prog_egrep
3163
3164
3165 if test $ac_cv_c_compiler_gnu = yes; then
3166     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3167 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3168 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3169   echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171     ac_pattern="Autoconf.*'x'"
3172   cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h.  */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h.  */
3178 #include <sgtty.h>
3179 Autoconf TIOCGETP
3180 _ACEOF
3181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3182   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3183   ac_cv_prog_gcc_traditional=yes
3184 else
3185   ac_cv_prog_gcc_traditional=no
3186 fi
3187 rm -f conftest*
3188
3189
3190   if test $ac_cv_prog_gcc_traditional = no; then
3191     cat >conftest.$ac_ext <<_ACEOF
3192 /* confdefs.h.  */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h.  */
3197 #include <termio.h>
3198 Autoconf TCGETA
3199 _ACEOF
3200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3201   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3202   ac_cv_prog_gcc_traditional=yes
3203 fi
3204 rm -f conftest*
3205
3206   fi
3207 fi
3208 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3209 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3210   if test $ac_cv_prog_gcc_traditional = yes; then
3211     CC="$CC -traditional"
3212   fi
3213 fi
3214
3215 BASECC=`basename $CC`
3216 have_gcc=no
3217 if test "x$BASECC" = xgcc; then
3218    cat >>confdefs.h <<\_ACEOF
3219 #define HAVE_GCC 1
3220 _ACEOF
3221
3222    have_gcc=yes
3223 fi
3224 # Extract the first word of "$CXX", so it can be a program name with args.
3225 set dummy $CXX; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_path_CXX+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231   case $CXX in
3232   [\\/]* | ?:[\\/]*)
3233   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3234   ;;
3235   *)
3236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3238 do
3239   IFS=$as_save_IFS
3240   test -z "$as_dir" && as_dir=.
3241   for ac_exec_ext in '' $ac_executable_extensions; do
3242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245     break 2
3246   fi
3247 done
3248 done
3249
3250   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3251   ;;
3252 esac
3253 fi
3254 CXX=$ac_cv_path_CXX
3255
3256 if test -n "$CXX"; then
3257   echo "$as_me:$LINENO: result: $CXX" >&5
3258 echo "${ECHO_T}$CXX" >&6
3259 else
3260   echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3262 fi
3263
3264 if test ! -e $CXX; then
3265    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3266 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3267    { (exit 1); exit 1; }; }
3268 fi
3269
3270 # Find a good install program.  We prefer a C program (faster),
3271 # so one script is as good as another.  But avoid the broken or
3272 # incompatible versions:
3273 # SysV /etc/install, /usr/sbin/install
3274 # SunOS /usr/etc/install
3275 # IRIX /sbin/install
3276 # AIX /bin/install
3277 # AmigaOS /C/install, which installs bootblocks on floppy discs
3278 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3279 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3280 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3281 # OS/2's system install, which has a completely different semantic
3282 # ./install, which can be erroneously created by make from ./install.sh.
3283 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3284 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3285 if test -z "$INSTALL"; then
3286 if test "${ac_cv_path_install+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292   IFS=$as_save_IFS
3293   test -z "$as_dir" && as_dir=.
3294   # Account for people who put trailing slashes in PATH elements.
3295 case $as_dir/ in
3296   ./ | .// | /cC/* | \
3297   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3298   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3299   /usr/ucb/* ) ;;
3300   *)
3301     # OSF1 and SCO ODT 3.0 have their own names for install.
3302     # Don't use installbsd from OSF since it installs stuff as root
3303     # by default.
3304     for ac_prog in ginstall scoinst install; do
3305       for ac_exec_ext in '' $ac_executable_extensions; do
3306         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3307           if test $ac_prog = install &&
3308             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3309             # AIX install.  It has an incompatible calling convention.
3310             :
3311           elif test $ac_prog = install &&
3312             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3313             # program-specific install script used by HP pwplus--don't use.
3314             :
3315           else
3316             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3317             break 3
3318           fi
3319         fi
3320       done
3321     done
3322     ;;
3323 esac
3324 done
3325
3326
3327 fi
3328   if test "${ac_cv_path_install+set}" = set; then
3329     INSTALL=$ac_cv_path_install
3330   else
3331     # As a last resort, use the slow shell script.  We don't cache a
3332     # path for INSTALL within a source directory, because that will
3333     # break other packages using the cache if that directory is
3334     # removed, or if the path is relative.
3335     INSTALL=$ac_install_sh
3336   fi
3337 fi
3338 echo "$as_me:$LINENO: result: $INSTALL" >&5
3339 echo "${ECHO_T}$INSTALL" >&6
3340
3341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3342 # It thinks the first close brace ends the variable substitution.
3343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3344
3345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3346
3347 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3348
3349 if test -n "$ac_tool_prefix"; then
3350   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3352 echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3354 if test "${ac_cv_prog_RANLIB+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357   if test -n "$RANLIB"; then
3358   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363   IFS=$as_save_IFS
3364   test -z "$as_dir" && as_dir=.
3365   for ac_exec_ext in '' $ac_executable_extensions; do
3366   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369     break 2
3370   fi
3371 done
3372 done
3373
3374 fi
3375 fi
3376 RANLIB=$ac_cv_prog_RANLIB
3377 if test -n "$RANLIB"; then
3378   echo "$as_me:$LINENO: result: $RANLIB" >&5
3379 echo "${ECHO_T}$RANLIB" >&6
3380 else
3381   echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6
3383 fi
3384
3385 fi
3386 if test -z "$ac_cv_prog_RANLIB"; then
3387   ac_ct_RANLIB=$RANLIB
3388   # Extract the first word of "ranlib", so it can be a program name with args.
3389 set dummy ranlib; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3393   echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395   if test -n "$ac_ct_RANLIB"; then
3396   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401   IFS=$as_save_IFS
3402   test -z "$as_dir" && as_dir=.
3403   for ac_exec_ext in '' $ac_executable_extensions; do
3404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405     ac_cv_prog_ac_ct_RANLIB="ranlib"
3406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3407     break 2
3408   fi
3409 done
3410 done
3411
3412   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3413 fi
3414 fi
3415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3416 if test -n "$ac_ct_RANLIB"; then
3417   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3418 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3419 else
3420   echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422 fi
3423
3424   RANLIB=$ac_ct_RANLIB
3425 else
3426   RANLIB="$ac_cv_prog_RANLIB"
3427 fi
3428
3429 # Extract the first word of "mv", so it can be a program name with args.
3430 set dummy mv; ac_word=$2
3431 echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3433 if test "${ac_cv_path_MV+set}" = set; then
3434   echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436   case $MV in
3437   [\\/]* | ?:[\\/]*)
3438   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3439   ;;
3440   *)
3441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444   IFS=$as_save_IFS
3445   test -z "$as_dir" && as_dir=.
3446   for ac_exec_ext in '' $ac_executable_extensions; do
3447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450     break 2
3451   fi
3452 done
3453 done
3454
3455   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3456   ;;
3457 esac
3458 fi
3459 MV=$ac_cv_path_MV
3460
3461 if test -n "$MV"; then
3462   echo "$as_me:$LINENO: result: $MV" >&5
3463 echo "${ECHO_T}$MV" >&6
3464 else
3465   echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6
3467 fi
3468
3469 # Extract the first word of "rm", so it can be a program name with args.
3470 set dummy rm; ac_word=$2
3471 echo "$as_me:$LINENO: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473 if test "${ac_cv_path_RM+set}" = set; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476   case $RM in
3477   [\\/]* | ?:[\\/]*)
3478   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3479   ;;
3480   *)
3481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3483 do
3484   IFS=$as_save_IFS
3485   test -z "$as_dir" && as_dir=.
3486   for ac_exec_ext in '' $ac_executable_extensions; do
3487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490     break 2
3491   fi
3492 done
3493 done
3494
3495   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3496   ;;
3497 esac
3498 fi
3499 RM=$ac_cv_path_RM
3500
3501 if test -n "$RM"; then
3502   echo "$as_me:$LINENO: result: $RM" >&5
3503 echo "${ECHO_T}$RM" >&6
3504 else
3505   echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6
3507 fi
3508
3509 # Extract the first word of "cp", so it can be a program name with args.
3510 set dummy cp; ac_word=$2
3511 echo "$as_me:$LINENO: checking for $ac_word" >&5
3512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3513 if test "${ac_cv_path_CP+set}" = set; then
3514   echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516   case $CP in
3517   [\\/]* | ?:[\\/]*)
3518   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3519   ;;
3520   *)
3521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3523 do
3524   IFS=$as_save_IFS
3525   test -z "$as_dir" && as_dir=.
3526   for ac_exec_ext in '' $ac_executable_extensions; do
3527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530     break 2
3531   fi
3532 done
3533 done
3534
3535   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3536   ;;
3537 esac
3538 fi
3539 CP=$ac_cv_path_CP
3540
3541 if test -n "$CP"; then
3542   echo "$as_me:$LINENO: result: $CP" >&5
3543 echo "${ECHO_T}$CP" >&6
3544 else
3545   echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6
3547 fi
3548
3549 # Extract the first word of "sed", so it can be a program name with args.
3550 set dummy sed; ac_word=$2
3551 echo "$as_me:$LINENO: checking for $ac_word" >&5
3552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3553 if test "${ac_cv_path_SED+set}" = set; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556   case $SED in
3557   [\\/]* | ?:[\\/]*)
3558   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3559   ;;
3560   *)
3561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564   IFS=$as_save_IFS
3565   test -z "$as_dir" && as_dir=.
3566   for ac_exec_ext in '' $ac_executable_extensions; do
3567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573 done
3574
3575   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3576   ;;
3577 esac
3578 fi
3579 SED=$ac_cv_path_SED
3580
3581 if test -n "$SED"; then
3582   echo "$as_me:$LINENO: result: $SED" >&5
3583 echo "${ECHO_T}$SED" >&6
3584 else
3585   echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3587 fi
3588
3589 # Extract the first word of "echo", so it can be a program name with args.
3590 set dummy echo; ac_word=$2
3591 echo "$as_me:$LINENO: checking for $ac_word" >&5
3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3593 if test "${ac_cv_path_ECHO+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596   case $ECHO in
3597   [\\/]* | ?:[\\/]*)
3598   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3599   ;;
3600   *)
3601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3603 do
3604   IFS=$as_save_IFS
3605   test -z "$as_dir" && as_dir=.
3606   for ac_exec_ext in '' $ac_executable_extensions; do
3607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610     break 2
3611   fi
3612 done
3613 done
3614
3615   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3616   ;;
3617 esac
3618 fi
3619 ECHO=$ac_cv_path_ECHO
3620
3621 if test -n "$ECHO"; then
3622   echo "$as_me:$LINENO: result: $ECHO" >&5
3623 echo "${ECHO_T}$ECHO" >&6
3624 else
3625   echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6
3627 fi
3628
3629 # Extract the first word of "cmp", so it can be a program name with args.
3630 set dummy cmp; ac_word=$2
3631 echo "$as_me:$LINENO: checking for $ac_word" >&5
3632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3633 if test "${ac_cv_path_CMP+set}" = set; then
3634   echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636   case $CMP in
3637   [\\/]* | ?:[\\/]*)
3638   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3639   ;;
3640   *)
3641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644   IFS=$as_save_IFS
3645   test -z "$as_dir" && as_dir=.
3646   for ac_exec_ext in '' $ac_executable_extensions; do
3647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650     break 2
3651   fi
3652 done
3653 done
3654
3655   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3656   ;;
3657 esac
3658 fi
3659 CMP=$ac_cv_path_CMP
3660
3661 if test -n "$CMP"; then
3662   echo "$as_me:$LINENO: result: $CMP" >&5
3663 echo "${ECHO_T}$CMP" >&6
3664 else
3665   echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6
3667 fi
3668
3669 # Extract the first word of "tbl", so it can be a program name with args.
3670 set dummy tbl; ac_word=$2
3671 echo "$as_me:$LINENO: checking for $ac_word" >&5
3672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3673 if test "${ac_cv_path_TBL+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   case $TBL in
3677   [\\/]* | ?:[\\/]*)
3678   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3679   ;;
3680   *)
3681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH
3683 do
3684   IFS=$as_save_IFS
3685   test -z "$as_dir" && as_dir=.
3686   for ac_exec_ext in '' $ac_executable_extensions; do
3687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3690     break 2
3691   fi
3692 done
3693 done
3694
3695   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3696   ;;
3697 esac
3698 fi
3699 TBL=$ac_cv_path_TBL
3700
3701 if test -n "$TBL"; then
3702   echo "$as_me:$LINENO: result: $TBL" >&5
3703 echo "${ECHO_T}$TBL" >&6
3704 else
3705   echo "$as_me:$LINENO: result: no" >&5
3706 echo "${ECHO_T}no" >&6
3707 fi
3708
3709 # Extract the first word of "ar", so it can be a program name with args.
3710 set dummy ar; ac_word=$2
3711 echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3713 if test "${ac_cv_path_AR+set}" = set; then
3714   echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716   case $AR in
3717   [\\/]* | ?:[\\/]*)
3718   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3719   ;;
3720   *)
3721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3723 do
3724   IFS=$as_save_IFS
3725   test -z "$as_dir" && as_dir=.
3726   for ac_exec_ext in '' $ac_executable_extensions; do
3727   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3728     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3730     break 2
3731   fi
3732 done
3733 done
3734
3735   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3736   ;;
3737 esac
3738 fi
3739 AR=$ac_cv_path_AR
3740
3741 if test -n "$AR"; then
3742   echo "$as_me:$LINENO: result: $AR" >&5
3743 echo "${ECHO_T}$AR" >&6
3744 else
3745   echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3747 fi
3748
3749 # Extract the first word of "openssl", so it can be a program name with args.
3750 set dummy openssl; ac_word=$2
3751 echo "$as_me:$LINENO: checking for $ac_word" >&5
3752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3753 if test "${ac_cv_path_OPENSSL+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756   case $OPENSSL in
3757   [\\/]* | ?:[\\/]*)
3758   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3759   ;;
3760   *)
3761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764   IFS=$as_save_IFS
3765   test -z "$as_dir" && as_dir=.
3766   for ac_exec_ext in '' $ac_executable_extensions; do
3767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770     break 2
3771   fi
3772 done
3773 done
3774
3775   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3776   ;;
3777 esac
3778 fi
3779 OPENSSL=$ac_cv_path_OPENSSL
3780
3781 if test -n "$OPENSSL"; then
3782   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3783 echo "${ECHO_T}$OPENSSL" >&6
3784 else
3785   echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6
3787 fi
3788
3789 # Extract the first word of "mtx", so it can be a program name with args.
3790 set dummy mtx; ac_word=$2
3791 echo "$as_me:$LINENO: checking for $ac_word" >&5
3792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3793 if test "${ac_cv_path_MTX+set}" = set; then
3794   echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796   case $MTX in
3797   [\\/]* | ?:[\\/]*)
3798   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3799   ;;
3800   *)
3801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3803 do
3804   IFS=$as_save_IFS
3805   test -z "$as_dir" && as_dir=.
3806   for ac_exec_ext in '' $ac_executable_extensions; do
3807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3810     break 2
3811   fi
3812 done
3813 done
3814
3815   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3816   ;;
3817 esac
3818 fi
3819 MTX=$ac_cv_path_MTX
3820
3821 if test -n "$MTX"; then
3822   echo "$as_me:$LINENO: result: $MTX" >&5
3823 echo "${ECHO_T}$MTX" >&6
3824 else
3825   echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3827 fi
3828
3829 # Extract the first word of "dd", so it can be a program name with args.
3830 set dummy dd; ac_word=$2
3831 echo "$as_me:$LINENO: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3833 if test "${ac_cv_path_DD+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   case $DD in
3837   [\\/]* | ?:[\\/]*)
3838   ac_cv_path_DD="$DD" # Let the user override the test with a path.
3839   ;;
3840   *)
3841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844   IFS=$as_save_IFS
3845   test -z "$as_dir" && as_dir=.
3846   for ac_exec_ext in '' $ac_executable_extensions; do
3847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850     break 2
3851   fi
3852 done
3853 done
3854
3855   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3856   ;;
3857 esac
3858 fi
3859 DD=$ac_cv_path_DD
3860
3861 if test -n "$DD"; then
3862   echo "$as_me:$LINENO: result: $DD" >&5
3863 echo "${ECHO_T}$DD" >&6
3864 else
3865   echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6
3867 fi
3868
3869 # Extract the first word of "mkisofs", so it can be a program name with args.
3870 set dummy mkisofs; ac_word=$2
3871 echo "$as_me:$LINENO: checking for $ac_word" >&5
3872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3873 if test "${ac_cv_path_MKISOFS+set}" = set; then
3874   echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876   case $MKISOFS in
3877   [\\/]* | ?:[\\/]*)
3878   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3879   ;;
3880   *)
3881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884   IFS=$as_save_IFS
3885   test -z "$as_dir" && as_dir=.
3886   for ac_exec_ext in '' $ac_executable_extensions; do
3887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3888     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3890     break 2
3891   fi
3892 done
3893 done
3894
3895   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3896   ;;
3897 esac
3898 fi
3899 MKISOFS=$ac_cv_path_MKISOFS
3900
3901 if test -n "$MKISOFS"; then
3902   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3903 echo "${ECHO_T}$MKISOFS" >&6
3904 else
3905   echo "$as_me:$LINENO: result: no" >&5
3906 echo "${ECHO_T}no" >&6
3907 fi
3908
3909 # Extract the first word of "python", so it can be a program name with args.
3910 set dummy python; ac_word=$2
3911 echo "$as_me:$LINENO: checking for $ac_word" >&5
3912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3913 if test "${ac_cv_path_PYTHON+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   case $PYTHON in
3917   [\\/]* | ?:[\\/]*)
3918   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3919   ;;
3920   *)
3921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926   for ac_exec_ext in '' $ac_executable_extensions; do
3927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3930     break 2
3931   fi
3932 done
3933 done
3934
3935   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3936   ;;
3937 esac
3938 fi
3939 PYTHON=$ac_cv_path_PYTHON
3940
3941 if test -n "$PYTHON"; then
3942   echo "$as_me:$LINENO: result: $PYTHON" >&5
3943 echo "${ECHO_T}$PYTHON" >&6
3944 else
3945   echo "$as_me:$LINENO: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3947 fi
3948
3949 # Extract the first word of "growisofs", so it can be a program name with args.
3950 set dummy growisofs; ac_word=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   case $GROWISOFS in
3957   [\\/]* | ?:[\\/]*)
3958   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3959   ;;
3960   *)
3961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966   for ac_exec_ext in '' $ac_executable_extensions; do
3967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970     break 2
3971   fi
3972 done
3973 done
3974
3975   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3976   ;;
3977 esac
3978 fi
3979 GROWISOFS=$ac_cv_path_GROWISOFS
3980
3981 if test -n "$GROWISOFS"; then
3982   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3983 echo "${ECHO_T}$GROWISOFS" >&6
3984 else
3985   echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6
3987 fi
3988
3989 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3990 set dummy dvd+rw-mediainfo; ac_word=$2
3991 echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   case $DVDRWMEDIAINFO in
3997   [\\/]* | ?:[\\/]*)
3998   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3999   ;;
4000   *)
4001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004   IFS=$as_save_IFS
4005   test -z "$as_dir" && as_dir=.
4006   for ac_exec_ext in '' $ac_executable_extensions; do
4007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010     break 2
4011   fi
4012 done
4013 done
4014
4015   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4016   ;;
4017 esac
4018 fi
4019 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4020
4021 if test -n "$DVDRWMEDIAINFO"; then
4022   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4023 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4024 else
4025   echo "$as_me:$LINENO: result: no" >&5
4026 echo "${ECHO_T}no" >&6
4027 fi
4028
4029 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4030 set dummy dvd+rw-format; ac_word=$2
4031 echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4034   echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036   case $DVDRWFORMAT in
4037   [\\/]* | ?:[\\/]*)
4038   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4039   ;;
4040   *)
4041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4043 do
4044   IFS=$as_save_IFS
4045   test -z "$as_dir" && as_dir=.
4046   for ac_exec_ext in '' $ac_executable_extensions; do
4047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4048     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050     break 2
4051   fi
4052 done
4053 done
4054
4055   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4056   ;;
4057 esac
4058 fi
4059 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4060
4061 if test -n "$DVDRWFORMAT"; then
4062   echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4063 echo "${ECHO_T}$DVDRWFORMAT" >&6
4064 else
4065   echo "$as_me:$LINENO: result: no" >&5
4066 echo "${ECHO_T}no" >&6
4067 fi
4068
4069 # Extract the first word of "pkg-config", so it can be a program name with args.
4070 set dummy pkg-config; ac_word=$2
4071 echo "$as_me:$LINENO: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4074   echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076   case $PKGCONFIG in
4077   [\\/]* | ?:[\\/]*)
4078   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4079   ;;
4080   *)
4081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084   IFS=$as_save_IFS
4085   test -z "$as_dir" && as_dir=.
4086   for ac_exec_ext in '' $ac_executable_extensions; do
4087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4090     break 2
4091   fi
4092 done
4093 done
4094
4095   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4096   ;;
4097 esac
4098 fi
4099 PKGCONFIG=$ac_cv_path_PKGCONFIG
4100
4101 if test -n "$PKGCONFIG"; then
4102   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4103 echo "${ECHO_T}$PKGCONFIG" >&6
4104 else
4105   echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6
4107 fi
4108
4109
4110 if test "x$WXCONFIG" = x; then
4111   WXCONFIG=wx-config
4112 fi
4113 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4114 set dummy ${WXCONFIG}; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4118   echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120   case $WXCONFIG in
4121   [\\/]* | ?:[\\/]*)
4122   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4123   ;;
4124   *)
4125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128   IFS=$as_save_IFS
4129   test -z "$as_dir" && as_dir=.
4130   for ac_exec_ext in '' $ac_executable_extensions; do
4131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134     break 2
4135   fi
4136 done
4137 done
4138
4139   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4140   ;;
4141 esac
4142 fi
4143 WXCONFIG=$ac_cv_path_WXCONFIG
4144
4145 if test -n "$WXCONFIG"; then
4146   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4147 echo "${ECHO_T}$WXCONFIG" >&6
4148 else
4149   echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4151 fi
4152
4153
4154 # Extract the first word of "cdrecord", so it can be a program name with args.
4155 set dummy cdrecord; ac_word=$2
4156 echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158 if test "${ac_cv_path_CDRECORD+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   case $CDRECORD in
4162   [\\/]* | ?:[\\/]*)
4163   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4164   ;;
4165   *)
4166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4168 do
4169   IFS=$as_save_IFS
4170   test -z "$as_dir" && as_dir=.
4171   for ac_exec_ext in '' $ac_executable_extensions; do
4172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175     break 2
4176   fi
4177 done
4178 done
4179
4180   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4181   ;;
4182 esac
4183 fi
4184 CDRECORD=$ac_cv_path_CDRECORD
4185
4186 if test -n "$CDRECORD"; then
4187   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4188 echo "${ECHO_T}$CDRECORD" >&6
4189 else
4190   echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6
4192 fi
4193
4194 # Extract the first word of "pidof", so it can be a program name with args.
4195 set dummy pidof; ac_word=$2
4196 echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_path_PIDOF+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   case $PIDOF in
4202   [\\/]* | ?:[\\/]*)
4203   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4204   ;;
4205   *)
4206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211   for ac_exec_ext in '' $ac_executable_extensions; do
4212   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218 done
4219
4220   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4221   ;;
4222 esac
4223 fi
4224 PIDOF=$ac_cv_path_PIDOF
4225
4226 if test -n "$PIDOF"; then
4227   echo "$as_me:$LINENO: result: $PIDOF" >&5
4228 echo "${ECHO_T}$PIDOF" >&6
4229 else
4230   echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6
4232 fi
4233
4234 for ac_prog in gawk mawk nawk awk
4235 do
4236   # Extract the first word of "$ac_prog", so it can be a program name with args.
4237 set dummy $ac_prog; ac_word=$2
4238 echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4240 if test "${ac_cv_prog_AWK+set}" = set; then
4241   echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243   if test -n "$AWK"; then
4244   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4245 else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4248 do
4249   IFS=$as_save_IFS
4250   test -z "$as_dir" && as_dir=.
4251   for ac_exec_ext in '' $ac_executable_extensions; do
4252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253     ac_cv_prog_AWK="$ac_prog"
4254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255     break 2
4256   fi
4257 done
4258 done
4259
4260 fi
4261 fi
4262 AWK=$ac_cv_prog_AWK
4263 if test -n "$AWK"; then
4264   echo "$as_me:$LINENO: result: $AWK" >&5
4265 echo "${ECHO_T}$AWK" >&6
4266 else
4267   echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4269 fi
4270
4271   test -n "$AWK" && break
4272 done
4273
4274 # Some AWK programs fail, so test it and warn the user
4275 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4276       { if ((prog == $2) || (("(" prog ")") == $2) ||
4277            (("" prog "") == $2) ||
4278            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4279 else
4280   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4281    The regex engine of $AWK is too broken to be used you
4282    might want to install GNU AWK.
4283    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4284 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4285    The regex engine of $AWK is too broken to be used you
4286    might want to install GNU AWK.
4287    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4288    { (exit 1); exit 1; }; }
4289 fi
4290 THE_AWK=$AWK
4291 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4292 set dummy $THE_AWK; ac_word=$2
4293 echo "$as_me:$LINENO: checking for $ac_word" >&5
4294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4295 if test "${ac_cv_path_AWK+set}" = set; then
4296   echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298   case $AWK in
4299   [\\/]* | ?:[\\/]*)
4300   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4301   ;;
4302   *)
4303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4305 do
4306   IFS=$as_save_IFS
4307   test -z "$as_dir" && as_dir=.
4308   for ac_exec_ext in '' $ac_executable_extensions; do
4309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312     break 2
4313   fi
4314 done
4315 done
4316
4317   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4318   ;;
4319 esac
4320 fi
4321 AWK=$ac_cv_path_AWK
4322
4323 if test -n "$AWK"; then
4324   echo "$as_me:$LINENO: result: $AWK" >&5
4325 echo "${ECHO_T}$AWK" >&6
4326 else
4327   echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6
4329 fi
4330
4331
4332
4333 test -n "$ARFLAG" || ARFLAGS="cr"
4334
4335
4336 MAKE_SHELL=/bin/sh
4337
4338
4339
4340
4341
4342
4343
4344 # Make sure we can run config.sub.
4345 $ac_config_sub sun4 >/dev/null 2>&1 ||
4346   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4347 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4348    { (exit 1); exit 1; }; }
4349
4350 echo "$as_me:$LINENO: checking build system type" >&5
4351 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4352 if test "${ac_cv_build+set}" = set; then
4353   echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355   ac_cv_build_alias=$build_alias
4356 test -z "$ac_cv_build_alias" &&
4357   ac_cv_build_alias=`$ac_config_guess`
4358 test -z "$ac_cv_build_alias" &&
4359   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4360 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4361    { (exit 1); exit 1; }; }
4362 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4363   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4364 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4365    { (exit 1); exit 1; }; }
4366
4367 fi
4368 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4369 echo "${ECHO_T}$ac_cv_build" >&6
4370 build=$ac_cv_build
4371 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4372 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4373 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4374
4375
4376
4377 echo "$as_me:$LINENO: checking host system type" >&5
4378 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4379 if test "${ac_cv_host+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   ac_cv_host_alias=$host_alias
4383 test -z "$ac_cv_host_alias" &&
4384   ac_cv_host_alias=$ac_cv_build_alias
4385 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4386   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4387 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4388    { (exit 1); exit 1; }; }
4389
4390 fi
4391 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4392 echo "${ECHO_T}$ac_cv_host" >&6
4393 host=$ac_cv_host
4394 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4395 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4396 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4397
4398
4399 case $host_os in
4400   *cygwin* ) CYGWIN=yes;;
4401          * ) CYGWIN=no;;
4402 esac
4403
4404 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4405 then
4406
4407
4408 if $TRUEPRG; then
4409   HAVE_SUN_OS_TRUE=
4410   HAVE_SUN_OS_FALSE='#'
4411 else
4412   HAVE_SUN_OS_TRUE='#'
4413   HAVE_SUN_OS_FALSE=
4414 fi
4415         cat >>confdefs.h <<\_ACEOF
4416 #define HAVE_SUN_OS 1
4417 _ACEOF
4418
4419 else
4420
4421
4422 if $FALSEPRG; then
4423   HAVE_SUN_OS_TRUE=
4424   HAVE_SUN_OS_FALSE='#'
4425 else
4426   HAVE_SUN_OS_TRUE='#'
4427   HAVE_SUN_OS_FALSE=
4428 fi
4429 fi
4430
4431 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4432 then
4433
4434
4435 if $TRUEPRG; then
4436   HAVE_OSF1_OS_TRUE=
4437   HAVE_OSF1_OS_FALSE='#'
4438 else
4439   HAVE_OSF1_OS_TRUE='#'
4440   HAVE_OSF1_OS_FALSE=
4441 fi
4442         cat >>confdefs.h <<\_ACEOF
4443 #define HAVE_OSF1_OS 1
4444 _ACEOF
4445
4446 else
4447
4448
4449 if $FALSEPRG; then
4450   HAVE_OSF1_OS_TRUE=
4451   HAVE_OSF1_OS_FALSE='#'
4452 else
4453   HAVE_OSF1_OS_TRUE='#'
4454   HAVE_OSF1_OS_FALSE=
4455 fi
4456 fi
4457
4458 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4459 then
4460
4461
4462 if $TRUEPRG; then
4463   HAVE_AIX_OS_TRUE=
4464   HAVE_AIX_OS_FALSE='#'
4465 else
4466   HAVE_AIX_OS_TRUE='#'
4467   HAVE_AIX_OS_FALSE=
4468 fi
4469         cat >>confdefs.h <<\_ACEOF
4470 #define HAVE_AIX_OS 1
4471 _ACEOF
4472
4473 else
4474
4475
4476 if $FALSEPRG; then
4477   HAVE_AIX_OS_TRUE=
4478   HAVE_AIX_OS_FALSE='#'
4479 else
4480   HAVE_AIX_OS_TRUE='#'
4481   HAVE_AIX_OS_FALSE=
4482 fi
4483 fi
4484
4485 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4486 then
4487
4488
4489 if $TRUEPRG; then
4490   HAVE_HPUX_OS_TRUE=
4491   HAVE_HPUX_OS_FALSE='#'
4492 else
4493   HAVE_HPUX_OS_TRUE='#'
4494   HAVE_HPUX_OS_FALSE=
4495 fi
4496         cat >>confdefs.h <<\_ACEOF
4497 #define HAVE_HPUX_OS 1
4498 _ACEOF
4499
4500 else
4501
4502
4503 if $FALSEPRG; then
4504   HAVE_HPUX_OS_TRUE=
4505   HAVE_HPUX_OS_FALSE='#'
4506 else
4507   HAVE_HPUX_OS_TRUE='#'
4508   HAVE_HPUX_OS_FALSE=
4509 fi
4510 fi
4511
4512 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4513 then
4514
4515
4516 if $TRUEPRG; then
4517   HAVE_LINUX_OS_TRUE=
4518   HAVE_LINUX_OS_FALSE='#'
4519 else
4520   HAVE_LINUX_OS_TRUE='#'
4521   HAVE_LINUX_OS_FALSE=
4522 fi
4523         cat >>confdefs.h <<\_ACEOF
4524 #define HAVE_LINUX_OS 1
4525 _ACEOF
4526
4527 else
4528
4529
4530 if $FALSEPRG; then
4531   HAVE_LINUX_OS_TRUE=
4532   HAVE_LINUX_OS_FALSE='#'
4533 else
4534   HAVE_LINUX_OS_TRUE='#'
4535   HAVE_LINUX_OS_FALSE=
4536 fi
4537 fi
4538
4539 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4540 then
4541
4542
4543 if $TRUEPRG; then
4544   HAVE_FREEBSD_OS_TRUE=
4545   HAVE_FREEBSD_OS_FALSE='#'
4546 else
4547   HAVE_FREEBSD_OS_TRUE='#'
4548   HAVE_FREEBSD_OS_FALSE=
4549 fi
4550         cat >>confdefs.h <<\_ACEOF
4551 #define HAVE_FREEBSD_OS 1
4552 _ACEOF
4553
4554 else
4555
4556
4557 if $FALSEPRG; then
4558   HAVE_FREEBSD_OS_TRUE=
4559   HAVE_FREEBSD_OS_FALSE='#'
4560 else
4561   HAVE_FREEBSD_OS_TRUE='#'
4562   HAVE_FREEBSD_OS_FALSE=
4563 fi
4564 fi
4565
4566 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4567 then
4568
4569
4570 if $TRUEPRG; then
4571   HAVE_NETBSD_OS_TRUE=
4572   HAVE_NETBSD_OS_FALSE='#'
4573 else
4574   HAVE_NETBSD_OS_TRUE='#'
4575   HAVE_NETBSD_OS_FALSE=
4576 fi
4577         cat >>confdefs.h <<\_ACEOF
4578 #define HAVE_NETBSD_OS 1
4579 _ACEOF
4580
4581 else
4582
4583
4584 if $FALSEPRG; then
4585   HAVE_NETBSD_OS_TRUE=
4586   HAVE_NETBSD_OS_FALSE='#'
4587 else
4588   HAVE_NETBSD_OS_TRUE='#'
4589   HAVE_NETBSD_OS_FALSE=
4590 fi
4591 fi
4592
4593 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4594 then
4595
4596
4597 if $TRUEPRG; then
4598   HAVE_OPENBSD_OS_TRUE=
4599   HAVE_OPENBSD_OS_FALSE='#'
4600 else
4601   HAVE_OPENBSD_OS_TRUE='#'
4602   HAVE_OPENBSD_OS_FALSE=
4603 fi
4604         cat >>confdefs.h <<\_ACEOF
4605 #define HAVE_OPENBSD_OS 1
4606 _ACEOF
4607
4608 else
4609
4610
4611 if $FALSEPRG; then
4612   HAVE_OPENBSD_OS_TRUE=
4613   HAVE_OPENBSD_OS_FALSE='#'
4614 else
4615   HAVE_OPENBSD_OS_TRUE='#'
4616   HAVE_OPENBSD_OS_FALSE=
4617 fi
4618 fi
4619
4620 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4621 then
4622
4623
4624 if $TRUEPRG; then
4625   HAVE_BSDI_OS_TRUE=
4626   HAVE_BSDI_OS_FALSE='#'
4627 else
4628   HAVE_BSDI_OS_TRUE='#'
4629   HAVE_BSDI_OS_FALSE=
4630 fi
4631         cat >>confdefs.h <<\_ACEOF
4632 #define HAVE_BSDI_OS 1
4633 _ACEOF
4634
4635 else
4636
4637
4638 if $FALSEPRG; then
4639   HAVE_BSDI_OS_TRUE=
4640   HAVE_BSDI_OS_FALSE='#'
4641 else
4642   HAVE_BSDI_OS_TRUE='#'
4643   HAVE_BSDI_OS_FALSE=
4644 fi
4645 fi
4646
4647 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4648 then
4649
4650
4651 if $TRUEPRG; then
4652   HAVE_SGI_OS_TRUE=
4653   HAVE_SGI_OS_FALSE='#'
4654 else
4655   HAVE_SGI_OS_TRUE='#'
4656   HAVE_SGI_OS_FALSE=
4657 fi
4658         cat >>confdefs.h <<\_ACEOF
4659 #define HAVE_SGI_OS 1
4660 _ACEOF
4661
4662 else
4663
4664
4665 if $FALSEPRG; then
4666   HAVE_SGI_OS_TRUE=
4667   HAVE_SGI_OS_FALSE='#'
4668 else
4669   HAVE_SGI_OS_TRUE='#'
4670   HAVE_SGI_OS_FALSE=
4671 fi
4672 fi
4673
4674 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
4675 then
4676
4677
4678 if $TRUEPRG; then
4679   HAVE_IRIX_OS_TRUE=
4680   HAVE_IRIX_OS_FALSE='#'
4681 else
4682   HAVE_IRIX_OS_TRUE='#'
4683   HAVE_IRIX_OS_FALSE=
4684 fi
4685         cat >>confdefs.h <<\_ACEOF
4686 #define HAVE_IRIX_OS 1
4687 _ACEOF
4688
4689 else
4690
4691
4692 if $FALSEPRG; then
4693   HAVE_IRIX_OS_TRUE=
4694   HAVE_IRIX_OS_FALSE='#'
4695 else
4696   HAVE_IRIX_OS_TRUE='#'
4697   HAVE_IRIX_OS_FALSE=
4698 fi
4699 fi
4700
4701 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4702 then
4703
4704
4705 if $TRUEPRG; then
4706   HAVE_DARWIN_OS_TRUE=
4707   HAVE_DARWIN_OS_FALSE='#'
4708 else
4709   HAVE_DARWIN_OS_TRUE='#'
4710   HAVE_DARWIN_OS_FALSE=
4711 fi
4712     cat >>confdefs.h <<\_ACEOF
4713 #define HAVE_DARWIN_OS 1
4714 _ACEOF
4715
4716 else
4717
4718
4719 if $FALSEPRG; then
4720   HAVE_DARWIN_OS_TRUE=
4721   HAVE_DARWIN_OS_FALSE='#'
4722 else
4723   HAVE_DARWIN_OS_TRUE='#'
4724   HAVE_DARWIN_OS_FALSE=
4725 fi
4726 fi
4727
4728
4729 # -----------------------------------------------------------
4730 # ----------------------------------------------------------
4731 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4732 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4733 if test "x$DISTNAME" != "x"
4734 then
4735         echo "distname set to $DISTNAME"
4736 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4737 then
4738         DISTNAME=alpha
4739 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4740 then
4741         DISTNAME=aix
4742 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4743 then
4744         DISTNAME=hpux
4745 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4746 then
4747         DISTNAME=solaris
4748 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4749 then
4750         DISTNAME=freebsd
4751 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4752 then
4753         DISTNAME=netbsd
4754 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4755 then
4756         DISTNAME=openbsd
4757 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4758 then
4759         DISTNAME=irix
4760 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4761 then
4762         DISTNAME=bsdi
4763 elif test -f /etc/SuSE-release
4764 then
4765         DISTNAME=suse
4766 elif test -d /etc/SuSEconfig
4767 then
4768         DISTNAME=suse5
4769 elif test -f /etc/mandrake-release
4770 then
4771         DISTNAME=mandrake
4772 elif test -f /etc/whitebox-release
4773 then
4774        DISTNAME=redhat
4775 elif test -f /etc/redhat-release
4776 then
4777         DISTNAME=redhat
4778 elif test -f /etc/gentoo-release
4779 then
4780         DISTNAME=gentoo
4781 elif test -f /etc/debian_version
4782 then
4783         DISTNAME=debian
4784 elif test -f /etc/slackware-version
4785 then
4786         DISTNAME=slackware
4787 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4788 then
4789     DISTNAME=darwin
4790 elif test -f /etc/engarde-version
4791 then
4792         DISTNAME=engarde
4793 elif test "$CYGWIN" = yes
4794 then
4795         DISTNAME=cygwin
4796         cat >>confdefs.h <<\_ACEOF
4797 #define HAVE_CYGWIN 1
4798 _ACEOF
4799
4800 else
4801         DISTNAME=unknown
4802 fi
4803 echo "$as_me:$LINENO: result: done" >&5
4804 echo "${ECHO_T}done" >&6
4805
4806
4807 # --------------------------------------------------
4808 # Suppport for gettext (translations)
4809 # By default, $datadir is ${prefix}/share
4810 # --------------------------------------------------
4811 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4812 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4813 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4814 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4815   echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817   cat >conftest.make <<\_ACEOF
4818 all:
4819         @echo 'ac_maketemp="$(MAKE)"'
4820 _ACEOF
4821 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4822 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4823 if test -n "$ac_maketemp"; then
4824   eval ac_cv_prog_make_${ac_make}_set=yes
4825 else
4826   eval ac_cv_prog_make_${ac_make}_set=no
4827 fi
4828 rm -f conftest.make
4829 fi
4830 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4831   echo "$as_me:$LINENO: result: yes" >&5
4832 echo "${ECHO_T}yes" >&6
4833   SET_MAKE=
4834 else
4835   echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6
4837   SET_MAKE="MAKE=${MAKE-make}"
4838 fi
4839
4840
4841
4842         MKINSTALLDIRS=
4843   if test -n "$ac_aux_dir"; then
4844     case "$ac_aux_dir" in
4845       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4846       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4847     esac
4848   fi
4849   if test -z "$MKINSTALLDIRS"; then
4850     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4851   fi
4852
4853
4854
4855   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4856 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4857     # Check whether --enable-nls or --disable-nls was given.
4858 if test "${enable_nls+set}" = set; then
4859   enableval="$enable_nls"
4860   USE_NLS=$enableval
4861 else
4862   USE_NLS=yes
4863 fi;
4864   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4865 echo "${ECHO_T}$USE_NLS" >&6
4866
4867
4868
4869
4870
4871
4872 # Prepare PATH_SEPARATOR.
4873 # The user is always right.
4874 if test "${PATH_SEPARATOR+set}" != set; then
4875   echo "#! /bin/sh" >conf$$.sh
4876   echo  "exit 0"   >>conf$$.sh
4877   chmod +x conf$$.sh
4878   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4879     PATH_SEPARATOR=';'
4880   else
4881     PATH_SEPARATOR=:
4882   fi
4883   rm -f conf$$.sh
4884 fi
4885
4886 # Find out how to test for executable files. Don't use a zero-byte file,
4887 # as systems may use methods other than mode bits to determine executability.
4888 cat >conf$$.file <<_ASEOF
4889 #! /bin/sh
4890 exit 0
4891 _ASEOF
4892 chmod +x conf$$.file
4893 if test -x conf$$.file >/dev/null 2>&1; then
4894   ac_executable_p="test -x"
4895 else
4896   ac_executable_p="test -f"
4897 fi
4898 rm -f conf$$.file
4899
4900 # Extract the first word of "msgfmt", so it can be a program name with args.
4901 set dummy msgfmt; ac_word=$2
4902 echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4904 if test "${ac_cv_path_MSGFMT+set}" = set; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   case "$MSGFMT" in
4908   [\\/]* | ?:[\\/]*)
4909     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4910     ;;
4911   *)
4912     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4913     for ac_dir in $PATH; do
4914       IFS="$ac_save_IFS"
4915       test -z "$ac_dir" && ac_dir=.
4916       for ac_exec_ext in '' $ac_executable_extensions; do
4917         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4918           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4919           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4920      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4921             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4922             break 2
4923           fi
4924         fi
4925       done
4926     done
4927     IFS="$ac_save_IFS"
4928   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4929     ;;
4930 esac
4931 fi
4932 MSGFMT="$ac_cv_path_MSGFMT"
4933 if test "$MSGFMT" != ":"; then
4934   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4935 echo "${ECHO_T}$MSGFMT" >&6
4936 else
4937   echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6
4939 fi
4940
4941   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4942 set dummy gmsgfmt; ac_word=$2
4943 echo "$as_me:$LINENO: checking for $ac_word" >&5
4944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4945 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4946   echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948   case $GMSGFMT in
4949   [\\/]* | ?:[\\/]*)
4950   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4951   ;;
4952   *)
4953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4955 do
4956   IFS=$as_save_IFS
4957   test -z "$as_dir" && as_dir=.
4958   for ac_exec_ext in '' $ac_executable_extensions; do
4959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962     break 2
4963   fi
4964 done
4965 done
4966
4967   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4968   ;;
4969 esac
4970 fi
4971 GMSGFMT=$ac_cv_path_GMSGFMT
4972
4973 if test -n "$GMSGFMT"; then
4974   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4975 echo "${ECHO_T}$GMSGFMT" >&6
4976 else
4977   echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6
4979 fi
4980
4981
4982
4983 # Prepare PATH_SEPARATOR.
4984 # The user is always right.
4985 if test "${PATH_SEPARATOR+set}" != set; then
4986   echo "#! /bin/sh" >conf$$.sh
4987   echo  "exit 0"   >>conf$$.sh
4988   chmod +x conf$$.sh
4989   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4990     PATH_SEPARATOR=';'
4991   else
4992     PATH_SEPARATOR=:
4993   fi
4994   rm -f conf$$.sh
4995 fi
4996
4997 # Find out how to test for executable files. Don't use a zero-byte file,
4998 # as systems may use methods other than mode bits to determine executability.
4999 cat >conf$$.file <<_ASEOF
5000 #! /bin/sh
5001 exit 0
5002 _ASEOF
5003 chmod +x conf$$.file
5004 if test -x conf$$.file >/dev/null 2>&1; then
5005   ac_executable_p="test -x"
5006 else
5007   ac_executable_p="test -f"
5008 fi
5009 rm -f conf$$.file
5010
5011 # Extract the first word of "xgettext", so it can be a program name with args.
5012 set dummy xgettext; ac_word=$2
5013 echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   case "$XGETTEXT" in
5019   [\\/]* | ?:[\\/]*)
5020     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5021     ;;
5022   *)
5023     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5024     for ac_dir in $PATH; do
5025       IFS="$ac_save_IFS"
5026       test -z "$ac_dir" && ac_dir=.
5027       for ac_exec_ext in '' $ac_executable_extensions; do
5028         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5029           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5030           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5031      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5032             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5033             break 2
5034           fi
5035         fi
5036       done
5037     done
5038     IFS="$ac_save_IFS"
5039   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5040     ;;
5041 esac
5042 fi
5043 XGETTEXT="$ac_cv_path_XGETTEXT"
5044 if test "$XGETTEXT" != ":"; then
5045   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5046 echo "${ECHO_T}$XGETTEXT" >&6
5047 else
5048   echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5050 fi
5051
5052     rm -f messages.po
5053
5054
5055 # Prepare PATH_SEPARATOR.
5056 # The user is always right.
5057 if test "${PATH_SEPARATOR+set}" != set; then
5058   echo "#! /bin/sh" >conf$$.sh
5059   echo  "exit 0"   >>conf$$.sh
5060   chmod +x conf$$.sh
5061   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5062     PATH_SEPARATOR=';'
5063   else
5064     PATH_SEPARATOR=:
5065   fi
5066   rm -f conf$$.sh
5067 fi
5068
5069 # Find out how to test for executable files. Don't use a zero-byte file,
5070 # as systems may use methods other than mode bits to determine executability.
5071 cat >conf$$.file <<_ASEOF
5072 #! /bin/sh
5073 exit 0
5074 _ASEOF
5075 chmod +x conf$$.file
5076 if test -x conf$$.file >/dev/null 2>&1; then
5077   ac_executable_p="test -x"
5078 else
5079   ac_executable_p="test -f"
5080 fi
5081 rm -f conf$$.file
5082
5083 # Extract the first word of "msgmerge", so it can be a program name with args.
5084 set dummy msgmerge; ac_word=$2
5085 echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5087 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5088   echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090   case "$MSGMERGE" in
5091   [\\/]* | ?:[\\/]*)
5092     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5093     ;;
5094   *)
5095     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5096     for ac_dir in $PATH; do
5097       IFS="$ac_save_IFS"
5098       test -z "$ac_dir" && ac_dir=.
5099       for ac_exec_ext in '' $ac_executable_extensions; do
5100         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5101           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5102           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5103             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5104             break 2
5105           fi
5106         fi
5107       done
5108     done
5109     IFS="$ac_save_IFS"
5110   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5111     ;;
5112 esac
5113 fi
5114 MSGMERGE="$ac_cv_path_MSGMERGE"
5115 if test "$MSGMERGE" != ":"; then
5116   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5117 echo "${ECHO_T}$MSGMERGE" >&6
5118 else
5119   echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6
5121 fi
5122
5123
5124       if test "$GMSGFMT" != ":"; then
5125             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5126        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5127       : ;
5128     else
5129       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5130       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5131 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5132       GMSGFMT=":"
5133     fi
5134   fi
5135
5136       if test "$XGETTEXT" != ":"; then
5137             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5138        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5139       : ;
5140     else
5141       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5142 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5143       XGETTEXT=":"
5144     fi
5145         rm -f messages.po
5146   fi
5147
5148             ac_config_commands="$ac_config_commands default-1"
5149
5150
5151
5152       if test "X$prefix" = "XNONE"; then
5153     acl_final_prefix="$ac_default_prefix"
5154   else
5155     acl_final_prefix="$prefix"
5156   fi
5157   if test "X$exec_prefix" = "XNONE"; then
5158     acl_final_exec_prefix='${prefix}'
5159   else
5160     acl_final_exec_prefix="$exec_prefix"
5161   fi
5162   acl_save_prefix="$prefix"
5163   prefix="$acl_final_prefix"
5164   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5165   prefix="$acl_save_prefix"
5166
5167
5168 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5169 if test "${with_gnu_ld+set}" = set; then
5170   withval="$with_gnu_ld"
5171   test "$withval" = no || with_gnu_ld=yes
5172 else
5173   with_gnu_ld=no
5174 fi;
5175 # Prepare PATH_SEPARATOR.
5176 # The user is always right.
5177 if test "${PATH_SEPARATOR+set}" != set; then
5178   echo "#! /bin/sh" >conf$$.sh
5179   echo  "exit 0"   >>conf$$.sh
5180   chmod +x conf$$.sh
5181   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5182     PATH_SEPARATOR=';'
5183   else
5184     PATH_SEPARATOR=:
5185   fi
5186   rm -f conf$$.sh
5187 fi
5188 ac_prog=ld
5189 if test "$GCC" = yes; then
5190   # Check if gcc -print-prog-name=ld gives a path.
5191   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5192 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5193   case $host in
5194   *-*-mingw*)
5195     # gcc leaves a trailing carriage return which upsets mingw
5196     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5197   *)
5198     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5199   esac
5200   case $ac_prog in
5201     # Accept absolute paths.
5202     [\\/]* | [A-Za-z]:[\\/]*)
5203       re_direlt='/[^/][^/]*/\.\./'
5204       # Canonicalize the path of ld
5205       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5206       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5207         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5208       done
5209       test -z "$LD" && LD="$ac_prog"
5210       ;;
5211   "")
5212     # If it fails, then pretend we aren't using GCC.
5213     ac_prog=ld
5214     ;;
5215   *)
5216     # If it is relative, then search for the first ld in PATH.
5217     with_gnu_ld=unknown
5218     ;;
5219   esac
5220 elif test "$with_gnu_ld" = yes; then
5221   echo "$as_me:$LINENO: checking for GNU ld" >&5
5222 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5223 else
5224   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5225 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5226 fi
5227 if test "${acl_cv_path_LD+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230   if test -z "$LD"; then
5231   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5232   for ac_dir in $PATH; do
5233     test -z "$ac_dir" && ac_dir=.
5234     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5235       acl_cv_path_LD="$ac_dir/$ac_prog"
5236       # Check to see if the program is GNU ld.  I'd rather use --version,
5237       # but apparently some GNU ld's only accept -v.
5238       # Break only if it was the GNU/non-GNU ld that we prefer.
5239       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5240       *GNU* | *'with BFD'*)
5241         test "$with_gnu_ld" != no && break ;;
5242       *)
5243         test "$with_gnu_ld" != yes && break ;;
5244       esac
5245     fi
5246   done
5247   IFS="$ac_save_ifs"
5248 else
5249   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5250 fi
5251 fi
5252
5253 LD="$acl_cv_path_LD"
5254 if test -n "$LD"; then
5255   echo "$as_me:$LINENO: result: $LD" >&5
5256 echo "${ECHO_T}$LD" >&6
5257 else
5258   echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6
5260 fi
5261 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5262 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5263    { (exit 1); exit 1; }; }
5264 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5265 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5266 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5270 case `$LD -v 2>&1 </dev/null` in
5271 *GNU* | *'with BFD'*)
5272   acl_cv_prog_gnu_ld=yes ;;
5273 *)
5274   acl_cv_prog_gnu_ld=no ;;
5275 esac
5276 fi
5277 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5278 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5279 with_gnu_ld=$acl_cv_prog_gnu_ld
5280
5281
5282
5283
5284                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5285 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5286 if test "${acl_cv_rpath+set}" = set; then
5287   echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289
5290     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5291     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5292     . ./conftest.sh
5293     rm -f ./conftest.sh
5294     acl_cv_rpath=done
5295
5296 fi
5297 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5298 echo "${ECHO_T}$acl_cv_rpath" >&6
5299   wl="$acl_cv_wl"
5300   libext="$acl_cv_libext"
5301   shlibext="$acl_cv_shlibext"
5302   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5303   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5304   hardcode_direct="$acl_cv_hardcode_direct"
5305   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5306     # Check whether --enable-rpath or --disable-rpath was given.
5307 if test "${enable_rpath+set}" = set; then
5308   enableval="$enable_rpath"
5309   :
5310 else
5311   enable_rpath=yes
5312 fi;
5313
5314
5315
5316
5317
5318
5319
5320     use_additional=yes
5321
5322   acl_save_prefix="$prefix"
5323   prefix="$acl_final_prefix"
5324   acl_save_exec_prefix="$exec_prefix"
5325   exec_prefix="$acl_final_exec_prefix"
5326
5327     eval additional_includedir=\"$includedir\"
5328     eval additional_libdir=\"$libdir\"
5329
5330   exec_prefix="$acl_save_exec_prefix"
5331   prefix="$acl_save_prefix"
5332
5333
5334 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5335 if test "${with_libiconv_prefix+set}" = set; then
5336   withval="$with_libiconv_prefix"
5337
5338     if test "X$withval" = "Xno"; then
5339       use_additional=no
5340     else
5341       if test "X$withval" = "X"; then
5342
5343   acl_save_prefix="$prefix"
5344   prefix="$acl_final_prefix"
5345   acl_save_exec_prefix="$exec_prefix"
5346   exec_prefix="$acl_final_exec_prefix"
5347
5348           eval additional_includedir=\"$includedir\"
5349           eval additional_libdir=\"$libdir\"
5350
5351   exec_prefix="$acl_save_exec_prefix"
5352   prefix="$acl_save_prefix"
5353
5354       else
5355         additional_includedir="$withval/include"
5356         additional_libdir="$withval/lib"
5357       fi
5358     fi
5359
5360 fi;
5361       LIBICONV=
5362   LTLIBICONV=
5363   INCICONV=
5364   rpathdirs=
5365   ltrpathdirs=
5366   names_already_handled=
5367   names_next_round='iconv '
5368   while test -n "$names_next_round"; do
5369     names_this_round="$names_next_round"
5370     names_next_round=
5371     for name in $names_this_round; do
5372       already_handled=
5373       for n in $names_already_handled; do
5374         if test "$n" = "$name"; then
5375           already_handled=yes
5376           break
5377         fi
5378       done
5379       if test -z "$already_handled"; then
5380         names_already_handled="$names_already_handled $name"
5381                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5382         eval value=\"\$HAVE_LIB$uppername\"
5383         if test -n "$value"; then
5384           if test "$value" = yes; then
5385             eval value=\"\$LIB$uppername\"
5386             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5387             eval value=\"\$LTLIB$uppername\"
5388             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5389           else
5390                                     :
5391           fi
5392         else
5393                               found_dir=
5394           found_la=
5395           found_so=
5396           found_a=
5397           if test $use_additional = yes; then
5398             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5399               found_dir="$additional_libdir"
5400               found_so="$additional_libdir/lib$name.$shlibext"
5401               if test -f "$additional_libdir/lib$name.la"; then
5402                 found_la="$additional_libdir/lib$name.la"
5403               fi
5404             else
5405               if test -f "$additional_libdir/lib$name.$libext"; then
5406                 found_dir="$additional_libdir"
5407                 found_a="$additional_libdir/lib$name.$libext"
5408                 if test -f "$additional_libdir/lib$name.la"; then
5409                   found_la="$additional_libdir/lib$name.la"
5410                 fi
5411               fi
5412             fi
5413           fi
5414           if test "X$found_dir" = "X"; then
5415             for x in $LDFLAGS $LTLIBICONV; do
5416
5417   acl_save_prefix="$prefix"
5418   prefix="$acl_final_prefix"
5419   acl_save_exec_prefix="$exec_prefix"
5420   exec_prefix="$acl_final_exec_prefix"
5421   eval x=\"$x\"
5422   exec_prefix="$acl_save_exec_prefix"
5423   prefix="$acl_save_prefix"
5424
5425               case "$x" in
5426                 -L*)
5427                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5428                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5429                     found_dir="$dir"
5430                     found_so="$dir/lib$name.$shlibext"
5431                     if test -f "$dir/lib$name.la"; then
5432                       found_la="$dir/lib$name.la"
5433                     fi
5434                   else
5435                     if test -f "$dir/lib$name.$libext"; then
5436                       found_dir="$dir"
5437                       found_a="$dir/lib$name.$libext"
5438                       if test -f "$dir/lib$name.la"; then
5439                         found_la="$dir/lib$name.la"
5440                       fi
5441                     fi
5442                   fi
5443                   ;;
5444               esac
5445               if test "X$found_dir" != "X"; then
5446                 break
5447               fi
5448             done
5449           fi
5450           if test "X$found_dir" != "X"; then
5451                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5452             if test "X$found_so" != "X"; then
5453                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5454                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5455               else
5456                                                                                 haveit=
5457                 for x in $ltrpathdirs; do
5458                   if test "X$x" = "X$found_dir"; then
5459                     haveit=yes
5460                     break
5461                   fi
5462                 done
5463                 if test -z "$haveit"; then
5464                   ltrpathdirs="$ltrpathdirs $found_dir"
5465                 fi
5466                                 if test "$hardcode_direct" = yes; then
5467                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5468                 else
5469                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5470                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5471                                                             haveit=
5472                     for x in $rpathdirs; do
5473                       if test "X$x" = "X$found_dir"; then
5474                         haveit=yes
5475                         break
5476                       fi
5477                     done
5478                     if test -z "$haveit"; then
5479                       rpathdirs="$rpathdirs $found_dir"
5480                     fi
5481                   else
5482                                                                                 haveit=
5483                     for x in $LDFLAGS $LIBICONV; do
5484
5485   acl_save_prefix="$prefix"
5486   prefix="$acl_final_prefix"
5487   acl_save_exec_prefix="$exec_prefix"
5488   exec_prefix="$acl_final_exec_prefix"
5489   eval x=\"$x\"
5490   exec_prefix="$acl_save_exec_prefix"
5491   prefix="$acl_save_prefix"
5492
5493                       if test "X$x" = "X-L$found_dir"; then
5494                         haveit=yes
5495                         break
5496                       fi
5497                     done
5498                     if test -z "$haveit"; then
5499                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5500                     fi
5501                     if test "$hardcode_minus_L" != no; then
5502                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5503                     else
5504                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5505                     fi
5506                   fi
5507                 fi
5508               fi
5509             else
5510               if test "X$found_a" != "X"; then
5511                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5512               else
5513                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5514               fi
5515             fi
5516                         additional_includedir=
5517             case "$found_dir" in
5518               */lib | */lib/)
5519                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5520                 additional_includedir="$basedir/include"
5521                 ;;
5522             esac
5523             if test "X$additional_includedir" != "X"; then
5524                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5525                 haveit=
5526                 if test "X$additional_includedir" = "X/usr/local/include"; then
5527                   if test -n "$GCC"; then
5528                     case $host_os in
5529                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5530                     esac
5531                   fi
5532                 fi
5533                 if test -z "$haveit"; then
5534                   for x in $CPPFLAGS $INCICONV; do
5535
5536   acl_save_prefix="$prefix"
5537   prefix="$acl_final_prefix"
5538   acl_save_exec_prefix="$exec_prefix"
5539   exec_prefix="$acl_final_exec_prefix"
5540   eval x=\"$x\"
5541   exec_prefix="$acl_save_exec_prefix"
5542   prefix="$acl_save_prefix"
5543
5544                     if test "X$x" = "X-I$additional_includedir"; then
5545                       haveit=yes
5546                       break
5547                     fi
5548                   done
5549                   if test -z "$haveit"; then
5550                     if test -d "$additional_includedir"; then
5551                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5552                     fi
5553                   fi
5554                 fi
5555               fi
5556             fi
5557                         if test -n "$found_la"; then
5558                                                         save_libdir="$libdir"
5559               case "$found_la" in
5560                 */* | *\\*) . "$found_la" ;;
5561                 *) . "./$found_la" ;;
5562               esac
5563               libdir="$save_libdir"
5564                             for dep in $dependency_libs; do
5565                 case "$dep" in
5566                   -L*)
5567                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5568                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5569                       haveit=
5570                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5571                         if test -n "$GCC"; then
5572                           case $host_os in
5573                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5574                           esac
5575                         fi
5576                       fi
5577                       if test -z "$haveit"; then
5578                         haveit=
5579                         for x in $LDFLAGS $LIBICONV; do
5580
5581   acl_save_prefix="$prefix"
5582   prefix="$acl_final_prefix"
5583   acl_save_exec_prefix="$exec_prefix"
5584   exec_prefix="$acl_final_exec_prefix"
5585   eval x=\"$x\"
5586   exec_prefix="$acl_save_exec_prefix"
5587   prefix="$acl_save_prefix"
5588
5589                           if test "X$x" = "X-L$additional_libdir"; then
5590                             haveit=yes
5591                             break
5592                           fi
5593                         done
5594                         if test -z "$haveit"; then
5595                           if test -d "$additional_libdir"; then
5596                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5597                           fi
5598                         fi
5599                         haveit=
5600                         for x in $LDFLAGS $LTLIBICONV; do
5601
5602   acl_save_prefix="$prefix"
5603   prefix="$acl_final_prefix"
5604   acl_save_exec_prefix="$exec_prefix"
5605   exec_prefix="$acl_final_exec_prefix"
5606   eval x=\"$x\"
5607   exec_prefix="$acl_save_exec_prefix"
5608   prefix="$acl_save_prefix"
5609
5610                           if test "X$x" = "X-L$additional_libdir"; then
5611                             haveit=yes
5612                             break
5613                           fi
5614                         done
5615                         if test -z "$haveit"; then
5616                           if test -d "$additional_libdir"; then
5617                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5618                           fi
5619                         fi
5620                       fi
5621                     fi
5622                     ;;
5623                   -R*)
5624                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5625                     if test "$enable_rpath" != no; then
5626                                                                   haveit=
5627                       for x in $rpathdirs; do
5628                         if test "X$x" = "X$dir"; then
5629                           haveit=yes
5630                           break
5631                         fi
5632                       done
5633                       if test -z "$haveit"; then
5634                         rpathdirs="$rpathdirs $dir"
5635                       fi
5636                                                                   haveit=
5637                       for x in $ltrpathdirs; do
5638                         if test "X$x" = "X$dir"; then
5639                           haveit=yes
5640                           break
5641                         fi
5642                       done
5643                       if test -z "$haveit"; then
5644                         ltrpathdirs="$ltrpathdirs $dir"
5645                       fi
5646                     fi
5647                     ;;
5648                   -l*)
5649                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5650                     ;;
5651                   *.la)
5652                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5653                     ;;
5654                   *)
5655                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5656                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5657                     ;;
5658                 esac
5659               done
5660             fi
5661           else
5662                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5663             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5664           fi
5665         fi
5666       fi
5667     done
5668   done
5669   if test "X$rpathdirs" != "X"; then
5670     if test -n "$hardcode_libdir_separator"; then
5671                         alldirs=
5672       for found_dir in $rpathdirs; do
5673         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5674       done
5675             acl_save_libdir="$libdir"
5676       libdir="$alldirs"
5677       eval flag=\"$hardcode_libdir_flag_spec\"
5678       libdir="$acl_save_libdir"
5679       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5680     else
5681             for found_dir in $rpathdirs; do
5682         acl_save_libdir="$libdir"
5683         libdir="$found_dir"
5684         eval flag=\"$hardcode_libdir_flag_spec\"
5685         libdir="$acl_save_libdir"
5686         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5687       done
5688     fi
5689   fi
5690   if test "X$ltrpathdirs" != "X"; then
5691             for found_dir in $ltrpathdirs; do
5692       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5693     done
5694   fi
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5714 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5715 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718   gt_save_CPPFLAGS="$CPPFLAGS"
5719      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5720      gt_save_LIBS="$LIBS"
5721      LIBS="$LIBS -framework CoreFoundation"
5722      cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h.  */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h.  */
5728 #include <CFPreferences.h>
5729 int
5730 main ()
5731 {
5732 CFPreferencesCopyAppValue(NULL, NULL)
5733   ;
5734   return 0;
5735 }
5736 _ACEOF
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5739   (eval $ac_link) 2>conftest.er1
5740   ac_status=$?
5741   grep -v '^ *+' conftest.er1 >conftest.err
5742   rm -f conftest.er1
5743   cat conftest.err >&5
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); } &&
5746          { ac_try='test -z "$ac_c_werror_flag"
5747                          || test ! -s conftest.err'
5748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749   (eval $ac_try) 2>&5
5750   ac_status=$?
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); }; } &&
5753          { ac_try='test -s conftest$ac_exeext'
5754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755   (eval $ac_try) 2>&5
5756   ac_status=$?
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); }; }; then
5759   gt_cv_func_CFPreferencesCopyAppValue=yes
5760 else
5761   echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5763
5764 gt_cv_func_CFPreferencesCopyAppValue=no
5765 fi
5766 rm -f conftest.err conftest.$ac_objext \
5767       conftest$ac_exeext conftest.$ac_ext
5768      CPPFLAGS="$gt_save_CPPFLAGS"
5769      LIBS="$gt_save_LIBS"
5770 fi
5771 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5772 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5773   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5774
5775 cat >>confdefs.h <<\_ACEOF
5776 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5777 _ACEOF
5778
5779   fi
5780     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5781 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5782 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   gt_save_CPPFLAGS="$CPPFLAGS"
5786      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5787      gt_save_LIBS="$LIBS"
5788      LIBS="$LIBS -framework CoreFoundation"
5789      cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h.  */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h.  */
5795 #include <CFLocale.h>
5796 int
5797 main ()
5798 {
5799 CFLocaleCopyCurrent();
5800   ;
5801   return 0;
5802 }
5803 _ACEOF
5804 rm -f conftest.$ac_objext conftest$ac_exeext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806   (eval $ac_link) 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } &&
5813          { ac_try='test -z "$ac_c_werror_flag"
5814                          || test ! -s conftest.err'
5815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816   (eval $ac_try) 2>&5
5817   ac_status=$?
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); }; } &&
5820          { ac_try='test -s conftest$ac_exeext'
5821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822   (eval $ac_try) 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); }; }; then
5826   gt_cv_func_CFLocaleCopyCurrent=yes
5827 else
5828   echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 gt_cv_func_CFLocaleCopyCurrent=no
5832 fi
5833 rm -f conftest.err conftest.$ac_objext \
5834       conftest$ac_exeext conftest.$ac_ext
5835      CPPFLAGS="$gt_save_CPPFLAGS"
5836      LIBS="$gt_save_LIBS"
5837 fi
5838 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5839 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5840   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5841
5842 cat >>confdefs.h <<\_ACEOF
5843 #define HAVE_CFLOCALECOPYCURRENT 1
5844 _ACEOF
5845
5846   fi
5847   INTL_MACOSX_LIBS=
5848   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5849     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5850   fi
5851
5852
5853
5854
5855   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5856 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5857     # Check whether --enable-nls or --disable-nls was given.
5858 if test "${enable_nls+set}" = set; then
5859   enableval="$enable_nls"
5860   USE_NLS=$enableval
5861 else
5862   USE_NLS=yes
5863 fi;
5864   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5865 echo "${ECHO_T}$USE_NLS" >&6
5866
5867
5868
5869
5870   LIBINTL=
5871   LTLIBINTL=
5872   POSUB=
5873
5874     if test "$USE_NLS" = "yes"; then
5875     gt_use_preinstalled_gnugettext=no
5876
5877
5878
5879
5880
5881
5882         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5883 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5884 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5885   echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887   cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h.  */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h.  */
5893 #include <libintl.h>
5894 extern int _nl_msg_cat_cntr;
5895 extern int *_nl_domain_bindings;
5896 int
5897 main ()
5898 {
5899 bindtextdomain ("", "");
5900 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5901   ;
5902   return 0;
5903 }
5904 _ACEOF
5905 rm -f conftest.$ac_objext conftest$ac_exeext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5907   (eval $ac_link) 2>conftest.er1
5908   ac_status=$?
5909   grep -v '^ *+' conftest.er1 >conftest.err
5910   rm -f conftest.er1
5911   cat conftest.err >&5
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); } &&
5914          { ac_try='test -z "$ac_c_werror_flag"
5915                          || test ! -s conftest.err'
5916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917   (eval $ac_try) 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }; } &&
5921          { ac_try='test -s conftest$ac_exeext'
5922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923   (eval $ac_try) 2>&5
5924   ac_status=$?
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); }; }; then
5927   gt_cv_func_gnugettext1_libc=yes
5928 else
5929   echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5931
5932 gt_cv_func_gnugettext1_libc=no
5933 fi
5934 rm -f conftest.err conftest.$ac_objext \
5935       conftest$ac_exeext conftest.$ac_ext
5936 fi
5937 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5938 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5939
5940         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5941
5942
5943
5944
5945
5946           am_save_CPPFLAGS="$CPPFLAGS"
5947
5948   for element in $INCICONV; do
5949     haveit=
5950     for x in $CPPFLAGS; do
5951
5952   acl_save_prefix="$prefix"
5953   prefix="$acl_final_prefix"
5954   acl_save_exec_prefix="$exec_prefix"
5955   exec_prefix="$acl_final_exec_prefix"
5956   eval x=\"$x\"
5957   exec_prefix="$acl_save_exec_prefix"
5958   prefix="$acl_save_prefix"
5959
5960       if test "X$x" = "X$element"; then
5961         haveit=yes
5962         break
5963       fi
5964     done
5965     if test -z "$haveit"; then
5966       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5967     fi
5968   done
5969
5970
5971   echo "$as_me:$LINENO: checking for iconv" >&5
5972 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5973 if test "${am_cv_func_iconv+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976
5977     am_cv_func_iconv="no, consider installing GNU libiconv"
5978     am_cv_lib_iconv=no
5979     cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h.  */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h.  */
5985 #include <stdlib.h>
5986 #include <iconv.h>
5987 int
5988 main ()
5989 {
5990 iconv_t cd = iconv_open("","");
5991        iconv(cd,NULL,NULL,NULL,NULL);
5992        iconv_close(cd);
5993   ;
5994   return 0;
5995 }
5996 _ACEOF
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999   (eval $ac_link) 2>conftest.er1
6000   ac_status=$?
6001   grep -v '^ *+' conftest.er1 >conftest.err
6002   rm -f conftest.er1
6003   cat conftest.err >&5
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } &&
6006          { ac_try='test -z "$ac_c_werror_flag"
6007                          || test ! -s conftest.err'
6008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009   (eval $ac_try) 2>&5
6010   ac_status=$?
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); }; } &&
6013          { ac_try='test -s conftest$ac_exeext'
6014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015   (eval $ac_try) 2>&5
6016   ac_status=$?
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); }; }; then
6019   am_cv_func_iconv=yes
6020 else
6021   echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6023
6024 fi
6025 rm -f conftest.err conftest.$ac_objext \
6026       conftest$ac_exeext conftest.$ac_ext
6027     if test "$am_cv_func_iconv" != yes; then
6028       am_save_LIBS="$LIBS"
6029       LIBS="$LIBS $LIBICONV"
6030       cat >conftest.$ac_ext <<_ACEOF
6031 /* confdefs.h.  */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h.  */
6036 #include <stdlib.h>
6037 #include <iconv.h>
6038 int
6039 main ()
6040 {
6041 iconv_t cd = iconv_open("","");
6042          iconv(cd,NULL,NULL,NULL,NULL);
6043          iconv_close(cd);
6044   ;
6045   return 0;
6046 }
6047 _ACEOF
6048 rm -f conftest.$ac_objext conftest$ac_exeext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050   (eval $ac_link) 2>conftest.er1
6051   ac_status=$?
6052   grep -v '^ *+' conftest.er1 >conftest.err
6053   rm -f conftest.er1
6054   cat conftest.err >&5
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); } &&
6057          { ac_try='test -z "$ac_c_werror_flag"
6058                          || test ! -s conftest.err'
6059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060   (eval $ac_try) 2>&5
6061   ac_status=$?
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); }; } &&
6064          { ac_try='test -s conftest$ac_exeext'
6065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066   (eval $ac_try) 2>&5
6067   ac_status=$?
6068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069   (exit $ac_status); }; }; then
6070   am_cv_lib_iconv=yes
6071         am_cv_func_iconv=yes
6072 else
6073   echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6075
6076 fi
6077 rm -f conftest.err conftest.$ac_objext \
6078       conftest$ac_exeext conftest.$ac_ext
6079       LIBS="$am_save_LIBS"
6080     fi
6081
6082 fi
6083 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6084 echo "${ECHO_T}$am_cv_func_iconv" >&6
6085   if test "$am_cv_func_iconv" = yes; then
6086
6087 cat >>confdefs.h <<\_ACEOF
6088 #define HAVE_ICONV 1
6089 _ACEOF
6090
6091   fi
6092   if test "$am_cv_lib_iconv" = yes; then
6093     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6094 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6095     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6096 echo "${ECHO_T}$LIBICONV" >&6
6097   else
6098             CPPFLAGS="$am_save_CPPFLAGS"
6099     LIBICONV=
6100     LTLIBICONV=
6101   fi
6102
6103
6104
6105
6106
6107
6108     use_additional=yes
6109
6110   acl_save_prefix="$prefix"
6111   prefix="$acl_final_prefix"
6112   acl_save_exec_prefix="$exec_prefix"
6113   exec_prefix="$acl_final_exec_prefix"
6114
6115     eval additional_includedir=\"$includedir\"
6116     eval additional_libdir=\"$libdir\"
6117
6118   exec_prefix="$acl_save_exec_prefix"
6119   prefix="$acl_save_prefix"
6120
6121
6122 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6123 if test "${with_libintl_prefix+set}" = set; then
6124   withval="$with_libintl_prefix"
6125
6126     if test "X$withval" = "Xno"; then
6127       use_additional=no
6128     else
6129       if test "X$withval" = "X"; then
6130
6131   acl_save_prefix="$prefix"
6132   prefix="$acl_final_prefix"
6133   acl_save_exec_prefix="$exec_prefix"
6134   exec_prefix="$acl_final_exec_prefix"
6135
6136           eval additional_includedir=\"$includedir\"
6137           eval additional_libdir=\"$libdir\"
6138
6139   exec_prefix="$acl_save_exec_prefix"
6140   prefix="$acl_save_prefix"
6141
6142       else
6143         additional_includedir="$withval/include"
6144         additional_libdir="$withval/lib"
6145       fi
6146     fi
6147
6148 fi;
6149       LIBINTL=
6150   LTLIBINTL=
6151   INCINTL=
6152   rpathdirs=
6153   ltrpathdirs=
6154   names_already_handled=
6155   names_next_round='intl '
6156   while test -n "$names_next_round"; do
6157     names_this_round="$names_next_round"
6158     names_next_round=
6159     for name in $names_this_round; do
6160       already_handled=
6161       for n in $names_already_handled; do
6162         if test "$n" = "$name"; then
6163           already_handled=yes
6164           break
6165         fi
6166       done
6167       if test -z "$already_handled"; then
6168         names_already_handled="$names_already_handled $name"
6169                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6170         eval value=\"\$HAVE_LIB$uppername\"
6171         if test -n "$value"; then
6172           if test "$value" = yes; then
6173             eval value=\"\$LIB$uppername\"
6174             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6175             eval value=\"\$LTLIB$uppername\"
6176             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6177           else
6178                                     :
6179           fi
6180         else
6181                               found_dir=
6182           found_la=
6183           found_so=
6184           found_a=
6185           if test $use_additional = yes; then
6186             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6187               found_dir="$additional_libdir"
6188               found_so="$additional_libdir/lib$name.$shlibext"
6189               if test -f "$additional_libdir/lib$name.la"; then
6190                 found_la="$additional_libdir/lib$name.la"
6191               fi
6192             else
6193               if test -f "$additional_libdir/lib$name.$libext"; then
6194                 found_dir="$additional_libdir"
6195                 found_a="$additional_libdir/lib$name.$libext"
6196                 if test -f "$additional_libdir/lib$name.la"; then
6197                   found_la="$additional_libdir/lib$name.la"
6198                 fi
6199               fi
6200             fi
6201           fi
6202           if test "X$found_dir" = "X"; then
6203             for x in $LDFLAGS $LTLIBINTL; do
6204
6205   acl_save_prefix="$prefix"
6206   prefix="$acl_final_prefix"
6207   acl_save_exec_prefix="$exec_prefix"
6208   exec_prefix="$acl_final_exec_prefix"
6209   eval x=\"$x\"
6210   exec_prefix="$acl_save_exec_prefix"
6211   prefix="$acl_save_prefix"
6212
6213               case "$x" in
6214                 -L*)
6215                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6216                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6217                     found_dir="$dir"
6218                     found_so="$dir/lib$name.$shlibext"
6219                     if test -f "$dir/lib$name.la"; then
6220                       found_la="$dir/lib$name.la"
6221                     fi
6222                   else
6223                     if test -f "$dir/lib$name.$libext"; then
6224                       found_dir="$dir"
6225                       found_a="$dir/lib$name.$libext"
6226                       if test -f "$dir/lib$name.la"; then
6227                         found_la="$dir/lib$name.la"
6228                       fi
6229                     fi
6230                   fi
6231                   ;;
6232               esac
6233               if test "X$found_dir" != "X"; then
6234                 break
6235               fi
6236             done
6237           fi
6238           if test "X$found_dir" != "X"; then
6239                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6240             if test "X$found_so" != "X"; then
6241                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6242                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6243               else
6244                                                                                 haveit=
6245                 for x in $ltrpathdirs; do
6246                   if test "X$x" = "X$found_dir"; then
6247                     haveit=yes
6248                     break
6249                   fi
6250                 done
6251                 if test -z "$haveit"; then
6252                   ltrpathdirs="$ltrpathdirs $found_dir"
6253                 fi
6254                                 if test "$hardcode_direct" = yes; then
6255                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6256                 else
6257                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6258                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6259                                                             haveit=
6260                     for x in $rpathdirs; do
6261                       if test "X$x" = "X$found_dir"; then
6262                         haveit=yes
6263                         break
6264                       fi
6265                     done
6266                     if test -z "$haveit"; then
6267                       rpathdirs="$rpathdirs $found_dir"
6268                     fi
6269                   else
6270                                                                                 haveit=
6271                     for x in $LDFLAGS $LIBINTL; do
6272
6273   acl_save_prefix="$prefix"
6274   prefix="$acl_final_prefix"
6275   acl_save_exec_prefix="$exec_prefix"
6276   exec_prefix="$acl_final_exec_prefix"
6277   eval x=\"$x\"
6278   exec_prefix="$acl_save_exec_prefix"
6279   prefix="$acl_save_prefix"
6280
6281                       if test "X$x" = "X-L$found_dir"; then
6282                         haveit=yes
6283                         break
6284                       fi
6285                     done
6286                     if test -z "$haveit"; then
6287                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6288                     fi
6289                     if test "$hardcode_minus_L" != no; then
6290                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6291                     else
6292                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6293                     fi
6294                   fi
6295                 fi
6296               fi
6297             else
6298               if test "X$found_a" != "X"; then
6299                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6300               else
6301                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6302               fi
6303             fi
6304                         additional_includedir=
6305             case "$found_dir" in
6306               */lib | */lib/)
6307                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6308                 additional_includedir="$basedir/include"
6309                 ;;
6310             esac
6311             if test "X$additional_includedir" != "X"; then
6312                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6313                 haveit=
6314                 if test "X$additional_includedir" = "X/usr/local/include"; then
6315                   if test -n "$GCC"; then
6316                     case $host_os in
6317                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6318                     esac
6319                   fi
6320                 fi
6321                 if test -z "$haveit"; then
6322                   for x in $CPPFLAGS $INCINTL; do
6323
6324   acl_save_prefix="$prefix"
6325   prefix="$acl_final_prefix"
6326   acl_save_exec_prefix="$exec_prefix"
6327   exec_prefix="$acl_final_exec_prefix"
6328   eval x=\"$x\"
6329   exec_prefix="$acl_save_exec_prefix"
6330   prefix="$acl_save_prefix"
6331
6332                     if test "X$x" = "X-I$additional_includedir"; then
6333                       haveit=yes
6334                       break
6335                     fi
6336                   done
6337                   if test -z "$haveit"; then
6338                     if test -d "$additional_includedir"; then
6339                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6340                     fi
6341                   fi
6342                 fi
6343               fi
6344             fi
6345                         if test -n "$found_la"; then
6346                                                         save_libdir="$libdir"
6347               case "$found_la" in
6348                 */* | *\\*) . "$found_la" ;;
6349                 *) . "./$found_la" ;;
6350               esac
6351               libdir="$save_libdir"
6352                             for dep in $dependency_libs; do
6353                 case "$dep" in
6354                   -L*)
6355                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6356                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6357                       haveit=
6358                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6359                         if test -n "$GCC"; then
6360                           case $host_os in
6361                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6362                           esac
6363                         fi
6364                       fi
6365                       if test -z "$haveit"; then
6366                         haveit=
6367                         for x in $LDFLAGS $LIBINTL; do
6368
6369   acl_save_prefix="$prefix"
6370   prefix="$acl_final_prefix"
6371   acl_save_exec_prefix="$exec_prefix"
6372   exec_prefix="$acl_final_exec_prefix"
6373   eval x=\"$x\"
6374   exec_prefix="$acl_save_exec_prefix"
6375   prefix="$acl_save_prefix"
6376
6377                           if test "X$x" = "X-L$additional_libdir"; then
6378                             haveit=yes
6379                             break
6380                           fi
6381                         done
6382                         if test -z "$haveit"; then
6383                           if test -d "$additional_libdir"; then
6384                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6385                           fi
6386                         fi
6387                         haveit=
6388                         for x in $LDFLAGS $LTLIBINTL; do
6389
6390   acl_save_prefix="$prefix"
6391   prefix="$acl_final_prefix"
6392   acl_save_exec_prefix="$exec_prefix"
6393   exec_prefix="$acl_final_exec_prefix"
6394   eval x=\"$x\"
6395   exec_prefix="$acl_save_exec_prefix"
6396   prefix="$acl_save_prefix"
6397
6398                           if test "X$x" = "X-L$additional_libdir"; then
6399                             haveit=yes
6400                             break
6401                           fi
6402                         done
6403                         if test -z "$haveit"; then
6404                           if test -d "$additional_libdir"; then
6405                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6406                           fi
6407                         fi
6408                       fi
6409                     fi
6410                     ;;
6411                   -R*)
6412                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6413                     if test "$enable_rpath" != no; then
6414                                                                   haveit=
6415                       for x in $rpathdirs; do
6416                         if test "X$x" = "X$dir"; then
6417                           haveit=yes
6418                           break
6419                         fi
6420                       done
6421                       if test -z "$haveit"; then
6422                         rpathdirs="$rpathdirs $dir"
6423                       fi
6424                                                                   haveit=
6425                       for x in $ltrpathdirs; do
6426                         if test "X$x" = "X$dir"; then
6427                           haveit=yes
6428                           break
6429                         fi
6430                       done
6431                       if test -z "$haveit"; then
6432                         ltrpathdirs="$ltrpathdirs $dir"
6433                       fi
6434                     fi
6435                     ;;
6436                   -l*)
6437                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6438                     ;;
6439                   *.la)
6440                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6441                     ;;
6442                   *)
6443                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6444                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6445                     ;;
6446                 esac
6447               done
6448             fi
6449           else
6450                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6451             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6452           fi
6453         fi
6454       fi
6455     done
6456   done
6457   if test "X$rpathdirs" != "X"; then
6458     if test -n "$hardcode_libdir_separator"; then
6459                         alldirs=
6460       for found_dir in $rpathdirs; do
6461         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6462       done
6463             acl_save_libdir="$libdir"
6464       libdir="$alldirs"
6465       eval flag=\"$hardcode_libdir_flag_spec\"
6466       libdir="$acl_save_libdir"
6467       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6468     else
6469             for found_dir in $rpathdirs; do
6470         acl_save_libdir="$libdir"
6471         libdir="$found_dir"
6472         eval flag=\"$hardcode_libdir_flag_spec\"
6473         libdir="$acl_save_libdir"
6474         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6475       done
6476     fi
6477   fi
6478   if test "X$ltrpathdirs" != "X"; then
6479             for found_dir in $ltrpathdirs; do
6480       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6481     done
6482   fi
6483
6484           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6485 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6486 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   gt_save_CPPFLAGS="$CPPFLAGS"
6490             CPPFLAGS="$CPPFLAGS $INCINTL"
6491             gt_save_LIBS="$LIBS"
6492             LIBS="$LIBS $LIBINTL"
6493                         cat >conftest.$ac_ext <<_ACEOF
6494 /* confdefs.h.  */
6495 _ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h.  */
6499 #include <libintl.h>
6500 extern int _nl_msg_cat_cntr;
6501 extern
6502 #ifdef __cplusplus
6503 "C"
6504 #endif
6505 const char *_nl_expand_alias (const char *);
6506 int
6507 main ()
6508 {
6509 bindtextdomain ("", "");
6510 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6511   ;
6512   return 0;
6513 }
6514 _ACEOF
6515 rm -f conftest.$ac_objext conftest$ac_exeext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6517   (eval $ac_link) 2>conftest.er1
6518   ac_status=$?
6519   grep -v '^ *+' conftest.er1 >conftest.err
6520   rm -f conftest.er1
6521   cat conftest.err >&5
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); } &&
6524          { ac_try='test -z "$ac_c_werror_flag"
6525                          || test ! -s conftest.err'
6526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527   (eval $ac_try) 2>&5
6528   ac_status=$?
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); }; } &&
6531          { ac_try='test -s conftest$ac_exeext'
6532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533   (eval $ac_try) 2>&5
6534   ac_status=$?
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); }; }; then
6537   gt_cv_func_gnugettext1_libintl=yes
6538 else
6539   echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6541
6542 gt_cv_func_gnugettext1_libintl=no
6543 fi
6544 rm -f conftest.err conftest.$ac_objext \
6545       conftest$ac_exeext conftest.$ac_ext
6546                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6547               LIBS="$LIBS $LIBICONV"
6548               cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h.  */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h.  */
6554 #include <libintl.h>
6555 extern int _nl_msg_cat_cntr;
6556 extern
6557 #ifdef __cplusplus
6558 "C"
6559 #endif
6560 const char *_nl_expand_alias (const char *);
6561 int
6562 main ()
6563 {
6564 bindtextdomain ("", "");
6565 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6566   ;
6567   return 0;
6568 }
6569 _ACEOF
6570 rm -f conftest.$ac_objext conftest$ac_exeext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572   (eval $ac_link) 2>conftest.er1
6573   ac_status=$?
6574   grep -v '^ *+' conftest.er1 >conftest.err
6575   rm -f conftest.er1
6576   cat conftest.err >&5
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); } &&
6579          { ac_try='test -z "$ac_c_werror_flag"
6580                          || test ! -s conftest.err'
6581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582   (eval $ac_try) 2>&5
6583   ac_status=$?
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); }; } &&
6586          { ac_try='test -s conftest$ac_exeext'
6587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588   (eval $ac_try) 2>&5
6589   ac_status=$?
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); }; }; then
6592   LIBINTL="$LIBINTL $LIBICONV"
6593                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6594                 gt_cv_func_gnugettext1_libintl=yes
6595
6596 else
6597   echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6599
6600 fi
6601 rm -f conftest.err conftest.$ac_objext \
6602       conftest$ac_exeext conftest.$ac_ext
6603             fi
6604             CPPFLAGS="$gt_save_CPPFLAGS"
6605             LIBS="$gt_save_LIBS"
6606 fi
6607 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6608 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6609         fi
6610
6611                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6612            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6613                 && test "$PACKAGE" != gettext-runtime \
6614                 && test "$PACKAGE" != gettext-tools; }; then
6615           gt_use_preinstalled_gnugettext=yes
6616         else
6617                     LIBINTL=
6618           LTLIBINTL=
6619           INCINTL=
6620         fi
6621
6622
6623
6624     if test -n "$INTL_MACOSX_LIBS"; then
6625       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6626          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6627                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6628         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6629       fi
6630     fi
6631
6632     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6633        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6634
6635 cat >>confdefs.h <<\_ACEOF
6636 #define ENABLE_NLS 1
6637 _ACEOF
6638
6639     else
6640       USE_NLS=no
6641     fi
6642   fi
6643
6644   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6645 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6646   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6647 echo "${ECHO_T}$USE_NLS" >&6
6648   if test "$USE_NLS" = "yes"; then
6649     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6650 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6651     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6652       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6653         gt_source="external libintl"
6654       else
6655         gt_source="libc"
6656       fi
6657     else
6658       gt_source="included intl directory"
6659     fi
6660     echo "$as_me:$LINENO: result: $gt_source" >&5
6661 echo "${ECHO_T}$gt_source" >&6
6662   fi
6663
6664   if test "$USE_NLS" = "yes"; then
6665
6666     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6667       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6668         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6669 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6670         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6671 echo "${ECHO_T}$LIBINTL" >&6
6672
6673   for element in $INCINTL; do
6674     haveit=
6675     for x in $CPPFLAGS; do
6676
6677   acl_save_prefix="$prefix"
6678   prefix="$acl_final_prefix"
6679   acl_save_exec_prefix="$exec_prefix"
6680   exec_prefix="$acl_final_exec_prefix"
6681   eval x=\"$x\"
6682   exec_prefix="$acl_save_exec_prefix"
6683   prefix="$acl_save_prefix"
6684
6685       if test "X$x" = "X$element"; then
6686         haveit=yes
6687         break
6688       fi
6689     done
6690     if test -z "$haveit"; then
6691       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6692     fi
6693   done
6694
6695       fi
6696
6697
6698 cat >>confdefs.h <<\_ACEOF
6699 #define HAVE_GETTEXT 1
6700 _ACEOF
6701
6702
6703 cat >>confdefs.h <<\_ACEOF
6704 #define HAVE_DCGETTEXT 1
6705 _ACEOF
6706
6707     fi
6708
6709         POSUB=po
6710   fi
6711
6712
6713
6714     INTLLIBS="$LIBINTL"
6715
6716
6717
6718
6719
6720
6721 if test x${prefix} = xNONE ; then
6722    if test `eval echo ${datadir}` = NONE/share ; then
6723       datadir=/usr/share
6724    fi
6725 fi
6726
6727 # ------------------------------------------------------------------
6728 #  If the user has not set --prefix, we set our default to nothing.
6729 #  In this case, if the user has not set --sysconfdir, we set it
6730 #  to the package default of /etc/bacula.  If either --prefix or
6731 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6732 # ------------------------------------------------------------------
6733 if test x${prefix} = xNONE ; then
6734     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6735         sysconfdir=/etc/bacula
6736     fi
6737     prefix=
6738 fi
6739 sysconfdir=`eval echo ${sysconfdir}`
6740 datadir=`eval echo ${datadir}`
6741 localedir=`eval echo ${datadir}/locale`
6742 cat >>confdefs.h <<_ACEOF
6743 #define LOCALEDIR "$localedir"
6744 _ACEOF
6745
6746 cat >>confdefs.h <<_ACEOF
6747 #define SYSCONFDIR "$sysconfdir"
6748 _ACEOF
6749
6750
6751 # -------------------------------------------------------------------------
6752 #  If the user has not set --exec-prefix, we default to ${prefix}
6753 # -------------------------------------------------------------------------
6754 if test x${exec_prefix} = xNONE ; then
6755     exec_prefix=${prefix}
6756 fi
6757
6758 # ------------------------------------------------------------------
6759 # If the user has not set --sbindir, we set our default as /sbin
6760 # ------------------------------------------------------------------
6761 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6762     sbindir=${exec_prefix}/sbin
6763 fi
6764 sbindir=`eval echo ${sbindir}`
6765
6766 # -------------------------------------------------------------------------
6767 #  If the user has not set --mandir, we default to /usr/share/man
6768 # -------------------------------------------------------------------------
6769 if test x$mandir = x'${prefix}/man' ; then
6770    mandir=/usr/share/man
6771 fi
6772
6773
6774 for ac_prog in msgfmt
6775 do
6776   # Extract the first word of "$ac_prog", so it can be a program name with args.
6777 set dummy $ac_prog; ac_word=$2
6778 echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6780 if test "${ac_cv_path_MSGFMT+set}" = set; then
6781   echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783   case $MSGFMT in
6784   [\\/]* | ?:[\\/]*)
6785   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6786   ;;
6787   *)
6788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 for as_dir in $PATH
6790 do
6791   IFS=$as_save_IFS
6792   test -z "$as_dir" && as_dir=.
6793   for ac_exec_ext in '' $ac_executable_extensions; do
6794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797     break 2
6798   fi
6799 done
6800 done
6801
6802   ;;
6803 esac
6804 fi
6805 MSGFMT=$ac_cv_path_MSGFMT
6806
6807 if test -n "$MSGFMT"; then
6808   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6809 echo "${ECHO_T}$MSGFMT" >&6
6810 else
6811   echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6
6813 fi
6814
6815   test -n "$MSGFMT" && break
6816 done
6817 test -n "$MSGFMT" || MSGFMT="no"
6818
6819 if test "$MSGFMT" = "no"
6820 then
6821    echo 'msgfmt program not found, disabling NLS !'
6822    USE_NLS=no
6823    USE_INCLUDED_LIBINTL=no
6824 #else
6825
6826     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6827 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6828 if test "${ac_cv_gnu_library_2+set}" = set; then
6829   echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831   cat >conftest.$ac_ext <<_ACEOF
6832 /* confdefs.h.  */
6833 _ACEOF
6834 cat confdefs.h >>conftest.$ac_ext
6835 cat >>conftest.$ac_ext <<_ACEOF
6836 /* end confdefs.h.  */
6837
6838 #include <features.h>
6839 #ifdef __GNU_LIBRARY__
6840  #if (__GLIBC__ >= 2)
6841   Lucky GNU user
6842  #endif
6843 #endif
6844
6845 _ACEOF
6846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6847   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6848   ac_cv_gnu_library_2=yes
6849 else
6850   ac_cv_gnu_library_2=no
6851 fi
6852 rm -f conftest*
6853
6854
6855
6856 fi
6857 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6858 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6859
6860     GLIBC2="$ac_cv_gnu_library_2"
6861
6862
6863
6864         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
6865 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
6866 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
6867   echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869   ac_check_lib_save_LIBS=$LIBS
6870 LIBS="-lcposix  $LIBS"
6871 cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h.  */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h.  */
6877
6878 /* Override any gcc2 internal prototype to avoid an error.  */
6879 #ifdef __cplusplus
6880 extern "C"
6881 #endif
6882 /* We use char because int might match the return type of a gcc2
6883    builtin and then its argument prototype would still apply.  */
6884 char strerror ();
6885 int
6886 main ()
6887 {
6888 strerror ();
6889   ;
6890   return 0;
6891 }
6892 _ACEOF
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895   (eval $ac_link) 2>conftest.er1
6896   ac_status=$?
6897   grep -v '^ *+' conftest.er1 >conftest.err
6898   rm -f conftest.er1
6899   cat conftest.err >&5
6900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901   (exit $ac_status); } &&
6902          { ac_try='test -z "$ac_c_werror_flag"
6903                          || test ! -s conftest.err'
6904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905   (eval $ac_try) 2>&5
6906   ac_status=$?
6907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908   (exit $ac_status); }; } &&
6909          { ac_try='test -s conftest$ac_exeext'
6910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911   (eval $ac_try) 2>&5
6912   ac_status=$?
6913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914   (exit $ac_status); }; }; then
6915   ac_cv_lib_cposix_strerror=yes
6916 else
6917   echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6919
6920 ac_cv_lib_cposix_strerror=no
6921 fi
6922 rm -f conftest.err conftest.$ac_objext \
6923       conftest$ac_exeext conftest.$ac_ext
6924 LIBS=$ac_check_lib_save_LIBS
6925 fi
6926 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
6927 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
6928 if test $ac_cv_lib_cposix_strerror = yes; then
6929   LIBS="$LIBS -lcposix"
6930 fi
6931
6932
6933
6934 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6935 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6936 if test "${ac_cv_header_stdc+set}" = set; then
6937   echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939   cat >conftest.$ac_ext <<_ACEOF
6940 /* confdefs.h.  */
6941 _ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h.  */
6945 #include <stdlib.h>
6946 #include <stdarg.h>
6947 #include <string.h>
6948 #include <float.h>
6949
6950 int
6951 main ()
6952 {
6953
6954   ;
6955   return 0;
6956 }
6957 _ACEOF
6958 rm -f conftest.$ac_objext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6960   (eval $ac_compile) 2>conftest.er1
6961   ac_status=$?
6962   grep -v '^ *+' conftest.er1 >conftest.err
6963   rm -f conftest.er1
6964   cat conftest.err >&5
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); } &&
6967          { ac_try='test -z "$ac_c_werror_flag"
6968                          || test ! -s conftest.err'
6969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970   (eval $ac_try) 2>&5
6971   ac_status=$?
6972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973   (exit $ac_status); }; } &&
6974          { ac_try='test -s conftest.$ac_objext'
6975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976   (eval $ac_try) 2>&5
6977   ac_status=$?
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); }; }; then
6980   ac_cv_header_stdc=yes
6981 else
6982   echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6984
6985 ac_cv_header_stdc=no
6986 fi
6987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6988
6989 if test $ac_cv_header_stdc = yes; then
6990   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6991   cat >conftest.$ac_ext <<_ACEOF
6992 /* confdefs.h.  */
6993 _ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h.  */
6997 #include <string.h>
6998
6999 _ACEOF
7000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7001   $EGREP "memchr" >/dev/null 2>&1; then
7002   :
7003 else
7004   ac_cv_header_stdc=no
7005 fi
7006 rm -f conftest*
7007
7008 fi
7009
7010 if test $ac_cv_header_stdc = yes; then
7011   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7012   cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h.  */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h.  */
7018 #include <stdlib.h>
7019
7020 _ACEOF
7021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7022   $EGREP "free" >/dev/null 2>&1; then
7023   :
7024 else
7025   ac_cv_header_stdc=no
7026 fi
7027 rm -f conftest*
7028
7029 fi
7030
7031 if test $ac_cv_header_stdc = yes; then
7032   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7033   if test "$cross_compiling" = yes; then
7034   :
7035 else
7036   cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h.  */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h.  */
7042 #include <ctype.h>
7043 #if ((' ' & 0x0FF) == 0x020)
7044 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7045 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7046 #else
7047 # define ISLOWER(c) \
7048                    (('a' <= (c) && (c) <= 'i') \
7049                      || ('j' <= (c) && (c) <= 'r') \
7050                      || ('s' <= (c) && (c) <= 'z'))
7051 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7052 #endif
7053
7054 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7055 int
7056 main ()
7057 {
7058   int i;
7059   for (i = 0; i < 256; i++)
7060     if (XOR (islower (i), ISLOWER (i))
7061         || toupper (i) != TOUPPER (i))
7062       exit(2);
7063   exit (0);
7064 }
7065 _ACEOF
7066 rm -f conftest$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068   (eval $ac_link) 2>&5
7069   ac_status=$?
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073   (eval $ac_try) 2>&5
7074   ac_status=$?
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); }; }; then
7077   :
7078 else
7079   echo "$as_me: program exited with status $ac_status" >&5
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7082
7083 ( exit $ac_status )
7084 ac_cv_header_stdc=no
7085 fi
7086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7087 fi
7088 fi
7089 fi
7090 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7091 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7092 if test $ac_cv_header_stdc = yes; then
7093
7094 cat >>confdefs.h <<\_ACEOF
7095 #define STDC_HEADERS 1
7096 _ACEOF
7097
7098 fi
7099
7100 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7101 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7102 if test "${ac_cv_c_const+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   cat >conftest.$ac_ext <<_ACEOF
7106 /* confdefs.h.  */
7107 _ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h.  */
7111
7112 int
7113 main ()
7114 {
7115 /* FIXME: Include the comments suggested by Paul. */
7116 #ifndef __cplusplus
7117   /* Ultrix mips cc rejects this.  */
7118   typedef int charset[2];
7119   const charset x;
7120   /* SunOS 4.1.1 cc rejects this.  */
7121   char const *const *ccp;
7122   char **p;
7123   /* NEC SVR4.0.2 mips cc rejects this.  */
7124   struct point {int x, y;};
7125   static struct point const zero = {0,0};
7126   /* AIX XL C 1.02.0.0 rejects this.
7127      It does not let you subtract one const X* pointer from another in
7128      an arm of an if-expression whose if-part is not a constant
7129      expression */
7130   const char *g = "string";
7131   ccp = &g + (g ? g-g : 0);
7132   /* HPUX 7.0 cc rejects these. */
7133   ++ccp;
7134   p = (char**) ccp;
7135   ccp = (char const *const *) p;
7136   { /* SCO 3.2v4 cc rejects this.  */
7137     char *t;
7138     char const *s = 0 ? (char *) 0 : (char const *) 0;
7139
7140     *t++ = 0;
7141   }
7142   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7143     int x[] = {25, 17};
7144     const int *foo = &x[0];
7145     ++foo;
7146   }
7147   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7148     typedef const int *iptr;
7149     iptr p = 0;
7150     ++p;
7151   }
7152   { /* AIX XL C 1.02.0.0 rejects this saying
7153        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7154     struct s { int j; const int *ap[3]; };
7155     struct s *b; b->j = 5;
7156   }
7157   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7158     const int foo = 10;
7159   }
7160 #endif
7161
7162   ;
7163   return 0;
7164 }
7165 _ACEOF
7166 rm -f conftest.$ac_objext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7168   (eval $ac_compile) 2>conftest.er1
7169   ac_status=$?
7170   grep -v '^ *+' conftest.er1 >conftest.err
7171   rm -f conftest.er1
7172   cat conftest.err >&5
7173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174   (exit $ac_status); } &&
7175          { ac_try='test -z "$ac_c_werror_flag"
7176                          || test ! -s conftest.err'
7177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178   (eval $ac_try) 2>&5
7179   ac_status=$?
7180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181   (exit $ac_status); }; } &&
7182          { ac_try='test -s conftest.$ac_objext'
7183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184   (eval $ac_try) 2>&5
7185   ac_status=$?
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); }; }; then
7188   ac_cv_c_const=yes
7189 else
7190   echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7192
7193 ac_cv_c_const=no
7194 fi
7195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7196 fi
7197 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7198 echo "${ECHO_T}$ac_cv_c_const" >&6
7199 if test $ac_cv_c_const = no; then
7200
7201 cat >>confdefs.h <<\_ACEOF
7202 #define const
7203 _ACEOF
7204
7205 fi
7206
7207
7208   echo "$as_me:$LINENO: checking for signed" >&5
7209 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7210 if test "${bh_cv_c_signed+set}" = set; then
7211   echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213   cat >conftest.$ac_ext <<_ACEOF
7214 /* confdefs.h.  */
7215 _ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h.  */
7219
7220 int
7221 main ()
7222 {
7223 signed char x;
7224   ;
7225   return 0;
7226 }
7227 _ACEOF
7228 rm -f conftest.$ac_objext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230   (eval $ac_compile) 2>conftest.er1
7231   ac_status=$?
7232   grep -v '^ *+' conftest.er1 >conftest.err
7233   rm -f conftest.er1
7234   cat conftest.err >&5
7235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236   (exit $ac_status); } &&
7237          { ac_try='test -z "$ac_c_werror_flag"
7238                          || test ! -s conftest.err'
7239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240   (eval $ac_try) 2>&5
7241   ac_status=$?
7242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243   (exit $ac_status); }; } &&
7244          { ac_try='test -s conftest.$ac_objext'
7245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246   (eval $ac_try) 2>&5
7247   ac_status=$?
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); }; }; then
7250   bh_cv_c_signed=yes
7251 else
7252   echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7254
7255 bh_cv_c_signed=no
7256 fi
7257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7258 fi
7259 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7260 echo "${ECHO_T}$bh_cv_c_signed" >&6
7261   if test $bh_cv_c_signed = no; then
7262
7263 cat >>confdefs.h <<\_ACEOF
7264 #define signed
7265 _ACEOF
7266
7267   fi
7268
7269 echo "$as_me:$LINENO: checking for inline" >&5
7270 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7271 if test "${ac_cv_c_inline+set}" = set; then
7272   echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274   ac_cv_c_inline=no
7275 for ac_kw in inline __inline__ __inline; do
7276   cat >conftest.$ac_ext <<_ACEOF
7277 /* confdefs.h.  */
7278 _ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h.  */
7282 #ifndef __cplusplus
7283 typedef int foo_t;
7284 static $ac_kw foo_t static_foo () {return 0; }
7285 $ac_kw foo_t foo () {return 0; }
7286 #endif
7287
7288 _ACEOF
7289 rm -f conftest.$ac_objext
7290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7291   (eval $ac_compile) 2>conftest.er1
7292   ac_status=$?
7293   grep -v '^ *+' conftest.er1 >conftest.err
7294   rm -f conftest.er1
7295   cat conftest.err >&5
7296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297   (exit $ac_status); } &&
7298          { ac_try='test -z "$ac_c_werror_flag"
7299                          || test ! -s conftest.err'
7300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301   (eval $ac_try) 2>&5
7302   ac_status=$?
7303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304   (exit $ac_status); }; } &&
7305          { ac_try='test -s conftest.$ac_objext'
7306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307   (eval $ac_try) 2>&5
7308   ac_status=$?
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); }; }; then
7311   ac_cv_c_inline=$ac_kw; break
7312 else
7313   echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7315
7316 fi
7317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7318 done
7319
7320 fi
7321 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7322 echo "${ECHO_T}$ac_cv_c_inline" >&6
7323
7324
7325 case $ac_cv_c_inline in
7326   inline | yes) ;;
7327   *)
7328     case $ac_cv_c_inline in
7329       no) ac_val=;;
7330       *) ac_val=$ac_cv_c_inline;;
7331     esac
7332     cat >>confdefs.h <<_ACEOF
7333 #ifndef __cplusplus
7334 #define inline $ac_val
7335 #endif
7336 _ACEOF
7337     ;;
7338 esac
7339
7340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7351                   inttypes.h stdint.h unistd.h
7352 do
7353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7354 echo "$as_me:$LINENO: checking for $ac_header" >&5
7355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359   cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h.  */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h.  */
7365 $ac_includes_default
7366
7367 #include <$ac_header>
7368 _ACEOF
7369 rm -f conftest.$ac_objext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371   (eval $ac_compile) 2>conftest.er1
7372   ac_status=$?
7373   grep -v '^ *+' conftest.er1 >conftest.err
7374   rm -f conftest.er1
7375   cat conftest.err >&5
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); } &&
7378          { ac_try='test -z "$ac_c_werror_flag"
7379                          || test ! -s conftest.err'
7380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381   (eval $ac_try) 2>&5
7382   ac_status=$?
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); }; } &&
7385          { ac_try='test -s conftest.$ac_objext'
7386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387   (eval $ac_try) 2>&5
7388   ac_status=$?
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); }; }; then
7391   eval "$as_ac_Header=yes"
7392 else
7393   echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396 eval "$as_ac_Header=no"
7397 fi
7398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7399 fi
7400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7403   cat >>confdefs.h <<_ACEOF
7404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7405 _ACEOF
7406
7407 fi
7408
7409 done
7410
7411
7412 echo "$as_me:$LINENO: checking for off_t" >&5
7413 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7414 if test "${ac_cv_type_off_t+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h.  */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h.  */
7423 $ac_includes_default
7424 int
7425 main ()
7426 {
7427 if ((off_t *) 0)
7428   return 0;
7429 if (sizeof (off_t))
7430   return 0;
7431   ;
7432   return 0;
7433 }
7434 _ACEOF
7435 rm -f conftest.$ac_objext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7437   (eval $ac_compile) 2>conftest.er1
7438   ac_status=$?
7439   grep -v '^ *+' conftest.er1 >conftest.err
7440   rm -f conftest.er1
7441   cat conftest.err >&5
7442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443   (exit $ac_status); } &&
7444          { ac_try='test -z "$ac_c_werror_flag"
7445                          || test ! -s conftest.err'
7446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447   (eval $ac_try) 2>&5
7448   ac_status=$?
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); }; } &&
7451          { ac_try='test -s conftest.$ac_objext'
7452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453   (eval $ac_try) 2>&5
7454   ac_status=$?
7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); }; }; then
7457   ac_cv_type_off_t=yes
7458 else
7459   echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7461
7462 ac_cv_type_off_t=no
7463 fi
7464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7465 fi
7466 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7467 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7468 if test $ac_cv_type_off_t = yes; then
7469   :
7470 else
7471
7472 cat >>confdefs.h <<_ACEOF
7473 #define off_t long
7474 _ACEOF
7475
7476 fi
7477
7478 echo "$as_me:$LINENO: checking for size_t" >&5
7479 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7480 if test "${ac_cv_type_size_t+set}" = set; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483   cat >conftest.$ac_ext <<_ACEOF
7484 /* confdefs.h.  */
7485 _ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h.  */
7489 $ac_includes_default
7490 int
7491 main ()
7492 {
7493 if ((size_t *) 0)
7494   return 0;
7495 if (sizeof (size_t))
7496   return 0;
7497   ;
7498   return 0;
7499 }
7500 _ACEOF
7501 rm -f conftest.$ac_objext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7503   (eval $ac_compile) 2>conftest.er1
7504   ac_status=$?
7505   grep -v '^ *+' conftest.er1 >conftest.err
7506   rm -f conftest.er1
7507   cat conftest.err >&5
7508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509   (exit $ac_status); } &&
7510          { ac_try='test -z "$ac_c_werror_flag"
7511                          || test ! -s conftest.err'
7512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513   (eval $ac_try) 2>&5
7514   ac_status=$?
7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516   (exit $ac_status); }; } &&
7517          { ac_try='test -s conftest.$ac_objext'
7518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519   (eval $ac_try) 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); }; }; then
7523   ac_cv_type_size_t=yes
7524 else
7525   echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7527
7528 ac_cv_type_size_t=no
7529 fi
7530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7531 fi
7532 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7533 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7534 if test $ac_cv_type_size_t = yes; then
7535   :
7536 else
7537
7538 cat >>confdefs.h <<_ACEOF
7539 #define size_t unsigned
7540 _ACEOF
7541
7542 fi
7543
7544
7545   echo "$as_me:$LINENO: checking for long long" >&5
7546 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7547 if test "${ac_cv_type_long_long+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   cat >conftest.$ac_ext <<_ACEOF
7551 /* confdefs.h.  */
7552 _ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h.  */
7556 long long ll = 1LL; int i = 63;
7557 int
7558 main ()
7559 {
7560 long long llmax = (long long) -1;
7561      return ll << i | ll >> i | llmax / ll | llmax % ll;
7562   ;
7563   return 0;
7564 }
7565 _ACEOF
7566 rm -f conftest.$ac_objext conftest$ac_exeext
7567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7568   (eval $ac_link) 2>conftest.er1
7569   ac_status=$?
7570   grep -v '^ *+' conftest.er1 >conftest.err
7571   rm -f conftest.er1
7572   cat conftest.err >&5
7573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574   (exit $ac_status); } &&
7575          { ac_try='test -z "$ac_c_werror_flag"
7576                          || test ! -s conftest.err'
7577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578   (eval $ac_try) 2>&5
7579   ac_status=$?
7580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581   (exit $ac_status); }; } &&
7582          { ac_try='test -s conftest$ac_exeext'
7583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584   (eval $ac_try) 2>&5
7585   ac_status=$?
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); }; }; then
7588   ac_cv_type_long_long=yes
7589 else
7590   echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7592
7593 ac_cv_type_long_long=no
7594 fi
7595 rm -f conftest.err conftest.$ac_objext \
7596       conftest$ac_exeext conftest.$ac_ext
7597 fi
7598 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7599 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7600   if test $ac_cv_type_long_long = yes; then
7601
7602 cat >>confdefs.h <<\_ACEOF
7603 #define HAVE_LONG_LONG 1
7604 _ACEOF
7605
7606   fi
7607
7608
7609   echo "$as_me:$LINENO: checking for long double" >&5
7610 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7611 if test "${gt_cv_c_long_double+set}" = set; then
7612   echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614   if test "$GCC" = yes; then
7615        gt_cv_c_long_double=yes
7616      else
7617        cat >conftest.$ac_ext <<_ACEOF
7618 /* confdefs.h.  */
7619 _ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h.  */
7623
7624          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
7625          long double foo = 0.0;
7626          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7627          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7628
7629 int
7630 main ()
7631 {
7632
7633   ;
7634   return 0;
7635 }
7636 _ACEOF
7637 rm -f conftest.$ac_objext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639   (eval $ac_compile) 2>conftest.er1
7640   ac_status=$?
7641   grep -v '^ *+' conftest.er1 >conftest.err
7642   rm -f conftest.er1
7643   cat conftest.err >&5
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); } &&
7646          { ac_try='test -z "$ac_c_werror_flag"
7647                          || test ! -s conftest.err'
7648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649   (eval $ac_try) 2>&5
7650   ac_status=$?
7651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652   (exit $ac_status); }; } &&
7653          { ac_try='test -s conftest.$ac_objext'
7654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655   (eval $ac_try) 2>&5
7656   ac_status=$?
7657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658   (exit $ac_status); }; }; then
7659   gt_cv_c_long_double=yes
7660 else
7661   echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7663
7664 gt_cv_c_long_double=no
7665 fi
7666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7667      fi
7668 fi
7669 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7670 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7671   if test $gt_cv_c_long_double = yes; then
7672
7673 cat >>confdefs.h <<\_ACEOF
7674 #define HAVE_LONG_DOUBLE 1
7675 _ACEOF
7676
7677   fi
7678
7679
7680   echo "$as_me:$LINENO: checking for wchar_t" >&5
7681 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7682 if test "${gt_cv_c_wchar_t+set}" = set; then
7683   echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685   cat >conftest.$ac_ext <<_ACEOF
7686 /* confdefs.h.  */
7687 _ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h.  */
7691 #include <stddef.h>
7692        wchar_t foo = (wchar_t)'\0';
7693 int
7694 main ()
7695 {
7696
7697   ;
7698   return 0;
7699 }
7700 _ACEOF
7701 rm -f conftest.$ac_objext
7702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7703   (eval $ac_compile) 2>conftest.er1
7704   ac_status=$?
7705   grep -v '^ *+' conftest.er1 >conftest.err
7706   rm -f conftest.er1
7707   cat conftest.err >&5
7708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709   (exit $ac_status); } &&
7710          { ac_try='test -z "$ac_c_werror_flag"
7711                          || test ! -s conftest.err'
7712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713   (eval $ac_try) 2>&5
7714   ac_status=$?
7715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716   (exit $ac_status); }; } &&
7717          { ac_try='test -s conftest.$ac_objext'
7718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719   (eval $ac_try) 2>&5
7720   ac_status=$?
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); }; }; then
7723   gt_cv_c_wchar_t=yes
7724 else
7725   echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7727
7728 gt_cv_c_wchar_t=no
7729 fi
7730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7731 fi
7732 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7733 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7734   if test $gt_cv_c_wchar_t = yes; then
7735
7736 cat >>confdefs.h <<\_ACEOF
7737 #define HAVE_WCHAR_T 1
7738 _ACEOF
7739
7740   fi
7741
7742
7743   echo "$as_me:$LINENO: checking for wint_t" >&5
7744 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7745 if test "${gt_cv_c_wint_t+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   cat >conftest.$ac_ext <<_ACEOF
7749 /* confdefs.h.  */
7750 _ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h.  */
7754 #include <wchar.h>
7755        wint_t foo = (wchar_t)'\0';
7756 int
7757 main ()
7758 {
7759
7760   ;
7761   return 0;
7762 }
7763 _ACEOF
7764 rm -f conftest.$ac_objext
7765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7766   (eval $ac_compile) 2>conftest.er1
7767   ac_status=$?
7768   grep -v '^ *+' conftest.er1 >conftest.err
7769   rm -f conftest.er1
7770   cat conftest.err >&5
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); } &&
7773          { ac_try='test -z "$ac_c_werror_flag"
7774                          || test ! -s conftest.err'
7775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776   (eval $ac_try) 2>&5
7777   ac_status=$?
7778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779   (exit $ac_status); }; } &&
7780          { ac_try='test -s conftest.$ac_objext'
7781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782   (eval $ac_try) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); }; }; then
7786   gt_cv_c_wint_t=yes
7787 else
7788   echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791 gt_cv_c_wint_t=no
7792 fi
7793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7794 fi
7795 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7796 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7797   if test $gt_cv_c_wint_t = yes; then
7798
7799 cat >>confdefs.h <<\_ACEOF
7800 #define HAVE_WINT_T 1
7801 _ACEOF
7802
7803   fi
7804
7805
7806   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7807 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7808 if test "${gl_cv_header_inttypes_h+set}" = set; then
7809   echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811   cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h.  */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h.  */
7817 #include <sys/types.h>
7818 #include <inttypes.h>
7819 int
7820 main ()
7821 {
7822 uintmax_t i = (uintmax_t) -1;
7823   ;
7824   return 0;
7825 }
7826 _ACEOF
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829   (eval $ac_compile) 2>conftest.er1
7830   ac_status=$?
7831   grep -v '^ *+' conftest.er1 >conftest.err
7832   rm -f conftest.er1
7833   cat conftest.err >&5
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); } &&
7836          { ac_try='test -z "$ac_c_werror_flag"
7837                          || test ! -s conftest.err'
7838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839   (eval $ac_try) 2>&5
7840   ac_status=$?
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); }; } &&
7843          { ac_try='test -s conftest.$ac_objext'
7844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845   (eval $ac_try) 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; }; then
7849   gl_cv_header_inttypes_h=yes
7850 else
7851   echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7853
7854 gl_cv_header_inttypes_h=no
7855 fi
7856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7857 fi
7858 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7859 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7860   if test $gl_cv_header_inttypes_h = yes; then
7861
7862 cat >>confdefs.h <<_ACEOF
7863 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7864 _ACEOF
7865
7866   fi
7867
7868
7869   echo "$as_me:$LINENO: checking for stdint.h" >&5
7870 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7871 if test "${gl_cv_header_stdint_h+set}" = set; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874   cat >conftest.$ac_ext <<_ACEOF
7875 /* confdefs.h.  */
7876 _ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h.  */
7880 #include <sys/types.h>
7881 #include <stdint.h>
7882 int
7883 main ()
7884 {
7885 uintmax_t i = (uintmax_t) -1;
7886   ;
7887   return 0;
7888 }
7889 _ACEOF
7890 rm -f conftest.$ac_objext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892   (eval $ac_compile) 2>conftest.er1
7893   ac_status=$?
7894   grep -v '^ *+' conftest.er1 >conftest.err
7895   rm -f conftest.er1
7896   cat conftest.err >&5
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); } &&
7899          { ac_try='test -z "$ac_c_werror_flag"
7900                          || test ! -s conftest.err'
7901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902   (eval $ac_try) 2>&5
7903   ac_status=$?
7904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); }; } &&
7906          { ac_try='test -s conftest.$ac_objext'
7907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908   (eval $ac_try) 2>&5
7909   ac_status=$?
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); }; }; then
7912   gl_cv_header_stdint_h=yes
7913 else
7914   echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.$ac_ext >&5
7916
7917 gl_cv_header_stdint_h=no
7918 fi
7919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7920 fi
7921 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7922 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7923   if test $gl_cv_header_stdint_h = yes; then
7924
7925 cat >>confdefs.h <<_ACEOF
7926 #define HAVE_STDINT_H_WITH_UINTMAX 1
7927 _ACEOF
7928
7929   fi
7930
7931
7932
7933
7934   echo "$as_me:$LINENO: checking for intmax_t" >&5
7935 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7936 if test "${gt_cv_c_intmax_t+set}" = set; then
7937   echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939   cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h.  */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h.  */
7945
7946 #include <stddef.h>
7947 #include <stdlib.h>
7948 #if HAVE_STDINT_H_WITH_UINTMAX
7949 #include <stdint.h>
7950 #endif
7951 #if HAVE_INTTYPES_H_WITH_UINTMAX
7952 #include <inttypes.h>
7953 #endif
7954
7955 int
7956 main ()
7957 {
7958 intmax_t x = -1;
7959   ;
7960   return 0;
7961 }
7962 _ACEOF
7963 rm -f conftest.$ac_objext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7965   (eval $ac_compile) 2>conftest.er1
7966   ac_status=$?
7967   grep -v '^ *+' conftest.er1 >conftest.err
7968   rm -f conftest.er1
7969   cat conftest.err >&5
7970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971   (exit $ac_status); } &&
7972          { ac_try='test -z "$ac_c_werror_flag"
7973                          || test ! -s conftest.err'
7974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975   (eval $ac_try) 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); }; } &&
7979          { ac_try='test -s conftest.$ac_objext'
7980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981   (eval $ac_try) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; }; then
7985   gt_cv_c_intmax_t=yes
7986 else
7987   echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990 gt_cv_c_intmax_t=no
7991 fi
7992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7993 fi
7994 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
7995 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
7996   if test $gt_cv_c_intmax_t = yes; then
7997
7998 cat >>confdefs.h <<\_ACEOF
7999 #define HAVE_INTMAX_T 1
8000 _ACEOF
8001
8002   fi
8003
8004
8005
8006   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8007 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8008 if test "${gt_cv_func_printf_posix+set}" = set; then
8009   echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011
8012       if test "$cross_compiling" = yes; then
8013
8014         cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h.  */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h.  */
8020
8021 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8022   notposix
8023 #endif
8024
8025 _ACEOF
8026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8027   $EGREP "notposix" >/dev/null 2>&1; then
8028   gt_cv_func_printf_posix="guessing no"
8029 else
8030   gt_cv_func_printf_posix="guessing yes"
8031 fi
8032 rm -f conftest*
8033
8034
8035 else
8036   cat >conftest.$ac_ext <<_ACEOF
8037 /* confdefs.h.  */
8038 _ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h.  */
8042
8043 #include <stdio.h>
8044 #include <string.h>
8045 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8046    dollar expansion (possibly an autoconf bug).  */
8047 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8048 static char buf[100];
8049 int main ()
8050 {
8051   sprintf (buf, format, 33, 55);
8052   return (strcmp (buf, "55 33") != 0);
8053 }
8054 _ACEOF
8055 rm -f conftest$ac_exeext
8056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8057   (eval $ac_link) 2>&5
8058   ac_status=$?
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062   (eval $ac_try) 2>&5
8063   ac_status=$?
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); }; }; then
8066   gt_cv_func_printf_posix=yes
8067 else
8068   echo "$as_me: program exited with status $ac_status" >&5
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8071
8072 ( exit $ac_status )
8073 gt_cv_func_printf_posix=no
8074 fi
8075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8076 fi
8077
8078 fi
8079 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8080 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8081   case $gt_cv_func_printf_posix in
8082     *yes)
8083
8084 cat >>confdefs.h <<\_ACEOF
8085 #define HAVE_POSIX_PRINTF 1
8086 _ACEOF
8087
8088       ;;
8089   esac
8090
8091 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8092 # for constant arguments.  Useless!
8093 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8094 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8095 if test "${ac_cv_working_alloca_h+set}" = set; then
8096   echo $ECHO_N "(cached) $ECHO_C" >&6
8097 else
8098   cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h.  */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h.  */
8104 #include <alloca.h>
8105 int
8106 main ()
8107 {
8108 char *p = (char *) alloca (2 * sizeof (int));
8109   ;
8110   return 0;
8111 }
8112 _ACEOF
8113 rm -f conftest.$ac_objext conftest$ac_exeext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8115   (eval $ac_link) 2>conftest.er1
8116   ac_status=$?
8117   grep -v '^ *+' conftest.er1 >conftest.err
8118   rm -f conftest.er1
8119   cat conftest.err >&5
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } &&
8122          { ac_try='test -z "$ac_c_werror_flag"
8123                          || test ! -s conftest.err'
8124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125   (eval $ac_try) 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); }; } &&
8129          { ac_try='test -s conftest$ac_exeext'
8130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131   (eval $ac_try) 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; }; then
8135   ac_cv_working_alloca_h=yes
8136 else
8137   echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8139
8140 ac_cv_working_alloca_h=no
8141 fi
8142 rm -f conftest.err conftest.$ac_objext \
8143       conftest$ac_exeext conftest.$ac_ext
8144 fi
8145 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8146 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8147 if test $ac_cv_working_alloca_h = yes; then
8148
8149 cat >>confdefs.h <<\_ACEOF
8150 #define HAVE_ALLOCA_H 1
8151 _ACEOF
8152
8153 fi
8154
8155 echo "$as_me:$LINENO: checking for alloca" >&5
8156 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8157 if test "${ac_cv_func_alloca_works+set}" = set; then
8158   echo $ECHO_N "(cached) $ECHO_C" >&6
8159 else
8160   cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h.  */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h.  */
8166 #ifdef __GNUC__
8167 # define alloca __builtin_alloca
8168 #else
8169 # ifdef _MSC_VER
8170 #  include <malloc.h>
8171 #  define alloca _alloca
8172 # else
8173 #  if HAVE_ALLOCA_H
8174 #   include <alloca.h>
8175 #  else
8176 #   ifdef _AIX
8177  #pragma alloca
8178 #   else
8179 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8180 char *alloca ();
8181 #    endif
8182 #   endif
8183 #  endif
8184 # endif
8185 #endif
8186
8187 int
8188 main ()
8189 {
8190 char *p = (char *) alloca (1);
8191   ;
8192   return 0;
8193 }
8194 _ACEOF
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8197   (eval $ac_link) 2>conftest.er1
8198   ac_status=$?
8199   grep -v '^ *+' conftest.er1 >conftest.err
8200   rm -f conftest.er1
8201   cat conftest.err >&5
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } &&
8204          { ac_try='test -z "$ac_c_werror_flag"
8205                          || test ! -s conftest.err'
8206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207   (eval $ac_try) 2>&5
8208   ac_status=$?
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); }; } &&
8211          { ac_try='test -s conftest$ac_exeext'
8212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213   (eval $ac_try) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; }; then
8217   ac_cv_func_alloca_works=yes
8218 else
8219   echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8221
8222 ac_cv_func_alloca_works=no
8223 fi
8224 rm -f conftest.err conftest.$ac_objext \
8225       conftest$ac_exeext conftest.$ac_ext
8226 fi
8227 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8228 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8229
8230 if test $ac_cv_func_alloca_works = yes; then
8231
8232 cat >>confdefs.h <<\_ACEOF
8233 #define HAVE_ALLOCA 1
8234 _ACEOF
8235
8236 else
8237   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8238 # that cause trouble.  Some versions do not even contain alloca or
8239 # contain a buggy version.  If you still want to use their alloca,
8240 # use ar to extract alloca.o from them instead of compiling alloca.c.
8241
8242 ALLOCA=alloca.$ac_objext
8243
8244 cat >>confdefs.h <<\_ACEOF
8245 #define C_ALLOCA 1
8246 _ACEOF
8247
8248
8249 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8250 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8251 if test "${ac_cv_os_cray+set}" = set; then
8252   echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254   cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h.  */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h.  */
8260 #if defined(CRAY) && ! defined(CRAY2)
8261 webecray
8262 #else
8263 wenotbecray
8264 #endif
8265
8266 _ACEOF
8267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8268   $EGREP "webecray" >/dev/null 2>&1; then
8269   ac_cv_os_cray=yes
8270 else
8271   ac_cv_os_cray=no
8272 fi
8273 rm -f conftest*
8274
8275 fi
8276 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8277 echo "${ECHO_T}$ac_cv_os_cray" >&6
8278 if test $ac_cv_os_cray = yes; then
8279   for ac_func in _getb67 GETB67 getb67; do
8280     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8281 echo "$as_me:$LINENO: checking for $ac_func" >&5
8282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8283 if eval "test \"\${$as_ac_var+set}\" = set"; then
8284   echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
8286   cat >conftest.$ac_ext <<_ACEOF
8287 /* confdefs.h.  */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h.  */
8292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8294 #define $ac_func innocuous_$ac_func
8295
8296 /* System header to define __stub macros and hopefully few prototypes,
8297     which can conflict with char $ac_func (); below.
8298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8299     <limits.h> exists even on freestanding compilers.  */
8300
8301 #ifdef __STDC__
8302 # include <limits.h>
8303 #else
8304 # include <assert.h>
8305 #endif
8306
8307 #undef $ac_func
8308
8309 /* Override any gcc2 internal prototype to avoid an error.  */
8310 #ifdef __cplusplus
8311 extern "C"
8312 {
8313 #endif
8314 /* We use char because int might match the return type of a gcc2
8315    builtin and then its argument prototype would still apply.  */
8316 char $ac_func ();
8317 /* The GNU C library defines this for functions which it implements
8318     to always fail with ENOSYS.  Some functions are actually named
8319     something starting with __ and the normal name is an alias.  */
8320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8321 choke me
8322 #else
8323 char (*f) () = $ac_func;
8324 #endif
8325 #ifdef __cplusplus
8326 }
8327 #endif
8328
8329 int
8330 main ()
8331 {
8332 return f != $ac_func;
8333   ;
8334   return 0;
8335 }
8336 _ACEOF
8337 rm -f conftest.$ac_objext conftest$ac_exeext
8338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8339   (eval $ac_link) 2>conftest.er1
8340   ac_status=$?
8341   grep -v '^ *+' conftest.er1 >conftest.err
8342   rm -f conftest.er1
8343   cat conftest.err >&5
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); } &&
8346          { ac_try='test -z "$ac_c_werror_flag"
8347                          || test ! -s conftest.err'
8348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349   (eval $ac_try) 2>&5
8350   ac_status=$?
8351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352   (exit $ac_status); }; } &&
8353          { ac_try='test -s conftest$ac_exeext'
8354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355   (eval $ac_try) 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); }; }; then
8359   eval "$as_ac_var=yes"
8360 else
8361   echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8363
8364 eval "$as_ac_var=no"
8365 fi
8366 rm -f conftest.err conftest.$ac_objext \
8367       conftest$ac_exeext conftest.$ac_ext
8368 fi
8369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8371 if test `eval echo '${'$as_ac_var'}'` = yes; then
8372
8373 cat >>confdefs.h <<_ACEOF
8374 #define CRAY_STACKSEG_END $ac_func
8375 _ACEOF
8376
8377     break
8378 fi
8379
8380   done
8381 fi
8382
8383 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8384 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8385 if test "${ac_cv_c_stack_direction+set}" = set; then
8386   echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388   if test "$cross_compiling" = yes; then
8389   ac_cv_c_stack_direction=0
8390 else
8391   cat >conftest.$ac_ext <<_ACEOF
8392 /* confdefs.h.  */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h.  */
8397 int
8398 find_stack_direction ()
8399 {
8400   static char *addr = 0;
8401   auto char dummy;
8402   if (addr == 0)
8403     {
8404       addr = &dummy;
8405       return find_stack_direction ();
8406     }
8407   else
8408     return (&dummy > addr) ? 1 : -1;
8409 }
8410
8411 int
8412 main ()
8413 {
8414   exit (find_stack_direction () < 0);
8415 }
8416 _ACEOF
8417 rm -f conftest$ac_exeext
8418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8419   (eval $ac_link) 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424   (eval $ac_try) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }; }; then
8428   ac_cv_c_stack_direction=1
8429 else
8430   echo "$as_me: program exited with status $ac_status" >&5
8431 echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8433
8434 ( exit $ac_status )
8435 ac_cv_c_stack_direction=-1
8436 fi
8437 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8438 fi
8439 fi
8440 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8441 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8442
8443 cat >>confdefs.h <<_ACEOF
8444 #define STACK_DIRECTION $ac_cv_c_stack_direction
8445 _ACEOF
8446
8447
8448 fi
8449
8450
8451
8452 for ac_header in stdlib.h unistd.h
8453 do
8454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8456   echo "$as_me:$LINENO: checking for $ac_header" >&5
8457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8459   echo $ECHO_N "(cached) $ECHO_C" >&6
8460 fi
8461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8463 else
8464   # Is the header compilable?
8465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8467 cat >conftest.$ac_ext <<_ACEOF
8468 /* confdefs.h.  */
8469 _ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h.  */
8473 $ac_includes_default
8474 #include <$ac_header>
8475 _ACEOF
8476 rm -f conftest.$ac_objext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8478   (eval $ac_compile) 2>conftest.er1
8479   ac_status=$?
8480   grep -v '^ *+' conftest.er1 >conftest.err
8481   rm -f conftest.er1
8482   cat conftest.err >&5
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); } &&
8485          { ac_try='test -z "$ac_c_werror_flag"
8486                          || test ! -s conftest.err'
8487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488   (eval $ac_try) 2>&5
8489   ac_status=$?
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); }; } &&
8492          { ac_try='test -s conftest.$ac_objext'
8493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494   (eval $ac_try) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); }; }; then
8498   ac_header_compiler=yes
8499 else
8500   echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8502
8503 ac_header_compiler=no
8504 fi
8505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8507 echo "${ECHO_T}$ac_header_compiler" >&6
8508
8509 # Is the header present?
8510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8512 cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h.  */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h.  */
8518 #include <$ac_header>
8519 _ACEOF
8520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8521   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8522   ac_status=$?
8523   grep -v '^ *+' conftest.er1 >conftest.err
8524   rm -f conftest.er1
8525   cat conftest.err >&5
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); } >/dev/null; then
8528   if test -s conftest.err; then
8529     ac_cpp_err=$ac_c_preproc_warn_flag
8530     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8531   else
8532     ac_cpp_err=
8533   fi
8534 else
8535   ac_cpp_err=yes
8536 fi
8537 if test -z "$ac_cpp_err"; then
8538   ac_header_preproc=yes
8539 else
8540   echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8542
8543   ac_header_preproc=no
8544 fi
8545 rm -f conftest.err conftest.$ac_ext
8546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8547 echo "${ECHO_T}$ac_header_preproc" >&6
8548
8549 # So?  What about this header?
8550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8551   yes:no: )
8552     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8556     ac_header_preproc=yes
8557     ;;
8558   no:yes:* )
8559     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8561     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8562 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8563     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8565     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8566 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8569     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8571     (
8572       cat <<\_ASBOX
8573 ## ------------------------------------------ ##
8574 ## Report this to the AC_PACKAGE_NAME lists.  ##
8575 ## ------------------------------------------ ##
8576 _ASBOX
8577     ) |
8578       sed "s/^/$as_me: WARNING:     /" >&2
8579     ;;
8580 esac
8581 echo "$as_me:$LINENO: checking for $ac_header" >&5
8582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8584   echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586   eval "$as_ac_Header=\$ac_header_preproc"
8587 fi
8588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8590
8591 fi
8592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8593   cat >>confdefs.h <<_ACEOF
8594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8595 _ACEOF
8596
8597 fi
8598
8599 done
8600
8601
8602 for ac_func in getpagesize
8603 do
8604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8605 echo "$as_me:$LINENO: checking for $ac_func" >&5
8606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8607 if eval "test \"\${$as_ac_var+set}\" = set"; then
8608   echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610   cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h.  */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h.  */
8616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8618 #define $ac_func innocuous_$ac_func
8619
8620 /* System header to define __stub macros and hopefully few prototypes,
8621     which can conflict with char $ac_func (); below.
8622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8623     <limits.h> exists even on freestanding compilers.  */
8624
8625 #ifdef __STDC__
8626 # include <limits.h>
8627 #else
8628 # include <assert.h>
8629 #endif
8630
8631 #undef $ac_func
8632
8633 /* Override any gcc2 internal prototype to avoid an error.  */
8634 #ifdef __cplusplus
8635 extern "C"
8636 {
8637 #endif
8638 /* We use char because int might match the return type of a gcc2
8639    builtin and then its argument prototype would still apply.  */
8640 char $ac_func ();
8641 /* The GNU C library defines this for functions which it implements
8642     to always fail with ENOSYS.  Some functions are actually named
8643     something starting with __ and the normal name is an alias.  */
8644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8645 choke me
8646 #else
8647 char (*f) () = $ac_func;
8648 #endif
8649 #ifdef __cplusplus
8650 }
8651 #endif
8652
8653 int
8654 main ()
8655 {
8656 return f != $ac_func;
8657   ;
8658   return 0;
8659 }
8660 _ACEOF
8661 rm -f conftest.$ac_objext conftest$ac_exeext
8662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663   (eval $ac_link) 2>conftest.er1
8664   ac_status=$?
8665   grep -v '^ *+' conftest.er1 >conftest.err
8666   rm -f conftest.er1
8667   cat conftest.err >&5
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   (exit $ac_status); } &&
8670          { ac_try='test -z "$ac_c_werror_flag"
8671                          || test ! -s conftest.err'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; } &&
8677          { ac_try='test -s conftest$ac_exeext'
8678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679   (eval $ac_try) 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); }; }; then
8683   eval "$as_ac_var=yes"
8684 else
8685   echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8687
8688 eval "$as_ac_var=no"
8689 fi
8690 rm -f conftest.err conftest.$ac_objext \
8691       conftest$ac_exeext conftest.$ac_ext
8692 fi
8693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8695 if test `eval echo '${'$as_ac_var'}'` = yes; then
8696   cat >>confdefs.h <<_ACEOF
8697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8698 _ACEOF
8699
8700 fi
8701 done
8702
8703 echo "$as_me:$LINENO: checking for working mmap" >&5
8704 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8705 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8706   echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708   if test "$cross_compiling" = yes; then
8709   ac_cv_func_mmap_fixed_mapped=no
8710 else
8711   cat >conftest.$ac_ext <<_ACEOF
8712 /* confdefs.h.  */
8713 _ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h.  */
8717 $ac_includes_default
8718 /* malloc might have been renamed as rpl_malloc. */
8719 #undef malloc
8720
8721 /* Thanks to Mike Haertel and Jim Avera for this test.
8722    Here is a matrix of mmap possibilities:
8723         mmap private not fixed
8724         mmap private fixed at somewhere currently unmapped
8725         mmap private fixed at somewhere already mapped
8726         mmap shared not fixed
8727         mmap shared fixed at somewhere currently unmapped
8728         mmap shared fixed at somewhere already mapped
8729    For private mappings, we should verify that changes cannot be read()
8730    back from the file, nor mmap's back from the file at a different
8731    address.  (There have been systems where private was not correctly
8732    implemented like the infamous i386 svr4.0, and systems where the
8733    VM page cache was not coherent with the file system buffer cache
8734    like early versions of FreeBSD and possibly contemporary NetBSD.)
8735    For shared mappings, we should conversely verify that changes get
8736    propagated back to all the places they're supposed to be.
8737
8738    Grep wants private fixed already mapped.
8739    The main things grep needs to know about mmap are:
8740    * does it exist and is it safe to write into the mmap'd area
8741    * how to use it (BSD variants)  */
8742
8743 #include <fcntl.h>
8744 #include <sys/mman.h>
8745
8746 #if !STDC_HEADERS && !HAVE_STDLIB_H
8747 char *malloc ();
8748 #endif
8749
8750 /* This mess was copied from the GNU getpagesize.h.  */
8751 #if !HAVE_GETPAGESIZE
8752 /* Assume that all systems that can run configure have sys/param.h.  */
8753 # if !HAVE_SYS_PARAM_H
8754 #  define HAVE_SYS_PARAM_H 1
8755 # endif
8756
8757 # ifdef _SC_PAGESIZE
8758 #  define getpagesize() sysconf(_SC_PAGESIZE)
8759 # else /* no _SC_PAGESIZE */
8760 #  if HAVE_SYS_PARAM_H
8761 #   include <sys/param.h>
8762 #   ifdef EXEC_PAGESIZE
8763 #    define getpagesize() EXEC_PAGESIZE
8764 #   else /* no EXEC_PAGESIZE */
8765 #    ifdef NBPG
8766 #     define getpagesize() NBPG * CLSIZE
8767 #     ifndef CLSIZE
8768 #      define CLSIZE 1
8769 #     endif /* no CLSIZE */
8770 #    else /* no NBPG */
8771 #     ifdef NBPC
8772 #      define getpagesize() NBPC
8773 #     else /* no NBPC */
8774 #      ifdef PAGESIZE
8775 #       define getpagesize() PAGESIZE
8776 #      endif /* PAGESIZE */
8777 #     endif /* no NBPC */
8778 #    endif /* no NBPG */
8779 #   endif /* no EXEC_PAGESIZE */
8780 #  else /* no HAVE_SYS_PARAM_H */
8781 #   define getpagesize() 8192   /* punt totally */
8782 #  endif /* no HAVE_SYS_PARAM_H */
8783 # endif /* no _SC_PAGESIZE */
8784
8785 #endif /* no HAVE_GETPAGESIZE */
8786
8787 int
8788 main ()
8789 {
8790   char *data, *data2, *data3;
8791   int i, pagesize;
8792   int fd;
8793
8794   pagesize = getpagesize ();
8795
8796   /* First, make a file with some known garbage in it. */
8797   data = (char *) malloc (pagesize);
8798   if (!data)
8799     exit (1);
8800   for (i = 0; i < pagesize; ++i)
8801     *(data + i) = rand ();
8802   umask (0);
8803   fd = creat ("conftest.mmap", 0600);
8804   if (fd < 0)
8805     exit (1);
8806   if (write (fd, data, pagesize) != pagesize)
8807     exit (1);
8808   close (fd);
8809
8810   /* Next, try to mmap the file at a fixed address which already has
8811      something else allocated at it.  If we can, also make sure that
8812      we see the same garbage.  */
8813   fd = open ("conftest.mmap", O_RDWR);
8814   if (fd < 0)
8815     exit (1);
8816   data2 = (char *) malloc (2 * pagesize);
8817   if (!data2)
8818     exit (1);
8819   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8820   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8821                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8822     exit (1);
8823   for (i = 0; i < pagesize; ++i)
8824     if (*(data + i) != *(data2 + i))
8825       exit (1);
8826
8827   /* Finally, make sure that changes to the mapped area do not
8828      percolate back to the file as seen by read().  (This is a bug on
8829      some variants of i386 svr4.0.)  */
8830   for (i = 0; i < pagesize; ++i)
8831     *(data2 + i) = *(data2 + i) + 1;
8832   data3 = (char *) malloc (pagesize);
8833   if (!data3)
8834     exit (1);
8835   if (read (fd, data3, pagesize) != pagesize)
8836     exit (1);
8837   for (i = 0; i < pagesize; ++i)
8838     if (*(data + i) != *(data3 + i))
8839       exit (1);
8840   close (fd);
8841   exit (0);
8842 }
8843 _ACEOF
8844 rm -f conftest$ac_exeext
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846   (eval $ac_link) 2>&5
8847   ac_status=$?
8848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851   (eval $ac_try) 2>&5
8852   ac_status=$?
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); }; }; then
8855   ac_cv_func_mmap_fixed_mapped=yes
8856 else
8857   echo "$as_me: program exited with status $ac_status" >&5
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8860
8861 ( exit $ac_status )
8862 ac_cv_func_mmap_fixed_mapped=no
8863 fi
8864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8865 fi
8866 fi
8867 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8868 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8869 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8870
8871 cat >>confdefs.h <<\_ACEOF
8872 #define HAVE_MMAP 1
8873 _ACEOF
8874
8875 fi
8876 rm -f conftest.mmap
8877
8878
8879     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8880 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8881 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8882   echo $ECHO_N "(cached) $ECHO_C" >&6
8883 else
8884   cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h.  */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h.  */
8890
8891 #include <features.h>
8892 #ifdef __GNU_LIBRARY__
8893  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8894   Lucky GNU user
8895  #endif
8896 #endif
8897
8898 _ACEOF
8899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8900   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8901   ac_cv_gnu_library_2_1=yes
8902 else
8903   ac_cv_gnu_library_2_1=no
8904 fi
8905 rm -f conftest*
8906
8907
8908
8909 fi
8910 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8911 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8912
8913     GLIBC21="$ac_cv_gnu_library_2_1"
8914
8915
8916
8917
8918   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8919 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8920 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8921   echo $ECHO_N "(cached) $ECHO_C" >&6
8922 else
8923
8924       if test "$cross_compiling" = yes; then
8925
8926           # Guess based on the CPU.
8927           case "$host_cpu" in
8928             alpha* | i3456786 | m68k | s390*)
8929               gt_cv_int_divbyzero_sigfpe="guessing yes";;
8930             *)
8931               gt_cv_int_divbyzero_sigfpe="guessing no";;
8932           esac
8933
8934 else
8935   cat >conftest.$ac_ext <<_ACEOF
8936 /* confdefs.h.  */
8937 _ACEOF
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h.  */
8941
8942 #include <stdlib.h>
8943 #include <signal.h>
8944
8945 static void
8946 #ifdef __cplusplus
8947 sigfpe_handler (int sig)
8948 #else
8949 sigfpe_handler (sig) int sig;
8950 #endif
8951 {
8952   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
8953   exit (sig != SIGFPE);
8954 }
8955
8956 int x = 1;
8957 int y = 0;
8958 int z;
8959 int nan;
8960
8961 int main ()
8962 {
8963   signal (SIGFPE, sigfpe_handler);
8964 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
8965 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8966   signal (SIGTRAP, sigfpe_handler);
8967 #endif
8968 /* Linux/SPARC yields signal SIGILL.  */
8969 #if defined (__sparc__) && defined (__linux__)
8970   signal (SIGILL, sigfpe_handler);
8971 #endif
8972
8973   z = x / y;
8974   nan = y / y;
8975   exit (1);
8976 }
8977
8978 _ACEOF
8979 rm -f conftest$ac_exeext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8981   (eval $ac_link) 2>&5
8982   ac_status=$?
8983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986   (eval $ac_try) 2>&5
8987   ac_status=$?
8988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); }; }; then
8990   gt_cv_int_divbyzero_sigfpe=yes
8991 else
8992   echo "$as_me: program exited with status $ac_status" >&5
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8995
8996 ( exit $ac_status )
8997 gt_cv_int_divbyzero_sigfpe=no
8998 fi
8999 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9000 fi
9001
9002 fi
9003 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9004 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9005   case "$gt_cv_int_divbyzero_sigfpe" in
9006     *yes) value=1;;
9007     *) value=0;;
9008   esac
9009
9010 cat >>confdefs.h <<_ACEOF
9011 #define INTDIV0_RAISES_SIGFPE $value
9012 _ACEOF
9013
9014
9015
9016   echo "$as_me:$LINENO: checking for unsigned long long" >&5
9017 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9018 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9019   echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021   cat >conftest.$ac_ext <<_ACEOF
9022 /* confdefs.h.  */
9023 _ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h.  */
9027 unsigned long long ull = 1ULL; int i = 63;
9028 int
9029 main ()
9030 {
9031 unsigned long long ullmax = (unsigned long long) -1;
9032      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9033   ;
9034   return 0;
9035 }
9036 _ACEOF
9037 rm -f conftest.$ac_objext conftest$ac_exeext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9039   (eval $ac_link) 2>conftest.er1
9040   ac_status=$?
9041   grep -v '^ *+' conftest.er1 >conftest.err
9042   rm -f conftest.er1
9043   cat conftest.err >&5
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); } &&
9046          { ac_try='test -z "$ac_c_werror_flag"
9047                          || test ! -s conftest.err'
9048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049   (eval $ac_try) 2>&5
9050   ac_status=$?
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); }; } &&
9053          { ac_try='test -s conftest$ac_exeext'
9054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055   (eval $ac_try) 2>&5
9056   ac_status=$?
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); }; }; then
9059   ac_cv_type_unsigned_long_long=yes
9060 else
9061   echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9063
9064 ac_cv_type_unsigned_long_long=no
9065 fi
9066 rm -f conftest.err conftest.$ac_objext \
9067       conftest$ac_exeext conftest.$ac_ext
9068 fi
9069 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9070 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9071   if test $ac_cv_type_unsigned_long_long = yes; then
9072
9073 cat >>confdefs.h <<\_ACEOF
9074 #define HAVE_UNSIGNED_LONG_LONG 1
9075 _ACEOF
9076
9077   fi
9078
9079
9080
9081
9082   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9083
9084     test $ac_cv_type_unsigned_long_long = yes \
9085       && ac_type='unsigned long long' \
9086       || ac_type='unsigned long'
9087
9088 cat >>confdefs.h <<_ACEOF
9089 #define uintmax_t $ac_type
9090 _ACEOF
9091
9092   else
9093
9094 cat >>confdefs.h <<\_ACEOF
9095 #define HAVE_UINTMAX_T 1
9096 _ACEOF
9097
9098   fi
9099
9100
9101   echo "$as_me:$LINENO: checking for inttypes.h" >&5
9102 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9103 if test "${gt_cv_header_inttypes_h+set}" = set; then
9104   echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106
9107     cat >conftest.$ac_ext <<_ACEOF
9108 /* confdefs.h.  */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h.  */
9113 #include <sys/types.h>
9114 #include <inttypes.h>
9115 int
9116 main ()
9117 {
9118
9119   ;
9120   return 0;
9121 }
9122 _ACEOF
9123 rm -f conftest.$ac_objext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9125   (eval $ac_compile) 2>conftest.er1
9126   ac_status=$?
9127   grep -v '^ *+' conftest.er1 >conftest.err
9128   rm -f conftest.er1
9129   cat conftest.err >&5
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); } &&
9132          { ac_try='test -z "$ac_c_werror_flag"
9133                          || test ! -s conftest.err'
9134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135   (eval $ac_try) 2>&5
9136   ac_status=$?
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); }; } &&
9139          { ac_try='test -s conftest.$ac_objext'
9140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141   (eval $ac_try) 2>&5
9142   ac_status=$?
9143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); }; }; then
9145   gt_cv_header_inttypes_h=yes
9146 else
9147   echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9149
9150 gt_cv_header_inttypes_h=no
9151 fi
9152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9153
9154 fi
9155 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9156 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9157   if test $gt_cv_header_inttypes_h = yes; then
9158
9159 cat >>confdefs.h <<_ACEOF
9160 #define HAVE_INTTYPES_H 1
9161 _ACEOF
9162
9163   fi
9164
9165
9166
9167   if test $gt_cv_header_inttypes_h = yes; then
9168     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9169 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9170 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9171   echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173
9174         cat >conftest.$ac_ext <<_ACEOF
9175 /* confdefs.h.  */
9176 _ACEOF
9177 cat confdefs.h >>conftest.$ac_ext
9178 cat >>conftest.$ac_ext <<_ACEOF
9179 /* end confdefs.h.  */
9180 #include <inttypes.h>
9181 #ifdef PRId32
9182 char *p = PRId32;
9183 #endif
9184
9185 int
9186 main ()
9187 {
9188
9189   ;
9190   return 0;
9191 }
9192 _ACEOF
9193 rm -f conftest.$ac_objext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9195   (eval $ac_compile) 2>conftest.er1
9196   ac_status=$?
9197   grep -v '^ *+' conftest.er1 >conftest.err
9198   rm -f conftest.er1
9199   cat conftest.err >&5
9200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201   (exit $ac_status); } &&
9202          { ac_try='test -z "$ac_c_werror_flag"
9203                          || test ! -s conftest.err'
9204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205   (eval $ac_try) 2>&5
9206   ac_status=$?
9207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208   (exit $ac_status); }; } &&
9209          { ac_try='test -s conftest.$ac_objext'
9210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211   (eval $ac_try) 2>&5
9212   ac_status=$?
9213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214   (exit $ac_status); }; }; then
9215   gt_cv_inttypes_pri_broken=no
9216 else
9217   echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9219
9220 gt_cv_inttypes_pri_broken=yes
9221 fi
9222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9223
9224 fi
9225 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9226 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9227   fi
9228   if test "$gt_cv_inttypes_pri_broken" = yes; then
9229
9230 cat >>confdefs.h <<_ACEOF
9231 #define PRI_MACROS_BROKEN 1
9232 _ACEOF
9233
9234   fi
9235
9236
9237
9238 for ac_header in stdint.h
9239 do
9240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9242   echo "$as_me:$LINENO: checking for $ac_header" >&5
9243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9245   echo $ECHO_N "(cached) $ECHO_C" >&6
9246 fi
9247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9249 else
9250   # Is the header compilable?
9251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9253 cat >conftest.$ac_ext <<_ACEOF
9254 /* confdefs.h.  */
9255 _ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h.  */
9259 $ac_includes_default
9260 #include <$ac_header>
9261 _ACEOF
9262 rm -f conftest.$ac_objext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9264   (eval $ac_compile) 2>conftest.er1
9265   ac_status=$?
9266   grep -v '^ *+' conftest.er1 >conftest.err
9267   rm -f conftest.er1
9268   cat conftest.err >&5
9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); } &&
9271          { ac_try='test -z "$ac_c_werror_flag"
9272                          || test ! -s conftest.err'
9273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274   (eval $ac_try) 2>&5
9275   ac_status=$?
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   (exit $ac_status); }; } &&
9278          { ac_try='test -s conftest.$ac_objext'
9279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280   (eval $ac_try) 2>&5
9281   ac_status=$?
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); }; }; then
9284   ac_header_compiler=yes
9285 else
9286   echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9288
9289 ac_header_compiler=no
9290 fi
9291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9293 echo "${ECHO_T}$ac_header_compiler" >&6
9294
9295 # Is the header present?
9296 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9298 cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h.  */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h.  */
9304 #include <$ac_header>
9305 _ACEOF
9306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9307   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9308   ac_status=$?
9309   grep -v '^ *+' conftest.er1 >conftest.err
9310   rm -f conftest.er1
9311   cat conftest.err >&5
9312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313   (exit $ac_status); } >/dev/null; then
9314   if test -s conftest.err; then
9315     ac_cpp_err=$ac_c_preproc_warn_flag
9316     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9317   else
9318     ac_cpp_err=
9319   fi
9320 else
9321   ac_cpp_err=yes
9322 fi
9323 if test -z "$ac_cpp_err"; then
9324   ac_header_preproc=yes
9325 else
9326   echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329   ac_header_preproc=no
9330 fi
9331 rm -f conftest.err conftest.$ac_ext
9332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9333 echo "${ECHO_T}$ac_header_preproc" >&6
9334
9335 # So?  What about this header?
9336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9337   yes:no: )
9338     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9340     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9341 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9342     ac_header_preproc=yes
9343     ;;
9344   no:yes:* )
9345     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9347     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9348 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9349     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9350 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9351     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9352 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9353     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9355     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9356 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9357     (
9358       cat <<\_ASBOX
9359 ## ------------------------------------------ ##
9360 ## Report this to the AC_PACKAGE_NAME lists.  ##
9361 ## ------------------------------------------ ##
9362 _ASBOX
9363     ) |
9364       sed "s/^/$as_me: WARNING:     /" >&2
9365     ;;
9366 esac
9367 echo "$as_me:$LINENO: checking for $ac_header" >&5
9368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9370   echo $ECHO_N "(cached) $ECHO_C" >&6
9371 else
9372   eval "$as_ac_Header=\$ac_header_preproc"
9373 fi
9374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9376
9377 fi
9378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9379   cat >>confdefs.h <<_ACEOF
9380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9381 _ACEOF
9382
9383 fi
9384
9385 done
9386
9387     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9388 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9389   result=
9390   cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h.  */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h.  */
9396
9397 #include <limits.h>
9398 #if HAVE_STDINT_H
9399 #include <stdint.h>
9400 #endif
9401 #ifdef SIZE_MAX
9402 Found it
9403 #endif
9404
9405 _ACEOF
9406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9407   $EGREP "Found it" >/dev/null 2>&1; then
9408   result=yes
9409 fi
9410 rm -f conftest*
9411
9412   if test -z "$result"; then
9413                     if test "$cross_compiling" = yes; then
9414   # Depending upon the size, compute the lo and hi bounds.
9415 cat >conftest.$ac_ext <<_ACEOF
9416 /* confdefs.h.  */
9417 _ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h.  */
9421 #include <stddef.h>
9422 int
9423 main ()
9424 {
9425 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9426 test_array [0] = 0
9427
9428   ;
9429   return 0;
9430 }
9431 _ACEOF
9432 rm -f conftest.$ac_objext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9434   (eval $ac_compile) 2>conftest.er1
9435   ac_status=$?
9436   grep -v '^ *+' conftest.er1 >conftest.err
9437   rm -f conftest.er1
9438   cat conftest.err >&5
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); } &&
9441          { ac_try='test -z "$ac_c_werror_flag"
9442                          || test ! -s conftest.err'
9443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444   (eval $ac_try) 2>&5
9445   ac_status=$?
9446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447   (exit $ac_status); }; } &&
9448          { ac_try='test -s conftest.$ac_objext'
9449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450   (eval $ac_try) 2>&5
9451   ac_status=$?
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); }; }; then
9454   ac_lo=0 ac_mid=0
9455   while :; do
9456     cat >conftest.$ac_ext <<_ACEOF
9457 /* confdefs.h.  */
9458 _ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h.  */
9462 #include <stddef.h>
9463 int
9464 main ()
9465 {
9466 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9467 test_array [0] = 0
9468
9469   ;
9470   return 0;
9471 }
9472 _ACEOF
9473 rm -f conftest.$ac_objext
9474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9475   (eval $ac_compile) 2>conftest.er1
9476   ac_status=$?
9477   grep -v '^ *+' conftest.er1 >conftest.err
9478   rm -f conftest.er1
9479   cat conftest.err >&5
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); } &&
9482          { ac_try='test -z "$ac_c_werror_flag"
9483                          || test ! -s conftest.err'
9484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485   (eval $ac_try) 2>&5
9486   ac_status=$?
9487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488   (exit $ac_status); }; } &&
9489          { ac_try='test -s conftest.$ac_objext'
9490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491   (eval $ac_try) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); }; }; then
9495   ac_hi=$ac_mid; break
9496 else
9497   echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9499
9500 ac_lo=`expr $ac_mid + 1`
9501                     if test $ac_lo -le $ac_mid; then
9502                       ac_lo= ac_hi=
9503                       break
9504                     fi
9505                     ac_mid=`expr 2 '*' $ac_mid + 1`
9506 fi
9507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9508   done
9509 else
9510   echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9512
9513 cat >conftest.$ac_ext <<_ACEOF
9514 /* confdefs.h.  */
9515 _ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h.  */
9519 #include <stddef.h>
9520 int
9521 main ()
9522 {
9523 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9524 test_array [0] = 0
9525
9526   ;
9527   return 0;
9528 }
9529 _ACEOF
9530 rm -f conftest.$ac_objext
9531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9532   (eval $ac_compile) 2>conftest.er1
9533   ac_status=$?
9534   grep -v '^ *+' conftest.er1 >conftest.err
9535   rm -f conftest.er1
9536   cat conftest.err >&5
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); } &&
9539          { ac_try='test -z "$ac_c_werror_flag"
9540                          || test ! -s conftest.err'
9541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542   (eval $ac_try) 2>&5
9543   ac_status=$?
9544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545   (exit $ac_status); }; } &&
9546          { ac_try='test -s conftest.$ac_objext'
9547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548   (eval $ac_try) 2>&5
9549   ac_status=$?
9550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551   (exit $ac_status); }; }; then
9552   ac_hi=-1 ac_mid=-1
9553   while :; do
9554     cat >conftest.$ac_ext <<_ACEOF
9555 /* confdefs.h.  */
9556 _ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h.  */
9560 #include <stddef.h>
9561 int
9562 main ()
9563 {
9564 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9565 test_array [0] = 0
9566
9567   ;
9568   return 0;
9569 }
9570 _ACEOF
9571 rm -f conftest.$ac_objext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9573   (eval $ac_compile) 2>conftest.er1
9574   ac_status=$?
9575   grep -v '^ *+' conftest.er1 >conftest.err
9576   rm -f conftest.er1
9577   cat conftest.err >&5
9578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579   (exit $ac_status); } &&
9580          { ac_try='test -z "$ac_c_werror_flag"
9581                          || test ! -s conftest.err'
9582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583   (eval $ac_try) 2>&5
9584   ac_status=$?
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); }; } &&
9587          { ac_try='test -s conftest.$ac_objext'
9588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589   (eval $ac_try) 2>&5
9590   ac_status=$?
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); }; }; then
9593   ac_lo=$ac_mid; break
9594 else
9595   echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9597
9598 ac_hi=`expr '(' $ac_mid ')' - 1`
9599                        if test $ac_mid -le $ac_hi; then
9600                          ac_lo= ac_hi=
9601                          break
9602                        fi
9603                        ac_mid=`expr 2 '*' $ac_mid`
9604 fi
9605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9606   done
9607 else
9608   echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9610
9611 ac_lo= ac_hi=
9612 fi
9613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9614 fi
9615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9616 # Binary search between lo and hi bounds.
9617 while test "x$ac_lo" != "x$ac_hi"; do
9618   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9619   cat >conftest.$ac_ext <<_ACEOF
9620 /* confdefs.h.  */
9621 _ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h.  */
9625 #include <stddef.h>
9626 int
9627 main ()
9628 {
9629 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9630 test_array [0] = 0
9631
9632   ;
9633   return 0;
9634 }
9635 _ACEOF
9636 rm -f conftest.$ac_objext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9638   (eval $ac_compile) 2>conftest.er1
9639   ac_status=$?
9640   grep -v '^ *+' conftest.er1 >conftest.err
9641   rm -f conftest.er1
9642   cat conftest.err >&5
9643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644   (exit $ac_status); } &&
9645          { ac_try='test -z "$ac_c_werror_flag"
9646                          || test ! -s conftest.err'
9647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648   (eval $ac_try) 2>&5
9649   ac_status=$?
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); }; } &&
9652          { ac_try='test -s conftest.$ac_objext'
9653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654   (eval $ac_try) 2>&5
9655   ac_status=$?
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); }; }; then
9658   ac_hi=$ac_mid
9659 else
9660   echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9662
9663 ac_lo=`expr '(' $ac_mid ')' + 1`
9664 fi
9665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9666 done
9667 case $ac_lo in
9668 ?*) res_hi=$ac_lo;;
9669 '') result=? ;;
9670 esac
9671 else
9672   if test "$cross_compiling" = yes; then
9673   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9674 See \`config.log' for more details." >&5
9675 echo "$as_me: error: cannot run test program while cross compiling
9676 See \`config.log' for more details." >&2;}
9677    { (exit 1); exit 1; }; }
9678 else
9679   cat >conftest.$ac_ext <<_ACEOF
9680 /* confdefs.h.  */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h.  */
9685 #include <stddef.h>
9686 long longval () { return ~(size_t)0 / 10; }
9687 unsigned long ulongval () { return ~(size_t)0 / 10; }
9688 #include <stdio.h>
9689 #include <stdlib.h>
9690 int
9691 main ()
9692 {
9693
9694   FILE *f = fopen ("conftest.val", "w");
9695   if (! f)
9696     exit (1);
9697   if ((~(size_t)0 / 10) < 0)
9698     {
9699       long i = longval ();
9700       if (i != (~(size_t)0 / 10))
9701         exit (1);
9702       fprintf (f, "%ld\n", i);
9703     }
9704   else
9705     {
9706       unsigned long i = ulongval ();
9707       if (i != (~(size_t)0 / 10))
9708         exit (1);
9709       fprintf (f, "%lu\n", i);
9710     }
9711   exit (ferror (f) || fclose (f) != 0);
9712
9713   ;
9714   return 0;
9715 }
9716 _ACEOF
9717 rm -f conftest$ac_exeext
9718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9719   (eval $ac_link) 2>&5
9720   ac_status=$?
9721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724   (eval $ac_try) 2>&5
9725   ac_status=$?
9726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727   (exit $ac_status); }; }; then
9728   res_hi=`cat conftest.val`
9729 else
9730   echo "$as_me: program exited with status $ac_status" >&5
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9733
9734 ( exit $ac_status )
9735 result=?
9736 fi
9737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9738 fi
9739 fi
9740 rm -f conftest.val
9741     if test "$cross_compiling" = yes; then
9742   # Depending upon the size, compute the lo and hi bounds.
9743 cat >conftest.$ac_ext <<_ACEOF
9744 /* confdefs.h.  */
9745 _ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h.  */
9749 #include <stddef.h>
9750 int
9751 main ()
9752 {
9753 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9754 test_array [0] = 0
9755
9756   ;
9757   return 0;
9758 }
9759 _ACEOF
9760 rm -f conftest.$ac_objext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9762   (eval $ac_compile) 2>conftest.er1
9763   ac_status=$?
9764   grep -v '^ *+' conftest.er1 >conftest.err
9765   rm -f conftest.er1
9766   cat conftest.err >&5
9767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768   (exit $ac_status); } &&
9769          { ac_try='test -z "$ac_c_werror_flag"
9770                          || test ! -s conftest.err'
9771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772   (eval $ac_try) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); }; } &&
9776          { ac_try='test -s conftest.$ac_objext'
9777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778   (eval $ac_try) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; }; then
9782   ac_lo=0 ac_mid=0
9783   while :; do
9784     cat >conftest.$ac_ext <<_ACEOF
9785 /* confdefs.h.  */
9786 _ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h.  */
9790 #include <stddef.h>
9791 int
9792 main ()
9793 {
9794 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9795 test_array [0] = 0
9796
9797   ;
9798   return 0;
9799 }
9800 _ACEOF
9801 rm -f conftest.$ac_objext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9803   (eval $ac_compile) 2>conftest.er1
9804   ac_status=$?
9805   grep -v '^ *+' conftest.er1 >conftest.err
9806   rm -f conftest.er1
9807   cat conftest.err >&5
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); } &&
9810          { ac_try='test -z "$ac_c_werror_flag"
9811                          || test ! -s conftest.err'
9812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813   (eval $ac_try) 2>&5
9814   ac_status=$?
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); }; } &&
9817          { ac_try='test -s conftest.$ac_objext'
9818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819   (eval $ac_try) 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); }; }; then
9823   ac_hi=$ac_mid; break
9824 else
9825   echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9827
9828 ac_lo=`expr $ac_mid + 1`
9829                     if test $ac_lo -le $ac_mid; then
9830                       ac_lo= ac_hi=
9831                       break
9832                     fi
9833                     ac_mid=`expr 2 '*' $ac_mid + 1`
9834 fi
9835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9836   done
9837 else
9838   echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9840
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h.  */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h.  */
9847 #include <stddef.h>
9848 int
9849 main ()
9850 {
9851 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9852 test_array [0] = 0
9853
9854   ;
9855   return 0;
9856 }
9857 _ACEOF
9858 rm -f conftest.$ac_objext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9860   (eval $ac_compile) 2>conftest.er1
9861   ac_status=$?
9862   grep -v '^ *+' conftest.er1 >conftest.err
9863   rm -f conftest.er1
9864   cat conftest.err >&5
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); } &&
9867          { ac_try='test -z "$ac_c_werror_flag"
9868                          || test ! -s conftest.err'
9869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870   (eval $ac_try) 2>&5
9871   ac_status=$?
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); }; } &&
9874          { ac_try='test -s conftest.$ac_objext'
9875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876   (eval $ac_try) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }; }; then
9880   ac_hi=-1 ac_mid=-1
9881   while :; do
9882     cat >conftest.$ac_ext <<_ACEOF
9883 /* confdefs.h.  */
9884 _ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h.  */
9888 #include <stddef.h>
9889 int
9890 main ()
9891 {
9892 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9893 test_array [0] = 0
9894
9895   ;
9896   return 0;
9897 }
9898 _ACEOF
9899 rm -f conftest.$ac_objext
9900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9901   (eval $ac_compile) 2>conftest.er1
9902   ac_status=$?
9903   grep -v '^ *+' conftest.er1 >conftest.err
9904   rm -f conftest.er1
9905   cat conftest.err >&5
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); } &&
9908          { ac_try='test -z "$ac_c_werror_flag"
9909                          || test ! -s conftest.err'
9910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911   (eval $ac_try) 2>&5
9912   ac_status=$?
9913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914   (exit $ac_status); }; } &&
9915          { ac_try='test -s conftest.$ac_objext'
9916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917   (eval $ac_try) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; }; then
9921   ac_lo=$ac_mid; break
9922 else
9923   echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9925
9926 ac_hi=`expr '(' $ac_mid ')' - 1`
9927                        if test $ac_mid -le $ac_hi; then
9928                          ac_lo= ac_hi=
9929                          break
9930                        fi
9931                        ac_mid=`expr 2 '*' $ac_mid`
9932 fi
9933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9934   done
9935 else
9936   echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 ac_lo= ac_hi=
9940 fi
9941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9942 fi
9943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9944 # Binary search between lo and hi bounds.
9945 while test "x$ac_lo" != "x$ac_hi"; do
9946   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9947   cat >conftest.$ac_ext <<_ACEOF
9948 /* confdefs.h.  */
9949 _ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h.  */
9953 #include <stddef.h>
9954 int
9955 main ()
9956 {
9957 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9958 test_array [0] = 0
9959
9960   ;
9961   return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966   (eval $ac_compile) 2>conftest.er1
9967   ac_status=$?
9968   grep -v '^ *+' conftest.er1 >conftest.err
9969   rm -f conftest.er1
9970   cat conftest.err >&5
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); } &&
9973          { ac_try='test -z "$ac_c_werror_flag"
9974                          || test ! -s conftest.err'
9975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976   (eval $ac_try) 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); }; } &&
9980          { ac_try='test -s conftest.$ac_objext'
9981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982   (eval $ac_try) 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; }; then
9986   ac_hi=$ac_mid
9987 else
9988   echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991 ac_lo=`expr '(' $ac_mid ')' + 1`
9992 fi
9993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9994 done
9995 case $ac_lo in
9996 ?*) res_lo=$ac_lo;;
9997 '') result=? ;;
9998 esac
9999 else
10000   if test "$cross_compiling" = yes; then
10001   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10002 See \`config.log' for more details." >&5
10003 echo "$as_me: error: cannot run test program while cross compiling
10004 See \`config.log' for more details." >&2;}
10005    { (exit 1); exit 1; }; }
10006 else
10007   cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h.  */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h.  */
10013 #include <stddef.h>
10014 long longval () { return ~(size_t)0 % 10; }
10015 unsigned long ulongval () { return ~(size_t)0 % 10; }
10016 #include <stdio.h>
10017 #include <stdlib.h>
10018 int
10019 main ()
10020 {
10021
10022   FILE *f = fopen ("conftest.val", "w");
10023   if (! f)
10024     exit (1);
10025   if ((~(size_t)0 % 10) < 0)
10026     {
10027       long i = longval ();
10028       if (i != (~(size_t)0 % 10))
10029         exit (1);
10030       fprintf (f, "%ld\n", i);
10031     }
10032   else
10033     {
10034       unsigned long i = ulongval ();
10035       if (i != (~(size_t)0 % 10))
10036         exit (1);
10037       fprintf (f, "%lu\n", i);
10038     }
10039   exit (ferror (f) || fclose (f) != 0);
10040
10041   ;
10042   return 0;
10043 }
10044 _ACEOF
10045 rm -f conftest$ac_exeext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047   (eval $ac_link) 2>&5
10048   ac_status=$?
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052   (eval $ac_try) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); }; }; then
10056   res_lo=`cat conftest.val`
10057 else
10058   echo "$as_me: program exited with status $ac_status" >&5
10059 echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10061
10062 ( exit $ac_status )
10063 result=?
10064 fi
10065 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10066 fi
10067 fi
10068 rm -f conftest.val
10069     if test "$cross_compiling" = yes; then
10070   # Depending upon the size, compute the lo and hi bounds.
10071 cat >conftest.$ac_ext <<_ACEOF
10072 /* confdefs.h.  */
10073 _ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h.  */
10077 #include <stddef.h>
10078 int
10079 main ()
10080 {
10081 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10082 test_array [0] = 0
10083
10084   ;
10085   return 0;
10086 }
10087 _ACEOF
10088 rm -f conftest.$ac_objext
10089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10090   (eval $ac_compile) 2>conftest.er1
10091   ac_status=$?
10092   grep -v '^ *+' conftest.er1 >conftest.err
10093   rm -f conftest.er1
10094   cat conftest.err >&5
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); } &&
10097          { ac_try='test -z "$ac_c_werror_flag"
10098                          || test ! -s conftest.err'
10099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100   (eval $ac_try) 2>&5
10101   ac_status=$?
10102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103   (exit $ac_status); }; } &&
10104          { ac_try='test -s conftest.$ac_objext'
10105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106   (eval $ac_try) 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); }; }; then
10110   ac_lo=0 ac_mid=0
10111   while :; do
10112     cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h.  */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h.  */
10118 #include <stddef.h>
10119 int
10120 main ()
10121 {
10122 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10123 test_array [0] = 0
10124
10125   ;
10126   return 0;
10127 }
10128 _ACEOF
10129 rm -f conftest.$ac_objext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10131   (eval $ac_compile) 2>conftest.er1
10132   ac_status=$?
10133   grep -v '^ *+' conftest.er1 >conftest.err
10134   rm -f conftest.er1
10135   cat conftest.err >&5
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); } &&
10138          { ac_try='test -z "$ac_c_werror_flag"
10139                          || test ! -s conftest.err'
10140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141   (eval $ac_try) 2>&5
10142   ac_status=$?
10143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144   (exit $ac_status); }; } &&
10145          { ac_try='test -s conftest.$ac_objext'
10146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147   (eval $ac_try) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; }; then
10151   ac_hi=$ac_mid; break
10152 else
10153   echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10155
10156 ac_lo=`expr $ac_mid + 1`
10157                     if test $ac_lo -le $ac_mid; then
10158                       ac_lo= ac_hi=
10159                       break
10160                     fi
10161                     ac_mid=`expr 2 '*' $ac_mid + 1`
10162 fi
10163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10164   done
10165 else
10166   echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10168
10169 cat >conftest.$ac_ext <<_ACEOF
10170 /* confdefs.h.  */
10171 _ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h.  */
10175 #include <stddef.h>
10176 int
10177 main ()
10178 {
10179 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10180 test_array [0] = 0
10181
10182   ;
10183   return 0;
10184 }
10185 _ACEOF
10186 rm -f conftest.$ac_objext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10188   (eval $ac_compile) 2>conftest.er1
10189   ac_status=$?
10190   grep -v '^ *+' conftest.er1 >conftest.err
10191   rm -f conftest.er1
10192   cat conftest.err >&5
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); } &&
10195          { ac_try='test -z "$ac_c_werror_flag"
10196                          || test ! -s conftest.err'
10197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198   (eval $ac_try) 2>&5
10199   ac_status=$?
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); }; } &&
10202          { ac_try='test -s conftest.$ac_objext'
10203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204   (eval $ac_try) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; }; then
10208   ac_hi=-1 ac_mid=-1
10209   while :; do
10210     cat >conftest.$ac_ext <<_ACEOF
10211 /* confdefs.h.  */
10212 _ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h.  */
10216 #include <stddef.h>
10217 int
10218 main ()
10219 {
10220 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10221 test_array [0] = 0
10222
10223   ;
10224   return 0;
10225 }
10226 _ACEOF
10227 rm -f conftest.$ac_objext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10229   (eval $ac_compile) 2>conftest.er1
10230   ac_status=$?
10231   grep -v '^ *+' conftest.er1 >conftest.err
10232   rm -f conftest.er1
10233   cat conftest.err >&5
10234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235   (exit $ac_status); } &&
10236          { ac_try='test -z "$ac_c_werror_flag"
10237                          || test ! -s conftest.err'
10238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239   (eval $ac_try) 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); }; } &&
10243          { ac_try='test -s conftest.$ac_objext'
10244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245   (eval $ac_try) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); }; }; then
10249   ac_lo=$ac_mid; break
10250 else
10251   echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10253
10254 ac_hi=`expr '(' $ac_mid ')' - 1`
10255                        if test $ac_mid -le $ac_hi; then
10256                          ac_lo= ac_hi=
10257                          break
10258                        fi
10259                        ac_mid=`expr 2 '*' $ac_mid`
10260 fi
10261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10262   done
10263 else
10264   echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10266
10267 ac_lo= ac_hi=
10268 fi
10269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10270 fi
10271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10272 # Binary search between lo and hi bounds.
10273 while test "x$ac_lo" != "x$ac_hi"; do
10274   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10275   cat >conftest.$ac_ext <<_ACEOF
10276 /* confdefs.h.  */
10277 _ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h.  */
10281 #include <stddef.h>
10282 int
10283 main ()
10284 {
10285 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10286 test_array [0] = 0
10287
10288   ;
10289   return 0;
10290 }
10291 _ACEOF
10292 rm -f conftest.$ac_objext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10294   (eval $ac_compile) 2>conftest.er1
10295   ac_status=$?
10296   grep -v '^ *+' conftest.er1 >conftest.err
10297   rm -f conftest.er1
10298   cat conftest.err >&5
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } &&
10301          { ac_try='test -z "$ac_c_werror_flag"
10302                          || test ! -s conftest.err'
10303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304   (eval $ac_try) 2>&5
10305   ac_status=$?
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); }; } &&
10308          { ac_try='test -s conftest.$ac_objext'
10309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310   (eval $ac_try) 2>&5
10311   ac_status=$?
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); }; }; then
10314   ac_hi=$ac_mid
10315 else
10316   echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10318
10319 ac_lo=`expr '(' $ac_mid ')' + 1`
10320 fi
10321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10322 done
10323 case $ac_lo in
10324 ?*) fits_in_uint=$ac_lo;;
10325 '') result=? ;;
10326 esac
10327 else
10328   if test "$cross_compiling" = yes; then
10329   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10330 See \`config.log' for more details." >&5
10331 echo "$as_me: error: cannot run test program while cross compiling
10332 See \`config.log' for more details." >&2;}
10333    { (exit 1); exit 1; }; }
10334 else
10335   cat >conftest.$ac_ext <<_ACEOF
10336 /* confdefs.h.  */
10337 _ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h.  */
10341 #include <stddef.h>
10342 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10343 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10344 #include <stdio.h>
10345 #include <stdlib.h>
10346 int
10347 main ()
10348 {
10349
10350   FILE *f = fopen ("conftest.val", "w");
10351   if (! f)
10352     exit (1);
10353   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10354     {
10355       long i = longval ();
10356       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10357         exit (1);
10358       fprintf (f, "%ld\n", i);
10359     }
10360   else
10361     {
10362       unsigned long i = ulongval ();
10363       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10364         exit (1);
10365       fprintf (f, "%lu\n", i);
10366     }
10367   exit (ferror (f) || fclose (f) != 0);
10368
10369   ;
10370   return 0;
10371 }
10372 _ACEOF
10373 rm -f conftest$ac_exeext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375   (eval $ac_link) 2>&5
10376   ac_status=$?
10377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380   (eval $ac_try) 2>&5
10381   ac_status=$?
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); }; }; then
10384   fits_in_uint=`cat conftest.val`
10385 else
10386   echo "$as_me: program exited with status $ac_status" >&5
10387 echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10389
10390 ( exit $ac_status )
10391 result=?
10392 fi
10393 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10394 fi
10395 fi
10396 rm -f conftest.val
10397     if test "$fits_in_uint" = 1; then
10398                   cat >conftest.$ac_ext <<_ACEOF
10399 /* confdefs.h.  */
10400 _ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h.  */
10404 #include <stddef.h>
10405         extern size_t foo;
10406         extern unsigned long foo;
10407
10408 int
10409 main ()
10410 {
10411
10412   ;
10413   return 0;
10414 }
10415 _ACEOF
10416 rm -f conftest.$ac_objext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10418   (eval $ac_compile) 2>conftest.er1
10419   ac_status=$?
10420   grep -v '^ *+' conftest.er1 >conftest.err
10421   rm -f conftest.er1
10422   cat conftest.err >&5
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } &&
10425          { ac_try='test -z "$ac_c_werror_flag"
10426                          || test ! -s conftest.err'
10427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428   (eval $ac_try) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); }; } &&
10432          { ac_try='test -s conftest.$ac_objext'
10433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434   (eval $ac_try) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; }; then
10438   fits_in_uint=0
10439 else
10440   echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443 fi
10444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10445     fi
10446     if test -z "$result"; then
10447       if test "$fits_in_uint" = 1; then
10448         result="$res_hi$res_lo"U
10449       else
10450         result="$res_hi$res_lo"UL
10451       fi
10452     else
10453             result='~(size_t)0'
10454     fi
10455   fi
10456   echo "$as_me:$LINENO: result: $result" >&5
10457 echo "${ECHO_T}$result" >&6
10458   if test "$result" != yes; then
10459
10460 cat >>confdefs.h <<_ACEOF
10461 #define SIZE_MAX $result
10462 _ACEOF
10463
10464   fi
10465
10466
10467
10468
10469
10470 for ac_header in stdint.h
10471 do
10472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10474   echo "$as_me:$LINENO: checking for $ac_header" >&5
10475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10477   echo $ECHO_N "(cached) $ECHO_C" >&6
10478 fi
10479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10481 else
10482   # Is the header compilable?
10483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10485 cat >conftest.$ac_ext <<_ACEOF
10486 /* confdefs.h.  */
10487 _ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h.  */
10491 $ac_includes_default
10492 #include <$ac_header>
10493 _ACEOF
10494 rm -f conftest.$ac_objext
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496   (eval $ac_compile) 2>conftest.er1
10497   ac_status=$?
10498   grep -v '^ *+' conftest.er1 >conftest.err
10499   rm -f conftest.er1
10500   cat conftest.err >&5
10501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502   (exit $ac_status); } &&
10503          { ac_try='test -z "$ac_c_werror_flag"
10504                          || test ! -s conftest.err'
10505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506   (eval $ac_try) 2>&5
10507   ac_status=$?
10508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509   (exit $ac_status); }; } &&
10510          { ac_try='test -s conftest.$ac_objext'
10511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512   (eval $ac_try) 2>&5
10513   ac_status=$?
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); }; }; then
10516   ac_header_compiler=yes
10517 else
10518   echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10520
10521 ac_header_compiler=no
10522 fi
10523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10525 echo "${ECHO_T}$ac_header_compiler" >&6
10526
10527 # Is the header present?
10528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10530 cat >conftest.$ac_ext <<_ACEOF
10531 /* confdefs.h.  */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h.  */
10536 #include <$ac_header>
10537 _ACEOF
10538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10539   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10540   ac_status=$?
10541   grep -v '^ *+' conftest.er1 >conftest.err
10542   rm -f conftest.er1
10543   cat conftest.err >&5
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); } >/dev/null; then
10546   if test -s conftest.err; then
10547     ac_cpp_err=$ac_c_preproc_warn_flag
10548     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10549   else
10550     ac_cpp_err=
10551   fi
10552 else
10553   ac_cpp_err=yes
10554 fi
10555 if test -z "$ac_cpp_err"; then
10556   ac_header_preproc=yes
10557 else
10558   echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10560
10561   ac_header_preproc=no
10562 fi
10563 rm -f conftest.err conftest.$ac_ext
10564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10565 echo "${ECHO_T}$ac_header_preproc" >&6
10566
10567 # So?  What about this header?
10568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10569   yes:no: )
10570     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10574     ac_header_preproc=yes
10575     ;;
10576   no:yes:* )
10577     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10579     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10580 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10581     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10583     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10584 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10587     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10589     (
10590       cat <<\_ASBOX
10591 ## ------------------------------------------ ##
10592 ## Report this to the AC_PACKAGE_NAME lists.  ##
10593 ## ------------------------------------------ ##
10594 _ASBOX
10595     ) |
10596       sed "s/^/$as_me: WARNING:     /" >&2
10597     ;;
10598 esac
10599 echo "$as_me:$LINENO: checking for $ac_header" >&5
10600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10602   echo $ECHO_N "(cached) $ECHO_C" >&6
10603 else
10604   eval "$as_ac_Header=\$ac_header_preproc"
10605 fi
10606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10608
10609 fi
10610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10611   cat >>confdefs.h <<_ACEOF
10612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10613 _ACEOF
10614
10615 fi
10616
10617 done
10618
10619
10620
10621
10622
10623
10624
10625
10626   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10627 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10628 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10629   echo $ECHO_N "(cached) $ECHO_C" >&6
10630 else
10631   cat >conftest.$ac_ext <<_ACEOF
10632 /* confdefs.h.  */
10633 _ACEOF
10634 cat confdefs.h >>conftest.$ac_ext
10635 cat >>conftest.$ac_ext <<_ACEOF
10636 /* end confdefs.h.  */
10637 $ac_includes_default
10638 int
10639 main ()
10640 {
10641 if ((ptrdiff_t *) 0)
10642   return 0;
10643 if (sizeof (ptrdiff_t))
10644   return 0;
10645   ;
10646   return 0;
10647 }
10648 _ACEOF
10649 rm -f conftest.$ac_objext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10651   (eval $ac_compile) 2>conftest.er1
10652   ac_status=$?
10653   grep -v '^ *+' conftest.er1 >conftest.err
10654   rm -f conftest.er1
10655   cat conftest.err >&5
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); } &&
10658          { ac_try='test -z "$ac_c_werror_flag"
10659                          || test ! -s conftest.err'
10660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661   (eval $ac_try) 2>&5
10662   ac_status=$?
10663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); }; } &&
10665          { ac_try='test -s conftest.$ac_objext'
10666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667   (eval $ac_try) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); }; }; then
10671   ac_cv_type_ptrdiff_t=yes
10672 else
10673   echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10675
10676 ac_cv_type_ptrdiff_t=no
10677 fi
10678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10679 fi
10680 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10681 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10682 if test $ac_cv_type_ptrdiff_t = yes; then
10683   :
10684 else
10685
10686 cat >>confdefs.h <<\_ACEOF
10687 #define ptrdiff_t long
10688 _ACEOF
10689
10690
10691 fi
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10704 stdlib.h string.h unistd.h sys/param.h
10705 do
10706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10708   echo "$as_me:$LINENO: checking for $ac_header" >&5
10709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10711   echo $ECHO_N "(cached) $ECHO_C" >&6
10712 fi
10713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10715 else
10716   # Is the header compilable?
10717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10719 cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h.  */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h.  */
10725 $ac_includes_default
10726 #include <$ac_header>
10727 _ACEOF
10728 rm -f conftest.$ac_objext
10729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10730   (eval $ac_compile) 2>conftest.er1
10731   ac_status=$?
10732   grep -v '^ *+' conftest.er1 >conftest.err
10733   rm -f conftest.er1
10734   cat conftest.err >&5
10735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); } &&
10737          { ac_try='test -z "$ac_c_werror_flag"
10738                          || test ! -s conftest.err'
10739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740   (eval $ac_try) 2>&5
10741   ac_status=$?
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); }; } &&
10744          { ac_try='test -s conftest.$ac_objext'
10745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746   (eval $ac_try) 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); }; }; then
10750   ac_header_compiler=yes
10751 else
10752   echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10754
10755 ac_header_compiler=no
10756 fi
10757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10759 echo "${ECHO_T}$ac_header_compiler" >&6
10760
10761 # Is the header present?
10762 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10764 cat >conftest.$ac_ext <<_ACEOF
10765 /* confdefs.h.  */
10766 _ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h.  */
10770 #include <$ac_header>
10771 _ACEOF
10772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10773   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10774   ac_status=$?
10775   grep -v '^ *+' conftest.er1 >conftest.err
10776   rm -f conftest.er1
10777   cat conftest.err >&5
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); } >/dev/null; then
10780   if test -s conftest.err; then
10781     ac_cpp_err=$ac_c_preproc_warn_flag
10782     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10783   else
10784     ac_cpp_err=
10785   fi
10786 else
10787   ac_cpp_err=yes
10788 fi
10789 if test -z "$ac_cpp_err"; then
10790   ac_header_preproc=yes
10791 else
10792   echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10794
10795   ac_header_preproc=no
10796 fi
10797 rm -f conftest.err conftest.$ac_ext
10798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10799 echo "${ECHO_T}$ac_header_preproc" >&6
10800
10801 # So?  What about this header?
10802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10803   yes:no: )
10804     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10808     ac_header_preproc=yes
10809     ;;
10810   no:yes:* )
10811     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10813     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10814 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10815     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10817     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10818 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10821     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10823     (
10824       cat <<\_ASBOX
10825 ## ------------------------------------------ ##
10826 ## Report this to the AC_PACKAGE_NAME lists.  ##
10827 ## ------------------------------------------ ##
10828 _ASBOX
10829     ) |
10830       sed "s/^/$as_me: WARNING:     /" >&2
10831     ;;
10832 esac
10833 echo "$as_me:$LINENO: checking for $ac_header" >&5
10834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10836   echo $ECHO_N "(cached) $ECHO_C" >&6
10837 else
10838   eval "$as_ac_Header=\$ac_header_preproc"
10839 fi
10840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10842
10843 fi
10844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10845   cat >>confdefs.h <<_ACEOF
10846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10847 _ACEOF
10848
10849 fi
10850
10851 done
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10877 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10878 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10879 __fsetlocking
10880 do
10881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10882 echo "$as_me:$LINENO: checking for $ac_func" >&5
10883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10884 if eval "test \"\${$as_ac_var+set}\" = set"; then
10885   echo $ECHO_N "(cached) $ECHO_C" >&6
10886 else
10887   cat >conftest.$ac_ext <<_ACEOF
10888 /* confdefs.h.  */
10889 _ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h.  */
10893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10895 #define $ac_func innocuous_$ac_func
10896
10897 /* System header to define __stub macros and hopefully few prototypes,
10898     which can conflict with char $ac_func (); below.
10899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10900     <limits.h> exists even on freestanding compilers.  */
10901
10902 #ifdef __STDC__
10903 # include <limits.h>
10904 #else
10905 # include <assert.h>
10906 #endif
10907
10908 #undef $ac_func
10909
10910 /* Override any gcc2 internal prototype to avoid an error.  */
10911 #ifdef __cplusplus
10912 extern "C"
10913 {
10914 #endif
10915 /* We use char because int might match the return type of a gcc2
10916    builtin and then its argument prototype would still apply.  */
10917 char $ac_func ();
10918 /* The GNU C library defines this for functions which it implements
10919     to always fail with ENOSYS.  Some functions are actually named
10920     something starting with __ and the normal name is an alias.  */
10921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10922 choke me
10923 #else
10924 char (*f) () = $ac_func;
10925 #endif
10926 #ifdef __cplusplus
10927 }
10928 #endif
10929
10930 int
10931 main ()
10932 {
10933 return f != $ac_func;
10934   ;
10935   return 0;
10936 }
10937 _ACEOF
10938 rm -f conftest.$ac_objext conftest$ac_exeext
10939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10940   (eval $ac_link) 2>conftest.er1
10941   ac_status=$?
10942   grep -v '^ *+' conftest.er1 >conftest.err
10943   rm -f conftest.er1
10944   cat conftest.err >&5
10945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946   (exit $ac_status); } &&
10947          { ac_try='test -z "$ac_c_werror_flag"
10948                          || test ! -s conftest.err'
10949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950   (eval $ac_try) 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; } &&
10954          { ac_try='test -s conftest$ac_exeext'
10955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956   (eval $ac_try) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; }; then
10960   eval "$as_ac_var=yes"
10961 else
10962   echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10964
10965 eval "$as_ac_var=no"
10966 fi
10967 rm -f conftest.err conftest.$ac_objext \
10968       conftest$ac_exeext conftest.$ac_ext
10969 fi
10970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10972 if test `eval echo '${'$as_ac_var'}'` = yes; then
10973   cat >>confdefs.h <<_ACEOF
10974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10975 _ACEOF
10976
10977 fi
10978 done
10979
10980
10981
10982   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10983 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
10984 if test "${ac_cv_have_decl__snprintf+set}" = set; then
10985   echo $ECHO_N "(cached) $ECHO_C" >&6
10986 else
10987   cat >conftest.$ac_ext <<_ACEOF
10988 /* confdefs.h.  */
10989 _ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h.  */
10993 #include <stdio.h>
10994 int
10995 main ()
10996 {
10997
10998 #ifndef _snprintf
10999   char *p = (char *) _snprintf;
11000 #endif
11001
11002   ;
11003   return 0;
11004 }
11005 _ACEOF
11006 rm -f conftest.$ac_objext
11007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008   (eval $ac_compile) 2>conftest.er1
11009   ac_status=$?
11010   grep -v '^ *+' conftest.er1 >conftest.err
11011   rm -f conftest.er1
11012   cat conftest.err >&5
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } &&
11015          { ac_try='test -z "$ac_c_werror_flag"
11016                          || test ! -s conftest.err'
11017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018   (eval $ac_try) 2>&5
11019   ac_status=$?
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); }; } &&
11022          { ac_try='test -s conftest.$ac_objext'
11023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024   (eval $ac_try) 2>&5
11025   ac_status=$?
11026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); }; }; then
11028   ac_cv_have_decl__snprintf=yes
11029 else
11030   echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11032
11033 ac_cv_have_decl__snprintf=no
11034 fi
11035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11036 fi
11037 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11038 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11039   if test $ac_cv_have_decl__snprintf = yes; then
11040     gt_value=1
11041   else
11042     gt_value=0
11043   fi
11044
11045 cat >>confdefs.h <<_ACEOF
11046 #define HAVE_DECL__SNPRINTF $gt_value
11047 _ACEOF
11048
11049
11050
11051   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11052 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11053 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11054   echo $ECHO_N "(cached) $ECHO_C" >&6
11055 else
11056   cat >conftest.$ac_ext <<_ACEOF
11057 /* confdefs.h.  */
11058 _ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h.  */
11062 #include <stdio.h>
11063 int
11064 main ()
11065 {
11066
11067 #ifndef _snwprintf
11068   char *p = (char *) _snwprintf;
11069 #endif
11070
11071   ;
11072   return 0;
11073 }
11074 _ACEOF
11075 rm -f conftest.$ac_objext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11077   (eval $ac_compile) 2>conftest.er1
11078   ac_status=$?
11079   grep -v '^ *+' conftest.er1 >conftest.err
11080   rm -f conftest.er1
11081   cat conftest.err >&5
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); } &&
11084          { ac_try='test -z "$ac_c_werror_flag"
11085                          || test ! -s conftest.err'
11086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087   (eval $ac_try) 2>&5
11088   ac_status=$?
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); }; } &&
11091          { ac_try='test -s conftest.$ac_objext'
11092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093   (eval $ac_try) 2>&5
11094   ac_status=$?
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); }; }; then
11097   ac_cv_have_decl__snwprintf=yes
11098 else
11099   echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11101
11102 ac_cv_have_decl__snwprintf=no
11103 fi
11104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11105 fi
11106 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11107 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11108   if test $ac_cv_have_decl__snwprintf = yes; then
11109     gt_value=1
11110   else
11111     gt_value=0
11112   fi
11113
11114 cat >>confdefs.h <<_ACEOF
11115 #define HAVE_DECL__SNWPRINTF $gt_value
11116 _ACEOF
11117
11118
11119
11120
11121   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11122 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11123 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11124   echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126   cat >conftest.$ac_ext <<_ACEOF
11127 /* confdefs.h.  */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h.  */
11132 #include <stdio.h>
11133 int
11134 main ()
11135 {
11136
11137 #ifndef feof_unlocked
11138   char *p = (char *) feof_unlocked;
11139 #endif
11140
11141   ;
11142   return 0;
11143 }
11144 _ACEOF
11145 rm -f conftest.$ac_objext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147   (eval $ac_compile) 2>conftest.er1
11148   ac_status=$?
11149   grep -v '^ *+' conftest.er1 >conftest.err
11150   rm -f conftest.er1
11151   cat conftest.err >&5
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); } &&
11154          { ac_try='test -z "$ac_c_werror_flag"
11155                          || test ! -s conftest.err'
11156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157   (eval $ac_try) 2>&5
11158   ac_status=$?
11159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160   (exit $ac_status); }; } &&
11161          { ac_try='test -s conftest.$ac_objext'
11162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163   (eval $ac_try) 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); }; }; then
11167   ac_cv_have_decl_feof_unlocked=yes
11168 else
11169   echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11171
11172 ac_cv_have_decl_feof_unlocked=no
11173 fi
11174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11175 fi
11176 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11177 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11178   if test $ac_cv_have_decl_feof_unlocked = yes; then
11179     gt_value=1
11180   else
11181     gt_value=0
11182   fi
11183
11184 cat >>confdefs.h <<_ACEOF
11185 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11186 _ACEOF
11187
11188
11189
11190   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11191 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11192 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11193   echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195   cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h.  */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h.  */
11201 #include <stdio.h>
11202 int
11203 main ()
11204 {
11205
11206 #ifndef fgets_unlocked
11207   char *p = (char *) fgets_unlocked;
11208 #endif
11209
11210   ;
11211   return 0;
11212 }
11213 _ACEOF
11214 rm -f conftest.$ac_objext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11216   (eval $ac_compile) 2>conftest.er1
11217   ac_status=$?
11218   grep -v '^ *+' conftest.er1 >conftest.err
11219   rm -f conftest.er1
11220   cat conftest.err >&5
11221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222   (exit $ac_status); } &&
11223          { ac_try='test -z "$ac_c_werror_flag"
11224                          || test ! -s conftest.err'
11225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226   (eval $ac_try) 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); }; } &&
11230          { ac_try='test -s conftest.$ac_objext'
11231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232   (eval $ac_try) 2>&5
11233   ac_status=$?
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); }; }; then
11236   ac_cv_have_decl_fgets_unlocked=yes
11237 else
11238   echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11240
11241 ac_cv_have_decl_fgets_unlocked=no
11242 fi
11243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11244 fi
11245 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11246 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11247   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11248     gt_value=1
11249   else
11250     gt_value=0
11251   fi
11252
11253 cat >>confdefs.h <<_ACEOF
11254 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11255 _ACEOF
11256
11257
11258
11259   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11260 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11261 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11262   echo $ECHO_N "(cached) $ECHO_C" >&6
11263 else
11264   cat >conftest.$ac_ext <<_ACEOF
11265 /* confdefs.h.  */
11266 _ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h.  */
11270 #include <stdio.h>
11271 int
11272 main ()
11273 {
11274
11275 #ifndef getc_unlocked
11276   char *p = (char *) getc_unlocked;
11277 #endif
11278
11279   ;
11280   return 0;
11281 }
11282 _ACEOF
11283 rm -f conftest.$ac_objext
11284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11285   (eval $ac_compile) 2>conftest.er1
11286   ac_status=$?
11287   grep -v '^ *+' conftest.er1 >conftest.err
11288   rm -f conftest.er1
11289   cat conftest.err >&5
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); } &&
11292          { ac_try='test -z "$ac_c_werror_flag"
11293                          || test ! -s conftest.err'
11294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295   (eval $ac_try) 2>&5
11296   ac_status=$?
11297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298   (exit $ac_status); }; } &&
11299          { ac_try='test -s conftest.$ac_objext'
11300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301   (eval $ac_try) 2>&5
11302   ac_status=$?
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); }; }; then
11305   ac_cv_have_decl_getc_unlocked=yes
11306 else
11307   echo "$as_me: failed program was:" >&5
11308 sed 's/^/| /' conftest.$ac_ext >&5
11309
11310 ac_cv_have_decl_getc_unlocked=no
11311 fi
11312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11313 fi
11314 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11315 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11316   if test $ac_cv_have_decl_getc_unlocked = yes; then
11317     gt_value=1
11318   else
11319     gt_value=0
11320   fi
11321
11322 cat >>confdefs.h <<_ACEOF
11323 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11324 _ACEOF
11325
11326
11327
11328   case $gt_cv_func_printf_posix in
11329     *yes) HAVE_POSIX_PRINTF=1 ;;
11330     *) HAVE_POSIX_PRINTF=0 ;;
11331   esac
11332
11333   if test "$ac_cv_func_asprintf" = yes; then
11334     HAVE_ASPRINTF=1
11335   else
11336     HAVE_ASPRINTF=0
11337   fi
11338
11339   if test "$ac_cv_func_snprintf" = yes; then
11340     HAVE_SNPRINTF=1
11341   else
11342     HAVE_SNPRINTF=0
11343   fi
11344
11345   if test "$ac_cv_func_wprintf" = yes; then
11346     HAVE_WPRINTF=1
11347   else
11348     HAVE_WPRINTF=0
11349   fi
11350
11351
11352
11353
11354
11355
11356
11357           am_save_CPPFLAGS="$CPPFLAGS"
11358
11359   for element in $INCICONV; do
11360     haveit=
11361     for x in $CPPFLAGS; do
11362
11363   acl_save_prefix="$prefix"
11364   prefix="$acl_final_prefix"
11365   acl_save_exec_prefix="$exec_prefix"
11366   exec_prefix="$acl_final_exec_prefix"
11367   eval x=\"$x\"
11368   exec_prefix="$acl_save_exec_prefix"
11369   prefix="$acl_save_prefix"
11370
11371       if test "X$x" = "X$element"; then
11372         haveit=yes
11373         break
11374       fi
11375     done
11376     if test -z "$haveit"; then
11377       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11378     fi
11379   done
11380
11381
11382   echo "$as_me:$LINENO: checking for iconv" >&5
11383 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11384 if test "${am_cv_func_iconv+set}" = set; then
11385   echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387
11388     am_cv_func_iconv="no, consider installing GNU libiconv"
11389     am_cv_lib_iconv=no
11390     cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h.  */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h.  */
11396 #include <stdlib.h>
11397 #include <iconv.h>
11398 int
11399 main ()
11400 {
11401 iconv_t cd = iconv_open("","");
11402        iconv(cd,NULL,NULL,NULL,NULL);
11403        iconv_close(cd);
11404   ;
11405   return 0;
11406 }
11407 _ACEOF
11408 rm -f conftest.$ac_objext conftest$ac_exeext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11410   (eval $ac_link) 2>conftest.er1
11411   ac_status=$?
11412   grep -v '^ *+' conftest.er1 >conftest.err
11413   rm -f conftest.er1
11414   cat conftest.err >&5
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); } &&
11417          { ac_try='test -z "$ac_c_werror_flag"
11418                          || test ! -s conftest.err'
11419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420   (eval $ac_try) 2>&5
11421   ac_status=$?
11422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); }; } &&
11424          { ac_try='test -s conftest$ac_exeext'
11425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426   (eval $ac_try) 2>&5
11427   ac_status=$?
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); }; }; then
11430   am_cv_func_iconv=yes
11431 else
11432   echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11434
11435 fi
11436 rm -f conftest.err conftest.$ac_objext \
11437       conftest$ac_exeext conftest.$ac_ext
11438     if test "$am_cv_func_iconv" != yes; then
11439       am_save_LIBS="$LIBS"
11440       LIBS="$LIBS $LIBICONV"
11441       cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h.  */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h.  */
11447 #include <stdlib.h>
11448 #include <iconv.h>
11449 int
11450 main ()
11451 {
11452 iconv_t cd = iconv_open("","");
11453          iconv(cd,NULL,NULL,NULL,NULL);
11454          iconv_close(cd);
11455   ;
11456   return 0;
11457 }
11458 _ACEOF
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461   (eval $ac_link) 2>conftest.er1
11462   ac_status=$?
11463   grep -v '^ *+' conftest.er1 >conftest.err
11464   rm -f conftest.er1
11465   cat conftest.err >&5
11466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467   (exit $ac_status); } &&
11468          { ac_try='test -z "$ac_c_werror_flag"
11469                          || test ! -s conftest.err'
11470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471   (eval $ac_try) 2>&5
11472   ac_status=$?
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); }; } &&
11475          { ac_try='test -s conftest$ac_exeext'
11476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477   (eval $ac_try) 2>&5
11478   ac_status=$?
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); }; }; then
11481   am_cv_lib_iconv=yes
11482         am_cv_func_iconv=yes
11483 else
11484   echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11486
11487 fi
11488 rm -f conftest.err conftest.$ac_objext \
11489       conftest$ac_exeext conftest.$ac_ext
11490       LIBS="$am_save_LIBS"
11491     fi
11492
11493 fi
11494 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11495 echo "${ECHO_T}$am_cv_func_iconv" >&6
11496   if test "$am_cv_func_iconv" = yes; then
11497
11498 cat >>confdefs.h <<\_ACEOF
11499 #define HAVE_ICONV 1
11500 _ACEOF
11501
11502   fi
11503   if test "$am_cv_lib_iconv" = yes; then
11504     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11505 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11506     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11507 echo "${ECHO_T}$LIBICONV" >&6
11508   else
11509             CPPFLAGS="$am_save_CPPFLAGS"
11510     LIBICONV=
11511     LTLIBICONV=
11512   fi
11513
11514
11515
11516   if test "$am_cv_func_iconv" = yes; then
11517     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11518 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11519     if test "${am_cv_proto_iconv+set}" = set; then
11520   echo $ECHO_N "(cached) $ECHO_C" >&6
11521 else
11522
11523       cat >conftest.$ac_ext <<_ACEOF
11524 /* confdefs.h.  */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h.  */
11529
11530 #include <stdlib.h>
11531 #include <iconv.h>
11532 extern
11533 #ifdef __cplusplus
11534 "C"
11535 #endif
11536 #if defined(__STDC__) || defined(__cplusplus)
11537 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11538 #else
11539 size_t iconv();
11540 #endif
11541
11542 int
11543 main ()
11544 {
11545
11546   ;
11547   return 0;
11548 }
11549 _ACEOF
11550 rm -f conftest.$ac_objext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11552   (eval $ac_compile) 2>conftest.er1
11553   ac_status=$?
11554   grep -v '^ *+' conftest.er1 >conftest.err
11555   rm -f conftest.er1
11556   cat conftest.err >&5
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); } &&
11559          { ac_try='test -z "$ac_c_werror_flag"
11560                          || test ! -s conftest.err'
11561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562   (eval $ac_try) 2>&5
11563   ac_status=$?
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); }; } &&
11566          { ac_try='test -s conftest.$ac_objext'
11567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568   (eval $ac_try) 2>&5
11569   ac_status=$?
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); }; }; then
11572   am_cv_proto_iconv_arg1=""
11573 else
11574   echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11576
11577 am_cv_proto_iconv_arg1="const"
11578 fi
11579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11580       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11581 fi
11582
11583     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11584     echo "$as_me:$LINENO: result: ${ac_t:-
11585          }$am_cv_proto_iconv" >&5
11586 echo "${ECHO_T}${ac_t:-
11587          }$am_cv_proto_iconv" >&6
11588
11589 cat >>confdefs.h <<_ACEOF
11590 #define ICONV_CONST $am_cv_proto_iconv_arg1
11591 _ACEOF
11592
11593   fi
11594
11595
11596   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11597 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11598 if test "${am_cv_langinfo_codeset+set}" = set; then
11599   echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601   cat >conftest.$ac_ext <<_ACEOF
11602 /* confdefs.h.  */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h.  */
11607 #include <langinfo.h>
11608 int
11609 main ()
11610 {
11611 char* cs = nl_langinfo(CODESET);
11612   ;
11613   return 0;
11614 }
11615 _ACEOF
11616 rm -f conftest.$ac_objext conftest$ac_exeext
11617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11618   (eval $ac_link) 2>conftest.er1
11619   ac_status=$?
11620   grep -v '^ *+' conftest.er1 >conftest.err
11621   rm -f conftest.er1
11622   cat conftest.err >&5
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); } &&
11625          { ac_try='test -z "$ac_c_werror_flag"
11626                          || test ! -s conftest.err'
11627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628   (eval $ac_try) 2>&5
11629   ac_status=$?
11630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631   (exit $ac_status); }; } &&
11632          { ac_try='test -s conftest$ac_exeext'
11633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634   (eval $ac_try) 2>&5
11635   ac_status=$?
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); }; }; then
11638   am_cv_langinfo_codeset=yes
11639 else
11640   echo "$as_me: failed program was:" >&5
11641 sed 's/^/| /' conftest.$ac_ext >&5
11642
11643 am_cv_langinfo_codeset=no
11644 fi
11645 rm -f conftest.err conftest.$ac_objext \
11646       conftest$ac_exeext conftest.$ac_ext
11647
11648 fi
11649 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11650 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11651   if test $am_cv_langinfo_codeset = yes; then
11652
11653 cat >>confdefs.h <<\_ACEOF
11654 #define HAVE_LANGINFO_CODESET 1
11655 _ACEOF
11656
11657   fi
11658
11659   if test $ac_cv_header_locale_h = yes; then
11660
11661   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11662 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11663 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11664   echo $ECHO_N "(cached) $ECHO_C" >&6
11665 else
11666   cat >conftest.$ac_ext <<_ACEOF
11667 /* confdefs.h.  */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h.  */
11672 #include <locale.h>
11673 int
11674 main ()
11675 {
11676 return LC_MESSAGES
11677   ;
11678   return 0;
11679 }
11680 _ACEOF
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11683   (eval $ac_link) 2>conftest.er1
11684   ac_status=$?
11685   grep -v '^ *+' conftest.er1 >conftest.err
11686   rm -f conftest.er1
11687   cat conftest.err >&5
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); } &&
11690          { ac_try='test -z "$ac_c_werror_flag"
11691                          || test ! -s conftest.err'
11692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693   (eval $ac_try) 2>&5
11694   ac_status=$?
11695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696   (exit $ac_status); }; } &&
11697          { ac_try='test -s conftest$ac_exeext'
11698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699   (eval $ac_try) 2>&5
11700   ac_status=$?
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); }; }; then
11703   gt_cv_val_LC_MESSAGES=yes
11704 else
11705   echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11707
11708 gt_cv_val_LC_MESSAGES=no
11709 fi
11710 rm -f conftest.err conftest.$ac_objext \
11711       conftest$ac_exeext conftest.$ac_ext
11712 fi
11713 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11714 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11715   if test $gt_cv_val_LC_MESSAGES = yes; then
11716
11717 cat >>confdefs.h <<\_ACEOF
11718 #define HAVE_LC_MESSAGES 1
11719 _ACEOF
11720
11721   fi
11722
11723   fi
11724
11725   if test -n "$INTL_MACOSX_LIBS"; then
11726     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11727   fi
11728
11729                       for ac_prog in bison
11730 do
11731   # Extract the first word of "$ac_prog", so it can be a program name with args.
11732 set dummy $ac_prog; ac_word=$2
11733 echo "$as_me:$LINENO: checking for $ac_word" >&5
11734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11735 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11736   echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738   if test -n "$INTLBISON"; then
11739   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11740 else
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH
11743 do
11744   IFS=$as_save_IFS
11745   test -z "$as_dir" && as_dir=.
11746   for ac_exec_ext in '' $ac_executable_extensions; do
11747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11748     ac_cv_prog_INTLBISON="$ac_prog"
11749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11750     break 2
11751   fi
11752 done
11753 done
11754
11755 fi
11756 fi
11757 INTLBISON=$ac_cv_prog_INTLBISON
11758 if test -n "$INTLBISON"; then
11759   echo "$as_me:$LINENO: result: $INTLBISON" >&5
11760 echo "${ECHO_T}$INTLBISON" >&6
11761 else
11762   echo "$as_me:$LINENO: result: no" >&5
11763 echo "${ECHO_T}no" >&6
11764 fi
11765
11766   test -n "$INTLBISON" && break
11767 done
11768
11769   if test -z "$INTLBISON"; then
11770     ac_verc_fail=yes
11771   else
11772         echo "$as_me:$LINENO: checking version of bison" >&5
11773 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11774     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11775     case $ac_prog_version in
11776       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11777       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11778          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11779       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11780     esac
11781     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11782 echo "${ECHO_T}$ac_prog_version" >&6
11783   fi
11784   if test $ac_verc_fail = yes; then
11785     INTLBISON=:
11786   fi
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11804 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11805 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11806   echo $ECHO_N "(cached) $ECHO_C" >&6
11807 else
11808   gt_save_CPPFLAGS="$CPPFLAGS"
11809      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11810      gt_save_LIBS="$LIBS"
11811      LIBS="$LIBS -framework CoreFoundation"
11812      cat >conftest.$ac_ext <<_ACEOF
11813 /* confdefs.h.  */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h.  */
11818 #include <CFPreferences.h>
11819 int
11820 main ()
11821 {
11822 CFPreferencesCopyAppValue(NULL, NULL)
11823   ;
11824   return 0;
11825 }
11826 _ACEOF
11827 rm -f conftest.$ac_objext conftest$ac_exeext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11829   (eval $ac_link) 2>conftest.er1
11830   ac_status=$?
11831   grep -v '^ *+' conftest.er1 >conftest.err
11832   rm -f conftest.er1
11833   cat conftest.err >&5
11834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835   (exit $ac_status); } &&
11836          { ac_try='test -z "$ac_c_werror_flag"
11837                          || test ! -s conftest.err'
11838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839   (eval $ac_try) 2>&5
11840   ac_status=$?
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); }; } &&
11843          { ac_try='test -s conftest$ac_exeext'
11844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845   (eval $ac_try) 2>&5
11846   ac_status=$?
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); }; }; then
11849   gt_cv_func_CFPreferencesCopyAppValue=yes
11850 else
11851   echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11853
11854 gt_cv_func_CFPreferencesCopyAppValue=no
11855 fi
11856 rm -f conftest.err conftest.$ac_objext \
11857       conftest$ac_exeext conftest.$ac_ext
11858      CPPFLAGS="$gt_save_CPPFLAGS"
11859      LIBS="$gt_save_LIBS"
11860 fi
11861 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11862 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11863   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11864
11865 cat >>confdefs.h <<\_ACEOF
11866 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11867 _ACEOF
11868
11869   fi
11870     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11871 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11872 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11873   echo $ECHO_N "(cached) $ECHO_C" >&6
11874 else
11875   gt_save_CPPFLAGS="$CPPFLAGS"
11876      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11877      gt_save_LIBS="$LIBS"
11878      LIBS="$LIBS -framework CoreFoundation"
11879      cat >conftest.$ac_ext <<_ACEOF
11880 /* confdefs.h.  */
11881 _ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h.  */
11885 #include <CFLocale.h>
11886 int
11887 main ()
11888 {
11889 CFLocaleCopyCurrent();
11890   ;
11891   return 0;
11892 }
11893 _ACEOF
11894 rm -f conftest.$ac_objext conftest$ac_exeext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896   (eval $ac_link) 2>conftest.er1
11897   ac_status=$?
11898   grep -v '^ *+' conftest.er1 >conftest.err
11899   rm -f conftest.er1
11900   cat conftest.err >&5
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); } &&
11903          { ac_try='test -z "$ac_c_werror_flag"
11904                          || test ! -s conftest.err'
11905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906   (eval $ac_try) 2>&5
11907   ac_status=$?
11908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909   (exit $ac_status); }; } &&
11910          { ac_try='test -s conftest$ac_exeext'
11911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912   (eval $ac_try) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; }; then
11916   gt_cv_func_CFLocaleCopyCurrent=yes
11917 else
11918   echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11920
11921 gt_cv_func_CFLocaleCopyCurrent=no
11922 fi
11923 rm -f conftest.err conftest.$ac_objext \
11924       conftest$ac_exeext conftest.$ac_ext
11925      CPPFLAGS="$gt_save_CPPFLAGS"
11926      LIBS="$gt_save_LIBS"
11927 fi
11928 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11929 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11930   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11931
11932 cat >>confdefs.h <<\_ACEOF
11933 #define HAVE_CFLOCALECOPYCURRENT 1
11934 _ACEOF
11935
11936   fi
11937   INTL_MACOSX_LIBS=
11938   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11939     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11940   fi
11941
11942
11943
11944
11945   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11946 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11947     # Check whether --enable-nls or --disable-nls was given.
11948 if test "${enable_nls+set}" = set; then
11949   enableval="$enable_nls"
11950   USE_NLS=$enableval
11951 else
11952   USE_NLS=yes
11953 fi;
11954   echo "$as_me:$LINENO: result: $USE_NLS" >&5
11955 echo "${ECHO_T}$USE_NLS" >&6
11956
11957
11958
11959
11960     BUILD_INCLUDED_LIBINTL=no
11961     USE_INCLUDED_LIBINTL=no
11962
11963   LIBINTL=
11964   LTLIBINTL=
11965   POSUB=
11966
11967     if test "$USE_NLS" = "yes"; then
11968     gt_use_preinstalled_gnugettext=no
11969
11970       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11971 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11972
11973 # Check whether --with-included-gettext or --without-included-gettext was given.
11974 if test "${with_included_gettext+set}" = set; then
11975   withval="$with_included_gettext"
11976   nls_cv_force_use_gnu_gettext=$withval
11977 else
11978   nls_cv_force_use_gnu_gettext=no
11979 fi;
11980       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11981 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
11982
11983       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11984       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11985
11986
11987
11988
11989
11990
11991         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11992 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11993 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11994   echo $ECHO_N "(cached) $ECHO_C" >&6
11995 else
11996   cat >conftest.$ac_ext <<_ACEOF
11997 /* confdefs.h.  */
11998 _ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h.  */
12002 #include <libintl.h>
12003 extern int _nl_msg_cat_cntr;
12004 extern int *_nl_domain_bindings;
12005 int
12006 main ()
12007 {
12008 bindtextdomain ("", "");
12009 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12010   ;
12011   return 0;
12012 }
12013 _ACEOF
12014 rm -f conftest.$ac_objext conftest$ac_exeext
12015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12016   (eval $ac_link) 2>conftest.er1
12017   ac_status=$?
12018   grep -v '^ *+' conftest.er1 >conftest.err
12019   rm -f conftest.er1
12020   cat conftest.err >&5
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); } &&
12023          { ac_try='test -z "$ac_c_werror_flag"
12024                          || test ! -s conftest.err'
12025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026   (eval $ac_try) 2>&5
12027   ac_status=$?
12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); }; } &&
12030          { ac_try='test -s conftest$ac_exeext'
12031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032   (eval $ac_try) 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); }; }; then
12036   gt_cv_func_gnugettext1_libc=yes
12037 else
12038   echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12040
12041 gt_cv_func_gnugettext1_libc=no
12042 fi
12043 rm -f conftest.err conftest.$ac_objext \
12044       conftest$ac_exeext conftest.$ac_ext
12045 fi
12046 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12047 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12048
12049         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12050
12051
12052
12053     use_additional=yes
12054
12055   acl_save_prefix="$prefix"
12056   prefix="$acl_final_prefix"
12057   acl_save_exec_prefix="$exec_prefix"
12058   exec_prefix="$acl_final_exec_prefix"
12059
12060     eval additional_includedir=\"$includedir\"
12061     eval additional_libdir=\"$libdir\"
12062
12063   exec_prefix="$acl_save_exec_prefix"
12064   prefix="$acl_save_prefix"
12065
12066
12067 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12068 if test "${with_libintl_prefix+set}" = set; then
12069   withval="$with_libintl_prefix"
12070
12071     if test "X$withval" = "Xno"; then
12072       use_additional=no
12073     else
12074       if test "X$withval" = "X"; then
12075
12076   acl_save_prefix="$prefix"
12077   prefix="$acl_final_prefix"
12078   acl_save_exec_prefix="$exec_prefix"
12079   exec_prefix="$acl_final_exec_prefix"
12080
12081           eval additional_includedir=\"$includedir\"
12082           eval additional_libdir=\"$libdir\"
12083
12084   exec_prefix="$acl_save_exec_prefix"
12085   prefix="$acl_save_prefix"
12086
12087       else
12088         additional_includedir="$withval/include"
12089         additional_libdir="$withval/lib"
12090       fi
12091     fi
12092
12093 fi;
12094       LIBINTL=
12095   LTLIBINTL=
12096   INCINTL=
12097   rpathdirs=
12098   ltrpathdirs=
12099   names_already_handled=
12100   names_next_round='intl '
12101   while test -n "$names_next_round"; do
12102     names_this_round="$names_next_round"
12103     names_next_round=
12104     for name in $names_this_round; do
12105       already_handled=
12106       for n in $names_already_handled; do
12107         if test "$n" = "$name"; then
12108           already_handled=yes
12109           break
12110         fi
12111       done
12112       if test -z "$already_handled"; then
12113         names_already_handled="$names_already_handled $name"
12114                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12115         eval value=\"\$HAVE_LIB$uppername\"
12116         if test -n "$value"; then
12117           if test "$value" = yes; then
12118             eval value=\"\$LIB$uppername\"
12119             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12120             eval value=\"\$LTLIB$uppername\"
12121             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12122           else
12123                                     :
12124           fi
12125         else
12126                               found_dir=
12127           found_la=
12128           found_so=
12129           found_a=
12130           if test $use_additional = yes; then
12131             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12132               found_dir="$additional_libdir"
12133               found_so="$additional_libdir/lib$name.$shlibext"
12134               if test -f "$additional_libdir/lib$name.la"; then
12135                 found_la="$additional_libdir/lib$name.la"
12136               fi
12137             else
12138               if test -f "$additional_libdir/lib$name.$libext"; then
12139                 found_dir="$additional_libdir"
12140                 found_a="$additional_libdir/lib$name.$libext"
12141                 if test -f "$additional_libdir/lib$name.la"; then
12142                   found_la="$additional_libdir/lib$name.la"
12143                 fi
12144               fi
12145             fi
12146           fi
12147           if test "X$found_dir" = "X"; then
12148             for x in $LDFLAGS $LTLIBINTL; do
12149
12150   acl_save_prefix="$prefix"
12151   prefix="$acl_final_prefix"
12152   acl_save_exec_prefix="$exec_prefix"
12153   exec_prefix="$acl_final_exec_prefix"
12154   eval x=\"$x\"
12155   exec_prefix="$acl_save_exec_prefix"
12156   prefix="$acl_save_prefix"
12157
12158               case "$x" in
12159                 -L*)
12160                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12161                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12162                     found_dir="$dir"
12163                     found_so="$dir/lib$name.$shlibext"
12164                     if test -f "$dir/lib$name.la"; then
12165                       found_la="$dir/lib$name.la"
12166                     fi
12167                   else
12168                     if test -f "$dir/lib$name.$libext"; then
12169                       found_dir="$dir"
12170                       found_a="$dir/lib$name.$libext"
12171                       if test -f "$dir/lib$name.la"; then
12172                         found_la="$dir/lib$name.la"
12173                       fi
12174                     fi
12175                   fi
12176                   ;;
12177               esac
12178               if test "X$found_dir" != "X"; then
12179                 break
12180               fi
12181             done
12182           fi
12183           if test "X$found_dir" != "X"; then
12184                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12185             if test "X$found_so" != "X"; then
12186                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12187                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12188               else
12189                                                                                 haveit=
12190                 for x in $ltrpathdirs; do
12191                   if test "X$x" = "X$found_dir"; then
12192                     haveit=yes
12193                     break
12194                   fi
12195                 done
12196                 if test -z "$haveit"; then
12197                   ltrpathdirs="$ltrpathdirs $found_dir"
12198                 fi
12199                                 if test "$hardcode_direct" = yes; then
12200                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12201                 else
12202                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12203                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12204                                                             haveit=
12205                     for x in $rpathdirs; do
12206                       if test "X$x" = "X$found_dir"; then
12207                         haveit=yes
12208                         break
12209                       fi
12210                     done
12211                     if test -z "$haveit"; then
12212                       rpathdirs="$rpathdirs $found_dir"
12213                     fi
12214                   else
12215                                                                                 haveit=
12216                     for x in $LDFLAGS $LIBINTL; do
12217
12218   acl_save_prefix="$prefix"
12219   prefix="$acl_final_prefix"
12220   acl_save_exec_prefix="$exec_prefix"
12221   exec_prefix="$acl_final_exec_prefix"
12222   eval x=\"$x\"
12223   exec_prefix="$acl_save_exec_prefix"
12224   prefix="$acl_save_prefix"
12225
12226                       if test "X$x" = "X-L$found_dir"; then
12227                         haveit=yes
12228                         break
12229                       fi
12230                     done
12231                     if test -z "$haveit"; then
12232                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12233                     fi
12234                     if test "$hardcode_minus_L" != no; then
12235                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12236                     else
12237                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12238                     fi
12239                   fi
12240                 fi
12241               fi
12242             else
12243               if test "X$found_a" != "X"; then
12244                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12245               else
12246                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12247               fi
12248             fi
12249                         additional_includedir=
12250             case "$found_dir" in
12251               */lib | */lib/)
12252                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12253                 additional_includedir="$basedir/include"
12254                 ;;
12255             esac
12256             if test "X$additional_includedir" != "X"; then
12257                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12258                 haveit=
12259                 if test "X$additional_includedir" = "X/usr/local/include"; then
12260                   if test -n "$GCC"; then
12261                     case $host_os in
12262                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12263                     esac
12264                   fi
12265                 fi
12266                 if test -z "$haveit"; then
12267                   for x in $CPPFLAGS $INCINTL; do
12268
12269   acl_save_prefix="$prefix"
12270   prefix="$acl_final_prefix"
12271   acl_save_exec_prefix="$exec_prefix"
12272   exec_prefix="$acl_final_exec_prefix"
12273   eval x=\"$x\"
12274   exec_prefix="$acl_save_exec_prefix"
12275   prefix="$acl_save_prefix"
12276
12277                     if test "X$x" = "X-I$additional_includedir"; then
12278                       haveit=yes
12279                       break
12280                     fi
12281                   done
12282                   if test -z "$haveit"; then
12283                     if test -d "$additional_includedir"; then
12284                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12285                     fi
12286                   fi
12287                 fi
12288               fi
12289             fi
12290                         if test -n "$found_la"; then
12291                                                         save_libdir="$libdir"
12292               case "$found_la" in
12293                 */* | *\\*) . "$found_la" ;;
12294                 *) . "./$found_la" ;;
12295               esac
12296               libdir="$save_libdir"
12297                             for dep in $dependency_libs; do
12298                 case "$dep" in
12299                   -L*)
12300                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12301                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
12302                       haveit=
12303                       if test "X$additional_libdir" = "X/usr/local/lib"; then
12304                         if test -n "$GCC"; then
12305                           case $host_os in
12306                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12307                           esac
12308                         fi
12309                       fi
12310                       if test -z "$haveit"; then
12311                         haveit=
12312                         for x in $LDFLAGS $LIBINTL; do
12313
12314   acl_save_prefix="$prefix"
12315   prefix="$acl_final_prefix"
12316   acl_save_exec_prefix="$exec_prefix"
12317   exec_prefix="$acl_final_exec_prefix"
12318   eval x=\"$x\"
12319   exec_prefix="$acl_save_exec_prefix"
12320   prefix="$acl_save_prefix"
12321
12322                           if test "X$x" = "X-L$additional_libdir"; then
12323                             haveit=yes
12324                             break
12325                           fi
12326                         done
12327                         if test -z "$haveit"; then
12328                           if test -d "$additional_libdir"; then
12329                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12330                           fi
12331                         fi
12332                         haveit=
12333                         for x in $LDFLAGS $LTLIBINTL; do
12334
12335   acl_save_prefix="$prefix"
12336   prefix="$acl_final_prefix"
12337   acl_save_exec_prefix="$exec_prefix"
12338   exec_prefix="$acl_final_exec_prefix"
12339   eval x=\"$x\"
12340   exec_prefix="$acl_save_exec_prefix"
12341   prefix="$acl_save_prefix"
12342
12343                           if test "X$x" = "X-L$additional_libdir"; then
12344                             haveit=yes
12345                             break
12346                           fi
12347                         done
12348                         if test -z "$haveit"; then
12349                           if test -d "$additional_libdir"; then
12350                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12351                           fi
12352                         fi
12353                       fi
12354                     fi
12355                     ;;
12356                   -R*)
12357                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12358                     if test "$enable_rpath" != no; then
12359                                                                   haveit=
12360                       for x in $rpathdirs; do
12361                         if test "X$x" = "X$dir"; then
12362                           haveit=yes
12363                           break
12364                         fi
12365                       done
12366                       if test -z "$haveit"; then
12367                         rpathdirs="$rpathdirs $dir"
12368                       fi
12369                                                                   haveit=
12370                       for x in $ltrpathdirs; do
12371                         if test "X$x" = "X$dir"; then
12372                           haveit=yes
12373                           break
12374                         fi
12375                       done
12376                       if test -z "$haveit"; then
12377                         ltrpathdirs="$ltrpathdirs $dir"
12378                       fi
12379                     fi
12380                     ;;
12381                   -l*)
12382                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12383                     ;;
12384                   *.la)
12385                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12386                     ;;
12387                   *)
12388                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12389                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12390                     ;;
12391                 esac
12392               done
12393             fi
12394           else
12395                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12396             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12397           fi
12398         fi
12399       fi
12400     done
12401   done
12402   if test "X$rpathdirs" != "X"; then
12403     if test -n "$hardcode_libdir_separator"; then
12404                         alldirs=
12405       for found_dir in $rpathdirs; do
12406         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12407       done
12408             acl_save_libdir="$libdir"
12409       libdir="$alldirs"
12410       eval flag=\"$hardcode_libdir_flag_spec\"
12411       libdir="$acl_save_libdir"
12412       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12413     else
12414             for found_dir in $rpathdirs; do
12415         acl_save_libdir="$libdir"
12416         libdir="$found_dir"
12417         eval flag=\"$hardcode_libdir_flag_spec\"
12418         libdir="$acl_save_libdir"
12419         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12420       done
12421     fi
12422   fi
12423   if test "X$ltrpathdirs" != "X"; then
12424             for found_dir in $ltrpathdirs; do
12425       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12426     done
12427   fi
12428
12429           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12430 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12431 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12432   echo $ECHO_N "(cached) $ECHO_C" >&6
12433 else
12434   gt_save_CPPFLAGS="$CPPFLAGS"
12435             CPPFLAGS="$CPPFLAGS $INCINTL"
12436             gt_save_LIBS="$LIBS"
12437             LIBS="$LIBS $LIBINTL"
12438                         cat >conftest.$ac_ext <<_ACEOF
12439 /* confdefs.h.  */
12440 _ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h.  */
12444 #include <libintl.h>
12445 extern int _nl_msg_cat_cntr;
12446 extern
12447 #ifdef __cplusplus
12448 "C"
12449 #endif
12450 const char *_nl_expand_alias (const char *);
12451 int
12452 main ()
12453 {
12454 bindtextdomain ("", "");
12455 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12456   ;
12457   return 0;
12458 }
12459 _ACEOF
12460 rm -f conftest.$ac_objext conftest$ac_exeext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12462   (eval $ac_link) 2>conftest.er1
12463   ac_status=$?
12464   grep -v '^ *+' conftest.er1 >conftest.err
12465   rm -f conftest.er1
12466   cat conftest.err >&5
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); } &&
12469          { ac_try='test -z "$ac_c_werror_flag"
12470                          || test ! -s conftest.err'
12471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472   (eval $ac_try) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; } &&
12476          { ac_try='test -s conftest$ac_exeext'
12477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478   (eval $ac_try) 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); }; }; then
12482   gt_cv_func_gnugettext1_libintl=yes
12483 else
12484   echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12486
12487 gt_cv_func_gnugettext1_libintl=no
12488 fi
12489 rm -f conftest.err conftest.$ac_objext \
12490       conftest$ac_exeext conftest.$ac_ext
12491                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12492               LIBS="$LIBS $LIBICONV"
12493               cat >conftest.$ac_ext <<_ACEOF
12494 /* confdefs.h.  */
12495 _ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h.  */
12499 #include <libintl.h>
12500 extern int _nl_msg_cat_cntr;
12501 extern
12502 #ifdef __cplusplus
12503 "C"
12504 #endif
12505 const char *_nl_expand_alias (const char *);
12506 int
12507 main ()
12508 {
12509 bindtextdomain ("", "");
12510 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12511   ;
12512   return 0;
12513 }
12514 _ACEOF
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12517   (eval $ac_link) 2>conftest.er1
12518   ac_status=$?
12519   grep -v '^ *+' conftest.er1 >conftest.err
12520   rm -f conftest.er1
12521   cat conftest.err >&5
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); } &&
12524          { ac_try='test -z "$ac_c_werror_flag"
12525                          || test ! -s conftest.err'
12526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527   (eval $ac_try) 2>&5
12528   ac_status=$?
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); }; } &&
12531          { ac_try='test -s conftest$ac_exeext'
12532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533   (eval $ac_try) 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); }; }; then
12537   LIBINTL="$LIBINTL $LIBICONV"
12538                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12539                 gt_cv_func_gnugettext1_libintl=yes
12540
12541 else
12542   echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12544
12545 fi
12546 rm -f conftest.err conftest.$ac_objext \
12547       conftest$ac_exeext conftest.$ac_ext
12548             fi
12549             CPPFLAGS="$gt_save_CPPFLAGS"
12550             LIBS="$gt_save_LIBS"
12551 fi
12552 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12553 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12554         fi
12555
12556                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12557            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12558                 && test "$PACKAGE" != gettext-runtime \
12559                 && test "$PACKAGE" != gettext-tools; }; then
12560           gt_use_preinstalled_gnugettext=yes
12561         else
12562                     LIBINTL=
12563           LTLIBINTL=
12564           INCINTL=
12565         fi
12566
12567
12568         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12569                               nls_cv_use_gnu_gettext=yes
12570         fi
12571       fi
12572
12573       if test "$nls_cv_use_gnu_gettext" = "yes"; then
12574                 BUILD_INCLUDED_LIBINTL=yes
12575         USE_INCLUDED_LIBINTL=yes
12576         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12577         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12578         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12579       fi
12580
12581       CATOBJEXT=
12582       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12583          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12584                 CATOBJEXT=.gmo
12585       fi
12586
12587
12588     if test -n "$INTL_MACOSX_LIBS"; then
12589       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12590          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12591                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12592         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12593       fi
12594     fi
12595
12596     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12597        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12598
12599 cat >>confdefs.h <<\_ACEOF
12600 #define ENABLE_NLS 1
12601 _ACEOF
12602
12603     else
12604       USE_NLS=no
12605     fi
12606   fi
12607
12608   echo "$as_me:$LINENO: checking whether to use NLS" >&5
12609 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12610   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12611 echo "${ECHO_T}$USE_NLS" >&6
12612   if test "$USE_NLS" = "yes"; then
12613     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12614 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12615     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12616       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12617         gt_source="external libintl"
12618       else
12619         gt_source="libc"
12620       fi
12621     else
12622       gt_source="included intl directory"
12623     fi
12624     echo "$as_me:$LINENO: result: $gt_source" >&5
12625 echo "${ECHO_T}$gt_source" >&6
12626   fi
12627
12628   if test "$USE_NLS" = "yes"; then
12629
12630     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12631       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12632         echo "$as_me:$LINENO: checking how to link with libintl" >&5
12633 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12634         echo "$as_me:$LINENO: result: $LIBINTL" >&5
12635 echo "${ECHO_T}$LIBINTL" >&6
12636
12637   for element in $INCINTL; do
12638     haveit=
12639     for x in $CPPFLAGS; do
12640
12641   acl_save_prefix="$prefix"
12642   prefix="$acl_final_prefix"
12643   acl_save_exec_prefix="$exec_prefix"
12644   exec_prefix="$acl_final_exec_prefix"
12645   eval x=\"$x\"
12646   exec_prefix="$acl_save_exec_prefix"
12647   prefix="$acl_save_prefix"
12648
12649       if test "X$x" = "X$element"; then
12650         haveit=yes
12651         break
12652       fi
12653     done
12654     if test -z "$haveit"; then
12655       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12656     fi
12657   done
12658
12659       fi
12660
12661
12662 cat >>confdefs.h <<\_ACEOF
12663 #define HAVE_GETTEXT 1
12664 _ACEOF
12665
12666
12667 cat >>confdefs.h <<\_ACEOF
12668 #define HAVE_DCGETTEXT 1
12669 _ACEOF
12670
12671     fi
12672
12673         POSUB=po
12674   fi
12675
12676
12677             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12678       BUILD_INCLUDED_LIBINTL=yes
12679     fi
12680
12681
12682
12683
12684
12685         nls_cv_header_intl=
12686     nls_cv_header_libgt=
12687
12688         DATADIRNAME=share
12689
12690
12691         INSTOBJEXT=.mo
12692
12693
12694         GENCAT=gencat
12695
12696
12697         INTLOBJS=
12698     if test "$USE_INCLUDED_LIBINTL" = yes; then
12699       INTLOBJS="\$(GETTOBJS)"
12700     fi
12701
12702
12703         INTL_LIBTOOL_SUFFIX_PREFIX=
12704
12705
12706
12707     INTLLIBS="$LIBINTL"
12708
12709
12710
12711
12712
12713
12714 fi
12715
12716
12717 support_mysql=no
12718 support_sqlite=no
12719 support_sqlite3=no
12720 support_postgresql=no
12721 support_smartalloc=yes
12722 support_readline=yes
12723 support_conio=yes
12724 support_gnome=no
12725 support_bat=no
12726 support_wx_console=no
12727 support_tls=no
12728 support_crypto=no
12729 gnome_version=
12730 wx_version=
12731 support_static_tools=no
12732 support_static_fd=no
12733 support_static_sd=no
12734 support_static_dir=no
12735 support_static_cons=no
12736 support_python=no
12737 build_client_only=no
12738 build_dird=yes
12739 build_stored=yes
12740 cats=
12741 db_type=Internal
12742 DB_TYPE=bdb
12743
12744
12745 # -------------------------------------------
12746 # gnome (default off)
12747 # -------------------------------------------
12748 # Check whether --enable-gnome or --disable-gnome was given.
12749 if test "${enable_gnome+set}" = set; then
12750   enableval="$enable_gnome"
12751   if test x$enableval = xyes; then
12752     support_gnome=yes
12753   fi
12754 fi;
12755
12756 GNOME_DIR=
12757 if test x$support_gnome = xyes; then
12758   abc=`$PKGCONFIG --exists libgnomeui-2.0`
12759   pkg=$?
12760   if test $pkg = 0; then
12761      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12762      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12763      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12764      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12765
12766
12767
12768
12769      GNOME_DIR=src/gnome2-console
12770      gnome_version="Version 2.x"
12771   else
12772      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12773 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12774    { (exit 1); exit 1; }; }
12775   fi
12776 fi
12777
12778
12779 # -------------------------------------------
12780 # bat (default off)
12781 # -------------------------------------------
12782 # Check whether --enable-bat or --disable-bat was given.
12783 if test "${enable_bat+set}" = set; then
12784   enableval="$enable_bat"
12785   if test x$enableval = xyes; then
12786
12787 cat >>confdefs.h <<\_ACEOF
12788 #define HAVE_BAT 1
12789 _ACEOF
12790
12791     support_bat=yes
12792   fi
12793 fi;
12794
12795 BAT_DIR=
12796 if test x$support_bat = xyes; then
12797   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
12798   pkg=$?
12799   if test $pkg = 0; then
12800      BAT_DIR=src/qt-console
12801   else
12802      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
12803 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
12804    { (exit 1); exit 1; }; }
12805   fi
12806 fi
12807
12808 #
12809 #  If bat is enabled, we need the qwt library
12810 got_qwt=no
12811 QWT_INC=
12812 QWT_LDFLAGS=
12813 if test x$support_bat = xyes; then
12814    echo "$as_me:$LINENO: checking for qwt support" >&5
12815 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6
12816
12817 # Check whether --with-qwt or --without-qwt was given.
12818 if test "${with_qwt+set}" = set; then
12819   withval="$with_qwt"
12820
12821         case "$with_qwt" in
12822         no)
12823           ;;
12824         yes|*)
12825           if test -f ${with_qwt}/include/qwt.h; then
12826              QWT_INC="${with_qwt}/include"
12827              QWT_LDFLAGS="-L${with_qwt}/lib"
12828           fi
12829           ;;
12830         esac
12831
12832
12833 fi;
12834 #
12835 # Search in standard places, or --with-qwt not specified
12836 #
12837    if test x$QWT_INC = x; then
12838       for root in /usr /usr/local; do
12839          for ver in qwt qwt5; do
12840             if test -f ${root}/include/${ver}/qwt.h; then
12841                QWT_INC="${root}/include/${ver}"
12842                if test -d ${root}/lib64/; then
12843                   QWT_LDFLAGS="-L${root}/lib64"
12844                else
12845                   QWT_LDFLAGS="-L${root}/lib"
12846                fi
12847                got_qwt=yes
12848                break;
12849             fi
12850          done
12851       done
12852    fi
12853    if test x$QWT_INC = x; then
12854       echo "$as_me:$LINENO: result: no" >&5
12855 echo "${ECHO_T}no" >&6
12856       { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
12857 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
12858    { (exit 1); exit 1; }; }
12859       BAT_DIR=
12860       support_bat=no
12861    else
12862       echo "$as_me:$LINENO: result: yes" >&5
12863 echo "${ECHO_T}yes" >&6
12864    fi
12865 fi
12866
12867
12868
12869
12870
12871
12872 # -------------------------------------------
12873 # bwx-console (default off)
12874 # -------------------------------------------
12875 # Check whether --enable-bwx-console or --disable-bwx-console was given.
12876 if test "${enable_bwx_console+set}" = set; then
12877   enableval="$enable_bwx_console"
12878   if test x$enableval = xyes; then
12879     support_wx_console=yes
12880   fi
12881 fi;
12882
12883 WX_DIR=
12884 if test x$support_wx_console = xyes; then
12885   abc=`$WXCONFIG $WXFLAGS --cppflags`
12886   pkg=$?
12887   if test $pkg = 0; then
12888      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12889      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12890      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12891
12892
12893
12894      WX_DIR=src/wx-console
12895   else
12896      echo " "
12897      echo "wx-config program not found. bwx-console disabled."
12898      echo " "
12899      support_wx_console=no
12900   fi
12901 fi
12902
12903
12904
12905 # -------------------------------------------
12906 # tray-monitor (default off)
12907 # -------------------------------------------
12908 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12909 if test "${enable_tray_monitor+set}" = set; then
12910   enableval="$enable_tray_monitor"
12911   if test x$enableval = xyes; then
12912     support_tray_monitor=yes
12913   fi
12914 fi;
12915
12916 TRAY_MONITOR_DIR=
12917 if test x$support_tray_monitor = xyes; then
12918   abc=`$PKGCONFIG --exists gtk+-2.0`
12919   pkg=$?
12920   if test $pkg = 0; then
12921      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12922      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12923
12924
12925      TRAY_MONITOR_DIR=src/tray-monitor
12926      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12927      pkg=$?
12928      if test $pkg = 0; then
12929
12930 cat >>confdefs.h <<\_ACEOF
12931 #define HAVE_GTK_2_4 1
12932 _ACEOF
12933
12934      fi
12935   fi
12936 fi
12937
12938
12939 # -------------------------------------------
12940 # smartalloc (default off)
12941 # -------------------------------------------
12942 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12943 if test "${enable_smartalloc+set}" = set; then
12944   enableval="$enable_smartalloc"
12945   if test x$enableval = xno; then
12946     support_smartalloc=no
12947   fi
12948 fi;
12949
12950 if test x$support_smartalloc = xyes; then
12951
12952 cat >>confdefs.h <<\_ACEOF
12953 #define SMARTALLOC 1
12954 _ACEOF
12955
12956 fi
12957
12958 # -------------------------------------------
12959 # static-tools (default off)
12960 # -------------------------------------------
12961 # Check whether --enable-static-tools or --disable-static-tools was given.
12962 if test "${enable_static_tools+set}" = set; then
12963   enableval="$enable_static_tools"
12964   if test x$enableval = xyes; then
12965      support_static_tools=yes
12966    fi
12967 fi;
12968
12969 TTOOL_LDFLAGS=
12970 if test x$support_static_tools = xyes; then
12971    TTOOL_LDFLAGS="-static"
12972 fi
12973
12974
12975 # -------------------------------------------
12976 # static-fd    (default off)
12977 # -------------------------------------------
12978 # Check whether --enable-static-fd or --disable-static-fd was given.
12979 if test "${enable_static_fd+set}" = set; then
12980   enableval="$enable_static_fd"
12981   if test x$enableval = xyes; then
12982      support_static_fd=yes
12983    fi
12984 fi;
12985
12986 STATIC_FD=
12987 if test x$support_static_fd = xyes; then
12988    STATIC_FD="static-bacula-fd"
12989 fi
12990
12991
12992 # -------------------------------------------
12993 # static-sd    (default off)
12994 # -------------------------------------------
12995 # Check whether --enable-static-sd or --disable-static-sd was given.
12996 if test "${enable_static_sd+set}" = set; then
12997   enableval="$enable_static_sd"
12998   if test x$enableval = xyes; then
12999      support_static_sd=yes
13000    fi
13001 fi;
13002
13003 STATIC_SD=
13004 if test x$support_static_sd = xyes; then
13005    STATIC_SD="static-bacula-sd"
13006 fi
13007
13008
13009 # -------------------------------------------
13010 # static-dir   (default off)
13011 # -------------------------------------------
13012 # Check whether --enable-static-dir or --disable-static-dir was given.
13013 if test "${enable_static_dir+set}" = set; then
13014   enableval="$enable_static_dir"
13015   if test x$enableval = xyes; then
13016      support_static_dir=yes
13017    fi
13018 fi;
13019
13020 STATIC_DIR=
13021 if test x$support_static_dir = xyes; then
13022    STATIC_DIR="static-bacula-dir"
13023 fi
13024
13025
13026 # -------------------------------------------
13027 # static-cons  (default off)
13028 # -------------------------------------------
13029 # Check whether --enable-static-cons or --disable-static-cons was given.
13030 if test "${enable_static_cons+set}" = set; then
13031   enableval="$enable_static_cons"
13032   if test x$enableval = xyes; then
13033      support_static_cons=yes
13034    fi
13035 fi;
13036
13037 STATIC_CONS=
13038 STATIC_GNOME_CONS=
13039 STATIC_WX_CONS=
13040 if test x$support_static_cons = xyes; then
13041    STATIC_CONS="static-bconsole"
13042    STATIC_GNOME_CONS="static-bgnome-console"
13043    STATIC_WX_CONS="static-bwx-console"
13044 fi
13045
13046
13047
13048
13049 # -------------------------------------------
13050 # client_only  (default off)
13051 # -------------------------------------------
13052 # Check whether --enable-client-only or --disable-client-only was given.
13053 if test "${enable_client_only+set}" = set; then
13054   enableval="$enable_client_only"
13055   if test x$enableval = xyes; then
13056       build_client_only=yes
13057       db_type=None
13058       DB_TYPE=none
13059    fi
13060 fi;
13061 if test x$build_client_only = xno; then
13062    ALL_DIRS="subdirs"
13063 else
13064    ALL_DIRS=""
13065 fi
13066
13067
13068 # -------------------------------------------
13069 # director  (default on)
13070 # -------------------------------------------
13071 # Check whether --enable-build-dird or --disable-build-dird was given.
13072 if test "${enable_build_dird+set}" = set; then
13073   enableval="$enable_build_dird"
13074   if test x$enableval = xno; then
13075       build_dird=no
13076    fi
13077 fi;
13078 if test x$build_dird = xyes; then
13079    DIRD_DIR="src/dird"
13080    DIR_TOOLS="DIRTOOLS"
13081 else
13082    DIRD_DIR=""
13083    DIR_TOOLS="NODIRTOOLS"
13084 fi
13085
13086
13087
13088 # -------------------------------------------
13089 # stored  (default on)
13090 # -------------------------------------------
13091 # Check whether --enable-build-stored or --disable-build-stored was given.
13092 if test "${enable_build_stored+set}" = set; then
13093   enableval="$enable_build_stored"
13094   if test x$enableval = xno; then
13095       build_stored=no
13096    fi
13097 fi;
13098 if test x$build_stored = xyes; then
13099    STORED_DIR="src/stored"
13100 else
13101    STORED_DIR=""
13102 fi
13103
13104
13105 # ---------------------------------------------------
13106 # Check for conio (Bacula readline substitute)(
13107 # ---------------------------------------------------
13108 # this allows you to turn it completely off
13109 # Check whether --enable-conio or --disable-conio was given.
13110 if test "${enable_conio+set}" = set; then
13111   enableval="$enable_conio"
13112   if test x$enableval = xno; then
13113      support_conio=no
13114   fi
13115
13116 fi;
13117
13118
13119 # ---------------------------------------------------
13120 # Check for IPv6 support
13121 # ---------------------------------------------------
13122 # this allows you to turn it completely off
13123 support_ipv6=yes
13124 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13125 if test "${enable_ipv6+set}" = set; then
13126   enableval="$enable_ipv6"
13127   if test x$enableval = xno; then
13128      support_ipv6=no
13129   fi
13130
13131 fi;
13132
13133 if test x$support_ipv6 = xyes; then
13134     cat >conftest.$ac_ext <<_ACEOF
13135 /* confdefs.h.  */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h.  */
13140  #include <sys/types.h>
13141 #include <sys/socket.h>
13142 #include <netinet/in.h>
13143 int
13144 main ()
13145 {
13146 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13147   ;
13148   return 0;
13149 }
13150 _ACEOF
13151 rm -f conftest.$ac_objext conftest$ac_exeext
13152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13153   (eval $ac_link) 2>conftest.er1
13154   ac_status=$?
13155   grep -v '^ *+' conftest.er1 >conftest.err
13156   rm -f conftest.er1
13157   cat conftest.err >&5
13158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159   (exit $ac_status); } &&
13160          { ac_try='test -z "$ac_c_werror_flag"
13161                          || test ! -s conftest.err'
13162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163   (eval $ac_try) 2>&5
13164   ac_status=$?
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); }; } &&
13167          { ac_try='test -s conftest$ac_exeext'
13168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169   (eval $ac_try) 2>&5
13170   ac_status=$?
13171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172   (exit $ac_status); }; }; then
13173   support_ipv6=yes
13174 else
13175   echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13177
13178 support_ipv6=no
13179 fi
13180 rm -f conftest.err conftest.$ac_objext \
13181       conftest$ac_exeext conftest.$ac_ext
13182 fi
13183
13184 if test x$support_ipv6 = xyes; then
13185
13186 cat >>confdefs.h <<\_ACEOF
13187 #define HAVE_IPV6 1
13188 _ACEOF
13189
13190 fi
13191
13192
13193
13194 got_conio="no"
13195 if test x$support_conio = xyes; then
13196    if test "${ac_cv_header_termcap_h+set}" = set; then
13197   echo "$as_me:$LINENO: checking for termcap.h" >&5
13198 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13199 if test "${ac_cv_header_termcap_h+set}" = set; then
13200   echo $ECHO_N "(cached) $ECHO_C" >&6
13201 fi
13202 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13203 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13204 else
13205   # Is the header compilable?
13206 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13207 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13208 cat >conftest.$ac_ext <<_ACEOF
13209 /* confdefs.h.  */
13210 _ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h.  */
13214 $ac_includes_default
13215 #include <termcap.h>
13216 _ACEOF
13217 rm -f conftest.$ac_objext
13218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13219   (eval $ac_compile) 2>conftest.er1
13220   ac_status=$?
13221   grep -v '^ *+' conftest.er1 >conftest.err
13222   rm -f conftest.er1
13223   cat conftest.err >&5
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); } &&
13226          { ac_try='test -z "$ac_c_werror_flag"
13227                          || test ! -s conftest.err'
13228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229   (eval $ac_try) 2>&5
13230   ac_status=$?
13231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232   (exit $ac_status); }; } &&
13233          { ac_try='test -s conftest.$ac_objext'
13234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235   (eval $ac_try) 2>&5
13236   ac_status=$?
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); }; }; then
13239   ac_header_compiler=yes
13240 else
13241   echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13243
13244 ac_header_compiler=no
13245 fi
13246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13248 echo "${ECHO_T}$ac_header_compiler" >&6
13249
13250 # Is the header present?
13251 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13252 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13253 cat >conftest.$ac_ext <<_ACEOF
13254 /* confdefs.h.  */
13255 _ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h.  */
13259 #include <termcap.h>
13260 _ACEOF
13261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13262   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13263   ac_status=$?
13264   grep -v '^ *+' conftest.er1 >conftest.err
13265   rm -f conftest.er1
13266   cat conftest.err >&5
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); } >/dev/null; then
13269   if test -s conftest.err; then
13270     ac_cpp_err=$ac_c_preproc_warn_flag
13271     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13272   else
13273     ac_cpp_err=
13274   fi
13275 else
13276   ac_cpp_err=yes
13277 fi
13278 if test -z "$ac_cpp_err"; then
13279   ac_header_preproc=yes
13280 else
13281   echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13283
13284   ac_header_preproc=no
13285 fi
13286 rm -f conftest.err conftest.$ac_ext
13287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13288 echo "${ECHO_T}$ac_header_preproc" >&6
13289
13290 # So?  What about this header?
13291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13292   yes:no: )
13293     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13294 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13295     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13296 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13297     ac_header_preproc=yes
13298     ;;
13299   no:yes:* )
13300     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13301 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13302     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
13303 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
13304     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13305 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13306     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
13307 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13308     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13309 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13310     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13311 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13312     (
13313       cat <<\_ASBOX
13314 ## ------------------------------------------ ##
13315 ## Report this to the AC_PACKAGE_NAME lists.  ##
13316 ## ------------------------------------------ ##
13317 _ASBOX
13318     ) |
13319       sed "s/^/$as_me: WARNING:     /" >&2
13320     ;;
13321 esac
13322 echo "$as_me:$LINENO: checking for termcap.h" >&5
13323 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13324 if test "${ac_cv_header_termcap_h+set}" = set; then
13325   echo $ECHO_N "(cached) $ECHO_C" >&6
13326 else
13327   ac_cv_header_termcap_h=$ac_header_preproc
13328 fi
13329 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13330 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13331
13332 fi
13333 if test $ac_cv_header_termcap_h = yes; then
13334    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13335 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13336 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13337   echo $ECHO_N "(cached) $ECHO_C" >&6
13338 else
13339   ac_check_lib_save_LIBS=$LIBS
13340 LIBS="-ltermcap  $LIBS"
13341 cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h.  */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h.  */
13347
13348 /* Override any gcc2 internal prototype to avoid an error.  */
13349 #ifdef __cplusplus
13350 extern "C"
13351 #endif
13352 /* We use char because int might match the return type of a gcc2
13353    builtin and then its argument prototype would still apply.  */
13354 char tgetent ();
13355 int
13356 main ()
13357 {
13358 tgetent ();
13359   ;
13360   return 0;
13361 }
13362 _ACEOF
13363 rm -f conftest.$ac_objext conftest$ac_exeext
13364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13365   (eval $ac_link) 2>conftest.er1
13366   ac_status=$?
13367   grep -v '^ *+' conftest.er1 >conftest.err
13368   rm -f conftest.er1
13369   cat conftest.err >&5
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); } &&
13372          { ac_try='test -z "$ac_c_werror_flag"
13373                          || test ! -s conftest.err'
13374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375   (eval $ac_try) 2>&5
13376   ac_status=$?
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); }; } &&
13379          { ac_try='test -s conftest$ac_exeext'
13380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381   (eval $ac_try) 2>&5
13382   ac_status=$?
13383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); }; }; then
13385   ac_cv_lib_termcap_tgetent=yes
13386 else
13387   echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13389
13390 ac_cv_lib_termcap_tgetent=no
13391 fi
13392 rm -f conftest.err conftest.$ac_objext \
13393       conftest$ac_exeext conftest.$ac_ext
13394 LIBS=$ac_check_lib_save_LIBS
13395 fi
13396 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13397 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13398 if test $ac_cv_lib_termcap_tgetent = yes; then
13399    CONS_LIBS="-ltermcap"
13400          CONS_OBJ="conio.o"
13401          CONS_SRC="conio.c"
13402          got_conio="yes"
13403          support_readline=no
13404
13405 cat >>confdefs.h <<\_ACEOF
13406 #define HAVE_CONIO 1
13407 _ACEOF
13408
13409
13410 else
13411    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13412 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13413 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13414   echo $ECHO_N "(cached) $ECHO_C" >&6
13415 else
13416   ac_check_lib_save_LIBS=$LIBS
13417 LIBS="-lncurses  $LIBS"
13418 cat >conftest.$ac_ext <<_ACEOF
13419 /* confdefs.h.  */
13420 _ACEOF
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h.  */
13424
13425 /* Override any gcc2 internal prototype to avoid an error.  */
13426 #ifdef __cplusplus
13427 extern "C"
13428 #endif
13429 /* We use char because int might match the return type of a gcc2
13430    builtin and then its argument prototype would still apply.  */
13431 char tgetent ();
13432 int
13433 main ()
13434 {
13435 tgetent ();
13436   ;
13437   return 0;
13438 }
13439 _ACEOF
13440 rm -f conftest.$ac_objext conftest$ac_exeext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13442   (eval $ac_link) 2>conftest.er1
13443   ac_status=$?
13444   grep -v '^ *+' conftest.er1 >conftest.err
13445   rm -f conftest.er1
13446   cat conftest.err >&5
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); } &&
13449          { ac_try='test -z "$ac_c_werror_flag"
13450                          || test ! -s conftest.err'
13451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452   (eval $ac_try) 2>&5
13453   ac_status=$?
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); }; } &&
13456          { ac_try='test -s conftest$ac_exeext'
13457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458   (eval $ac_try) 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; }; then
13462   ac_cv_lib_ncurses_tgetent=yes
13463 else
13464   echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13466
13467 ac_cv_lib_ncurses_tgetent=no
13468 fi
13469 rm -f conftest.err conftest.$ac_objext \
13470       conftest$ac_exeext conftest.$ac_ext
13471 LIBS=$ac_check_lib_save_LIBS
13472 fi
13473 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13474 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13475 if test $ac_cv_lib_ncurses_tgetent = yes; then
13476    CONS_LIBS="-lncurses"
13477            CONS_OBJ="conio.o"
13478            CONS_SRC="conio.c"
13479            got_conio="yes"
13480            support_readline=no
13481
13482 cat >>confdefs.h <<\_ACEOF
13483 #define HAVE_CONIO 1
13484 _ACEOF
13485
13486
13487 fi
13488
13489
13490 fi
13491
13492
13493 else
13494
13495
13496 for ac_header in curses.h
13497 do
13498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13500   echo "$as_me:$LINENO: checking for $ac_header" >&5
13501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13503   echo $ECHO_N "(cached) $ECHO_C" >&6
13504 fi
13505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13507 else
13508   # Is the header compilable?
13509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13511 cat >conftest.$ac_ext <<_ACEOF
13512 /* confdefs.h.  */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h.  */
13517 $ac_includes_default
13518 #include <$ac_header>
13519 _ACEOF
13520 rm -f conftest.$ac_objext
13521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13522   (eval $ac_compile) 2>conftest.er1
13523   ac_status=$?
13524   grep -v '^ *+' conftest.er1 >conftest.err
13525   rm -f conftest.er1
13526   cat conftest.err >&5
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); } &&
13529          { ac_try='test -z "$ac_c_werror_flag"
13530                          || test ! -s conftest.err'
13531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532   (eval $ac_try) 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); }; } &&
13536          { ac_try='test -s conftest.$ac_objext'
13537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538   (eval $ac_try) 2>&5
13539   ac_status=$?
13540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541   (exit $ac_status); }; }; then
13542   ac_header_compiler=yes
13543 else
13544   echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13546
13547 ac_header_compiler=no
13548 fi
13549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13551 echo "${ECHO_T}$ac_header_compiler" >&6
13552
13553 # Is the header present?
13554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13556 cat >conftest.$ac_ext <<_ACEOF
13557 /* confdefs.h.  */
13558 _ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h.  */
13562 #include <$ac_header>
13563 _ACEOF
13564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13565   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13566   ac_status=$?
13567   grep -v '^ *+' conftest.er1 >conftest.err
13568   rm -f conftest.er1
13569   cat conftest.err >&5
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); } >/dev/null; then
13572   if test -s conftest.err; then
13573     ac_cpp_err=$ac_c_preproc_warn_flag
13574     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13575   else
13576     ac_cpp_err=
13577   fi
13578 else
13579   ac_cpp_err=yes
13580 fi
13581 if test -z "$ac_cpp_err"; then
13582   ac_header_preproc=yes
13583 else
13584   echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13586
13587   ac_header_preproc=no
13588 fi
13589 rm -f conftest.err conftest.$ac_ext
13590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13591 echo "${ECHO_T}$ac_header_preproc" >&6
13592
13593 # So?  What about this header?
13594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13595   yes:no: )
13596     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13600     ac_header_preproc=yes
13601     ;;
13602   no:yes:* )
13603     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13605     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13606 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13607     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13609     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13610 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13613     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13615     (
13616       cat <<\_ASBOX
13617 ## ------------------------------------------ ##
13618 ## Report this to the AC_PACKAGE_NAME lists.  ##
13619 ## ------------------------------------------ ##
13620 _ASBOX
13621     ) |
13622       sed "s/^/$as_me: WARNING:     /" >&2
13623     ;;
13624 esac
13625 echo "$as_me:$LINENO: checking for $ac_header" >&5
13626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13628   echo $ECHO_N "(cached) $ECHO_C" >&6
13629 else
13630   eval "$as_ac_Header=\$ac_header_preproc"
13631 fi
13632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13634
13635 fi
13636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13637   cat >>confdefs.h <<_ACEOF
13638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13639 _ACEOF
13640
13641 fi
13642
13643 done
13644
13645          echo "$as_me:$LINENO: checking for term.h" >&5
13646 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13647 if test "${ac_cv_header_term_h+set}" = set; then
13648   echo $ECHO_N "(cached) $ECHO_C" >&6
13649 else
13650   cat >conftest.$ac_ext <<_ACEOF
13651 /* confdefs.h.  */
13652 _ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h.  */
13656 #if HAVE_CURSES_H
13657 #include <curses.h>
13658 #endif
13659
13660
13661 #include <term.h>
13662 _ACEOF
13663 rm -f conftest.$ac_objext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13665   (eval $ac_compile) 2>conftest.er1
13666   ac_status=$?
13667   grep -v '^ *+' conftest.er1 >conftest.err
13668   rm -f conftest.er1
13669   cat conftest.err >&5
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); } &&
13672          { ac_try='test -z "$ac_c_werror_flag"
13673                          || test ! -s conftest.err'
13674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675   (eval $ac_try) 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); }; } &&
13679          { ac_try='test -s conftest.$ac_objext'
13680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681   (eval $ac_try) 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); }; }; then
13685   ac_cv_header_term_h=yes
13686 else
13687   echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13689
13690 ac_cv_header_term_h=no
13691 fi
13692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13693 fi
13694 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13695 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13696 if test $ac_cv_header_term_h = yes; then
13697    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13698 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13699 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13700   echo $ECHO_N "(cached) $ECHO_C" >&6
13701 else
13702   ac_check_lib_save_LIBS=$LIBS
13703 LIBS="-lcurses  $LIBS"
13704 cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h.  */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h.  */
13710
13711 /* Override any gcc2 internal prototype to avoid an error.  */
13712 #ifdef __cplusplus
13713 extern "C"
13714 #endif
13715 /* We use char because int might match the return type of a gcc2
13716    builtin and then its argument prototype would still apply.  */
13717 char tgetent ();
13718 int
13719 main ()
13720 {
13721 tgetent ();
13722   ;
13723   return 0;
13724 }
13725 _ACEOF
13726 rm -f conftest.$ac_objext conftest$ac_exeext
13727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13728   (eval $ac_link) 2>conftest.er1
13729   ac_status=$?
13730   grep -v '^ *+' conftest.er1 >conftest.err
13731   rm -f conftest.er1
13732   cat conftest.err >&5
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); } &&
13735          { ac_try='test -z "$ac_c_werror_flag"
13736                          || test ! -s conftest.err'
13737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738   (eval $ac_try) 2>&5
13739   ac_status=$?
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); }; } &&
13742          { ac_try='test -s conftest$ac_exeext'
13743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744   (eval $ac_try) 2>&5
13745   ac_status=$?
13746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747   (exit $ac_status); }; }; then
13748   ac_cv_lib_curses_tgetent=yes
13749 else
13750   echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13752
13753 ac_cv_lib_curses_tgetent=no
13754 fi
13755 rm -f conftest.err conftest.$ac_objext \
13756       conftest$ac_exeext conftest.$ac_ext
13757 LIBS=$ac_check_lib_save_LIBS
13758 fi
13759 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13760 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13761 if test $ac_cv_lib_curses_tgetent = yes; then
13762    CONS_LIBS="-lcurses"
13763                    CONS_OBJ="conio.o"
13764                    CONS_SRC="conio.c"
13765                    got_conio="yes"
13766                    support_readline=no
13767
13768 cat >>confdefs.h <<\_ACEOF
13769 #define HAVE_CONIO 1
13770 _ACEOF
13771
13772
13773 fi
13774
13775
13776 else
13777    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13778 fi
13779
13780
13781
13782 fi
13783
13784
13785 fi
13786
13787
13788 # ---------------------------------------------------
13789 # Check for readline support/directory (default off)
13790 # ---------------------------------------------------
13791 # this allows you to turn it completely off
13792 # Check whether --enable-readline or --disable-readline was given.
13793 if test "${enable_readline+set}" = set; then
13794   enableval="$enable_readline"
13795   if test x$enableval = xno; then
13796     support_readline=no
13797   fi
13798 fi;
13799
13800 got_readline="no"
13801 READLINE_SRC=
13802 if test x$support_readline = xyes; then
13803
13804 # Check whether --with-readline or --without-readline was given.
13805 if test "${with_readline+set}" = set; then
13806   withval="$with_readline"
13807
13808         case "$with_readline" in
13809         no) : ;;
13810         yes|*)
13811           if test -f ${with_readline}/readline.h; then
13812              CONS_INC="-I${with_readline}"
13813              CONS_LDFLAGS="-L$with_readline"
13814           elif test -f ${with_readline}/include/readline/readline.h; then
13815              CONS_INC="-I${with_readline}/include/readline"
13816              CONS_LDFLAGS="-L${with_readline}/lib"
13817              with_readline="${with_readline}/include/readline"
13818           else
13819              with_readline="/usr/include/readline"
13820           fi
13821           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13823   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13824 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13826   echo $ECHO_N "(cached) $ECHO_C" >&6
13827 fi
13828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13830 else
13831   # Is the header compilable?
13832 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13833 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13834 cat >conftest.$ac_ext <<_ACEOF
13835 /* confdefs.h.  */
13836 _ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h.  */
13840 $ac_includes_default
13841 #include <${with_readline}/readline.h>
13842 _ACEOF
13843 rm -f conftest.$ac_objext
13844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13845   (eval $ac_compile) 2>conftest.er1
13846   ac_status=$?
13847   grep -v '^ *+' conftest.er1 >conftest.err
13848   rm -f conftest.er1
13849   cat conftest.err >&5
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); } &&
13852          { ac_try='test -z "$ac_c_werror_flag"
13853                          || test ! -s conftest.err'
13854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855   (eval $ac_try) 2>&5
13856   ac_status=$?
13857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); }; } &&
13859          { ac_try='test -s conftest.$ac_objext'
13860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861   (eval $ac_try) 2>&5
13862   ac_status=$?
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); }; }; then
13865   ac_header_compiler=yes
13866 else
13867   echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13869
13870 ac_header_compiler=no
13871 fi
13872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13874 echo "${ECHO_T}$ac_header_compiler" >&6
13875
13876 # Is the header present?
13877 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13878 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13879 cat >conftest.$ac_ext <<_ACEOF
13880 /* confdefs.h.  */
13881 _ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h.  */
13885 #include <${with_readline}/readline.h>
13886 _ACEOF
13887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13888   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13889   ac_status=$?
13890   grep -v '^ *+' conftest.er1 >conftest.err
13891   rm -f conftest.er1
13892   cat conftest.err >&5
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); } >/dev/null; then
13895   if test -s conftest.err; then
13896     ac_cpp_err=$ac_c_preproc_warn_flag
13897     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13898   else
13899     ac_cpp_err=
13900   fi
13901 else
13902   ac_cpp_err=yes
13903 fi
13904 if test -z "$ac_cpp_err"; then
13905   ac_header_preproc=yes
13906 else
13907   echo "$as_me: failed program was:" >&5
13908 sed 's/^/| /' conftest.$ac_ext >&5
13909
13910   ac_header_preproc=no
13911 fi
13912 rm -f conftest.err conftest.$ac_ext
13913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13914 echo "${ECHO_T}$ac_header_preproc" >&6
13915
13916 # So?  What about this header?
13917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13918   yes:no: )
13919     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13920 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13921     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13922 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13923     ac_header_preproc=yes
13924     ;;
13925   no:yes:* )
13926     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13927 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13928     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
13929 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
13930     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13931 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13932     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13933 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13934     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13935 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13936     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13937 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13938     (
13939       cat <<\_ASBOX
13940 ## ------------------------------------------ ##
13941 ## Report this to the AC_PACKAGE_NAME lists.  ##
13942 ## ------------------------------------------ ##
13943 _ASBOX
13944     ) |
13945       sed "s/^/$as_me: WARNING:     /" >&2
13946     ;;
13947 esac
13948 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13949 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13951   echo $ECHO_N "(cached) $ECHO_C" >&6
13952 else
13953   eval "$as_ac_Header=\$ac_header_preproc"
13954 fi
13955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13957
13958 fi
13959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13960
13961 cat >>confdefs.h <<\_ACEOF
13962 #define HAVE_READLINE 1
13963 _ACEOF
13964
13965                CONS_LIBS="-lreadline -lhistory -ltermcap"
13966                got_readline="yes"
13967
13968 else
13969    echo " "
13970                echo "readline.h not found. readline turned off ..."
13971                echo " "
13972
13973
13974 fi
13975
13976
13977           ;;
13978         esac
13979
13980 else
13981
13982        # check for standard readline library
13983        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13984   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13985 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13986 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13987   echo $ECHO_N "(cached) $ECHO_C" >&6
13988 fi
13989 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13990 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13991 else
13992   # Is the header compilable?
13993 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13994 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13995 cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h.  */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h.  */
14001 $ac_includes_default
14002 #include </usr/include/readline/readline.h>
14003 _ACEOF
14004 rm -f conftest.$ac_objext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006   (eval $ac_compile) 2>conftest.er1
14007   ac_status=$?
14008   grep -v '^ *+' conftest.er1 >conftest.err
14009   rm -f conftest.er1
14010   cat conftest.err >&5
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); } &&
14013          { ac_try='test -z "$ac_c_werror_flag"
14014                          || test ! -s conftest.err'
14015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016   (eval $ac_try) 2>&5
14017   ac_status=$?
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); }; } &&
14020          { ac_try='test -s conftest.$ac_objext'
14021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022   (eval $ac_try) 2>&5
14023   ac_status=$?
14024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025   (exit $ac_status); }; }; then
14026   ac_header_compiler=yes
14027 else
14028   echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14030
14031 ac_header_compiler=no
14032 fi
14033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14035 echo "${ECHO_T}$ac_header_compiler" >&6
14036
14037 # Is the header present?
14038 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14039 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
14040 cat >conftest.$ac_ext <<_ACEOF
14041 /* confdefs.h.  */
14042 _ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h.  */
14046 #include </usr/include/readline/readline.h>
14047 _ACEOF
14048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14049   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14050   ac_status=$?
14051   grep -v '^ *+' conftest.er1 >conftest.err
14052   rm -f conftest.er1
14053   cat conftest.err >&5
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); } >/dev/null; then
14056   if test -s conftest.err; then
14057     ac_cpp_err=$ac_c_preproc_warn_flag
14058     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14059   else
14060     ac_cpp_err=
14061   fi
14062 else
14063   ac_cpp_err=yes
14064 fi
14065 if test -z "$ac_cpp_err"; then
14066   ac_header_preproc=yes
14067 else
14068   echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14070
14071   ac_header_preproc=no
14072 fi
14073 rm -f conftest.err conftest.$ac_ext
14074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14075 echo "${ECHO_T}$ac_header_preproc" >&6
14076
14077 # So?  What about this header?
14078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14079   yes:no: )
14080     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14081 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14082     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14083 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14084     ac_header_preproc=yes
14085     ;;
14086   no:yes:* )
14087     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14088 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14089     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14090 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14091     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14092 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14093     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14094 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14095     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14096 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14097     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14098 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14099     (
14100       cat <<\_ASBOX
14101 ## ------------------------------------------ ##
14102 ## Report this to the AC_PACKAGE_NAME lists.  ##
14103 ## ------------------------------------------ ##
14104 _ASBOX
14105     ) |
14106       sed "s/^/$as_me: WARNING:     /" >&2
14107     ;;
14108 esac
14109 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14110 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14111 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14112   echo $ECHO_N "(cached) $ECHO_C" >&6
14113 else
14114   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14115 fi
14116 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14117 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14118
14119 fi
14120 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14121
14122 cat >>confdefs.h <<\_ACEOF
14123 #define HAVE_READLINE 1
14124 _ACEOF
14125
14126            got_readline="yes"
14127            CONS_INC="-I/usr/include/readline"
14128            CONS_LIBS="-lreadline -ltermcap"
14129
14130 else
14131
14132            # Did not find standard library, so try Bacula's default
14133             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14135   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14136 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14138   echo $ECHO_N "(cached) $ECHO_C" >&6
14139 fi
14140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14142 else
14143   # Is the header compilable?
14144 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14145 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14146 cat >conftest.$ac_ext <<_ACEOF
14147 /* confdefs.h.  */
14148 _ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h.  */
14152 $ac_includes_default
14153 #include <${TOP_DIR}/depkgs/readline/readline.h>
14154 _ACEOF
14155 rm -f conftest.$ac_objext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14157   (eval $ac_compile) 2>conftest.er1
14158   ac_status=$?
14159   grep -v '^ *+' conftest.er1 >conftest.err
14160   rm -f conftest.er1
14161   cat conftest.err >&5
14162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); } &&
14164          { ac_try='test -z "$ac_c_werror_flag"
14165                          || test ! -s conftest.err'
14166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167   (eval $ac_try) 2>&5
14168   ac_status=$?
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); }; } &&
14171          { ac_try='test -s conftest.$ac_objext'
14172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173   (eval $ac_try) 2>&5
14174   ac_status=$?
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); }; }; then
14177   ac_header_compiler=yes
14178 else
14179   echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14181
14182 ac_header_compiler=no
14183 fi
14184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14186 echo "${ECHO_T}$ac_header_compiler" >&6
14187
14188 # Is the header present?
14189 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14190 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14191 cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h.  */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h.  */
14197 #include <${TOP_DIR}/depkgs/readline/readline.h>
14198 _ACEOF
14199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14200   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14201   ac_status=$?
14202   grep -v '^ *+' conftest.er1 >conftest.err
14203   rm -f conftest.er1
14204   cat conftest.err >&5
14205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206   (exit $ac_status); } >/dev/null; then
14207   if test -s conftest.err; then
14208     ac_cpp_err=$ac_c_preproc_warn_flag
14209     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14210   else
14211     ac_cpp_err=
14212   fi
14213 else
14214   ac_cpp_err=yes
14215 fi
14216 if test -z "$ac_cpp_err"; then
14217   ac_header_preproc=yes
14218 else
14219   echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14221
14222   ac_header_preproc=no
14223 fi
14224 rm -f conftest.err conftest.$ac_ext
14225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14226 echo "${ECHO_T}$ac_header_preproc" >&6
14227
14228 # So?  What about this header?
14229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14230   yes:no: )
14231     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14232 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14233     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14234 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14235     ac_header_preproc=yes
14236     ;;
14237   no:yes:* )
14238     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14239 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14240     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14241 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14242     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14243 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14244     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14245 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14246     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14247 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14248     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14249 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14250     (
14251       cat <<\_ASBOX
14252 ## ------------------------------------------ ##
14253 ## Report this to the AC_PACKAGE_NAME lists.  ##
14254 ## ------------------------------------------ ##
14255 _ASBOX
14256     ) |
14257       sed "s/^/$as_me: WARNING:     /" >&2
14258     ;;
14259 esac
14260 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14261 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14263   echo $ECHO_N "(cached) $ECHO_C" >&6
14264 else
14265   eval "$as_ac_Header=\$ac_header_preproc"
14266 fi
14267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14269
14270 fi
14271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14272
14273 cat >>confdefs.h <<\_ACEOF
14274 #define HAVE_READLINE 1
14275 _ACEOF
14276
14277                  got_readline="yes"
14278                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14279                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14280                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14281                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14282
14283 else
14284    echo " "
14285                 echo "readline.h not found. readline turned off ..."
14286                 echo " "
14287
14288
14289 fi
14290
14291
14292
14293
14294 fi
14295
14296
14297
14298
14299 fi;
14300 fi
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311 # Minimal stuff for readline Makefile configuration
14312 MAKE_SHELL=/bin/sh
14313
14314 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14315 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14316 if test "${ac_cv_header_stat_broken+set}" = set; then
14317   echo $ECHO_N "(cached) $ECHO_C" >&6
14318 else
14319   cat >conftest.$ac_ext <<_ACEOF
14320 /* confdefs.h.  */
14321 _ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h.  */
14325 #include <sys/types.h>
14326 #include <sys/stat.h>
14327
14328 #if defined(S_ISBLK) && defined(S_IFDIR)
14329 # if S_ISBLK (S_IFDIR)
14330 You lose.
14331 # endif
14332 #endif
14333
14334 #if defined(S_ISBLK) && defined(S_IFCHR)
14335 # if S_ISBLK (S_IFCHR)
14336 You lose.
14337 # endif
14338 #endif
14339
14340 #if defined(S_ISLNK) && defined(S_IFREG)
14341 # if S_ISLNK (S_IFREG)
14342 You lose.
14343 # endif
14344 #endif
14345
14346 #if defined(S_ISSOCK) && defined(S_IFREG)
14347 # if S_ISSOCK (S_IFREG)
14348 You lose.
14349 # endif
14350 #endif
14351
14352 _ACEOF
14353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14354   $EGREP "You lose" >/dev/null 2>&1; then
14355   ac_cv_header_stat_broken=yes
14356 else
14357   ac_cv_header_stat_broken=no
14358 fi
14359 rm -f conftest*
14360
14361 fi
14362 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14363 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14364 if test $ac_cv_header_stat_broken = yes; then
14365
14366 cat >>confdefs.h <<\_ACEOF
14367 #define STAT_MACROS_BROKEN 1
14368 _ACEOF
14369
14370 fi
14371
14372
14373
14374
14375
14376
14377 ac_header_dirent=no
14378 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14379   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14380 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14381 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14383   echo $ECHO_N "(cached) $ECHO_C" >&6
14384 else
14385   cat >conftest.$ac_ext <<_ACEOF
14386 /* confdefs.h.  */
14387 _ACEOF
14388 cat confdefs.h >>conftest.$ac_ext
14389 cat >>conftest.$ac_ext <<_ACEOF
14390 /* end confdefs.h.  */
14391 #include <sys/types.h>
14392 #include <$ac_hdr>
14393
14394 int
14395 main ()
14396 {
14397 if ((DIR *) 0)
14398 return 0;
14399   ;
14400   return 0;
14401 }
14402 _ACEOF
14403 rm -f conftest.$ac_objext
14404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14405   (eval $ac_compile) 2>conftest.er1
14406   ac_status=$?
14407   grep -v '^ *+' conftest.er1 >conftest.err
14408   rm -f conftest.er1
14409   cat conftest.err >&5
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); } &&
14412          { ac_try='test -z "$ac_c_werror_flag"
14413                          || test ! -s conftest.err'
14414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415   (eval $ac_try) 2>&5
14416   ac_status=$?
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); }; } &&
14419          { ac_try='test -s conftest.$ac_objext'
14420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421   (eval $ac_try) 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); }; }; then
14425   eval "$as_ac_Header=yes"
14426 else
14427   echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14429
14430 eval "$as_ac_Header=no"
14431 fi
14432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14433 fi
14434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14437   cat >>confdefs.h <<_ACEOF
14438 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14439 _ACEOF
14440
14441 ac_header_dirent=$ac_hdr; break
14442 fi
14443
14444 done
14445 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14446 if test $ac_header_dirent = dirent.h; then
14447   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14448 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14449 if test "${ac_cv_search_opendir+set}" = set; then
14450   echo $ECHO_N "(cached) $ECHO_C" >&6
14451 else
14452   ac_func_search_save_LIBS=$LIBS
14453 ac_cv_search_opendir=no
14454 cat >conftest.$ac_ext <<_ACEOF
14455 /* confdefs.h.  */
14456 _ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h.  */
14460
14461 /* Override any gcc2 internal prototype to avoid an error.  */
14462 #ifdef __cplusplus
14463 extern "C"
14464 #endif
14465 /* We use char because int might match the return type of a gcc2
14466    builtin and then its argument prototype would still apply.  */
14467 char opendir ();
14468 int
14469 main ()
14470 {
14471 opendir ();
14472   ;
14473   return 0;
14474 }
14475 _ACEOF
14476 rm -f conftest.$ac_objext conftest$ac_exeext
14477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14478   (eval $ac_link) 2>conftest.er1
14479   ac_status=$?
14480   grep -v '^ *+' conftest.er1 >conftest.err
14481   rm -f conftest.er1
14482   cat conftest.err >&5
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   (exit $ac_status); } &&
14485          { ac_try='test -z "$ac_c_werror_flag"
14486                          || test ! -s conftest.err'
14487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488   (eval $ac_try) 2>&5
14489   ac_status=$?
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); }; } &&
14492          { ac_try='test -s conftest$ac_exeext'
14493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494   (eval $ac_try) 2>&5
14495   ac_status=$?
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); }; }; then
14498   ac_cv_search_opendir="none required"
14499 else
14500   echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14502
14503 fi
14504 rm -f conftest.err conftest.$ac_objext \
14505       conftest$ac_exeext conftest.$ac_ext
14506 if test "$ac_cv_search_opendir" = no; then
14507   for ac_lib in dir; do
14508     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14509     cat >conftest.$ac_ext <<_ACEOF
14510 /* confdefs.h.  */
14511 _ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h.  */
14515
14516 /* Override any gcc2 internal prototype to avoid an error.  */
14517 #ifdef __cplusplus
14518 extern "C"
14519 #endif
14520 /* We use char because int might match the return type of a gcc2
14521    builtin and then its argument prototype would still apply.  */
14522 char opendir ();
14523 int
14524 main ()
14525 {
14526 opendir ();
14527   ;
14528   return 0;
14529 }
14530 _ACEOF
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14533   (eval $ac_link) 2>conftest.er1
14534   ac_status=$?
14535   grep -v '^ *+' conftest.er1 >conftest.err
14536   rm -f conftest.er1
14537   cat conftest.err >&5
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); } &&
14540          { ac_try='test -z "$ac_c_werror_flag"
14541                          || test ! -s conftest.err'
14542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543   (eval $ac_try) 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); }; } &&
14547          { ac_try='test -s conftest$ac_exeext'
14548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549   (eval $ac_try) 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); }; }; then
14553   ac_cv_search_opendir="-l$ac_lib"
14554 break
14555 else
14556   echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14558
14559 fi
14560 rm -f conftest.err conftest.$ac_objext \
14561       conftest$ac_exeext conftest.$ac_ext
14562   done
14563 fi
14564 LIBS=$ac_func_search_save_LIBS
14565 fi
14566 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14567 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14568 if test "$ac_cv_search_opendir" != no; then
14569   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14570
14571 fi
14572
14573 else
14574   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14575 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14576 if test "${ac_cv_search_opendir+set}" = set; then
14577   echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579   ac_func_search_save_LIBS=$LIBS
14580 ac_cv_search_opendir=no
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h.  */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h.  */
14587
14588 /* Override any gcc2 internal prototype to avoid an error.  */
14589 #ifdef __cplusplus
14590 extern "C"
14591 #endif
14592 /* We use char because int might match the return type of a gcc2
14593    builtin and then its argument prototype would still apply.  */
14594 char opendir ();
14595 int
14596 main ()
14597 {
14598 opendir ();
14599   ;
14600   return 0;
14601 }
14602 _ACEOF
14603 rm -f conftest.$ac_objext conftest$ac_exeext
14604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14605   (eval $ac_link) 2>conftest.er1
14606   ac_status=$?
14607   grep -v '^ *+' conftest.er1 >conftest.err
14608   rm -f conftest.er1
14609   cat conftest.err >&5
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); } &&
14612          { ac_try='test -z "$ac_c_werror_flag"
14613                          || test ! -s conftest.err'
14614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615   (eval $ac_try) 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; } &&
14619          { ac_try='test -s conftest$ac_exeext'
14620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621   (eval $ac_try) 2>&5
14622   ac_status=$?
14623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   (exit $ac_status); }; }; then
14625   ac_cv_search_opendir="none required"
14626 else
14627   echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14629
14630 fi
14631 rm -f conftest.err conftest.$ac_objext \
14632       conftest$ac_exeext conftest.$ac_ext
14633 if test "$ac_cv_search_opendir" = no; then
14634   for ac_lib in x; do
14635     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14636     cat >conftest.$ac_ext <<_ACEOF
14637 /* confdefs.h.  */
14638 _ACEOF
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h.  */
14642
14643 /* Override any gcc2 internal prototype to avoid an error.  */
14644 #ifdef __cplusplus
14645 extern "C"
14646 #endif
14647 /* We use char because int might match the return type of a gcc2
14648    builtin and then its argument prototype would still apply.  */
14649 char opendir ();
14650 int
14651 main ()
14652 {
14653 opendir ();
14654   ;
14655   return 0;
14656 }
14657 _ACEOF
14658 rm -f conftest.$ac_objext conftest$ac_exeext
14659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14660   (eval $ac_link) 2>conftest.er1
14661   ac_status=$?
14662   grep -v '^ *+' conftest.er1 >conftest.err
14663   rm -f conftest.er1
14664   cat conftest.err >&5
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); } &&
14667          { ac_try='test -z "$ac_c_werror_flag"
14668                          || test ! -s conftest.err'
14669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670   (eval $ac_try) 2>&5
14671   ac_status=$?
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); }; } &&
14674          { ac_try='test -s conftest$ac_exeext'
14675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676   (eval $ac_try) 2>&5
14677   ac_status=$?
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); }; }; then
14680   ac_cv_search_opendir="-l$ac_lib"
14681 break
14682 else
14683   echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14685
14686 fi
14687 rm -f conftest.err conftest.$ac_objext \
14688       conftest$ac_exeext conftest.$ac_ext
14689   done
14690 fi
14691 LIBS=$ac_func_search_save_LIBS
14692 fi
14693 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14694 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14695 if test "$ac_cv_search_opendir" != no; then
14696   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14697
14698 fi
14699
14700 fi
14701
14702
14703
14704
14705
14706
14707
14708
14709 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14710 do
14711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14712 echo "$as_me:$LINENO: checking for $ac_func" >&5
14713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14714 if eval "test \"\${$as_ac_var+set}\" = set"; then
14715   echo $ECHO_N "(cached) $ECHO_C" >&6
14716 else
14717   cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h.  */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h.  */
14723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14725 #define $ac_func innocuous_$ac_func
14726
14727 /* System header to define __stub macros and hopefully few prototypes,
14728     which can conflict with char $ac_func (); below.
14729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14730     <limits.h> exists even on freestanding compilers.  */
14731
14732 #ifdef __STDC__
14733 # include <limits.h>
14734 #else
14735 # include <assert.h>
14736 #endif
14737
14738 #undef $ac_func
14739
14740 /* Override any gcc2 internal prototype to avoid an error.  */
14741 #ifdef __cplusplus
14742 extern "C"
14743 {
14744 #endif
14745 /* We use char because int might match the return type of a gcc2
14746    builtin and then its argument prototype would still apply.  */
14747 char $ac_func ();
14748 /* The GNU C library defines this for functions which it implements
14749     to always fail with ENOSYS.  Some functions are actually named
14750     something starting with __ and the normal name is an alias.  */
14751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14752 choke me
14753 #else
14754 char (*f) () = $ac_func;
14755 #endif
14756 #ifdef __cplusplus
14757 }
14758 #endif
14759
14760 int
14761 main ()
14762 {
14763 return f != $ac_func;
14764   ;
14765   return 0;
14766 }
14767 _ACEOF
14768 rm -f conftest.$ac_objext conftest$ac_exeext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14770   (eval $ac_link) 2>conftest.er1
14771   ac_status=$?
14772   grep -v '^ *+' conftest.er1 >conftest.err
14773   rm -f conftest.er1
14774   cat conftest.err >&5
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); } &&
14777          { ac_try='test -z "$ac_c_werror_flag"
14778                          || test ! -s conftest.err'
14779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780   (eval $ac_try) 2>&5
14781   ac_status=$?
14782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783   (exit $ac_status); }; } &&
14784          { ac_try='test -s conftest$ac_exeext'
14785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786   (eval $ac_try) 2>&5
14787   ac_status=$?
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); }; }; then
14790   eval "$as_ac_var=yes"
14791 else
14792   echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14794
14795 eval "$as_ac_var=no"
14796 fi
14797 rm -f conftest.err conftest.$ac_objext \
14798       conftest$ac_exeext conftest.$ac_ext
14799 fi
14800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14802 if test `eval echo '${'$as_ac_var'}'` = yes; then
14803   cat >>confdefs.h <<_ACEOF
14804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14805 _ACEOF
14806
14807 fi
14808 done
14809
14810
14811
14812 for ac_func in nanosleep nl_langinfo
14813 do
14814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14815 echo "$as_me:$LINENO: checking for $ac_func" >&5
14816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14817 if eval "test \"\${$as_ac_var+set}\" = set"; then
14818   echo $ECHO_N "(cached) $ECHO_C" >&6
14819 else
14820   cat >conftest.$ac_ext <<_ACEOF
14821 /* confdefs.h.  */
14822 _ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h.  */
14826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14828 #define $ac_func innocuous_$ac_func
14829
14830 /* System header to define __stub macros and hopefully few prototypes,
14831     which can conflict with char $ac_func (); below.
14832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14833     <limits.h> exists even on freestanding compilers.  */
14834
14835 #ifdef __STDC__
14836 # include <limits.h>
14837 #else
14838 # include <assert.h>
14839 #endif
14840
14841 #undef $ac_func
14842
14843 /* Override any gcc2 internal prototype to avoid an error.  */
14844 #ifdef __cplusplus
14845 extern "C"
14846 {
14847 #endif
14848 /* We use char because int might match the return type of a gcc2
14849    builtin and then its argument prototype would still apply.  */
14850 char $ac_func ();
14851 /* The GNU C library defines this for functions which it implements
14852     to always fail with ENOSYS.  Some functions are actually named
14853     something starting with __ and the normal name is an alias.  */
14854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14855 choke me
14856 #else
14857 char (*f) () = $ac_func;
14858 #endif
14859 #ifdef __cplusplus
14860 }
14861 #endif
14862
14863 int
14864 main ()
14865 {
14866 return f != $ac_func;
14867   ;
14868   return 0;
14869 }
14870 _ACEOF
14871 rm -f conftest.$ac_objext conftest$ac_exeext
14872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14873   (eval $ac_link) 2>conftest.er1
14874   ac_status=$?
14875   grep -v '^ *+' conftest.er1 >conftest.err
14876   rm -f conftest.er1
14877   cat conftest.err >&5
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); } &&
14880          { ac_try='test -z "$ac_c_werror_flag"
14881                          || test ! -s conftest.err'
14882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883   (eval $ac_try) 2>&5
14884   ac_status=$?
14885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886   (exit $ac_status); }; } &&
14887          { ac_try='test -s conftest$ac_exeext'
14888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889   (eval $ac_try) 2>&5
14890   ac_status=$?
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); }; }; then
14893   eval "$as_ac_var=yes"
14894 else
14895   echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14897
14898 eval "$as_ac_var=no"
14899 fi
14900 rm -f conftest.err conftest.$ac_objext \
14901       conftest$ac_exeext conftest.$ac_ext
14902 fi
14903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14905 if test `eval echo '${'$as_ac_var'}'` = yes; then
14906   cat >>confdefs.h <<_ACEOF
14907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14908 _ACEOF
14909
14910 fi
14911 done
14912
14913
14914 for ac_header in varargs.h
14915 do
14916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14918   echo "$as_me:$LINENO: checking for $ac_header" >&5
14919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14921   echo $ECHO_N "(cached) $ECHO_C" >&6
14922 fi
14923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14925 else
14926   # Is the header compilable?
14927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14929 cat >conftest.$ac_ext <<_ACEOF
14930 /* confdefs.h.  */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h.  */
14935 $ac_includes_default
14936 #include <$ac_header>
14937 _ACEOF
14938 rm -f conftest.$ac_objext
14939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14940   (eval $ac_compile) 2>conftest.er1
14941   ac_status=$?
14942   grep -v '^ *+' conftest.er1 >conftest.err
14943   rm -f conftest.er1
14944   cat conftest.err >&5
14945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946   (exit $ac_status); } &&
14947          { ac_try='test -z "$ac_c_werror_flag"
14948                          || test ! -s conftest.err'
14949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950   (eval $ac_try) 2>&5
14951   ac_status=$?
14952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953   (exit $ac_status); }; } &&
14954          { ac_try='test -s conftest.$ac_objext'
14955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956   (eval $ac_try) 2>&5
14957   ac_status=$?
14958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959   (exit $ac_status); }; }; then
14960   ac_header_compiler=yes
14961 else
14962   echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14964
14965 ac_header_compiler=no
14966 fi
14967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14969 echo "${ECHO_T}$ac_header_compiler" >&6
14970
14971 # Is the header present?
14972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14974 cat >conftest.$ac_ext <<_ACEOF
14975 /* confdefs.h.  */
14976 _ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h.  */
14980 #include <$ac_header>
14981 _ACEOF
14982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14983   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14984   ac_status=$?
14985   grep -v '^ *+' conftest.er1 >conftest.err
14986   rm -f conftest.er1
14987   cat conftest.err >&5
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); } >/dev/null; then
14990   if test -s conftest.err; then
14991     ac_cpp_err=$ac_c_preproc_warn_flag
14992     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14993   else
14994     ac_cpp_err=
14995   fi
14996 else
14997   ac_cpp_err=yes
14998 fi
14999 if test -z "$ac_cpp_err"; then
15000   ac_header_preproc=yes
15001 else
15002   echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15004
15005   ac_header_preproc=no
15006 fi
15007 rm -f conftest.err conftest.$ac_ext
15008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15009 echo "${ECHO_T}$ac_header_preproc" >&6
15010
15011 # So?  What about this header?
15012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15013   yes:no: )
15014     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15018     ac_header_preproc=yes
15019     ;;
15020   no:yes:* )
15021     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15023     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15024 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15025     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15027     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15028 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15031     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15033     (
15034       cat <<\_ASBOX
15035 ## ------------------------------------------ ##
15036 ## Report this to the AC_PACKAGE_NAME lists.  ##
15037 ## ------------------------------------------ ##
15038 _ASBOX
15039     ) |
15040       sed "s/^/$as_me: WARNING:     /" >&2
15041     ;;
15042 esac
15043 echo "$as_me:$LINENO: checking for $ac_header" >&5
15044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15046   echo $ECHO_N "(cached) $ECHO_C" >&6
15047 else
15048   eval "$as_ac_Header=\$ac_header_preproc"
15049 fi
15050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15052
15053 fi
15054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15055   cat >>confdefs.h <<_ACEOF
15056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15057 _ACEOF
15058
15059 fi
15060
15061 done
15062
15063
15064 # End of readline/conio stuff
15065 # -----------------------------------------------------------------------
15066
15067 # -----------------------------------------------------------------------
15068 #  Check for Python support
15069 #
15070 echo "$as_me:$LINENO: checking for Python support" >&5
15071 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
15072
15073 # Check whether --with-python or --without-python was given.
15074 if test "${with_python+set}" = set; then
15075   withval="$with_python"
15076
15077   PYTHON_INCDIR=
15078   PYTHON_LIBS=
15079   if test "$withval" != "no"; then
15080      if test "$withval" = "yes"; then
15081         for python_root in /usr /usr/local /usr/sfw; do
15082           for ver in python2.2 python2.3 python2.4 python2.5; do
15083              if test -f $python_root/include/${ver}/Python.h; then
15084                 PYTHON_INCDIR=-I$python_root/include/${ver}
15085                 if test -d $python_root/lib64/${ver}/config; then
15086                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15087                 else
15088                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15089                 fi
15090                 break
15091              fi
15092           done
15093         done
15094         if test x$PYTHON_INCDIR = x; then
15095           if test -f $prefix/include/Python.h; then
15096              PYTHON_INCDIR=-I$prefix/include
15097              if test -d $prefix/lib64/config; then
15098                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15099              else
15100                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15101              fi
15102           else
15103            echo "$as_me:$LINENO: result: no" >&5
15104 echo "${ECHO_T}no" >&6
15105            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15106 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15107    { (exit 1); exit 1; }; }
15108           fi
15109         fi
15110      else
15111         if test -f $withval/Python.h; then
15112            PYTHON_INCDIR=-I$withval
15113            PYTHON_LIBS="-L$withval/config -lpython"
15114         elif test -f $withval/include/Python.h; then
15115            PYTHON_INCDIR=-I$withval/include
15116            if test -d $withval/lib64/config; then
15117               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15118            else
15119               PYTHON_LIBS="-L$withval/lib/config -lpython"
15120            fi
15121         elif test -f $withval/include/python/Python.h; then
15122            PYTHON_INCDIR=-I$withval/include/python
15123            if test -d $withval/lib64/python/config; then
15124               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15125            else
15126               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15127            fi
15128         else
15129            echo "$as_me:$LINENO: result: no" >&5
15130 echo "${ECHO_T}no" >&6
15131            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15132 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15133    { (exit 1); exit 1; }; }
15134         fi
15135      fi
15136      cat >>confdefs.h <<\_ACEOF
15137 #define HAVE_PYTHON 1
15138 _ACEOF
15139
15140      echo "$as_me:$LINENO: result: yes" >&5
15141 echo "${ECHO_T}yes" >&6
15142      support_python=yes
15143      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15144 echo "$as_me: checking for more Python libs" >&6;}
15145      saved_LIBS="$LIBS"; LIBS=
15146      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15147 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15148 if test "${ac_cv_search_shm_open+set}" = set; then
15149   echo $ECHO_N "(cached) $ECHO_C" >&6
15150 else
15151   ac_func_search_save_LIBS=$LIBS
15152 ac_cv_search_shm_open=no
15153 cat >conftest.$ac_ext <<_ACEOF
15154 /* confdefs.h.  */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h.  */
15159
15160 /* Override any gcc2 internal prototype to avoid an error.  */
15161 #ifdef __cplusplus
15162 extern "C"
15163 #endif
15164 /* We use char because int might match the return type of a gcc2
15165    builtin and then its argument prototype would still apply.  */
15166 char shm_open ();
15167 int
15168 main ()
15169 {
15170 shm_open ();
15171   ;
15172   return 0;
15173 }
15174 _ACEOF
15175 rm -f conftest.$ac_objext conftest$ac_exeext
15176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15177   (eval $ac_link) 2>conftest.er1
15178   ac_status=$?
15179   grep -v '^ *+' conftest.er1 >conftest.err
15180   rm -f conftest.er1
15181   cat conftest.err >&5
15182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); } &&
15184          { ac_try='test -z "$ac_c_werror_flag"
15185                          || test ! -s conftest.err'
15186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187   (eval $ac_try) 2>&5
15188   ac_status=$?
15189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190   (exit $ac_status); }; } &&
15191          { ac_try='test -s conftest$ac_exeext'
15192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193   (eval $ac_try) 2>&5
15194   ac_status=$?
15195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196   (exit $ac_status); }; }; then
15197   ac_cv_search_shm_open="none required"
15198 else
15199   echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15201
15202 fi
15203 rm -f conftest.err conftest.$ac_objext \
15204       conftest$ac_exeext conftest.$ac_ext
15205 if test "$ac_cv_search_shm_open" = no; then
15206   for ac_lib in rt; do
15207     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15208     cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h.  */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h.  */
15214
15215 /* Override any gcc2 internal prototype to avoid an error.  */
15216 #ifdef __cplusplus
15217 extern "C"
15218 #endif
15219 /* We use char because int might match the return type of a gcc2
15220    builtin and then its argument prototype would still apply.  */
15221 char shm_open ();
15222 int
15223 main ()
15224 {
15225 shm_open ();
15226   ;
15227   return 0;
15228 }
15229 _ACEOF
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15232   (eval $ac_link) 2>conftest.er1
15233   ac_status=$?
15234   grep -v '^ *+' conftest.er1 >conftest.err
15235   rm -f conftest.er1
15236   cat conftest.err >&5
15237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238   (exit $ac_status); } &&
15239          { ac_try='test -z "$ac_c_werror_flag"
15240                          || test ! -s conftest.err'
15241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242   (eval $ac_try) 2>&5
15243   ac_status=$?
15244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245   (exit $ac_status); }; } &&
15246          { ac_try='test -s conftest$ac_exeext'
15247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248   (eval $ac_try) 2>&5
15249   ac_status=$?
15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   (exit $ac_status); }; }; then
15252   ac_cv_search_shm_open="-l$ac_lib"
15253 break
15254 else
15255   echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15257
15258 fi
15259 rm -f conftest.err conftest.$ac_objext \
15260       conftest$ac_exeext conftest.$ac_ext
15261   done
15262 fi
15263 LIBS=$ac_func_search_save_LIBS
15264 fi
15265 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15266 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15267 if test "$ac_cv_search_shm_open" != no; then
15268   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15269
15270 fi
15271
15272
15273 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15274 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15275 if test "${ac_cv_lib_util_openpty+set}" = set; then
15276   echo $ECHO_N "(cached) $ECHO_C" >&6
15277 else
15278   ac_check_lib_save_LIBS=$LIBS
15279 LIBS="-lutil  $LIBS"
15280 cat >conftest.$ac_ext <<_ACEOF
15281 /* confdefs.h.  */
15282 _ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h.  */
15286
15287 /* Override any gcc2 internal prototype to avoid an error.  */
15288 #ifdef __cplusplus
15289 extern "C"
15290 #endif
15291 /* We use char because int might match the return type of a gcc2
15292    builtin and then its argument prototype would still apply.  */
15293 char openpty ();
15294 int
15295 main ()
15296 {
15297 openpty ();
15298   ;
15299   return 0;
15300 }
15301 _ACEOF
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15304   (eval $ac_link) 2>conftest.er1
15305   ac_status=$?
15306   grep -v '^ *+' conftest.er1 >conftest.err
15307   rm -f conftest.er1
15308   cat conftest.err >&5
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); } &&
15311          { ac_try='test -z "$ac_c_werror_flag"
15312                          || test ! -s conftest.err'
15313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314   (eval $ac_try) 2>&5
15315   ac_status=$?
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); }; } &&
15318          { ac_try='test -s conftest$ac_exeext'
15319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320   (eval $ac_try) 2>&5
15321   ac_status=$?
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); }; }; then
15324   ac_cv_lib_util_openpty=yes
15325 else
15326   echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15328
15329 ac_cv_lib_util_openpty=no
15330 fi
15331 rm -f conftest.err conftest.$ac_objext \
15332       conftest$ac_exeext conftest.$ac_ext
15333 LIBS=$ac_check_lib_save_LIBS
15334 fi
15335 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15336 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15337 if test $ac_cv_lib_util_openpty = yes; then
15338   cat >>confdefs.h <<_ACEOF
15339 #define HAVE_LIBUTIL 1
15340 _ACEOF
15341
15342   LIBS="-lutil $LIBS"
15343
15344 fi
15345
15346      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15347      LIBS="$saved_LIBS"
15348   else
15349      echo "$as_me:$LINENO: result: no" >&5
15350 echo "${ECHO_T}no" >&6
15351   fi
15352
15353 else
15354
15355   echo "$as_me:$LINENO: result: no" >&5
15356 echo "${ECHO_T}no" >&6
15357
15358 fi;
15359
15360
15361
15362 #
15363 # Find where sockets are (especially for Solaris)
15364 # Do this before the TCP Wrappers test since tcp wrappers
15365 # uses the socket library and some linkers are stupid.
15366 #
15367 echo "$as_me:$LINENO: checking for socket" >&5
15368 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15369 if test "${ac_cv_func_socket+set}" = set; then
15370   echo $ECHO_N "(cached) $ECHO_C" >&6
15371 else
15372   cat >conftest.$ac_ext <<_ACEOF
15373 /* confdefs.h.  */
15374 _ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h.  */
15378 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15380 #define socket innocuous_socket
15381
15382 /* System header to define __stub macros and hopefully few prototypes,
15383     which can conflict with char socket (); below.
15384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15385     <limits.h> exists even on freestanding compilers.  */
15386
15387 #ifdef __STDC__
15388 # include <limits.h>
15389 #else
15390 # include <assert.h>
15391 #endif
15392
15393 #undef socket
15394
15395 /* Override any gcc2 internal prototype to avoid an error.  */
15396 #ifdef __cplusplus
15397 extern "C"
15398 {
15399 #endif
15400 /* We use char because int might match the return type of a gcc2
15401    builtin and then its argument prototype would still apply.  */
15402 char socket ();
15403 /* The GNU C library defines this for functions which it implements
15404     to always fail with ENOSYS.  Some functions are actually named
15405     something starting with __ and the normal name is an alias.  */
15406 #if defined (__stub_socket) || defined (__stub___socket)
15407 choke me
15408 #else
15409 char (*f) () = socket;
15410 #endif
15411 #ifdef __cplusplus
15412 }
15413 #endif
15414
15415 int
15416 main ()
15417 {
15418 return f != socket;
15419   ;
15420   return 0;
15421 }
15422 _ACEOF
15423 rm -f conftest.$ac_objext conftest$ac_exeext
15424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15425   (eval $ac_link) 2>conftest.er1
15426   ac_status=$?
15427   grep -v '^ *+' conftest.er1 >conftest.err
15428   rm -f conftest.er1
15429   cat conftest.err >&5
15430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431   (exit $ac_status); } &&
15432          { ac_try='test -z "$ac_c_werror_flag"
15433                          || test ! -s conftest.err'
15434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435   (eval $ac_try) 2>&5
15436   ac_status=$?
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); }; } &&
15439          { ac_try='test -s conftest$ac_exeext'
15440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441   (eval $ac_try) 2>&5
15442   ac_status=$?
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); }; }; then
15445   ac_cv_func_socket=yes
15446 else
15447   echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15449
15450 ac_cv_func_socket=no
15451 fi
15452 rm -f conftest.err conftest.$ac_objext \
15453       conftest$ac_exeext conftest.$ac_ext
15454 fi
15455 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15456 echo "${ECHO_T}$ac_cv_func_socket" >&6
15457 if test $ac_cv_func_socket = yes; then
15458   echo "$as_me:$LINENO: result: using libc's socket" >&5
15459 echo "${ECHO_T}using libc's socket" >&6
15460 else
15461
15462 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15463 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15464 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15465   echo $ECHO_N "(cached) $ECHO_C" >&6
15466 else
15467   ac_check_lib_save_LIBS=$LIBS
15468 LIBS="-lxnet  $LIBS"
15469 cat >conftest.$ac_ext <<_ACEOF
15470 /* confdefs.h.  */
15471 _ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h.  */
15475
15476 /* Override any gcc2 internal prototype to avoid an error.  */
15477 #ifdef __cplusplus
15478 extern "C"
15479 #endif
15480 /* We use char because int might match the return type of a gcc2
15481    builtin and then its argument prototype would still apply.  */
15482 char socket ();
15483 int
15484 main ()
15485 {
15486 socket ();
15487   ;
15488   return 0;
15489 }
15490 _ACEOF
15491 rm -f conftest.$ac_objext conftest$ac_exeext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493   (eval $ac_link) 2>conftest.er1
15494   ac_status=$?
15495   grep -v '^ *+' conftest.er1 >conftest.err
15496   rm -f conftest.er1
15497   cat conftest.err >&5
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); } &&
15500          { ac_try='test -z "$ac_c_werror_flag"
15501                          || test ! -s conftest.err'
15502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503   (eval $ac_try) 2>&5
15504   ac_status=$?
15505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506   (exit $ac_status); }; } &&
15507          { ac_try='test -s conftest$ac_exeext'
15508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509   (eval $ac_try) 2>&5
15510   ac_status=$?
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); }; }; then
15513   ac_cv_lib_xnet_socket=yes
15514 else
15515   echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15517
15518 ac_cv_lib_xnet_socket=no
15519 fi
15520 rm -f conftest.err conftest.$ac_objext \
15521       conftest$ac_exeext conftest.$ac_ext
15522 LIBS=$ac_check_lib_save_LIBS
15523 fi
15524 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15525 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15526 if test $ac_cv_lib_xnet_socket = yes; then
15527   cat >>confdefs.h <<_ACEOF
15528 #define HAVE_LIBXNET 1
15529 _ACEOF
15530
15531   LIBS="-lxnet $LIBS"
15532
15533 fi
15534
15535
15536 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15537 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15538 if test "${ac_cv_lib_socket_socket+set}" = set; then
15539   echo $ECHO_N "(cached) $ECHO_C" >&6
15540 else
15541   ac_check_lib_save_LIBS=$LIBS
15542 LIBS="-lsocket  $LIBS"
15543 cat >conftest.$ac_ext <<_ACEOF
15544 /* confdefs.h.  */
15545 _ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h.  */
15549
15550 /* Override any gcc2 internal prototype to avoid an error.  */
15551 #ifdef __cplusplus
15552 extern "C"
15553 #endif
15554 /* We use char because int might match the return type of a gcc2
15555    builtin and then its argument prototype would still apply.  */
15556 char socket ();
15557 int
15558 main ()
15559 {
15560 socket ();
15561   ;
15562   return 0;
15563 }
15564 _ACEOF
15565 rm -f conftest.$ac_objext conftest$ac_exeext
15566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15567   (eval $ac_link) 2>conftest.er1
15568   ac_status=$?
15569   grep -v '^ *+' conftest.er1 >conftest.err
15570   rm -f conftest.er1
15571   cat conftest.err >&5
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); } &&
15574          { ac_try='test -z "$ac_c_werror_flag"
15575                          || test ! -s conftest.err'
15576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577   (eval $ac_try) 2>&5
15578   ac_status=$?
15579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); }; } &&
15581          { ac_try='test -s conftest$ac_exeext'
15582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15583   (eval $ac_try) 2>&5
15584   ac_status=$?
15585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586   (exit $ac_status); }; }; then
15587   ac_cv_lib_socket_socket=yes
15588 else
15589   echo "$as_me: failed program was:" >&5
15590 sed 's/^/| /' conftest.$ac_ext >&5
15591
15592 ac_cv_lib_socket_socket=no
15593 fi
15594 rm -f conftest.err conftest.$ac_objext \
15595       conftest$ac_exeext conftest.$ac_ext
15596 LIBS=$ac_check_lib_save_LIBS
15597 fi
15598 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15599 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15600 if test $ac_cv_lib_socket_socket = yes; then
15601   cat >>confdefs.h <<_ACEOF
15602 #define HAVE_LIBSOCKET 1
15603 _ACEOF
15604
15605   LIBS="-lsocket $LIBS"
15606
15607 fi
15608
15609
15610 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15611 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15612 if test "${ac_cv_lib_inet_socket+set}" = set; then
15613   echo $ECHO_N "(cached) $ECHO_C" >&6
15614 else
15615   ac_check_lib_save_LIBS=$LIBS
15616 LIBS="-linet  $LIBS"
15617 cat >conftest.$ac_ext <<_ACEOF
15618 /* confdefs.h.  */
15619 _ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h.  */
15623
15624 /* Override any gcc2 internal prototype to avoid an error.  */
15625 #ifdef __cplusplus
15626 extern "C"
15627 #endif
15628 /* We use char because int might match the return type of a gcc2
15629    builtin and then its argument prototype would still apply.  */
15630 char socket ();
15631 int
15632 main ()
15633 {
15634 socket ();
15635   ;
15636   return 0;
15637 }
15638 _ACEOF
15639 rm -f conftest.$ac_objext conftest$ac_exeext
15640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15641   (eval $ac_link) 2>conftest.er1
15642   ac_status=$?
15643   grep -v '^ *+' conftest.er1 >conftest.err
15644   rm -f conftest.er1
15645   cat conftest.err >&5
15646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647   (exit $ac_status); } &&
15648          { ac_try='test -z "$ac_c_werror_flag"
15649                          || test ! -s conftest.err'
15650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651   (eval $ac_try) 2>&5
15652   ac_status=$?
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); }; } &&
15655          { ac_try='test -s conftest$ac_exeext'
15656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657   (eval $ac_try) 2>&5
15658   ac_status=$?
15659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660   (exit $ac_status); }; }; then
15661   ac_cv_lib_inet_socket=yes
15662 else
15663   echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15665
15666 ac_cv_lib_inet_socket=no
15667 fi
15668 rm -f conftest.err conftest.$ac_objext \
15669       conftest$ac_exeext conftest.$ac_ext
15670 LIBS=$ac_check_lib_save_LIBS
15671 fi
15672 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15673 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15674 if test $ac_cv_lib_inet_socket = yes; then
15675   cat >>confdefs.h <<_ACEOF
15676 #define HAVE_LIBINET 1
15677 _ACEOF
15678
15679   LIBS="-linet $LIBS"
15680
15681 fi
15682
15683 fi
15684
15685
15686
15687 # -----------------------------------------------------------
15688 # Check whether user wants TCP wrappers support (default off)
15689 # -----------------------------------------------------------
15690 TCPW_MSG="no"
15691 WRAPLIBS=""
15692
15693 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15694 if test "${with_tcp_wrappers+set}" = set; then
15695   withval="$with_tcp_wrappers"
15696
15697     if test "x$withval" != "xno" ; then
15698        saved_LIBS="$LIBS"
15699        LIBS="$saved_LIBS -lwrap"
15700        echo "$as_me:$LINENO: checking for libwrap" >&5
15701 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15702        echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15703 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15704 if test "${ac_cv_search_nanosleep+set}" = set; then
15705   echo $ECHO_N "(cached) $ECHO_C" >&6
15706 else
15707   ac_func_search_save_LIBS=$LIBS
15708 ac_cv_search_nanosleep=no
15709 cat >conftest.$ac_ext <<_ACEOF
15710 /* confdefs.h.  */
15711 _ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h.  */
15715
15716 /* Override any gcc2 internal prototype to avoid an error.  */
15717 #ifdef __cplusplus
15718 extern "C"
15719 #endif
15720 /* We use char because int might match the return type of a gcc2
15721    builtin and then its argument prototype would still apply.  */
15722 char nanosleep ();
15723 int
15724 main ()
15725 {
15726 nanosleep ();
15727   ;
15728   return 0;
15729 }
15730 _ACEOF
15731 rm -f conftest.$ac_objext conftest$ac_exeext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15733   (eval $ac_link) 2>conftest.er1
15734   ac_status=$?
15735   grep -v '^ *+' conftest.er1 >conftest.err
15736   rm -f conftest.er1
15737   cat conftest.err >&5
15738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739   (exit $ac_status); } &&
15740          { ac_try='test -z "$ac_c_werror_flag"
15741                          || test ! -s conftest.err'
15742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743   (eval $ac_try) 2>&5
15744   ac_status=$?
15745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746   (exit $ac_status); }; } &&
15747          { ac_try='test -s conftest$ac_exeext'
15748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749   (eval $ac_try) 2>&5
15750   ac_status=$?
15751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752   (exit $ac_status); }; }; then
15753   ac_cv_search_nanosleep="none required"
15754 else
15755   echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15757
15758 fi
15759 rm -f conftest.err conftest.$ac_objext \
15760       conftest$ac_exeext conftest.$ac_ext
15761 if test "$ac_cv_search_nanosleep" = no; then
15762   for ac_lib in rt; do
15763     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15764     cat >conftest.$ac_ext <<_ACEOF
15765 /* confdefs.h.  */
15766 _ACEOF
15767 cat confdefs.h >>conftest.$ac_ext
15768 cat >>conftest.$ac_ext <<_ACEOF
15769 /* end confdefs.h.  */
15770
15771 /* Override any gcc2 internal prototype to avoid an error.  */
15772 #ifdef __cplusplus
15773 extern "C"
15774 #endif
15775 /* We use char because int might match the return type of a gcc2
15776    builtin and then its argument prototype would still apply.  */
15777 char nanosleep ();
15778 int
15779 main ()
15780 {
15781 nanosleep ();
15782   ;
15783   return 0;
15784 }
15785 _ACEOF
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15788   (eval $ac_link) 2>conftest.er1
15789   ac_status=$?
15790   grep -v '^ *+' conftest.er1 >conftest.err
15791   rm -f conftest.er1
15792   cat conftest.err >&5
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); } &&
15795          { ac_try='test -z "$ac_c_werror_flag"
15796                          || test ! -s conftest.err'
15797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798   (eval $ac_try) 2>&5
15799   ac_status=$?
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); }; } &&
15802          { ac_try='test -s conftest$ac_exeext'
15803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804   (eval $ac_try) 2>&5
15805   ac_status=$?
15806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807   (exit $ac_status); }; }; then
15808   ac_cv_search_nanosleep="-l$ac_lib"
15809 break
15810 else
15811   echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15813
15814 fi
15815 rm -f conftest.err conftest.$ac_objext \
15816       conftest$ac_exeext conftest.$ac_ext
15817   done
15818 fi
15819 LIBS=$ac_func_search_save_LIBS
15820 fi
15821 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15822 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15823 if test "$ac_cv_search_nanosleep" != no; then
15824   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15825
15826 fi
15827
15828        cat >conftest.$ac_ext <<_ACEOF
15829 /* confdefs.h.  */
15830 _ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h.  */
15834  #include <sys/types.h>
15835             #include <tcpd.h>
15836              int deny_severity = 0;
15837              int allow_severity = 0;
15838              struct request_info *req;
15839 int
15840 main ()
15841 {
15842  hosts_access(req);
15843   ;
15844   return 0;
15845 }
15846 _ACEOF
15847 rm -f conftest.$ac_objext conftest$ac_exeext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15849   (eval $ac_link) 2>conftest.er1
15850   ac_status=$?
15851   grep -v '^ *+' conftest.er1 >conftest.err
15852   rm -f conftest.er1
15853   cat conftest.err >&5
15854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855   (exit $ac_status); } &&
15856          { ac_try='test -z "$ac_c_werror_flag"
15857                          || test ! -s conftest.err'
15858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859   (eval $ac_try) 2>&5
15860   ac_status=$?
15861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862   (exit $ac_status); }; } &&
15863          { ac_try='test -s conftest$ac_exeext'
15864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865   (eval $ac_try) 2>&5
15866   ac_status=$?
15867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868   (exit $ac_status); }; }; then
15869
15870             echo "$as_me:$LINENO: result: yes" >&5
15871 echo "${ECHO_T}yes" >&6
15872
15873 cat >>confdefs.h <<\_ACEOF
15874 #define HAVE_LIBWRAP 1
15875 _ACEOF
15876
15877             TCPW_MSG="yes"
15878             LIBS="$saved_LIBS"
15879             WRAPLIBS="-lwrap"
15880
15881 else
15882   echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15884
15885
15886             LIBS="$saved_LIBS -lwrap -lnsl"
15887             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15888             cat >conftest.$ac_ext <<_ACEOF
15889 /* confdefs.h.  */
15890 _ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h.  */
15894  #include <sys/types.h>
15895                  #include <tcpd.h>
15896                  int deny_severity = 0;
15897                  int allow_severity = 0;
15898                  struct request_info *req;
15899 int
15900 main ()
15901 {
15902  hosts_access(req);
15903   ;
15904   return 0;
15905 }
15906 _ACEOF
15907 rm -f conftest.$ac_objext conftest$ac_exeext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15909   (eval $ac_link) 2>conftest.er1
15910   ac_status=$?
15911   grep -v '^ *+' conftest.er1 >conftest.err
15912   rm -f conftest.er1
15913   cat conftest.err >&5
15914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915   (exit $ac_status); } &&
15916          { ac_try='test -z "$ac_c_werror_flag"
15917                          || test ! -s conftest.err'
15918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919   (eval $ac_try) 2>&5
15920   ac_status=$?
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); }; } &&
15923          { ac_try='test -s conftest$ac_exeext'
15924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925   (eval $ac_try) 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); }; }; then
15929
15930                  echo "$as_me:$LINENO: result: yes" >&5
15931 echo "${ECHO_T}yes" >&6
15932
15933 cat >>confdefs.h <<\_ACEOF
15934 #define HAVE_LIBWRAP 1
15935 _ACEOF
15936
15937                  TCPW_MSG="yes"
15938                  LIBS="$saved_LIBS"
15939                  WRAPLIBS="-lwrap"
15940
15941 else
15942   echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15944
15945 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15946 echo "$as_me: error: *** libwrap missing" >&2;}
15947    { (exit 1); exit 1; }; }
15948
15949 fi
15950 rm -f conftest.err conftest.$ac_objext \
15951       conftest$ac_exeext conftest.$ac_ext
15952
15953 fi
15954 rm -f conftest.err conftest.$ac_objext \
15955       conftest$ac_exeext conftest.$ac_ext
15956     fi
15957
15958
15959 fi;
15960
15961 # -----------------------------------------------------------
15962 # Check whether OpenSSL is available
15963 # -----------------------------------------------------------
15964 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15965 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15966
15967 # Check whether --with-openssl or --without-openssl was given.
15968 if test "${with_openssl+set}" = set; then
15969   withval="$with_openssl"
15970   with_openssl_directory=${withval}
15971 fi;
15972
15973 if test "x$with_openssl_directory" != "x"; then
15974         OPENSSL_LIBS="-lssl -lcrypto"
15975         OPENSSL_INC=""
15976
15977         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15978                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15979                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15980         fi
15981
15982         saved_LIBS="${LIBS}"
15983         saved_CFLAGS="${CFLAGS}"
15984         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
15985         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
15986
15987         cat >conftest.$ac_ext <<_ACEOF
15988 /* confdefs.h.  */
15989 _ACEOF
15990 cat confdefs.h >>conftest.$ac_ext
15991 cat >>conftest.$ac_ext <<_ACEOF
15992 /* end confdefs.h.  */
15993  #include <openssl/ssl.h>
15994 int
15995 main ()
15996 {
15997  CRYPTO_set_id_callback(NULL);
15998   ;
15999   return 0;
16000 }
16001 _ACEOF
16002 rm -f conftest.$ac_objext conftest$ac_exeext
16003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16004   (eval $ac_link) 2>conftest.er1
16005   ac_status=$?
16006   grep -v '^ *+' conftest.er1 >conftest.err
16007   rm -f conftest.er1
16008   cat conftest.err >&5
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); } &&
16011          { ac_try='test -z "$ac_c_werror_flag"
16012                          || test ! -s conftest.err'
16013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014   (eval $ac_try) 2>&5
16015   ac_status=$?
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); }; } &&
16018          { ac_try='test -s conftest$ac_exeext'
16019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020   (eval $ac_try) 2>&5
16021   ac_status=$?
16022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023   (exit $ac_status); }; }; then
16024
16025                         support_tls="yes"
16026                         support_crypto="yes"
16027
16028 else
16029   echo "$as_me: failed program was:" >&5
16030 sed 's/^/| /' conftest.$ac_ext >&5
16031
16032  support_tls="no"
16033
16034 fi
16035 rm -f conftest.err conftest.$ac_objext \
16036       conftest$ac_exeext conftest.$ac_ext
16037
16038         cat >conftest.$ac_ext <<_ACEOF
16039 /* confdefs.h.  */
16040 _ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h.  */
16044  #include <openssl/evp.h>
16045 int
16046 main ()
16047 {
16048  EVP_sha512();
16049   ;
16050   return 0;
16051 }
16052 _ACEOF
16053 rm -f conftest.$ac_objext conftest$ac_exeext
16054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16055   (eval $ac_link) 2>conftest.er1
16056   ac_status=$?
16057   grep -v '^ *+' conftest.er1 >conftest.err
16058   rm -f conftest.er1
16059   cat conftest.err >&5
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   (exit $ac_status); } &&
16062          { ac_try='test -z "$ac_c_werror_flag"
16063                          || test ! -s conftest.err'
16064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065   (eval $ac_try) 2>&5
16066   ac_status=$?
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); }; } &&
16069          { ac_try='test -s conftest$ac_exeext'
16070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071   (eval $ac_try) 2>&5
16072   ac_status=$?
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); }; }; then
16075    ac_cv_openssl_sha2="yes"
16076 else
16077   echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16079
16080  ac_cv_openssl_sha2="no"
16081
16082 fi
16083 rm -f conftest.err conftest.$ac_objext \
16084       conftest$ac_exeext conftest.$ac_ext
16085
16086         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16087         # implementation, presumably for export reasons. If 192bit AES
16088         # is available, we assume that we're running with a 'non-export'
16089         # openssl library.
16090         cat >conftest.$ac_ext <<_ACEOF
16091 /* confdefs.h.  */
16092 _ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h.  */
16096  #include <openssl/evp.h>
16097 int
16098 main ()
16099 {
16100  EVP_aes_192_cbc();
16101   ;
16102   return 0;
16103 }
16104 _ACEOF
16105 rm -f conftest.$ac_objext conftest$ac_exeext
16106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16107   (eval $ac_link) 2>conftest.er1
16108   ac_status=$?
16109   grep -v '^ *+' conftest.er1 >conftest.err
16110   rm -f conftest.er1
16111   cat conftest.err >&5
16112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113   (exit $ac_status); } &&
16114          { ac_try='test -z "$ac_c_werror_flag"
16115                          || test ! -s conftest.err'
16116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117   (eval $ac_try) 2>&5
16118   ac_status=$?
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); }; } &&
16121          { ac_try='test -s conftest$ac_exeext'
16122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123   (eval $ac_try) 2>&5
16124   ac_status=$?
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); }; }; then
16127    ac_cv_openssl_export="no"
16128 else
16129   echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16131
16132  ac_cv_openssl_export="yes"
16133
16134 fi
16135 rm -f conftest.err conftest.$ac_objext \
16136       conftest$ac_exeext conftest.$ac_ext
16137
16138         LIBS="${saved_LIBS}"
16139         CFLAGS="${saved_CFLAGS}"
16140
16141         if test "$support_tls" = "yes"; then
16142
16143 cat >>confdefs.h <<\_ACEOF
16144 #define HAVE_OPENSSL 1
16145 _ACEOF
16146
16147
16148 cat >>confdefs.h <<\_ACEOF
16149 #define HAVE_TLS 1
16150 _ACEOF
16151
16152
16153 cat >>confdefs.h <<\_ACEOF
16154 #define HAVE_CRYPTO 1
16155 _ACEOF
16156
16157         fi
16158
16159         if test "$ac_cv_openssl_sha2" = "yes"; then
16160
16161 cat >>confdefs.h <<\_ACEOF
16162 #define HAVE_SHA2 1
16163 _ACEOF
16164
16165         fi
16166
16167         if test "$ac_cv_openssl_export" = "yes"; then
16168
16169 cat >>confdefs.h <<\_ACEOF
16170 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16171 _ACEOF
16172
16173         fi
16174 else
16175         support_tls="no"
16176         support_crypto="no"
16177         OPENSSL_LIBS=""
16178         OPENSSL_INC=""
16179 fi
16180
16181 echo "$as_me:$LINENO: result: $support_tls" >&5
16182 echo "${ECHO_T}$support_tls" >&6
16183
16184
16185
16186
16187 # -----------------------------------------------------------
16188 # Python and OpenSSL are using dlopen
16189 # -----------------------------------------------------------
16190
16191 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16192    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16193 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16194 if test "${ac_cv_search_dlopen+set}" = set; then
16195   echo $ECHO_N "(cached) $ECHO_C" >&6
16196 else
16197   ac_func_search_save_LIBS=$LIBS
16198 ac_cv_search_dlopen=no
16199 cat >conftest.$ac_ext <<_ACEOF
16200 /* confdefs.h.  */
16201 _ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h.  */
16205
16206 /* Override any gcc2 internal prototype to avoid an error.  */
16207 #ifdef __cplusplus
16208 extern "C"
16209 #endif
16210 /* We use char because int might match the return type of a gcc2
16211    builtin and then its argument prototype would still apply.  */
16212 char dlopen ();
16213 int
16214 main ()
16215 {
16216 dlopen ();
16217   ;
16218   return 0;
16219 }
16220 _ACEOF
16221 rm -f conftest.$ac_objext conftest$ac_exeext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16223   (eval $ac_link) 2>conftest.er1
16224   ac_status=$?
16225   grep -v '^ *+' conftest.er1 >conftest.err
16226   rm -f conftest.er1
16227   cat conftest.err >&5
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); } &&
16230          { ac_try='test -z "$ac_c_werror_flag"
16231                          || test ! -s conftest.err'
16232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233   (eval $ac_try) 2>&5
16234   ac_status=$?
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); }; } &&
16237          { ac_try='test -s conftest$ac_exeext'
16238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239   (eval $ac_try) 2>&5
16240   ac_status=$?
16241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); }; }; then
16243   ac_cv_search_dlopen="none required"
16244 else
16245   echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16247
16248 fi
16249 rm -f conftest.err conftest.$ac_objext \
16250       conftest$ac_exeext conftest.$ac_ext
16251 if test "$ac_cv_search_dlopen" = no; then
16252   for ac_lib in dl; do
16253     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16254     cat >conftest.$ac_ext <<_ACEOF
16255 /* confdefs.h.  */
16256 _ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h.  */
16260
16261 /* Override any gcc2 internal prototype to avoid an error.  */
16262 #ifdef __cplusplus
16263 extern "C"
16264 #endif
16265 /* We use char because int might match the return type of a gcc2
16266    builtin and then its argument prototype would still apply.  */
16267 char dlopen ();
16268 int
16269 main ()
16270 {
16271 dlopen ();
16272   ;
16273   return 0;
16274 }
16275 _ACEOF
16276 rm -f conftest.$ac_objext conftest$ac_exeext
16277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16278   (eval $ac_link) 2>conftest.er1
16279   ac_status=$?
16280   grep -v '^ *+' conftest.er1 >conftest.err
16281   rm -f conftest.er1
16282   cat conftest.err >&5
16283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284   (exit $ac_status); } &&
16285          { ac_try='test -z "$ac_c_werror_flag"
16286                          || test ! -s conftest.err'
16287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288   (eval $ac_try) 2>&5
16289   ac_status=$?
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); }; } &&
16292          { ac_try='test -s conftest$ac_exeext'
16293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294   (eval $ac_try) 2>&5
16295   ac_status=$?
16296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297   (exit $ac_status); }; }; then
16298   ac_cv_search_dlopen="-l$ac_lib"
16299 break
16300 else
16301   echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16303
16304 fi
16305 rm -f conftest.err conftest.$ac_objext \
16306       conftest$ac_exeext conftest.$ac_ext
16307   done
16308 fi
16309 LIBS=$ac_func_search_save_LIBS
16310 fi
16311 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16312 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16313 if test "$ac_cv_search_dlopen" != no; then
16314   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16315
16316 fi
16317
16318 fi
16319
16320 # ------------------------------------------
16321 # Where to place working dir
16322 # ------------------------------------------
16323 working_dir=`eval echo ${prefix}/var/bacula/working`
16324
16325 # Check whether --with-working-dir or --without-working-dir was given.
16326 if test "${with_working_dir+set}" = set; then
16327   withval="$with_working_dir"
16328
16329        if test "x$withval" != "xno" ; then
16330               working_dir=$withval
16331        fi
16332
16333
16334 fi;
16335
16336
16337
16338
16339 # ------------------------------------------
16340 # Where to place scriptdir (script files)
16341 # ------------------------------------------
16342 scriptdir=`eval echo ${sysconfdir}`
16343
16344 # Check whether --with-scriptdir or --without-scriptdir was given.
16345 if test "${with_scriptdir+set}" = set; then
16346   withval="$with_scriptdir"
16347
16348        if test "x$withval" != "xno" ; then
16349               scriptdir=$withval
16350        fi
16351
16352
16353 fi;
16354
16355
16356
16357
16358 # ------------------------------------------
16359 # Where to send dump email
16360 # ------------------------------------------
16361 dump_email=root@localhost
16362
16363 # Check whether --with-dump-email or --without-dump-email was given.
16364 if test "${with_dump_email+set}" = set; then
16365   withval="$with_dump_email"
16366
16367        if test "x$withval" != "xno" ; then
16368               dump_email=$withval
16369        fi
16370
16371
16372 fi;
16373
16374
16375
16376 # ------------------------------------------
16377 # Where to send job email
16378 # ------------------------------------------
16379 job_email=root@localhost
16380
16381 # Check whether --with-job-email or --without-job-email was given.
16382 if test "${with_job_email+set}" = set; then
16383   withval="$with_job_email"
16384
16385        if test "x$withval" != "xno" ; then
16386               job_email=$withval
16387        fi
16388
16389
16390 fi;
16391
16392
16393
16394 # ------------------------------------------
16395 # Where to find smtp host
16396 # ------------------------------------------
16397 smtp_host=localhost
16398
16399 # Check whether --with-smtp_host or --without-smtp_host was given.
16400 if test "${with_smtp_host+set}" = set; then
16401   withval="$with_smtp_host"
16402
16403        if test "x$withval" != "xno" ; then
16404               smtp_host=$withval
16405        fi
16406
16407
16408 fi;
16409
16410
16411
16412
16413 # ------------------------------------
16414 # Where to place pid files
16415 # ------------------------------------
16416 piddir=/var/run
16417
16418 # Check whether --with-pid-dir or --without-pid-dir was given.
16419 if test "${with_pid_dir+set}" = set; then
16420   withval="$with_pid_dir"
16421
16422         if test "x$withval" != "xno" ; then
16423             piddir=$withval
16424         fi
16425
16426
16427 fi;
16428
16429 cat >>confdefs.h <<_ACEOF
16430 #define _PATH_BACULA_PIDDIR "$piddir"
16431 _ACEOF
16432
16433
16434
16435
16436 # ------------------------------------
16437 # Where to place subsys "lock file"
16438 # ------------------------------------
16439 subsysdir=/var/run/subsys
16440 if test -d /var/run/subsys; then
16441    subsysdir=/var/run/subsys
16442 elif test -d /var/lock/subsys; then
16443    subsysdir=/var/lock/subsys
16444 else
16445    subsysdir=/var/run/subsys
16446 fi
16447
16448 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16449 if test "${with_subsys_dir+set}" = set; then
16450   withval="$with_subsys_dir"
16451
16452         if test "x$withval" != "xno" ; then
16453             subsysdir=$withval
16454         fi
16455
16456
16457 fi;
16458
16459
16460
16461
16462
16463 # ------------------------------------
16464 # Where to start assigning ports
16465 # ------------------------------------
16466 baseport=9101
16467
16468 # Check whether --with-baseport or --without-baseport was given.
16469 if test "${with_baseport+set}" = set; then
16470   withval="$with_baseport"
16471
16472         if test "x$withval" != "xno" ; then
16473              baseport=$withval
16474         fi
16475
16476
16477 fi;
16478
16479
16480 dir_port=`expr $baseport`
16481 fd_port=`expr $baseport + 1`
16482 sd_port=`expr $fd_port + 1`
16483
16484
16485
16486
16487
16488
16489 # ------------------------------------------
16490 # Generate passwords
16491 # ------------------------------------------
16492 dir_password=
16493
16494 # Check whether --with-dir-password or --without-dir-password was given.
16495 if test "${with_dir_password+set}" = set; then
16496   withval="$with_dir_password"
16497
16498        if test "x$withval" != "xno" ; then
16499            dir_password=$withval
16500        fi
16501
16502
16503 fi;
16504
16505 if test "x$dir_password" = "x" ; then
16506    if test "x$OPENSSL" = "xnone" ; then
16507       key=`autoconf/randpass 33`
16508    else
16509       key=`openssl rand -base64 33`
16510    fi
16511    dir_password=$key
16512 fi
16513
16514 fd_password=
16515
16516 # Check whether --with-fd-password or --without-fd-password was given.
16517 if test "${with_fd_password+set}" = set; then
16518   withval="$with_fd_password"
16519
16520        if test "x$withval" != "xno" ; then
16521            fd_password=$withval
16522        fi
16523
16524
16525 fi;
16526
16527 if test "x$fd_password" = "x" ; then
16528    if test "x$OPENSSL" = "xnone" ; then
16529       key=`autoconf/randpass 37`
16530    else
16531       key=`openssl rand -base64 33`
16532    fi
16533    fd_password=$key
16534 fi
16535
16536 sd_password=
16537
16538 # Check whether --with-sd-password or --without-sd-password was given.
16539 if test "${with_sd_password+set}" = set; then
16540   withval="$with_sd_password"
16541
16542        if test "x$withval" != "xno" ; then
16543            sd_password=$withval
16544        fi
16545
16546
16547 fi;
16548
16549 if test "x$sd_password" = "x" ; then
16550    if test "x$OPENSSL" = "xnone" ; then
16551       key=`autoconf/randpass 41`
16552    else
16553       key=`openssl rand -base64 33`
16554    fi
16555    sd_password=$key
16556 fi
16557
16558 mon_dir_password=
16559
16560 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16561 if test "${with_mon_dir_password+set}" = set; then
16562   withval="$with_mon_dir_password"
16563
16564        if test "x$withval" != "xno" ; then
16565            mon_dir_password=$withval
16566        fi
16567
16568
16569 fi;
16570
16571 if test "x$mon_dir_password" = "x" ; then
16572    if test "x$OPENSSL" = "xnone" ; then
16573       key=`autoconf/randpass 33`
16574    else
16575       key=`openssl rand -base64 33`
16576    fi
16577    mon_dir_password=$key
16578 fi
16579
16580 mon_fd_password=
16581
16582 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16583 if test "${with_mon_fd_password+set}" = set; then
16584   withval="$with_mon_fd_password"
16585
16586        if test "x$withval" != "xno" ; then
16587            mon_fd_password=$withval
16588        fi
16589
16590
16591 fi;
16592
16593 if test "x$mon_fd_password" = "x" ; then
16594    if test "x$OPENSSL" = "xnone" ; then
16595       key=`autoconf/randpass 37`
16596    else
16597       key=`openssl rand -base64 33`
16598    fi
16599    mon_fd_password=$key
16600 fi
16601
16602 mon_sd_password=
16603
16604 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16605 if test "${with_mon_sd_password+set}" = set; then
16606   withval="$with_mon_sd_password"
16607
16608        if test "x$withval" != "xno" ; then
16609            mon_sd_password=$withval
16610        fi
16611
16612
16613 fi;
16614
16615 if test "x$mon_sd_password" = "x" ; then
16616    if test "x$OPENSSL" = "xnone" ; then
16617       key=`autoconf/randpass 41`
16618    else
16619       key=`openssl rand -base64 33`
16620    fi
16621    mon_sd_password=$key
16622 fi
16623
16624
16625
16626
16627
16628
16629
16630
16631 #
16632 # Pickup any database name
16633 #
16634 db_name=bacula
16635
16636 # Check whether --with-db_name or --without-db_name was given.
16637 if test "${with_db_name+set}" = set; then
16638   withval="$with_db_name"
16639
16640         if test "x$withval" != "x" ; then
16641              db_name=$withval
16642         fi
16643
16644
16645 fi;
16646
16647
16648 db_user=bacula
16649
16650 # Check whether --with-db_user or --without-db_user was given.
16651 if test "${with_db_user+set}" = set; then
16652   withval="$with_db_user"
16653
16654         if test "x$withval" != "x" ; then
16655              db_user=$withval
16656         fi
16657
16658
16659 fi;
16660
16661
16662
16663 #
16664 # Handle users and groups for each daemon
16665 #
16666 dir_user=
16667
16668 # Check whether --with-dir_user or --without-dir_user was given.
16669 if test "${with_dir_user+set}" = set; then
16670   withval="$with_dir_user"
16671
16672         if test "x$withval" != "x" ; then
16673              dir_user=$withval
16674         fi
16675
16676
16677 fi;
16678
16679 dir_group=
16680
16681 # Check whether --with-dir_group or --without-dir_group was given.
16682 if test "${with_dir_group+set}" = set; then
16683   withval="$with_dir_group"
16684
16685         if test "x$withval" != "x" ; then
16686              dir_group=$withval
16687         fi
16688
16689
16690 fi;
16691
16692 sd_user=
16693
16694 # Check whether --with-sd_user or --without-sd_user was given.
16695 if test "${with_sd_user+set}" = set; then
16696   withval="$with_sd_user"
16697
16698         if test "x$withval" != "x" ; then
16699              sd_user=$withval
16700         fi
16701
16702
16703 fi;
16704
16705 sd_group=
16706
16707 # Check whether --with-sd_group or --without-sd_group was given.
16708 if test "${with_sd_group+set}" = set; then
16709   withval="$with_sd_group"
16710
16711         if test "x$withval" != "x" ; then
16712              sd_group=$withval
16713         fi
16714
16715
16716 fi;
16717
16718 fd_user=
16719
16720 # Check whether --with-fd_user or --without-fd_user was given.
16721 if test "${with_fd_user+set}" = set; then
16722   withval="$with_fd_user"
16723
16724         if test "x$withval" != "x" ; then
16725              fd_user=$withval
16726         fi
16727
16728
16729 fi;
16730
16731 fd_group=
16732
16733 # Check whether --with-fd_group or --without-fd_group was given.
16734 if test "${with_fd_group+set}" = set; then
16735   withval="$with_fd_group"
16736
16737         if test "x$withval" != "x" ; then
16738              fd_group=$withval
16739         fi
16740
16741
16742 fi;
16743
16744
16745
16746
16747
16748
16749
16750
16751 #
16752 # allow setting default executable permissions
16753 #
16754 SBINPERM=0754
16755
16756 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16757 if test "${with_sbin_perm+set}" = set; then
16758   withval="$with_sbin_perm"
16759
16760         if test "x$withval" != "x" ; then
16761             SBINPERM=$withval
16762         fi
16763
16764
16765 fi;
16766
16767
16768
16769 # ------------------------------------------------
16770 # Bacula check for various SQL database engines
16771 # ------------------------------------------------
16772 SQL_LIB=
16773
16774 db_found=no
16775 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16776 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16777
16778 # Check whether --with-postgresql or --without-postgresql was given.
16779 if test "${with_postgresql+set}" = set; then
16780   withval="$with_postgresql"
16781
16782   if test "$withval" != "no"; then
16783       if test "$db_found" = "yes"; then
16784           echo "$as_me:$LINENO: result: error" >&5
16785 echo "${ECHO_T}error" >&6
16786           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16787 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16788    { (exit 1); exit 1; }; };
16789       fi
16790       if test "$withval" = "yes"; then
16791           PG_CONFIG=`which pg_config`
16792           if test -n "$PG_CONFIG";then
16793               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16794               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16795               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16796           elif test -f /usr/local/include/libpq-fe.h; then
16797               POSTGRESQL_INCDIR=/usr/local/include
16798               if test -d /usr/local/lib64; then
16799                  POSTGRESQL_LIBDIR=/usr/local/lib64
16800               else
16801                  POSTGRESQL_LIBDIR=/usr/local/lib
16802               fi
16803               POSTGRESQL_BINDIR=/usr/local/bin
16804           elif test -f /usr/include/libpq-fe.h; then
16805               POSTGRESQL_INCDIR=/usr/include
16806               if test -d /usr/lib64; then
16807                  POSTGRESQL_LIBDIR=/usr/lib64
16808               else
16809                  POSTGRESQL_LIBDIR=/usr/lib
16810               fi
16811               POSTGRESQL_BINDIR=/usr/bin
16812           elif test -f /usr/include/pgsql/libpq-fe.h; then
16813               POSTGRESQL_INCDIR=/usr/include/pgsql
16814               if test -d /usr/lib64/pgsql; then
16815                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16816               else
16817                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
16818               fi
16819               POSTGRESQL_BINDIR=/usr/bin
16820           elif test -f /usr/include/postgresql/libpq-fe.h; then
16821               POSTGRESQL_INCDIR=/usr/include/postgresql
16822               if test -d /usr/lib64/postgresql; then
16823                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16824               else
16825                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
16826               fi
16827               POSTGRESQL_BINDIR=/usr/bin
16828           else
16829               echo "$as_me:$LINENO: result: no" >&5
16830 echo "${ECHO_T}no" >&6
16831               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16832 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16833    { (exit 1); exit 1; }; }
16834           fi
16835       elif test -f $withval/include/libpq-fe.h; then
16836           POSTGRESQL_INCDIR=$withval/include
16837           POSTGRESQL_LIBDIR=$withval/lib
16838           POSTGRESQL_BINDIR=$withval/bin
16839       elif test -f $withval/include/postgresql/libpq-fe.h; then
16840           POSTGRESQL_INCDIR=$withval/include/postgresql
16841      if test -d $withval/lib64; then
16842          POSTGRESQL_LIBDIR=$withval/lib64
16843      else
16844          POSTGRESQL_LIBDIR=$withval/lib
16845      fi
16846           POSTGRESQL_BINDIR=$withval/bin
16847       else
16848           echo "$as_me:$LINENO: result: no" >&5
16849 echo "${ECHO_T}no" >&6
16850           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16851 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16852    { (exit 1); exit 1; }; }
16853       fi
16854       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16855       echo "$as_me:$LINENO: checking for crypt" >&5
16856 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16857 if test "${ac_cv_func_crypt+set}" = set; then
16858   echo $ECHO_N "(cached) $ECHO_C" >&6
16859 else
16860   cat >conftest.$ac_ext <<_ACEOF
16861 /* confdefs.h.  */
16862 _ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h.  */
16866 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16868 #define crypt innocuous_crypt
16869
16870 /* System header to define __stub macros and hopefully few prototypes,
16871     which can conflict with char crypt (); below.
16872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16873     <limits.h> exists even on freestanding compilers.  */
16874
16875 #ifdef __STDC__
16876 # include <limits.h>
16877 #else
16878 # include <assert.h>
16879 #endif
16880
16881 #undef crypt
16882
16883 /* Override any gcc2 internal prototype to avoid an error.  */
16884 #ifdef __cplusplus
16885 extern "C"
16886 {
16887 #endif
16888 /* We use char because int might match the return type of a gcc2
16889    builtin and then its argument prototype would still apply.  */
16890 char crypt ();
16891 /* The GNU C library defines this for functions which it implements
16892     to always fail with ENOSYS.  Some functions are actually named
16893     something starting with __ and the normal name is an alias.  */
16894 #if defined (__stub_crypt) || defined (__stub___crypt)
16895 choke me
16896 #else
16897 char (*f) () = crypt;
16898 #endif
16899 #ifdef __cplusplus
16900 }
16901 #endif
16902
16903 int
16904 main ()
16905 {
16906 return f != crypt;
16907   ;
16908   return 0;
16909 }
16910 _ACEOF
16911 rm -f conftest.$ac_objext conftest$ac_exeext
16912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16913   (eval $ac_link) 2>conftest.er1
16914   ac_status=$?
16915   grep -v '^ *+' conftest.er1 >conftest.err
16916   rm -f conftest.er1
16917   cat conftest.err >&5
16918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919   (exit $ac_status); } &&
16920          { ac_try='test -z "$ac_c_werror_flag"
16921                          || test ! -s conftest.err'
16922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923   (eval $ac_try) 2>&5
16924   ac_status=$?
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); }; } &&
16927          { ac_try='test -s conftest$ac_exeext'
16928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929   (eval $ac_try) 2>&5
16930   ac_status=$?
16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932   (exit $ac_status); }; }; then
16933   ac_cv_func_crypt=yes
16934 else
16935   echo "$as_me: failed program was:" >&5
16936 sed 's/^/| /' conftest.$ac_ext >&5
16937
16938 ac_cv_func_crypt=no
16939 fi
16940 rm -f conftest.err conftest.$ac_objext \
16941       conftest$ac_exeext conftest.$ac_ext
16942 fi
16943 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16944 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16945 if test $ac_cv_func_crypt = yes; then
16946   :
16947 else
16948   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16949 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16950 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16951   echo $ECHO_N "(cached) $ECHO_C" >&6
16952 else
16953   ac_check_lib_save_LIBS=$LIBS
16954 LIBS="-lcrypt  $LIBS"
16955 cat >conftest.$ac_ext <<_ACEOF
16956 /* confdefs.h.  */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h.  */
16961
16962 /* Override any gcc2 internal prototype to avoid an error.  */
16963 #ifdef __cplusplus
16964 extern "C"
16965 #endif
16966 /* We use char because int might match the return type of a gcc2
16967    builtin and then its argument prototype would still apply.  */
16968 char crypt ();
16969 int
16970 main ()
16971 {
16972 crypt ();
16973   ;
16974   return 0;
16975 }
16976 _ACEOF
16977 rm -f conftest.$ac_objext conftest$ac_exeext
16978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16979   (eval $ac_link) 2>conftest.er1
16980   ac_status=$?
16981   grep -v '^ *+' conftest.er1 >conftest.err
16982   rm -f conftest.er1
16983   cat conftest.err >&5
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); } &&
16986          { ac_try='test -z "$ac_c_werror_flag"
16987                          || test ! -s conftest.err'
16988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989   (eval $ac_try) 2>&5
16990   ac_status=$?
16991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992   (exit $ac_status); }; } &&
16993          { ac_try='test -s conftest$ac_exeext'
16994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995   (eval $ac_try) 2>&5
16996   ac_status=$?
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); }; }; then
16999   ac_cv_lib_crypt_crypt=yes
17000 else
17001   echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17003
17004 ac_cv_lib_crypt_crypt=no
17005 fi
17006 rm -f conftest.err conftest.$ac_objext \
17007       conftest$ac_exeext conftest.$ac_ext
17008 LIBS=$ac_check_lib_save_LIBS
17009 fi
17010 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17011 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
17012 if test $ac_cv_lib_crypt_crypt = yes; then
17013   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17014 fi
17015
17016 fi
17017
17018       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17019       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17020       SQL_BINDIR=$POSTGRESQL_BINDIR
17021       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17022
17023       cat >>confdefs.h <<\_ACEOF
17024 #define HAVE_POSTGRESQL 1
17025 _ACEOF
17026
17027       echo "$as_me:$LINENO: result: yes" >&5
17028 echo "${ECHO_T}yes" >&6
17029       db_found=yes
17030       support_postgresql=yes
17031       db_type=PostgreSQL
17032       DB_TYPE=postgresql
17033   else
17034       echo "$as_me:$LINENO: result: no" >&5
17035 echo "${ECHO_T}no" >&6
17036   fi
17037
17038 else
17039
17040   echo "$as_me:$LINENO: result: no" >&5
17041 echo "${ECHO_T}no" >&6
17042
17043 fi;
17044
17045
17046
17047
17048
17049
17050
17051 db_found=no
17052 echo "$as_me:$LINENO: checking for MySQL support" >&5
17053 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
17054
17055 # Check whether --with-mysql or --without-mysql was given.
17056 if test "${with_mysql+set}" = set; then
17057   withval="$with_mysql"
17058
17059   if test "$withval" != "no"; then
17060         if test "$withval" = "yes"; then
17061            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17062                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17063                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17064                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17065                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17066                    else
17067                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17068                    fi
17069                    MYSQL_BINDIR=/usr/local/mysql/bin
17070            elif test -f /usr/include/mysql/mysql.h; then
17071                    MYSQL_INCDIR=/usr/include/mysql
17072                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17073                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17074                            MYSQL_LIBDIR=/usr/lib64/mysql
17075                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17076                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17077                            MYSQL_LIBDIR=/usr/lib/mysql
17078                    else
17079                            MYSQL_LIBDIR=/usr/lib
17080                    fi
17081                    MYSQL_BINDIR=/usr/bin
17082            elif test -f /usr/include/mysql.h; then
17083                    MYSQL_INCDIR=/usr/include
17084                    if test -f /usr/lib64/libmysqlclient_r.a \
17085                         -o -f /usr/lib64/libmysqlclient_r.so; then
17086                            MYSQL_LIBDIR=/usr/lib64
17087                    else
17088                            MYSQL_LIBDIR=/usr/lib
17089                    fi
17090                    MYSQL_BINDIR=/usr/bin
17091            elif test -f /usr/local/include/mysql/mysql.h; then
17092                    MYSQL_INCDIR=/usr/local/include/mysql
17093                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17094                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17095                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17096                    else
17097                            MYSQL_LIBDIR=/usr/local/lib/mysql
17098                    fi
17099                    MYSQL_BINDIR=/usr/local/bin
17100            elif test -f /usr/local/include/mysql.h; then
17101                    MYSQL_INCDIR=/usr/local/include
17102                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17103                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17104                            MYSQL_LIBDIR=/usr/local/lib64
17105                    else
17106                            MYSQL_LIBDIR=/usr/local/lib
17107                    fi
17108                    MYSQL_BINDIR=/usr/local/bin
17109            else
17110               echo "$as_me:$LINENO: result: no" >&5
17111 echo "${ECHO_T}no" >&6
17112               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17113 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17114    { (exit 1); exit 1; }; }
17115            fi
17116         else
17117            if test -f $withval/include/mysql/mysql.h; then
17118               MYSQL_INCDIR=$withval/include/mysql
17119               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17120                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17121                  MYSQL_LIBDIR=$withval/lib64/mysql
17122               else
17123                  MYSQL_LIBDIR=$withval/lib/mysql
17124                  # Solaris ...
17125                  if test -f $withval/lib/libmysqlclient_r.so; then
17126                     MYSQL_LIBDIR=$withval/lib
17127                  fi
17128               fi
17129               MYSQL_BINDIR=$withval/bin
17130            elif test -f $withval/include/mysql.h; then
17131               MYSQL_INCDIR=$withval/include
17132               if test -f $withval/lib64/libmysqlclient_r.a \
17133                    -o -f $withval/lib64/libmysqlclient_r.so; then
17134                  MYSQL_LIBDIR=$withval/lib64
17135               else
17136                  MYSQL_LIBDIR=$withval/lib
17137               fi
17138               MYSQL_BINDIR=$withval/bin
17139            else
17140               echo "$as_me:$LINENO: result: no" >&5
17141 echo "${ECHO_T}no" >&6
17142               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17143 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17144    { (exit 1); exit 1; }; }
17145            fi
17146         fi
17147     SQL_INCLUDE=-I$MYSQL_INCDIR
17148     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17149          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17150        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17151        cat >>confdefs.h <<\_ACEOF
17152 #define HAVE_THREAD_SAFE_MYSQL 1
17153 _ACEOF
17154
17155     fi
17156     SQL_BINDIR=$MYSQL_BINDIR
17157     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17158
17159     cat >>confdefs.h <<\_ACEOF
17160 #define HAVE_MYSQL 1
17161 _ACEOF
17162
17163     echo "$as_me:$LINENO: result: yes" >&5
17164 echo "${ECHO_T}yes" >&6
17165     db_found=yes
17166     support_mysql=yes
17167     db_type=MySQL
17168     DB_TYPE=mysql
17169
17170   else
17171         echo "$as_me:$LINENO: result: no" >&5
17172 echo "${ECHO_T}no" >&6
17173   fi
17174
17175
17176 fi;
17177
17178
17179 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
17180 if test "${with_embedded_mysql+set}" = set; then
17181   withval="$with_embedded_mysql"
17182
17183   if test "$withval" != "no"; then
17184         if test "$withval" = "yes"; then
17185                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17186                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17187                         if test -d /usr/local/mysql/lib64/mysql; then
17188                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17189                         else
17190                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17191                         fi
17192                         MYSQL_BINDIR=/usr/local/mysql/bin
17193                 elif test -f /usr/include/mysql/mysql.h; then
17194                         MYSQL_INCDIR=/usr/include/mysql
17195                         if test -d /usr/lib64/mysql; then
17196                                 MYSQL_LIBDIR=/usr/lib64/mysql
17197                         else
17198                                 MYSQL_LIBDIR=/usr/lib/mysql
17199                         fi
17200                         MYSQL_BINDIR=/usr/bin
17201                 elif test -f /usr/include/mysql.h; then
17202                         MYSQL_INCDIR=/usr/include
17203                         if test -d /usr/lib64; then
17204                                 MYSQL_LIBDIR=/usr/lib64
17205                         else
17206                                 MYSQL_LIBDIR=/usr/lib
17207                         fi
17208                         MYSQL_BINDIR=/usr/bin
17209                 elif test -f /usr/local/include/mysql/mysql.h; then
17210                         MYSQL_INCDIR=/usr/local/include/mysql
17211                         if test -d /usr/local/lib64/mysql; then
17212                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17213                         else
17214                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17215                         fi
17216                         MYSQL_BINDIR=/usr/local/bin
17217                 elif test -f /usr/local/include/mysql.h; then
17218                         MYSQL_INCDIR=/usr/local/include
17219                         if test -d /usr/local/lib64; then
17220                                 MYSQL_LIBDIR=/usr/local/lib64
17221                         else
17222                                 MYSQL_LIBDIR=/usr/local/lib
17223                         fi
17224                         MYSQL_BINDIR=/usr/local/bin
17225                 else
17226                    echo "$as_me:$LINENO: result: no" >&5
17227 echo "${ECHO_T}no" >&6
17228                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17229 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17230    { (exit 1); exit 1; }; }
17231                 fi
17232         else
17233                 if test -f $withval/include/mysql/mysql.h; then
17234                         MYSQL_INCDIR=$withval/include/mysql
17235                         if test -d $withval/lib64/mysql; then
17236                                 MYSQL_LIBDIR=$withval/lib64/mysql
17237                         else
17238                                 MYSQL_LIBDIR=$withval/lib/mysql
17239                         fi
17240                         MYSQL_BINDIR=$withval/bin
17241                 elif test -f $withval/include/mysql.h; then
17242                         MYSQL_INCDIR=$withval/include
17243                         if test -d $withval/lib64; then
17244                                 MYSQL_LIBDIR=$withval/lib64
17245                         else
17246                                 MYSQL_LIBDIR=$withval/lib
17247                         fi
17248                         MYSQL_BINDIR=$withval/bin
17249                 else
17250                    echo "$as_me:$LINENO: result: no" >&5
17251 echo "${ECHO_T}no" >&6
17252                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17253 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17254    { (exit 1); exit 1; }; }
17255                 fi
17256         fi
17257     SQL_INCLUDE=-I$MYSQL_INCDIR
17258     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17259     SQL_BINDIR=$MYSQL_BINDIR
17260     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17261
17262     cat >>confdefs.h <<\_ACEOF
17263 #define HAVE_MYSQL 1
17264 _ACEOF
17265
17266     cat >>confdefs.h <<\_ACEOF
17267 #define HAVE_EMBEDDED_MYSQL 1
17268 _ACEOF
17269
17270     echo "$as_me:$LINENO: result: yes" >&5
17271 echo "${ECHO_T}yes" >&6
17272     db_found=yes
17273     support_mysql=yes
17274     db_type=MySQL
17275     DB_TYPE=mysql
17276
17277   else
17278         echo "$as_me:$LINENO: result: no" >&5
17279 echo "${ECHO_T}no" >&6
17280   fi
17281
17282
17283 fi;
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293 db_found=no
17294 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17295 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17296
17297 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17298 if test "${with_sqlite3+set}" = set; then
17299   withval="$with_sqlite3"
17300
17301   if test "$withval" != "no"; then
17302      if test "$withval" = "yes"; then
17303         if test -f /usr/local/include/sqlite3.h; then
17304            SQLITE_INCDIR=/usr/local/include
17305            if test -d /usr/local/lib64; then
17306               SQLITE_LIBDIR=/usr/local/lib64
17307            else
17308               SQLITE_LIBDIR=/usr/local/lib
17309            fi
17310            SQLITE_BINDIR=/usr/local/bin
17311         elif test -f /usr/include/sqlite3.h; then
17312            SQLITE_INCDIR=/usr/include
17313            if test -d /usr/lib64; then
17314               SQLITE_LIBDIR=/usr/lib64
17315            else
17316               SQLITE_LIBDIR=/usr/lib
17317            fi
17318            SQLITE_BINDIR=/usr/bin
17319         elif test -f $prefix/include/sqlite3.h; then
17320            SQLITE_INCDIR=$prefix/include
17321            if test -d $prefix/lib64; then
17322               SQLITE_LIBDIR=$prefix/lib64
17323            else
17324               SQLITE_LIBDIR=$prefix/lib
17325            fi
17326            SQLITE_BINDIR=$prefix/bin
17327         else
17328            echo "$as_me:$LINENO: result: no" >&5
17329 echo "${ECHO_T}no" >&6
17330            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17331 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17332    { (exit 1); exit 1; }; }
17333         fi
17334      else
17335         if test -f $withval/sqlite3.h; then
17336            SQLITE_INCDIR=$withval
17337            SQLITE_LIBDIR=$withval
17338            SQLITE_BINDIR=$withval
17339         elif test -f $withval/include/sqlite3.h; then
17340            SQLITE_INCDIR=$withval/include
17341            if test -d $withval/lib64; then
17342               SQLITE_LIBDIR=$withval/lib64
17343            else
17344               SQLITE_LIBDIR=$withval/lib
17345            fi
17346            SQLITE_BINDIR=$withval/bin
17347         else
17348            echo "$as_me:$LINENO: result: no" >&5
17349 echo "${ECHO_T}no" >&6
17350            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17351 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17352    { (exit 1); exit 1; }; }
17353         fi
17354      fi
17355      SQL_INCLUDE=-I$SQLITE_INCDIR
17356      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17357      SQL_BINDIR=$SQLITE_BINDIR
17358      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17359
17360      cat >>confdefs.h <<\_ACEOF
17361 #define HAVE_SQLITE3 1
17362 _ACEOF
17363
17364      echo "$as_me:$LINENO: result: yes" >&5
17365 echo "${ECHO_T}yes" >&6
17366      db_found=yes
17367      support_sqlite3=yes
17368      db_type=SQLite3
17369      DB_TYPE=sqlite3
17370
17371   else
17372      echo "$as_me:$LINENO: result: no" >&5
17373 echo "${ECHO_T}no" >&6
17374   fi
17375
17376 else
17377
17378   echo "$as_me:$LINENO: result: no" >&5
17379 echo "${ECHO_T}no" >&6
17380
17381 fi;
17382
17383
17384
17385
17386
17387
17388
17389 db_found=no
17390 echo "$as_me:$LINENO: checking for SQLite support" >&5
17391 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17392
17393 # Check whether --with-sqlite or --without-sqlite was given.
17394 if test "${with_sqlite+set}" = set; then
17395   withval="$with_sqlite"
17396
17397   if test "$withval" != "no"; then
17398      if test "$withval" = "yes"; then
17399         if test -f /usr/local/include/sqlite.h; then
17400            SQLITE_INCDIR=/usr/local/include
17401            if test -d /usr/local/lib64; then
17402               SQLITE_LIBDIR=/usr/local/lib64
17403            else
17404               SQLITE_LIBDIR=/usr/local/lib
17405            fi
17406            SQLITE_BINDIR=/usr/local/bin
17407         elif test -f /usr/include/sqlite.h; then
17408            SQLITE_INCDIR=/usr/include
17409            if test -d /usr/lib64; then
17410               SQLITE_LIBDIR=/usr/lib64
17411            else
17412               SQLITE_LIBDIR=/usr/lib
17413            fi
17414            SQLITE_BINDIR=/usr/bin
17415         elif test -f $prefix/include/sqlite.h; then
17416            SQLITE_INCDIR=$prefix/include
17417            if test -d $prefix/lib64; then
17418               SQLITE_LIBDIR=$prefix/lib64
17419            else
17420               SQLITE_LIBDIR=$prefix/lib
17421            fi
17422            SQLITE_BINDIR=$prefix/bin
17423         else
17424            echo "$as_me:$LINENO: result: no" >&5
17425 echo "${ECHO_T}no" >&6
17426            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17427 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17428    { (exit 1); exit 1; }; }
17429         fi
17430      else
17431         if test -f $withval/sqlite.h; then
17432            SQLITE_INCDIR=$withval
17433            SQLITE_LIBDIR=$withval
17434            SQLITE_BINDIR=$withval
17435         elif test -f $withval/include/sqlite.h; then
17436            SQLITE_INCDIR=$withval/include
17437            if test -d $withval/lib64; then
17438               SQLITE_LIBDIR=$withval/lib64
17439            else
17440               SQLITE_LIBDIR=$withval/lib
17441            fi
17442            SQLITE_BINDIR=$withval/bin
17443         else
17444            echo "$as_me:$LINENO: result: no" >&5
17445 echo "${ECHO_T}no" >&6
17446            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17447 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17448    { (exit 1); exit 1; }; }
17449         fi
17450      fi
17451      SQL_INCLUDE=-I$SQLITE_INCDIR
17452      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17453      SQL_BINDIR=$SQLITE_BINDIR
17454      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17455
17456      cat >>confdefs.h <<\_ACEOF
17457 #define HAVE_SQLITE 1
17458 _ACEOF
17459
17460      echo "$as_me:$LINENO: result: yes" >&5
17461 echo "${ECHO_T}yes" >&6
17462      db_found=yes
17463      support_sqlite=yes
17464      db_type=SQLite
17465      DB_TYPE=sqlite
17466
17467   else
17468      echo "$as_me:$LINENO: result: no" >&5
17469 echo "${ECHO_T}no" >&6
17470   fi
17471
17472 else
17473
17474   echo "$as_me:$LINENO: result: no" >&5
17475 echo "${ECHO_T}no" >&6
17476
17477 fi;
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487 # -------------------------------------------
17488 # enable batch attribute DB insert (default on)
17489 # -------------------------------------------
17490 support_batch_insert=no
17491 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17492 pkg=$?
17493 if test $pkg = 0; then
17494    support_batch_insert=yes
17495    # Check whether --enable-batch-insert or --disable-batch-insert was given.
17496 if test "${enable_batch_insert+set}" = set; then
17497   enableval="$enable_batch_insert"
17498   if test x$enableval = xno; then
17499        support_batch_insert=no
17500       else
17501        support_batch_insert=yes
17502      fi
17503 fi;
17504 fi
17505
17506 # Check if postgresql support batch mode
17507 if test x$DB_TYPE = xpostgresql; then
17508    A=`nm $SQL_LIB | grep PQputCopyData`
17509    pkg=$?
17510    if test $pkg != 0; then
17511       support_batch_insert=no
17512    fi
17513 fi
17514
17515 if test $support_batch_insert = yes ; then
17516
17517 cat >>confdefs.h <<\_ACEOF
17518 #define HAVE_BATCH_FILE_INSERT 1
17519 _ACEOF
17520
17521 fi
17522
17523
17524 cat >>confdefs.h <<\_ACEOF
17525 #define PROTOTYPES 1
17526 _ACEOF
17527
17528
17529 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17530     if test -z "$CCOPTS"; then
17531         CCOPTS='-g -O2 -Wall'
17532     fi
17533     CFLAGS="$CCOPTS"
17534 fi
17535
17536
17537
17538
17539 largefile_support="no"
17540
17541    # Check whether --enable-largefile or --disable-largefile was given.
17542 if test "${enable_largefile+set}" = set; then
17543   enableval="$enable_largefile"
17544
17545 fi;
17546    if test "$enable_largefile" != no; then
17547      if test -n "$ac_tool_prefix"; then
17548   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17549 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17550 echo "$as_me:$LINENO: checking for $ac_word" >&5
17551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17552 if test "${ac_cv_prog_GETCONF+set}" = set; then
17553   echo $ECHO_N "(cached) $ECHO_C" >&6
17554 else
17555   if test -n "$GETCONF"; then
17556   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17557 else
17558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17559 for as_dir in $PATH
17560 do
17561   IFS=$as_save_IFS
17562   test -z "$as_dir" && as_dir=.
17563   for ac_exec_ext in '' $ac_executable_extensions; do
17564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17565     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17567     break 2
17568   fi
17569 done
17570 done
17571
17572 fi
17573 fi
17574 GETCONF=$ac_cv_prog_GETCONF
17575 if test -n "$GETCONF"; then
17576   echo "$as_me:$LINENO: result: $GETCONF" >&5
17577 echo "${ECHO_T}$GETCONF" >&6
17578 else
17579   echo "$as_me:$LINENO: result: no" >&5
17580 echo "${ECHO_T}no" >&6
17581 fi
17582
17583 fi
17584 if test -z "$ac_cv_prog_GETCONF"; then
17585   ac_ct_GETCONF=$GETCONF
17586   # Extract the first word of "getconf", so it can be a program name with args.
17587 set dummy getconf; ac_word=$2
17588 echo "$as_me:$LINENO: checking for $ac_word" >&5
17589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17590 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17591   echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593   if test -n "$ac_ct_GETCONF"; then
17594   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17595 else
17596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17597 for as_dir in $PATH
17598 do
17599   IFS=$as_save_IFS
17600   test -z "$as_dir" && as_dir=.
17601   for ac_exec_ext in '' $ac_executable_extensions; do
17602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17603     ac_cv_prog_ac_ct_GETCONF="getconf"
17604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17605     break 2
17606   fi
17607 done
17608 done
17609
17610 fi
17611 fi
17612 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17613 if test -n "$ac_ct_GETCONF"; then
17614   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17615 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17616 else
17617   echo "$as_me:$LINENO: result: no" >&5
17618 echo "${ECHO_T}no" >&6
17619 fi
17620
17621   GETCONF=$ac_ct_GETCONF
17622 else
17623   GETCONF="$ac_cv_prog_GETCONF"
17624 fi
17625
17626      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17627 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17628 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17629   echo $ECHO_N "(cached) $ECHO_C" >&6
17630 else
17631   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17632         ac_cv_sys_largefile_CFLAGS=no
17633         case "$host_os" in
17634            # IRIX 6.2 and later require cc -n32.
17635            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17636              if test "$GCC" != yes; then
17637                ac_cv_sys_largefile_CFLAGS=-n32
17638              fi
17639              ac_save_CC="$CC"
17640              CC="$CC $ac_cv_sys_largefile_CFLAGS"
17641              cat >conftest.$ac_ext <<_ACEOF
17642 /* confdefs.h.  */
17643 _ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h.  */
17647
17648 int
17649 main ()
17650 {
17651
17652   ;
17653   return 0;
17654 }
17655 _ACEOF
17656 rm -f conftest.$ac_objext conftest$ac_exeext
17657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17658   (eval $ac_link) 2>conftest.er1
17659   ac_status=$?
17660   grep -v '^ *+' conftest.er1 >conftest.err
17661   rm -f conftest.er1
17662   cat conftest.err >&5
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); } &&
17665          { ac_try='test -z "$ac_c_werror_flag"
17666                          || test ! -s conftest.err'
17667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668   (eval $ac_try) 2>&5
17669   ac_status=$?
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); }; } &&
17672          { ac_try='test -s conftest$ac_exeext'
17673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674   (eval $ac_try) 2>&5
17675   ac_status=$?
17676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677   (exit $ac_status); }; }; then
17678   :
17679 else
17680   echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17682
17683 ac_cv_sys_largefile_CFLAGS=no
17684 fi
17685 rm -f conftest.err conftest.$ac_objext \
17686       conftest$ac_exeext conftest.$ac_ext
17687              CC="$ac_save_CC"
17688            esac
17689       }
17690 fi
17691 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17692 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17693      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17694 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17695 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17696   echo $ECHO_N "(cached) $ECHO_C" >&6
17697 else
17698   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17699         ac_cv_sys_largefile_LDFLAGS=no
17700
17701       }
17702 fi
17703 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17704 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17705      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17706 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17707 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17708   echo $ECHO_N "(cached) $ECHO_C" >&6
17709 else
17710   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17711         ac_cv_sys_largefile_LIBS=no
17712
17713       }
17714 fi
17715 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17716 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17717
17718      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17719        case "$ac_flag" in
17720        no) ;;
17721        -D_FILE_OFFSET_BITS=*) ;;
17722        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17723        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17724        -D?* | -I?*)
17725          case "$ac_flag" in
17726    no) ;;
17727    ?*)
17728      case "$CPPFLAGS" in
17729      '') CPPFLAGS="$ac_flag" ;;
17730      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17731      esac ;;
17732    esac ;;
17733        *)
17734          case "$ac_flag" in
17735    no) ;;
17736    ?*)
17737      case "$CFLAGS" in
17738      '') CFLAGS="$ac_flag" ;;
17739      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17740      esac ;;
17741    esac ;;
17742        esac
17743      done
17744      case "$ac_cv_sys_largefile_LDFLAGS" in
17745    no) ;;
17746    ?*)
17747      case "$LDFLAGS" in
17748      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17749      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17750      esac ;;
17751    esac
17752      case "$ac_cv_sys_largefile_LIBS" in
17753    no) ;;
17754    ?*)
17755      case "$LIBS" in
17756      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17757      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17758      esac ;;
17759    esac
17760      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17761 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17762 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17763   echo $ECHO_N "(cached) $ECHO_C" >&6
17764 else
17765   ac_cv_sys_file_offset_bits=no
17766       ac_cv_sys_file_offset_bits=64
17767       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17768         case "$ac_flag" in
17769         -D_FILE_OFFSET_BITS)
17770           ac_cv_sys_file_offset_bits=1 ;;
17771         -D_FILE_OFFSET_BITS=*)
17772           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17773         esac
17774       done
17775
17776 fi
17777 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17778 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17779    if test "$ac_cv_sys_file_offset_bits" != no; then
17780
17781 cat >>confdefs.h <<_ACEOF
17782 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17783 _ACEOF
17784
17785    fi
17786      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17787 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17788 if test "${ac_cv_sys_largefile_source+set}" = set; then
17789   echo $ECHO_N "(cached) $ECHO_C" >&6
17790 else
17791   ac_cv_sys_largefile_source=no
17792       ac_cv_sys_largefile_source=1
17793       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17794         case "$ac_flag" in
17795         -D_LARGEFILE_SOURCE)
17796           ac_cv_sys_largefile_source=1 ;;
17797         -D_LARGEFILE_SOURCE=*)
17798           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17799         esac
17800       done
17801
17802 fi
17803 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17804 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17805    if test "$ac_cv_sys_largefile_source" != no; then
17806
17807 cat >>confdefs.h <<_ACEOF
17808 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17809 _ACEOF
17810
17811    fi
17812      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17813 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17814 if test "${ac_cv_sys_large_files+set}" = set; then
17815   echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817   ac_cv_sys_large_files=no
17818       ac_cv_sys_large_files=1
17819       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17820         case "$ac_flag" in
17821         -D_LARGE_FILES)
17822           ac_cv_sys_large_files=1 ;;
17823         -D_LARGE_FILES=*)
17824           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17825         esac
17826       done
17827
17828 fi
17829 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17830 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17831    if test "$ac_cv_sys_large_files" != no; then
17832
17833 cat >>confdefs.h <<_ACEOF
17834 #define _LARGE_FILES $ac_cv_sys_large_files
17835 _ACEOF
17836
17837    fi
17838    fi
17839
17840
17841
17842 echo "$as_me:$LINENO: checking for X" >&5
17843 echo $ECHO_N "checking for X... $ECHO_C" >&6
17844
17845
17846 # Check whether --with-x or --without-x was given.
17847 if test "${with_x+set}" = set; then
17848   withval="$with_x"
17849
17850 fi;
17851 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17852 if test "x$with_x" = xno; then
17853   # The user explicitly disabled X.
17854   have_x=disabled
17855 else
17856   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17857     # Both variables are already set.
17858     have_x=yes
17859   else
17860     if test "${ac_cv_have_x+set}" = set; then
17861   echo $ECHO_N "(cached) $ECHO_C" >&6
17862 else
17863   # One or both of the vars are not set, and there is no cached value.
17864 ac_x_includes=no ac_x_libraries=no
17865 rm -fr conftest.dir
17866 if mkdir conftest.dir; then
17867   cd conftest.dir
17868   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17869   cat >Imakefile <<'_ACEOF'
17870 acfindx:
17871         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17872 _ACEOF
17873   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17874     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17875     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17876     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17877     for ac_extension in a so sl; do
17878       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17879          test -f $ac_im_libdir/libX11.$ac_extension; then
17880         ac_im_usrlibdir=$ac_im_libdir; break
17881       fi
17882     done
17883     # Screen out bogus values from the imake configuration.  They are
17884     # bogus both because they are the default anyway, and because
17885     # using them would break gcc on systems where it needs fixed includes.
17886     case $ac_im_incroot in
17887         /usr/include) ;;
17888         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17889     esac
17890     case $ac_im_usrlibdir in
17891         /usr/lib | /lib) ;;
17892         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17893     esac
17894   fi
17895   cd ..
17896   rm -fr conftest.dir
17897 fi
17898
17899 # Standard set of common directories for X headers.
17900 # Check X11 before X11Rn because it is often a symlink to the current release.
17901 ac_x_header_dirs='
17902 /usr/X11/include
17903 /usr/X11R6/include
17904 /usr/X11R5/include
17905 /usr/X11R4/include
17906
17907 /usr/include/X11
17908 /usr/include/X11R6
17909 /usr/include/X11R5
17910 /usr/include/X11R4
17911
17912 /usr/local/X11/include
17913 /usr/local/X11R6/include
17914 /usr/local/X11R5/include
17915 /usr/local/X11R4/include
17916
17917 /usr/local/include/X11
17918 /usr/local/include/X11R6
17919 /usr/local/include/X11R5
17920 /usr/local/include/X11R4
17921
17922 /usr/X386/include
17923 /usr/x386/include
17924 /usr/XFree86/include/X11
17925
17926 /usr/include
17927 /usr/local/include
17928 /usr/unsupported/include
17929 /usr/athena/include
17930 /usr/local/x11r5/include
17931 /usr/lpp/Xamples/include
17932
17933 /usr/openwin/include
17934 /usr/openwin/share/include'
17935
17936 if test "$ac_x_includes" = no; then
17937   # Guess where to find include files, by looking for Xlib.h.
17938   # First, try using that file with no special directory specified.
17939   cat >conftest.$ac_ext <<_ACEOF
17940 /* confdefs.h.  */
17941 _ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h.  */
17945 #include <X11/Xlib.h>
17946 _ACEOF
17947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17949   ac_status=$?
17950   grep -v '^ *+' conftest.er1 >conftest.err
17951   rm -f conftest.er1
17952   cat conftest.err >&5
17953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954   (exit $ac_status); } >/dev/null; then
17955   if test -s conftest.err; then
17956     ac_cpp_err=$ac_c_preproc_warn_flag
17957     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17958   else
17959     ac_cpp_err=
17960   fi
17961 else
17962   ac_cpp_err=yes
17963 fi
17964 if test -z "$ac_cpp_err"; then
17965   # We can compile using X headers with no special include directory.
17966 ac_x_includes=
17967 else
17968   echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17970
17971   for ac_dir in $ac_x_header_dirs; do
17972   if test -r "$ac_dir/X11/Xlib.h"; then
17973     ac_x_includes=$ac_dir
17974     break
17975   fi
17976 done
17977 fi
17978 rm -f conftest.err conftest.$ac_ext
17979 fi # $ac_x_includes = no
17980
17981 if test "$ac_x_libraries" = no; then
17982   # Check for the libraries.
17983   # See if we find them without any special options.
17984   # Don't add to $LIBS permanently.
17985   ac_save_LIBS=$LIBS
17986   LIBS="-lX11 $LIBS"
17987   cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h.  */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h.  */
17993 #include <X11/Xlib.h>
17994 int
17995 main ()
17996 {
17997 XrmInitialize ()
17998   ;
17999   return 0;
18000 }
18001 _ACEOF
18002 rm -f conftest.$ac_objext conftest$ac_exeext
18003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18004   (eval $ac_link) 2>conftest.er1
18005   ac_status=$?
18006   grep -v '^ *+' conftest.er1 >conftest.err
18007   rm -f conftest.er1
18008   cat conftest.err >&5
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); } &&
18011          { ac_try='test -z "$ac_c_werror_flag"
18012                          || test ! -s conftest.err'
18013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014   (eval $ac_try) 2>&5
18015   ac_status=$?
18016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017   (exit $ac_status); }; } &&
18018          { ac_try='test -s conftest$ac_exeext'
18019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020   (eval $ac_try) 2>&5
18021   ac_status=$?
18022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023   (exit $ac_status); }; }; then
18024   LIBS=$ac_save_LIBS
18025 # We can link X programs with no special library path.
18026 ac_x_libraries=
18027 else
18028   echo "$as_me: failed program was:" >&5
18029 sed 's/^/| /' conftest.$ac_ext >&5
18030
18031 LIBS=$ac_save_LIBS
18032 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18033 do
18034   # Don't even attempt the hair of trying to link an X program!
18035   for ac_extension in a so sl; do
18036     if test -r $ac_dir/libXt.$ac_extension; then
18037       ac_x_libraries=$ac_dir
18038       break 2
18039     fi
18040   done
18041 done
18042 fi
18043 rm -f conftest.err conftest.$ac_objext \
18044       conftest$ac_exeext conftest.$ac_ext
18045 fi # $ac_x_libraries = no
18046
18047 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18048   # Didn't find X anywhere.  Cache the known absence of X.
18049   ac_cv_have_x="have_x=no"
18050 else
18051   # Record where we found X for the cache.
18052   ac_cv_have_x="have_x=yes \
18053                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18054 fi
18055 fi
18056
18057   fi
18058   eval "$ac_cv_have_x"
18059 fi # $with_x != no
18060
18061 if test "$have_x" != yes; then
18062   echo "$as_me:$LINENO: result: $have_x" >&5
18063 echo "${ECHO_T}$have_x" >&6
18064   no_x=yes
18065 else
18066   # If each of the values was on the command line, it overrides each guess.
18067   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18068   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18069   # Update the cache value to reflect the command line values.
18070   ac_cv_have_x="have_x=yes \
18071                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18072   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18073 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
18074 fi
18075
18076 if test "$no_x" = yes; then
18077   # Not all programs may use this symbol, but it does not hurt to define it.
18078
18079 cat >>confdefs.h <<\_ACEOF
18080 #define X_DISPLAY_MISSING 1
18081 _ACEOF
18082
18083   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18084 else
18085   if test -n "$x_includes"; then
18086     X_CFLAGS="$X_CFLAGS -I$x_includes"
18087   fi
18088
18089   # It would also be nice to do this for all -L options, not just this one.
18090   if test -n "$x_libraries"; then
18091     X_LIBS="$X_LIBS -L$x_libraries"
18092     # For Solaris; some versions of Sun CC require a space after -R and
18093     # others require no space.  Words are not sufficient . . . .
18094     case `(uname -sr) 2>/dev/null` in
18095     "SunOS 5"*)
18096       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18097 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
18098       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18099       cat >conftest.$ac_ext <<_ACEOF
18100 /* confdefs.h.  */
18101 _ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h.  */
18105
18106 int
18107 main ()
18108 {
18109
18110   ;
18111   return 0;
18112 }
18113 _ACEOF
18114 rm -f conftest.$ac_objext conftest$ac_exeext
18115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18116   (eval $ac_link) 2>conftest.er1
18117   ac_status=$?
18118   grep -v '^ *+' conftest.er1 >conftest.err
18119   rm -f conftest.er1
18120   cat conftest.err >&5
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); } &&
18123          { ac_try='test -z "$ac_c_werror_flag"
18124                          || test ! -s conftest.err'
18125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126   (eval $ac_try) 2>&5
18127   ac_status=$?
18128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129   (exit $ac_status); }; } &&
18130          { ac_try='test -s conftest$ac_exeext'
18131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132   (eval $ac_try) 2>&5
18133   ac_status=$?
18134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135   (exit $ac_status); }; }; then
18136   ac_R_nospace=yes
18137 else
18138   echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18140
18141 ac_R_nospace=no
18142 fi
18143 rm -f conftest.err conftest.$ac_objext \
18144       conftest$ac_exeext conftest.$ac_ext
18145       if test $ac_R_nospace = yes; then
18146         echo "$as_me:$LINENO: result: no" >&5
18147 echo "${ECHO_T}no" >&6
18148         X_LIBS="$X_LIBS -R$x_libraries"
18149       else
18150         LIBS="$ac_xsave_LIBS -R $x_libraries"
18151         cat >conftest.$ac_ext <<_ACEOF
18152 /* confdefs.h.  */
18153 _ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h.  */
18157
18158 int
18159 main ()
18160 {
18161
18162   ;
18163   return 0;
18164 }
18165 _ACEOF
18166 rm -f conftest.$ac_objext conftest$ac_exeext
18167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18168   (eval $ac_link) 2>conftest.er1
18169   ac_status=$?
18170   grep -v '^ *+' conftest.er1 >conftest.err
18171   rm -f conftest.er1
18172   cat conftest.err >&5
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); } &&
18175          { ac_try='test -z "$ac_c_werror_flag"
18176                          || test ! -s conftest.err'
18177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178   (eval $ac_try) 2>&5
18179   ac_status=$?
18180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181   (exit $ac_status); }; } &&
18182          { ac_try='test -s conftest$ac_exeext'
18183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184   (eval $ac_try) 2>&5
18185   ac_status=$?
18186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187   (exit $ac_status); }; }; then
18188   ac_R_space=yes
18189 else
18190   echo "$as_me: failed program was:" >&5
18191 sed 's/^/| /' conftest.$ac_ext >&5
18192
18193 ac_R_space=no
18194 fi
18195 rm -f conftest.err conftest.$ac_objext \
18196       conftest$ac_exeext conftest.$ac_ext
18197         if test $ac_R_space = yes; then
18198           echo "$as_me:$LINENO: result: yes" >&5
18199 echo "${ECHO_T}yes" >&6
18200           X_LIBS="$X_LIBS -R $x_libraries"
18201         else
18202           echo "$as_me:$LINENO: result: neither works" >&5
18203 echo "${ECHO_T}neither works" >&6
18204         fi
18205       fi
18206       LIBS=$ac_xsave_LIBS
18207     esac
18208   fi
18209
18210   # Check for system-dependent libraries X programs must link with.
18211   # Do this before checking for the system-independent R6 libraries
18212   # (-lICE), since we may need -lsocket or whatever for X linking.
18213
18214   if test "$ISC" = yes; then
18215     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18216   else
18217     # Martyn Johnson says this is needed for Ultrix, if the X
18218     # libraries were built with DECnet support.  And Karl Berry says
18219     # the Alpha needs dnet_stub (dnet does not exist).
18220     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18221     cat >conftest.$ac_ext <<_ACEOF
18222 /* confdefs.h.  */
18223 _ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h.  */
18227
18228 /* Override any gcc2 internal prototype to avoid an error.  */
18229 #ifdef __cplusplus
18230 extern "C"
18231 #endif
18232 /* We use char because int might match the return type of a gcc2
18233    builtin and then its argument prototype would still apply.  */
18234 char XOpenDisplay ();
18235 int
18236 main ()
18237 {
18238 XOpenDisplay ();
18239   ;
18240   return 0;
18241 }
18242 _ACEOF
18243 rm -f conftest.$ac_objext conftest$ac_exeext
18244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18245   (eval $ac_link) 2>conftest.er1
18246   ac_status=$?
18247   grep -v '^ *+' conftest.er1 >conftest.err
18248   rm -f conftest.er1
18249   cat conftest.err >&5
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); } &&
18252          { ac_try='test -z "$ac_c_werror_flag"
18253                          || test ! -s conftest.err'
18254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18255   (eval $ac_try) 2>&5
18256   ac_status=$?
18257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258   (exit $ac_status); }; } &&
18259          { ac_try='test -s conftest$ac_exeext'
18260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261   (eval $ac_try) 2>&5
18262   ac_status=$?
18263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264   (exit $ac_status); }; }; then
18265   :
18266 else
18267   echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18269
18270 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18271 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18272 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18273   echo $ECHO_N "(cached) $ECHO_C" >&6
18274 else
18275   ac_check_lib_save_LIBS=$LIBS
18276 LIBS="-ldnet  $LIBS"
18277 cat >conftest.$ac_ext <<_ACEOF
18278 /* confdefs.h.  */
18279 _ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h.  */
18283
18284 /* Override any gcc2 internal prototype to avoid an error.  */
18285 #ifdef __cplusplus
18286 extern "C"
18287 #endif
18288 /* We use char because int might match the return type of a gcc2
18289    builtin and then its argument prototype would still apply.  */
18290 char dnet_ntoa ();
18291 int
18292 main ()
18293 {
18294 dnet_ntoa ();
18295   ;
18296   return 0;
18297 }
18298 _ACEOF
18299 rm -f conftest.$ac_objext conftest$ac_exeext
18300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18301   (eval $ac_link) 2>conftest.er1
18302   ac_status=$?
18303   grep -v '^ *+' conftest.er1 >conftest.err
18304   rm -f conftest.er1
18305   cat conftest.err >&5
18306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307   (exit $ac_status); } &&
18308          { ac_try='test -z "$ac_c_werror_flag"
18309                          || test ! -s conftest.err'
18310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311   (eval $ac_try) 2>&5
18312   ac_status=$?
18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); }; } &&
18315          { ac_try='test -s conftest$ac_exeext'
18316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317   (eval $ac_try) 2>&5
18318   ac_status=$?
18319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320   (exit $ac_status); }; }; then
18321   ac_cv_lib_dnet_dnet_ntoa=yes
18322 else
18323   echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18325
18326 ac_cv_lib_dnet_dnet_ntoa=no
18327 fi
18328 rm -f conftest.err conftest.$ac_objext \
18329       conftest$ac_exeext conftest.$ac_ext
18330 LIBS=$ac_check_lib_save_LIBS
18331 fi
18332 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18333 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18334 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18335   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18336 fi
18337
18338     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18339       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18340 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18341 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18342   echo $ECHO_N "(cached) $ECHO_C" >&6
18343 else
18344   ac_check_lib_save_LIBS=$LIBS
18345 LIBS="-ldnet_stub  $LIBS"
18346 cat >conftest.$ac_ext <<_ACEOF
18347 /* confdefs.h.  */
18348 _ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h.  */
18352
18353 /* Override any gcc2 internal prototype to avoid an error.  */
18354 #ifdef __cplusplus
18355 extern "C"
18356 #endif
18357 /* We use char because int might match the return type of a gcc2
18358    builtin and then its argument prototype would still apply.  */
18359 char dnet_ntoa ();
18360 int
18361 main ()
18362 {
18363 dnet_ntoa ();
18364   ;
18365   return 0;
18366 }
18367 _ACEOF
18368 rm -f conftest.$ac_objext conftest$ac_exeext
18369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18370   (eval $ac_link) 2>conftest.er1
18371   ac_status=$?
18372   grep -v '^ *+' conftest.er1 >conftest.err
18373   rm -f conftest.er1
18374   cat conftest.err >&5
18375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376   (exit $ac_status); } &&
18377          { ac_try='test -z "$ac_c_werror_flag"
18378                          || test ! -s conftest.err'
18379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380   (eval $ac_try) 2>&5
18381   ac_status=$?
18382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383   (exit $ac_status); }; } &&
18384          { ac_try='test -s conftest$ac_exeext'
18385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386   (eval $ac_try) 2>&5
18387   ac_status=$?
18388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389   (exit $ac_status); }; }; then
18390   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18391 else
18392   echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395 ac_cv_lib_dnet_stub_dnet_ntoa=no
18396 fi
18397 rm -f conftest.err conftest.$ac_objext \
18398       conftest$ac_exeext conftest.$ac_ext
18399 LIBS=$ac_check_lib_save_LIBS
18400 fi
18401 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18402 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18403 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18404   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18405 fi
18406
18407     fi
18408 fi
18409 rm -f conftest.err conftest.$ac_objext \
18410       conftest$ac_exeext conftest.$ac_ext
18411     LIBS="$ac_xsave_LIBS"
18412
18413     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18414     # to get the SysV transport functions.
18415     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18416     # needs -lnsl.
18417     # The nsl library prevents programs from opening the X display
18418     # on Irix 5.2, according to T.E. Dickey.
18419     # The functions gethostbyname, getservbyname, and inet_addr are
18420     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18421     echo "$as_me:$LINENO: checking for gethostbyname" >&5
18422 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18423 if test "${ac_cv_func_gethostbyname+set}" = set; then
18424   echo $ECHO_N "(cached) $ECHO_C" >&6
18425 else
18426   cat >conftest.$ac_ext <<_ACEOF
18427 /* confdefs.h.  */
18428 _ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h.  */
18432 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18434 #define gethostbyname innocuous_gethostbyname
18435
18436 /* System header to define __stub macros and hopefully few prototypes,
18437     which can conflict with char gethostbyname (); below.
18438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18439     <limits.h> exists even on freestanding compilers.  */
18440
18441 #ifdef __STDC__
18442 # include <limits.h>
18443 #else
18444 # include <assert.h>
18445 #endif
18446
18447 #undef gethostbyname
18448
18449 /* Override any gcc2 internal prototype to avoid an error.  */
18450 #ifdef __cplusplus
18451 extern "C"
18452 {
18453 #endif
18454 /* We use char because int might match the return type of a gcc2
18455    builtin and then its argument prototype would still apply.  */
18456 char gethostbyname ();
18457 /* The GNU C library defines this for functions which it implements
18458     to always fail with ENOSYS.  Some functions are actually named
18459     something starting with __ and the normal name is an alias.  */
18460 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18461 choke me
18462 #else
18463 char (*f) () = gethostbyname;
18464 #endif
18465 #ifdef __cplusplus
18466 }
18467 #endif
18468
18469 int
18470 main ()
18471 {
18472 return f != gethostbyname;
18473   ;
18474   return 0;
18475 }
18476 _ACEOF
18477 rm -f conftest.$ac_objext conftest$ac_exeext
18478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18479   (eval $ac_link) 2>conftest.er1
18480   ac_status=$?
18481   grep -v '^ *+' conftest.er1 >conftest.err
18482   rm -f conftest.er1
18483   cat conftest.err >&5
18484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485   (exit $ac_status); } &&
18486          { ac_try='test -z "$ac_c_werror_flag"
18487                          || test ! -s conftest.err'
18488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18489   (eval $ac_try) 2>&5
18490   ac_status=$?
18491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492   (exit $ac_status); }; } &&
18493          { ac_try='test -s conftest$ac_exeext'
18494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18495   (eval $ac_try) 2>&5
18496   ac_status=$?
18497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498   (exit $ac_status); }; }; then
18499   ac_cv_func_gethostbyname=yes
18500 else
18501   echo "$as_me: failed program was:" >&5
18502 sed 's/^/| /' conftest.$ac_ext >&5
18503
18504 ac_cv_func_gethostbyname=no
18505 fi
18506 rm -f conftest.err conftest.$ac_objext \
18507       conftest$ac_exeext conftest.$ac_ext
18508 fi
18509 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18510 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18511
18512     if test $ac_cv_func_gethostbyname = no; then
18513       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18514 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18515 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18516   echo $ECHO_N "(cached) $ECHO_C" >&6
18517 else
18518   ac_check_lib_save_LIBS=$LIBS
18519 LIBS="-lnsl  $LIBS"
18520 cat >conftest.$ac_ext <<_ACEOF
18521 /* confdefs.h.  */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h.  */
18526
18527 /* Override any gcc2 internal prototype to avoid an error.  */
18528 #ifdef __cplusplus
18529 extern "C"
18530 #endif
18531 /* We use char because int might match the return type of a gcc2
18532    builtin and then its argument prototype would still apply.  */
18533 char gethostbyname ();
18534 int
18535 main ()
18536 {
18537 gethostbyname ();
18538   ;
18539   return 0;
18540 }
18541 _ACEOF
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544   (eval $ac_link) 2>conftest.er1
18545   ac_status=$?
18546   grep -v '^ *+' conftest.er1 >conftest.err
18547   rm -f conftest.er1
18548   cat conftest.err >&5
18549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550   (exit $ac_status); } &&
18551          { ac_try='test -z "$ac_c_werror_flag"
18552                          || test ! -s conftest.err'
18553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554   (eval $ac_try) 2>&5
18555   ac_status=$?
18556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557   (exit $ac_status); }; } &&
18558          { ac_try='test -s conftest$ac_exeext'
18559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560   (eval $ac_try) 2>&5
18561   ac_status=$?
18562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563   (exit $ac_status); }; }; then
18564   ac_cv_lib_nsl_gethostbyname=yes
18565 else
18566   echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18568
18569 ac_cv_lib_nsl_gethostbyname=no
18570 fi
18571 rm -f conftest.err conftest.$ac_objext \
18572       conftest$ac_exeext conftest.$ac_ext
18573 LIBS=$ac_check_lib_save_LIBS
18574 fi
18575 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18576 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18577 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18578   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18579 fi
18580
18581       if test $ac_cv_lib_nsl_gethostbyname = no; then
18582         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18583 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18584 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18585   echo $ECHO_N "(cached) $ECHO_C" >&6
18586 else
18587   ac_check_lib_save_LIBS=$LIBS
18588 LIBS="-lbsd  $LIBS"
18589 cat >conftest.$ac_ext <<_ACEOF
18590 /* confdefs.h.  */
18591 _ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h.  */
18595
18596 /* Override any gcc2 internal prototype to avoid an error.  */
18597 #ifdef __cplusplus
18598 extern "C"
18599 #endif
18600 /* We use char because int might match the return type of a gcc2
18601    builtin and then its argument prototype would still apply.  */
18602 char gethostbyname ();
18603 int
18604 main ()
18605 {
18606 gethostbyname ();
18607   ;
18608   return 0;
18609 }
18610 _ACEOF
18611 rm -f conftest.$ac_objext conftest$ac_exeext
18612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18613   (eval $ac_link) 2>conftest.er1
18614   ac_status=$?
18615   grep -v '^ *+' conftest.er1 >conftest.err
18616   rm -f conftest.er1
18617   cat conftest.err >&5
18618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619   (exit $ac_status); } &&
18620          { ac_try='test -z "$ac_c_werror_flag"
18621                          || test ! -s conftest.err'
18622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623   (eval $ac_try) 2>&5
18624   ac_status=$?
18625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626   (exit $ac_status); }; } &&
18627          { ac_try='test -s conftest$ac_exeext'
18628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629   (eval $ac_try) 2>&5
18630   ac_status=$?
18631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632   (exit $ac_status); }; }; then
18633   ac_cv_lib_bsd_gethostbyname=yes
18634 else
18635   echo "$as_me: failed program was:" >&5
18636 sed 's/^/| /' conftest.$ac_ext >&5
18637
18638 ac_cv_lib_bsd_gethostbyname=no
18639 fi
18640 rm -f conftest.err conftest.$ac_objext \
18641       conftest$ac_exeext conftest.$ac_ext
18642 LIBS=$ac_check_lib_save_LIBS
18643 fi
18644 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18645 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18646 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18647   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18648 fi
18649
18650       fi
18651     fi
18652
18653     # lieder@skyler.mavd.honeywell.com says without -lsocket,
18654     # socket/setsockopt and other routines are undefined under SCO ODT
18655     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18656     # on later versions), says Simon Leinen: it contains gethostby*
18657     # variants that don't use the name server (or something).  -lsocket
18658     # must be given before -lnsl if both are needed.  We assume that
18659     # if connect needs -lnsl, so does gethostbyname.
18660     echo "$as_me:$LINENO: checking for connect" >&5
18661 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18662 if test "${ac_cv_func_connect+set}" = set; then
18663   echo $ECHO_N "(cached) $ECHO_C" >&6
18664 else
18665   cat >conftest.$ac_ext <<_ACEOF
18666 /* confdefs.h.  */
18667 _ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h.  */
18671 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18672    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18673 #define connect innocuous_connect
18674
18675 /* System header to define __stub macros and hopefully few prototypes,
18676     which can conflict with char connect (); below.
18677     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18678     <limits.h> exists even on freestanding compilers.  */
18679
18680 #ifdef __STDC__
18681 # include <limits.h>
18682 #else
18683 # include <assert.h>
18684 #endif
18685
18686 #undef connect
18687
18688 /* Override any gcc2 internal prototype to avoid an error.  */
18689 #ifdef __cplusplus
18690 extern "C"
18691 {
18692 #endif
18693 /* We use char because int might match the return type of a gcc2
18694    builtin and then its argument prototype would still apply.  */
18695 char connect ();
18696 /* The GNU C library defines this for functions which it implements
18697     to always fail with ENOSYS.  Some functions are actually named
18698     something starting with __ and the normal name is an alias.  */
18699 #if defined (__stub_connect) || defined (__stub___connect)
18700 choke me
18701 #else
18702 char (*f) () = connect;
18703 #endif
18704 #ifdef __cplusplus
18705 }
18706 #endif
18707
18708 int
18709 main ()
18710 {
18711 return f != connect;
18712   ;
18713   return 0;
18714 }
18715 _ACEOF
18716 rm -f conftest.$ac_objext conftest$ac_exeext
18717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18718   (eval $ac_link) 2>conftest.er1
18719   ac_status=$?
18720   grep -v '^ *+' conftest.er1 >conftest.err
18721   rm -f conftest.er1
18722   cat conftest.err >&5
18723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724   (exit $ac_status); } &&
18725          { ac_try='test -z "$ac_c_werror_flag"
18726                          || test ! -s conftest.err'
18727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728   (eval $ac_try) 2>&5
18729   ac_status=$?
18730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731   (exit $ac_status); }; } &&
18732          { ac_try='test -s conftest$ac_exeext'
18733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734   (eval $ac_try) 2>&5
18735   ac_status=$?
18736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737   (exit $ac_status); }; }; then
18738   ac_cv_func_connect=yes
18739 else
18740   echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18742
18743 ac_cv_func_connect=no
18744 fi
18745 rm -f conftest.err conftest.$ac_objext \
18746       conftest$ac_exeext conftest.$ac_ext
18747 fi
18748 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18749 echo "${ECHO_T}$ac_cv_func_connect" >&6
18750
18751     if test $ac_cv_func_connect = no; then
18752       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18753 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18754 if test "${ac_cv_lib_socket_connect+set}" = set; then
18755   echo $ECHO_N "(cached) $ECHO_C" >&6
18756 else
18757   ac_check_lib_save_LIBS=$LIBS
18758 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18759 cat >conftest.$ac_ext <<_ACEOF
18760 /* confdefs.h.  */
18761 _ACEOF
18762 cat confdefs.h >>conftest.$ac_ext
18763 cat >>conftest.$ac_ext <<_ACEOF
18764 /* end confdefs.h.  */
18765
18766 /* Override any gcc2 internal prototype to avoid an error.  */
18767 #ifdef __cplusplus
18768 extern "C"
18769 #endif
18770 /* We use char because int might match the return type of a gcc2
18771    builtin and then its argument prototype would still apply.  */
18772 char connect ();
18773 int
18774 main ()
18775 {
18776 connect ();
18777   ;
18778   return 0;
18779 }
18780 _ACEOF
18781 rm -f conftest.$ac_objext conftest$ac_exeext
18782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18783   (eval $ac_link) 2>conftest.er1
18784   ac_status=$?
18785   grep -v '^ *+' conftest.er1 >conftest.err
18786   rm -f conftest.er1
18787   cat conftest.err >&5
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); } &&
18790          { ac_try='test -z "$ac_c_werror_flag"
18791                          || test ! -s conftest.err'
18792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18793   (eval $ac_try) 2>&5
18794   ac_status=$?
18795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796   (exit $ac_status); }; } &&
18797          { ac_try='test -s conftest$ac_exeext'
18798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799   (eval $ac_try) 2>&5
18800   ac_status=$?
18801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802   (exit $ac_status); }; }; then
18803   ac_cv_lib_socket_connect=yes
18804 else
18805   echo "$as_me: failed program was:" >&5
18806 sed 's/^/| /' conftest.$ac_ext >&5
18807
18808 ac_cv_lib_socket_connect=no
18809 fi
18810 rm -f conftest.err conftest.$ac_objext \
18811       conftest$ac_exeext conftest.$ac_ext
18812 LIBS=$ac_check_lib_save_LIBS
18813 fi
18814 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18815 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18816 if test $ac_cv_lib_socket_connect = yes; then
18817   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18818 fi
18819
18820     fi
18821
18822     # Guillermo Gomez says -lposix is necessary on A/UX.
18823     echo "$as_me:$LINENO: checking for remove" >&5
18824 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18825 if test "${ac_cv_func_remove+set}" = set; then
18826   echo $ECHO_N "(cached) $ECHO_C" >&6
18827 else
18828   cat >conftest.$ac_ext <<_ACEOF
18829 /* confdefs.h.  */
18830 _ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h.  */
18834 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18836 #define remove innocuous_remove
18837
18838 /* System header to define __stub macros and hopefully few prototypes,
18839     which can conflict with char remove (); below.
18840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18841     <limits.h> exists even on freestanding compilers.  */
18842
18843 #ifdef __STDC__
18844 # include <limits.h>
18845 #else
18846 # include <assert.h>
18847 #endif
18848
18849 #undef remove
18850
18851 /* Override any gcc2 internal prototype to avoid an error.  */
18852 #ifdef __cplusplus
18853 extern "C"
18854 {
18855 #endif
18856 /* We use char because int might match the return type of a gcc2
18857    builtin and then its argument prototype would still apply.  */
18858 char remove ();
18859 /* The GNU C library defines this for functions which it implements
18860     to always fail with ENOSYS.  Some functions are actually named
18861     something starting with __ and the normal name is an alias.  */
18862 #if defined (__stub_remove) || defined (__stub___remove)
18863 choke me
18864 #else
18865 char (*f) () = remove;
18866 #endif
18867 #ifdef __cplusplus
18868 }
18869 #endif
18870
18871 int
18872 main ()
18873 {
18874 return f != remove;
18875   ;
18876   return 0;
18877 }
18878 _ACEOF
18879 rm -f conftest.$ac_objext conftest$ac_exeext
18880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18881   (eval $ac_link) 2>conftest.er1
18882   ac_status=$?
18883   grep -v '^ *+' conftest.er1 >conftest.err
18884   rm -f conftest.er1
18885   cat conftest.err >&5
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); } &&
18888          { ac_try='test -z "$ac_c_werror_flag"
18889                          || test ! -s conftest.err'
18890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891   (eval $ac_try) 2>&5
18892   ac_status=$?
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); }; } &&
18895          { ac_try='test -s conftest$ac_exeext'
18896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18897   (eval $ac_try) 2>&5
18898   ac_status=$?
18899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900   (exit $ac_status); }; }; then
18901   ac_cv_func_remove=yes
18902 else
18903   echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18905
18906 ac_cv_func_remove=no
18907 fi
18908 rm -f conftest.err conftest.$ac_objext \
18909       conftest$ac_exeext conftest.$ac_ext
18910 fi
18911 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18912 echo "${ECHO_T}$ac_cv_func_remove" >&6
18913
18914     if test $ac_cv_func_remove = no; then
18915       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18916 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18917 if test "${ac_cv_lib_posix_remove+set}" = set; then
18918   echo $ECHO_N "(cached) $ECHO_C" >&6
18919 else
18920   ac_check_lib_save_LIBS=$LIBS
18921 LIBS="-lposix  $LIBS"
18922 cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h.  */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h.  */
18928
18929 /* Override any gcc2 internal prototype to avoid an error.  */
18930 #ifdef __cplusplus
18931 extern "C"
18932 #endif
18933 /* We use char because int might match the return type of a gcc2
18934    builtin and then its argument prototype would still apply.  */
18935 char remove ();
18936 int
18937 main ()
18938 {
18939 remove ();
18940   ;
18941   return 0;
18942 }
18943 _ACEOF
18944 rm -f conftest.$ac_objext conftest$ac_exeext
18945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18946   (eval $ac_link) 2>conftest.er1
18947   ac_status=$?
18948   grep -v '^ *+' conftest.er1 >conftest.err
18949   rm -f conftest.er1
18950   cat conftest.err >&5
18951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952   (exit $ac_status); } &&
18953          { ac_try='test -z "$ac_c_werror_flag"
18954                          || test ! -s conftest.err'
18955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956   (eval $ac_try) 2>&5
18957   ac_status=$?
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); }; } &&
18960          { ac_try='test -s conftest$ac_exeext'
18961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962   (eval $ac_try) 2>&5
18963   ac_status=$?
18964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965   (exit $ac_status); }; }; then
18966   ac_cv_lib_posix_remove=yes
18967 else
18968   echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18970
18971 ac_cv_lib_posix_remove=no
18972 fi
18973 rm -f conftest.err conftest.$ac_objext \
18974       conftest$ac_exeext conftest.$ac_ext
18975 LIBS=$ac_check_lib_save_LIBS
18976 fi
18977 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18978 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18979 if test $ac_cv_lib_posix_remove = yes; then
18980   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18981 fi
18982
18983     fi
18984
18985     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18986     echo "$as_me:$LINENO: checking for shmat" >&5
18987 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18988 if test "${ac_cv_func_shmat+set}" = set; then
18989   echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18991   cat >conftest.$ac_ext <<_ACEOF
18992 /* confdefs.h.  */
18993 _ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h.  */
18997 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18999 #define shmat innocuous_shmat
19000
19001 /* System header to define __stub macros and hopefully few prototypes,
19002     which can conflict with char shmat (); below.
19003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19004     <limits.h> exists even on freestanding compilers.  */
19005
19006 #ifdef __STDC__
19007 # include <limits.h>
19008 #else
19009 # include <assert.h>
19010 #endif
19011
19012 #undef shmat
19013
19014 /* Override any gcc2 internal prototype to avoid an error.  */
19015 #ifdef __cplusplus
19016 extern "C"
19017 {
19018 #endif
19019 /* We use char because int might match the return type of a gcc2
19020    builtin and then its argument prototype would still apply.  */
19021 char shmat ();
19022 /* The GNU C library defines this for functions which it implements
19023     to always fail with ENOSYS.  Some functions are actually named
19024     something starting with __ and the normal name is an alias.  */
19025 #if defined (__stub_shmat) || defined (__stub___shmat)
19026 choke me
19027 #else
19028 char (*f) () = shmat;
19029 #endif
19030 #ifdef __cplusplus
19031 }
19032 #endif
19033
19034 int
19035 main ()
19036 {
19037 return f != shmat;
19038   ;
19039   return 0;
19040 }
19041 _ACEOF
19042 rm -f conftest.$ac_objext conftest$ac_exeext
19043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19044   (eval $ac_link) 2>conftest.er1
19045   ac_status=$?
19046   grep -v '^ *+' conftest.er1 >conftest.err
19047   rm -f conftest.er1
19048   cat conftest.err >&5
19049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050   (exit $ac_status); } &&
19051          { ac_try='test -z "$ac_c_werror_flag"
19052                          || test ! -s conftest.err'
19053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054   (eval $ac_try) 2>&5
19055   ac_status=$?
19056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057   (exit $ac_status); }; } &&
19058          { ac_try='test -s conftest$ac_exeext'
19059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060   (eval $ac_try) 2>&5
19061   ac_status=$?
19062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063   (exit $ac_status); }; }; then
19064   ac_cv_func_shmat=yes
19065 else
19066   echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19068
19069 ac_cv_func_shmat=no
19070 fi
19071 rm -f conftest.err conftest.$ac_objext \
19072       conftest$ac_exeext conftest.$ac_ext
19073 fi
19074 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19075 echo "${ECHO_T}$ac_cv_func_shmat" >&6
19076
19077     if test $ac_cv_func_shmat = no; then
19078       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19079 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
19080 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19081   echo $ECHO_N "(cached) $ECHO_C" >&6
19082 else
19083   ac_check_lib_save_LIBS=$LIBS
19084 LIBS="-lipc  $LIBS"
19085 cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h.  */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h.  */
19091
19092 /* Override any gcc2 internal prototype to avoid an error.  */
19093 #ifdef __cplusplus
19094 extern "C"
19095 #endif
19096 /* We use char because int might match the return type of a gcc2
19097    builtin and then its argument prototype would still apply.  */
19098 char shmat ();
19099 int
19100 main ()
19101 {
19102 shmat ();
19103   ;
19104   return 0;
19105 }
19106 _ACEOF
19107 rm -f conftest.$ac_objext conftest$ac_exeext
19108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19109   (eval $ac_link) 2>conftest.er1
19110   ac_status=$?
19111   grep -v '^ *+' conftest.er1 >conftest.err
19112   rm -f conftest.er1
19113   cat conftest.err >&5
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); } &&
19116          { ac_try='test -z "$ac_c_werror_flag"
19117                          || test ! -s conftest.err'
19118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119   (eval $ac_try) 2>&5
19120   ac_status=$?
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); }; } &&
19123          { ac_try='test -s conftest$ac_exeext'
19124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125   (eval $ac_try) 2>&5
19126   ac_status=$?
19127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128   (exit $ac_status); }; }; then
19129   ac_cv_lib_ipc_shmat=yes
19130 else
19131   echo "$as_me: failed program was:" >&5
19132 sed 's/^/| /' conftest.$ac_ext >&5
19133
19134 ac_cv_lib_ipc_shmat=no
19135 fi
19136 rm -f conftest.err conftest.$ac_objext \
19137       conftest$ac_exeext conftest.$ac_ext
19138 LIBS=$ac_check_lib_save_LIBS
19139 fi
19140 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19141 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
19142 if test $ac_cv_lib_ipc_shmat = yes; then
19143   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19144 fi
19145
19146     fi
19147   fi
19148
19149   # Check for libraries that X11R6 Xt/Xaw programs need.
19150   ac_save_LDFLAGS=$LDFLAGS
19151   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19152   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19153   # check for ICE first), but we must link in the order -lSM -lICE or
19154   # we get undefined symbols.  So assume we have SM if we have ICE.
19155   # These have to be linked with before -lX11, unlike the other
19156   # libraries we check for below, so use a different variable.
19157   # John Interrante, Karl Berry
19158   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19159 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
19160 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19161   echo $ECHO_N "(cached) $ECHO_C" >&6
19162 else
19163   ac_check_lib_save_LIBS=$LIBS
19164 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19165 cat >conftest.$ac_ext <<_ACEOF
19166 /* confdefs.h.  */
19167 _ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h.  */
19171
19172 /* Override any gcc2 internal prototype to avoid an error.  */
19173 #ifdef __cplusplus
19174 extern "C"
19175 #endif
19176 /* We use char because int might match the return type of a gcc2
19177    builtin and then its argument prototype would still apply.  */
19178 char IceConnectionNumber ();
19179 int
19180 main ()
19181 {
19182 IceConnectionNumber ();
19183   ;
19184   return 0;
19185 }
19186 _ACEOF
19187 rm -f conftest.$ac_objext conftest$ac_exeext
19188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19189   (eval $ac_link) 2>conftest.er1
19190   ac_status=$?
19191   grep -v '^ *+' conftest.er1 >conftest.err
19192   rm -f conftest.er1
19193   cat conftest.err >&5
19194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195   (exit $ac_status); } &&
19196          { ac_try='test -z "$ac_c_werror_flag"
19197                          || test ! -s conftest.err'
19198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199   (eval $ac_try) 2>&5
19200   ac_status=$?
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); }; } &&
19203          { ac_try='test -s conftest$ac_exeext'
19204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205   (eval $ac_try) 2>&5
19206   ac_status=$?
19207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208   (exit $ac_status); }; }; then
19209   ac_cv_lib_ICE_IceConnectionNumber=yes
19210 else
19211   echo "$as_me: failed program was:" >&5
19212 sed 's/^/| /' conftest.$ac_ext >&5
19213
19214 ac_cv_lib_ICE_IceConnectionNumber=no
19215 fi
19216 rm -f conftest.err conftest.$ac_objext \
19217       conftest$ac_exeext conftest.$ac_ext
19218 LIBS=$ac_check_lib_save_LIBS
19219 fi
19220 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19221 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
19222 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19223   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19224 fi
19225
19226   LDFLAGS=$ac_save_LDFLAGS
19227
19228 fi
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258 for ac_header in \
19259         assert.h \
19260         fcntl.h \
19261         grp.h \
19262         pwd.h \
19263         libc.h \
19264         limits.h \
19265         stdarg.h \
19266         stdlib.h \
19267         stdint.h \
19268         string.h \
19269         termios.h \
19270         termcap.h \
19271         term.h \
19272         unistd.h \
19273         sys/bitypes.h \
19274         sys/byteorder.h \
19275         sys/ioctl.h \
19276         sys/select.h \
19277         sys/sockio.h \
19278         sys/time.h \
19279         sys/socket.h \
19280         arpa/nameser.h \
19281         resolv.h \
19282         mtio.h \
19283         sys/mtio.h \
19284         sys/tape.h \
19285         regex.h \
19286
19287 do
19288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19290   echo "$as_me:$LINENO: checking for $ac_header" >&5
19291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19293   echo $ECHO_N "(cached) $ECHO_C" >&6
19294 fi
19295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19297 else
19298   # Is the header compilable?
19299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19301 cat >conftest.$ac_ext <<_ACEOF
19302 /* confdefs.h.  */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h.  */
19307 $ac_includes_default
19308 #include <$ac_header>
19309 _ACEOF
19310 rm -f conftest.$ac_objext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19312   (eval $ac_compile) 2>conftest.er1
19313   ac_status=$?
19314   grep -v '^ *+' conftest.er1 >conftest.err
19315   rm -f conftest.er1
19316   cat conftest.err >&5
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); } &&
19319          { ac_try='test -z "$ac_c_werror_flag"
19320                          || test ! -s conftest.err'
19321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322   (eval $ac_try) 2>&5
19323   ac_status=$?
19324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325   (exit $ac_status); }; } &&
19326          { ac_try='test -s conftest.$ac_objext'
19327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328   (eval $ac_try) 2>&5
19329   ac_status=$?
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); }; }; then
19332   ac_header_compiler=yes
19333 else
19334   echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19336
19337 ac_header_compiler=no
19338 fi
19339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19341 echo "${ECHO_T}$ac_header_compiler" >&6
19342
19343 # Is the header present?
19344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19346 cat >conftest.$ac_ext <<_ACEOF
19347 /* confdefs.h.  */
19348 _ACEOF
19349 cat confdefs.h >>conftest.$ac_ext
19350 cat >>conftest.$ac_ext <<_ACEOF
19351 /* end confdefs.h.  */
19352 #include <$ac_header>
19353 _ACEOF
19354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19355   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19356   ac_status=$?
19357   grep -v '^ *+' conftest.er1 >conftest.err
19358   rm -f conftest.er1
19359   cat conftest.err >&5
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); } >/dev/null; then
19362   if test -s conftest.err; then
19363     ac_cpp_err=$ac_c_preproc_warn_flag
19364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19365   else
19366     ac_cpp_err=
19367   fi
19368 else
19369   ac_cpp_err=yes
19370 fi
19371 if test -z "$ac_cpp_err"; then
19372   ac_header_preproc=yes
19373 else
19374   echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19376
19377   ac_header_preproc=no
19378 fi
19379 rm -f conftest.err conftest.$ac_ext
19380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19381 echo "${ECHO_T}$ac_header_preproc" >&6
19382
19383 # So?  What about this header?
19384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19385   yes:no: )
19386     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19390     ac_header_preproc=yes
19391     ;;
19392   no:yes:* )
19393     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19395     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19396 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19397     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19399     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19400 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19403     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19405     (
19406       cat <<\_ASBOX
19407 ## ------------------------------------------ ##
19408 ## Report this to the AC_PACKAGE_NAME lists.  ##
19409 ## ------------------------------------------ ##
19410 _ASBOX
19411     ) |
19412       sed "s/^/$as_me: WARNING:     /" >&2
19413     ;;
19414 esac
19415 echo "$as_me:$LINENO: checking for $ac_header" >&5
19416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19418   echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420   eval "$as_ac_Header=\$ac_header_preproc"
19421 fi
19422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19424
19425 fi
19426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19427   cat >>confdefs.h <<_ACEOF
19428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19429 _ACEOF
19430
19431 fi
19432
19433 done
19434
19435 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19436 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19437 if test "${ac_cv_header_stdc+set}" = set; then
19438   echo $ECHO_N "(cached) $ECHO_C" >&6
19439 else
19440   cat >conftest.$ac_ext <<_ACEOF
19441 /* confdefs.h.  */
19442 _ACEOF
19443 cat confdefs.h >>conftest.$ac_ext
19444 cat >>conftest.$ac_ext <<_ACEOF
19445 /* end confdefs.h.  */
19446 #include <stdlib.h>
19447 #include <stdarg.h>
19448 #include <string.h>
19449 #include <float.h>
19450
19451 int
19452 main ()
19453 {
19454
19455   ;
19456   return 0;
19457 }
19458 _ACEOF
19459 rm -f conftest.$ac_objext
19460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19461   (eval $ac_compile) 2>conftest.er1
19462   ac_status=$?
19463   grep -v '^ *+' conftest.er1 >conftest.err
19464   rm -f conftest.er1
19465   cat conftest.err >&5
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); } &&
19468          { ac_try='test -z "$ac_c_werror_flag"
19469                          || test ! -s conftest.err'
19470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471   (eval $ac_try) 2>&5
19472   ac_status=$?
19473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); }; } &&
19475          { ac_try='test -s conftest.$ac_objext'
19476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477   (eval $ac_try) 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; }; then
19481   ac_cv_header_stdc=yes
19482 else
19483   echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486 ac_cv_header_stdc=no
19487 fi
19488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19489
19490 if test $ac_cv_header_stdc = yes; then
19491   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19492   cat >conftest.$ac_ext <<_ACEOF
19493 /* confdefs.h.  */
19494 _ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h.  */
19498 #include <string.h>
19499
19500 _ACEOF
19501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19502   $EGREP "memchr" >/dev/null 2>&1; then
19503   :
19504 else
19505   ac_cv_header_stdc=no
19506 fi
19507 rm -f conftest*
19508
19509 fi
19510
19511 if test $ac_cv_header_stdc = yes; then
19512   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19513   cat >conftest.$ac_ext <<_ACEOF
19514 /* confdefs.h.  */
19515 _ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h.  */
19519 #include <stdlib.h>
19520
19521 _ACEOF
19522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19523   $EGREP "free" >/dev/null 2>&1; then
19524   :
19525 else
19526   ac_cv_header_stdc=no
19527 fi
19528 rm -f conftest*
19529
19530 fi
19531
19532 if test $ac_cv_header_stdc = yes; then
19533   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19534   if test "$cross_compiling" = yes; then
19535   :
19536 else
19537   cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h.  */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h.  */
19543 #include <ctype.h>
19544 #if ((' ' & 0x0FF) == 0x020)
19545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19547 #else
19548 # define ISLOWER(c) \
19549                    (('a' <= (c) && (c) <= 'i') \
19550                      || ('j' <= (c) && (c) <= 'r') \
19551                      || ('s' <= (c) && (c) <= 'z'))
19552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19553 #endif
19554
19555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19556 int
19557 main ()
19558 {
19559   int i;
19560   for (i = 0; i < 256; i++)
19561     if (XOR (islower (i), ISLOWER (i))
19562         || toupper (i) != TOUPPER (i))
19563       exit(2);
19564   exit (0);
19565 }
19566 _ACEOF
19567 rm -f conftest$ac_exeext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19569   (eval $ac_link) 2>&5
19570   ac_status=$?
19571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574   (eval $ac_try) 2>&5
19575   ac_status=$?
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); }; }; then
19578   :
19579 else
19580   echo "$as_me: program exited with status $ac_status" >&5
19581 echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19583
19584 ( exit $ac_status )
19585 ac_cv_header_stdc=no
19586 fi
19587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19588 fi
19589 fi
19590 fi
19591 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19592 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19593 if test $ac_cv_header_stdc = yes; then
19594
19595 cat >>confdefs.h <<\_ACEOF
19596 #define STDC_HEADERS 1
19597 _ACEOF
19598
19599 fi
19600
19601 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19602 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19603 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19604   echo $ECHO_N "(cached) $ECHO_C" >&6
19605 else
19606   cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h.  */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h.  */
19612 #include <sys/types.h>
19613 int
19614 main ()
19615 {
19616 return makedev(0, 0);
19617   ;
19618   return 0;
19619 }
19620 _ACEOF
19621 rm -f conftest.$ac_objext conftest$ac_exeext
19622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19623   (eval $ac_link) 2>conftest.er1
19624   ac_status=$?
19625   grep -v '^ *+' conftest.er1 >conftest.err
19626   rm -f conftest.er1
19627   cat conftest.err >&5
19628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629   (exit $ac_status); } &&
19630          { ac_try='test -z "$ac_c_werror_flag"
19631                          || test ! -s conftest.err'
19632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633   (eval $ac_try) 2>&5
19634   ac_status=$?
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); }; } &&
19637          { ac_try='test -s conftest$ac_exeext'
19638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639   (eval $ac_try) 2>&5
19640   ac_status=$?
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); }; }; then
19643   ac_cv_header_sys_types_h_makedev=yes
19644 else
19645   echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19647
19648 ac_cv_header_sys_types_h_makedev=no
19649 fi
19650 rm -f conftest.err conftest.$ac_objext \
19651       conftest$ac_exeext conftest.$ac_ext
19652
19653 fi
19654 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19655 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19656
19657 if test $ac_cv_header_sys_types_h_makedev = no; then
19658 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19659   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19660 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19661 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19662   echo $ECHO_N "(cached) $ECHO_C" >&6
19663 fi
19664 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19665 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19666 else
19667   # Is the header compilable?
19668 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19669 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19670 cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h.  */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h.  */
19676 $ac_includes_default
19677 #include <sys/mkdev.h>
19678 _ACEOF
19679 rm -f conftest.$ac_objext
19680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19681   (eval $ac_compile) 2>conftest.er1
19682   ac_status=$?
19683   grep -v '^ *+' conftest.er1 >conftest.err
19684   rm -f conftest.er1
19685   cat conftest.err >&5
19686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687   (exit $ac_status); } &&
19688          { ac_try='test -z "$ac_c_werror_flag"
19689                          || test ! -s conftest.err'
19690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691   (eval $ac_try) 2>&5
19692   ac_status=$?
19693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694   (exit $ac_status); }; } &&
19695          { ac_try='test -s conftest.$ac_objext'
19696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697   (eval $ac_try) 2>&5
19698   ac_status=$?
19699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700   (exit $ac_status); }; }; then
19701   ac_header_compiler=yes
19702 else
19703   echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.$ac_ext >&5
19705
19706 ac_header_compiler=no
19707 fi
19708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19710 echo "${ECHO_T}$ac_header_compiler" >&6
19711
19712 # Is the header present?
19713 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19714 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19715 cat >conftest.$ac_ext <<_ACEOF
19716 /* confdefs.h.  */
19717 _ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h.  */
19721 #include <sys/mkdev.h>
19722 _ACEOF
19723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19724   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19725   ac_status=$?
19726   grep -v '^ *+' conftest.er1 >conftest.err
19727   rm -f conftest.er1
19728   cat conftest.err >&5
19729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730   (exit $ac_status); } >/dev/null; then
19731   if test -s conftest.err; then
19732     ac_cpp_err=$ac_c_preproc_warn_flag
19733     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19734   else
19735     ac_cpp_err=
19736   fi
19737 else
19738   ac_cpp_err=yes
19739 fi
19740 if test -z "$ac_cpp_err"; then
19741   ac_header_preproc=yes
19742 else
19743   echo "$as_me: failed program was:" >&5
19744 sed 's/^/| /' conftest.$ac_ext >&5
19745
19746   ac_header_preproc=no
19747 fi
19748 rm -f conftest.err conftest.$ac_ext
19749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19750 echo "${ECHO_T}$ac_header_preproc" >&6
19751
19752 # So?  What about this header?
19753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19754   yes:no: )
19755     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19756 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19757     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19758 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19759     ac_header_preproc=yes
19760     ;;
19761   no:yes:* )
19762     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19763 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19764     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
19765 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
19766     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19767 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19768     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
19769 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19770     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19771 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19772     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19773 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19774     (
19775       cat <<\_ASBOX
19776 ## ------------------------------------------ ##
19777 ## Report this to the AC_PACKAGE_NAME lists.  ##
19778 ## ------------------------------------------ ##
19779 _ASBOX
19780     ) |
19781       sed "s/^/$as_me: WARNING:     /" >&2
19782     ;;
19783 esac
19784 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19785 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19786 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19787   echo $ECHO_N "(cached) $ECHO_C" >&6
19788 else
19789   ac_cv_header_sys_mkdev_h=$ac_header_preproc
19790 fi
19791 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19792 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19793
19794 fi
19795 if test $ac_cv_header_sys_mkdev_h = yes; then
19796
19797 cat >>confdefs.h <<\_ACEOF
19798 #define MAJOR_IN_MKDEV 1
19799 _ACEOF
19800
19801 fi
19802
19803
19804
19805   if test $ac_cv_header_sys_mkdev_h = no; then
19806     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19807   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19808 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19809 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19810   echo $ECHO_N "(cached) $ECHO_C" >&6
19811 fi
19812 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19813 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19814 else
19815   # Is the header compilable?
19816 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19817 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19818 cat >conftest.$ac_ext <<_ACEOF
19819 /* confdefs.h.  */
19820 _ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h.  */
19824 $ac_includes_default
19825 #include <sys/sysmacros.h>
19826 _ACEOF
19827 rm -f conftest.$ac_objext
19828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19829   (eval $ac_compile) 2>conftest.er1
19830   ac_status=$?
19831   grep -v '^ *+' conftest.er1 >conftest.err
19832   rm -f conftest.er1
19833   cat conftest.err >&5
19834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835   (exit $ac_status); } &&
19836          { ac_try='test -z "$ac_c_werror_flag"
19837                          || test ! -s conftest.err'
19838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839   (eval $ac_try) 2>&5
19840   ac_status=$?
19841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842   (exit $ac_status); }; } &&
19843          { ac_try='test -s conftest.$ac_objext'
19844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845   (eval $ac_try) 2>&5
19846   ac_status=$?
19847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848   (exit $ac_status); }; }; then
19849   ac_header_compiler=yes
19850 else
19851   echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19853
19854 ac_header_compiler=no
19855 fi
19856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19858 echo "${ECHO_T}$ac_header_compiler" >&6
19859
19860 # Is the header present?
19861 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19862 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19863 cat >conftest.$ac_ext <<_ACEOF
19864 /* confdefs.h.  */
19865 _ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h.  */
19869 #include <sys/sysmacros.h>
19870 _ACEOF
19871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19872   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19873   ac_status=$?
19874   grep -v '^ *+' conftest.er1 >conftest.err
19875   rm -f conftest.er1
19876   cat conftest.err >&5
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); } >/dev/null; then
19879   if test -s conftest.err; then
19880     ac_cpp_err=$ac_c_preproc_warn_flag
19881     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19882   else
19883     ac_cpp_err=
19884   fi
19885 else
19886   ac_cpp_err=yes
19887 fi
19888 if test -z "$ac_cpp_err"; then
19889   ac_header_preproc=yes
19890 else
19891   echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19893
19894   ac_header_preproc=no
19895 fi
19896 rm -f conftest.err conftest.$ac_ext
19897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19898 echo "${ECHO_T}$ac_header_preproc" >&6
19899
19900 # So?  What about this header?
19901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19902   yes:no: )
19903     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19904 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19905     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19906 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19907     ac_header_preproc=yes
19908     ;;
19909   no:yes:* )
19910     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19911 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19912     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
19913 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
19914     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19915 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19916     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
19917 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19918     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19919 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19920     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19921 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19922     (
19923       cat <<\_ASBOX
19924 ## ------------------------------------------ ##
19925 ## Report this to the AC_PACKAGE_NAME lists.  ##
19926 ## ------------------------------------------ ##
19927 _ASBOX
19928     ) |
19929       sed "s/^/$as_me: WARNING:     /" >&2
19930     ;;
19931 esac
19932 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19933 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19934 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19935   echo $ECHO_N "(cached) $ECHO_C" >&6
19936 else
19937   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19938 fi
19939 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19940 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19941
19942 fi
19943 if test $ac_cv_header_sys_sysmacros_h = yes; then
19944
19945 cat >>confdefs.h <<\_ACEOF
19946 #define MAJOR_IN_SYSMACROS 1
19947 _ACEOF
19948
19949 fi
19950
19951
19952   fi
19953 fi
19954
19955
19956
19957
19958
19959
19960 ac_header_dirent=no
19961 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19962   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19963 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19964 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19966   echo $ECHO_N "(cached) $ECHO_C" >&6
19967 else
19968   cat >conftest.$ac_ext <<_ACEOF
19969 /* confdefs.h.  */
19970 _ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h.  */
19974 #include <sys/types.h>
19975 #include <$ac_hdr>
19976
19977 int
19978 main ()
19979 {
19980 if ((DIR *) 0)
19981 return 0;
19982   ;
19983   return 0;
19984 }
19985 _ACEOF
19986 rm -f conftest.$ac_objext
19987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19988   (eval $ac_compile) 2>conftest.er1
19989   ac_status=$?
19990   grep -v '^ *+' conftest.er1 >conftest.err
19991   rm -f conftest.er1
19992   cat conftest.err >&5
19993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); } &&
19995          { ac_try='test -z "$ac_c_werror_flag"
19996                          || test ! -s conftest.err'
19997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998   (eval $ac_try) 2>&5
19999   ac_status=$?
20000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001   (exit $ac_status); }; } &&
20002          { ac_try='test -s conftest.$ac_objext'
20003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004   (eval $ac_try) 2>&5
20005   ac_status=$?
20006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007   (exit $ac_status); }; }; then
20008   eval "$as_ac_Header=yes"
20009 else
20010   echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20012
20013 eval "$as_ac_Header=no"
20014 fi
20015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20016 fi
20017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20020   cat >>confdefs.h <<_ACEOF
20021 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20022 _ACEOF
20023
20024 ac_header_dirent=$ac_hdr; break
20025 fi
20026
20027 done
20028 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20029 if test $ac_header_dirent = dirent.h; then
20030   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20031 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20032 if test "${ac_cv_search_opendir+set}" = set; then
20033   echo $ECHO_N "(cached) $ECHO_C" >&6
20034 else
20035   ac_func_search_save_LIBS=$LIBS
20036 ac_cv_search_opendir=no
20037 cat >conftest.$ac_ext <<_ACEOF
20038 /* confdefs.h.  */
20039 _ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h.  */
20043
20044 /* Override any gcc2 internal prototype to avoid an error.  */
20045 #ifdef __cplusplus
20046 extern "C"
20047 #endif
20048 /* We use char because int might match the return type of a gcc2
20049    builtin and then its argument prototype would still apply.  */
20050 char opendir ();
20051 int
20052 main ()
20053 {
20054 opendir ();
20055   ;
20056   return 0;
20057 }
20058 _ACEOF
20059 rm -f conftest.$ac_objext conftest$ac_exeext
20060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20061   (eval $ac_link) 2>conftest.er1
20062   ac_status=$?
20063   grep -v '^ *+' conftest.er1 >conftest.err
20064   rm -f conftest.er1
20065   cat conftest.err >&5
20066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067   (exit $ac_status); } &&
20068          { ac_try='test -z "$ac_c_werror_flag"
20069                          || test ! -s conftest.err'
20070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20071   (eval $ac_try) 2>&5
20072   ac_status=$?
20073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074   (exit $ac_status); }; } &&
20075          { ac_try='test -s conftest$ac_exeext'
20076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077   (eval $ac_try) 2>&5
20078   ac_status=$?
20079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); }; }; then
20081   ac_cv_search_opendir="none required"
20082 else
20083   echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20085
20086 fi
20087 rm -f conftest.err conftest.$ac_objext \
20088       conftest$ac_exeext conftest.$ac_ext
20089 if test "$ac_cv_search_opendir" = no; then
20090   for ac_lib in dir; do
20091     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20092     cat >conftest.$ac_ext <<_ACEOF
20093 /* confdefs.h.  */
20094 _ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h.  */
20098
20099 /* Override any gcc2 internal prototype to avoid an error.  */
20100 #ifdef __cplusplus
20101 extern "C"
20102 #endif
20103 /* We use char because int might match the return type of a gcc2
20104    builtin and then its argument prototype would still apply.  */
20105 char opendir ();
20106 int
20107 main ()
20108 {
20109 opendir ();
20110   ;
20111   return 0;
20112 }
20113 _ACEOF
20114 rm -f conftest.$ac_objext conftest$ac_exeext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20116   (eval $ac_link) 2>conftest.er1
20117   ac_status=$?
20118   grep -v '^ *+' conftest.er1 >conftest.err
20119   rm -f conftest.er1
20120   cat conftest.err >&5
20121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122   (exit $ac_status); } &&
20123          { ac_try='test -z "$ac_c_werror_flag"
20124                          || test ! -s conftest.err'
20125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126   (eval $ac_try) 2>&5
20127   ac_status=$?
20128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); }; } &&
20130          { ac_try='test -s conftest$ac_exeext'
20131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132   (eval $ac_try) 2>&5
20133   ac_status=$?
20134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135   (exit $ac_status); }; }; then
20136   ac_cv_search_opendir="-l$ac_lib"
20137 break
20138 else
20139   echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20141
20142 fi
20143 rm -f conftest.err conftest.$ac_objext \
20144       conftest$ac_exeext conftest.$ac_ext
20145   done
20146 fi
20147 LIBS=$ac_func_search_save_LIBS
20148 fi
20149 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20150 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20151 if test "$ac_cv_search_opendir" != no; then
20152   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20153
20154 fi
20155
20156 else
20157   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20158 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20159 if test "${ac_cv_search_opendir+set}" = set; then
20160   echo $ECHO_N "(cached) $ECHO_C" >&6
20161 else
20162   ac_func_search_save_LIBS=$LIBS
20163 ac_cv_search_opendir=no
20164 cat >conftest.$ac_ext <<_ACEOF
20165 /* confdefs.h.  */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h.  */
20170
20171 /* Override any gcc2 internal prototype to avoid an error.  */
20172 #ifdef __cplusplus
20173 extern "C"
20174 #endif
20175 /* We use char because int might match the return type of a gcc2
20176    builtin and then its argument prototype would still apply.  */
20177 char opendir ();
20178 int
20179 main ()
20180 {
20181 opendir ();
20182   ;
20183   return 0;
20184 }
20185 _ACEOF
20186 rm -f conftest.$ac_objext conftest$ac_exeext
20187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20188   (eval $ac_link) 2>conftest.er1
20189   ac_status=$?
20190   grep -v '^ *+' conftest.er1 >conftest.err
20191   rm -f conftest.er1
20192   cat conftest.err >&5
20193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194   (exit $ac_status); } &&
20195          { ac_try='test -z "$ac_c_werror_flag"
20196                          || test ! -s conftest.err'
20197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198   (eval $ac_try) 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; } &&
20202          { ac_try='test -s conftest$ac_exeext'
20203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204   (eval $ac_try) 2>&5
20205   ac_status=$?
20206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207   (exit $ac_status); }; }; then
20208   ac_cv_search_opendir="none required"
20209 else
20210   echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20212
20213 fi
20214 rm -f conftest.err conftest.$ac_objext \
20215       conftest$ac_exeext conftest.$ac_ext
20216 if test "$ac_cv_search_opendir" = no; then
20217   for ac_lib in x; do
20218     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20219     cat >conftest.$ac_ext <<_ACEOF
20220 /* confdefs.h.  */
20221 _ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h.  */
20225
20226 /* Override any gcc2 internal prototype to avoid an error.  */
20227 #ifdef __cplusplus
20228 extern "C"
20229 #endif
20230 /* We use char because int might match the return type of a gcc2
20231    builtin and then its argument prototype would still apply.  */
20232 char opendir ();
20233 int
20234 main ()
20235 {
20236 opendir ();
20237   ;
20238   return 0;
20239 }
20240 _ACEOF
20241 rm -f conftest.$ac_objext conftest$ac_exeext
20242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20243   (eval $ac_link) 2>conftest.er1
20244   ac_status=$?
20245   grep -v '^ *+' conftest.er1 >conftest.err
20246   rm -f conftest.er1
20247   cat conftest.err >&5
20248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249   (exit $ac_status); } &&
20250          { ac_try='test -z "$ac_c_werror_flag"
20251                          || test ! -s conftest.err'
20252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253   (eval $ac_try) 2>&5
20254   ac_status=$?
20255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256   (exit $ac_status); }; } &&
20257          { ac_try='test -s conftest$ac_exeext'
20258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259   (eval $ac_try) 2>&5
20260   ac_status=$?
20261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262   (exit $ac_status); }; }; then
20263   ac_cv_search_opendir="-l$ac_lib"
20264 break
20265 else
20266   echo "$as_me: failed program was:" >&5
20267 sed 's/^/| /' conftest.$ac_ext >&5
20268
20269 fi
20270 rm -f conftest.err conftest.$ac_objext \
20271       conftest$ac_exeext conftest.$ac_ext
20272   done
20273 fi
20274 LIBS=$ac_func_search_save_LIBS
20275 fi
20276 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20277 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20278 if test "$ac_cv_search_opendir" != no; then
20279   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20280
20281 fi
20282
20283 fi
20284
20285 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20286 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20287 if test "${ac_cv_header_stat_broken+set}" = set; then
20288   echo $ECHO_N "(cached) $ECHO_C" >&6
20289 else
20290   cat >conftest.$ac_ext <<_ACEOF
20291 /* confdefs.h.  */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h.  */
20296 #include <sys/types.h>
20297 #include <sys/stat.h>
20298
20299 #if defined(S_ISBLK) && defined(S_IFDIR)
20300 # if S_ISBLK (S_IFDIR)
20301 You lose.
20302 # endif
20303 #endif
20304
20305 #if defined(S_ISBLK) && defined(S_IFCHR)
20306 # if S_ISBLK (S_IFCHR)
20307 You lose.
20308 # endif
20309 #endif
20310
20311 #if defined(S_ISLNK) && defined(S_IFREG)
20312 # if S_ISLNK (S_IFREG)
20313 You lose.
20314 # endif
20315 #endif
20316
20317 #if defined(S_ISSOCK) && defined(S_IFREG)
20318 # if S_ISSOCK (S_IFREG)
20319 You lose.
20320 # endif
20321 #endif
20322
20323 _ACEOF
20324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20325   $EGREP "You lose" >/dev/null 2>&1; then
20326   ac_cv_header_stat_broken=yes
20327 else
20328   ac_cv_header_stat_broken=no
20329 fi
20330 rm -f conftest*
20331
20332 fi
20333 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20334 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20335 if test $ac_cv_header_stat_broken = yes; then
20336
20337 cat >>confdefs.h <<\_ACEOF
20338 #define STAT_MACROS_BROKEN 1
20339 _ACEOF
20340
20341 fi
20342
20343 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20344 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20345 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20346   echo $ECHO_N "(cached) $ECHO_C" >&6
20347 else
20348   cat >conftest.$ac_ext <<_ACEOF
20349 /* confdefs.h.  */
20350 _ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h.  */
20354 #include <sys/types.h>
20355 #include <sys/wait.h>
20356 #ifndef WEXITSTATUS
20357 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20358 #endif
20359 #ifndef WIFEXITED
20360 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20361 #endif
20362
20363 int
20364 main ()
20365 {
20366   int s;
20367   wait (&s);
20368   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20369   ;
20370   return 0;
20371 }
20372 _ACEOF
20373 rm -f conftest.$ac_objext
20374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20375   (eval $ac_compile) 2>conftest.er1
20376   ac_status=$?
20377   grep -v '^ *+' conftest.er1 >conftest.err
20378   rm -f conftest.er1
20379   cat conftest.err >&5
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); } &&
20382          { ac_try='test -z "$ac_c_werror_flag"
20383                          || test ! -s conftest.err'
20384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385   (eval $ac_try) 2>&5
20386   ac_status=$?
20387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388   (exit $ac_status); }; } &&
20389          { ac_try='test -s conftest.$ac_objext'
20390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391   (eval $ac_try) 2>&5
20392   ac_status=$?
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); }; }; then
20395   ac_cv_header_sys_wait_h=yes
20396 else
20397   echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20399
20400 ac_cv_header_sys_wait_h=no
20401 fi
20402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20403 fi
20404 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20405 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20406 if test $ac_cv_header_sys_wait_h = yes; then
20407
20408 cat >>confdefs.h <<\_ACEOF
20409 #define HAVE_SYS_WAIT_H 1
20410 _ACEOF
20411
20412 fi
20413
20414 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20415 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20416 if test "${ac_cv_header_time+set}" = set; then
20417   echo $ECHO_N "(cached) $ECHO_C" >&6
20418 else
20419   cat >conftest.$ac_ext <<_ACEOF
20420 /* confdefs.h.  */
20421 _ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h.  */
20425 #include <sys/types.h>
20426 #include <sys/time.h>
20427 #include <time.h>
20428
20429 int
20430 main ()
20431 {
20432 if ((struct tm *) 0)
20433 return 0;
20434   ;
20435   return 0;
20436 }
20437 _ACEOF
20438 rm -f conftest.$ac_objext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20440   (eval $ac_compile) 2>conftest.er1
20441   ac_status=$?
20442   grep -v '^ *+' conftest.er1 >conftest.err
20443   rm -f conftest.er1
20444   cat conftest.err >&5
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); } &&
20447          { ac_try='test -z "$ac_c_werror_flag"
20448                          || test ! -s conftest.err'
20449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450   (eval $ac_try) 2>&5
20451   ac_status=$?
20452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453   (exit $ac_status); }; } &&
20454          { ac_try='test -s conftest.$ac_objext'
20455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456   (eval $ac_try) 2>&5
20457   ac_status=$?
20458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459   (exit $ac_status); }; }; then
20460   ac_cv_header_time=yes
20461 else
20462   echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20464
20465 ac_cv_header_time=no
20466 fi
20467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20468 fi
20469 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20470 echo "${ECHO_T}$ac_cv_header_time" >&6
20471 if test $ac_cv_header_time = yes; then
20472
20473 cat >>confdefs.h <<\_ACEOF
20474 #define TIME_WITH_SYS_TIME 1
20475 _ACEOF
20476
20477 fi
20478
20479
20480 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20481 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20482 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20483   echo $ECHO_N "(cached) $ECHO_C" >&6
20484 else
20485   cat >conftest.$ac_ext <<_ACEOF
20486 /* confdefs.h.  */
20487 _ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h.  */
20491 $ac_includes_default
20492 int
20493 main ()
20494 {
20495 static struct stat ac_aggr;
20496 if (ac_aggr.st_blksize)
20497 return 0;
20498   ;
20499   return 0;
20500 }
20501 _ACEOF
20502 rm -f conftest.$ac_objext
20503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20504   (eval $ac_compile) 2>conftest.er1
20505   ac_status=$?
20506   grep -v '^ *+' conftest.er1 >conftest.err
20507   rm -f conftest.er1
20508   cat conftest.err >&5
20509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510   (exit $ac_status); } &&
20511          { ac_try='test -z "$ac_c_werror_flag"
20512                          || test ! -s conftest.err'
20513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514   (eval $ac_try) 2>&5
20515   ac_status=$?
20516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517   (exit $ac_status); }; } &&
20518          { ac_try='test -s conftest.$ac_objext'
20519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520   (eval $ac_try) 2>&5
20521   ac_status=$?
20522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523   (exit $ac_status); }; }; then
20524   ac_cv_member_struct_stat_st_blksize=yes
20525 else
20526   echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20528
20529 cat >conftest.$ac_ext <<_ACEOF
20530 /* confdefs.h.  */
20531 _ACEOF
20532 cat confdefs.h >>conftest.$ac_ext
20533 cat >>conftest.$ac_ext <<_ACEOF
20534 /* end confdefs.h.  */
20535 $ac_includes_default
20536 int
20537 main ()
20538 {
20539 static struct stat ac_aggr;
20540 if (sizeof ac_aggr.st_blksize)
20541 return 0;
20542   ;
20543   return 0;
20544 }
20545 _ACEOF
20546 rm -f conftest.$ac_objext
20547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20548   (eval $ac_compile) 2>conftest.er1
20549   ac_status=$?
20550   grep -v '^ *+' conftest.er1 >conftest.err
20551   rm -f conftest.er1
20552   cat conftest.err >&5
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); } &&
20555          { ac_try='test -z "$ac_c_werror_flag"
20556                          || test ! -s conftest.err'
20557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558   (eval $ac_try) 2>&5
20559   ac_status=$?
20560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561   (exit $ac_status); }; } &&
20562          { ac_try='test -s conftest.$ac_objext'
20563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564   (eval $ac_try) 2>&5
20565   ac_status=$?
20566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567   (exit $ac_status); }; }; then
20568   ac_cv_member_struct_stat_st_blksize=yes
20569 else
20570   echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20572
20573 ac_cv_member_struct_stat_st_blksize=no
20574 fi
20575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20576 fi
20577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20578 fi
20579 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20580 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20581 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20582
20583 cat >>confdefs.h <<_ACEOF
20584 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20585 _ACEOF
20586
20587
20588 cat >>confdefs.h <<\_ACEOF
20589 #define HAVE_ST_BLKSIZE 1
20590 _ACEOF
20591
20592 fi
20593
20594
20595 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20596 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20597 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20598   echo $ECHO_N "(cached) $ECHO_C" >&6
20599 else
20600   cat >conftest.$ac_ext <<_ACEOF
20601 /* confdefs.h.  */
20602 _ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h.  */
20606 $ac_includes_default
20607 int
20608 main ()
20609 {
20610 static struct stat ac_aggr;
20611 if (ac_aggr.st_blocks)
20612 return 0;
20613   ;
20614   return 0;
20615 }
20616 _ACEOF
20617 rm -f conftest.$ac_objext
20618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20619   (eval $ac_compile) 2>conftest.er1
20620   ac_status=$?
20621   grep -v '^ *+' conftest.er1 >conftest.err
20622   rm -f conftest.er1
20623   cat conftest.err >&5
20624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625   (exit $ac_status); } &&
20626          { ac_try='test -z "$ac_c_werror_flag"
20627                          || test ! -s conftest.err'
20628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629   (eval $ac_try) 2>&5
20630   ac_status=$?
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); }; } &&
20633          { ac_try='test -s conftest.$ac_objext'
20634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635   (eval $ac_try) 2>&5
20636   ac_status=$?
20637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638   (exit $ac_status); }; }; then
20639   ac_cv_member_struct_stat_st_blocks=yes
20640 else
20641   echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20643
20644 cat >conftest.$ac_ext <<_ACEOF
20645 /* confdefs.h.  */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h.  */
20650 $ac_includes_default
20651 int
20652 main ()
20653 {
20654 static struct stat ac_aggr;
20655 if (sizeof ac_aggr.st_blocks)
20656 return 0;
20657   ;
20658   return 0;
20659 }
20660 _ACEOF
20661 rm -f conftest.$ac_objext
20662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20663   (eval $ac_compile) 2>conftest.er1
20664   ac_status=$?
20665   grep -v '^ *+' conftest.er1 >conftest.err
20666   rm -f conftest.er1
20667   cat conftest.err >&5
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); } &&
20670          { ac_try='test -z "$ac_c_werror_flag"
20671                          || test ! -s conftest.err'
20672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20673   (eval $ac_try) 2>&5
20674   ac_status=$?
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); }; } &&
20677          { ac_try='test -s conftest.$ac_objext'
20678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679   (eval $ac_try) 2>&5
20680   ac_status=$?
20681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682   (exit $ac_status); }; }; then
20683   ac_cv_member_struct_stat_st_blocks=yes
20684 else
20685   echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20687
20688 ac_cv_member_struct_stat_st_blocks=no
20689 fi
20690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20691 fi
20692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20693 fi
20694 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20695 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20696 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20697
20698 cat >>confdefs.h <<_ACEOF
20699 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20700 _ACEOF
20701
20702
20703 cat >>confdefs.h <<\_ACEOF
20704 #define HAVE_ST_BLOCKS 1
20705 _ACEOF
20706
20707 else
20708   case $LIBOBJS in
20709     "fileblocks.$ac_objext"   | \
20710   *" fileblocks.$ac_objext"   | \
20711     "fileblocks.$ac_objext "* | \
20712   *" fileblocks.$ac_objext "* ) ;;
20713   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20714 esac
20715
20716 fi
20717
20718
20719 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20720 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20721 if test "${ac_cv_struct_tm+set}" = set; then
20722   echo $ECHO_N "(cached) $ECHO_C" >&6
20723 else
20724   cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h.  */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h.  */
20730 #include <sys/types.h>
20731 #include <time.h>
20732
20733 int
20734 main ()
20735 {
20736 struct tm *tp; tp->tm_sec;
20737   ;
20738   return 0;
20739 }
20740 _ACEOF
20741 rm -f conftest.$ac_objext
20742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20743   (eval $ac_compile) 2>conftest.er1
20744   ac_status=$?
20745   grep -v '^ *+' conftest.er1 >conftest.err
20746   rm -f conftest.er1
20747   cat conftest.err >&5
20748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749   (exit $ac_status); } &&
20750          { ac_try='test -z "$ac_c_werror_flag"
20751                          || test ! -s conftest.err'
20752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20753   (eval $ac_try) 2>&5
20754   ac_status=$?
20755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756   (exit $ac_status); }; } &&
20757          { ac_try='test -s conftest.$ac_objext'
20758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20759   (eval $ac_try) 2>&5
20760   ac_status=$?
20761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762   (exit $ac_status); }; }; then
20763   ac_cv_struct_tm=time.h
20764 else
20765   echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20767
20768 ac_cv_struct_tm=sys/time.h
20769 fi
20770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20771 fi
20772 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20773 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20774 if test $ac_cv_struct_tm = sys/time.h; then
20775
20776 cat >>confdefs.h <<\_ACEOF
20777 #define TM_IN_SYS_TIME 1
20778 _ACEOF
20779
20780 fi
20781
20782 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20783 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20784 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20785   echo $ECHO_N "(cached) $ECHO_C" >&6
20786 else
20787   cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h.  */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h.  */
20793 #include <sys/types.h>
20794 #include <$ac_cv_struct_tm>
20795
20796
20797 int
20798 main ()
20799 {
20800 static struct tm ac_aggr;
20801 if (ac_aggr.tm_zone)
20802 return 0;
20803   ;
20804   return 0;
20805 }
20806 _ACEOF
20807 rm -f conftest.$ac_objext
20808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20809   (eval $ac_compile) 2>conftest.er1
20810   ac_status=$?
20811   grep -v '^ *+' conftest.er1 >conftest.err
20812   rm -f conftest.er1
20813   cat conftest.err >&5
20814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815   (exit $ac_status); } &&
20816          { ac_try='test -z "$ac_c_werror_flag"
20817                          || test ! -s conftest.err'
20818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20819   (eval $ac_try) 2>&5
20820   ac_status=$?
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); }; } &&
20823          { ac_try='test -s conftest.$ac_objext'
20824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825   (eval $ac_try) 2>&5
20826   ac_status=$?
20827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828   (exit $ac_status); }; }; then
20829   ac_cv_member_struct_tm_tm_zone=yes
20830 else
20831   echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20833
20834 cat >conftest.$ac_ext <<_ACEOF
20835 /* confdefs.h.  */
20836 _ACEOF
20837 cat confdefs.h >>conftest.$ac_ext
20838 cat >>conftest.$ac_ext <<_ACEOF
20839 /* end confdefs.h.  */
20840 #include <sys/types.h>
20841 #include <$ac_cv_struct_tm>
20842
20843
20844 int
20845 main ()
20846 {
20847 static struct tm ac_aggr;
20848 if (sizeof ac_aggr.tm_zone)
20849 return 0;
20850   ;
20851   return 0;
20852 }
20853 _ACEOF
20854 rm -f conftest.$ac_objext
20855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20856   (eval $ac_compile) 2>conftest.er1
20857   ac_status=$?
20858   grep -v '^ *+' conftest.er1 >conftest.err
20859   rm -f conftest.er1
20860   cat conftest.err >&5
20861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862   (exit $ac_status); } &&
20863          { ac_try='test -z "$ac_c_werror_flag"
20864                          || test ! -s conftest.err'
20865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866   (eval $ac_try) 2>&5
20867   ac_status=$?
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); }; } &&
20870          { ac_try='test -s conftest.$ac_objext'
20871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872   (eval $ac_try) 2>&5
20873   ac_status=$?
20874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875   (exit $ac_status); }; }; then
20876   ac_cv_member_struct_tm_tm_zone=yes
20877 else
20878   echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20880
20881 ac_cv_member_struct_tm_tm_zone=no
20882 fi
20883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20884 fi
20885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20886 fi
20887 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20888 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20889 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20890
20891 cat >>confdefs.h <<_ACEOF
20892 #define HAVE_STRUCT_TM_TM_ZONE 1
20893 _ACEOF
20894
20895
20896 fi
20897
20898 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20899
20900 cat >>confdefs.h <<\_ACEOF
20901 #define HAVE_TM_ZONE 1
20902 _ACEOF
20903
20904 else
20905   echo "$as_me:$LINENO: checking for tzname" >&5
20906 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20907 if test "${ac_cv_var_tzname+set}" = set; then
20908   echo $ECHO_N "(cached) $ECHO_C" >&6
20909 else
20910   cat >conftest.$ac_ext <<_ACEOF
20911 /* confdefs.h.  */
20912 _ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h.  */
20916 #include <time.h>
20917 #ifndef tzname /* For SGI.  */
20918 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
20919 #endif
20920
20921 int
20922 main ()
20923 {
20924 atoi(*tzname);
20925   ;
20926   return 0;
20927 }
20928 _ACEOF
20929 rm -f conftest.$ac_objext conftest$ac_exeext
20930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20931   (eval $ac_link) 2>conftest.er1
20932   ac_status=$?
20933   grep -v '^ *+' conftest.er1 >conftest.err
20934   rm -f conftest.er1
20935   cat conftest.err >&5
20936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937   (exit $ac_status); } &&
20938          { ac_try='test -z "$ac_c_werror_flag"
20939                          || test ! -s conftest.err'
20940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20941   (eval $ac_try) 2>&5
20942   ac_status=$?
20943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944   (exit $ac_status); }; } &&
20945          { ac_try='test -s conftest$ac_exeext'
20946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947   (eval $ac_try) 2>&5
20948   ac_status=$?
20949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950   (exit $ac_status); }; }; then
20951   ac_cv_var_tzname=yes
20952 else
20953   echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20955
20956 ac_cv_var_tzname=no
20957 fi
20958 rm -f conftest.err conftest.$ac_objext \
20959       conftest$ac_exeext conftest.$ac_ext
20960 fi
20961 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20962 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20963   if test $ac_cv_var_tzname = yes; then
20964
20965 cat >>confdefs.h <<\_ACEOF
20966 #define HAVE_TZNAME 1
20967 _ACEOF
20968
20969   fi
20970 fi
20971
20972
20973 echo "$as_me:$LINENO: checking for utime.h" >&5
20974 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20975 if test "${ba_cv_header_utime_h+set}" = set; then
20976   echo $ECHO_N "(cached) $ECHO_C" >&6
20977 else
20978   cat >conftest.$ac_ext <<_ACEOF
20979 /* confdefs.h.  */
20980 _ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h.  */
20984
20985 #include <sys/types.h>
20986 #include <utime.h>
20987 int
20988 main ()
20989 {
20990 struct utimbuf foo
20991   ;
20992   return 0;
20993 }
20994 _ACEOF
20995 rm -f conftest.$ac_objext
20996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20997   (eval $ac_compile) 2>conftest.er1
20998   ac_status=$?
20999   grep -v '^ *+' conftest.er1 >conftest.err
21000   rm -f conftest.er1
21001   cat conftest.err >&5
21002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003   (exit $ac_status); } &&
21004          { ac_try='test -z "$ac_c_werror_flag"
21005                          || test ! -s conftest.err'
21006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007   (eval $ac_try) 2>&5
21008   ac_status=$?
21009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010   (exit $ac_status); }; } &&
21011          { ac_try='test -s conftest.$ac_objext'
21012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013   (eval $ac_try) 2>&5
21014   ac_status=$?
21015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016   (exit $ac_status); }; }; then
21017   ba_cv_header_utime_h=yes
21018 else
21019   echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21021
21022 ba_cv_header_utime_h=no
21023 fi
21024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21025 fi
21026 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21027 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
21028 test $ba_cv_header_utime_h = yes &&
21029 cat >>confdefs.h <<\_ACEOF
21030 #define HAVE_UTIME_H 1
21031 _ACEOF
21032
21033
21034 echo "$as_me:$LINENO: checking for socklen_t" >&5
21035 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21036 if test "${ba_cv_header_socklen_t+set}" = set; then
21037   echo $ECHO_N "(cached) $ECHO_C" >&6
21038 else
21039   cat >conftest.$ac_ext <<_ACEOF
21040 /* confdefs.h.  */
21041 _ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h.  */
21045
21046 #include <sys/types.h>
21047 #include <sys/socket.h>
21048 int
21049 main ()
21050 {
21051 socklen_t x
21052   ;
21053   return 0;
21054 }
21055 _ACEOF
21056 rm -f conftest.$ac_objext
21057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21058   (eval $ac_compile) 2>conftest.er1
21059   ac_status=$?
21060   grep -v '^ *+' conftest.er1 >conftest.err
21061   rm -f conftest.er1
21062   cat conftest.err >&5
21063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064   (exit $ac_status); } &&
21065          { ac_try='test -z "$ac_c_werror_flag"
21066                          || test ! -s conftest.err'
21067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21068   (eval $ac_try) 2>&5
21069   ac_status=$?
21070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071   (exit $ac_status); }; } &&
21072          { ac_try='test -s conftest.$ac_objext'
21073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074   (eval $ac_try) 2>&5
21075   ac_status=$?
21076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077   (exit $ac_status); }; }; then
21078   ba_cv_header_socklen_t=yes
21079 else
21080   echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21082
21083 ba_cv_header_socklen_t=no
21084 fi
21085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21086 fi
21087 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21088 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
21089 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21090 #define HAVE_SOCKLEN_T 1
21091 _ACEOF
21092
21093
21094 echo "$as_me:$LINENO: checking for bigendian" >&5
21095 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
21096 if test "${ba_cv_bigendian+set}" = set; then
21097   echo $ECHO_N "(cached) $ECHO_C" >&6
21098 else
21099   if test "$cross_compiling" = yes; then
21100   ba_cv_bigendian=no
21101 else
21102   cat >conftest.$ac_ext <<_ACEOF
21103 /* confdefs.h.  */
21104 _ACEOF
21105 cat confdefs.h >>conftest.$ac_ext
21106 cat >>conftest.$ac_ext <<_ACEOF
21107 /* end confdefs.h.  */
21108 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21109 _ACEOF
21110 rm -f conftest$ac_exeext
21111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21112   (eval $ac_link) 2>&5
21113   ac_status=$?
21114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117   (eval $ac_try) 2>&5
21118   ac_status=$?
21119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120   (exit $ac_status); }; }; then
21121   ba_cv_bigendian=yes
21122 else
21123   echo "$as_me: program exited with status $ac_status" >&5
21124 echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21126
21127 ( exit $ac_status )
21128 ba_cv_bigendian=no
21129 fi
21130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21131 fi
21132 fi
21133 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21134 echo "${ECHO_T}$ba_cv_bigendian" >&6
21135 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21136 #define HAVE_BIGENDIAN 1
21137 _ACEOF
21138
21139
21140 ac_ext=cc
21141 ac_cpp='$CXXCPP $CPPFLAGS'
21142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21145
21146
21147 echo "$as_me:$LINENO: checking for typeof" >&5
21148 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
21149 if test "${ba_cv_have_typeof+set}" = set; then
21150   echo $ECHO_N "(cached) $ECHO_C" >&6
21151 else
21152   if test "$cross_compiling" = yes; then
21153   ba_cv_have_typeof=no
21154 else
21155   cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h.  */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h.  */
21161 main(){char *a = 0; a = (typeof a)a;}
21162 _ACEOF
21163 rm -f conftest$ac_exeext
21164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21165   (eval $ac_link) 2>&5
21166   ac_status=$?
21167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170   (eval $ac_try) 2>&5
21171   ac_status=$?
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); }; }; then
21174   ba_cv_have_typeof=yes
21175 else
21176   echo "$as_me: program exited with status $ac_status" >&5
21177 echo "$as_me: failed program was:" >&5
21178 sed 's/^/| /' conftest.$ac_ext >&5
21179
21180 ( exit $ac_status )
21181 ba_cv_have_typeof=no
21182 fi
21183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21184 fi
21185 fi
21186 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21187 echo "${ECHO_T}$ba_cv_have_typeof" >&6
21188 test $ba_cv_have_typeof = yes &&
21189 cat >>confdefs.h <<\_ACEOF
21190 #define HAVE_TYPEOF 1
21191 _ACEOF
21192
21193 ac_ext=c
21194 ac_cpp='$CPP $CPPFLAGS'
21195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21198
21199
21200 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21201 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21202 if test "${ac_cv_c_const+set}" = set; then
21203   echo $ECHO_N "(cached) $ECHO_C" >&6
21204 else
21205   cat >conftest.$ac_ext <<_ACEOF
21206 /* confdefs.h.  */
21207 _ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h.  */
21211
21212 int
21213 main ()
21214 {
21215 /* FIXME: Include the comments suggested by Paul. */
21216 #ifndef __cplusplus
21217   /* Ultrix mips cc rejects this.  */
21218   typedef int charset[2];
21219   const charset x;
21220   /* SunOS 4.1.1 cc rejects this.  */
21221   char const *const *ccp;
21222   char **p;
21223   /* NEC SVR4.0.2 mips cc rejects this.  */
21224   struct point {int x, y;};
21225   static struct point const zero = {0,0};
21226   /* AIX XL C 1.02.0.0 rejects this.
21227      It does not let you subtract one const X* pointer from another in
21228      an arm of an if-expression whose if-part is not a constant
21229      expression */
21230   const char *g = "string";
21231   ccp = &g + (g ? g-g : 0);
21232   /* HPUX 7.0 cc rejects these. */
21233   ++ccp;
21234   p = (char**) ccp;
21235   ccp = (char const *const *) p;
21236   { /* SCO 3.2v4 cc rejects this.  */
21237     char *t;
21238     char const *s = 0 ? (char *) 0 : (char const *) 0;
21239
21240     *t++ = 0;
21241   }
21242   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21243     int x[] = {25, 17};
21244     const int *foo = &x[0];
21245     ++foo;
21246   }
21247   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21248     typedef const int *iptr;
21249     iptr p = 0;
21250     ++p;
21251   }
21252   { /* AIX XL C 1.02.0.0 rejects this saying
21253        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21254     struct s { int j; const int *ap[3]; };
21255     struct s *b; b->j = 5;
21256   }
21257   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21258     const int foo = 10;
21259   }
21260 #endif
21261
21262   ;
21263   return 0;
21264 }
21265 _ACEOF
21266 rm -f conftest.$ac_objext
21267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21268   (eval $ac_compile) 2>conftest.er1
21269   ac_status=$?
21270   grep -v '^ *+' conftest.er1 >conftest.err
21271   rm -f conftest.er1
21272   cat conftest.err >&5
21273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274   (exit $ac_status); } &&
21275          { ac_try='test -z "$ac_c_werror_flag"
21276                          || test ! -s conftest.err'
21277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278   (eval $ac_try) 2>&5
21279   ac_status=$?
21280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281   (exit $ac_status); }; } &&
21282          { ac_try='test -s conftest.$ac_objext'
21283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21284   (eval $ac_try) 2>&5
21285   ac_status=$?
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); }; }; then
21288   ac_cv_c_const=yes
21289 else
21290   echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21292
21293 ac_cv_c_const=no
21294 fi
21295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21296 fi
21297 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21298 echo "${ECHO_T}$ac_cv_c_const" >&6
21299 if test $ac_cv_c_const = no; then
21300
21301 cat >>confdefs.h <<\_ACEOF
21302 #define const
21303 _ACEOF
21304
21305 fi
21306
21307
21308
21309 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21310 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21311 fstype=no
21312 # The order of these tests is important.
21313 cat >conftest.$ac_ext <<_ACEOF
21314 /* confdefs.h.  */
21315 _ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h.  */
21319 #include <sys/statvfs.h>
21320 #include <sys/fstyp.h>
21321 _ACEOF
21322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21323   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21324   ac_status=$?
21325   grep -v '^ *+' conftest.er1 >conftest.err
21326   rm -f conftest.er1
21327   cat conftest.err >&5
21328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329   (exit $ac_status); } >/dev/null; then
21330   if test -s conftest.err; then
21331     ac_cpp_err=$ac_c_preproc_warn_flag
21332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21333   else
21334     ac_cpp_err=
21335   fi
21336 else
21337   ac_cpp_err=yes
21338 fi
21339 if test -z "$ac_cpp_err"; then
21340   cat >>confdefs.h <<\_ACEOF
21341 #define FSTYPE_STATVFS 1
21342 _ACEOF
21343  fstype=SVR4
21344 else
21345   echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21347
21348
21349 fi
21350 rm -f conftest.err conftest.$ac_ext
21351 if test $fstype = no; then
21352 cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h.  */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h.  */
21358 #include <sys/statfs.h>
21359 #include <sys/fstyp.h>
21360 _ACEOF
21361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21362   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21363   ac_status=$?
21364   grep -v '^ *+' conftest.er1 >conftest.err
21365   rm -f conftest.er1
21366   cat conftest.err >&5
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); } >/dev/null; then
21369   if test -s conftest.err; then
21370     ac_cpp_err=$ac_c_preproc_warn_flag
21371     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21372   else
21373     ac_cpp_err=
21374   fi
21375 else
21376   ac_cpp_err=yes
21377 fi
21378 if test -z "$ac_cpp_err"; then
21379   cat >>confdefs.h <<\_ACEOF
21380 #define FSTYPE_USG_STATFS 1
21381 _ACEOF
21382  fstype=SVR3
21383 else
21384   echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387
21388 fi
21389 rm -f conftest.err conftest.$ac_ext
21390 fi
21391 if test $fstype = no; then
21392 cat >conftest.$ac_ext <<_ACEOF
21393 /* confdefs.h.  */
21394 _ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h.  */
21398 #include <sys/statfs.h>
21399 #include <sys/vmount.h>
21400 _ACEOF
21401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21402   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21403   ac_status=$?
21404   grep -v '^ *+' conftest.er1 >conftest.err
21405   rm -f conftest.er1
21406   cat conftest.err >&5
21407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408   (exit $ac_status); } >/dev/null; then
21409   if test -s conftest.err; then
21410     ac_cpp_err=$ac_c_preproc_warn_flag
21411     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21412   else
21413     ac_cpp_err=
21414   fi
21415 else
21416   ac_cpp_err=yes
21417 fi
21418 if test -z "$ac_cpp_err"; then
21419   cat >>confdefs.h <<\_ACEOF
21420 #define FSTYPE_AIX_STATFS 1
21421 _ACEOF
21422  fstype=AIX
21423 else
21424   echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21426
21427
21428 fi
21429 rm -f conftest.err conftest.$ac_ext
21430 fi
21431 if test $fstype = no; then
21432 cat >conftest.$ac_ext <<_ACEOF
21433 /* confdefs.h.  */
21434 _ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h.  */
21438 #include <mntent.h>
21439 _ACEOF
21440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21441   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21442   ac_status=$?
21443   grep -v '^ *+' conftest.er1 >conftest.err
21444   rm -f conftest.er1
21445   cat conftest.err >&5
21446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); } >/dev/null; then
21448   if test -s conftest.err; then
21449     ac_cpp_err=$ac_c_preproc_warn_flag
21450     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21451   else
21452     ac_cpp_err=
21453   fi
21454 else
21455   ac_cpp_err=yes
21456 fi
21457 if test -z "$ac_cpp_err"; then
21458   cat >>confdefs.h <<\_ACEOF
21459 #define FSTYPE_MNTENT 1
21460 _ACEOF
21461  fstype=4.3BSD
21462 else
21463   echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21465
21466
21467 fi
21468 rm -f conftest.err conftest.$ac_ext
21469 fi
21470 if test $fstype = no; then
21471 cat >conftest.$ac_ext <<_ACEOF
21472 /* confdefs.h.  */
21473 _ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h.  */
21477 #include <sys/mount.h>
21478
21479 _ACEOF
21480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21481   $EGREP "f_type;" >/dev/null 2>&1; then
21482   cat >>confdefs.h <<\_ACEOF
21483 #define FSTYPE_STATFS 1
21484 _ACEOF
21485  fstype=4.4BSD/OSF1
21486 fi
21487 rm -f conftest*
21488
21489 fi
21490 if test $fstype = no; then
21491 cat >conftest.$ac_ext <<_ACEOF
21492 /* confdefs.h.  */
21493 _ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h.  */
21497 #include <sys/mount.h>
21498 #include <sys/fs_types.h>
21499 _ACEOF
21500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21502   ac_status=$?
21503   grep -v '^ *+' conftest.er1 >conftest.err
21504   rm -f conftest.er1
21505   cat conftest.err >&5
21506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507   (exit $ac_status); } >/dev/null; then
21508   if test -s conftest.err; then
21509     ac_cpp_err=$ac_c_preproc_warn_flag
21510     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21511   else
21512     ac_cpp_err=
21513   fi
21514 else
21515   ac_cpp_err=yes
21516 fi
21517 if test -z "$ac_cpp_err"; then
21518   cat >>confdefs.h <<\_ACEOF
21519 #define FSTYPE_GETMNT 1
21520 _ACEOF
21521  fstype=Ultrix
21522 else
21523   echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21525
21526
21527 fi
21528 rm -f conftest.err conftest.$ac_ext
21529 fi
21530 echo "$as_me:$LINENO: result: $fstype" >&5
21531 echo "${ECHO_T}$fstype" >&6
21532
21533 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21534   echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21535 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21536 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21537   echo $ECHO_N "(cached) $ECHO_C" >&6
21538 fi
21539 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21540 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21541 else
21542   # Is the header compilable?
21543 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21544 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21545 cat >conftest.$ac_ext <<_ACEOF
21546 /* confdefs.h.  */
21547 _ACEOF
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h.  */
21551 $ac_includes_default
21552 #include <sys/statvfs.h>
21553 _ACEOF
21554 rm -f conftest.$ac_objext
21555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21556   (eval $ac_compile) 2>conftest.er1
21557   ac_status=$?
21558   grep -v '^ *+' conftest.er1 >conftest.err
21559   rm -f conftest.er1
21560   cat conftest.err >&5
21561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562   (exit $ac_status); } &&
21563          { ac_try='test -z "$ac_c_werror_flag"
21564                          || test ! -s conftest.err'
21565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566   (eval $ac_try) 2>&5
21567   ac_status=$?
21568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569   (exit $ac_status); }; } &&
21570          { ac_try='test -s conftest.$ac_objext'
21571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21572   (eval $ac_try) 2>&5
21573   ac_status=$?
21574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575   (exit $ac_status); }; }; then
21576   ac_header_compiler=yes
21577 else
21578   echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21580
21581 ac_header_compiler=no
21582 fi
21583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21585 echo "${ECHO_T}$ac_header_compiler" >&6
21586
21587 # Is the header present?
21588 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21589 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21590 cat >conftest.$ac_ext <<_ACEOF
21591 /* confdefs.h.  */
21592 _ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h.  */
21596 #include <sys/statvfs.h>
21597 _ACEOF
21598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21599   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21600   ac_status=$?
21601   grep -v '^ *+' conftest.er1 >conftest.err
21602   rm -f conftest.er1
21603   cat conftest.err >&5
21604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605   (exit $ac_status); } >/dev/null; then
21606   if test -s conftest.err; then
21607     ac_cpp_err=$ac_c_preproc_warn_flag
21608     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21609   else
21610     ac_cpp_err=
21611   fi
21612 else
21613   ac_cpp_err=yes
21614 fi
21615 if test -z "$ac_cpp_err"; then
21616   ac_header_preproc=yes
21617 else
21618   echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21620
21621   ac_header_preproc=no
21622 fi
21623 rm -f conftest.err conftest.$ac_ext
21624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21625 echo "${ECHO_T}$ac_header_preproc" >&6
21626
21627 # So?  What about this header?
21628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21629   yes:no: )
21630     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21631 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21632     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21633 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21634     ac_header_preproc=yes
21635     ;;
21636   no:yes:* )
21637     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21638 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21639     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21640 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21641     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21642 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21643     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21644 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21645     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21646 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21647     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21648 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21649     (
21650       cat <<\_ASBOX
21651 ## ------------------------------------------ ##
21652 ## Report this to the AC_PACKAGE_NAME lists.  ##
21653 ## ------------------------------------------ ##
21654 _ASBOX
21655     ) |
21656       sed "s/^/$as_me: WARNING:     /" >&2
21657     ;;
21658 esac
21659 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21660 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21661 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21662   echo $ECHO_N "(cached) $ECHO_C" >&6
21663 else
21664   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21665 fi
21666 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21667 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21668
21669 fi
21670 if test $ac_cv_header_sys_statvfs_h = yes; then
21671
21672 cat >>confdefs.h <<\_ACEOF
21673 #define HAVE_SYS_STATVFS_H 1
21674 _ACEOF
21675
21676 fi
21677
21678
21679
21680 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21681 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21682 if test "${ac_cv_type_signal+set}" = set; then
21683   echo $ECHO_N "(cached) $ECHO_C" >&6
21684 else
21685   cat >conftest.$ac_ext <<_ACEOF
21686 /* confdefs.h.  */
21687 _ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h.  */
21691 #include <sys/types.h>
21692 #include <signal.h>
21693 #ifdef signal
21694 # undef signal
21695 #endif
21696 #ifdef __cplusplus
21697 extern "C" void (*signal (int, void (*)(int)))(int);
21698 #else
21699 void (*signal ()) ();
21700 #endif
21701
21702 int
21703 main ()
21704 {
21705 int i;
21706   ;
21707   return 0;
21708 }
21709 _ACEOF
21710 rm -f conftest.$ac_objext
21711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21712   (eval $ac_compile) 2>conftest.er1
21713   ac_status=$?
21714   grep -v '^ *+' conftest.er1 >conftest.err
21715   rm -f conftest.er1
21716   cat conftest.err >&5
21717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718   (exit $ac_status); } &&
21719          { ac_try='test -z "$ac_c_werror_flag"
21720                          || test ! -s conftest.err'
21721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21722   (eval $ac_try) 2>&5
21723   ac_status=$?
21724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725   (exit $ac_status); }; } &&
21726          { ac_try='test -s conftest.$ac_objext'
21727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728   (eval $ac_try) 2>&5
21729   ac_status=$?
21730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731   (exit $ac_status); }; }; then
21732   ac_cv_type_signal=void
21733 else
21734   echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21736
21737 ac_cv_type_signal=int
21738 fi
21739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21740 fi
21741 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21742 echo "${ECHO_T}$ac_cv_type_signal" >&6
21743
21744 cat >>confdefs.h <<_ACEOF
21745 #define RETSIGTYPE $ac_cv_type_signal
21746 _ACEOF
21747
21748
21749
21750   echo "$as_me:$LINENO: checking for type of signal functions" >&5
21751 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21752   if test "${bash_cv_signal_vintage+set}" = set; then
21753   echo $ECHO_N "(cached) $ECHO_C" >&6
21754 else
21755
21756     cat >conftest.$ac_ext <<_ACEOF
21757 /* confdefs.h.  */
21758 _ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h.  */
21762 #include <signal.h>
21763 int
21764 main ()
21765 {
21766
21767       sigset_t ss;
21768       struct sigaction sa;
21769       sigemptyset(&ss); sigsuspend(&ss);
21770       sigaction(SIGINT, &sa, (struct sigaction *) 0);
21771       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21772
21773   ;
21774   return 0;
21775 }
21776 _ACEOF
21777 rm -f conftest.$ac_objext conftest$ac_exeext
21778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21779   (eval $ac_link) 2>conftest.er1
21780   ac_status=$?
21781   grep -v '^ *+' conftest.er1 >conftest.err
21782   rm -f conftest.er1
21783   cat conftest.err >&5
21784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785   (exit $ac_status); } &&
21786          { ac_try='test -z "$ac_c_werror_flag"
21787                          || test ! -s conftest.err'
21788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789   (eval $ac_try) 2>&5
21790   ac_status=$?
21791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792   (exit $ac_status); }; } &&
21793          { ac_try='test -s conftest$ac_exeext'
21794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795   (eval $ac_try) 2>&5
21796   ac_status=$?
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); }; }; then
21799   bash_cv_signal_vintage="posix"
21800 else
21801   echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21803
21804
21805       cat >conftest.$ac_ext <<_ACEOF
21806 /* confdefs.h.  */
21807 _ACEOF
21808 cat confdefs.h >>conftest.$ac_ext
21809 cat >>conftest.$ac_ext <<_ACEOF
21810 /* end confdefs.h.  */
21811 #include <signal.h>
21812 int
21813 main ()
21814 {
21815
21816           int mask = sigmask(SIGINT);
21817           sigsetmask(mask); sigblock(mask); sigpause(mask);
21818
21819   ;
21820   return 0;
21821 }
21822 _ACEOF
21823 rm -f conftest.$ac_objext conftest$ac_exeext
21824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21825   (eval $ac_link) 2>conftest.er1
21826   ac_status=$?
21827   grep -v '^ *+' conftest.er1 >conftest.err
21828   rm -f conftest.er1
21829   cat conftest.err >&5
21830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831   (exit $ac_status); } &&
21832          { ac_try='test -z "$ac_c_werror_flag"
21833                          || test ! -s conftest.err'
21834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835   (eval $ac_try) 2>&5
21836   ac_status=$?
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); }; } &&
21839          { ac_try='test -s conftest$ac_exeext'
21840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841   (eval $ac_try) 2>&5
21842   ac_status=$?
21843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844   (exit $ac_status); }; }; then
21845   bash_cv_signal_vintage="4.2bsd"
21846 else
21847   echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21849
21850
21851         cat >conftest.$ac_ext <<_ACEOF
21852 /* confdefs.h.  */
21853 _ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h.  */
21857
21858           #include <signal.h>
21859           RETSIGTYPE foo() { }
21860 int
21861 main ()
21862 {
21863
21864                   int mask = sigmask(SIGINT);
21865                   sigset(SIGINT, foo); sigrelse(SIGINT);
21866                   sighold(SIGINT); sigpause(SIGINT);
21867
21868   ;
21869   return 0;
21870 }
21871 _ACEOF
21872 rm -f conftest.$ac_objext conftest$ac_exeext
21873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21874   (eval $ac_link) 2>conftest.er1
21875   ac_status=$?
21876   grep -v '^ *+' conftest.er1 >conftest.err
21877   rm -f conftest.er1
21878   cat conftest.err >&5
21879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880   (exit $ac_status); } &&
21881          { ac_try='test -z "$ac_c_werror_flag"
21882                          || test ! -s conftest.err'
21883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884   (eval $ac_try) 2>&5
21885   ac_status=$?
21886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887   (exit $ac_status); }; } &&
21888          { ac_try='test -s conftest$ac_exeext'
21889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890   (eval $ac_try) 2>&5
21891   ac_status=$?
21892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893   (exit $ac_status); }; }; then
21894   bash_cv_signal_vintage="svr3"
21895 else
21896   echo "$as_me: failed program was:" >&5
21897 sed 's/^/| /' conftest.$ac_ext >&5
21898
21899 bash_cv_signal_vintage="v7"
21900
21901 fi
21902 rm -f conftest.err conftest.$ac_objext \
21903       conftest$ac_exeext conftest.$ac_ext
21904
21905 fi
21906 rm -f conftest.err conftest.$ac_objext \
21907       conftest$ac_exeext conftest.$ac_ext
21908
21909 fi
21910 rm -f conftest.err conftest.$ac_objext \
21911       conftest$ac_exeext conftest.$ac_ext
21912
21913 fi
21914
21915   echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21916 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21917   if test "$bash_cv_signal_vintage" = "posix"; then
21918     cat >>confdefs.h <<\_ACEOF
21919 #define HAVE_POSIX_SIGNALS 1
21920 _ACEOF
21921
21922   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21923     cat >>confdefs.h <<\_ACEOF
21924 #define HAVE_BSD_SIGNALS 1
21925 _ACEOF
21926
21927   elif test "$bash_cv_signal_vintage" = "svr3"; then
21928     cat >>confdefs.h <<\_ACEOF
21929 #define HAVE_USG_SIGHOLD 1
21930 _ACEOF
21931
21932   fi
21933
21934 echo "$as_me:$LINENO: checking for mode_t" >&5
21935 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21936 if test "${ac_cv_type_mode_t+set}" = set; then
21937   echo $ECHO_N "(cached) $ECHO_C" >&6
21938 else
21939   cat >conftest.$ac_ext <<_ACEOF
21940 /* confdefs.h.  */
21941 _ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h.  */
21945 $ac_includes_default
21946 int
21947 main ()
21948 {
21949 if ((mode_t *) 0)
21950   return 0;
21951 if (sizeof (mode_t))
21952   return 0;
21953   ;
21954   return 0;
21955 }
21956 _ACEOF
21957 rm -f conftest.$ac_objext
21958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21959   (eval $ac_compile) 2>conftest.er1
21960   ac_status=$?
21961   grep -v '^ *+' conftest.er1 >conftest.err
21962   rm -f conftest.er1
21963   cat conftest.err >&5
21964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965   (exit $ac_status); } &&
21966          { ac_try='test -z "$ac_c_werror_flag"
21967                          || test ! -s conftest.err'
21968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969   (eval $ac_try) 2>&5
21970   ac_status=$?
21971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972   (exit $ac_status); }; } &&
21973          { ac_try='test -s conftest.$ac_objext'
21974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975   (eval $ac_try) 2>&5
21976   ac_status=$?
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); }; }; then
21979   ac_cv_type_mode_t=yes
21980 else
21981   echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21983
21984 ac_cv_type_mode_t=no
21985 fi
21986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21987 fi
21988 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21989 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21990 if test $ac_cv_type_mode_t = yes; then
21991   :
21992 else
21993
21994 cat >>confdefs.h <<_ACEOF
21995 #define mode_t int
21996 _ACEOF
21997
21998 fi
21999
22000 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22001 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22002 if test "${ac_cv_type_uid_t+set}" = set; then
22003   echo $ECHO_N "(cached) $ECHO_C" >&6
22004 else
22005   cat >conftest.$ac_ext <<_ACEOF
22006 /* confdefs.h.  */
22007 _ACEOF
22008 cat confdefs.h >>conftest.$ac_ext
22009 cat >>conftest.$ac_ext <<_ACEOF
22010 /* end confdefs.h.  */
22011 #include <sys/types.h>
22012
22013 _ACEOF
22014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22015   $EGREP "uid_t" >/dev/null 2>&1; then
22016   ac_cv_type_uid_t=yes
22017 else
22018   ac_cv_type_uid_t=no
22019 fi
22020 rm -f conftest*
22021
22022 fi
22023 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22024 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22025 if test $ac_cv_type_uid_t = no; then
22026
22027 cat >>confdefs.h <<\_ACEOF
22028 #define uid_t int
22029 _ACEOF
22030
22031
22032 cat >>confdefs.h <<\_ACEOF
22033 #define gid_t int
22034 _ACEOF
22035
22036 fi
22037
22038 echo "$as_me:$LINENO: checking for size_t" >&5
22039 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22040 if test "${ac_cv_type_size_t+set}" = set; then
22041   echo $ECHO_N "(cached) $ECHO_C" >&6
22042 else
22043   cat >conftest.$ac_ext <<_ACEOF
22044 /* confdefs.h.  */
22045 _ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h.  */
22049 $ac_includes_default
22050 int
22051 main ()
22052 {
22053 if ((size_t *) 0)
22054   return 0;
22055 if (sizeof (size_t))
22056   return 0;
22057   ;
22058   return 0;
22059 }
22060 _ACEOF
22061 rm -f conftest.$ac_objext
22062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22063   (eval $ac_compile) 2>conftest.er1
22064   ac_status=$?
22065   grep -v '^ *+' conftest.er1 >conftest.err
22066   rm -f conftest.er1
22067   cat conftest.err >&5
22068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069   (exit $ac_status); } &&
22070          { ac_try='test -z "$ac_c_werror_flag"
22071                          || test ! -s conftest.err'
22072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073   (eval $ac_try) 2>&5
22074   ac_status=$?
22075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076   (exit $ac_status); }; } &&
22077          { ac_try='test -s conftest.$ac_objext'
22078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079   (eval $ac_try) 2>&5
22080   ac_status=$?
22081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082   (exit $ac_status); }; }; then
22083   ac_cv_type_size_t=yes
22084 else
22085   echo "$as_me: failed program was:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22087
22088 ac_cv_type_size_t=no
22089 fi
22090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22091 fi
22092 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22093 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22094 if test $ac_cv_type_size_t = yes; then
22095   :
22096 else
22097
22098 cat >>confdefs.h <<_ACEOF
22099 #define size_t unsigned
22100 _ACEOF
22101
22102 fi
22103
22104 echo "$as_me:$LINENO: checking for pid_t" >&5
22105 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22106 if test "${ac_cv_type_pid_t+set}" = set; then
22107   echo $ECHO_N "(cached) $ECHO_C" >&6
22108 else
22109   cat >conftest.$ac_ext <<_ACEOF
22110 /* confdefs.h.  */
22111 _ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h.  */
22115 $ac_includes_default
22116 int
22117 main ()
22118 {
22119 if ((pid_t *) 0)
22120   return 0;
22121 if (sizeof (pid_t))
22122   return 0;
22123   ;
22124   return 0;
22125 }
22126 _ACEOF
22127 rm -f conftest.$ac_objext
22128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22129   (eval $ac_compile) 2>conftest.er1
22130   ac_status=$?
22131   grep -v '^ *+' conftest.er1 >conftest.err
22132   rm -f conftest.er1
22133   cat conftest.err >&5
22134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135   (exit $ac_status); } &&
22136          { ac_try='test -z "$ac_c_werror_flag"
22137                          || test ! -s conftest.err'
22138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22139   (eval $ac_try) 2>&5
22140   ac_status=$?
22141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142   (exit $ac_status); }; } &&
22143          { ac_try='test -s conftest.$ac_objext'
22144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22145   (eval $ac_try) 2>&5
22146   ac_status=$?
22147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148   (exit $ac_status); }; }; then
22149   ac_cv_type_pid_t=yes
22150 else
22151   echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22153
22154 ac_cv_type_pid_t=no
22155 fi
22156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22157 fi
22158 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22159 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22160 if test $ac_cv_type_pid_t = yes; then
22161   :
22162 else
22163
22164 cat >>confdefs.h <<_ACEOF
22165 #define pid_t int
22166 _ACEOF
22167
22168 fi
22169
22170 echo "$as_me:$LINENO: checking for off_t" >&5
22171 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22172 if test "${ac_cv_type_off_t+set}" = set; then
22173   echo $ECHO_N "(cached) $ECHO_C" >&6
22174 else
22175   cat >conftest.$ac_ext <<_ACEOF
22176 /* confdefs.h.  */
22177 _ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h.  */
22181 $ac_includes_default
22182 int
22183 main ()
22184 {
22185 if ((off_t *) 0)
22186   return 0;
22187 if (sizeof (off_t))
22188   return 0;
22189   ;
22190   return 0;
22191 }
22192 _ACEOF
22193 rm -f conftest.$ac_objext
22194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22195   (eval $ac_compile) 2>conftest.er1
22196   ac_status=$?
22197   grep -v '^ *+' conftest.er1 >conftest.err
22198   rm -f conftest.er1
22199   cat conftest.err >&5
22200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201   (exit $ac_status); } &&
22202          { ac_try='test -z "$ac_c_werror_flag"
22203                          || test ! -s conftest.err'
22204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22205   (eval $ac_try) 2>&5
22206   ac_status=$?
22207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208   (exit $ac_status); }; } &&
22209          { ac_try='test -s conftest.$ac_objext'
22210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22211   (eval $ac_try) 2>&5
22212   ac_status=$?
22213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214   (exit $ac_status); }; }; then
22215   ac_cv_type_off_t=yes
22216 else
22217   echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22219
22220 ac_cv_type_off_t=no
22221 fi
22222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22223 fi
22224 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22225 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22226 if test $ac_cv_type_off_t = yes; then
22227   :
22228 else
22229
22230 cat >>confdefs.h <<_ACEOF
22231 #define off_t long
22232 _ACEOF
22233
22234 fi
22235
22236 echo "$as_me:$LINENO: checking for ino_t" >&5
22237 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
22238 if test "${ac_cv_type_ino_t+set}" = set; then
22239   echo $ECHO_N "(cached) $ECHO_C" >&6
22240 else
22241   cat >conftest.$ac_ext <<_ACEOF
22242 /* confdefs.h.  */
22243 _ACEOF
22244 cat confdefs.h >>conftest.$ac_ext
22245 cat >>conftest.$ac_ext <<_ACEOF
22246 /* end confdefs.h.  */
22247 $ac_includes_default
22248 int
22249 main ()
22250 {
22251 if ((ino_t *) 0)
22252   return 0;
22253 if (sizeof (ino_t))
22254   return 0;
22255   ;
22256   return 0;
22257 }
22258 _ACEOF
22259 rm -f conftest.$ac_objext
22260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22261   (eval $ac_compile) 2>conftest.er1
22262   ac_status=$?
22263   grep -v '^ *+' conftest.er1 >conftest.err
22264   rm -f conftest.er1
22265   cat conftest.err >&5
22266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267   (exit $ac_status); } &&
22268          { ac_try='test -z "$ac_c_werror_flag"
22269                          || test ! -s conftest.err'
22270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271   (eval $ac_try) 2>&5
22272   ac_status=$?
22273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274   (exit $ac_status); }; } &&
22275          { ac_try='test -s conftest.$ac_objext'
22276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22277   (eval $ac_try) 2>&5
22278   ac_status=$?
22279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280   (exit $ac_status); }; }; then
22281   ac_cv_type_ino_t=yes
22282 else
22283   echo "$as_me: failed program was:" >&5
22284 sed 's/^/| /' conftest.$ac_ext >&5
22285
22286 ac_cv_type_ino_t=no
22287 fi
22288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22289 fi
22290 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22291 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22292 if test $ac_cv_type_ino_t = yes; then
22293   :
22294 else
22295
22296 cat >>confdefs.h <<_ACEOF
22297 #define ino_t unsigned long
22298 _ACEOF
22299
22300 fi
22301
22302 echo "$as_me:$LINENO: checking for dev_t" >&5
22303 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22304 if test "${ac_cv_type_dev_t+set}" = set; then
22305   echo $ECHO_N "(cached) $ECHO_C" >&6
22306 else
22307   cat >conftest.$ac_ext <<_ACEOF
22308 /* confdefs.h.  */
22309 _ACEOF
22310 cat confdefs.h >>conftest.$ac_ext
22311 cat >>conftest.$ac_ext <<_ACEOF
22312 /* end confdefs.h.  */
22313 $ac_includes_default
22314 int
22315 main ()
22316 {
22317 if ((dev_t *) 0)
22318   return 0;
22319 if (sizeof (dev_t))
22320   return 0;
22321   ;
22322   return 0;
22323 }
22324 _ACEOF
22325 rm -f conftest.$ac_objext
22326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22327   (eval $ac_compile) 2>conftest.er1
22328   ac_status=$?
22329   grep -v '^ *+' conftest.er1 >conftest.err
22330   rm -f conftest.er1
22331   cat conftest.err >&5
22332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333   (exit $ac_status); } &&
22334          { ac_try='test -z "$ac_c_werror_flag"
22335                          || test ! -s conftest.err'
22336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22337   (eval $ac_try) 2>&5
22338   ac_status=$?
22339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340   (exit $ac_status); }; } &&
22341          { ac_try='test -s conftest.$ac_objext'
22342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343   (eval $ac_try) 2>&5
22344   ac_status=$?
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); }; }; then
22347   ac_cv_type_dev_t=yes
22348 else
22349   echo "$as_me: failed program was:" >&5
22350 sed 's/^/| /' conftest.$ac_ext >&5
22351
22352 ac_cv_type_dev_t=no
22353 fi
22354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22355 fi
22356 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22357 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22358 if test $ac_cv_type_dev_t = yes; then
22359   :
22360 else
22361
22362 cat >>confdefs.h <<_ACEOF
22363 #define dev_t unsigned long
22364 _ACEOF
22365
22366 fi
22367
22368 echo "$as_me:$LINENO: checking for daddr_t" >&5
22369 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22370 if test "${ac_cv_type_daddr_t+set}" = set; then
22371   echo $ECHO_N "(cached) $ECHO_C" >&6
22372 else
22373   cat >conftest.$ac_ext <<_ACEOF
22374 /* confdefs.h.  */
22375 _ACEOF
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h.  */
22379 $ac_includes_default
22380 int
22381 main ()
22382 {
22383 if ((daddr_t *) 0)
22384   return 0;
22385 if (sizeof (daddr_t))
22386   return 0;
22387   ;
22388   return 0;
22389 }
22390 _ACEOF
22391 rm -f conftest.$ac_objext
22392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22393   (eval $ac_compile) 2>conftest.er1
22394   ac_status=$?
22395   grep -v '^ *+' conftest.er1 >conftest.err
22396   rm -f conftest.er1
22397   cat conftest.err >&5
22398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399   (exit $ac_status); } &&
22400          { ac_try='test -z "$ac_c_werror_flag"
22401                          || test ! -s conftest.err'
22402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22403   (eval $ac_try) 2>&5
22404   ac_status=$?
22405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406   (exit $ac_status); }; } &&
22407          { ac_try='test -s conftest.$ac_objext'
22408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22409   (eval $ac_try) 2>&5
22410   ac_status=$?
22411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412   (exit $ac_status); }; }; then
22413   ac_cv_type_daddr_t=yes
22414 else
22415   echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22417
22418 ac_cv_type_daddr_t=no
22419 fi
22420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22421 fi
22422 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22423 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22424 if test $ac_cv_type_daddr_t = yes; then
22425   :
22426 else
22427
22428 cat >>confdefs.h <<_ACEOF
22429 #define daddr_t long
22430 _ACEOF
22431
22432 fi
22433
22434 echo "$as_me:$LINENO: checking for major_t" >&5
22435 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22436 if test "${ac_cv_type_major_t+set}" = set; then
22437   echo $ECHO_N "(cached) $ECHO_C" >&6
22438 else
22439   cat >conftest.$ac_ext <<_ACEOF
22440 /* confdefs.h.  */
22441 _ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h.  */
22445 $ac_includes_default
22446 int
22447 main ()
22448 {
22449 if ((major_t *) 0)
22450   return 0;
22451 if (sizeof (major_t))
22452   return 0;
22453   ;
22454   return 0;
22455 }
22456 _ACEOF
22457 rm -f conftest.$ac_objext
22458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22459   (eval $ac_compile) 2>conftest.er1
22460   ac_status=$?
22461   grep -v '^ *+' conftest.er1 >conftest.err
22462   rm -f conftest.er1
22463   cat conftest.err >&5
22464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465   (exit $ac_status); } &&
22466          { ac_try='test -z "$ac_c_werror_flag"
22467                          || test ! -s conftest.err'
22468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22469   (eval $ac_try) 2>&5
22470   ac_status=$?
22471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472   (exit $ac_status); }; } &&
22473          { ac_try='test -s conftest.$ac_objext'
22474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475   (eval $ac_try) 2>&5
22476   ac_status=$?
22477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478   (exit $ac_status); }; }; then
22479   ac_cv_type_major_t=yes
22480 else
22481   echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22483
22484 ac_cv_type_major_t=no
22485 fi
22486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22487 fi
22488 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22489 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22490 if test $ac_cv_type_major_t = yes; then
22491   :
22492 else
22493
22494 cat >>confdefs.h <<_ACEOF
22495 #define major_t int
22496 _ACEOF
22497
22498 fi
22499
22500 echo "$as_me:$LINENO: checking for minor_t" >&5
22501 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22502 if test "${ac_cv_type_minor_t+set}" = set; then
22503   echo $ECHO_N "(cached) $ECHO_C" >&6
22504 else
22505   cat >conftest.$ac_ext <<_ACEOF
22506 /* confdefs.h.  */
22507 _ACEOF
22508 cat confdefs.h >>conftest.$ac_ext
22509 cat >>conftest.$ac_ext <<_ACEOF
22510 /* end confdefs.h.  */
22511 $ac_includes_default
22512 int
22513 main ()
22514 {
22515 if ((minor_t *) 0)
22516   return 0;
22517 if (sizeof (minor_t))
22518   return 0;
22519   ;
22520   return 0;
22521 }
22522 _ACEOF
22523 rm -f conftest.$ac_objext
22524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22525   (eval $ac_compile) 2>conftest.er1
22526   ac_status=$?
22527   grep -v '^ *+' conftest.er1 >conftest.err
22528   rm -f conftest.er1
22529   cat conftest.err >&5
22530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531   (exit $ac_status); } &&
22532          { ac_try='test -z "$ac_c_werror_flag"
22533                          || test ! -s conftest.err'
22534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535   (eval $ac_try) 2>&5
22536   ac_status=$?
22537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538   (exit $ac_status); }; } &&
22539          { ac_try='test -s conftest.$ac_objext'
22540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22541   (eval $ac_try) 2>&5
22542   ac_status=$?
22543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544   (exit $ac_status); }; }; then
22545   ac_cv_type_minor_t=yes
22546 else
22547   echo "$as_me: failed program was:" >&5
22548 sed 's/^/| /' conftest.$ac_ext >&5
22549
22550 ac_cv_type_minor_t=no
22551 fi
22552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22553 fi
22554 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22555 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22556 if test $ac_cv_type_minor_t = yes; then
22557   :
22558 else
22559
22560 cat >>confdefs.h <<_ACEOF
22561 #define minor_t int
22562 _ACEOF
22563
22564 fi
22565
22566 echo "$as_me:$LINENO: checking for ssize_t" >&5
22567 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22568 if test "${ac_cv_type_ssize_t+set}" = set; then
22569   echo $ECHO_N "(cached) $ECHO_C" >&6
22570 else
22571   cat >conftest.$ac_ext <<_ACEOF
22572 /* confdefs.h.  */
22573 _ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h.  */
22577 $ac_includes_default
22578 int
22579 main ()
22580 {
22581 if ((ssize_t *) 0)
22582   return 0;
22583 if (sizeof (ssize_t))
22584   return 0;
22585   ;
22586   return 0;
22587 }
22588 _ACEOF
22589 rm -f conftest.$ac_objext
22590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22591   (eval $ac_compile) 2>conftest.er1
22592   ac_status=$?
22593   grep -v '^ *+' conftest.er1 >conftest.err
22594   rm -f conftest.er1
22595   cat conftest.err >&5
22596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597   (exit $ac_status); } &&
22598          { ac_try='test -z "$ac_c_werror_flag"
22599                          || test ! -s conftest.err'
22600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601   (eval $ac_try) 2>&5
22602   ac_status=$?
22603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604   (exit $ac_status); }; } &&
22605          { ac_try='test -s conftest.$ac_objext'
22606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607   (eval $ac_try) 2>&5
22608   ac_status=$?
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); }; }; then
22611   ac_cv_type_ssize_t=yes
22612 else
22613   echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22615
22616 ac_cv_type_ssize_t=no
22617 fi
22618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22619 fi
22620 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22621 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22622 if test $ac_cv_type_ssize_t = yes; then
22623   :
22624 else
22625
22626 cat >>confdefs.h <<_ACEOF
22627 #define ssize_t int
22628 _ACEOF
22629
22630 fi
22631
22632 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22633 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22634 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22635   echo $ECHO_N "(cached) $ECHO_C" >&6
22636 else
22637   cat >conftest.$ac_ext <<_ACEOF
22638 /* confdefs.h.  */
22639 _ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h.  */
22643 $ac_includes_default
22644 int
22645 main ()
22646 {
22647 static struct stat ac_aggr;
22648 if (ac_aggr.st_blocks)
22649 return 0;
22650   ;
22651   return 0;
22652 }
22653 _ACEOF
22654 rm -f conftest.$ac_objext
22655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22656   (eval $ac_compile) 2>conftest.er1
22657   ac_status=$?
22658   grep -v '^ *+' conftest.er1 >conftest.err
22659   rm -f conftest.er1
22660   cat conftest.err >&5
22661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662   (exit $ac_status); } &&
22663          { ac_try='test -z "$ac_c_werror_flag"
22664                          || test ! -s conftest.err'
22665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666   (eval $ac_try) 2>&5
22667   ac_status=$?
22668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669   (exit $ac_status); }; } &&
22670          { ac_try='test -s conftest.$ac_objext'
22671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22672   (eval $ac_try) 2>&5
22673   ac_status=$?
22674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675   (exit $ac_status); }; }; then
22676   ac_cv_member_struct_stat_st_blocks=yes
22677 else
22678   echo "$as_me: failed program was:" >&5
22679 sed 's/^/| /' conftest.$ac_ext >&5
22680
22681 cat >conftest.$ac_ext <<_ACEOF
22682 /* confdefs.h.  */
22683 _ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h.  */
22687 $ac_includes_default
22688 int
22689 main ()
22690 {
22691 static struct stat ac_aggr;
22692 if (sizeof ac_aggr.st_blocks)
22693 return 0;
22694   ;
22695   return 0;
22696 }
22697 _ACEOF
22698 rm -f conftest.$ac_objext
22699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22700   (eval $ac_compile) 2>conftest.er1
22701   ac_status=$?
22702   grep -v '^ *+' conftest.er1 >conftest.err
22703   rm -f conftest.er1
22704   cat conftest.err >&5
22705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706   (exit $ac_status); } &&
22707          { ac_try='test -z "$ac_c_werror_flag"
22708                          || test ! -s conftest.err'
22709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710   (eval $ac_try) 2>&5
22711   ac_status=$?
22712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713   (exit $ac_status); }; } &&
22714          { ac_try='test -s conftest.$ac_objext'
22715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716   (eval $ac_try) 2>&5
22717   ac_status=$?
22718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719   (exit $ac_status); }; }; then
22720   ac_cv_member_struct_stat_st_blocks=yes
22721 else
22722   echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22724
22725 ac_cv_member_struct_stat_st_blocks=no
22726 fi
22727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22728 fi
22729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22730 fi
22731 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22732 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22733 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22734
22735 cat >>confdefs.h <<_ACEOF
22736 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22737 _ACEOF
22738
22739
22740 cat >>confdefs.h <<\_ACEOF
22741 #define HAVE_ST_BLOCKS 1
22742 _ACEOF
22743
22744 else
22745   case $LIBOBJS in
22746     "fileblocks.$ac_objext"   | \
22747   *" fileblocks.$ac_objext"   | \
22748     "fileblocks.$ac_objext "* | \
22749   *" fileblocks.$ac_objext "* ) ;;
22750   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22751 esac
22752
22753 fi
22754
22755
22756
22757 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22758 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22759 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22760   echo $ECHO_N "(cached) $ECHO_C" >&6
22761 else
22762   cat >conftest.$ac_ext <<_ACEOF
22763 /* confdefs.h.  */
22764 _ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h.  */
22768 $ac_includes_default
22769 int
22770 main ()
22771 {
22772 static struct stat ac_aggr;
22773 if (ac_aggr.st_rdev)
22774 return 0;
22775   ;
22776   return 0;
22777 }
22778 _ACEOF
22779 rm -f conftest.$ac_objext
22780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22781   (eval $ac_compile) 2>conftest.er1
22782   ac_status=$?
22783   grep -v '^ *+' conftest.er1 >conftest.err
22784   rm -f conftest.er1
22785   cat conftest.err >&5
22786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787   (exit $ac_status); } &&
22788          { ac_try='test -z "$ac_c_werror_flag"
22789                          || test ! -s conftest.err'
22790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22791   (eval $ac_try) 2>&5
22792   ac_status=$?
22793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794   (exit $ac_status); }; } &&
22795          { ac_try='test -s conftest.$ac_objext'
22796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22797   (eval $ac_try) 2>&5
22798   ac_status=$?
22799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800   (exit $ac_status); }; }; then
22801   ac_cv_member_struct_stat_st_rdev=yes
22802 else
22803   echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22805
22806 cat >conftest.$ac_ext <<_ACEOF
22807 /* confdefs.h.  */
22808 _ACEOF
22809 cat confdefs.h >>conftest.$ac_ext
22810 cat >>conftest.$ac_ext <<_ACEOF
22811 /* end confdefs.h.  */
22812 $ac_includes_default
22813 int
22814 main ()
22815 {
22816 static struct stat ac_aggr;
22817 if (sizeof ac_aggr.st_rdev)
22818 return 0;
22819   ;
22820   return 0;
22821 }
22822 _ACEOF
22823 rm -f conftest.$ac_objext
22824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22825   (eval $ac_compile) 2>conftest.er1
22826   ac_status=$?
22827   grep -v '^ *+' conftest.er1 >conftest.err
22828   rm -f conftest.er1
22829   cat conftest.err >&5
22830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831   (exit $ac_status); } &&
22832          { ac_try='test -z "$ac_c_werror_flag"
22833                          || test ! -s conftest.err'
22834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22835   (eval $ac_try) 2>&5
22836   ac_status=$?
22837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838   (exit $ac_status); }; } &&
22839          { ac_try='test -s conftest.$ac_objext'
22840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22841   (eval $ac_try) 2>&5
22842   ac_status=$?
22843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844   (exit $ac_status); }; }; then
22845   ac_cv_member_struct_stat_st_rdev=yes
22846 else
22847   echo "$as_me: failed program was:" >&5
22848 sed 's/^/| /' conftest.$ac_ext >&5
22849
22850 ac_cv_member_struct_stat_st_rdev=no
22851 fi
22852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22853 fi
22854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22855 fi
22856 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22857 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22858 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22859
22860 cat >>confdefs.h <<_ACEOF
22861 #define HAVE_STRUCT_STAT_ST_RDEV 1
22862 _ACEOF
22863
22864
22865 cat >>confdefs.h <<\_ACEOF
22866 #define HAVE_ST_RDEV 1
22867 _ACEOF
22868
22869 fi
22870
22871
22872 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22873 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22874 if test "${ac_cv_struct_tm+set}" = set; then
22875   echo $ECHO_N "(cached) $ECHO_C" >&6
22876 else
22877   cat >conftest.$ac_ext <<_ACEOF
22878 /* confdefs.h.  */
22879 _ACEOF
22880 cat confdefs.h >>conftest.$ac_ext
22881 cat >>conftest.$ac_ext <<_ACEOF
22882 /* end confdefs.h.  */
22883 #include <sys/types.h>
22884 #include <time.h>
22885
22886 int
22887 main ()
22888 {
22889 struct tm *tp; tp->tm_sec;
22890   ;
22891   return 0;
22892 }
22893 _ACEOF
22894 rm -f conftest.$ac_objext
22895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22896   (eval $ac_compile) 2>conftest.er1
22897   ac_status=$?
22898   grep -v '^ *+' conftest.er1 >conftest.err
22899   rm -f conftest.er1
22900   cat conftest.err >&5
22901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902   (exit $ac_status); } &&
22903          { ac_try='test -z "$ac_c_werror_flag"
22904                          || test ! -s conftest.err'
22905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906   (eval $ac_try) 2>&5
22907   ac_status=$?
22908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909   (exit $ac_status); }; } &&
22910          { ac_try='test -s conftest.$ac_objext'
22911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22912   (eval $ac_try) 2>&5
22913   ac_status=$?
22914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915   (exit $ac_status); }; }; then
22916   ac_cv_struct_tm=time.h
22917 else
22918   echo "$as_me: failed program was:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22920
22921 ac_cv_struct_tm=sys/time.h
22922 fi
22923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22924 fi
22925 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22926 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22927 if test $ac_cv_struct_tm = sys/time.h; then
22928
22929 cat >>confdefs.h <<\_ACEOF
22930 #define TM_IN_SYS_TIME 1
22931 _ACEOF
22932
22933 fi
22934
22935 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22936 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22937 if test "${ac_cv_c_const+set}" = set; then
22938   echo $ECHO_N "(cached) $ECHO_C" >&6
22939 else
22940   cat >conftest.$ac_ext <<_ACEOF
22941 /* confdefs.h.  */
22942 _ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h.  */
22946
22947 int
22948 main ()
22949 {
22950 /* FIXME: Include the comments suggested by Paul. */
22951 #ifndef __cplusplus
22952   /* Ultrix mips cc rejects this.  */
22953   typedef int charset[2];
22954   const charset x;
22955   /* SunOS 4.1.1 cc rejects this.  */
22956   char const *const *ccp;
22957   char **p;
22958   /* NEC SVR4.0.2 mips cc rejects this.  */
22959   struct point {int x, y;};
22960   static struct point const zero = {0,0};
22961   /* AIX XL C 1.02.0.0 rejects this.
22962      It does not let you subtract one const X* pointer from another in
22963      an arm of an if-expression whose if-part is not a constant
22964      expression */
22965   const char *g = "string";
22966   ccp = &g + (g ? g-g : 0);
22967   /* HPUX 7.0 cc rejects these. */
22968   ++ccp;
22969   p = (char**) ccp;
22970   ccp = (char const *const *) p;
22971   { /* SCO 3.2v4 cc rejects this.  */
22972     char *t;
22973     char const *s = 0 ? (char *) 0 : (char const *) 0;
22974
22975     *t++ = 0;
22976   }
22977   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22978     int x[] = {25, 17};
22979     const int *foo = &x[0];
22980     ++foo;
22981   }
22982   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22983     typedef const int *iptr;
22984     iptr p = 0;
22985     ++p;
22986   }
22987   { /* AIX XL C 1.02.0.0 rejects this saying
22988        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22989     struct s { int j; const int *ap[3]; };
22990     struct s *b; b->j = 5;
22991   }
22992   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22993     const int foo = 10;
22994   }
22995 #endif
22996
22997   ;
22998   return 0;
22999 }
23000 _ACEOF
23001 rm -f conftest.$ac_objext
23002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23003   (eval $ac_compile) 2>conftest.er1
23004   ac_status=$?
23005   grep -v '^ *+' conftest.er1 >conftest.err
23006   rm -f conftest.er1
23007   cat conftest.err >&5
23008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009   (exit $ac_status); } &&
23010          { ac_try='test -z "$ac_c_werror_flag"
23011                          || test ! -s conftest.err'
23012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23013   (eval $ac_try) 2>&5
23014   ac_status=$?
23015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016   (exit $ac_status); }; } &&
23017          { ac_try='test -s conftest.$ac_objext'
23018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23019   (eval $ac_try) 2>&5
23020   ac_status=$?
23021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022   (exit $ac_status); }; }; then
23023   ac_cv_c_const=yes
23024 else
23025   echo "$as_me: failed program was:" >&5
23026 sed 's/^/| /' conftest.$ac_ext >&5
23027
23028 ac_cv_c_const=no
23029 fi
23030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23031 fi
23032 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23033 echo "${ECHO_T}$ac_cv_c_const" >&6
23034 if test $ac_cv_c_const = no; then
23035
23036 cat >>confdefs.h <<\_ACEOF
23037 #define const
23038 _ACEOF
23039
23040 fi
23041
23042
23043
23044 echo "$as_me:$LINENO: checking for char" >&5
23045 echo $ECHO_N "checking for char... $ECHO_C" >&6
23046 if test "${ac_cv_type_char+set}" = set; then
23047   echo $ECHO_N "(cached) $ECHO_C" >&6
23048 else
23049   cat >conftest.$ac_ext <<_ACEOF
23050 /* confdefs.h.  */
23051 _ACEOF
23052 cat confdefs.h >>conftest.$ac_ext
23053 cat >>conftest.$ac_ext <<_ACEOF
23054 /* end confdefs.h.  */
23055 $ac_includes_default
23056 int
23057 main ()
23058 {
23059 if ((char *) 0)
23060   return 0;
23061 if (sizeof (char))
23062   return 0;
23063   ;
23064   return 0;
23065 }
23066 _ACEOF
23067 rm -f conftest.$ac_objext
23068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23069   (eval $ac_compile) 2>conftest.er1
23070   ac_status=$?
23071   grep -v '^ *+' conftest.er1 >conftest.err
23072   rm -f conftest.er1
23073   cat conftest.err >&5
23074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075   (exit $ac_status); } &&
23076          { ac_try='test -z "$ac_c_werror_flag"
23077                          || test ! -s conftest.err'
23078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23079   (eval $ac_try) 2>&5
23080   ac_status=$?
23081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082   (exit $ac_status); }; } &&
23083          { ac_try='test -s conftest.$ac_objext'
23084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23085   (eval $ac_try) 2>&5
23086   ac_status=$?
23087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088   (exit $ac_status); }; }; then
23089   ac_cv_type_char=yes
23090 else
23091   echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23093
23094 ac_cv_type_char=no
23095 fi
23096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23097 fi
23098 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23099 echo "${ECHO_T}$ac_cv_type_char" >&6
23100
23101 echo "$as_me:$LINENO: checking size of char" >&5
23102 echo $ECHO_N "checking size of char... $ECHO_C" >&6
23103 if test "${ac_cv_sizeof_char+set}" = set; then
23104   echo $ECHO_N "(cached) $ECHO_C" >&6
23105 else
23106   if test "$ac_cv_type_char" = yes; then
23107   # The cast to unsigned long works around a bug in the HP C Compiler
23108   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23109   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23110   # This bug is HP SR number 8606223364.
23111   if test "$cross_compiling" = yes; then
23112   # Depending upon the size, compute the lo and hi bounds.
23113 cat >conftest.$ac_ext <<_ACEOF
23114 /* confdefs.h.  */
23115 _ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h.  */
23119 $ac_includes_default
23120 int
23121 main ()
23122 {
23123 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
23124 test_array [0] = 0
23125
23126   ;
23127   return 0;
23128 }
23129 _ACEOF
23130 rm -f conftest.$ac_objext
23131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23132   (eval $ac_compile) 2>conftest.er1
23133   ac_status=$?
23134   grep -v '^ *+' conftest.er1 >conftest.err
23135   rm -f conftest.er1
23136   cat conftest.err >&5
23137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138   (exit $ac_status); } &&
23139          { ac_try='test -z "$ac_c_werror_flag"
23140                          || test ! -s conftest.err'
23141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23142   (eval $ac_try) 2>&5
23143   ac_status=$?
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); }; } &&
23146          { ac_try='test -s conftest.$ac_objext'
23147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23148   (eval $ac_try) 2>&5
23149   ac_status=$?
23150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151   (exit $ac_status); }; }; then
23152   ac_lo=0 ac_mid=0
23153   while :; do
23154     cat >conftest.$ac_ext <<_ACEOF
23155 /* confdefs.h.  */
23156 _ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h.  */
23160 $ac_includes_default
23161 int
23162 main ()
23163 {
23164 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23165 test_array [0] = 0
23166
23167   ;
23168   return 0;
23169 }
23170 _ACEOF
23171 rm -f conftest.$ac_objext
23172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23173   (eval $ac_compile) 2>conftest.er1
23174   ac_status=$?
23175   grep -v '^ *+' conftest.er1 >conftest.err
23176   rm -f conftest.er1
23177   cat conftest.err >&5
23178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179   (exit $ac_status); } &&
23180          { ac_try='test -z "$ac_c_werror_flag"
23181                          || test ! -s conftest.err'
23182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23183   (eval $ac_try) 2>&5
23184   ac_status=$?
23185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186   (exit $ac_status); }; } &&
23187          { ac_try='test -s conftest.$ac_objext'
23188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189   (eval $ac_try) 2>&5
23190   ac_status=$?
23191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192   (exit $ac_status); }; }; then
23193   ac_hi=$ac_mid; break
23194 else
23195   echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23197
23198 ac_lo=`expr $ac_mid + 1`
23199                     if test $ac_lo -le $ac_mid; then
23200                       ac_lo= ac_hi=
23201                       break
23202                     fi
23203                     ac_mid=`expr 2 '*' $ac_mid + 1`
23204 fi
23205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23206   done
23207 else
23208   echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.$ac_ext >&5
23210
23211 cat >conftest.$ac_ext <<_ACEOF
23212 /* confdefs.h.  */
23213 _ACEOF
23214 cat confdefs.h >>conftest.$ac_ext
23215 cat >>conftest.$ac_ext <<_ACEOF
23216 /* end confdefs.h.  */
23217 $ac_includes_default
23218 int
23219 main ()
23220 {
23221 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
23222 test_array [0] = 0
23223
23224   ;
23225   return 0;
23226 }
23227 _ACEOF
23228 rm -f conftest.$ac_objext
23229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23230   (eval $ac_compile) 2>conftest.er1
23231   ac_status=$?
23232   grep -v '^ *+' conftest.er1 >conftest.err
23233   rm -f conftest.er1
23234   cat conftest.err >&5
23235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236   (exit $ac_status); } &&
23237          { ac_try='test -z "$ac_c_werror_flag"
23238                          || test ! -s conftest.err'
23239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23240   (eval $ac_try) 2>&5
23241   ac_status=$?
23242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243   (exit $ac_status); }; } &&
23244          { ac_try='test -s conftest.$ac_objext'
23245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23246   (eval $ac_try) 2>&5
23247   ac_status=$?
23248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249   (exit $ac_status); }; }; then
23250   ac_hi=-1 ac_mid=-1
23251   while :; do
23252     cat >conftest.$ac_ext <<_ACEOF
23253 /* confdefs.h.  */
23254 _ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h.  */
23258 $ac_includes_default
23259 int
23260 main ()
23261 {
23262 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23263 test_array [0] = 0
23264
23265   ;
23266   return 0;
23267 }
23268 _ACEOF
23269 rm -f conftest.$ac_objext
23270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23271   (eval $ac_compile) 2>conftest.er1
23272   ac_status=$?
23273   grep -v '^ *+' conftest.er1 >conftest.err
23274   rm -f conftest.er1
23275   cat conftest.err >&5
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); } &&
23278          { ac_try='test -z "$ac_c_werror_flag"
23279                          || test ! -s conftest.err'
23280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281   (eval $ac_try) 2>&5
23282   ac_status=$?
23283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); }; } &&
23285          { ac_try='test -s conftest.$ac_objext'
23286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23287   (eval $ac_try) 2>&5
23288   ac_status=$?
23289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290   (exit $ac_status); }; }; then
23291   ac_lo=$ac_mid; break
23292 else
23293   echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23295
23296 ac_hi=`expr '(' $ac_mid ')' - 1`
23297                        if test $ac_mid -le $ac_hi; then
23298                          ac_lo= ac_hi=
23299                          break
23300                        fi
23301                        ac_mid=`expr 2 '*' $ac_mid`
23302 fi
23303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23304   done
23305 else
23306   echo "$as_me: failed program was:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23308
23309 ac_lo= ac_hi=
23310 fi
23311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23312 fi
23313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23314 # Binary search between lo and hi bounds.
23315 while test "x$ac_lo" != "x$ac_hi"; do
23316   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23317   cat >conftest.$ac_ext <<_ACEOF
23318 /* confdefs.h.  */
23319 _ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h.  */
23323 $ac_includes_default
23324 int
23325 main ()
23326 {
23327 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23328 test_array [0] = 0
23329
23330   ;
23331   return 0;
23332 }
23333 _ACEOF
23334 rm -f conftest.$ac_objext
23335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23336   (eval $ac_compile) 2>conftest.er1
23337   ac_status=$?
23338   grep -v '^ *+' conftest.er1 >conftest.err
23339   rm -f conftest.er1
23340   cat conftest.err >&5
23341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342   (exit $ac_status); } &&
23343          { ac_try='test -z "$ac_c_werror_flag"
23344                          || test ! -s conftest.err'
23345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23346   (eval $ac_try) 2>&5
23347   ac_status=$?
23348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349   (exit $ac_status); }; } &&
23350          { ac_try='test -s conftest.$ac_objext'
23351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352   (eval $ac_try) 2>&5
23353   ac_status=$?
23354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355   (exit $ac_status); }; }; then
23356   ac_hi=$ac_mid
23357 else
23358   echo "$as_me: failed program was:" >&5
23359 sed 's/^/| /' conftest.$ac_ext >&5
23360
23361 ac_lo=`expr '(' $ac_mid ')' + 1`
23362 fi
23363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23364 done
23365 case $ac_lo in
23366 ?*) ac_cv_sizeof_char=$ac_lo;;
23367 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23368 See \`config.log' for more details." >&5
23369 echo "$as_me: error: cannot compute sizeof (char), 77
23370 See \`config.log' for more details." >&2;}
23371    { (exit 1); exit 1; }; } ;;
23372 esac
23373 else
23374   if test "$cross_compiling" = yes; then
23375   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23376 See \`config.log' for more details." >&5
23377 echo "$as_me: error: cannot run test program while cross compiling
23378 See \`config.log' for more details." >&2;}
23379    { (exit 1); exit 1; }; }
23380 else
23381   cat >conftest.$ac_ext <<_ACEOF
23382 /* confdefs.h.  */
23383 _ACEOF
23384 cat confdefs.h >>conftest.$ac_ext
23385 cat >>conftest.$ac_ext <<_ACEOF
23386 /* end confdefs.h.  */
23387 $ac_includes_default
23388 long longval () { return (long) (sizeof (char)); }
23389 unsigned long ulongval () { return (long) (sizeof (char)); }
23390 #include <stdio.h>
23391 #include <stdlib.h>
23392 int
23393 main ()
23394 {
23395
23396   FILE *f = fopen ("conftest.val", "w");
23397   if (! f)
23398     exit (1);
23399   if (((long) (sizeof (char))) < 0)
23400     {
23401       long i = longval ();
23402       if (i != ((long) (sizeof (char))))
23403         exit (1);
23404       fprintf (f, "%ld\n", i);
23405     }
23406   else
23407     {
23408       unsigned long i = ulongval ();
23409       if (i != ((long) (sizeof (char))))
23410         exit (1);
23411       fprintf (f, "%lu\n", i);
23412     }
23413   exit (ferror (f) || fclose (f) != 0);
23414
23415   ;
23416   return 0;
23417 }
23418 _ACEOF
23419 rm -f conftest$ac_exeext
23420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23421   (eval $ac_link) 2>&5
23422   ac_status=$?
23423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23426   (eval $ac_try) 2>&5
23427   ac_status=$?
23428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429   (exit $ac_status); }; }; then
23430   ac_cv_sizeof_char=`cat conftest.val`
23431 else
23432   echo "$as_me: program exited with status $ac_status" >&5
23433 echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23435
23436 ( exit $ac_status )
23437 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23438 See \`config.log' for more details." >&5
23439 echo "$as_me: error: cannot compute sizeof (char), 77
23440 See \`config.log' for more details." >&2;}
23441    { (exit 1); exit 1; }; }
23442 fi
23443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23444 fi
23445 fi
23446 rm -f conftest.val
23447 else
23448   ac_cv_sizeof_char=0
23449 fi
23450 fi
23451 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23452 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23453 cat >>confdefs.h <<_ACEOF
23454 #define SIZEOF_CHAR $ac_cv_sizeof_char
23455 _ACEOF
23456
23457
23458 echo "$as_me:$LINENO: checking for short int" >&5
23459 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23460 if test "${ac_cv_type_short_int+set}" = set; then
23461   echo $ECHO_N "(cached) $ECHO_C" >&6
23462 else
23463   cat >conftest.$ac_ext <<_ACEOF
23464 /* confdefs.h.  */
23465 _ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h.  */
23469 $ac_includes_default
23470 int
23471 main ()
23472 {
23473 if ((short int *) 0)
23474   return 0;
23475 if (sizeof (short int))
23476   return 0;
23477   ;
23478   return 0;
23479 }
23480 _ACEOF
23481 rm -f conftest.$ac_objext
23482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23483   (eval $ac_compile) 2>conftest.er1
23484   ac_status=$?
23485   grep -v '^ *+' conftest.er1 >conftest.err
23486   rm -f conftest.er1
23487   cat conftest.err >&5
23488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489   (exit $ac_status); } &&
23490          { ac_try='test -z "$ac_c_werror_flag"
23491                          || test ! -s conftest.err'
23492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23493   (eval $ac_try) 2>&5
23494   ac_status=$?
23495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496   (exit $ac_status); }; } &&
23497          { ac_try='test -s conftest.$ac_objext'
23498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23499   (eval $ac_try) 2>&5
23500   ac_status=$?
23501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502   (exit $ac_status); }; }; then
23503   ac_cv_type_short_int=yes
23504 else
23505   echo "$as_me: failed program was:" >&5
23506 sed 's/^/| /' conftest.$ac_ext >&5
23507
23508 ac_cv_type_short_int=no
23509 fi
23510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23511 fi
23512 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23513 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23514
23515 echo "$as_me:$LINENO: checking size of short int" >&5
23516 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23517 if test "${ac_cv_sizeof_short_int+set}" = set; then
23518   echo $ECHO_N "(cached) $ECHO_C" >&6
23519 else
23520   if test "$ac_cv_type_short_int" = yes; then
23521   # The cast to unsigned long works around a bug in the HP C Compiler
23522   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23523   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23524   # This bug is HP SR number 8606223364.
23525   if test "$cross_compiling" = yes; then
23526   # Depending upon the size, compute the lo and hi bounds.
23527 cat >conftest.$ac_ext <<_ACEOF
23528 /* confdefs.h.  */
23529 _ACEOF
23530 cat confdefs.h >>conftest.$ac_ext
23531 cat >>conftest.$ac_ext <<_ACEOF
23532 /* end confdefs.h.  */
23533 $ac_includes_default
23534 int
23535 main ()
23536 {
23537 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23538 test_array [0] = 0
23539
23540   ;
23541   return 0;
23542 }
23543 _ACEOF
23544 rm -f conftest.$ac_objext
23545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23546   (eval $ac_compile) 2>conftest.er1
23547   ac_status=$?
23548   grep -v '^ *+' conftest.er1 >conftest.err
23549   rm -f conftest.er1
23550   cat conftest.err >&5
23551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552   (exit $ac_status); } &&
23553          { ac_try='test -z "$ac_c_werror_flag"
23554                          || test ! -s conftest.err'
23555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23556   (eval $ac_try) 2>&5
23557   ac_status=$?
23558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559   (exit $ac_status); }; } &&
23560          { ac_try='test -s conftest.$ac_objext'
23561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562   (eval $ac_try) 2>&5
23563   ac_status=$?
23564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565   (exit $ac_status); }; }; then
23566   ac_lo=0 ac_mid=0
23567   while :; do
23568     cat >conftest.$ac_ext <<_ACEOF
23569 /* confdefs.h.  */
23570 _ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h.  */
23574 $ac_includes_default
23575 int
23576 main ()
23577 {
23578 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23579 test_array [0] = 0
23580
23581   ;
23582   return 0;
23583 }
23584 _ACEOF
23585 rm -f conftest.$ac_objext
23586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23587   (eval $ac_compile) 2>conftest.er1
23588   ac_status=$?
23589   grep -v '^ *+' conftest.er1 >conftest.err
23590   rm -f conftest.er1
23591   cat conftest.err >&5
23592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593   (exit $ac_status); } &&
23594          { ac_try='test -z "$ac_c_werror_flag"
23595                          || test ! -s conftest.err'
23596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23597   (eval $ac_try) 2>&5
23598   ac_status=$?
23599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600   (exit $ac_status); }; } &&
23601          { ac_try='test -s conftest.$ac_objext'
23602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603   (eval $ac_try) 2>&5
23604   ac_status=$?
23605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606   (exit $ac_status); }; }; then
23607   ac_hi=$ac_mid; break
23608 else
23609   echo "$as_me: failed program was:" >&5
23610 sed 's/^/| /' conftest.$ac_ext >&5
23611
23612 ac_lo=`expr $ac_mid + 1`
23613                     if test $ac_lo -le $ac_mid; then
23614                       ac_lo= ac_hi=
23615                       break
23616                     fi
23617                     ac_mid=`expr 2 '*' $ac_mid + 1`
23618 fi
23619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23620   done
23621 else
23622   echo "$as_me: failed program was:" >&5
23623 sed 's/^/| /' conftest.$ac_ext >&5
23624
23625 cat >conftest.$ac_ext <<_ACEOF
23626 /* confdefs.h.  */
23627 _ACEOF
23628 cat confdefs.h >>conftest.$ac_ext
23629 cat >>conftest.$ac_ext <<_ACEOF
23630 /* end confdefs.h.  */
23631 $ac_includes_default
23632 int
23633 main ()
23634 {
23635 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23636 test_array [0] = 0
23637
23638   ;
23639   return 0;
23640 }
23641 _ACEOF
23642 rm -f conftest.$ac_objext
23643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23644   (eval $ac_compile) 2>conftest.er1
23645   ac_status=$?
23646   grep -v '^ *+' conftest.er1 >conftest.err
23647   rm -f conftest.er1
23648   cat conftest.err >&5
23649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650   (exit $ac_status); } &&
23651          { ac_try='test -z "$ac_c_werror_flag"
23652                          || test ! -s conftest.err'
23653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23654   (eval $ac_try) 2>&5
23655   ac_status=$?
23656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657   (exit $ac_status); }; } &&
23658          { ac_try='test -s conftest.$ac_objext'
23659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660   (eval $ac_try) 2>&5
23661   ac_status=$?
23662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663   (exit $ac_status); }; }; then
23664   ac_hi=-1 ac_mid=-1
23665   while :; do
23666     cat >conftest.$ac_ext <<_ACEOF
23667 /* confdefs.h.  */
23668 _ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h.  */
23672 $ac_includes_default
23673 int
23674 main ()
23675 {
23676 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23677 test_array [0] = 0
23678
23679   ;
23680   return 0;
23681 }
23682 _ACEOF
23683 rm -f conftest.$ac_objext
23684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23685   (eval $ac_compile) 2>conftest.er1
23686   ac_status=$?
23687   grep -v '^ *+' conftest.er1 >conftest.err
23688   rm -f conftest.er1
23689   cat conftest.err >&5
23690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691   (exit $ac_status); } &&
23692          { ac_try='test -z "$ac_c_werror_flag"
23693                          || test ! -s conftest.err'
23694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23695   (eval $ac_try) 2>&5
23696   ac_status=$?
23697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698   (exit $ac_status); }; } &&
23699          { ac_try='test -s conftest.$ac_objext'
23700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23701   (eval $ac_try) 2>&5
23702   ac_status=$?
23703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704   (exit $ac_status); }; }; then
23705   ac_lo=$ac_mid; break
23706 else
23707   echo "$as_me: failed program was:" >&5
23708 sed 's/^/| /' conftest.$ac_ext >&5
23709
23710 ac_hi=`expr '(' $ac_mid ')' - 1`
23711                        if test $ac_mid -le $ac_hi; then
23712                          ac_lo= ac_hi=
23713                          break
23714                        fi
23715                        ac_mid=`expr 2 '*' $ac_mid`
23716 fi
23717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23718   done
23719 else
23720   echo "$as_me: failed program was:" >&5
23721 sed 's/^/| /' conftest.$ac_ext >&5
23722
23723 ac_lo= ac_hi=
23724 fi
23725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23726 fi
23727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23728 # Binary search between lo and hi bounds.
23729 while test "x$ac_lo" != "x$ac_hi"; do
23730   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23731   cat >conftest.$ac_ext <<_ACEOF
23732 /* confdefs.h.  */
23733 _ACEOF
23734 cat confdefs.h >>conftest.$ac_ext
23735 cat >>conftest.$ac_ext <<_ACEOF
23736 /* end confdefs.h.  */
23737 $ac_includes_default
23738 int
23739 main ()
23740 {
23741 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23742 test_array [0] = 0
23743
23744   ;
23745   return 0;
23746 }
23747 _ACEOF
23748 rm -f conftest.$ac_objext
23749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23750   (eval $ac_compile) 2>conftest.er1
23751   ac_status=$?
23752   grep -v '^ *+' conftest.er1 >conftest.err
23753   rm -f conftest.er1
23754   cat conftest.err >&5
23755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756   (exit $ac_status); } &&
23757          { ac_try='test -z "$ac_c_werror_flag"
23758                          || test ! -s conftest.err'
23759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23760   (eval $ac_try) 2>&5
23761   ac_status=$?
23762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763   (exit $ac_status); }; } &&
23764          { ac_try='test -s conftest.$ac_objext'
23765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23766   (eval $ac_try) 2>&5
23767   ac_status=$?
23768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769   (exit $ac_status); }; }; then
23770   ac_hi=$ac_mid
23771 else
23772   echo "$as_me: failed program was:" >&5
23773 sed 's/^/| /' conftest.$ac_ext >&5
23774
23775 ac_lo=`expr '(' $ac_mid ')' + 1`
23776 fi
23777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23778 done
23779 case $ac_lo in
23780 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23781 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23782 See \`config.log' for more details." >&5
23783 echo "$as_me: error: cannot compute sizeof (short int), 77
23784 See \`config.log' for more details." >&2;}
23785    { (exit 1); exit 1; }; } ;;
23786 esac
23787 else
23788   if test "$cross_compiling" = yes; then
23789   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23790 See \`config.log' for more details." >&5
23791 echo "$as_me: error: cannot run test program while cross compiling
23792 See \`config.log' for more details." >&2;}
23793    { (exit 1); exit 1; }; }
23794 else
23795   cat >conftest.$ac_ext <<_ACEOF
23796 /* confdefs.h.  */
23797 _ACEOF
23798 cat confdefs.h >>conftest.$ac_ext
23799 cat >>conftest.$ac_ext <<_ACEOF
23800 /* end confdefs.h.  */
23801 $ac_includes_default
23802 long longval () { return (long) (sizeof (short int)); }
23803 unsigned long ulongval () { return (long) (sizeof (short int)); }
23804 #include <stdio.h>
23805 #include <stdlib.h>
23806 int
23807 main ()
23808 {
23809
23810   FILE *f = fopen ("conftest.val", "w");
23811   if (! f)
23812     exit (1);
23813   if (((long) (sizeof (short int))) < 0)
23814     {
23815       long i = longval ();
23816       if (i != ((long) (sizeof (short int))))
23817         exit (1);
23818       fprintf (f, "%ld\n", i);
23819     }
23820   else
23821     {
23822       unsigned long i = ulongval ();
23823       if (i != ((long) (sizeof (short int))))
23824         exit (1);
23825       fprintf (f, "%lu\n", i);
23826     }
23827   exit (ferror (f) || fclose (f) != 0);
23828
23829   ;
23830   return 0;
23831 }
23832 _ACEOF
23833 rm -f conftest$ac_exeext
23834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23835   (eval $ac_link) 2>&5
23836   ac_status=$?
23837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23840   (eval $ac_try) 2>&5
23841   ac_status=$?
23842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843   (exit $ac_status); }; }; then
23844   ac_cv_sizeof_short_int=`cat conftest.val`
23845 else
23846   echo "$as_me: program exited with status $ac_status" >&5
23847 echo "$as_me: failed program was:" >&5
23848 sed 's/^/| /' conftest.$ac_ext >&5
23849
23850 ( exit $ac_status )
23851 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23852 See \`config.log' for more details." >&5
23853 echo "$as_me: error: cannot compute sizeof (short int), 77
23854 See \`config.log' for more details." >&2;}
23855    { (exit 1); exit 1; }; }
23856 fi
23857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23858 fi
23859 fi
23860 rm -f conftest.val
23861 else
23862   ac_cv_sizeof_short_int=0
23863 fi
23864 fi
23865 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23866 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23867 cat >>confdefs.h <<_ACEOF
23868 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23869 _ACEOF
23870
23871
23872 echo "$as_me:$LINENO: checking for int" >&5
23873 echo $ECHO_N "checking for int... $ECHO_C" >&6
23874 if test "${ac_cv_type_int+set}" = set; then
23875   echo $ECHO_N "(cached) $ECHO_C" >&6
23876 else
23877   cat >conftest.$ac_ext <<_ACEOF
23878 /* confdefs.h.  */
23879 _ACEOF
23880 cat confdefs.h >>conftest.$ac_ext
23881 cat >>conftest.$ac_ext <<_ACEOF
23882 /* end confdefs.h.  */
23883 $ac_includes_default
23884 int
23885 main ()
23886 {
23887 if ((int *) 0)
23888   return 0;
23889 if (sizeof (int))
23890   return 0;
23891   ;
23892   return 0;
23893 }
23894 _ACEOF
23895 rm -f conftest.$ac_objext
23896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23897   (eval $ac_compile) 2>conftest.er1
23898   ac_status=$?
23899   grep -v '^ *+' conftest.er1 >conftest.err
23900   rm -f conftest.er1
23901   cat conftest.err >&5
23902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903   (exit $ac_status); } &&
23904          { ac_try='test -z "$ac_c_werror_flag"
23905                          || test ! -s conftest.err'
23906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23907   (eval $ac_try) 2>&5
23908   ac_status=$?
23909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910   (exit $ac_status); }; } &&
23911          { ac_try='test -s conftest.$ac_objext'
23912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23913   (eval $ac_try) 2>&5
23914   ac_status=$?
23915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916   (exit $ac_status); }; }; then
23917   ac_cv_type_int=yes
23918 else
23919   echo "$as_me: failed program was:" >&5
23920 sed 's/^/| /' conftest.$ac_ext >&5
23921
23922 ac_cv_type_int=no
23923 fi
23924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23925 fi
23926 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23927 echo "${ECHO_T}$ac_cv_type_int" >&6
23928
23929 echo "$as_me:$LINENO: checking size of int" >&5
23930 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23931 if test "${ac_cv_sizeof_int+set}" = set; then
23932   echo $ECHO_N "(cached) $ECHO_C" >&6
23933 else
23934   if test "$ac_cv_type_int" = yes; then
23935   # The cast to unsigned long works around a bug in the HP C Compiler
23936   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23937   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23938   # This bug is HP SR number 8606223364.
23939   if test "$cross_compiling" = yes; then
23940   # Depending upon the size, compute the lo and hi bounds.
23941 cat >conftest.$ac_ext <<_ACEOF
23942 /* confdefs.h.  */
23943 _ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h.  */
23947 $ac_includes_default
23948 int
23949 main ()
23950 {
23951 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23952 test_array [0] = 0
23953
23954   ;
23955   return 0;
23956 }
23957 _ACEOF
23958 rm -f conftest.$ac_objext
23959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23960   (eval $ac_compile) 2>conftest.er1
23961   ac_status=$?
23962   grep -v '^ *+' conftest.er1 >conftest.err
23963   rm -f conftest.er1
23964   cat conftest.err >&5
23965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966   (exit $ac_status); } &&
23967          { ac_try='test -z "$ac_c_werror_flag"
23968                          || test ! -s conftest.err'
23969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23970   (eval $ac_try) 2>&5
23971   ac_status=$?
23972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973   (exit $ac_status); }; } &&
23974          { ac_try='test -s conftest.$ac_objext'
23975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23976   (eval $ac_try) 2>&5
23977   ac_status=$?
23978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979   (exit $ac_status); }; }; then
23980   ac_lo=0 ac_mid=0
23981   while :; do
23982     cat >conftest.$ac_ext <<_ACEOF
23983 /* confdefs.h.  */
23984 _ACEOF
23985 cat confdefs.h >>conftest.$ac_ext
23986 cat >>conftest.$ac_ext <<_ACEOF
23987 /* end confdefs.h.  */
23988 $ac_includes_default
23989 int
23990 main ()
23991 {
23992 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23993 test_array [0] = 0
23994
23995   ;
23996   return 0;
23997 }
23998 _ACEOF
23999 rm -f conftest.$ac_objext
24000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24001   (eval $ac_compile) 2>conftest.er1
24002   ac_status=$?
24003   grep -v '^ *+' conftest.er1 >conftest.err
24004   rm -f conftest.er1
24005   cat conftest.err >&5
24006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007   (exit $ac_status); } &&
24008          { ac_try='test -z "$ac_c_werror_flag"
24009                          || test ! -s conftest.err'
24010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24011   (eval $ac_try) 2>&5
24012   ac_status=$?
24013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014   (exit $ac_status); }; } &&
24015          { ac_try='test -s conftest.$ac_objext'
24016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24017   (eval $ac_try) 2>&5
24018   ac_status=$?
24019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020   (exit $ac_status); }; }; then
24021   ac_hi=$ac_mid; break
24022 else
24023   echo "$as_me: failed program was:" >&5
24024 sed 's/^/| /' conftest.$ac_ext >&5
24025
24026 ac_lo=`expr $ac_mid + 1`
24027                     if test $ac_lo -le $ac_mid; then
24028                       ac_lo= ac_hi=
24029                       break
24030                     fi
24031                     ac_mid=`expr 2 '*' $ac_mid + 1`
24032 fi
24033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24034   done
24035 else
24036   echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24038
24039 cat >conftest.$ac_ext <<_ACEOF
24040 /* confdefs.h.  */
24041 _ACEOF
24042 cat confdefs.h >>conftest.$ac_ext
24043 cat >>conftest.$ac_ext <<_ACEOF
24044 /* end confdefs.h.  */
24045 $ac_includes_default
24046 int
24047 main ()
24048 {
24049 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
24050 test_array [0] = 0
24051
24052   ;
24053   return 0;
24054 }
24055 _ACEOF
24056 rm -f conftest.$ac_objext
24057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24058   (eval $ac_compile) 2>conftest.er1
24059   ac_status=$?
24060   grep -v '^ *+' conftest.er1 >conftest.err
24061   rm -f conftest.er1
24062   cat conftest.err >&5
24063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064   (exit $ac_status); } &&
24065          { ac_try='test -z "$ac_c_werror_flag"
24066                          || test ! -s conftest.err'
24067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24068   (eval $ac_try) 2>&5
24069   ac_status=$?
24070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071   (exit $ac_status); }; } &&
24072          { ac_try='test -s conftest.$ac_objext'
24073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24074   (eval $ac_try) 2>&5
24075   ac_status=$?
24076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077   (exit $ac_status); }; }; then
24078   ac_hi=-1 ac_mid=-1
24079   while :; do
24080     cat >conftest.$ac_ext <<_ACEOF
24081 /* confdefs.h.  */
24082 _ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h.  */
24086 $ac_includes_default
24087 int
24088 main ()
24089 {
24090 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
24091 test_array [0] = 0
24092
24093   ;
24094   return 0;
24095 }
24096 _ACEOF
24097 rm -f conftest.$ac_objext
24098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24099   (eval $ac_compile) 2>conftest.er1
24100   ac_status=$?
24101   grep -v '^ *+' conftest.er1 >conftest.err
24102   rm -f conftest.er1
24103   cat conftest.err >&5
24104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105   (exit $ac_status); } &&
24106          { ac_try='test -z "$ac_c_werror_flag"
24107                          || test ! -s conftest.err'
24108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24109   (eval $ac_try) 2>&5
24110   ac_status=$?
24111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112   (exit $ac_status); }; } &&
24113          { ac_try='test -s conftest.$ac_objext'
24114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24115   (eval $ac_try) 2>&5
24116   ac_status=$?
24117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118   (exit $ac_status); }; }; then
24119   ac_lo=$ac_mid; break
24120 else
24121   echo "$as_me: failed program was:" >&5
24122 sed 's/^/| /' conftest.$ac_ext >&5
24123
24124 ac_hi=`expr '(' $ac_mid ')' - 1`
24125                        if test $ac_mid -le $ac_hi; then
24126                          ac_lo= ac_hi=
24127                          break
24128                        fi
24129                        ac_mid=`expr 2 '*' $ac_mid`
24130 fi
24131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24132   done
24133 else
24134   echo "$as_me: failed program was:" >&5
24135 sed 's/^/| /' conftest.$ac_ext >&5
24136
24137 ac_lo= ac_hi=
24138 fi
24139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24140 fi
24141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24142 # Binary search between lo and hi bounds.
24143 while test "x$ac_lo" != "x$ac_hi"; do
24144   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24145   cat >conftest.$ac_ext <<_ACEOF
24146 /* confdefs.h.  */
24147 _ACEOF
24148 cat confdefs.h >>conftest.$ac_ext
24149 cat >>conftest.$ac_ext <<_ACEOF
24150 /* end confdefs.h.  */
24151 $ac_includes_default
24152 int
24153 main ()
24154 {
24155 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24156 test_array [0] = 0
24157
24158   ;
24159   return 0;
24160 }
24161 _ACEOF
24162 rm -f conftest.$ac_objext
24163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24164   (eval $ac_compile) 2>conftest.er1
24165   ac_status=$?
24166   grep -v '^ *+' conftest.er1 >conftest.err
24167   rm -f conftest.er1
24168   cat conftest.err >&5
24169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170   (exit $ac_status); } &&
24171          { ac_try='test -z "$ac_c_werror_flag"
24172                          || test ! -s conftest.err'
24173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24174   (eval $ac_try) 2>&5
24175   ac_status=$?
24176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177   (exit $ac_status); }; } &&
24178          { ac_try='test -s conftest.$ac_objext'
24179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24180   (eval $ac_try) 2>&5
24181   ac_status=$?
24182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183   (exit $ac_status); }; }; then
24184   ac_hi=$ac_mid
24185 else
24186   echo "$as_me: failed program was:" >&5
24187 sed 's/^/| /' conftest.$ac_ext >&5
24188
24189 ac_lo=`expr '(' $ac_mid ')' + 1`
24190 fi
24191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24192 done
24193 case $ac_lo in
24194 ?*) ac_cv_sizeof_int=$ac_lo;;
24195 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24196 See \`config.log' for more details." >&5
24197 echo "$as_me: error: cannot compute sizeof (int), 77
24198 See \`config.log' for more details." >&2;}
24199    { (exit 1); exit 1; }; } ;;
24200 esac
24201 else
24202   if test "$cross_compiling" = yes; then
24203   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24204 See \`config.log' for more details." >&5
24205 echo "$as_me: error: cannot run test program while cross compiling
24206 See \`config.log' for more details." >&2;}
24207    { (exit 1); exit 1; }; }
24208 else
24209   cat >conftest.$ac_ext <<_ACEOF
24210 /* confdefs.h.  */
24211 _ACEOF
24212 cat confdefs.h >>conftest.$ac_ext
24213 cat >>conftest.$ac_ext <<_ACEOF
24214 /* end confdefs.h.  */
24215 $ac_includes_default
24216 long longval () { return (long) (sizeof (int)); }
24217 unsigned long ulongval () { return (long) (sizeof (int)); }
24218 #include <stdio.h>
24219 #include <stdlib.h>
24220 int
24221 main ()
24222 {
24223
24224   FILE *f = fopen ("conftest.val", "w");
24225   if (! f)
24226     exit (1);
24227   if (((long) (sizeof (int))) < 0)
24228     {
24229       long i = longval ();
24230       if (i != ((long) (sizeof (int))))
24231         exit (1);
24232       fprintf (f, "%ld\n", i);
24233     }
24234   else
24235     {
24236       unsigned long i = ulongval ();
24237       if (i != ((long) (sizeof (int))))
24238         exit (1);
24239       fprintf (f, "%lu\n", i);
24240     }
24241   exit (ferror (f) || fclose (f) != 0);
24242
24243   ;
24244   return 0;
24245 }
24246 _ACEOF
24247 rm -f conftest$ac_exeext
24248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24249   (eval $ac_link) 2>&5
24250   ac_status=$?
24251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24254   (eval $ac_try) 2>&5
24255   ac_status=$?
24256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257   (exit $ac_status); }; }; then
24258   ac_cv_sizeof_int=`cat conftest.val`
24259 else
24260   echo "$as_me: program exited with status $ac_status" >&5
24261 echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24263
24264 ( exit $ac_status )
24265 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24266 See \`config.log' for more details." >&5
24267 echo "$as_me: error: cannot compute sizeof (int), 77
24268 See \`config.log' for more details." >&2;}
24269    { (exit 1); exit 1; }; }
24270 fi
24271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24272 fi
24273 fi
24274 rm -f conftest.val
24275 else
24276   ac_cv_sizeof_int=0
24277 fi
24278 fi
24279 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24280 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24281 cat >>confdefs.h <<_ACEOF
24282 #define SIZEOF_INT $ac_cv_sizeof_int
24283 _ACEOF
24284
24285
24286 echo "$as_me:$LINENO: checking for long int" >&5
24287 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24288 if test "${ac_cv_type_long_int+set}" = set; then
24289   echo $ECHO_N "(cached) $ECHO_C" >&6
24290 else
24291   cat >conftest.$ac_ext <<_ACEOF
24292 /* confdefs.h.  */
24293 _ACEOF
24294 cat confdefs.h >>conftest.$ac_ext
24295 cat >>conftest.$ac_ext <<_ACEOF
24296 /* end confdefs.h.  */
24297 $ac_includes_default
24298 int
24299 main ()
24300 {
24301 if ((long int *) 0)
24302   return 0;
24303 if (sizeof (long int))
24304   return 0;
24305   ;
24306   return 0;
24307 }
24308 _ACEOF
24309 rm -f conftest.$ac_objext
24310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24311   (eval $ac_compile) 2>conftest.er1
24312   ac_status=$?
24313   grep -v '^ *+' conftest.er1 >conftest.err
24314   rm -f conftest.er1
24315   cat conftest.err >&5
24316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317   (exit $ac_status); } &&
24318          { ac_try='test -z "$ac_c_werror_flag"
24319                          || test ! -s conftest.err'
24320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24321   (eval $ac_try) 2>&5
24322   ac_status=$?
24323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324   (exit $ac_status); }; } &&
24325          { ac_try='test -s conftest.$ac_objext'
24326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327   (eval $ac_try) 2>&5
24328   ac_status=$?
24329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330   (exit $ac_status); }; }; then
24331   ac_cv_type_long_int=yes
24332 else
24333   echo "$as_me: failed program was:" >&5
24334 sed 's/^/| /' conftest.$ac_ext >&5
24335
24336 ac_cv_type_long_int=no
24337 fi
24338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24339 fi
24340 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24341 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24342
24343 echo "$as_me:$LINENO: checking size of long int" >&5
24344 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24345 if test "${ac_cv_sizeof_long_int+set}" = set; then
24346   echo $ECHO_N "(cached) $ECHO_C" >&6
24347 else
24348   if test "$ac_cv_type_long_int" = yes; then
24349   # The cast to unsigned long works around a bug in the HP C Compiler
24350   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24351   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24352   # This bug is HP SR number 8606223364.
24353   if test "$cross_compiling" = yes; then
24354   # Depending upon the size, compute the lo and hi bounds.
24355 cat >conftest.$ac_ext <<_ACEOF
24356 /* confdefs.h.  */
24357 _ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h.  */
24361 $ac_includes_default
24362 int
24363 main ()
24364 {
24365 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24366 test_array [0] = 0
24367
24368   ;
24369   return 0;
24370 }
24371 _ACEOF
24372 rm -f conftest.$ac_objext
24373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24374   (eval $ac_compile) 2>conftest.er1
24375   ac_status=$?
24376   grep -v '^ *+' conftest.er1 >conftest.err
24377   rm -f conftest.er1
24378   cat conftest.err >&5
24379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380   (exit $ac_status); } &&
24381          { ac_try='test -z "$ac_c_werror_flag"
24382                          || test ! -s conftest.err'
24383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384   (eval $ac_try) 2>&5
24385   ac_status=$?
24386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387   (exit $ac_status); }; } &&
24388          { ac_try='test -s conftest.$ac_objext'
24389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24390   (eval $ac_try) 2>&5
24391   ac_status=$?
24392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393   (exit $ac_status); }; }; then
24394   ac_lo=0 ac_mid=0
24395   while :; do
24396     cat >conftest.$ac_ext <<_ACEOF
24397 /* confdefs.h.  */
24398 _ACEOF
24399 cat confdefs.h >>conftest.$ac_ext
24400 cat >>conftest.$ac_ext <<_ACEOF
24401 /* end confdefs.h.  */
24402 $ac_includes_default
24403 int
24404 main ()
24405 {
24406 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24407 test_array [0] = 0
24408
24409   ;
24410   return 0;
24411 }
24412 _ACEOF
24413 rm -f conftest.$ac_objext
24414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24415   (eval $ac_compile) 2>conftest.er1
24416   ac_status=$?
24417   grep -v '^ *+' conftest.er1 >conftest.err
24418   rm -f conftest.er1
24419   cat conftest.err >&5
24420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421   (exit $ac_status); } &&
24422          { ac_try='test -z "$ac_c_werror_flag"
24423                          || test ! -s conftest.err'
24424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24425   (eval $ac_try) 2>&5
24426   ac_status=$?
24427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428   (exit $ac_status); }; } &&
24429          { ac_try='test -s conftest.$ac_objext'
24430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24431   (eval $ac_try) 2>&5
24432   ac_status=$?
24433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434   (exit $ac_status); }; }; then
24435   ac_hi=$ac_mid; break
24436 else
24437   echo "$as_me: failed program was:" >&5
24438 sed 's/^/| /' conftest.$ac_ext >&5
24439
24440 ac_lo=`expr $ac_mid + 1`
24441                     if test $ac_lo -le $ac_mid; then
24442                       ac_lo= ac_hi=
24443                       break
24444                     fi
24445                     ac_mid=`expr 2 '*' $ac_mid + 1`
24446 fi
24447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24448   done
24449 else
24450   echo "$as_me: failed program was:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24452
24453 cat >conftest.$ac_ext <<_ACEOF
24454 /* confdefs.h.  */
24455 _ACEOF
24456 cat confdefs.h >>conftest.$ac_ext
24457 cat >>conftest.$ac_ext <<_ACEOF
24458 /* end confdefs.h.  */
24459 $ac_includes_default
24460 int
24461 main ()
24462 {
24463 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24464 test_array [0] = 0
24465
24466   ;
24467   return 0;
24468 }
24469 _ACEOF
24470 rm -f conftest.$ac_objext
24471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24472   (eval $ac_compile) 2>conftest.er1
24473   ac_status=$?
24474   grep -v '^ *+' conftest.er1 >conftest.err
24475   rm -f conftest.er1
24476   cat conftest.err >&5
24477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478   (exit $ac_status); } &&
24479          { ac_try='test -z "$ac_c_werror_flag"
24480                          || test ! -s conftest.err'
24481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24482   (eval $ac_try) 2>&5
24483   ac_status=$?
24484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485   (exit $ac_status); }; } &&
24486          { ac_try='test -s conftest.$ac_objext'
24487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24488   (eval $ac_try) 2>&5
24489   ac_status=$?
24490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491   (exit $ac_status); }; }; then
24492   ac_hi=-1 ac_mid=-1
24493   while :; do
24494     cat >conftest.$ac_ext <<_ACEOF
24495 /* confdefs.h.  */
24496 _ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h.  */
24500 $ac_includes_default
24501 int
24502 main ()
24503 {
24504 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24505 test_array [0] = 0
24506
24507   ;
24508   return 0;
24509 }
24510 _ACEOF
24511 rm -f conftest.$ac_objext
24512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24513   (eval $ac_compile) 2>conftest.er1
24514   ac_status=$?
24515   grep -v '^ *+' conftest.er1 >conftest.err
24516   rm -f conftest.er1
24517   cat conftest.err >&5
24518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519   (exit $ac_status); } &&
24520          { ac_try='test -z "$ac_c_werror_flag"
24521                          || test ! -s conftest.err'
24522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24523   (eval $ac_try) 2>&5
24524   ac_status=$?
24525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526   (exit $ac_status); }; } &&
24527          { ac_try='test -s conftest.$ac_objext'
24528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24529   (eval $ac_try) 2>&5
24530   ac_status=$?
24531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532   (exit $ac_status); }; }; then
24533   ac_lo=$ac_mid; break
24534 else
24535   echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24537
24538 ac_hi=`expr '(' $ac_mid ')' - 1`
24539                        if test $ac_mid -le $ac_hi; then
24540                          ac_lo= ac_hi=
24541                          break
24542                        fi
24543                        ac_mid=`expr 2 '*' $ac_mid`
24544 fi
24545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24546   done
24547 else
24548   echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24550
24551 ac_lo= ac_hi=
24552 fi
24553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24554 fi
24555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24556 # Binary search between lo and hi bounds.
24557 while test "x$ac_lo" != "x$ac_hi"; do
24558   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24559   cat >conftest.$ac_ext <<_ACEOF
24560 /* confdefs.h.  */
24561 _ACEOF
24562 cat confdefs.h >>conftest.$ac_ext
24563 cat >>conftest.$ac_ext <<_ACEOF
24564 /* end confdefs.h.  */
24565 $ac_includes_default
24566 int
24567 main ()
24568 {
24569 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24570 test_array [0] = 0
24571
24572   ;
24573   return 0;
24574 }
24575 _ACEOF
24576 rm -f conftest.$ac_objext
24577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24578   (eval $ac_compile) 2>conftest.er1
24579   ac_status=$?
24580   grep -v '^ *+' conftest.er1 >conftest.err
24581   rm -f conftest.er1
24582   cat conftest.err >&5
24583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584   (exit $ac_status); } &&
24585          { ac_try='test -z "$ac_c_werror_flag"
24586                          || test ! -s conftest.err'
24587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24588   (eval $ac_try) 2>&5
24589   ac_status=$?
24590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591   (exit $ac_status); }; } &&
24592          { ac_try='test -s conftest.$ac_objext'
24593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24594   (eval $ac_try) 2>&5
24595   ac_status=$?
24596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597   (exit $ac_status); }; }; then
24598   ac_hi=$ac_mid
24599 else
24600   echo "$as_me: failed program was:" >&5
24601 sed 's/^/| /' conftest.$ac_ext >&5
24602
24603 ac_lo=`expr '(' $ac_mid ')' + 1`
24604 fi
24605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24606 done
24607 case $ac_lo in
24608 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24609 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24610 See \`config.log' for more details." >&5
24611 echo "$as_me: error: cannot compute sizeof (long int), 77
24612 See \`config.log' for more details." >&2;}
24613    { (exit 1); exit 1; }; } ;;
24614 esac
24615 else
24616   if test "$cross_compiling" = yes; then
24617   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24618 See \`config.log' for more details." >&5
24619 echo "$as_me: error: cannot run test program while cross compiling
24620 See \`config.log' for more details." >&2;}
24621    { (exit 1); exit 1; }; }
24622 else
24623   cat >conftest.$ac_ext <<_ACEOF
24624 /* confdefs.h.  */
24625 _ACEOF
24626 cat confdefs.h >>conftest.$ac_ext
24627 cat >>conftest.$ac_ext <<_ACEOF
24628 /* end confdefs.h.  */
24629 $ac_includes_default
24630 long longval () { return (long) (sizeof (long int)); }
24631 unsigned long ulongval () { return (long) (sizeof (long int)); }
24632 #include <stdio.h>
24633 #include <stdlib.h>
24634 int
24635 main ()
24636 {
24637
24638   FILE *f = fopen ("conftest.val", "w");
24639   if (! f)
24640     exit (1);
24641   if (((long) (sizeof (long int))) < 0)
24642     {
24643       long i = longval ();
24644       if (i != ((long) (sizeof (long int))))
24645         exit (1);
24646       fprintf (f, "%ld\n", i);
24647     }
24648   else
24649     {
24650       unsigned long i = ulongval ();
24651       if (i != ((long) (sizeof (long int))))
24652         exit (1);
24653       fprintf (f, "%lu\n", i);
24654     }
24655   exit (ferror (f) || fclose (f) != 0);
24656
24657   ;
24658   return 0;
24659 }
24660 _ACEOF
24661 rm -f conftest$ac_exeext
24662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24663   (eval $ac_link) 2>&5
24664   ac_status=$?
24665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24668   (eval $ac_try) 2>&5
24669   ac_status=$?
24670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671   (exit $ac_status); }; }; then
24672   ac_cv_sizeof_long_int=`cat conftest.val`
24673 else
24674   echo "$as_me: program exited with status $ac_status" >&5
24675 echo "$as_me: failed program was:" >&5
24676 sed 's/^/| /' conftest.$ac_ext >&5
24677
24678 ( exit $ac_status )
24679 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24680 See \`config.log' for more details." >&5
24681 echo "$as_me: error: cannot compute sizeof (long int), 77
24682 See \`config.log' for more details." >&2;}
24683    { (exit 1); exit 1; }; }
24684 fi
24685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24686 fi
24687 fi
24688 rm -f conftest.val
24689 else
24690   ac_cv_sizeof_long_int=0
24691 fi
24692 fi
24693 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24694 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24695 cat >>confdefs.h <<_ACEOF
24696 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24697 _ACEOF
24698
24699
24700 echo "$as_me:$LINENO: checking for long long int" >&5
24701 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24702 if test "${ac_cv_type_long_long_int+set}" = set; then
24703   echo $ECHO_N "(cached) $ECHO_C" >&6
24704 else
24705   cat >conftest.$ac_ext <<_ACEOF
24706 /* confdefs.h.  */
24707 _ACEOF
24708 cat confdefs.h >>conftest.$ac_ext
24709 cat >>conftest.$ac_ext <<_ACEOF
24710 /* end confdefs.h.  */
24711 $ac_includes_default
24712 int
24713 main ()
24714 {
24715 if ((long long int *) 0)
24716   return 0;
24717 if (sizeof (long long int))
24718   return 0;
24719   ;
24720   return 0;
24721 }
24722 _ACEOF
24723 rm -f conftest.$ac_objext
24724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24725   (eval $ac_compile) 2>conftest.er1
24726   ac_status=$?
24727   grep -v '^ *+' conftest.er1 >conftest.err
24728   rm -f conftest.er1
24729   cat conftest.err >&5
24730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731   (exit $ac_status); } &&
24732          { ac_try='test -z "$ac_c_werror_flag"
24733                          || test ! -s conftest.err'
24734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735   (eval $ac_try) 2>&5
24736   ac_status=$?
24737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738   (exit $ac_status); }; } &&
24739          { ac_try='test -s conftest.$ac_objext'
24740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24741   (eval $ac_try) 2>&5
24742   ac_status=$?
24743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744   (exit $ac_status); }; }; then
24745   ac_cv_type_long_long_int=yes
24746 else
24747   echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.$ac_ext >&5
24749
24750 ac_cv_type_long_long_int=no
24751 fi
24752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24753 fi
24754 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24755 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24756
24757 echo "$as_me:$LINENO: checking size of long long int" >&5
24758 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24759 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24760   echo $ECHO_N "(cached) $ECHO_C" >&6
24761 else
24762   if test "$ac_cv_type_long_long_int" = yes; then
24763   # The cast to unsigned long works around a bug in the HP C Compiler
24764   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24765   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24766   # This bug is HP SR number 8606223364.
24767   if test "$cross_compiling" = yes; then
24768   # Depending upon the size, compute the lo and hi bounds.
24769 cat >conftest.$ac_ext <<_ACEOF
24770 /* confdefs.h.  */
24771 _ACEOF
24772 cat confdefs.h >>conftest.$ac_ext
24773 cat >>conftest.$ac_ext <<_ACEOF
24774 /* end confdefs.h.  */
24775 $ac_includes_default
24776 int
24777 main ()
24778 {
24779 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24780 test_array [0] = 0
24781
24782   ;
24783   return 0;
24784 }
24785 _ACEOF
24786 rm -f conftest.$ac_objext
24787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24788   (eval $ac_compile) 2>conftest.er1
24789   ac_status=$?
24790   grep -v '^ *+' conftest.er1 >conftest.err
24791   rm -f conftest.er1
24792   cat conftest.err >&5
24793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794   (exit $ac_status); } &&
24795          { ac_try='test -z "$ac_c_werror_flag"
24796                          || test ! -s conftest.err'
24797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24798   (eval $ac_try) 2>&5
24799   ac_status=$?
24800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801   (exit $ac_status); }; } &&
24802          { ac_try='test -s conftest.$ac_objext'
24803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24804   (eval $ac_try) 2>&5
24805   ac_status=$?
24806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807   (exit $ac_status); }; }; then
24808   ac_lo=0 ac_mid=0
24809   while :; do
24810     cat >conftest.$ac_ext <<_ACEOF
24811 /* confdefs.h.  */
24812 _ACEOF
24813 cat confdefs.h >>conftest.$ac_ext
24814 cat >>conftest.$ac_ext <<_ACEOF
24815 /* end confdefs.h.  */
24816 $ac_includes_default
24817 int
24818 main ()
24819 {
24820 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24821 test_array [0] = 0
24822
24823   ;
24824   return 0;
24825 }
24826 _ACEOF
24827 rm -f conftest.$ac_objext
24828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24829   (eval $ac_compile) 2>conftest.er1
24830   ac_status=$?
24831   grep -v '^ *+' conftest.er1 >conftest.err
24832   rm -f conftest.er1
24833   cat conftest.err >&5
24834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835   (exit $ac_status); } &&
24836          { ac_try='test -z "$ac_c_werror_flag"
24837                          || test ! -s conftest.err'
24838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24839   (eval $ac_try) 2>&5
24840   ac_status=$?
24841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842   (exit $ac_status); }; } &&
24843          { ac_try='test -s conftest.$ac_objext'
24844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24845   (eval $ac_try) 2>&5
24846   ac_status=$?
24847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848   (exit $ac_status); }; }; then
24849   ac_hi=$ac_mid; break
24850 else
24851   echo "$as_me: failed program was:" >&5
24852 sed 's/^/| /' conftest.$ac_ext >&5
24853
24854 ac_lo=`expr $ac_mid + 1`
24855                     if test $ac_lo -le $ac_mid; then
24856                       ac_lo= ac_hi=
24857                       break
24858                     fi
24859                     ac_mid=`expr 2 '*' $ac_mid + 1`
24860 fi
24861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24862   done
24863 else
24864   echo "$as_me: failed program was:" >&5
24865 sed 's/^/| /' conftest.$ac_ext >&5
24866
24867 cat >conftest.$ac_ext <<_ACEOF
24868 /* confdefs.h.  */
24869 _ACEOF
24870 cat confdefs.h >>conftest.$ac_ext
24871 cat >>conftest.$ac_ext <<_ACEOF
24872 /* end confdefs.h.  */
24873 $ac_includes_default
24874 int
24875 main ()
24876 {
24877 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24878 test_array [0] = 0
24879
24880   ;
24881   return 0;
24882 }
24883 _ACEOF
24884 rm -f conftest.$ac_objext
24885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24886   (eval $ac_compile) 2>conftest.er1
24887   ac_status=$?
24888   grep -v '^ *+' conftest.er1 >conftest.err
24889   rm -f conftest.er1
24890   cat conftest.err >&5
24891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892   (exit $ac_status); } &&
24893          { ac_try='test -z "$ac_c_werror_flag"
24894                          || test ! -s conftest.err'
24895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24896   (eval $ac_try) 2>&5
24897   ac_status=$?
24898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899   (exit $ac_status); }; } &&
24900          { ac_try='test -s conftest.$ac_objext'
24901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24902   (eval $ac_try) 2>&5
24903   ac_status=$?
24904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905   (exit $ac_status); }; }; then
24906   ac_hi=-1 ac_mid=-1
24907   while :; do
24908     cat >conftest.$ac_ext <<_ACEOF
24909 /* confdefs.h.  */
24910 _ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h.  */
24914 $ac_includes_default
24915 int
24916 main ()
24917 {
24918 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24919 test_array [0] = 0
24920
24921   ;
24922   return 0;
24923 }
24924 _ACEOF
24925 rm -f conftest.$ac_objext
24926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24927   (eval $ac_compile) 2>conftest.er1
24928   ac_status=$?
24929   grep -v '^ *+' conftest.er1 >conftest.err
24930   rm -f conftest.er1
24931   cat conftest.err >&5
24932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933   (exit $ac_status); } &&
24934          { ac_try='test -z "$ac_c_werror_flag"
24935                          || test ! -s conftest.err'
24936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24937   (eval $ac_try) 2>&5
24938   ac_status=$?
24939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940   (exit $ac_status); }; } &&
24941          { ac_try='test -s conftest.$ac_objext'
24942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24943   (eval $ac_try) 2>&5
24944   ac_status=$?
24945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946   (exit $ac_status); }; }; then
24947   ac_lo=$ac_mid; break
24948 else
24949   echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24951
24952 ac_hi=`expr '(' $ac_mid ')' - 1`
24953                        if test $ac_mid -le $ac_hi; then
24954                          ac_lo= ac_hi=
24955                          break
24956                        fi
24957                        ac_mid=`expr 2 '*' $ac_mid`
24958 fi
24959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24960   done
24961 else
24962   echo "$as_me: failed program was:" >&5
24963 sed 's/^/| /' conftest.$ac_ext >&5
24964
24965 ac_lo= ac_hi=
24966 fi
24967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24968 fi
24969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24970 # Binary search between lo and hi bounds.
24971 while test "x$ac_lo" != "x$ac_hi"; do
24972   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24973   cat >conftest.$ac_ext <<_ACEOF
24974 /* confdefs.h.  */
24975 _ACEOF
24976 cat confdefs.h >>conftest.$ac_ext
24977 cat >>conftest.$ac_ext <<_ACEOF
24978 /* end confdefs.h.  */
24979 $ac_includes_default
24980 int
24981 main ()
24982 {
24983 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24984 test_array [0] = 0
24985
24986   ;
24987   return 0;
24988 }
24989 _ACEOF
24990 rm -f conftest.$ac_objext
24991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24992   (eval $ac_compile) 2>conftest.er1
24993   ac_status=$?
24994   grep -v '^ *+' conftest.er1 >conftest.err
24995   rm -f conftest.er1
24996   cat conftest.err >&5
24997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998   (exit $ac_status); } &&
24999          { ac_try='test -z "$ac_c_werror_flag"
25000                          || test ! -s conftest.err'
25001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25002   (eval $ac_try) 2>&5
25003   ac_status=$?
25004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005   (exit $ac_status); }; } &&
25006          { ac_try='test -s conftest.$ac_objext'
25007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25008   (eval $ac_try) 2>&5
25009   ac_status=$?
25010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011   (exit $ac_status); }; }; then
25012   ac_hi=$ac_mid
25013 else
25014   echo "$as_me: failed program was:" >&5
25015 sed 's/^/| /' conftest.$ac_ext >&5
25016
25017 ac_lo=`expr '(' $ac_mid ')' + 1`
25018 fi
25019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25020 done
25021 case $ac_lo in
25022 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25023 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25024 See \`config.log' for more details." >&5
25025 echo "$as_me: error: cannot compute sizeof (long long int), 77
25026 See \`config.log' for more details." >&2;}
25027    { (exit 1); exit 1; }; } ;;
25028 esac
25029 else
25030   if test "$cross_compiling" = yes; then
25031   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25032 See \`config.log' for more details." >&5
25033 echo "$as_me: error: cannot run test program while cross compiling
25034 See \`config.log' for more details." >&2;}
25035    { (exit 1); exit 1; }; }
25036 else
25037   cat >conftest.$ac_ext <<_ACEOF
25038 /* confdefs.h.  */
25039 _ACEOF
25040 cat confdefs.h >>conftest.$ac_ext
25041 cat >>conftest.$ac_ext <<_ACEOF
25042 /* end confdefs.h.  */
25043 $ac_includes_default
25044 long longval () { return (long) (sizeof (long long int)); }
25045 unsigned long ulongval () { return (long) (sizeof (long long int)); }
25046 #include <stdio.h>
25047 #include <stdlib.h>
25048 int
25049 main ()
25050 {
25051
25052   FILE *f = fopen ("conftest.val", "w");
25053   if (! f)
25054     exit (1);
25055   if (((long) (sizeof (long long int))) < 0)
25056     {
25057       long i = longval ();
25058       if (i != ((long) (sizeof (long long int))))
25059         exit (1);
25060       fprintf (f, "%ld\n", i);
25061     }
25062   else
25063     {
25064       unsigned long i = ulongval ();
25065       if (i != ((long) (sizeof (long long int))))
25066         exit (1);
25067       fprintf (f, "%lu\n", i);
25068     }
25069   exit (ferror (f) || fclose (f) != 0);
25070
25071   ;
25072   return 0;
25073 }
25074 _ACEOF
25075 rm -f conftest$ac_exeext
25076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25077   (eval $ac_link) 2>&5
25078   ac_status=$?
25079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25082   (eval $ac_try) 2>&5
25083   ac_status=$?
25084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085   (exit $ac_status); }; }; then
25086   ac_cv_sizeof_long_long_int=`cat conftest.val`
25087 else
25088   echo "$as_me: program exited with status $ac_status" >&5
25089 echo "$as_me: failed program was:" >&5
25090 sed 's/^/| /' conftest.$ac_ext >&5
25091
25092 ( exit $ac_status )
25093 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25094 See \`config.log' for more details." >&5
25095 echo "$as_me: error: cannot compute sizeof (long long int), 77
25096 See \`config.log' for more details." >&2;}
25097    { (exit 1); exit 1; }; }
25098 fi
25099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25100 fi
25101 fi
25102 rm -f conftest.val
25103 else
25104   ac_cv_sizeof_long_long_int=0
25105 fi
25106 fi
25107 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25108 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
25109 cat >>confdefs.h <<_ACEOF
25110 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25111 _ACEOF
25112
25113
25114 echo "$as_me:$LINENO: checking for int *" >&5
25115 echo $ECHO_N "checking for int *... $ECHO_C" >&6
25116 if test "${ac_cv_type_int_p+set}" = set; then
25117   echo $ECHO_N "(cached) $ECHO_C" >&6
25118 else
25119   cat >conftest.$ac_ext <<_ACEOF
25120 /* confdefs.h.  */
25121 _ACEOF
25122 cat confdefs.h >>conftest.$ac_ext
25123 cat >>conftest.$ac_ext <<_ACEOF
25124 /* end confdefs.h.  */
25125 $ac_includes_default
25126 int
25127 main ()
25128 {
25129 if ((int * *) 0)
25130   return 0;
25131 if (sizeof (int *))
25132   return 0;
25133   ;
25134   return 0;
25135 }
25136 _ACEOF
25137 rm -f conftest.$ac_objext
25138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25139   (eval $ac_compile) 2>conftest.er1
25140   ac_status=$?
25141   grep -v '^ *+' conftest.er1 >conftest.err
25142   rm -f conftest.er1
25143   cat conftest.err >&5
25144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145   (exit $ac_status); } &&
25146          { ac_try='test -z "$ac_c_werror_flag"
25147                          || test ! -s conftest.err'
25148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25149   (eval $ac_try) 2>&5
25150   ac_status=$?
25151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152   (exit $ac_status); }; } &&
25153          { ac_try='test -s conftest.$ac_objext'
25154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25155   (eval $ac_try) 2>&5
25156   ac_status=$?
25157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158   (exit $ac_status); }; }; then
25159   ac_cv_type_int_p=yes
25160 else
25161   echo "$as_me: failed program was:" >&5
25162 sed 's/^/| /' conftest.$ac_ext >&5
25163
25164 ac_cv_type_int_p=no
25165 fi
25166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25167 fi
25168 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25169 echo "${ECHO_T}$ac_cv_type_int_p" >&6
25170
25171 echo "$as_me:$LINENO: checking size of int *" >&5
25172 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
25173 if test "${ac_cv_sizeof_int_p+set}" = set; then
25174   echo $ECHO_N "(cached) $ECHO_C" >&6
25175 else
25176   if test "$ac_cv_type_int_p" = yes; then
25177   # The cast to unsigned long works around a bug in the HP C Compiler
25178   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25179   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25180   # This bug is HP SR number 8606223364.
25181   if test "$cross_compiling" = yes; then
25182   # Depending upon the size, compute the lo and hi bounds.
25183 cat >conftest.$ac_ext <<_ACEOF
25184 /* confdefs.h.  */
25185 _ACEOF
25186 cat confdefs.h >>conftest.$ac_ext
25187 cat >>conftest.$ac_ext <<_ACEOF
25188 /* end confdefs.h.  */
25189 $ac_includes_default
25190 int
25191 main ()
25192 {
25193 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
25194 test_array [0] = 0
25195
25196   ;
25197   return 0;
25198 }
25199 _ACEOF
25200 rm -f conftest.$ac_objext
25201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25202   (eval $ac_compile) 2>conftest.er1
25203   ac_status=$?
25204   grep -v '^ *+' conftest.er1 >conftest.err
25205   rm -f conftest.er1
25206   cat conftest.err >&5
25207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208   (exit $ac_status); } &&
25209          { ac_try='test -z "$ac_c_werror_flag"
25210                          || test ! -s conftest.err'
25211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212   (eval $ac_try) 2>&5
25213   ac_status=$?
25214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215   (exit $ac_status); }; } &&
25216          { ac_try='test -s conftest.$ac_objext'
25217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218   (eval $ac_try) 2>&5
25219   ac_status=$?
25220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221   (exit $ac_status); }; }; then
25222   ac_lo=0 ac_mid=0
25223   while :; do
25224     cat >conftest.$ac_ext <<_ACEOF
25225 /* confdefs.h.  */
25226 _ACEOF
25227 cat confdefs.h >>conftest.$ac_ext
25228 cat >>conftest.$ac_ext <<_ACEOF
25229 /* end confdefs.h.  */
25230 $ac_includes_default
25231 int
25232 main ()
25233 {
25234 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25235 test_array [0] = 0
25236
25237   ;
25238   return 0;
25239 }
25240 _ACEOF
25241 rm -f conftest.$ac_objext
25242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25243   (eval $ac_compile) 2>conftest.er1
25244   ac_status=$?
25245   grep -v '^ *+' conftest.er1 >conftest.err
25246   rm -f conftest.er1
25247   cat conftest.err >&5
25248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249   (exit $ac_status); } &&
25250          { ac_try='test -z "$ac_c_werror_flag"
25251                          || test ! -s conftest.err'
25252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25253   (eval $ac_try) 2>&5
25254   ac_status=$?
25255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256   (exit $ac_status); }; } &&
25257          { ac_try='test -s conftest.$ac_objext'
25258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25259   (eval $ac_try) 2>&5
25260   ac_status=$?
25261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262   (exit $ac_status); }; }; then
25263   ac_hi=$ac_mid; break
25264 else
25265   echo "$as_me: failed program was:" >&5
25266 sed 's/^/| /' conftest.$ac_ext >&5
25267
25268 ac_lo=`expr $ac_mid + 1`
25269                     if test $ac_lo -le $ac_mid; then
25270                       ac_lo= ac_hi=
25271                       break
25272                     fi
25273                     ac_mid=`expr 2 '*' $ac_mid + 1`
25274 fi
25275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25276   done
25277 else
25278   echo "$as_me: failed program was:" >&5
25279 sed 's/^/| /' conftest.$ac_ext >&5
25280
25281 cat >conftest.$ac_ext <<_ACEOF
25282 /* confdefs.h.  */
25283 _ACEOF
25284 cat confdefs.h >>conftest.$ac_ext
25285 cat >>conftest.$ac_ext <<_ACEOF
25286 /* end confdefs.h.  */
25287 $ac_includes_default
25288 int
25289 main ()
25290 {
25291 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25292 test_array [0] = 0
25293
25294   ;
25295   return 0;
25296 }
25297 _ACEOF
25298 rm -f conftest.$ac_objext
25299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25300   (eval $ac_compile) 2>conftest.er1
25301   ac_status=$?
25302   grep -v '^ *+' conftest.er1 >conftest.err
25303   rm -f conftest.er1
25304   cat conftest.err >&5
25305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306   (exit $ac_status); } &&
25307          { ac_try='test -z "$ac_c_werror_flag"
25308                          || test ! -s conftest.err'
25309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25310   (eval $ac_try) 2>&5
25311   ac_status=$?
25312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313   (exit $ac_status); }; } &&
25314          { ac_try='test -s conftest.$ac_objext'
25315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25316   (eval $ac_try) 2>&5
25317   ac_status=$?
25318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319   (exit $ac_status); }; }; then
25320   ac_hi=-1 ac_mid=-1
25321   while :; do
25322     cat >conftest.$ac_ext <<_ACEOF
25323 /* confdefs.h.  */
25324 _ACEOF
25325 cat confdefs.h >>conftest.$ac_ext
25326 cat >>conftest.$ac_ext <<_ACEOF
25327 /* end confdefs.h.  */
25328 $ac_includes_default
25329 int
25330 main ()
25331 {
25332 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25333 test_array [0] = 0
25334
25335   ;
25336   return 0;
25337 }
25338 _ACEOF
25339 rm -f conftest.$ac_objext
25340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25341   (eval $ac_compile) 2>conftest.er1
25342   ac_status=$?
25343   grep -v '^ *+' conftest.er1 >conftest.err
25344   rm -f conftest.er1
25345   cat conftest.err >&5
25346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347   (exit $ac_status); } &&
25348          { ac_try='test -z "$ac_c_werror_flag"
25349                          || test ! -s conftest.err'
25350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25351   (eval $ac_try) 2>&5
25352   ac_status=$?
25353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354   (exit $ac_status); }; } &&
25355          { ac_try='test -s conftest.$ac_objext'
25356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25357   (eval $ac_try) 2>&5
25358   ac_status=$?
25359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360   (exit $ac_status); }; }; then
25361   ac_lo=$ac_mid; break
25362 else
25363   echo "$as_me: failed program was:" >&5
25364 sed 's/^/| /' conftest.$ac_ext >&5
25365
25366 ac_hi=`expr '(' $ac_mid ')' - 1`
25367                        if test $ac_mid -le $ac_hi; then
25368                          ac_lo= ac_hi=
25369                          break
25370                        fi
25371                        ac_mid=`expr 2 '*' $ac_mid`
25372 fi
25373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25374   done
25375 else
25376   echo "$as_me: failed program was:" >&5
25377 sed 's/^/| /' conftest.$ac_ext >&5
25378
25379 ac_lo= ac_hi=
25380 fi
25381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25382 fi
25383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25384 # Binary search between lo and hi bounds.
25385 while test "x$ac_lo" != "x$ac_hi"; do
25386   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25387   cat >conftest.$ac_ext <<_ACEOF
25388 /* confdefs.h.  */
25389 _ACEOF
25390 cat confdefs.h >>conftest.$ac_ext
25391 cat >>conftest.$ac_ext <<_ACEOF
25392 /* end confdefs.h.  */
25393 $ac_includes_default
25394 int
25395 main ()
25396 {
25397 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25398 test_array [0] = 0
25399
25400   ;
25401   return 0;
25402 }
25403 _ACEOF
25404 rm -f conftest.$ac_objext
25405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25406   (eval $ac_compile) 2>conftest.er1
25407   ac_status=$?
25408   grep -v '^ *+' conftest.er1 >conftest.err
25409   rm -f conftest.er1
25410   cat conftest.err >&5
25411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412   (exit $ac_status); } &&
25413          { ac_try='test -z "$ac_c_werror_flag"
25414                          || test ! -s conftest.err'
25415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416   (eval $ac_try) 2>&5
25417   ac_status=$?
25418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419   (exit $ac_status); }; } &&
25420          { ac_try='test -s conftest.$ac_objext'
25421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25422   (eval $ac_try) 2>&5
25423   ac_status=$?
25424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425   (exit $ac_status); }; }; then
25426   ac_hi=$ac_mid
25427 else
25428   echo "$as_me: failed program was:" >&5
25429 sed 's/^/| /' conftest.$ac_ext >&5
25430
25431 ac_lo=`expr '(' $ac_mid ')' + 1`
25432 fi
25433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25434 done
25435 case $ac_lo in
25436 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25437 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25438 See \`config.log' for more details." >&5
25439 echo "$as_me: error: cannot compute sizeof (int *), 77
25440 See \`config.log' for more details." >&2;}
25441    { (exit 1); exit 1; }; } ;;
25442 esac
25443 else
25444   if test "$cross_compiling" = yes; then
25445   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25446 See \`config.log' for more details." >&5
25447 echo "$as_me: error: cannot run test program while cross compiling
25448 See \`config.log' for more details." >&2;}
25449    { (exit 1); exit 1; }; }
25450 else
25451   cat >conftest.$ac_ext <<_ACEOF
25452 /* confdefs.h.  */
25453 _ACEOF
25454 cat confdefs.h >>conftest.$ac_ext
25455 cat >>conftest.$ac_ext <<_ACEOF
25456 /* end confdefs.h.  */
25457 $ac_includes_default
25458 long longval () { return (long) (sizeof (int *)); }
25459 unsigned long ulongval () { return (long) (sizeof (int *)); }
25460 #include <stdio.h>
25461 #include <stdlib.h>
25462 int
25463 main ()
25464 {
25465
25466   FILE *f = fopen ("conftest.val", "w");
25467   if (! f)
25468     exit (1);
25469   if (((long) (sizeof (int *))) < 0)
25470     {
25471       long i = longval ();
25472       if (i != ((long) (sizeof (int *))))
25473         exit (1);
25474       fprintf (f, "%ld\n", i);
25475     }
25476   else
25477     {
25478       unsigned long i = ulongval ();
25479       if (i != ((long) (sizeof (int *))))
25480         exit (1);
25481       fprintf (f, "%lu\n", i);
25482     }
25483   exit (ferror (f) || fclose (f) != 0);
25484
25485   ;
25486   return 0;
25487 }
25488 _ACEOF
25489 rm -f conftest$ac_exeext
25490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25491   (eval $ac_link) 2>&5
25492   ac_status=$?
25493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25496   (eval $ac_try) 2>&5
25497   ac_status=$?
25498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499   (exit $ac_status); }; }; then
25500   ac_cv_sizeof_int_p=`cat conftest.val`
25501 else
25502   echo "$as_me: program exited with status $ac_status" >&5
25503 echo "$as_me: failed program was:" >&5
25504 sed 's/^/| /' conftest.$ac_ext >&5
25505
25506 ( exit $ac_status )
25507 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25508 See \`config.log' for more details." >&5
25509 echo "$as_me: error: cannot compute sizeof (int *), 77
25510 See \`config.log' for more details." >&2;}
25511    { (exit 1); exit 1; }; }
25512 fi
25513 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25514 fi
25515 fi
25516 rm -f conftest.val
25517 else
25518   ac_cv_sizeof_int_p=0
25519 fi
25520 fi
25521 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25522 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25523 cat >>confdefs.h <<_ACEOF
25524 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25525 _ACEOF
25526
25527
25528
25529 # Check for sys/types.h types
25530 echo "$as_me:$LINENO: checking for u_int type" >&5
25531 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25532 if test "${ac_cv_have_u_int+set}" = set; then
25533   echo $ECHO_N "(cached) $ECHO_C" >&6
25534 else
25535
25536     cat >conftest.$ac_ext <<_ACEOF
25537 /* confdefs.h.  */
25538 _ACEOF
25539 cat confdefs.h >>conftest.$ac_ext
25540 cat >>conftest.$ac_ext <<_ACEOF
25541 /* end confdefs.h.  */
25542  #include <sys/types.h>
25543 int
25544 main ()
25545 {
25546  u_int a; a = 1;
25547   ;
25548   return 0;
25549 }
25550 _ACEOF
25551 rm -f conftest.$ac_objext
25552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25553   (eval $ac_compile) 2>conftest.er1
25554   ac_status=$?
25555   grep -v '^ *+' conftest.er1 >conftest.err
25556   rm -f conftest.er1
25557   cat conftest.err >&5
25558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559   (exit $ac_status); } &&
25560          { ac_try='test -z "$ac_c_werror_flag"
25561                          || test ! -s conftest.err'
25562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25563   (eval $ac_try) 2>&5
25564   ac_status=$?
25565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566   (exit $ac_status); }; } &&
25567          { ac_try='test -s conftest.$ac_objext'
25568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25569   (eval $ac_try) 2>&5
25570   ac_status=$?
25571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572   (exit $ac_status); }; }; then
25573    ac_cv_have_u_int="yes"
25574 else
25575   echo "$as_me: failed program was:" >&5
25576 sed 's/^/| /' conftest.$ac_ext >&5
25577
25578  ac_cv_have_u_int="no"
25579
25580 fi
25581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25582
25583 fi
25584 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25585 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25586 if test "x$ac_cv_have_u_int" = "xyes" ; then
25587    cat >>confdefs.h <<\_ACEOF
25588 #define HAVE_U_INT 1
25589 _ACEOF
25590
25591    have_u_int=1
25592 fi
25593
25594 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25595 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25596 if test "${ac_cv_have_intmax_t+set}" = set; then
25597   echo $ECHO_N "(cached) $ECHO_C" >&6
25598 else
25599
25600    cat >conftest.$ac_ext <<_ACEOF
25601 /* confdefs.h.  */
25602 _ACEOF
25603 cat confdefs.h >>conftest.$ac_ext
25604 cat >>conftest.$ac_ext <<_ACEOF
25605 /* end confdefs.h.  */
25606  #include <sys/types.h>
25607 int
25608 main ()
25609 {
25610  intmax_t a; a = 1;
25611   ;
25612   return 0;
25613 }
25614 _ACEOF
25615 rm -f conftest.$ac_objext
25616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25617   (eval $ac_compile) 2>conftest.er1
25618   ac_status=$?
25619   grep -v '^ *+' conftest.er1 >conftest.err
25620   rm -f conftest.er1
25621   cat conftest.err >&5
25622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623   (exit $ac_status); } &&
25624          { ac_try='test -z "$ac_c_werror_flag"
25625                          || test ! -s conftest.err'
25626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25627   (eval $ac_try) 2>&5
25628   ac_status=$?
25629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630   (exit $ac_status); }; } &&
25631          { ac_try='test -s conftest.$ac_objext'
25632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25633   (eval $ac_try) 2>&5
25634   ac_status=$?
25635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636   (exit $ac_status); }; }; then
25637    ac_cv_have_intmax_t="yes"
25638 else
25639   echo "$as_me: failed program was:" >&5
25640 sed 's/^/| /' conftest.$ac_ext >&5
25641
25642
25643          cat >conftest.$ac_ext <<_ACEOF
25644 /* confdefs.h.  */
25645 _ACEOF
25646 cat confdefs.h >>conftest.$ac_ext
25647 cat >>conftest.$ac_ext <<_ACEOF
25648 /* end confdefs.h.  */
25649  #include <stdint.h>
25650 int
25651 main ()
25652 {
25653  intmax_t a; a = 1;
25654   ;
25655   return 0;
25656 }
25657 _ACEOF
25658 rm -f conftest.$ac_objext
25659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25660   (eval $ac_compile) 2>conftest.er1
25661   ac_status=$?
25662   grep -v '^ *+' conftest.er1 >conftest.err
25663   rm -f conftest.er1
25664   cat conftest.err >&5
25665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666   (exit $ac_status); } &&
25667          { ac_try='test -z "$ac_c_werror_flag"
25668                          || test ! -s conftest.err'
25669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670   (eval $ac_try) 2>&5
25671   ac_status=$?
25672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673   (exit $ac_status); }; } &&
25674          { ac_try='test -s conftest.$ac_objext'
25675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25676   (eval $ac_try) 2>&5
25677   ac_status=$?
25678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679   (exit $ac_status); }; }; then
25680    ac_cv_have_intmax_t="yes"
25681 else
25682   echo "$as_me: failed program was:" >&5
25683 sed 's/^/| /' conftest.$ac_ext >&5
25684
25685  ac_cv_have_intmax_t="no"
25686
25687 fi
25688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25689
25690
25691 fi
25692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25693
25694
25695 fi
25696 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25697 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25698 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25699    cat >>confdefs.h <<\_ACEOF
25700 #define HAVE_INTMAX_T 1
25701 _ACEOF
25702
25703    have_intmax_t=1
25704 fi
25705
25706
25707 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25708 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25709 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25710   echo $ECHO_N "(cached) $ECHO_C" >&6
25711 else
25712
25713    cat >conftest.$ac_ext <<_ACEOF
25714 /* confdefs.h.  */
25715 _ACEOF
25716 cat confdefs.h >>conftest.$ac_ext
25717 cat >>conftest.$ac_ext <<_ACEOF
25718 /* end confdefs.h.  */
25719  #include <sys/types.h>
25720 int
25721 main ()
25722 {
25723  u_intmax_t a; a = 1;
25724   ;
25725   return 0;
25726 }
25727 _ACEOF
25728 rm -f conftest.$ac_objext
25729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25730   (eval $ac_compile) 2>conftest.er1
25731   ac_status=$?
25732   grep -v '^ *+' conftest.er1 >conftest.err
25733   rm -f conftest.er1
25734   cat conftest.err >&5
25735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736   (exit $ac_status); } &&
25737          { ac_try='test -z "$ac_c_werror_flag"
25738                          || test ! -s conftest.err'
25739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740   (eval $ac_try) 2>&5
25741   ac_status=$?
25742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743   (exit $ac_status); }; } &&
25744          { ac_try='test -s conftest.$ac_objext'
25745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25746   (eval $ac_try) 2>&5
25747   ac_status=$?
25748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749   (exit $ac_status); }; }; then
25750    ac_cv_have_u_intmax_t="yes"
25751 else
25752   echo "$as_me: failed program was:" >&5
25753 sed 's/^/| /' conftest.$ac_ext >&5
25754
25755
25756          cat >conftest.$ac_ext <<_ACEOF
25757 /* confdefs.h.  */
25758 _ACEOF
25759 cat confdefs.h >>conftest.$ac_ext
25760 cat >>conftest.$ac_ext <<_ACEOF
25761 /* end confdefs.h.  */
25762  #include <stdint.h>
25763 int
25764 main ()
25765 {
25766  u_intmax_t a; a = 1;
25767   ;
25768   return 0;
25769 }
25770 _ACEOF
25771 rm -f conftest.$ac_objext
25772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25773   (eval $ac_compile) 2>conftest.er1
25774   ac_status=$?
25775   grep -v '^ *+' conftest.er1 >conftest.err
25776   rm -f conftest.er1
25777   cat conftest.err >&5
25778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779   (exit $ac_status); } &&
25780          { ac_try='test -z "$ac_c_werror_flag"
25781                          || test ! -s conftest.err'
25782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25783   (eval $ac_try) 2>&5
25784   ac_status=$?
25785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786   (exit $ac_status); }; } &&
25787          { ac_try='test -s conftest.$ac_objext'
25788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25789   (eval $ac_try) 2>&5
25790   ac_status=$?
25791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792   (exit $ac_status); }; }; then
25793    ac_cv_have_u_intmax_t="yes"
25794 else
25795   echo "$as_me: failed program was:" >&5
25796 sed 's/^/| /' conftest.$ac_ext >&5
25797
25798  ac_cv_have_u_intmax_t="no"
25799
25800 fi
25801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25802
25803
25804 fi
25805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25806
25807 fi
25808 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25809 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25810 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25811    cat >>confdefs.h <<\_ACEOF
25812 #define HAVE_U_INTMAX_T 1
25813 _ACEOF
25814
25815    have_u_intmax_t=1
25816 fi
25817
25818
25819 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25820 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25821 if test "${ac_cv_have_intxx_t+set}" = set; then
25822   echo $ECHO_N "(cached) $ECHO_C" >&6
25823 else
25824
25825    cat >conftest.$ac_ext <<_ACEOF
25826 /* confdefs.h.  */
25827 _ACEOF
25828 cat confdefs.h >>conftest.$ac_ext
25829 cat >>conftest.$ac_ext <<_ACEOF
25830 /* end confdefs.h.  */
25831  #include <sys/types.h>
25832 int
25833 main ()
25834 {
25835  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25836   ;
25837   return 0;
25838 }
25839 _ACEOF
25840 rm -f conftest.$ac_objext
25841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25842   (eval $ac_compile) 2>conftest.er1
25843   ac_status=$?
25844   grep -v '^ *+' conftest.er1 >conftest.err
25845   rm -f conftest.er1
25846   cat conftest.err >&5
25847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848   (exit $ac_status); } &&
25849          { ac_try='test -z "$ac_c_werror_flag"
25850                          || test ! -s conftest.err'
25851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25852   (eval $ac_try) 2>&5
25853   ac_status=$?
25854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855   (exit $ac_status); }; } &&
25856          { ac_try='test -s conftest.$ac_objext'
25857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25858   (eval $ac_try) 2>&5
25859   ac_status=$?
25860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861   (exit $ac_status); }; }; then
25862    ac_cv_have_intxx_t="yes"
25863 else
25864   echo "$as_me: failed program was:" >&5
25865 sed 's/^/| /' conftest.$ac_ext >&5
25866
25867  ac_cv_have_intxx_t="no"
25868
25869 fi
25870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25871
25872 fi
25873 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25874 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25875 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25876    cat >>confdefs.h <<\_ACEOF
25877 #define HAVE_INTXX_T 1
25878 _ACEOF
25879
25880    have_intxx_t=1
25881 fi
25882
25883 echo "$as_me:$LINENO: checking for int64_t type" >&5
25884 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25885 if test "${ac_cv_have_int64_t+set}" = set; then
25886   echo $ECHO_N "(cached) $ECHO_C" >&6
25887 else
25888
25889    cat >conftest.$ac_ext <<_ACEOF
25890 /* confdefs.h.  */
25891 _ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h.  */
25895  #include <sys/types.h>
25896 int
25897 main ()
25898 {
25899  int64_t a; a = 1;
25900   ;
25901   return 0;
25902 }
25903 _ACEOF
25904 rm -f conftest.$ac_objext
25905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25906   (eval $ac_compile) 2>conftest.er1
25907   ac_status=$?
25908   grep -v '^ *+' conftest.er1 >conftest.err
25909   rm -f conftest.er1
25910   cat conftest.err >&5
25911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912   (exit $ac_status); } &&
25913          { ac_try='test -z "$ac_c_werror_flag"
25914                          || test ! -s conftest.err'
25915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25916   (eval $ac_try) 2>&5
25917   ac_status=$?
25918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919   (exit $ac_status); }; } &&
25920          { ac_try='test -s conftest.$ac_objext'
25921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25922   (eval $ac_try) 2>&5
25923   ac_status=$?
25924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925   (exit $ac_status); }; }; then
25926    ac_cv_have_int64_t="yes"
25927 else
25928   echo "$as_me: failed program was:" >&5
25929 sed 's/^/| /' conftest.$ac_ext >&5
25930
25931  ac_cv_have_int64_t="no"
25932
25933 fi
25934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25935
25936 fi
25937 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25938 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25939 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25940    cat >>confdefs.h <<\_ACEOF
25941 #define HAVE_INT64_T 1
25942 _ACEOF
25943
25944    have_int64_t=1
25945 fi
25946
25947 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25948 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25949 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25950   echo $ECHO_N "(cached) $ECHO_C" >&6
25951 else
25952
25953    cat >conftest.$ac_ext <<_ACEOF
25954 /* confdefs.h.  */
25955 _ACEOF
25956 cat confdefs.h >>conftest.$ac_ext
25957 cat >>conftest.$ac_ext <<_ACEOF
25958 /* end confdefs.h.  */
25959  #include <sys/types.h>
25960 int
25961 main ()
25962 {
25963  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25964   ;
25965   return 0;
25966 }
25967 _ACEOF
25968 rm -f conftest.$ac_objext
25969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25970   (eval $ac_compile) 2>conftest.er1
25971   ac_status=$?
25972   grep -v '^ *+' conftest.er1 >conftest.err
25973   rm -f conftest.er1
25974   cat conftest.err >&5
25975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976   (exit $ac_status); } &&
25977          { ac_try='test -z "$ac_c_werror_flag"
25978                          || test ! -s conftest.err'
25979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25980   (eval $ac_try) 2>&5
25981   ac_status=$?
25982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983   (exit $ac_status); }; } &&
25984          { ac_try='test -s conftest.$ac_objext'
25985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25986   (eval $ac_try) 2>&5
25987   ac_status=$?
25988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989   (exit $ac_status); }; }; then
25990    ac_cv_have_u_intxx_t="yes"
25991 else
25992   echo "$as_me: failed program was:" >&5
25993 sed 's/^/| /' conftest.$ac_ext >&5
25994
25995  ac_cv_have_u_intxx_t="no"
25996
25997 fi
25998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25999
26000 fi
26001 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26002 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
26003 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26004    cat >>confdefs.h <<\_ACEOF
26005 #define HAVE_U_INTXX_T 1
26006 _ACEOF
26007
26008    have_u_intxx_t=1
26009 fi
26010
26011 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26012 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
26013 if test "${ac_cv_have_u_int64_t+set}" = set; then
26014   echo $ECHO_N "(cached) $ECHO_C" >&6
26015 else
26016
26017    cat >conftest.$ac_ext <<_ACEOF
26018 /* confdefs.h.  */
26019 _ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h.  */
26023  #include <sys/types.h>
26024 int
26025 main ()
26026 {
26027  u_int64_t a; a = 1;
26028   ;
26029   return 0;
26030 }
26031 _ACEOF
26032 rm -f conftest.$ac_objext
26033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26034   (eval $ac_compile) 2>conftest.er1
26035   ac_status=$?
26036   grep -v '^ *+' conftest.er1 >conftest.err
26037   rm -f conftest.er1
26038   cat conftest.err >&5
26039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040   (exit $ac_status); } &&
26041          { ac_try='test -z "$ac_c_werror_flag"
26042                          || test ! -s conftest.err'
26043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26044   (eval $ac_try) 2>&5
26045   ac_status=$?
26046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047   (exit $ac_status); }; } &&
26048          { ac_try='test -s conftest.$ac_objext'
26049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26050   (eval $ac_try) 2>&5
26051   ac_status=$?
26052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053   (exit $ac_status); }; }; then
26054    ac_cv_have_u_int64_t="yes"
26055 else
26056   echo "$as_me: failed program was:" >&5
26057 sed 's/^/| /' conftest.$ac_ext >&5
26058
26059  ac_cv_have_u_int64_t="no"
26060
26061 fi
26062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26063
26064 fi
26065 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26066 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
26067 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26068    cat >>confdefs.h <<\_ACEOF
26069 #define HAVE_U_INT64_T 1
26070 _ACEOF
26071
26072    have_u_int64_t=1
26073 fi
26074
26075 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26076            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26077 then
26078    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26079 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
26080    cat >conftest.$ac_ext <<_ACEOF
26081 /* confdefs.h.  */
26082 _ACEOF
26083 cat confdefs.h >>conftest.$ac_ext
26084 cat >>conftest.$ac_ext <<_ACEOF
26085 /* end confdefs.h.  */
26086  #include <sys/bitypes.h>
26087 int
26088 main ()
26089 {
26090  int8_t a; int16_t b; int32_t c;
26091         u_int8_t e; u_int16_t f; u_int32_t g;
26092         a = b = c = e = f = g = 1;
26093   ;
26094   return 0;
26095 }
26096 _ACEOF
26097 rm -f conftest.$ac_objext
26098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26099   (eval $ac_compile) 2>conftest.er1
26100   ac_status=$?
26101   grep -v '^ *+' conftest.er1 >conftest.err
26102   rm -f conftest.er1
26103   cat conftest.err >&5
26104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105   (exit $ac_status); } &&
26106          { ac_try='test -z "$ac_c_werror_flag"
26107                          || test ! -s conftest.err'
26108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26109   (eval $ac_try) 2>&5
26110   ac_status=$?
26111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112   (exit $ac_status); }; } &&
26113          { ac_try='test -s conftest.$ac_objext'
26114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26115   (eval $ac_try) 2>&5
26116   ac_status=$?
26117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118   (exit $ac_status); }; }; then
26119    cat >>confdefs.h <<\_ACEOF
26120 #define HAVE_U_INTXX_T 1
26121 _ACEOF
26122
26123         cat >>confdefs.h <<\_ACEOF
26124 #define HAVE_INTXX_T 1
26125 _ACEOF
26126
26127         cat >>confdefs.h <<\_ACEOF
26128 #define HAVE_SYS_BITYPES_H 1
26129 _ACEOF
26130
26131         echo "$as_me:$LINENO: result: yes" >&5
26132 echo "${ECHO_T}yes" >&6
26133 else
26134   echo "$as_me: failed program was:" >&5
26135 sed 's/^/| /' conftest.$ac_ext >&5
26136
26137  echo "$as_me:$LINENO: result: no" >&5
26138 echo "${ECHO_T}no" >&6
26139
26140 fi
26141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26142 fi
26143
26144 if test -z "$have_u_intxx_t" ; then
26145    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26146 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
26147 if test "${ac_cv_have_uintxx_t+set}" = set; then
26148   echo $ECHO_N "(cached) $ECHO_C" >&6
26149 else
26150
26151       cat >conftest.$ac_ext <<_ACEOF
26152 /* confdefs.h.  */
26153 _ACEOF
26154 cat confdefs.h >>conftest.$ac_ext
26155 cat >>conftest.$ac_ext <<_ACEOF
26156 /* end confdefs.h.  */
26157  #include <sys/types.h>
26158 int
26159 main ()
26160 {
26161  uint8_t a; uint16_t b;
26162            uint32_t c; a = b = c = 1;
26163   ;
26164   return 0;
26165 }
26166 _ACEOF
26167 rm -f conftest.$ac_objext
26168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26169   (eval $ac_compile) 2>conftest.er1
26170   ac_status=$?
26171   grep -v '^ *+' conftest.er1 >conftest.err
26172   rm -f conftest.er1
26173   cat conftest.err >&5
26174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175   (exit $ac_status); } &&
26176          { ac_try='test -z "$ac_c_werror_flag"
26177                          || test ! -s conftest.err'
26178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179   (eval $ac_try) 2>&5
26180   ac_status=$?
26181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182   (exit $ac_status); }; } &&
26183          { ac_try='test -s conftest.$ac_objext'
26184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185   (eval $ac_try) 2>&5
26186   ac_status=$?
26187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188   (exit $ac_status); }; }; then
26189    ac_cv_have_uintxx_t="yes"
26190 else
26191   echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26193
26194  ac_cv_have_uintxx_t="no"
26195
26196 fi
26197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26198
26199 fi
26200 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26201 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
26202    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26203       cat >>confdefs.h <<\_ACEOF
26204 #define HAVE_UINTXX_T 1
26205 _ACEOF
26206
26207    fi
26208 fi
26209
26210 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26211           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26212 then
26213    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26214 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
26215    cat >conftest.$ac_ext <<_ACEOF
26216 /* confdefs.h.  */
26217 _ACEOF
26218 cat confdefs.h >>conftest.$ac_ext
26219 cat >>conftest.$ac_ext <<_ACEOF
26220 /* end confdefs.h.  */
26221  #include <sys/bitypes.h>
26222 int
26223 main ()
26224 {
26225  int64_t a; u_int64_t b;
26226        a = b = 1;
26227   ;
26228   return 0;
26229 }
26230 _ACEOF
26231 rm -f conftest.$ac_objext
26232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26233   (eval $ac_compile) 2>conftest.er1
26234   ac_status=$?
26235   grep -v '^ *+' conftest.er1 >conftest.err
26236   rm -f conftest.er1
26237   cat conftest.err >&5
26238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239   (exit $ac_status); } &&
26240          { ac_try='test -z "$ac_c_werror_flag"
26241                          || test ! -s conftest.err'
26242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26243   (eval $ac_try) 2>&5
26244   ac_status=$?
26245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246   (exit $ac_status); }; } &&
26247          { ac_try='test -s conftest.$ac_objext'
26248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26249   (eval $ac_try) 2>&5
26250   ac_status=$?
26251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252   (exit $ac_status); }; }; then
26253    cat >>confdefs.h <<\_ACEOF
26254 #define HAVE_U_INT64_T 1
26255 _ACEOF
26256
26257        cat >>confdefs.h <<\_ACEOF
26258 #define HAVE_INT64_T 1
26259 _ACEOF
26260
26261        echo "$as_me:$LINENO: result: yes" >&5
26262 echo "${ECHO_T}yes" >&6
26263 else
26264   echo "$as_me: failed program was:" >&5
26265 sed 's/^/| /' conftest.$ac_ext >&5
26266
26267  echo "$as_me:$LINENO: result: no" >&5
26268 echo "${ECHO_T}no" >&6
26269
26270 fi
26271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26272 fi
26273
26274 if (test -z "$have_uintxx_t" && \
26275           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26276 then
26277    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26278 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26279    cat >conftest.$ac_ext <<_ACEOF
26280 /* confdefs.h.  */
26281 _ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h.  */
26285  #include <sys/bitypes.h>
26286 int
26287 main ()
26288 {
26289  uint8_t a; uint16_t b;
26290           uint32_t c; a = b = c = 1;
26291   ;
26292   return 0;
26293 }
26294 _ACEOF
26295 rm -f conftest.$ac_objext
26296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26297   (eval $ac_compile) 2>conftest.er1
26298   ac_status=$?
26299   grep -v '^ *+' conftest.er1 >conftest.err
26300   rm -f conftest.er1
26301   cat conftest.err >&5
26302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303   (exit $ac_status); } &&
26304          { ac_try='test -z "$ac_c_werror_flag"
26305                          || test ! -s conftest.err'
26306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26307   (eval $ac_try) 2>&5
26308   ac_status=$?
26309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310   (exit $ac_status); }; } &&
26311          { ac_try='test -s conftest.$ac_objext'
26312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313   (eval $ac_try) 2>&5
26314   ac_status=$?
26315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316   (exit $ac_status); }; }; then
26317    cat >>confdefs.h <<\_ACEOF
26318 #define HAVE_UINTXX_T 1
26319 _ACEOF
26320
26321        echo "$as_me:$LINENO: result: yes" >&5
26322 echo "${ECHO_T}yes" >&6
26323 else
26324   echo "$as_me: failed program was:" >&5
26325 sed 's/^/| /' conftest.$ac_ext >&5
26326
26327  echo "$as_me:$LINENO: result: no" >&5
26328 echo "${ECHO_T}no" >&6
26329
26330 fi
26331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26332
26333 fi
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351 for ac_func in \
26352         fork \
26353         getcwd \
26354         gethostname \
26355         getpid \
26356         gettimeofday \
26357         setpgid \
26358         setpgrp \
26359         setsid \
26360         signal \
26361         strerror \
26362         strncmp \
26363         strncpy \
26364         vfprintf \
26365
26366 do
26367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26368 echo "$as_me:$LINENO: checking for $ac_func" >&5
26369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26370 if eval "test \"\${$as_ac_var+set}\" = set"; then
26371   echo $ECHO_N "(cached) $ECHO_C" >&6
26372 else
26373   cat >conftest.$ac_ext <<_ACEOF
26374 /* confdefs.h.  */
26375 _ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h.  */
26379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26381 #define $ac_func innocuous_$ac_func
26382
26383 /* System header to define __stub macros and hopefully few prototypes,
26384     which can conflict with char $ac_func (); below.
26385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26386     <limits.h> exists even on freestanding compilers.  */
26387
26388 #ifdef __STDC__
26389 # include <limits.h>
26390 #else
26391 # include <assert.h>
26392 #endif
26393
26394 #undef $ac_func
26395
26396 /* Override any gcc2 internal prototype to avoid an error.  */
26397 #ifdef __cplusplus
26398 extern "C"
26399 {
26400 #endif
26401 /* We use char because int might match the return type of a gcc2
26402    builtin and then its argument prototype would still apply.  */
26403 char $ac_func ();
26404 /* The GNU C library defines this for functions which it implements
26405     to always fail with ENOSYS.  Some functions are actually named
26406     something starting with __ and the normal name is an alias.  */
26407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26408 choke me
26409 #else
26410 char (*f) () = $ac_func;
26411 #endif
26412 #ifdef __cplusplus
26413 }
26414 #endif
26415
26416 int
26417 main ()
26418 {
26419 return f != $ac_func;
26420   ;
26421   return 0;
26422 }
26423 _ACEOF
26424 rm -f conftest.$ac_objext conftest$ac_exeext
26425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26426   (eval $ac_link) 2>conftest.er1
26427   ac_status=$?
26428   grep -v '^ *+' conftest.er1 >conftest.err
26429   rm -f conftest.er1
26430   cat conftest.err >&5
26431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432   (exit $ac_status); } &&
26433          { ac_try='test -z "$ac_c_werror_flag"
26434                          || test ! -s conftest.err'
26435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26436   (eval $ac_try) 2>&5
26437   ac_status=$?
26438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439   (exit $ac_status); }; } &&
26440          { ac_try='test -s conftest$ac_exeext'
26441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26442   (eval $ac_try) 2>&5
26443   ac_status=$?
26444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445   (exit $ac_status); }; }; then
26446   eval "$as_ac_var=yes"
26447 else
26448   echo "$as_me: failed program was:" >&5
26449 sed 's/^/| /' conftest.$ac_ext >&5
26450
26451 eval "$as_ac_var=no"
26452 fi
26453 rm -f conftest.err conftest.$ac_objext \
26454       conftest$ac_exeext conftest.$ac_ext
26455 fi
26456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26458 if test `eval echo '${'$as_ac_var'}'` = yes; then
26459   cat >>confdefs.h <<_ACEOF
26460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26461 _ACEOF
26462
26463 else
26464   echo 'configure: cannot find needed function.'; exit 1
26465
26466 fi
26467 done
26468
26469
26470
26471 for ac_func in fchdir
26472 do
26473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26474 echo "$as_me:$LINENO: checking for $ac_func" >&5
26475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26476 if eval "test \"\${$as_ac_var+set}\" = set"; then
26477   echo $ECHO_N "(cached) $ECHO_C" >&6
26478 else
26479   cat >conftest.$ac_ext <<_ACEOF
26480 /* confdefs.h.  */
26481 _ACEOF
26482 cat confdefs.h >>conftest.$ac_ext
26483 cat >>conftest.$ac_ext <<_ACEOF
26484 /* end confdefs.h.  */
26485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26487 #define $ac_func innocuous_$ac_func
26488
26489 /* System header to define __stub macros and hopefully few prototypes,
26490     which can conflict with char $ac_func (); below.
26491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26492     <limits.h> exists even on freestanding compilers.  */
26493
26494 #ifdef __STDC__
26495 # include <limits.h>
26496 #else
26497 # include <assert.h>
26498 #endif
26499
26500 #undef $ac_func
26501
26502 /* Override any gcc2 internal prototype to avoid an error.  */
26503 #ifdef __cplusplus
26504 extern "C"
26505 {
26506 #endif
26507 /* We use char because int might match the return type of a gcc2
26508    builtin and then its argument prototype would still apply.  */
26509 char $ac_func ();
26510 /* The GNU C library defines this for functions which it implements
26511     to always fail with ENOSYS.  Some functions are actually named
26512     something starting with __ and the normal name is an alias.  */
26513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26514 choke me
26515 #else
26516 char (*f) () = $ac_func;
26517 #endif
26518 #ifdef __cplusplus
26519 }
26520 #endif
26521
26522 int
26523 main ()
26524 {
26525 return f != $ac_func;
26526   ;
26527   return 0;
26528 }
26529 _ACEOF
26530 rm -f conftest.$ac_objext conftest$ac_exeext
26531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26532   (eval $ac_link) 2>conftest.er1
26533   ac_status=$?
26534   grep -v '^ *+' conftest.er1 >conftest.err
26535   rm -f conftest.er1
26536   cat conftest.err >&5
26537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538   (exit $ac_status); } &&
26539          { ac_try='test -z "$ac_c_werror_flag"
26540                          || test ! -s conftest.err'
26541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26542   (eval $ac_try) 2>&5
26543   ac_status=$?
26544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545   (exit $ac_status); }; } &&
26546          { ac_try='test -s conftest$ac_exeext'
26547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26548   (eval $ac_try) 2>&5
26549   ac_status=$?
26550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551   (exit $ac_status); }; }; then
26552   eval "$as_ac_var=yes"
26553 else
26554   echo "$as_me: failed program was:" >&5
26555 sed 's/^/| /' conftest.$ac_ext >&5
26556
26557 eval "$as_ac_var=no"
26558 fi
26559 rm -f conftest.err conftest.$ac_objext \
26560       conftest$ac_exeext conftest.$ac_ext
26561 fi
26562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26564 if test `eval echo '${'$as_ac_var'}'` = yes; then
26565   cat >>confdefs.h <<_ACEOF
26566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26567 _ACEOF
26568  cat >>confdefs.h <<\_ACEOF
26569 #define HAVE_FCHDIR 1
26570 _ACEOF
26571
26572 fi
26573 done
26574
26575
26576 for ac_func in strtoll
26577 do
26578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26579 echo "$as_me:$LINENO: checking for $ac_func" >&5
26580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26581 if eval "test \"\${$as_ac_var+set}\" = set"; then
26582   echo $ECHO_N "(cached) $ECHO_C" >&6
26583 else
26584   cat >conftest.$ac_ext <<_ACEOF
26585 /* confdefs.h.  */
26586 _ACEOF
26587 cat confdefs.h >>conftest.$ac_ext
26588 cat >>conftest.$ac_ext <<_ACEOF
26589 /* end confdefs.h.  */
26590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26592 #define $ac_func innocuous_$ac_func
26593
26594 /* System header to define __stub macros and hopefully few prototypes,
26595     which can conflict with char $ac_func (); below.
26596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26597     <limits.h> exists even on freestanding compilers.  */
26598
26599 #ifdef __STDC__
26600 # include <limits.h>
26601 #else
26602 # include <assert.h>
26603 #endif
26604
26605 #undef $ac_func
26606
26607 /* Override any gcc2 internal prototype to avoid an error.  */
26608 #ifdef __cplusplus
26609 extern "C"
26610 {
26611 #endif
26612 /* We use char because int might match the return type of a gcc2
26613    builtin and then its argument prototype would still apply.  */
26614 char $ac_func ();
26615 /* The GNU C library defines this for functions which it implements
26616     to always fail with ENOSYS.  Some functions are actually named
26617     something starting with __ and the normal name is an alias.  */
26618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26619 choke me
26620 #else
26621 char (*f) () = $ac_func;
26622 #endif
26623 #ifdef __cplusplus
26624 }
26625 #endif
26626
26627 int
26628 main ()
26629 {
26630 return f != $ac_func;
26631   ;
26632   return 0;
26633 }
26634 _ACEOF
26635 rm -f conftest.$ac_objext conftest$ac_exeext
26636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26637   (eval $ac_link) 2>conftest.er1
26638   ac_status=$?
26639   grep -v '^ *+' conftest.er1 >conftest.err
26640   rm -f conftest.er1
26641   cat conftest.err >&5
26642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26643   (exit $ac_status); } &&
26644          { ac_try='test -z "$ac_c_werror_flag"
26645                          || test ! -s conftest.err'
26646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26647   (eval $ac_try) 2>&5
26648   ac_status=$?
26649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650   (exit $ac_status); }; } &&
26651          { ac_try='test -s conftest$ac_exeext'
26652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26653   (eval $ac_try) 2>&5
26654   ac_status=$?
26655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656   (exit $ac_status); }; }; then
26657   eval "$as_ac_var=yes"
26658 else
26659   echo "$as_me: failed program was:" >&5
26660 sed 's/^/| /' conftest.$ac_ext >&5
26661
26662 eval "$as_ac_var=no"
26663 fi
26664 rm -f conftest.err conftest.$ac_objext \
26665       conftest$ac_exeext conftest.$ac_ext
26666 fi
26667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26669 if test `eval echo '${'$as_ac_var'}'` = yes; then
26670   cat >>confdefs.h <<_ACEOF
26671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26672 _ACEOF
26673  cat >>confdefs.h <<\_ACEOF
26674 #define HAVE_STRTOLL 1
26675 _ACEOF
26676
26677 fi
26678 done
26679
26680
26681 for ac_func in posix_fadvise
26682 do
26683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26684 echo "$as_me:$LINENO: checking for $ac_func" >&5
26685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26686 if eval "test \"\${$as_ac_var+set}\" = set"; then
26687   echo $ECHO_N "(cached) $ECHO_C" >&6
26688 else
26689   cat >conftest.$ac_ext <<_ACEOF
26690 /* confdefs.h.  */
26691 _ACEOF
26692 cat confdefs.h >>conftest.$ac_ext
26693 cat >>conftest.$ac_ext <<_ACEOF
26694 /* end confdefs.h.  */
26695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26697 #define $ac_func innocuous_$ac_func
26698
26699 /* System header to define __stub macros and hopefully few prototypes,
26700     which can conflict with char $ac_func (); below.
26701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26702     <limits.h> exists even on freestanding compilers.  */
26703
26704 #ifdef __STDC__
26705 # include <limits.h>
26706 #else
26707 # include <assert.h>
26708 #endif
26709
26710 #undef $ac_func
26711
26712 /* Override any gcc2 internal prototype to avoid an error.  */
26713 #ifdef __cplusplus
26714 extern "C"
26715 {
26716 #endif
26717 /* We use char because int might match the return type of a gcc2
26718    builtin and then its argument prototype would still apply.  */
26719 char $ac_func ();
26720 /* The GNU C library defines this for functions which it implements
26721     to always fail with ENOSYS.  Some functions are actually named
26722     something starting with __ and the normal name is an alias.  */
26723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26724 choke me
26725 #else
26726 char (*f) () = $ac_func;
26727 #endif
26728 #ifdef __cplusplus
26729 }
26730 #endif
26731
26732 int
26733 main ()
26734 {
26735 return f != $ac_func;
26736   ;
26737   return 0;
26738 }
26739 _ACEOF
26740 rm -f conftest.$ac_objext conftest$ac_exeext
26741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26742   (eval $ac_link) 2>conftest.er1
26743   ac_status=$?
26744   grep -v '^ *+' conftest.er1 >conftest.err
26745   rm -f conftest.er1
26746   cat conftest.err >&5
26747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748   (exit $ac_status); } &&
26749          { ac_try='test -z "$ac_c_werror_flag"
26750                          || test ! -s conftest.err'
26751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26752   (eval $ac_try) 2>&5
26753   ac_status=$?
26754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755   (exit $ac_status); }; } &&
26756          { ac_try='test -s conftest$ac_exeext'
26757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26758   (eval $ac_try) 2>&5
26759   ac_status=$?
26760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761   (exit $ac_status); }; }; then
26762   eval "$as_ac_var=yes"
26763 else
26764   echo "$as_me: failed program was:" >&5
26765 sed 's/^/| /' conftest.$ac_ext >&5
26766
26767 eval "$as_ac_var=no"
26768 fi
26769 rm -f conftest.err conftest.$ac_objext \
26770       conftest$ac_exeext conftest.$ac_ext
26771 fi
26772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26774 if test `eval echo '${'$as_ac_var'}'` = yes; then
26775   cat >>confdefs.h <<_ACEOF
26776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26777 _ACEOF
26778
26779 fi
26780 done
26781
26782
26783 for ac_func in fdatasync
26784 do
26785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26786 echo "$as_me:$LINENO: checking for $ac_func" >&5
26787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26788 if eval "test \"\${$as_ac_var+set}\" = set"; then
26789   echo $ECHO_N "(cached) $ECHO_C" >&6
26790 else
26791   cat >conftest.$ac_ext <<_ACEOF
26792 /* confdefs.h.  */
26793 _ACEOF
26794 cat confdefs.h >>conftest.$ac_ext
26795 cat >>conftest.$ac_ext <<_ACEOF
26796 /* end confdefs.h.  */
26797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26799 #define $ac_func innocuous_$ac_func
26800
26801 /* System header to define __stub macros and hopefully few prototypes,
26802     which can conflict with char $ac_func (); below.
26803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26804     <limits.h> exists even on freestanding compilers.  */
26805
26806 #ifdef __STDC__
26807 # include <limits.h>
26808 #else
26809 # include <assert.h>
26810 #endif
26811
26812 #undef $ac_func
26813
26814 /* Override any gcc2 internal prototype to avoid an error.  */
26815 #ifdef __cplusplus
26816 extern "C"
26817 {
26818 #endif
26819 /* We use char because int might match the return type of a gcc2
26820    builtin and then its argument prototype would still apply.  */
26821 char $ac_func ();
26822 /* The GNU C library defines this for functions which it implements
26823     to always fail with ENOSYS.  Some functions are actually named
26824     something starting with __ and the normal name is an alias.  */
26825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26826 choke me
26827 #else
26828 char (*f) () = $ac_func;
26829 #endif
26830 #ifdef __cplusplus
26831 }
26832 #endif
26833
26834 int
26835 main ()
26836 {
26837 return f != $ac_func;
26838   ;
26839   return 0;
26840 }
26841 _ACEOF
26842 rm -f conftest.$ac_objext conftest$ac_exeext
26843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26844   (eval $ac_link) 2>conftest.er1
26845   ac_status=$?
26846   grep -v '^ *+' conftest.er1 >conftest.err
26847   rm -f conftest.er1
26848   cat conftest.err >&5
26849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850   (exit $ac_status); } &&
26851          { ac_try='test -z "$ac_c_werror_flag"
26852                          || test ! -s conftest.err'
26853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26854   (eval $ac_try) 2>&5
26855   ac_status=$?
26856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857   (exit $ac_status); }; } &&
26858          { ac_try='test -s conftest$ac_exeext'
26859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26860   (eval $ac_try) 2>&5
26861   ac_status=$?
26862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863   (exit $ac_status); }; }; then
26864   eval "$as_ac_var=yes"
26865 else
26866   echo "$as_me: failed program was:" >&5
26867 sed 's/^/| /' conftest.$ac_ext >&5
26868
26869 eval "$as_ac_var=no"
26870 fi
26871 rm -f conftest.err conftest.$ac_objext \
26872       conftest$ac_exeext conftest.$ac_ext
26873 fi
26874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26876 if test `eval echo '${'$as_ac_var'}'` = yes; then
26877   cat >>confdefs.h <<_ACEOF
26878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26879 _ACEOF
26880
26881 fi
26882 done
26883
26884
26885
26886 for ac_func in chflags
26887 do
26888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26889 echo "$as_me:$LINENO: checking for $ac_func" >&5
26890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26891 if eval "test \"\${$as_ac_var+set}\" = set"; then
26892   echo $ECHO_N "(cached) $ECHO_C" >&6
26893 else
26894   cat >conftest.$ac_ext <<_ACEOF
26895 /* confdefs.h.  */
26896 _ACEOF
26897 cat confdefs.h >>conftest.$ac_ext
26898 cat >>conftest.$ac_ext <<_ACEOF
26899 /* end confdefs.h.  */
26900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26902 #define $ac_func innocuous_$ac_func
26903
26904 /* System header to define __stub macros and hopefully few prototypes,
26905     which can conflict with char $ac_func (); below.
26906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26907     <limits.h> exists even on freestanding compilers.  */
26908
26909 #ifdef __STDC__
26910 # include <limits.h>
26911 #else
26912 # include <assert.h>
26913 #endif
26914
26915 #undef $ac_func
26916
26917 /* Override any gcc2 internal prototype to avoid an error.  */
26918 #ifdef __cplusplus
26919 extern "C"
26920 {
26921 #endif
26922 /* We use char because int might match the return type of a gcc2
26923    builtin and then its argument prototype would still apply.  */
26924 char $ac_func ();
26925 /* The GNU C library defines this for functions which it implements
26926     to always fail with ENOSYS.  Some functions are actually named
26927     something starting with __ and the normal name is an alias.  */
26928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26929 choke me
26930 #else
26931 char (*f) () = $ac_func;
26932 #endif
26933 #ifdef __cplusplus
26934 }
26935 #endif
26936
26937 int
26938 main ()
26939 {
26940 return f != $ac_func;
26941   ;
26942   return 0;
26943 }
26944 _ACEOF
26945 rm -f conftest.$ac_objext conftest$ac_exeext
26946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26947   (eval $ac_link) 2>conftest.er1
26948   ac_status=$?
26949   grep -v '^ *+' conftest.er1 >conftest.err
26950   rm -f conftest.er1
26951   cat conftest.err >&5
26952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953   (exit $ac_status); } &&
26954          { ac_try='test -z "$ac_c_werror_flag"
26955                          || test ! -s conftest.err'
26956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26957   (eval $ac_try) 2>&5
26958   ac_status=$?
26959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960   (exit $ac_status); }; } &&
26961          { ac_try='test -s conftest$ac_exeext'
26962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26963   (eval $ac_try) 2>&5
26964   ac_status=$?
26965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966   (exit $ac_status); }; }; then
26967   eval "$as_ac_var=yes"
26968 else
26969   echo "$as_me: failed program was:" >&5
26970 sed 's/^/| /' conftest.$ac_ext >&5
26971
26972 eval "$as_ac_var=no"
26973 fi
26974 rm -f conftest.err conftest.$ac_objext \
26975       conftest$ac_exeext conftest.$ac_ext
26976 fi
26977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26979 if test `eval echo '${'$as_ac_var'}'` = yes; then
26980   cat >>confdefs.h <<_ACEOF
26981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26982 _ACEOF
26983
26984 fi
26985 done
26986
26987
26988
26989
26990
26991
26992 for ac_func in snprintf vsnprintf gethostid fseeko
26993 do
26994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26995 echo "$as_me:$LINENO: checking for $ac_func" >&5
26996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26997 if eval "test \"\${$as_ac_var+set}\" = set"; then
26998   echo $ECHO_N "(cached) $ECHO_C" >&6
26999 else
27000   cat >conftest.$ac_ext <<_ACEOF
27001 /* confdefs.h.  */
27002 _ACEOF
27003 cat confdefs.h >>conftest.$ac_ext
27004 cat >>conftest.$ac_ext <<_ACEOF
27005 /* end confdefs.h.  */
27006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27008 #define $ac_func innocuous_$ac_func
27009
27010 /* System header to define __stub macros and hopefully few prototypes,
27011     which can conflict with char $ac_func (); below.
27012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27013     <limits.h> exists even on freestanding compilers.  */
27014
27015 #ifdef __STDC__
27016 # include <limits.h>
27017 #else
27018 # include <assert.h>
27019 #endif
27020
27021 #undef $ac_func
27022
27023 /* Override any gcc2 internal prototype to avoid an error.  */
27024 #ifdef __cplusplus
27025 extern "C"
27026 {
27027 #endif
27028 /* We use char because int might match the return type of a gcc2
27029    builtin and then its argument prototype would still apply.  */
27030 char $ac_func ();
27031 /* The GNU C library defines this for functions which it implements
27032     to always fail with ENOSYS.  Some functions are actually named
27033     something starting with __ and the normal name is an alias.  */
27034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27035 choke me
27036 #else
27037 char (*f) () = $ac_func;
27038 #endif
27039 #ifdef __cplusplus
27040 }
27041 #endif
27042
27043 int
27044 main ()
27045 {
27046 return f != $ac_func;
27047   ;
27048   return 0;
27049 }
27050 _ACEOF
27051 rm -f conftest.$ac_objext conftest$ac_exeext
27052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27053   (eval $ac_link) 2>conftest.er1
27054   ac_status=$?
27055   grep -v '^ *+' conftest.er1 >conftest.err
27056   rm -f conftest.er1
27057   cat conftest.err >&5
27058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059   (exit $ac_status); } &&
27060          { ac_try='test -z "$ac_c_werror_flag"
27061                          || test ! -s conftest.err'
27062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27063   (eval $ac_try) 2>&5
27064   ac_status=$?
27065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066   (exit $ac_status); }; } &&
27067          { ac_try='test -s conftest$ac_exeext'
27068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27069   (eval $ac_try) 2>&5
27070   ac_status=$?
27071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072   (exit $ac_status); }; }; then
27073   eval "$as_ac_var=yes"
27074 else
27075   echo "$as_me: failed program was:" >&5
27076 sed 's/^/| /' conftest.$ac_ext >&5
27077
27078 eval "$as_ac_var=no"
27079 fi
27080 rm -f conftest.err conftest.$ac_objext \
27081       conftest$ac_exeext conftest.$ac_ext
27082 fi
27083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27085 if test `eval echo '${'$as_ac_var'}'` = yes; then
27086   cat >>confdefs.h <<_ACEOF
27087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27088 _ACEOF
27089
27090 fi
27091 done
27092
27093
27094 echo "$as_me:$LINENO: checking for va_copy" >&5
27095 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
27096 if test "${ba_cv_va_copy+set}" = set; then
27097   echo $ECHO_N "(cached) $ECHO_C" >&6
27098 else
27099   cat >conftest.$ac_ext <<_ACEOF
27100 /* confdefs.h.  */
27101 _ACEOF
27102 cat confdefs.h >>conftest.$ac_ext
27103 cat >>conftest.$ac_ext <<_ACEOF
27104 /* end confdefs.h.  */
27105
27106 #include <stdarg.h>
27107 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27108 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27109
27110 int
27111 main ()
27112 {
27113 call_use_va_copy(1,2,3)
27114   ;
27115   return 0;
27116 }
27117 _ACEOF
27118 rm -f conftest.$ac_objext conftest$ac_exeext
27119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27120   (eval $ac_link) 2>conftest.er1
27121   ac_status=$?
27122   grep -v '^ *+' conftest.er1 >conftest.err
27123   rm -f conftest.er1
27124   cat conftest.err >&5
27125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126   (exit $ac_status); } &&
27127          { ac_try='test -z "$ac_c_werror_flag"
27128                          || test ! -s conftest.err'
27129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27130   (eval $ac_try) 2>&5
27131   ac_status=$?
27132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133   (exit $ac_status); }; } &&
27134          { ac_try='test -s conftest$ac_exeext'
27135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27136   (eval $ac_try) 2>&5
27137   ac_status=$?
27138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139   (exit $ac_status); }; }; then
27140   ba_cv_va_copy=yes
27141 else
27142   echo "$as_me: failed program was:" >&5
27143 sed 's/^/| /' conftest.$ac_ext >&5
27144
27145 ba_cv_va_copy=no
27146 fi
27147 rm -f conftest.err conftest.$ac_objext \
27148       conftest$ac_exeext conftest.$ac_ext
27149 fi
27150 echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27151 echo "${ECHO_T}$ba_cv_va_copy" >&6
27152 test $ba_cv_va_copy = yes &&
27153 cat >>confdefs.h <<\_ACEOF
27154 #define HAVE_VA_COPY 1
27155 _ACEOF
27156
27157
27158
27159
27160
27161
27162
27163 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27164 do
27165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27166 echo "$as_me:$LINENO: checking for $ac_func" >&5
27167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27168 if eval "test \"\${$as_ac_var+set}\" = set"; then
27169   echo $ECHO_N "(cached) $ECHO_C" >&6
27170 else
27171   cat >conftest.$ac_ext <<_ACEOF
27172 /* confdefs.h.  */
27173 _ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h.  */
27177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27179 #define $ac_func innocuous_$ac_func
27180
27181 /* System header to define __stub macros and hopefully few prototypes,
27182     which can conflict with char $ac_func (); below.
27183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27184     <limits.h> exists even on freestanding compilers.  */
27185
27186 #ifdef __STDC__
27187 # include <limits.h>
27188 #else
27189 # include <assert.h>
27190 #endif
27191
27192 #undef $ac_func
27193
27194 /* Override any gcc2 internal prototype to avoid an error.  */
27195 #ifdef __cplusplus
27196 extern "C"
27197 {
27198 #endif
27199 /* We use char because int might match the return type of a gcc2
27200    builtin and then its argument prototype would still apply.  */
27201 char $ac_func ();
27202 /* The GNU C library defines this for functions which it implements
27203     to always fail with ENOSYS.  Some functions are actually named
27204     something starting with __ and the normal name is an alias.  */
27205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27206 choke me
27207 #else
27208 char (*f) () = $ac_func;
27209 #endif
27210 #ifdef __cplusplus
27211 }
27212 #endif
27213
27214 int
27215 main ()
27216 {
27217 return f != $ac_func;
27218   ;
27219   return 0;
27220 }
27221 _ACEOF
27222 rm -f conftest.$ac_objext conftest$ac_exeext
27223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27224   (eval $ac_link) 2>conftest.er1
27225   ac_status=$?
27226   grep -v '^ *+' conftest.er1 >conftest.err
27227   rm -f conftest.er1
27228   cat conftest.err >&5
27229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230   (exit $ac_status); } &&
27231          { ac_try='test -z "$ac_c_werror_flag"
27232                          || test ! -s conftest.err'
27233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27234   (eval $ac_try) 2>&5
27235   ac_status=$?
27236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237   (exit $ac_status); }; } &&
27238          { ac_try='test -s conftest$ac_exeext'
27239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27240   (eval $ac_try) 2>&5
27241   ac_status=$?
27242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243   (exit $ac_status); }; }; then
27244   eval "$as_ac_var=yes"
27245 else
27246   echo "$as_me: failed program was:" >&5
27247 sed 's/^/| /' conftest.$ac_ext >&5
27248
27249 eval "$as_ac_var=no"
27250 fi
27251 rm -f conftest.err conftest.$ac_objext \
27252       conftest$ac_exeext conftest.$ac_ext
27253 fi
27254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27256 if test `eval echo '${'$as_ac_var'}'` = yes; then
27257   cat >>confdefs.h <<_ACEOF
27258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27259 _ACEOF
27260
27261 fi
27262 done
27263
27264
27265 # If resolver functions are not in libc check for -lnsl or -lresolv.
27266 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27267 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27268 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27269   echo $ECHO_N "(cached) $ECHO_C" >&6
27270 else
27271   cat >conftest.$ac_ext <<_ACEOF
27272 /* confdefs.h.  */
27273 _ACEOF
27274 cat confdefs.h >>conftest.$ac_ext
27275 cat >>conftest.$ac_ext <<_ACEOF
27276 /* end confdefs.h.  */
27277 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27279 #define gethostbyname_r innocuous_gethostbyname_r
27280
27281 /* System header to define __stub macros and hopefully few prototypes,
27282     which can conflict with char gethostbyname_r (); below.
27283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27284     <limits.h> exists even on freestanding compilers.  */
27285
27286 #ifdef __STDC__
27287 # include <limits.h>
27288 #else
27289 # include <assert.h>
27290 #endif
27291
27292 #undef gethostbyname_r
27293
27294 /* Override any gcc2 internal prototype to avoid an error.  */
27295 #ifdef __cplusplus
27296 extern "C"
27297 {
27298 #endif
27299 /* We use char because int might match the return type of a gcc2
27300    builtin and then its argument prototype would still apply.  */
27301 char gethostbyname_r ();
27302 /* The GNU C library defines this for functions which it implements
27303     to always fail with ENOSYS.  Some functions are actually named
27304     something starting with __ and the normal name is an alias.  */
27305 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27306 choke me
27307 #else
27308 char (*f) () = gethostbyname_r;
27309 #endif
27310 #ifdef __cplusplus
27311 }
27312 #endif
27313
27314 int
27315 main ()
27316 {
27317 return f != gethostbyname_r;
27318   ;
27319   return 0;
27320 }
27321 _ACEOF
27322 rm -f conftest.$ac_objext conftest$ac_exeext
27323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27324   (eval $ac_link) 2>conftest.er1
27325   ac_status=$?
27326   grep -v '^ *+' conftest.er1 >conftest.err
27327   rm -f conftest.er1
27328   cat conftest.err >&5
27329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330   (exit $ac_status); } &&
27331          { ac_try='test -z "$ac_c_werror_flag"
27332                          || test ! -s conftest.err'
27333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27334   (eval $ac_try) 2>&5
27335   ac_status=$?
27336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337   (exit $ac_status); }; } &&
27338          { ac_try='test -s conftest$ac_exeext'
27339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27340   (eval $ac_try) 2>&5
27341   ac_status=$?
27342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343   (exit $ac_status); }; }; then
27344   ac_cv_func_gethostbyname_r=yes
27345 else
27346   echo "$as_me: failed program was:" >&5
27347 sed 's/^/| /' conftest.$ac_ext >&5
27348
27349 ac_cv_func_gethostbyname_r=no
27350 fi
27351 rm -f conftest.err conftest.$ac_objext \
27352       conftest$ac_exeext conftest.$ac_ext
27353 fi
27354 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27355 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27356 if test $ac_cv_func_gethostbyname_r = yes; then
27357   echo "$as_me:$LINENO: result: using libc's resolver" >&5
27358 echo "${ECHO_T}using libc's resolver" >&6
27359 else
27360
27361 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27362 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
27363 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27364   echo $ECHO_N "(cached) $ECHO_C" >&6
27365 else
27366   ac_check_lib_save_LIBS=$LIBS
27367 LIBS="-lnsl  $LIBS"
27368 cat >conftest.$ac_ext <<_ACEOF
27369 /* confdefs.h.  */
27370 _ACEOF
27371 cat confdefs.h >>conftest.$ac_ext
27372 cat >>conftest.$ac_ext <<_ACEOF
27373 /* end confdefs.h.  */
27374
27375 /* Override any gcc2 internal prototype to avoid an error.  */
27376 #ifdef __cplusplus
27377 extern "C"
27378 #endif
27379 /* We use char because int might match the return type of a gcc2
27380    builtin and then its argument prototype would still apply.  */
27381 char gethostbyname_r ();
27382 int
27383 main ()
27384 {
27385 gethostbyname_r ();
27386   ;
27387   return 0;
27388 }
27389 _ACEOF
27390 rm -f conftest.$ac_objext conftest$ac_exeext
27391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27392   (eval $ac_link) 2>conftest.er1
27393   ac_status=$?
27394   grep -v '^ *+' conftest.er1 >conftest.err
27395   rm -f conftest.er1
27396   cat conftest.err >&5
27397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398   (exit $ac_status); } &&
27399          { ac_try='test -z "$ac_c_werror_flag"
27400                          || test ! -s conftest.err'
27401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27402   (eval $ac_try) 2>&5
27403   ac_status=$?
27404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405   (exit $ac_status); }; } &&
27406          { ac_try='test -s conftest$ac_exeext'
27407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27408   (eval $ac_try) 2>&5
27409   ac_status=$?
27410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411   (exit $ac_status); }; }; then
27412   ac_cv_lib_nsl_gethostbyname_r=yes
27413 else
27414   echo "$as_me: failed program was:" >&5
27415 sed 's/^/| /' conftest.$ac_ext >&5
27416
27417 ac_cv_lib_nsl_gethostbyname_r=no
27418 fi
27419 rm -f conftest.err conftest.$ac_objext \
27420       conftest$ac_exeext conftest.$ac_ext
27421 LIBS=$ac_check_lib_save_LIBS
27422 fi
27423 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27424 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
27425 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27426   cat >>confdefs.h <<_ACEOF
27427 #define HAVE_LIBNSL 1
27428 _ACEOF
27429
27430   LIBS="-lnsl $LIBS"
27431
27432 fi
27433
27434
27435 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27436 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
27437 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27438   echo $ECHO_N "(cached) $ECHO_C" >&6
27439 else
27440   ac_check_lib_save_LIBS=$LIBS
27441 LIBS="-lresolv  $LIBS"
27442 cat >conftest.$ac_ext <<_ACEOF
27443 /* confdefs.h.  */
27444 _ACEOF
27445 cat confdefs.h >>conftest.$ac_ext
27446 cat >>conftest.$ac_ext <<_ACEOF
27447 /* end confdefs.h.  */
27448
27449 /* Override any gcc2 internal prototype to avoid an error.  */
27450 #ifdef __cplusplus
27451 extern "C"
27452 #endif
27453 /* We use char because int might match the return type of a gcc2
27454    builtin and then its argument prototype would still apply.  */
27455 char gethostbyname_r ();
27456 int
27457 main ()
27458 {
27459 gethostbyname_r ();
27460   ;
27461   return 0;
27462 }
27463 _ACEOF
27464 rm -f conftest.$ac_objext conftest$ac_exeext
27465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27466   (eval $ac_link) 2>conftest.er1
27467   ac_status=$?
27468   grep -v '^ *+' conftest.er1 >conftest.err
27469   rm -f conftest.er1
27470   cat conftest.err >&5
27471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472   (exit $ac_status); } &&
27473          { ac_try='test -z "$ac_c_werror_flag"
27474                          || test ! -s conftest.err'
27475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27476   (eval $ac_try) 2>&5
27477   ac_status=$?
27478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479   (exit $ac_status); }; } &&
27480          { ac_try='test -s conftest$ac_exeext'
27481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27482   (eval $ac_try) 2>&5
27483   ac_status=$?
27484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485   (exit $ac_status); }; }; then
27486   ac_cv_lib_resolv_gethostbyname_r=yes
27487 else
27488   echo "$as_me: failed program was:" >&5
27489 sed 's/^/| /' conftest.$ac_ext >&5
27490
27491 ac_cv_lib_resolv_gethostbyname_r=no
27492 fi
27493 rm -f conftest.err conftest.$ac_objext \
27494       conftest$ac_exeext conftest.$ac_ext
27495 LIBS=$ac_check_lib_save_LIBS
27496 fi
27497 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27498 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
27499 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27500   cat >>confdefs.h <<_ACEOF
27501 #define HAVE_LIBRESOLV 1
27502 _ACEOF
27503
27504   LIBS="-lresolv $LIBS"
27505
27506 fi
27507
27508 fi
27509
27510
27511
27512
27513
27514 for ac_func in inet_pton
27515 do
27516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27517 echo "$as_me:$LINENO: checking for $ac_func" >&5
27518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27519 if eval "test \"\${$as_ac_var+set}\" = set"; then
27520   echo $ECHO_N "(cached) $ECHO_C" >&6
27521 else
27522   cat >conftest.$ac_ext <<_ACEOF
27523 /* confdefs.h.  */
27524 _ACEOF
27525 cat confdefs.h >>conftest.$ac_ext
27526 cat >>conftest.$ac_ext <<_ACEOF
27527 /* end confdefs.h.  */
27528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27530 #define $ac_func innocuous_$ac_func
27531
27532 /* System header to define __stub macros and hopefully few prototypes,
27533     which can conflict with char $ac_func (); below.
27534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27535     <limits.h> exists even on freestanding compilers.  */
27536
27537 #ifdef __STDC__
27538 # include <limits.h>
27539 #else
27540 # include <assert.h>
27541 #endif
27542
27543 #undef $ac_func
27544
27545 /* Override any gcc2 internal prototype to avoid an error.  */
27546 #ifdef __cplusplus
27547 extern "C"
27548 {
27549 #endif
27550 /* We use char because int might match the return type of a gcc2
27551    builtin and then its argument prototype would still apply.  */
27552 char $ac_func ();
27553 /* The GNU C library defines this for functions which it implements
27554     to always fail with ENOSYS.  Some functions are actually named
27555     something starting with __ and the normal name is an alias.  */
27556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27557 choke me
27558 #else
27559 char (*f) () = $ac_func;
27560 #endif
27561 #ifdef __cplusplus
27562 }
27563 #endif
27564
27565 int
27566 main ()
27567 {
27568 return f != $ac_func;
27569   ;
27570   return 0;
27571 }
27572 _ACEOF
27573 rm -f conftest.$ac_objext conftest$ac_exeext
27574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27575   (eval $ac_link) 2>conftest.er1
27576   ac_status=$?
27577   grep -v '^ *+' conftest.er1 >conftest.err
27578   rm -f conftest.er1
27579   cat conftest.err >&5
27580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581   (exit $ac_status); } &&
27582          { ac_try='test -z "$ac_c_werror_flag"
27583                          || test ! -s conftest.err'
27584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27585   (eval $ac_try) 2>&5
27586   ac_status=$?
27587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588   (exit $ac_status); }; } &&
27589          { ac_try='test -s conftest$ac_exeext'
27590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27591   (eval $ac_try) 2>&5
27592   ac_status=$?
27593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594   (exit $ac_status); }; }; then
27595   eval "$as_ac_var=yes"
27596 else
27597   echo "$as_me: failed program was:" >&5
27598 sed 's/^/| /' conftest.$ac_ext >&5
27599
27600 eval "$as_ac_var=no"
27601 fi
27602 rm -f conftest.err conftest.$ac_objext \
27603       conftest$ac_exeext conftest.$ac_ext
27604 fi
27605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27607 if test `eval echo '${'$as_ac_var'}'` = yes; then
27608   cat >>confdefs.h <<_ACEOF
27609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27610 _ACEOF
27611  cat >>confdefs.h <<\_ACEOF
27612 #define HAVE_INET_PTON 1
27613 _ACEOF
27614
27615 fi
27616 done
27617
27618
27619 for ac_func in inet_ntop
27620 do
27621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27622 echo "$as_me:$LINENO: checking for $ac_func" >&5
27623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27624 if eval "test \"\${$as_ac_var+set}\" = set"; then
27625   echo $ECHO_N "(cached) $ECHO_C" >&6
27626 else
27627   cat >conftest.$ac_ext <<_ACEOF
27628 /* confdefs.h.  */
27629 _ACEOF
27630 cat confdefs.h >>conftest.$ac_ext
27631 cat >>conftest.$ac_ext <<_ACEOF
27632 /* end confdefs.h.  */
27633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27635 #define $ac_func innocuous_$ac_func
27636
27637 /* System header to define __stub macros and hopefully few prototypes,
27638     which can conflict with char $ac_func (); below.
27639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27640     <limits.h> exists even on freestanding compilers.  */
27641
27642 #ifdef __STDC__
27643 # include <limits.h>
27644 #else
27645 # include <assert.h>
27646 #endif
27647
27648 #undef $ac_func
27649
27650 /* Override any gcc2 internal prototype to avoid an error.  */
27651 #ifdef __cplusplus
27652 extern "C"
27653 {
27654 #endif
27655 /* We use char because int might match the return type of a gcc2
27656    builtin and then its argument prototype would still apply.  */
27657 char $ac_func ();
27658 /* The GNU C library defines this for functions which it implements
27659     to always fail with ENOSYS.  Some functions are actually named
27660     something starting with __ and the normal name is an alias.  */
27661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27662 choke me
27663 #else
27664 char (*f) () = $ac_func;
27665 #endif
27666 #ifdef __cplusplus
27667 }
27668 #endif
27669
27670 int
27671 main ()
27672 {
27673 return f != $ac_func;
27674   ;
27675   return 0;
27676 }
27677 _ACEOF
27678 rm -f conftest.$ac_objext conftest$ac_exeext
27679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27680   (eval $ac_link) 2>conftest.er1
27681   ac_status=$?
27682   grep -v '^ *+' conftest.er1 >conftest.err
27683   rm -f conftest.er1
27684   cat conftest.err >&5
27685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686   (exit $ac_status); } &&
27687          { ac_try='test -z "$ac_c_werror_flag"
27688                          || test ! -s conftest.err'
27689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27690   (eval $ac_try) 2>&5
27691   ac_status=$?
27692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693   (exit $ac_status); }; } &&
27694          { ac_try='test -s conftest$ac_exeext'
27695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27696   (eval $ac_try) 2>&5
27697   ac_status=$?
27698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699   (exit $ac_status); }; }; then
27700   eval "$as_ac_var=yes"
27701 else
27702   echo "$as_me: failed program was:" >&5
27703 sed 's/^/| /' conftest.$ac_ext >&5
27704
27705 eval "$as_ac_var=no"
27706 fi
27707 rm -f conftest.err conftest.$ac_objext \
27708       conftest$ac_exeext conftest.$ac_ext
27709 fi
27710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27712 if test `eval echo '${'$as_ac_var'}'` = yes; then
27713   cat >>confdefs.h <<_ACEOF
27714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27715 _ACEOF
27716  cat >>confdefs.h <<\_ACEOF
27717 #define HAVE_INET_NTOP 1
27718 _ACEOF
27719
27720 fi
27721 done
27722
27723
27724 for ac_func in gethostbyname2
27725 do
27726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27727 echo "$as_me:$LINENO: checking for $ac_func" >&5
27728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27729 if eval "test \"\${$as_ac_var+set}\" = set"; then
27730   echo $ECHO_N "(cached) $ECHO_C" >&6
27731 else
27732   cat >conftest.$ac_ext <<_ACEOF
27733 /* confdefs.h.  */
27734 _ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h.  */
27738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27740 #define $ac_func innocuous_$ac_func
27741
27742 /* System header to define __stub macros and hopefully few prototypes,
27743     which can conflict with char $ac_func (); below.
27744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27745     <limits.h> exists even on freestanding compilers.  */
27746
27747 #ifdef __STDC__
27748 # include <limits.h>
27749 #else
27750 # include <assert.h>
27751 #endif
27752
27753 #undef $ac_func
27754
27755 /* Override any gcc2 internal prototype to avoid an error.  */
27756 #ifdef __cplusplus
27757 extern "C"
27758 {
27759 #endif
27760 /* We use char because int might match the return type of a gcc2
27761    builtin and then its argument prototype would still apply.  */
27762 char $ac_func ();
27763 /* The GNU C library defines this for functions which it implements
27764     to always fail with ENOSYS.  Some functions are actually named
27765     something starting with __ and the normal name is an alias.  */
27766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27767 choke me
27768 #else
27769 char (*f) () = $ac_func;
27770 #endif
27771 #ifdef __cplusplus
27772 }
27773 #endif
27774
27775 int
27776 main ()
27777 {
27778 return f != $ac_func;
27779   ;
27780   return 0;
27781 }
27782 _ACEOF
27783 rm -f conftest.$ac_objext conftest$ac_exeext
27784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27785   (eval $ac_link) 2>conftest.er1
27786   ac_status=$?
27787   grep -v '^ *+' conftest.er1 >conftest.err
27788   rm -f conftest.er1
27789   cat conftest.err >&5
27790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791   (exit $ac_status); } &&
27792          { ac_try='test -z "$ac_c_werror_flag"
27793                          || test ! -s conftest.err'
27794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27795   (eval $ac_try) 2>&5
27796   ac_status=$?
27797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798   (exit $ac_status); }; } &&
27799          { ac_try='test -s conftest$ac_exeext'
27800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27801   (eval $ac_try) 2>&5
27802   ac_status=$?
27803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804   (exit $ac_status); }; }; then
27805   eval "$as_ac_var=yes"
27806 else
27807   echo "$as_me: failed program was:" >&5
27808 sed 's/^/| /' conftest.$ac_ext >&5
27809
27810 eval "$as_ac_var=no"
27811 fi
27812 rm -f conftest.err conftest.$ac_objext \
27813       conftest$ac_exeext conftest.$ac_ext
27814 fi
27815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27817 if test `eval echo '${'$as_ac_var'}'` = yes; then
27818   cat >>confdefs.h <<_ACEOF
27819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27820 _ACEOF
27821  cat >>confdefs.h <<\_ACEOF
27822 #define HAVE_GETHOSTBYNAME2 1
27823 _ACEOF
27824
27825 fi
27826 done
27827
27828
27829 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27830 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27831 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27832   echo $ECHO_N "(cached) $ECHO_C" >&6
27833 else
27834   cat >conftest.$ac_ext <<_ACEOF
27835 /* confdefs.h.  */
27836 _ACEOF
27837 cat confdefs.h >>conftest.$ac_ext
27838 cat >>conftest.$ac_ext <<_ACEOF
27839 /* end confdefs.h.  */
27840 #include <sys/socket.h>
27841 int
27842 main ()
27843 {
27844 struct sockaddr s; s.sa_len;
27845   ;
27846   return 0;
27847 }
27848 _ACEOF
27849 rm -f conftest.$ac_objext
27850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27851   (eval $ac_compile) 2>conftest.er1
27852   ac_status=$?
27853   grep -v '^ *+' conftest.er1 >conftest.err
27854   rm -f conftest.er1
27855   cat conftest.err >&5
27856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857   (exit $ac_status); } &&
27858          { ac_try='test -z "$ac_c_werror_flag"
27859                          || test ! -s conftest.err'
27860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27861   (eval $ac_try) 2>&5
27862   ac_status=$?
27863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864   (exit $ac_status); }; } &&
27865          { ac_try='test -s conftest.$ac_objext'
27866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27867   (eval $ac_try) 2>&5
27868   ac_status=$?
27869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870   (exit $ac_status); }; }; then
27871   ac_cv_struct_sockaddr_sa_len=yes
27872 else
27873   echo "$as_me: failed program was:" >&5
27874 sed 's/^/| /' conftest.$ac_ext >&5
27875
27876 ac_cv_struct_sockaddr_sa_len=no
27877 fi
27878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27879 fi
27880 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27881 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27882
27883  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27884
27885 cat >>confdefs.h <<\_ACEOF
27886 #define HAVE_SA_LEN 1
27887 _ACEOF
27888
27889  fi
27890
27891
27892
27893
27894
27895 for ac_func in strftime
27896 do
27897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27898 echo "$as_me:$LINENO: checking for $ac_func" >&5
27899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27900 if eval "test \"\${$as_ac_var+set}\" = set"; then
27901   echo $ECHO_N "(cached) $ECHO_C" >&6
27902 else
27903   cat >conftest.$ac_ext <<_ACEOF
27904 /* confdefs.h.  */
27905 _ACEOF
27906 cat confdefs.h >>conftest.$ac_ext
27907 cat >>conftest.$ac_ext <<_ACEOF
27908 /* end confdefs.h.  */
27909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27911 #define $ac_func innocuous_$ac_func
27912
27913 /* System header to define __stub macros and hopefully few prototypes,
27914     which can conflict with char $ac_func (); below.
27915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27916     <limits.h> exists even on freestanding compilers.  */
27917
27918 #ifdef __STDC__
27919 # include <limits.h>
27920 #else
27921 # include <assert.h>
27922 #endif
27923
27924 #undef $ac_func
27925
27926 /* Override any gcc2 internal prototype to avoid an error.  */
27927 #ifdef __cplusplus
27928 extern "C"
27929 {
27930 #endif
27931 /* We use char because int might match the return type of a gcc2
27932    builtin and then its argument prototype would still apply.  */
27933 char $ac_func ();
27934 /* The GNU C library defines this for functions which it implements
27935     to always fail with ENOSYS.  Some functions are actually named
27936     something starting with __ and the normal name is an alias.  */
27937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27938 choke me
27939 #else
27940 char (*f) () = $ac_func;
27941 #endif
27942 #ifdef __cplusplus
27943 }
27944 #endif
27945
27946 int
27947 main ()
27948 {
27949 return f != $ac_func;
27950   ;
27951   return 0;
27952 }
27953 _ACEOF
27954 rm -f conftest.$ac_objext conftest$ac_exeext
27955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27956   (eval $ac_link) 2>conftest.er1
27957   ac_status=$?
27958   grep -v '^ *+' conftest.er1 >conftest.err
27959   rm -f conftest.er1
27960   cat conftest.err >&5
27961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962   (exit $ac_status); } &&
27963          { ac_try='test -z "$ac_c_werror_flag"
27964                          || test ! -s conftest.err'
27965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27966   (eval $ac_try) 2>&5
27967   ac_status=$?
27968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969   (exit $ac_status); }; } &&
27970          { ac_try='test -s conftest$ac_exeext'
27971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27972   (eval $ac_try) 2>&5
27973   ac_status=$?
27974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975   (exit $ac_status); }; }; then
27976   eval "$as_ac_var=yes"
27977 else
27978   echo "$as_me: failed program was:" >&5
27979 sed 's/^/| /' conftest.$ac_ext >&5
27980
27981 eval "$as_ac_var=no"
27982 fi
27983 rm -f conftest.err conftest.$ac_objext \
27984       conftest$ac_exeext conftest.$ac_ext
27985 fi
27986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27988 if test `eval echo '${'$as_ac_var'}'` = yes; then
27989   cat >>confdefs.h <<_ACEOF
27990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27991 _ACEOF
27992
27993 else
27994   # strftime is in -lintl on SCO UNIX.
27995 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27996 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27997 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27998   echo $ECHO_N "(cached) $ECHO_C" >&6
27999 else
28000   ac_check_lib_save_LIBS=$LIBS
28001 LIBS="-lintl  $LIBS"
28002 cat >conftest.$ac_ext <<_ACEOF
28003 /* confdefs.h.  */
28004 _ACEOF
28005 cat confdefs.h >>conftest.$ac_ext
28006 cat >>conftest.$ac_ext <<_ACEOF
28007 /* end confdefs.h.  */
28008
28009 /* Override any gcc2 internal prototype to avoid an error.  */
28010 #ifdef __cplusplus
28011 extern "C"
28012 #endif
28013 /* We use char because int might match the return type of a gcc2
28014    builtin and then its argument prototype would still apply.  */
28015 char strftime ();
28016 int
28017 main ()
28018 {
28019 strftime ();
28020   ;
28021   return 0;
28022 }
28023 _ACEOF
28024 rm -f conftest.$ac_objext conftest$ac_exeext
28025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28026   (eval $ac_link) 2>conftest.er1
28027   ac_status=$?
28028   grep -v '^ *+' conftest.er1 >conftest.err
28029   rm -f conftest.er1
28030   cat conftest.err >&5
28031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032   (exit $ac_status); } &&
28033          { ac_try='test -z "$ac_c_werror_flag"
28034                          || test ! -s conftest.err'
28035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28036   (eval $ac_try) 2>&5
28037   ac_status=$?
28038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039   (exit $ac_status); }; } &&
28040          { ac_try='test -s conftest$ac_exeext'
28041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28042   (eval $ac_try) 2>&5
28043   ac_status=$?
28044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045   (exit $ac_status); }; }; then
28046   ac_cv_lib_intl_strftime=yes
28047 else
28048   echo "$as_me: failed program was:" >&5
28049 sed 's/^/| /' conftest.$ac_ext >&5
28050
28051 ac_cv_lib_intl_strftime=no
28052 fi
28053 rm -f conftest.err conftest.$ac_objext \
28054       conftest$ac_exeext conftest.$ac_ext
28055 LIBS=$ac_check_lib_save_LIBS
28056 fi
28057 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28058 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
28059 if test $ac_cv_lib_intl_strftime = yes; then
28060   cat >>confdefs.h <<\_ACEOF
28061 #define HAVE_STRFTIME 1
28062 _ACEOF
28063
28064 LIBS="-lintl $LIBS"
28065 fi
28066
28067 fi
28068 done
28069
28070
28071 for ac_func in vprintf
28072 do
28073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28074 echo "$as_me:$LINENO: checking for $ac_func" >&5
28075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28076 if eval "test \"\${$as_ac_var+set}\" = set"; then
28077   echo $ECHO_N "(cached) $ECHO_C" >&6
28078 else
28079   cat >conftest.$ac_ext <<_ACEOF
28080 /* confdefs.h.  */
28081 _ACEOF
28082 cat confdefs.h >>conftest.$ac_ext
28083 cat >>conftest.$ac_ext <<_ACEOF
28084 /* end confdefs.h.  */
28085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28087 #define $ac_func innocuous_$ac_func
28088
28089 /* System header to define __stub macros and hopefully few prototypes,
28090     which can conflict with char $ac_func (); below.
28091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28092     <limits.h> exists even on freestanding compilers.  */
28093
28094 #ifdef __STDC__
28095 # include <limits.h>
28096 #else
28097 # include <assert.h>
28098 #endif
28099
28100 #undef $ac_func
28101
28102 /* Override any gcc2 internal prototype to avoid an error.  */
28103 #ifdef __cplusplus
28104 extern "C"
28105 {
28106 #endif
28107 /* We use char because int might match the return type of a gcc2
28108    builtin and then its argument prototype would still apply.  */
28109 char $ac_func ();
28110 /* The GNU C library defines this for functions which it implements
28111     to always fail with ENOSYS.  Some functions are actually named
28112     something starting with __ and the normal name is an alias.  */
28113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28114 choke me
28115 #else
28116 char (*f) () = $ac_func;
28117 #endif
28118 #ifdef __cplusplus
28119 }
28120 #endif
28121
28122 int
28123 main ()
28124 {
28125 return f != $ac_func;
28126   ;
28127   return 0;
28128 }
28129 _ACEOF
28130 rm -f conftest.$ac_objext conftest$ac_exeext
28131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28132   (eval $ac_link) 2>conftest.er1
28133   ac_status=$?
28134   grep -v '^ *+' conftest.er1 >conftest.err
28135   rm -f conftest.er1
28136   cat conftest.err >&5
28137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28138   (exit $ac_status); } &&
28139          { ac_try='test -z "$ac_c_werror_flag"
28140                          || test ! -s conftest.err'
28141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28142   (eval $ac_try) 2>&5
28143   ac_status=$?
28144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145   (exit $ac_status); }; } &&
28146          { ac_try='test -s conftest$ac_exeext'
28147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28148   (eval $ac_try) 2>&5
28149   ac_status=$?
28150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151   (exit $ac_status); }; }; then
28152   eval "$as_ac_var=yes"
28153 else
28154   echo "$as_me: failed program was:" >&5
28155 sed 's/^/| /' conftest.$ac_ext >&5
28156
28157 eval "$as_ac_var=no"
28158 fi
28159 rm -f conftest.err conftest.$ac_objext \
28160       conftest$ac_exeext conftest.$ac_ext
28161 fi
28162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28164 if test `eval echo '${'$as_ac_var'}'` = yes; then
28165   cat >>confdefs.h <<_ACEOF
28166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28167 _ACEOF
28168
28169 echo "$as_me:$LINENO: checking for _doprnt" >&5
28170 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28171 if test "${ac_cv_func__doprnt+set}" = set; then
28172   echo $ECHO_N "(cached) $ECHO_C" >&6
28173 else
28174   cat >conftest.$ac_ext <<_ACEOF
28175 /* confdefs.h.  */
28176 _ACEOF
28177 cat confdefs.h >>conftest.$ac_ext
28178 cat >>conftest.$ac_ext <<_ACEOF
28179 /* end confdefs.h.  */
28180 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28182 #define _doprnt innocuous__doprnt
28183
28184 /* System header to define __stub macros and hopefully few prototypes,
28185     which can conflict with char _doprnt (); below.
28186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28187     <limits.h> exists even on freestanding compilers.  */
28188
28189 #ifdef __STDC__
28190 # include <limits.h>
28191 #else
28192 # include <assert.h>
28193 #endif
28194
28195 #undef _doprnt
28196
28197 /* Override any gcc2 internal prototype to avoid an error.  */
28198 #ifdef __cplusplus
28199 extern "C"
28200 {
28201 #endif
28202 /* We use char because int might match the return type of a gcc2
28203    builtin and then its argument prototype would still apply.  */
28204 char _doprnt ();
28205 /* The GNU C library defines this for functions which it implements
28206     to always fail with ENOSYS.  Some functions are actually named
28207     something starting with __ and the normal name is an alias.  */
28208 #if defined (__stub__doprnt) || defined (__stub____doprnt)
28209 choke me
28210 #else
28211 char (*f) () = _doprnt;
28212 #endif
28213 #ifdef __cplusplus
28214 }
28215 #endif
28216
28217 int
28218 main ()
28219 {
28220 return f != _doprnt;
28221   ;
28222   return 0;
28223 }
28224 _ACEOF
28225 rm -f conftest.$ac_objext conftest$ac_exeext
28226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28227   (eval $ac_link) 2>conftest.er1
28228   ac_status=$?
28229   grep -v '^ *+' conftest.er1 >conftest.err
28230   rm -f conftest.er1
28231   cat conftest.err >&5
28232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233   (exit $ac_status); } &&
28234          { ac_try='test -z "$ac_c_werror_flag"
28235                          || test ! -s conftest.err'
28236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28237   (eval $ac_try) 2>&5
28238   ac_status=$?
28239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240   (exit $ac_status); }; } &&
28241          { ac_try='test -s conftest$ac_exeext'
28242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28243   (eval $ac_try) 2>&5
28244   ac_status=$?
28245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246   (exit $ac_status); }; }; then
28247   ac_cv_func__doprnt=yes
28248 else
28249   echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28251
28252 ac_cv_func__doprnt=no
28253 fi
28254 rm -f conftest.err conftest.$ac_objext \
28255       conftest$ac_exeext conftest.$ac_ext
28256 fi
28257 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28258 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28259 if test $ac_cv_func__doprnt = yes; then
28260
28261 cat >>confdefs.h <<\_ACEOF
28262 #define HAVE_DOPRNT 1
28263 _ACEOF
28264
28265 fi
28266
28267 fi
28268 done
28269
28270
28271 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28272 # for constant arguments.  Useless!
28273 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28274 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28275 if test "${ac_cv_working_alloca_h+set}" = set; then
28276   echo $ECHO_N "(cached) $ECHO_C" >&6
28277 else
28278   cat >conftest.$ac_ext <<_ACEOF
28279 /* confdefs.h.  */
28280 _ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h.  */
28284 #include <alloca.h>
28285 int
28286 main ()
28287 {
28288 char *p = (char *) alloca (2 * sizeof (int));
28289   ;
28290   return 0;
28291 }
28292 _ACEOF
28293 rm -f conftest.$ac_objext conftest$ac_exeext
28294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28295   (eval $ac_link) 2>conftest.er1
28296   ac_status=$?
28297   grep -v '^ *+' conftest.er1 >conftest.err
28298   rm -f conftest.er1
28299   cat conftest.err >&5
28300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301   (exit $ac_status); } &&
28302          { ac_try='test -z "$ac_c_werror_flag"
28303                          || test ! -s conftest.err'
28304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305   (eval $ac_try) 2>&5
28306   ac_status=$?
28307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308   (exit $ac_status); }; } &&
28309          { ac_try='test -s conftest$ac_exeext'
28310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28311   (eval $ac_try) 2>&5
28312   ac_status=$?
28313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314   (exit $ac_status); }; }; then
28315   ac_cv_working_alloca_h=yes
28316 else
28317   echo "$as_me: failed program was:" >&5
28318 sed 's/^/| /' conftest.$ac_ext >&5
28319
28320 ac_cv_working_alloca_h=no
28321 fi
28322 rm -f conftest.err conftest.$ac_objext \
28323       conftest$ac_exeext conftest.$ac_ext
28324 fi
28325 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28326 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28327 if test $ac_cv_working_alloca_h = yes; then
28328
28329 cat >>confdefs.h <<\_ACEOF
28330 #define HAVE_ALLOCA_H 1
28331 _ACEOF
28332
28333 fi
28334
28335 echo "$as_me:$LINENO: checking for alloca" >&5
28336 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28337 if test "${ac_cv_func_alloca_works+set}" = set; then
28338   echo $ECHO_N "(cached) $ECHO_C" >&6
28339 else
28340   cat >conftest.$ac_ext <<_ACEOF
28341 /* confdefs.h.  */
28342 _ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h.  */
28346 #ifdef __GNUC__
28347 # define alloca __builtin_alloca
28348 #else
28349 # ifdef _MSC_VER
28350 #  include <malloc.h>
28351 #  define alloca _alloca
28352 # else
28353 #  if HAVE_ALLOCA_H
28354 #   include <alloca.h>
28355 #  else
28356 #   ifdef _AIX
28357  #pragma alloca
28358 #   else
28359 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28360 char *alloca ();
28361 #    endif
28362 #   endif
28363 #  endif
28364 # endif
28365 #endif
28366
28367 int
28368 main ()
28369 {
28370 char *p = (char *) alloca (1);
28371   ;
28372   return 0;
28373 }
28374 _ACEOF
28375 rm -f conftest.$ac_objext conftest$ac_exeext
28376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28377   (eval $ac_link) 2>conftest.er1
28378   ac_status=$?
28379   grep -v '^ *+' conftest.er1 >conftest.err
28380   rm -f conftest.er1
28381   cat conftest.err >&5
28382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383   (exit $ac_status); } &&
28384          { ac_try='test -z "$ac_c_werror_flag"
28385                          || test ! -s conftest.err'
28386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28387   (eval $ac_try) 2>&5
28388   ac_status=$?
28389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390   (exit $ac_status); }; } &&
28391          { ac_try='test -s conftest$ac_exeext'
28392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28393   (eval $ac_try) 2>&5
28394   ac_status=$?
28395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396   (exit $ac_status); }; }; then
28397   ac_cv_func_alloca_works=yes
28398 else
28399   echo "$as_me: failed program was:" >&5
28400 sed 's/^/| /' conftest.$ac_ext >&5
28401
28402 ac_cv_func_alloca_works=no
28403 fi
28404 rm -f conftest.err conftest.$ac_objext \
28405       conftest$ac_exeext conftest.$ac_ext
28406 fi
28407 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28408 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28409
28410 if test $ac_cv_func_alloca_works = yes; then
28411
28412 cat >>confdefs.h <<\_ACEOF
28413 #define HAVE_ALLOCA 1
28414 _ACEOF
28415
28416 else
28417   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28418 # that cause trouble.  Some versions do not even contain alloca or
28419 # contain a buggy version.  If you still want to use their alloca,
28420 # use ar to extract alloca.o from them instead of compiling alloca.c.
28421
28422 ALLOCA=alloca.$ac_objext
28423
28424 cat >>confdefs.h <<\_ACEOF
28425 #define C_ALLOCA 1
28426 _ACEOF
28427
28428
28429 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28430 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28431 if test "${ac_cv_os_cray+set}" = set; then
28432   echo $ECHO_N "(cached) $ECHO_C" >&6
28433 else
28434   cat >conftest.$ac_ext <<_ACEOF
28435 /* confdefs.h.  */
28436 _ACEOF
28437 cat confdefs.h >>conftest.$ac_ext
28438 cat >>conftest.$ac_ext <<_ACEOF
28439 /* end confdefs.h.  */
28440 #if defined(CRAY) && ! defined(CRAY2)
28441 webecray
28442 #else
28443 wenotbecray
28444 #endif
28445
28446 _ACEOF
28447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28448   $EGREP "webecray" >/dev/null 2>&1; then
28449   ac_cv_os_cray=yes
28450 else
28451   ac_cv_os_cray=no
28452 fi
28453 rm -f conftest*
28454
28455 fi
28456 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28457 echo "${ECHO_T}$ac_cv_os_cray" >&6
28458 if test $ac_cv_os_cray = yes; then
28459   for ac_func in _getb67 GETB67 getb67; do
28460     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28461 echo "$as_me:$LINENO: checking for $ac_func" >&5
28462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28463 if eval "test \"\${$as_ac_var+set}\" = set"; then
28464   echo $ECHO_N "(cached) $ECHO_C" >&6
28465 else
28466   cat >conftest.$ac_ext <<_ACEOF
28467 /* confdefs.h.  */
28468 _ACEOF
28469 cat confdefs.h >>conftest.$ac_ext
28470 cat >>conftest.$ac_ext <<_ACEOF
28471 /* end confdefs.h.  */
28472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28474 #define $ac_func innocuous_$ac_func
28475
28476 /* System header to define __stub macros and hopefully few prototypes,
28477     which can conflict with char $ac_func (); below.
28478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28479     <limits.h> exists even on freestanding compilers.  */
28480
28481 #ifdef __STDC__
28482 # include <limits.h>
28483 #else
28484 # include <assert.h>
28485 #endif
28486
28487 #undef $ac_func
28488
28489 /* Override any gcc2 internal prototype to avoid an error.  */
28490 #ifdef __cplusplus
28491 extern "C"
28492 {
28493 #endif
28494 /* We use char because int might match the return type of a gcc2
28495    builtin and then its argument prototype would still apply.  */
28496 char $ac_func ();
28497 /* The GNU C library defines this for functions which it implements
28498     to always fail with ENOSYS.  Some functions are actually named
28499     something starting with __ and the normal name is an alias.  */
28500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28501 choke me
28502 #else
28503 char (*f) () = $ac_func;
28504 #endif
28505 #ifdef __cplusplus
28506 }
28507 #endif
28508
28509 int
28510 main ()
28511 {
28512 return f != $ac_func;
28513   ;
28514   return 0;
28515 }
28516 _ACEOF
28517 rm -f conftest.$ac_objext conftest$ac_exeext
28518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28519   (eval $ac_link) 2>conftest.er1
28520   ac_status=$?
28521   grep -v '^ *+' conftest.er1 >conftest.err
28522   rm -f conftest.er1
28523   cat conftest.err >&5
28524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525   (exit $ac_status); } &&
28526          { ac_try='test -z "$ac_c_werror_flag"
28527                          || test ! -s conftest.err'
28528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529   (eval $ac_try) 2>&5
28530   ac_status=$?
28531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532   (exit $ac_status); }; } &&
28533          { ac_try='test -s conftest$ac_exeext'
28534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535   (eval $ac_try) 2>&5
28536   ac_status=$?
28537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538   (exit $ac_status); }; }; then
28539   eval "$as_ac_var=yes"
28540 else
28541   echo "$as_me: failed program was:" >&5
28542 sed 's/^/| /' conftest.$ac_ext >&5
28543
28544 eval "$as_ac_var=no"
28545 fi
28546 rm -f conftest.err conftest.$ac_objext \
28547       conftest$ac_exeext conftest.$ac_ext
28548 fi
28549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28551 if test `eval echo '${'$as_ac_var'}'` = yes; then
28552
28553 cat >>confdefs.h <<_ACEOF
28554 #define CRAY_STACKSEG_END $ac_func
28555 _ACEOF
28556
28557     break
28558 fi
28559
28560   done
28561 fi
28562
28563 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28564 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28565 if test "${ac_cv_c_stack_direction+set}" = set; then
28566   echo $ECHO_N "(cached) $ECHO_C" >&6
28567 else
28568   if test "$cross_compiling" = yes; then
28569   ac_cv_c_stack_direction=0
28570 else
28571   cat >conftest.$ac_ext <<_ACEOF
28572 /* confdefs.h.  */
28573 _ACEOF
28574 cat confdefs.h >>conftest.$ac_ext
28575 cat >>conftest.$ac_ext <<_ACEOF
28576 /* end confdefs.h.  */
28577 int
28578 find_stack_direction ()
28579 {
28580   static char *addr = 0;
28581   auto char dummy;
28582   if (addr == 0)
28583     {
28584       addr = &dummy;
28585       return find_stack_direction ();
28586     }
28587   else
28588     return (&dummy > addr) ? 1 : -1;
28589 }
28590
28591 int
28592 main ()
28593 {
28594   exit (find_stack_direction () < 0);
28595 }
28596 _ACEOF
28597 rm -f conftest$ac_exeext
28598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28599   (eval $ac_link) 2>&5
28600   ac_status=$?
28601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28604   (eval $ac_try) 2>&5
28605   ac_status=$?
28606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607   (exit $ac_status); }; }; then
28608   ac_cv_c_stack_direction=1
28609 else
28610   echo "$as_me: program exited with status $ac_status" >&5
28611 echo "$as_me: failed program was:" >&5
28612 sed 's/^/| /' conftest.$ac_ext >&5
28613
28614 ( exit $ac_status )
28615 ac_cv_c_stack_direction=-1
28616 fi
28617 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28618 fi
28619 fi
28620 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28621 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28622
28623 cat >>confdefs.h <<_ACEOF
28624 #define STACK_DIRECTION $ac_cv_c_stack_direction
28625 _ACEOF
28626
28627
28628 fi
28629
28630 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28631 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28632 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28633 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28634   echo $ECHO_N "(cached) $ECHO_C" >&6
28635 else
28636   ac_check_lib_save_LIBS=$LIBS
28637 LIBS="-lsun  $LIBS"
28638 cat >conftest.$ac_ext <<_ACEOF
28639 /* confdefs.h.  */
28640 _ACEOF
28641 cat confdefs.h >>conftest.$ac_ext
28642 cat >>conftest.$ac_ext <<_ACEOF
28643 /* end confdefs.h.  */
28644
28645 /* Override any gcc2 internal prototype to avoid an error.  */
28646 #ifdef __cplusplus
28647 extern "C"
28648 #endif
28649 /* We use char because int might match the return type of a gcc2
28650    builtin and then its argument prototype would still apply.  */
28651 char getmntent ();
28652 int
28653 main ()
28654 {
28655 getmntent ();
28656   ;
28657   return 0;
28658 }
28659 _ACEOF
28660 rm -f conftest.$ac_objext conftest$ac_exeext
28661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28662   (eval $ac_link) 2>conftest.er1
28663   ac_status=$?
28664   grep -v '^ *+' conftest.er1 >conftest.err
28665   rm -f conftest.er1
28666   cat conftest.err >&5
28667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668   (exit $ac_status); } &&
28669          { ac_try='test -z "$ac_c_werror_flag"
28670                          || test ! -s conftest.err'
28671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672   (eval $ac_try) 2>&5
28673   ac_status=$?
28674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675   (exit $ac_status); }; } &&
28676          { ac_try='test -s conftest$ac_exeext'
28677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28678   (eval $ac_try) 2>&5
28679   ac_status=$?
28680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681   (exit $ac_status); }; }; then
28682   ac_cv_lib_sun_getmntent=yes
28683 else
28684   echo "$as_me: failed program was:" >&5
28685 sed 's/^/| /' conftest.$ac_ext >&5
28686
28687 ac_cv_lib_sun_getmntent=no
28688 fi
28689 rm -f conftest.err conftest.$ac_objext \
28690       conftest$ac_exeext conftest.$ac_ext
28691 LIBS=$ac_check_lib_save_LIBS
28692 fi
28693 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28694 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28695 if test $ac_cv_lib_sun_getmntent = yes; then
28696   LIBS="-lsun $LIBS"
28697 else
28698   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28699 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28700 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28701   echo $ECHO_N "(cached) $ECHO_C" >&6
28702 else
28703   ac_check_lib_save_LIBS=$LIBS
28704 LIBS="-lseq  $LIBS"
28705 cat >conftest.$ac_ext <<_ACEOF
28706 /* confdefs.h.  */
28707 _ACEOF
28708 cat confdefs.h >>conftest.$ac_ext
28709 cat >>conftest.$ac_ext <<_ACEOF
28710 /* end confdefs.h.  */
28711
28712 /* Override any gcc2 internal prototype to avoid an error.  */
28713 #ifdef __cplusplus
28714 extern "C"
28715 #endif
28716 /* We use char because int might match the return type of a gcc2
28717    builtin and then its argument prototype would still apply.  */
28718 char getmntent ();
28719 int
28720 main ()
28721 {
28722 getmntent ();
28723   ;
28724   return 0;
28725 }
28726 _ACEOF
28727 rm -f conftest.$ac_objext conftest$ac_exeext
28728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28729   (eval $ac_link) 2>conftest.er1
28730   ac_status=$?
28731   grep -v '^ *+' conftest.er1 >conftest.err
28732   rm -f conftest.er1
28733   cat conftest.err >&5
28734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735   (exit $ac_status); } &&
28736          { ac_try='test -z "$ac_c_werror_flag"
28737                          || test ! -s conftest.err'
28738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28739   (eval $ac_try) 2>&5
28740   ac_status=$?
28741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742   (exit $ac_status); }; } &&
28743          { ac_try='test -s conftest$ac_exeext'
28744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28745   (eval $ac_try) 2>&5
28746   ac_status=$?
28747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748   (exit $ac_status); }; }; then
28749   ac_cv_lib_seq_getmntent=yes
28750 else
28751   echo "$as_me: failed program was:" >&5
28752 sed 's/^/| /' conftest.$ac_ext >&5
28753
28754 ac_cv_lib_seq_getmntent=no
28755 fi
28756 rm -f conftest.err conftest.$ac_objext \
28757       conftest$ac_exeext conftest.$ac_ext
28758 LIBS=$ac_check_lib_save_LIBS
28759 fi
28760 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28761 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28762 if test $ac_cv_lib_seq_getmntent = yes; then
28763   LIBS="-lseq $LIBS"
28764 else
28765   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28766 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28767 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28768   echo $ECHO_N "(cached) $ECHO_C" >&6
28769 else
28770   ac_check_lib_save_LIBS=$LIBS
28771 LIBS="-lgen  $LIBS"
28772 cat >conftest.$ac_ext <<_ACEOF
28773 /* confdefs.h.  */
28774 _ACEOF
28775 cat confdefs.h >>conftest.$ac_ext
28776 cat >>conftest.$ac_ext <<_ACEOF
28777 /* end confdefs.h.  */
28778
28779 /* Override any gcc2 internal prototype to avoid an error.  */
28780 #ifdef __cplusplus
28781 extern "C"
28782 #endif
28783 /* We use char because int might match the return type of a gcc2
28784    builtin and then its argument prototype would still apply.  */
28785 char getmntent ();
28786 int
28787 main ()
28788 {
28789 getmntent ();
28790   ;
28791   return 0;
28792 }
28793 _ACEOF
28794 rm -f conftest.$ac_objext conftest$ac_exeext
28795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28796   (eval $ac_link) 2>conftest.er1
28797   ac_status=$?
28798   grep -v '^ *+' conftest.er1 >conftest.err
28799   rm -f conftest.er1
28800   cat conftest.err >&5
28801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802   (exit $ac_status); } &&
28803          { ac_try='test -z "$ac_c_werror_flag"
28804                          || test ! -s conftest.err'
28805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806   (eval $ac_try) 2>&5
28807   ac_status=$?
28808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809   (exit $ac_status); }; } &&
28810          { ac_try='test -s conftest$ac_exeext'
28811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28812   (eval $ac_try) 2>&5
28813   ac_status=$?
28814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815   (exit $ac_status); }; }; then
28816   ac_cv_lib_gen_getmntent=yes
28817 else
28818   echo "$as_me: failed program was:" >&5
28819 sed 's/^/| /' conftest.$ac_ext >&5
28820
28821 ac_cv_lib_gen_getmntent=no
28822 fi
28823 rm -f conftest.err conftest.$ac_objext \
28824       conftest$ac_exeext conftest.$ac_ext
28825 LIBS=$ac_check_lib_save_LIBS
28826 fi
28827 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28828 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28829 if test $ac_cv_lib_gen_getmntent = yes; then
28830   LIBS="-lgen $LIBS"
28831 fi
28832
28833 fi
28834
28835 fi
28836
28837
28838 for ac_func in getmntent
28839 do
28840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28841 echo "$as_me:$LINENO: checking for $ac_func" >&5
28842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28843 if eval "test \"\${$as_ac_var+set}\" = set"; then
28844   echo $ECHO_N "(cached) $ECHO_C" >&6
28845 else
28846   cat >conftest.$ac_ext <<_ACEOF
28847 /* confdefs.h.  */
28848 _ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h.  */
28852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28854 #define $ac_func innocuous_$ac_func
28855
28856 /* System header to define __stub macros and hopefully few prototypes,
28857     which can conflict with char $ac_func (); below.
28858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28859     <limits.h> exists even on freestanding compilers.  */
28860
28861 #ifdef __STDC__
28862 # include <limits.h>
28863 #else
28864 # include <assert.h>
28865 #endif
28866
28867 #undef $ac_func
28868
28869 /* Override any gcc2 internal prototype to avoid an error.  */
28870 #ifdef __cplusplus
28871 extern "C"
28872 {
28873 #endif
28874 /* We use char because int might match the return type of a gcc2
28875    builtin and then its argument prototype would still apply.  */
28876 char $ac_func ();
28877 /* The GNU C library defines this for functions which it implements
28878     to always fail with ENOSYS.  Some functions are actually named
28879     something starting with __ and the normal name is an alias.  */
28880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28881 choke me
28882 #else
28883 char (*f) () = $ac_func;
28884 #endif
28885 #ifdef __cplusplus
28886 }
28887 #endif
28888
28889 int
28890 main ()
28891 {
28892 return f != $ac_func;
28893   ;
28894   return 0;
28895 }
28896 _ACEOF
28897 rm -f conftest.$ac_objext conftest$ac_exeext
28898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28899   (eval $ac_link) 2>conftest.er1
28900   ac_status=$?
28901   grep -v '^ *+' conftest.er1 >conftest.err
28902   rm -f conftest.er1
28903   cat conftest.err >&5
28904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905   (exit $ac_status); } &&
28906          { ac_try='test -z "$ac_c_werror_flag"
28907                          || test ! -s conftest.err'
28908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28909   (eval $ac_try) 2>&5
28910   ac_status=$?
28911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912   (exit $ac_status); }; } &&
28913          { ac_try='test -s conftest$ac_exeext'
28914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28915   (eval $ac_try) 2>&5
28916   ac_status=$?
28917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918   (exit $ac_status); }; }; then
28919   eval "$as_ac_var=yes"
28920 else
28921   echo "$as_me: failed program was:" >&5
28922 sed 's/^/| /' conftest.$ac_ext >&5
28923
28924 eval "$as_ac_var=no"
28925 fi
28926 rm -f conftest.err conftest.$ac_objext \
28927       conftest$ac_exeext conftest.$ac_ext
28928 fi
28929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28931 if test `eval echo '${'$as_ac_var'}'` = yes; then
28932   cat >>confdefs.h <<_ACEOF
28933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28934 _ACEOF
28935
28936 fi
28937 done
28938
28939
28940 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28941 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28942 if test "${ac_cv_func_closedir_void+set}" = set; then
28943   echo $ECHO_N "(cached) $ECHO_C" >&6
28944 else
28945   if test "$cross_compiling" = yes; then
28946   ac_cv_func_closedir_void=yes
28947 else
28948   cat >conftest.$ac_ext <<_ACEOF
28949 /* confdefs.h.  */
28950 _ACEOF
28951 cat confdefs.h >>conftest.$ac_ext
28952 cat >>conftest.$ac_ext <<_ACEOF
28953 /* end confdefs.h.  */
28954 $ac_includes_default
28955 #include <$ac_header_dirent>
28956 #ifndef __cplusplus
28957 int closedir ();
28958 #endif
28959
28960 int
28961 main ()
28962 {
28963 exit (closedir (opendir (".")) != 0);
28964   ;
28965   return 0;
28966 }
28967 _ACEOF
28968 rm -f conftest$ac_exeext
28969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28970   (eval $ac_link) 2>&5
28971   ac_status=$?
28972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28975   (eval $ac_try) 2>&5
28976   ac_status=$?
28977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978   (exit $ac_status); }; }; then
28979   ac_cv_func_closedir_void=no
28980 else
28981   echo "$as_me: program exited with status $ac_status" >&5
28982 echo "$as_me: failed program was:" >&5
28983 sed 's/^/| /' conftest.$ac_ext >&5
28984
28985 ( exit $ac_status )
28986 ac_cv_func_closedir_void=yes
28987 fi
28988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28989 fi
28990 fi
28991 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28992 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28993 if test $ac_cv_func_closedir_void = yes; then
28994
28995 cat >>confdefs.h <<\_ACEOF
28996 #define CLOSEDIR_VOID 1
28997 _ACEOF
28998
28999 fi
29000
29001 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29002 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
29003 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29004   echo $ECHO_N "(cached) $ECHO_C" >&6
29005 else
29006   if test "$cross_compiling" = yes; then
29007   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29008 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29009    { (exit 1); exit 1; }; }
29010 else
29011   cat >conftest.$ac_ext <<_ACEOF
29012 /* confdefs.h.  */
29013 _ACEOF
29014 cat confdefs.h >>conftest.$ac_ext
29015 cat >>conftest.$ac_ext <<_ACEOF
29016 /* end confdefs.h.  */
29017 #if HAVE_UNISTD_H
29018 # include <unistd.h>
29019 #endif
29020
29021 int
29022 main ()
29023 {
29024 /* If this system has a BSD-style setpgrp which takes arguments,
29025   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29026   exit successfully. */
29027   exit (setpgrp (1,1) == -1 ? 0 : 1);
29028   ;
29029   return 0;
29030 }
29031 _ACEOF
29032 rm -f conftest$ac_exeext
29033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29034   (eval $ac_link) 2>&5
29035   ac_status=$?
29036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29039   (eval $ac_try) 2>&5
29040   ac_status=$?
29041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042   (exit $ac_status); }; }; then
29043   ac_cv_func_setpgrp_void=no
29044 else
29045   echo "$as_me: program exited with status $ac_status" >&5
29046 echo "$as_me: failed program was:" >&5
29047 sed 's/^/| /' conftest.$ac_ext >&5
29048
29049 ( exit $ac_status )
29050 ac_cv_func_setpgrp_void=yes
29051 fi
29052 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29053 fi
29054 fi
29055 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29056 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
29057 if test $ac_cv_func_setpgrp_void = yes; then
29058
29059 cat >>confdefs.h <<\_ACEOF
29060 #define SETPGRP_VOID 1
29061 _ACEOF
29062
29063 fi
29064                       # AC_FUNC_FNMATCH    dnl use local version
29065
29066
29067 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29068 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
29069 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29070   echo $ECHO_N "(cached) $ECHO_C" >&6
29071 else
29072   ac_check_lib_save_LIBS=$LIBS
29073 LIBS="-lintl  $LIBS"
29074 cat >conftest.$ac_ext <<_ACEOF
29075 /* confdefs.h.  */
29076 _ACEOF
29077 cat confdefs.h >>conftest.$ac_ext
29078 cat >>conftest.$ac_ext <<_ACEOF
29079 /* end confdefs.h.  */
29080
29081 /* Override any gcc2 internal prototype to avoid an error.  */
29082 #ifdef __cplusplus
29083 extern "C"
29084 #endif
29085 /* We use char because int might match the return type of a gcc2
29086    builtin and then its argument prototype would still apply.  */
29087 char gettext ();
29088 int
29089 main ()
29090 {
29091 gettext ();
29092   ;
29093   return 0;
29094 }
29095 _ACEOF
29096 rm -f conftest.$ac_objext conftest$ac_exeext
29097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29098   (eval $ac_link) 2>conftest.er1
29099   ac_status=$?
29100   grep -v '^ *+' conftest.er1 >conftest.err
29101   rm -f conftest.er1
29102   cat conftest.err >&5
29103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104   (exit $ac_status); } &&
29105          { ac_try='test -z "$ac_c_werror_flag"
29106                          || test ! -s conftest.err'
29107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108   (eval $ac_try) 2>&5
29109   ac_status=$?
29110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111   (exit $ac_status); }; } &&
29112          { ac_try='test -s conftest$ac_exeext'
29113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114   (eval $ac_try) 2>&5
29115   ac_status=$?
29116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117   (exit $ac_status); }; }; then
29118   ac_cv_lib_intl_gettext=yes
29119 else
29120   echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.$ac_ext >&5
29122
29123 ac_cv_lib_intl_gettext=no
29124 fi
29125 rm -f conftest.err conftest.$ac_objext \
29126       conftest$ac_exeext conftest.$ac_ext
29127 LIBS=$ac_check_lib_save_LIBS
29128 fi
29129 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29130 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
29131 if test $ac_cv_lib_intl_gettext = yes; then
29132   LIBS="$LIBS -lintl"
29133 fi
29134
29135
29136
29137
29138 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29139 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
29140 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29141   echo $ECHO_N "(cached) $ECHO_C" >&6
29142 else
29143   ac_check_lib_save_LIBS=$LIBS
29144 LIBS="-lsun  $LIBS"
29145 cat >conftest.$ac_ext <<_ACEOF
29146 /* confdefs.h.  */
29147 _ACEOF
29148 cat confdefs.h >>conftest.$ac_ext
29149 cat >>conftest.$ac_ext <<_ACEOF
29150 /* end confdefs.h.  */
29151
29152 /* Override any gcc2 internal prototype to avoid an error.  */
29153 #ifdef __cplusplus
29154 extern "C"
29155 #endif
29156 /* We use char because int might match the return type of a gcc2
29157    builtin and then its argument prototype would still apply.  */
29158 char getpwnam ();
29159 int
29160 main ()
29161 {
29162 getpwnam ();
29163   ;
29164   return 0;
29165 }
29166 _ACEOF
29167 rm -f conftest.$ac_objext conftest$ac_exeext
29168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29169   (eval $ac_link) 2>conftest.er1
29170   ac_status=$?
29171   grep -v '^ *+' conftest.er1 >conftest.err
29172   rm -f conftest.er1
29173   cat conftest.err >&5
29174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175   (exit $ac_status); } &&
29176          { ac_try='test -z "$ac_c_werror_flag"
29177                          || test ! -s conftest.err'
29178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29179   (eval $ac_try) 2>&5
29180   ac_status=$?
29181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182   (exit $ac_status); }; } &&
29183          { ac_try='test -s conftest$ac_exeext'
29184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29185   (eval $ac_try) 2>&5
29186   ac_status=$?
29187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188   (exit $ac_status); }; }; then
29189   ac_cv_lib_sun_getpwnam=yes
29190 else
29191   echo "$as_me: failed program was:" >&5
29192 sed 's/^/| /' conftest.$ac_ext >&5
29193
29194 ac_cv_lib_sun_getpwnam=no
29195 fi
29196 rm -f conftest.err conftest.$ac_objext \
29197       conftest$ac_exeext conftest.$ac_ext
29198 LIBS=$ac_check_lib_save_LIBS
29199 fi
29200 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29201 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
29202 if test $ac_cv_lib_sun_getpwnam = yes; then
29203   cat >>confdefs.h <<_ACEOF
29204 #define HAVE_LIBSUN 1
29205 _ACEOF
29206
29207   LIBS="-lsun $LIBS"
29208
29209 fi
29210
29211
29212
29213 for ac_header in zlib.h
29214 do
29215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29217   echo "$as_me:$LINENO: checking for $ac_header" >&5
29218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29220   echo $ECHO_N "(cached) $ECHO_C" >&6
29221 fi
29222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29224 else
29225   # Is the header compilable?
29226 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29228 cat >conftest.$ac_ext <<_ACEOF
29229 /* confdefs.h.  */
29230 _ACEOF
29231 cat confdefs.h >>conftest.$ac_ext
29232 cat >>conftest.$ac_ext <<_ACEOF
29233 /* end confdefs.h.  */
29234 $ac_includes_default
29235 #include <$ac_header>
29236 _ACEOF
29237 rm -f conftest.$ac_objext
29238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29239   (eval $ac_compile) 2>conftest.er1
29240   ac_status=$?
29241   grep -v '^ *+' conftest.er1 >conftest.err
29242   rm -f conftest.er1
29243   cat conftest.err >&5
29244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245   (exit $ac_status); } &&
29246          { ac_try='test -z "$ac_c_werror_flag"
29247                          || test ! -s conftest.err'
29248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29249   (eval $ac_try) 2>&5
29250   ac_status=$?
29251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29252   (exit $ac_status); }; } &&
29253          { ac_try='test -s conftest.$ac_objext'
29254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29255   (eval $ac_try) 2>&5
29256   ac_status=$?
29257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258   (exit $ac_status); }; }; then
29259   ac_header_compiler=yes
29260 else
29261   echo "$as_me: failed program was:" >&5
29262 sed 's/^/| /' conftest.$ac_ext >&5
29263
29264 ac_header_compiler=no
29265 fi
29266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29268 echo "${ECHO_T}$ac_header_compiler" >&6
29269
29270 # Is the header present?
29271 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29272 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29273 cat >conftest.$ac_ext <<_ACEOF
29274 /* confdefs.h.  */
29275 _ACEOF
29276 cat confdefs.h >>conftest.$ac_ext
29277 cat >>conftest.$ac_ext <<_ACEOF
29278 /* end confdefs.h.  */
29279 #include <$ac_header>
29280 _ACEOF
29281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29282   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29283   ac_status=$?
29284   grep -v '^ *+' conftest.er1 >conftest.err
29285   rm -f conftest.er1
29286   cat conftest.err >&5
29287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288   (exit $ac_status); } >/dev/null; then
29289   if test -s conftest.err; then
29290     ac_cpp_err=$ac_c_preproc_warn_flag
29291     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29292   else
29293     ac_cpp_err=
29294   fi
29295 else
29296   ac_cpp_err=yes
29297 fi
29298 if test -z "$ac_cpp_err"; then
29299   ac_header_preproc=yes
29300 else
29301   echo "$as_me: failed program was:" >&5
29302 sed 's/^/| /' conftest.$ac_ext >&5
29303
29304   ac_header_preproc=no
29305 fi
29306 rm -f conftest.err conftest.$ac_ext
29307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29308 echo "${ECHO_T}$ac_header_preproc" >&6
29309
29310 # So?  What about this header?
29311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29312   yes:no: )
29313     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29315     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29317     ac_header_preproc=yes
29318     ;;
29319   no:yes:* )
29320     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29322     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29323 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29324     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29326     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29327 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29330     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29332     (
29333       cat <<\_ASBOX
29334 ## ------------------------------------------ ##
29335 ## Report this to the AC_PACKAGE_NAME lists.  ##
29336 ## ------------------------------------------ ##
29337 _ASBOX
29338     ) |
29339       sed "s/^/$as_me: WARNING:     /" >&2
29340     ;;
29341 esac
29342 echo "$as_me:$LINENO: checking for $ac_header" >&5
29343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29345   echo $ECHO_N "(cached) $ECHO_C" >&6
29346 else
29347   eval "$as_ac_Header=\$ac_header_preproc"
29348 fi
29349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29351
29352 fi
29353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29354   cat >>confdefs.h <<_ACEOF
29355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29356 _ACEOF
29357
29358 fi
29359
29360 done
29361
29362 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29363 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
29364 if test "${ac_cv_lib_z_deflate+set}" = set; then
29365   echo $ECHO_N "(cached) $ECHO_C" >&6
29366 else
29367   ac_check_lib_save_LIBS=$LIBS
29368 LIBS="-lz  $LIBS"
29369 cat >conftest.$ac_ext <<_ACEOF
29370 /* confdefs.h.  */
29371 _ACEOF
29372 cat confdefs.h >>conftest.$ac_ext
29373 cat >>conftest.$ac_ext <<_ACEOF
29374 /* end confdefs.h.  */
29375
29376 /* Override any gcc2 internal prototype to avoid an error.  */
29377 #ifdef __cplusplus
29378 extern "C"
29379 #endif
29380 /* We use char because int might match the return type of a gcc2
29381    builtin and then its argument prototype would still apply.  */
29382 char deflate ();
29383 int
29384 main ()
29385 {
29386 deflate ();
29387   ;
29388   return 0;
29389 }
29390 _ACEOF
29391 rm -f conftest.$ac_objext conftest$ac_exeext
29392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29393   (eval $ac_link) 2>conftest.er1
29394   ac_status=$?
29395   grep -v '^ *+' conftest.er1 >conftest.err
29396   rm -f conftest.er1
29397   cat conftest.err >&5
29398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399   (exit $ac_status); } &&
29400          { ac_try='test -z "$ac_c_werror_flag"
29401                          || test ! -s conftest.err'
29402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403   (eval $ac_try) 2>&5
29404   ac_status=$?
29405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406   (exit $ac_status); }; } &&
29407          { ac_try='test -s conftest$ac_exeext'
29408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409   (eval $ac_try) 2>&5
29410   ac_status=$?
29411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412   (exit $ac_status); }; }; then
29413   ac_cv_lib_z_deflate=yes
29414 else
29415   echo "$as_me: failed program was:" >&5
29416 sed 's/^/| /' conftest.$ac_ext >&5
29417
29418 ac_cv_lib_z_deflate=no
29419 fi
29420 rm -f conftest.err conftest.$ac_objext \
29421       conftest$ac_exeext conftest.$ac_ext
29422 LIBS=$ac_check_lib_save_LIBS
29423 fi
29424 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29425 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
29426 if test $ac_cv_lib_z_deflate = yes; then
29427   FDLIBS="-lz"
29428 fi
29429
29430 have_zlib=no
29431 if test x$FDLIBS = x-lz; then
29432   cat >>confdefs.h <<\_ACEOF
29433 #define HAVE_LIBZ 1
29434 _ACEOF
29435
29436   have_zlib=yes
29437 fi
29438
29439 #
29440 # Check for ACL libraries
29441 #
29442 have_acl=no
29443 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29444   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29445 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29446 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29447   echo $ECHO_N "(cached) $ECHO_C" >&6
29448 fi
29449 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29450 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29451 else
29452   # Is the header compilable?
29453 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29454 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
29455 cat >conftest.$ac_ext <<_ACEOF
29456 /* confdefs.h.  */
29457 _ACEOF
29458 cat confdefs.h >>conftest.$ac_ext
29459 cat >>conftest.$ac_ext <<_ACEOF
29460 /* end confdefs.h.  */
29461 $ac_includes_default
29462 #include <sys/acl.h>
29463 _ACEOF
29464 rm -f conftest.$ac_objext
29465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29466   (eval $ac_compile) 2>conftest.er1
29467   ac_status=$?
29468   grep -v '^ *+' conftest.er1 >conftest.err
29469   rm -f conftest.er1
29470   cat conftest.err >&5
29471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472   (exit $ac_status); } &&
29473          { ac_try='test -z "$ac_c_werror_flag"
29474                          || test ! -s conftest.err'
29475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29476   (eval $ac_try) 2>&5
29477   ac_status=$?
29478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479   (exit $ac_status); }; } &&
29480          { ac_try='test -s conftest.$ac_objext'
29481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29482   (eval $ac_try) 2>&5
29483   ac_status=$?
29484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485   (exit $ac_status); }; }; then
29486   ac_header_compiler=yes
29487 else
29488   echo "$as_me: failed program was:" >&5
29489 sed 's/^/| /' conftest.$ac_ext >&5
29490
29491 ac_header_compiler=no
29492 fi
29493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29495 echo "${ECHO_T}$ac_header_compiler" >&6
29496
29497 # Is the header present?
29498 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29499 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29500 cat >conftest.$ac_ext <<_ACEOF
29501 /* confdefs.h.  */
29502 _ACEOF
29503 cat confdefs.h >>conftest.$ac_ext
29504 cat >>conftest.$ac_ext <<_ACEOF
29505 /* end confdefs.h.  */
29506 #include <sys/acl.h>
29507 _ACEOF
29508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29509   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29510   ac_status=$?
29511   grep -v '^ *+' conftest.er1 >conftest.err
29512   rm -f conftest.er1
29513   cat conftest.err >&5
29514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515   (exit $ac_status); } >/dev/null; then
29516   if test -s conftest.err; then
29517     ac_cpp_err=$ac_c_preproc_warn_flag
29518     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29519   else
29520     ac_cpp_err=
29521   fi
29522 else
29523   ac_cpp_err=yes
29524 fi
29525 if test -z "$ac_cpp_err"; then
29526   ac_header_preproc=yes
29527 else
29528   echo "$as_me: failed program was:" >&5
29529 sed 's/^/| /' conftest.$ac_ext >&5
29530
29531   ac_header_preproc=no
29532 fi
29533 rm -f conftest.err conftest.$ac_ext
29534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29535 echo "${ECHO_T}$ac_header_preproc" >&6
29536
29537 # So?  What about this header?
29538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29539   yes:no: )
29540     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29541 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29542     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29543 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29544     ac_header_preproc=yes
29545     ;;
29546   no:yes:* )
29547     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29548 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29549     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29550 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29551     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29552 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29553     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29554 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29555     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29556 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29557     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29558 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29559     (
29560       cat <<\_ASBOX
29561 ## ------------------------------------------ ##
29562 ## Report this to the AC_PACKAGE_NAME lists.  ##
29563 ## ------------------------------------------ ##
29564 _ASBOX
29565     ) |
29566       sed "s/^/$as_me: WARNING:     /" >&2
29567     ;;
29568 esac
29569 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29570 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29571 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29572   echo $ECHO_N "(cached) $ECHO_C" >&6
29573 else
29574   ac_cv_header_sys_acl_h=$ac_header_preproc
29575 fi
29576 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29577 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29578
29579 fi
29580
29581
29582 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29583 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29584 if test "${ac_cv_func_acl_get_file+set}" = set; then
29585   echo $ECHO_N "(cached) $ECHO_C" >&6
29586 else
29587   cat >conftest.$ac_ext <<_ACEOF
29588 /* confdefs.h.  */
29589 _ACEOF
29590 cat confdefs.h >>conftest.$ac_ext
29591 cat >>conftest.$ac_ext <<_ACEOF
29592 /* end confdefs.h.  */
29593 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29595 #define acl_get_file innocuous_acl_get_file
29596
29597 /* System header to define __stub macros and hopefully few prototypes,
29598     which can conflict with char acl_get_file (); below.
29599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29600     <limits.h> exists even on freestanding compilers.  */
29601
29602 #ifdef __STDC__
29603 # include <limits.h>
29604 #else
29605 # include <assert.h>
29606 #endif
29607
29608 #undef acl_get_file
29609
29610 /* Override any gcc2 internal prototype to avoid an error.  */
29611 #ifdef __cplusplus
29612 extern "C"
29613 {
29614 #endif
29615 /* We use char because int might match the return type of a gcc2
29616    builtin and then its argument prototype would still apply.  */
29617 char acl_get_file ();
29618 /* The GNU C library defines this for functions which it implements
29619     to always fail with ENOSYS.  Some functions are actually named
29620     something starting with __ and the normal name is an alias.  */
29621 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29622 choke me
29623 #else
29624 char (*f) () = acl_get_file;
29625 #endif
29626 #ifdef __cplusplus
29627 }
29628 #endif
29629
29630 int
29631 main ()
29632 {
29633 return f != acl_get_file;
29634   ;
29635   return 0;
29636 }
29637 _ACEOF
29638 rm -f conftest.$ac_objext conftest$ac_exeext
29639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29640   (eval $ac_link) 2>conftest.er1
29641   ac_status=$?
29642   grep -v '^ *+' conftest.er1 >conftest.err
29643   rm -f conftest.er1
29644   cat conftest.err >&5
29645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646   (exit $ac_status); } &&
29647          { ac_try='test -z "$ac_c_werror_flag"
29648                          || test ! -s conftest.err'
29649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29650   (eval $ac_try) 2>&5
29651   ac_status=$?
29652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653   (exit $ac_status); }; } &&
29654          { ac_try='test -s conftest$ac_exeext'
29655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656   (eval $ac_try) 2>&5
29657   ac_status=$?
29658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659   (exit $ac_status); }; }; then
29660   ac_cv_func_acl_get_file=yes
29661 else
29662   echo "$as_me: failed program was:" >&5
29663 sed 's/^/| /' conftest.$ac_ext >&5
29664
29665 ac_cv_func_acl_get_file=no
29666 fi
29667 rm -f conftest.err conftest.$ac_objext \
29668       conftest$ac_exeext conftest.$ac_ext
29669 fi
29670 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29671 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29672 if test $ac_cv_func_acl_get_file = yes; then
29673   have_acl=yes
29674 else
29675   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29676 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29677 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29678   echo $ECHO_N "(cached) $ECHO_C" >&6
29679 else
29680   ac_check_lib_save_LIBS=$LIBS
29681 LIBS="-lacl  $LIBS"
29682 cat >conftest.$ac_ext <<_ACEOF
29683 /* confdefs.h.  */
29684 _ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h.  */
29688
29689 /* Override any gcc2 internal prototype to avoid an error.  */
29690 #ifdef __cplusplus
29691 extern "C"
29692 #endif
29693 /* We use char because int might match the return type of a gcc2
29694    builtin and then its argument prototype would still apply.  */
29695 char acl_get_file ();
29696 int
29697 main ()
29698 {
29699 acl_get_file ();
29700   ;
29701   return 0;
29702 }
29703 _ACEOF
29704 rm -f conftest.$ac_objext conftest$ac_exeext
29705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29706   (eval $ac_link) 2>conftest.er1
29707   ac_status=$?
29708   grep -v '^ *+' conftest.er1 >conftest.err
29709   rm -f conftest.er1
29710   cat conftest.err >&5
29711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712   (exit $ac_status); } &&
29713          { ac_try='test -z "$ac_c_werror_flag"
29714                          || test ! -s conftest.err'
29715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29716   (eval $ac_try) 2>&5
29717   ac_status=$?
29718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719   (exit $ac_status); }; } &&
29720          { ac_try='test -s conftest$ac_exeext'
29721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29722   (eval $ac_try) 2>&5
29723   ac_status=$?
29724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725   (exit $ac_status); }; }; then
29726   ac_cv_lib_acl_acl_get_file=yes
29727 else
29728   echo "$as_me: failed program was:" >&5
29729 sed 's/^/| /' conftest.$ac_ext >&5
29730
29731 ac_cv_lib_acl_acl_get_file=no
29732 fi
29733 rm -f conftest.err conftest.$ac_objext \
29734       conftest$ac_exeext conftest.$ac_ext
29735 LIBS=$ac_check_lib_save_LIBS
29736 fi
29737 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29738 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29739 if test $ac_cv_lib_acl_acl_get_file = yes; then
29740   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29741 else
29742   echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29743 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29744 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29745   echo $ECHO_N "(cached) $ECHO_C" >&6
29746 else
29747   ac_check_lib_save_LIBS=$LIBS
29748 LIBS="-lsec  $LIBS"
29749 cat >conftest.$ac_ext <<_ACEOF
29750 /* confdefs.h.  */
29751 _ACEOF
29752 cat confdefs.h >>conftest.$ac_ext
29753 cat >>conftest.$ac_ext <<_ACEOF
29754 /* end confdefs.h.  */
29755
29756 /* Override any gcc2 internal prototype to avoid an error.  */
29757 #ifdef __cplusplus
29758 extern "C"
29759 #endif
29760 /* We use char because int might match the return type of a gcc2
29761    builtin and then its argument prototype would still apply.  */
29762 char acltotext ();
29763 int
29764 main ()
29765 {
29766 acltotext ();
29767   ;
29768   return 0;
29769 }
29770 _ACEOF
29771 rm -f conftest.$ac_objext conftest$ac_exeext
29772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29773   (eval $ac_link) 2>conftest.er1
29774   ac_status=$?
29775   grep -v '^ *+' conftest.er1 >conftest.err
29776   rm -f conftest.er1
29777   cat conftest.err >&5
29778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779   (exit $ac_status); } &&
29780          { ac_try='test -z "$ac_c_werror_flag"
29781                          || test ! -s conftest.err'
29782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29783   (eval $ac_try) 2>&5
29784   ac_status=$?
29785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786   (exit $ac_status); }; } &&
29787          { ac_try='test -s conftest$ac_exeext'
29788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29789   (eval $ac_try) 2>&5
29790   ac_status=$?
29791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792   (exit $ac_status); }; }; then
29793   ac_cv_lib_sec_acltotext=yes
29794 else
29795   echo "$as_me: failed program was:" >&5
29796 sed 's/^/| /' conftest.$ac_ext >&5
29797
29798 ac_cv_lib_sec_acltotext=no
29799 fi
29800 rm -f conftest.err conftest.$ac_objext \
29801       conftest$ac_exeext conftest.$ac_ext
29802 LIBS=$ac_check_lib_save_LIBS
29803 fi
29804 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29805 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29806 if test $ac_cv_lib_sec_acltotext = yes; then
29807   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29808 fi
29809
29810
29811 fi
29812
29813
29814 fi
29815
29816 if test $have_acl = yes; then
29817    cat >>confdefs.h <<\_ACEOF
29818 #define HAVE_ACL 1
29819 _ACEOF
29820
29821 fi
29822
29823 PTHREAD_LIB=""
29824 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29825 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29826 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29827   echo $ECHO_N "(cached) $ECHO_C" >&6
29828 else
29829   ac_check_lib_save_LIBS=$LIBS
29830 LIBS="-lpthread  $LIBS"
29831 cat >conftest.$ac_ext <<_ACEOF
29832 /* confdefs.h.  */
29833 _ACEOF
29834 cat confdefs.h >>conftest.$ac_ext
29835 cat >>conftest.$ac_ext <<_ACEOF
29836 /* end confdefs.h.  */
29837
29838 /* Override any gcc2 internal prototype to avoid an error.  */
29839 #ifdef __cplusplus
29840 extern "C"
29841 #endif
29842 /* We use char because int might match the return type of a gcc2
29843    builtin and then its argument prototype would still apply.  */
29844 char pthread_create ();
29845 int
29846 main ()
29847 {
29848 pthread_create ();
29849   ;
29850   return 0;
29851 }
29852 _ACEOF
29853 rm -f conftest.$ac_objext conftest$ac_exeext
29854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29855   (eval $ac_link) 2>conftest.er1
29856   ac_status=$?
29857   grep -v '^ *+' conftest.er1 >conftest.err
29858   rm -f conftest.er1
29859   cat conftest.err >&5
29860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861   (exit $ac_status); } &&
29862          { ac_try='test -z "$ac_c_werror_flag"
29863                          || test ! -s conftest.err'
29864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29865   (eval $ac_try) 2>&5
29866   ac_status=$?
29867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868   (exit $ac_status); }; } &&
29869          { ac_try='test -s conftest$ac_exeext'
29870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29871   (eval $ac_try) 2>&5
29872   ac_status=$?
29873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874   (exit $ac_status); }; }; then
29875   ac_cv_lib_pthread_pthread_create=yes
29876 else
29877   echo "$as_me: failed program was:" >&5
29878 sed 's/^/| /' conftest.$ac_ext >&5
29879
29880 ac_cv_lib_pthread_pthread_create=no
29881 fi
29882 rm -f conftest.err conftest.$ac_objext \
29883       conftest$ac_exeext conftest.$ac_ext
29884 LIBS=$ac_check_lib_save_LIBS
29885 fi
29886 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29887 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29888 if test $ac_cv_lib_pthread_pthread_create = yes; then
29889   PTHREAD_LIB="-lpthread"
29890 else
29891   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29892 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29893 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29894   echo $ECHO_N "(cached) $ECHO_C" >&6
29895 else
29896   ac_check_lib_save_LIBS=$LIBS
29897 LIBS="-lpthreads  $LIBS"
29898 cat >conftest.$ac_ext <<_ACEOF
29899 /* confdefs.h.  */
29900 _ACEOF
29901 cat confdefs.h >>conftest.$ac_ext
29902 cat >>conftest.$ac_ext <<_ACEOF
29903 /* end confdefs.h.  */
29904
29905 /* Override any gcc2 internal prototype to avoid an error.  */
29906 #ifdef __cplusplus
29907 extern "C"
29908 #endif
29909 /* We use char because int might match the return type of a gcc2
29910    builtin and then its argument prototype would still apply.  */
29911 char pthread_create ();
29912 int
29913 main ()
29914 {
29915 pthread_create ();
29916   ;
29917   return 0;
29918 }
29919 _ACEOF
29920 rm -f conftest.$ac_objext conftest$ac_exeext
29921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29922   (eval $ac_link) 2>conftest.er1
29923   ac_status=$?
29924   grep -v '^ *+' conftest.er1 >conftest.err
29925   rm -f conftest.er1
29926   cat conftest.err >&5
29927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928   (exit $ac_status); } &&
29929          { ac_try='test -z "$ac_c_werror_flag"
29930                          || test ! -s conftest.err'
29931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29932   (eval $ac_try) 2>&5
29933   ac_status=$?
29934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935   (exit $ac_status); }; } &&
29936          { ac_try='test -s conftest$ac_exeext'
29937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29938   (eval $ac_try) 2>&5
29939   ac_status=$?
29940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29941   (exit $ac_status); }; }; then
29942   ac_cv_lib_pthreads_pthread_create=yes
29943 else
29944   echo "$as_me: failed program was:" >&5
29945 sed 's/^/| /' conftest.$ac_ext >&5
29946
29947 ac_cv_lib_pthreads_pthread_create=no
29948 fi
29949 rm -f conftest.err conftest.$ac_objext \
29950       conftest$ac_exeext conftest.$ac_ext
29951 LIBS=$ac_check_lib_save_LIBS
29952 fi
29953 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29954 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29955 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29956   PTHREAD_LIB="-lpthreads"
29957 else
29958   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29959 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29960 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29961   echo $ECHO_N "(cached) $ECHO_C" >&6
29962 else
29963   ac_check_lib_save_LIBS=$LIBS
29964 LIBS="-lc_r  $LIBS"
29965 cat >conftest.$ac_ext <<_ACEOF
29966 /* confdefs.h.  */
29967 _ACEOF
29968 cat confdefs.h >>conftest.$ac_ext
29969 cat >>conftest.$ac_ext <<_ACEOF
29970 /* end confdefs.h.  */
29971
29972 /* Override any gcc2 internal prototype to avoid an error.  */
29973 #ifdef __cplusplus
29974 extern "C"
29975 #endif
29976 /* We use char because int might match the return type of a gcc2
29977    builtin and then its argument prototype would still apply.  */
29978 char pthread_create ();
29979 int
29980 main ()
29981 {
29982 pthread_create ();
29983   ;
29984   return 0;
29985 }
29986 _ACEOF
29987 rm -f conftest.$ac_objext conftest$ac_exeext
29988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29989   (eval $ac_link) 2>conftest.er1
29990   ac_status=$?
29991   grep -v '^ *+' conftest.er1 >conftest.err
29992   rm -f conftest.er1
29993   cat conftest.err >&5
29994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995   (exit $ac_status); } &&
29996          { ac_try='test -z "$ac_c_werror_flag"
29997                          || test ! -s conftest.err'
29998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29999   (eval $ac_try) 2>&5
30000   ac_status=$?
30001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002   (exit $ac_status); }; } &&
30003          { ac_try='test -s conftest$ac_exeext'
30004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30005   (eval $ac_try) 2>&5
30006   ac_status=$?
30007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008   (exit $ac_status); }; }; then
30009   ac_cv_lib_c_r_pthread_create=yes
30010 else
30011   echo "$as_me: failed program was:" >&5
30012 sed 's/^/| /' conftest.$ac_ext >&5
30013
30014 ac_cv_lib_c_r_pthread_create=no
30015 fi
30016 rm -f conftest.err conftest.$ac_objext \
30017       conftest$ac_exeext conftest.$ac_ext
30018 LIBS=$ac_check_lib_save_LIBS
30019 fi
30020 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30021 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
30022 if test $ac_cv_lib_c_r_pthread_create = yes; then
30023   PTHREAD_LIB="-lc_r"
30024 else
30025   echo "$as_me:$LINENO: checking for pthread_create" >&5
30026 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
30027 if test "${ac_cv_func_pthread_create+set}" = set; then
30028   echo $ECHO_N "(cached) $ECHO_C" >&6
30029 else
30030   cat >conftest.$ac_ext <<_ACEOF
30031 /* confdefs.h.  */
30032 _ACEOF
30033 cat confdefs.h >>conftest.$ac_ext
30034 cat >>conftest.$ac_ext <<_ACEOF
30035 /* end confdefs.h.  */
30036 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30037    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30038 #define pthread_create innocuous_pthread_create
30039
30040 /* System header to define __stub macros and hopefully few prototypes,
30041     which can conflict with char pthread_create (); below.
30042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30043     <limits.h> exists even on freestanding compilers.  */
30044
30045 #ifdef __STDC__
30046 # include <limits.h>
30047 #else
30048 # include <assert.h>
30049 #endif
30050
30051 #undef pthread_create
30052
30053 /* Override any gcc2 internal prototype to avoid an error.  */
30054 #ifdef __cplusplus
30055 extern "C"
30056 {
30057 #endif
30058 /* We use char because int might match the return type of a gcc2
30059    builtin and then its argument prototype would still apply.  */
30060 char pthread_create ();
30061 /* The GNU C library defines this for functions which it implements
30062     to always fail with ENOSYS.  Some functions are actually named
30063     something starting with __ and the normal name is an alias.  */
30064 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
30065 choke me
30066 #else
30067 char (*f) () = pthread_create;
30068 #endif
30069 #ifdef __cplusplus
30070 }
30071 #endif
30072
30073 int
30074 main ()
30075 {
30076 return f != pthread_create;
30077   ;
30078   return 0;
30079 }
30080 _ACEOF
30081 rm -f conftest.$ac_objext conftest$ac_exeext
30082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30083   (eval $ac_link) 2>conftest.er1
30084   ac_status=$?
30085   grep -v '^ *+' conftest.er1 >conftest.err
30086   rm -f conftest.er1
30087   cat conftest.err >&5
30088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089   (exit $ac_status); } &&
30090          { ac_try='test -z "$ac_c_werror_flag"
30091                          || test ! -s conftest.err'
30092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30093   (eval $ac_try) 2>&5
30094   ac_status=$?
30095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096   (exit $ac_status); }; } &&
30097          { ac_try='test -s conftest$ac_exeext'
30098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30099   (eval $ac_try) 2>&5
30100   ac_status=$?
30101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102   (exit $ac_status); }; }; then
30103   ac_cv_func_pthread_create=yes
30104 else
30105   echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30107
30108 ac_cv_func_pthread_create=no
30109 fi
30110 rm -f conftest.err conftest.$ac_objext \
30111       conftest$ac_exeext conftest.$ac_ext
30112 fi
30113 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30114 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
30115
30116
30117 fi
30118
30119
30120 fi
30121
30122
30123 fi
30124
30125
30126
30127 cat >>confdefs.h <<\_ACEOF
30128 #define FDLIBS 1
30129 _ACEOF
30130
30131
30132
30133 CFLAGS=${CFLAGS--O}
30134
30135 if test x$have_gcc = xyes ; then
30136    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30137    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30138 fi
30139 LDFLAGS=${LDFLAGS--O}
30140 DB_LIBS="${SQL_LFLAGS}"
30141 CPPFLAGS="$CPPFLAGS"
30142 CFLAGS="$CFLAGS"
30143
30144
30145
30146
30147
30148
30149
30150
30151
30152
30153
30154
30155
30156
30157
30158
30159 OBJLIST=
30160
30161
30162 lld="lld"
30163 llu="llu"
30164
30165 WCFLAGS=
30166 WLDFLAGS=
30167
30168 #
30169 # Finally we set appropriate distribution specific
30170 #  variables and defaults
30171 #
30172 # PFILES are platform specific files
30173 PFILES="platforms/Makefile"
30174 PSCMD="ps -e"
30175 WIN32=
30176 MACOSX=
30177 hostname=`uname -n | cut -d '.' -f 1`
30178 if test x${hostname} = x ; then
30179   hostname="localhost"
30180 fi
30181 case "$DISTNAME" in
30182 aix)
30183         DISTVER=`uname -r`
30184         PSCMD="ps -e -o pid,comm"
30185         PFILES="${PFILES} \
30186            platforms/aix/Makefile"
30187         TAPEDRIVE="/dev/rmt0.1"
30188   ;;
30189 alpha)
30190         DISTVER=`uname -r`
30191         PTHREAD_LIB="-lpthread -lexc"
30192         if test "${CC}" = "gcc" ; then
30193            lld="lld"
30194            llu="llu"
30195         else
30196            lld="ld"
30197            llu="lu"
30198         fi
30199         TAPEDRIVE="/dev/nrmt0"
30200   ;;
30201 bsdi)
30202         DISTVER=`uname -a |awk '{print $3}'`
30203         TAPEDRIVE="/dev/nrmt0"
30204         PTHREAD_LIB="-pthread"
30205         CFLAGS="${CFLAGS} -pthread"
30206         PSCMD="ps -ax -o pid,command"
30207         lld="qd"
30208         llu="qu"
30209         PFILES="${PFILES} \
30210             platforms/bsdi/Makefile \
30211             platforms/bsdi/bacula-fd \
30212             platforms/bsdi/bacula-sd \
30213             platforms/bsdi/bacula-dir"
30214         largefile_support="yes"
30215   ;;
30216 cygwin)
30217         DISTVER=`uname -a |awk '{print $3}'`
30218         TAPEDRIVE="/dev/nrst0"
30219         WIN32=win32
30220         WCFLAGS="-mwindows"
30221         WLDFLAGS="-mwindows"
30222   ;;
30223 darwin)
30224         DISTVER=`uname -r`
30225         TAPEDRIVE="/dev/nst0"
30226         PSCMD="ps -e -o pid,command"
30227         MACOSX=macosx
30228         PFILES="${PFILES} \
30229            platforms/darwin/Makefile"
30230   ;;
30231 debian)
30232         DISTVER=`cat /etc/debian_version`
30233         TAPEDRIVE="/dev/nrst0"
30234         PSCMD="ps -e -o pid,command"
30235   ;;
30236 freebsd)
30237         DISTVER=`uname -a |awk '{print $3}'`
30238         VER=`echo $DISTVER | cut -c 1`
30239         if test x$VER = x4 ; then
30240            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30241            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30242         fi
30243         lld="qd"
30244         llu="qu"
30245         TAPEDRIVE="/dev/nrsa0"
30246         PSCMD="ps -ax -o pid,command"
30247         PFILES="${PFILES} \
30248             platforms/freebsd/Makefile \
30249             platforms/freebsd/bacula-fd \
30250             platforms/freebsd/bacula-sd \
30251             platforms/freebsd/bacula-dir"
30252         largefile_support="yes"
30253   ;;
30254 hpux)
30255         PSCMD="UNIX95=1; ps -e -o pid,comm"
30256         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30257         DISTVER=`uname -r`
30258         TAPEDRIVE="/dev/rmt/0hnb"
30259         PTHREAD_LIB="-lpthread"
30260         cat >>confdefs.h <<\_ACEOF
30261 #define _INCLUDE_LONGLONG 1
30262 _ACEOF
30263
30264   ;;
30265 irix)
30266         DISTVER=`uname -r`
30267         TAPEDRIVE="/dev/rmt/0cbn"
30268         PSCMD="ps -e -o pid,comm"
30269         PFILES="${PFILES} \
30270             platforms/irix/Makefile \
30271             platforms/irix/bacula-fd \
30272             platforms/irix/bacula-sd \
30273             platforms/irix/bacula-dir"
30274   ;;
30275 netbsd)
30276         DISTVER=`uname -a |awk '{print $3}'`
30277         lld="qd"
30278         llu="qu"
30279         TAPEDRIVE="/dev/nrst0"
30280         PSCMD="ps -ax -o pid,command"
30281         PTHREAD_LIB="-pthread"
30282         CFLAGS="${CFLAGS} -pthread"
30283   ;;
30284 openbsd)
30285         DISTVER=`uname -a |awk '{print $3}'`
30286         lld="qd"
30287         llu="qu"
30288         TAPEDRIVE="/dev/nrst0"
30289         PSCMD="ps -ax -o pid,command"
30290         PTHREAD_LIB="-pthread"
30291         CFLAGS="${CFLAGS} -pthread"
30292         PFILES="${PFILES} \
30293             platforms/openbsd/Makefile \
30294             platforms/openbsd/bacula-fd \
30295             platforms/openbsd/bacula-sd \
30296             platforms/openbsd/bacula-dir"
30297   ;;
30298 redhat)
30299         if test -f /etc/whitebox-release ; then
30300            f=/etc/whitebox-release
30301         else
30302            f=/etc/redhat-release
30303         fi
30304         if test `cat $f | grep release |\
30305                    cut -f 3 -d ' '`x = "Enterprise"x ; then
30306            DISTVER="Enterprise "`cat $f | grep release |\
30307                     cut -f 6 -d ' '`
30308         else
30309             DISTVER=`cat /etc/redhat-release | grep release |\
30310                      cut -f 5 -d ' '`
30311         fi
30312         TAPEDRIVE="/dev/nst0"
30313         PSCMD="ps -e -o pid,command"
30314         PFILES="${PFILES} \
30315             platforms/redhat/Makefile \
30316             platforms/redhat/bacula-fd \
30317             platforms/redhat/bacula-sd \
30318             platforms/redhat/bacula-dir \
30319             platforms/redhat/bacula.spec \
30320             "
30321   ;;
30322 mandrake)
30323         DISTVER=`cat /etc/mandrake-release | grep release |\
30324            cut -f 5 -d ' '`
30325         TAPEDRIVE="/dev/nst0"
30326         PSCMD="ps -e -o pid,command"
30327         PFILES="${PFILES} \
30328             platforms/mandrake/Makefile \
30329             platforms/mandrake/bacula-fd \
30330             platforms/mandrake/bacula-sd \
30331             platforms/mandrake/bacula-dir \
30332             platforms/mandrake/bacula.spec \
30333             "
30334   ;;
30335 gentoo)
30336         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30337         TAPEDRIVE="/dev/nst0"
30338         PSCMD="ps -e -o pid,command"
30339         PFILES="${PFILES} \
30340             platforms/gentoo/Makefile \
30341          platforms/gentoo/bacula-init \
30342             platforms/gentoo/bacula-fd \
30343             platforms/gentoo/bacula-sd \
30344             platforms/gentoo/bacula-dir"
30345   ;;
30346 slackware)
30347         DISTVER=`cat /etc/slackware-version`
30348         TAPEDRIVE="/dev/nst0"
30349         PSCMD="ps -e -o pid,command"
30350         PFILES="${PFILES} \
30351             platforms/slackware/Makefile \
30352             platforms/slackware/rc.bacula-fd \
30353             platforms/slackware/rc.bacula-sd \
30354             platforms/slackware/rc.bacula-dir\
30355             platforms/slackware/functions.bacula"
30356   ;;
30357 solaris)
30358         DISTVER=`uname -r`
30359         TAPEDRIVE="/dev/rmt/0cbn"
30360         PSCMD="ps -e -o pid,comm"
30361         PFILES="${PFILES} \
30362             platforms/solaris/Makefile \
30363             platforms/solaris/bacula-fd \
30364             platforms/solaris/bacula-sd \
30365             platforms/solaris/bacula-dir"
30366         if test x$DISTVER = x5.6 ; then
30367             cat >>confdefs.h <<\_ACEOF
30368 #define HAVE_OLD_SOCKOPT 1
30369 _ACEOF
30370
30371         fi
30372         LIBS="$LIBS -lresolv"
30373   ;;
30374 suse)
30375         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30376             cut -f 3 -d ' '`
30377         TAPEDRIVE="/dev/nst0"
30378         PSCMD="ps -e -o pid,command"
30379         PFILES="${PFILES} \
30380             platforms/suse/Makefile \
30381             platforms/suse/bacula-fd \
30382             platforms/suse/bacula-sd \
30383             platforms/suse/bacula-dir \
30384             platforms/suse/bacula \
30385             platforms/suse/bacula.spec"
30386   ;;
30387 suse5)
30388         DISTNAME=suse
30389         DISTVER=5.x
30390         TAPEDRIVE="/dev/nst0"
30391         PSCMD="ps -e -o pid,command"
30392         PFILES="${PFILES} \
30393             platforms/suse/Makefile \
30394             platforms/suse/bacula-fd \
30395             platforms/suse/bacula-sd \
30396             platforms/suse/bacula-dir"
30397   ;;
30398 unknown)
30399         DISTVER=unknown
30400         TAPEDRIVE="/dev/nst0"
30401   ;;
30402 *)
30403   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30404   ;;
30405 esac
30406
30407
30408
30409 LIBS="$PTHREAD_LIB $LIBS"
30410
30411 cat >>confdefs.h <<_ACEOF
30412 #define lld "$lld"
30413 _ACEOF
30414
30415 cat >>confdefs.h <<_ACEOF
30416 #define llu "$llu"
30417 _ACEOF
30418
30419
30420
30421
30422
30423
30424
30425
30426 MCOMMON=./autoconf/Make.common
30427
30428
30429 if test "x${subsysdir}" = "x${sbindir}" ; then
30430    echo " "
30431    echo " "
30432    echo "You have set both --sbindir and --with-subsys-dir"
30433    echo "  equal to: ${subsysdir} "
30434    echo "This is not permitted. Please reconfigure."
30435    echo " "
30436    echo "Aborting configuration ..."
30437    echo " "
30438    echo " "
30439    exit 1
30440 fi
30441
30442                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       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"
30443           ac_config_commands="$ac_config_commands default"
30444 cat >confcache <<\_ACEOF
30445 # This file is a shell script that caches the results of configure
30446 # tests run on this system so they can be shared between configure
30447 # scripts and configure runs, see configure's option --config-cache.
30448 # It is not useful on other systems.  If it contains results you don't
30449 # want to keep, you may remove or edit it.
30450 #
30451 # config.status only pays attention to the cache file if you give it
30452 # the --recheck option to rerun configure.
30453 #
30454 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30455 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30456 # following values.
30457
30458 _ACEOF
30459
30460 # The following way of writing the cache mishandles newlines in values,
30461 # but we know of no workaround that is simple, portable, and efficient.
30462 # So, don't put newlines in cache variables' values.
30463 # Ultrix sh set writes to stderr and can't be redirected directly,
30464 # and sets the high bit in the cache file unless we assign to the vars.
30465 {
30466   (set) 2>&1 |
30467     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30468     *ac_space=\ *)
30469       # `set' does not quote correctly, so add quotes (double-quote
30470       # substitution turns \\\\ into \\, and sed turns \\ into \).
30471       sed -n \
30472         "s/'/'\\\\''/g;
30473           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30474       ;;
30475     *)
30476       # `set' quotes correctly as required by POSIX, so do not add quotes.
30477       sed -n \
30478         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30479       ;;
30480     esac;
30481 } |
30482   sed '
30483      t clear
30484      : clear
30485      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30486      t end
30487      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30488      : end' >>confcache
30489 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30490   if test -w $cache_file; then
30491     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30492     cat confcache >$cache_file
30493   else
30494     echo "not updating unwritable cache $cache_file"
30495   fi
30496 fi
30497 rm -f confcache
30498
30499 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30500 # Let make expand exec_prefix.
30501 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30502
30503 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30504 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30505 # trailing colons and then remove the whole line if VPATH becomes empty
30506 # (actually we leave an empty line to preserve line numbers).
30507 if test "x$srcdir" = x.; then
30508   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30509 s/:*\$(srcdir):*/:/;
30510 s/:*\${srcdir}:*/:/;
30511 s/:*@srcdir@:*/:/;
30512 s/^\([^=]*=[     ]*\):*/\1/;
30513 s/:*$//;
30514 s/^[^=]*=[       ]*$//;
30515 }'
30516 fi
30517
30518 DEFS=-DHAVE_CONFIG_H
30519
30520 ac_libobjs=
30521 ac_ltlibobjs=
30522 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30523   # 1. Remove the extension, and $U if already installed.
30524   ac_i=`echo "$ac_i" |
30525          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30526   # 2. Add them.
30527   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30528   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30529 done
30530 LIBOBJS=$ac_libobjs
30531
30532 LTLIBOBJS=$ac_ltlibobjs
30533
30534
30535
30536 : ${CONFIG_STATUS=./config.status}
30537 ac_clean_files_save=$ac_clean_files
30538 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30539 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30540 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30541 cat >$CONFIG_STATUS <<_ACEOF
30542 #! $SHELL
30543 # Generated by $as_me.
30544 # Run this file to recreate the current configuration.
30545 # Compiler output produced by configure, useful for debugging
30546 # configure, is in config.log if it exists.
30547
30548 debug=false
30549 ac_cs_recheck=false
30550 ac_cs_silent=false
30551 SHELL=\${CONFIG_SHELL-$SHELL}
30552 _ACEOF
30553
30554 cat >>$CONFIG_STATUS <<\_ACEOF
30555 ## --------------------- ##
30556 ## M4sh Initialization.  ##
30557 ## --------------------- ##
30558
30559 # Be Bourne compatible
30560 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30561   emulate sh
30562   NULLCMD=:
30563   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30564   # is contrary to our usage.  Disable this feature.
30565   alias -g '${1+"$@"}'='"$@"'
30566 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30567   set -o posix
30568 fi
30569 DUALCASE=1; export DUALCASE # for MKS sh
30570
30571 # Support unset when possible.
30572 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30573   as_unset=unset
30574 else
30575   as_unset=false
30576 fi
30577
30578
30579 # Work around bugs in pre-3.0 UWIN ksh.
30580 $as_unset ENV MAIL MAILPATH
30581 PS1='$ '
30582 PS2='> '
30583 PS4='+ '
30584
30585 # NLS nuisances.
30586 for as_var in \
30587   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30588   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30589   LC_TELEPHONE LC_TIME
30590 do
30591   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30592     eval $as_var=C; export $as_var
30593   else
30594     $as_unset $as_var
30595   fi
30596 done
30597
30598 # Required to use basename.
30599 if expr a : '\(a\)' >/dev/null 2>&1; then
30600   as_expr=expr
30601 else
30602   as_expr=false
30603 fi
30604
30605 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30606   as_basename=basename
30607 else
30608   as_basename=false
30609 fi
30610
30611
30612 # Name of the executable.
30613 as_me=`$as_basename "$0" ||
30614 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30615          X"$0" : 'X\(//\)$' \| \
30616          X"$0" : 'X\(/\)$' \| \
30617          .     : '\(.\)' 2>/dev/null ||
30618 echo X/"$0" |
30619     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30620           /^X\/\(\/\/\)$/{ s//\1/; q; }
30621           /^X\/\(\/\).*/{ s//\1/; q; }
30622           s/.*/./; q'`
30623
30624
30625 # PATH needs CR, and LINENO needs CR and PATH.
30626 # Avoid depending upon Character Ranges.
30627 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30628 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30629 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30630 as_cr_digits='0123456789'
30631 as_cr_alnum=$as_cr_Letters$as_cr_digits
30632
30633 # The user is always right.
30634 if test "${PATH_SEPARATOR+set}" != set; then
30635   echo "#! /bin/sh" >conf$$.sh
30636   echo  "exit 0"   >>conf$$.sh
30637   chmod +x conf$$.sh
30638   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30639     PATH_SEPARATOR=';'
30640   else
30641     PATH_SEPARATOR=:
30642   fi
30643   rm -f conf$$.sh
30644 fi
30645
30646
30647   as_lineno_1=$LINENO
30648   as_lineno_2=$LINENO
30649   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30650   test "x$as_lineno_1" != "x$as_lineno_2" &&
30651   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30652   # Find who we are.  Look in the path if we contain no path at all
30653   # relative or not.
30654   case $0 in
30655     *[\\/]* ) as_myself=$0 ;;
30656     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30657 for as_dir in $PATH
30658 do
30659   IFS=$as_save_IFS
30660   test -z "$as_dir" && as_dir=.
30661   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30662 done
30663
30664        ;;
30665   esac
30666   # We did not find ourselves, most probably we were run as `sh COMMAND'
30667   # in which case we are not to be found in the path.
30668   if test "x$as_myself" = x; then
30669     as_myself=$0
30670   fi
30671   if test ! -f "$as_myself"; then
30672     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30673 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30674    { (exit 1); exit 1; }; }
30675   fi
30676   case $CONFIG_SHELL in
30677   '')
30678     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30679 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30680 do
30681   IFS=$as_save_IFS
30682   test -z "$as_dir" && as_dir=.
30683   for as_base in sh bash ksh sh5; do
30684          case $as_dir in
30685          /*)
30686            if ("$as_dir/$as_base" -c '
30687   as_lineno_1=$LINENO
30688   as_lineno_2=$LINENO
30689   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30690   test "x$as_lineno_1" != "x$as_lineno_2" &&
30691   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30692              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30693              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30694              CONFIG_SHELL=$as_dir/$as_base
30695              export CONFIG_SHELL
30696              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30697            fi;;
30698          esac
30699        done
30700 done
30701 ;;
30702   esac
30703
30704   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30705   # uniformly replaced by the line number.  The first 'sed' inserts a
30706   # line-number line before each line; the second 'sed' does the real
30707   # work.  The second script uses 'N' to pair each line-number line
30708   # with the numbered line, and appends trailing '-' during
30709   # substitution so that $LINENO is not a special case at line end.
30710   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30711   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30712   sed '=' <$as_myself |
30713     sed '
30714       N
30715       s,$,-,
30716       : loop
30717       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30718       t loop
30719       s,-$,,
30720       s,^['$as_cr_digits']*\n,,
30721     ' >$as_me.lineno &&
30722   chmod +x $as_me.lineno ||
30723     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30724 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30725    { (exit 1); exit 1; }; }
30726
30727   # Don't try to exec as it changes $[0], causing all sort of problems
30728   # (the dirname of $[0] is not the place where we might find the
30729   # original and so on.  Autoconf is especially sensible to this).
30730   . ./$as_me.lineno
30731   # Exit status is that of the last command.
30732   exit
30733 }
30734
30735
30736 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30737   *c*,-n*) ECHO_N= ECHO_C='
30738 ' ECHO_T='      ' ;;
30739   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30740   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30741 esac
30742
30743 if expr a : '\(a\)' >/dev/null 2>&1; then
30744   as_expr=expr
30745 else
30746   as_expr=false
30747 fi
30748
30749 rm -f conf$$ conf$$.exe conf$$.file
30750 echo >conf$$.file
30751 if ln -s conf$$.file conf$$ 2>/dev/null; then
30752   # We could just check for DJGPP; but this test a) works b) is more generic
30753   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30754   if test -f conf$$.exe; then
30755     # Don't use ln at all; we don't have any links
30756     as_ln_s='cp -p'
30757   else
30758     as_ln_s='ln -s'
30759   fi
30760 elif ln conf$$.file conf$$ 2>/dev/null; then
30761   as_ln_s=ln
30762 else
30763   as_ln_s='cp -p'
30764 fi
30765 rm -f conf$$ conf$$.exe conf$$.file
30766
30767 if mkdir -p . 2>/dev/null; then
30768   as_mkdir_p=:
30769 else
30770   test -d ./-p && rmdir ./-p
30771   as_mkdir_p=false
30772 fi
30773
30774 as_executable_p="test -f"
30775
30776 # Sed expression to map a string onto a valid CPP name.
30777 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30778
30779 # Sed expression to map a string onto a valid variable name.
30780 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30781
30782
30783 # IFS
30784 # We need space, tab and new line, in precisely that order.
30785 as_nl='
30786 '
30787 IFS="   $as_nl"
30788
30789 # CDPATH.
30790 $as_unset CDPATH
30791
30792 exec 6>&1
30793
30794 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30795 # report actual input values of CONFIG_FILES etc. instead of their
30796 # values after options handling.  Logging --version etc. is OK.
30797 exec 5>>config.log
30798 {
30799   echo
30800   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30801 ## Running $as_me. ##
30802 _ASBOX
30803 } >&5
30804 cat >&5 <<_CSEOF
30805
30806 This file was extended by $as_me, which was
30807 generated by GNU Autoconf 2.59.  Invocation command line was
30808
30809   CONFIG_FILES    = $CONFIG_FILES
30810   CONFIG_HEADERS  = $CONFIG_HEADERS
30811   CONFIG_LINKS    = $CONFIG_LINKS
30812   CONFIG_COMMANDS = $CONFIG_COMMANDS
30813   $ $0 $@
30814
30815 _CSEOF
30816 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30817 echo >&5
30818 _ACEOF
30819
30820 # Files that config.status was made for.
30821 if test -n "$ac_config_files"; then
30822   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30823 fi
30824
30825 if test -n "$ac_config_headers"; then
30826   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30827 fi
30828
30829 if test -n "$ac_config_links"; then
30830   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30831 fi
30832
30833 if test -n "$ac_config_commands"; then
30834   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30835 fi
30836
30837 cat >>$CONFIG_STATUS <<\_ACEOF
30838
30839 ac_cs_usage="\
30840 \`$as_me' instantiates files from templates according to the
30841 current configuration.
30842
30843 Usage: $0 [OPTIONS] [FILE]...
30844
30845   -h, --help       print this help, then exit
30846   -V, --version    print version number, then exit
30847   -q, --quiet      do not print progress messages
30848   -d, --debug      don't remove temporary files
30849       --recheck    update $as_me by reconfiguring in the same conditions
30850   --file=FILE[:TEMPLATE]
30851                    instantiate the configuration file FILE
30852   --header=FILE[:TEMPLATE]
30853                    instantiate the configuration header FILE
30854
30855 Configuration files:
30856 $config_files
30857
30858 Configuration headers:
30859 $config_headers
30860
30861 Configuration commands:
30862 $config_commands
30863
30864 Report bugs to <bug-autoconf@gnu.org>."
30865 _ACEOF
30866
30867 cat >>$CONFIG_STATUS <<_ACEOF
30868 ac_cs_version="\\
30869 config.status
30870 configured by $0, generated by GNU Autoconf 2.59,
30871   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30872
30873 Copyright (C) 2003 Free Software Foundation, Inc.
30874 This config.status script is free software; the Free Software Foundation
30875 gives unlimited permission to copy, distribute and modify it."
30876 srcdir=$srcdir
30877 INSTALL="$INSTALL"
30878 _ACEOF
30879
30880 cat >>$CONFIG_STATUS <<\_ACEOF
30881 # If no file are specified by the user, then we need to provide default
30882 # value.  By we need to know if files were specified by the user.
30883 ac_need_defaults=:
30884 while test $# != 0
30885 do
30886   case $1 in
30887   --*=*)
30888     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30889     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30890     ac_shift=:
30891     ;;
30892   -*)
30893     ac_option=$1
30894     ac_optarg=$2
30895     ac_shift=shift
30896     ;;
30897   *) # This is not an option, so the user has probably given explicit
30898      # arguments.
30899      ac_option=$1
30900      ac_need_defaults=false;;
30901   esac
30902
30903   case $ac_option in
30904   # Handling of the options.
30905 _ACEOF
30906 cat >>$CONFIG_STATUS <<\_ACEOF
30907   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30908     ac_cs_recheck=: ;;
30909   --version | --vers* | -V )
30910     echo "$ac_cs_version"; exit 0 ;;
30911   --he | --h)
30912     # Conflict between --help and --header
30913     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30914 Try \`$0 --help' for more information." >&5
30915 echo "$as_me: error: ambiguous option: $1
30916 Try \`$0 --help' for more information." >&2;}
30917    { (exit 1); exit 1; }; };;
30918   --help | --hel | -h )
30919     echo "$ac_cs_usage"; exit 0 ;;
30920   --debug | --d* | -d )
30921     debug=: ;;
30922   --file | --fil | --fi | --f )
30923     $ac_shift
30924     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30925     ac_need_defaults=false;;
30926   --header | --heade | --head | --hea )
30927     $ac_shift
30928     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30929     ac_need_defaults=false;;
30930   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30931   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30932     ac_cs_silent=: ;;
30933
30934   # This is an error.
30935   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30936 Try \`$0 --help' for more information." >&5
30937 echo "$as_me: error: unrecognized option: $1
30938 Try \`$0 --help' for more information." >&2;}
30939    { (exit 1); exit 1; }; } ;;
30940
30941   *) ac_config_targets="$ac_config_targets $1" ;;
30942
30943   esac
30944   shift
30945 done
30946
30947 ac_configure_extra_args=
30948
30949 if $ac_cs_silent; then
30950   exec 6>/dev/null
30951   ac_configure_extra_args="$ac_configure_extra_args --silent"
30952 fi
30953
30954 _ACEOF
30955 cat >>$CONFIG_STATUS <<_ACEOF
30956 if \$ac_cs_recheck; then
30957   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30958   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30959 fi
30960
30961 _ACEOF
30962
30963 cat >>$CONFIG_STATUS <<_ACEOF
30964 #
30965 # INIT-COMMANDS section.
30966 #
30967
30968 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30969     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30970     # from automake.
30971     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30972     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30973     LINGUAS="${LINGUAS-%UNSET%}"
30974
30975
30976 _ACEOF
30977
30978
30979
30980 cat >>$CONFIG_STATUS <<\_ACEOF
30981 for ac_config_target in $ac_config_targets
30982 do
30983   case "$ac_config_target" in
30984   # Handling of arguments.
30985   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30986   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30987   "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30988   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30989   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30990   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30991   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30992   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30993   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30994   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30995   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30996   "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30997   "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30998   "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30999   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31000   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31001   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31002   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31003   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31004   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31005   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31006   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31007   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31008   "scripts/bgnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31009   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31010   "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31011   "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31012   "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31013   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31014   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31015   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31016   "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31017   "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31018   "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31019   "scripts/bat.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31020   "scripts/bat.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31021   "scripts/bat.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31022   "scripts/bat.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31023   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31024   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31025   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31026   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31027   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31028   "src/gnome2-console/bgnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31029   "src/qt-console/bat.conf" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31030   "src/qt-console/bat.pro" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31031   "src/qt-console/install_conf_file" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31032   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31033   "src/wx-console/bwx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31034   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31035   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31036   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31037   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31038   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31039   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31040   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31041   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31042   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31043   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31044   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31045   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31046   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31047   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31048   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31049   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31050   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31051   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31052   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31053   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31054   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31055   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31056   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31057   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31058   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31059   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31060   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31061   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31062   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31063   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31064   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31065   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31066   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31067   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31068   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31069   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31070   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31071   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31072   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31073   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31074   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31075   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31076   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31077   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31078   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31079   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31080   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31081   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31082   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31083   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31084   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31085   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31086   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31087   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31088   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31089   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31090   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31091   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31092 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31093    { (exit 1); exit 1; }; };;
31094   esac
31095 done
31096
31097 # If the user did not use the arguments to specify the items to instantiate,
31098 # then the envvar interface is used.  Set only those that are not.
31099 # We use the long form for the default assignment because of an extremely
31100 # bizarre bug on SunOS 4.1.3.
31101 if $ac_need_defaults; then
31102   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31103   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31104   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31105 fi
31106
31107 # Have a temporary directory for convenience.  Make it in the build tree
31108 # simply because there is no reason to put it here, and in addition,
31109 # creating and moving files from /tmp can sometimes cause problems.
31110 # Create a temporary directory, and hook for its removal unless debugging.
31111 $debug ||
31112 {
31113   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31114   trap '{ (exit 1); exit 1; }' 1 2 13 15
31115 }
31116
31117 # Create a (secure) tmp directory for tmp files.
31118
31119 {
31120   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31121   test -n "$tmp" && test -d "$tmp"
31122 }  ||
31123 {
31124   tmp=./confstat$$-$RANDOM
31125   (umask 077 && mkdir $tmp)
31126 } ||
31127 {
31128    echo "$me: cannot create a temporary directory in ." >&2
31129    { (exit 1); exit 1; }
31130 }
31131
31132 _ACEOF
31133
31134 cat >>$CONFIG_STATUS <<_ACEOF
31135
31136 #
31137 # CONFIG_FILES section.
31138 #
31139
31140 # No need to generate the scripts if there are no CONFIG_FILES.
31141 # This happens for instance when ./config.status config.h
31142 if test -n "\$CONFIG_FILES"; then
31143   # Protect against being on the right side of a sed subst in config.status.
31144   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31145    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31146 s,@SHELL@,$SHELL,;t t
31147 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31148 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31149 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31150 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31151 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31152 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31153 s,@exec_prefix@,$exec_prefix,;t t
31154 s,@prefix@,$prefix,;t t
31155 s,@program_transform_name@,$program_transform_name,;t t
31156 s,@bindir@,$bindir,;t t
31157 s,@sbindir@,$sbindir,;t t
31158 s,@libexecdir@,$libexecdir,;t t
31159 s,@datadir@,$datadir,;t t
31160 s,@sysconfdir@,$sysconfdir,;t t
31161 s,@sharedstatedir@,$sharedstatedir,;t t
31162 s,@localstatedir@,$localstatedir,;t t
31163 s,@libdir@,$libdir,;t t
31164 s,@includedir@,$includedir,;t t
31165 s,@oldincludedir@,$oldincludedir,;t t
31166 s,@infodir@,$infodir,;t t
31167 s,@mandir@,$mandir,;t t
31168 s,@build_alias@,$build_alias,;t t
31169 s,@host_alias@,$host_alias,;t t
31170 s,@target_alias@,$target_alias,;t t
31171 s,@DEFS@,$DEFS,;t t
31172 s,@ECHO_C@,$ECHO_C,;t t
31173 s,@ECHO_N@,$ECHO_N,;t t
31174 s,@ECHO_T@,$ECHO_T,;t t
31175 s,@LIBS@,$LIBS,;t t
31176 s,@BUILD_DIR@,$BUILD_DIR,;t t
31177 s,@TOP_DIR@,$TOP_DIR,;t t
31178 s,@TRUEPRG@,$TRUEPRG,;t t
31179 s,@FALSEPRG@,$FALSEPRG,;t t
31180 s,@VERSION@,$VERSION,;t t
31181 s,@DATE@,$DATE,;t t
31182 s,@LSMDATE@,$LSMDATE,;t t
31183 s,@CC@,$CC,;t t
31184 s,@CFLAGS@,$CFLAGS,;t t
31185 s,@LDFLAGS@,$LDFLAGS,;t t
31186 s,@CPPFLAGS@,$CPPFLAGS,;t t
31187 s,@ac_ct_CC@,$ac_ct_CC,;t t
31188 s,@EXEEXT@,$EXEEXT,;t t
31189 s,@OBJEXT@,$OBJEXT,;t t
31190 s,@CXX@,$CXX,;t t
31191 s,@CXXFLAGS@,$CXXFLAGS,;t t
31192 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31193 s,@CPP@,$CPP,;t t
31194 s,@EGREP@,$EGREP,;t t
31195 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31196 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31197 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31198 s,@RANLIB@,$RANLIB,;t t
31199 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31200 s,@MV@,$MV,;t t
31201 s,@RM@,$RM,;t t
31202 s,@CP@,$CP,;t t
31203 s,@SED@,$SED,;t t
31204 s,@ECHO@,$ECHO,;t t
31205 s,@CMP@,$CMP,;t t
31206 s,@TBL@,$TBL,;t t
31207 s,@AR@,$AR,;t t
31208 s,@OPENSSL@,$OPENSSL,;t t
31209 s,@MTX@,$MTX,;t t
31210 s,@DD@,$DD,;t t
31211 s,@MKISOFS@,$MKISOFS,;t t
31212 s,@PYTHON@,$PYTHON,;t t
31213 s,@GROWISOFS@,$GROWISOFS,;t t
31214 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
31215 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
31216 s,@PKGCONFIG@,$PKGCONFIG,;t t
31217 s,@WXCONFIG@,$WXCONFIG,;t t
31218 s,@WXFLAGS@,$WXFLAGS,;t t
31219 s,@CDRECORD@,$CDRECORD,;t t
31220 s,@PIDOF@,$PIDOF,;t t
31221 s,@AWK@,$AWK,;t t
31222 s,@ARFLAGS@,$ARFLAGS,;t t
31223 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
31224 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
31225 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
31226 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
31227 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
31228 s,@build@,$build,;t t
31229 s,@build_cpu@,$build_cpu,;t t
31230 s,@build_vendor@,$build_vendor,;t t
31231 s,@build_os@,$build_os,;t t
31232 s,@host@,$host,;t t
31233 s,@host_cpu@,$host_cpu,;t t
31234 s,@host_vendor@,$host_vendor,;t t
31235 s,@host_os@,$host_os,;t t
31236 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
31237 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
31238 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
31239 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
31240 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
31241 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
31242 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
31243 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
31244 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
31245 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
31246 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
31247 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
31248 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
31249 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
31250 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
31251 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
31252 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
31253 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
31254 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
31255 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
31256 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
31257 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
31258 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
31259 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
31260 s,@SET_MAKE@,$SET_MAKE,;t t
31261 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31262 s,@USE_NLS@,$USE_NLS,;t t
31263 s,@MSGFMT@,$MSGFMT,;t t
31264 s,@GMSGFMT@,$GMSGFMT,;t t
31265 s,@XGETTEXT@,$XGETTEXT,;t t
31266 s,@MSGMERGE@,$MSGMERGE,;t t
31267 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
31268 s,@LIBICONV@,$LIBICONV,;t t
31269 s,@LTLIBICONV@,$LTLIBICONV,;t t
31270 s,@INTLLIBS@,$INTLLIBS,;t t
31271 s,@LIBINTL@,$LIBINTL,;t t
31272 s,@LTLIBINTL@,$LTLIBINTL,;t t
31273 s,@POSUB@,$POSUB,;t t
31274 s,@GLIBC2@,$GLIBC2,;t t
31275 s,@ALLOCA@,$ALLOCA,;t t
31276 s,@GLIBC21@,$GLIBC21,;t t
31277 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
31278 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
31279 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
31280 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
31281 s,@INTLBISON@,$INTLBISON,;t t
31282 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
31283 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
31284 s,@CATOBJEXT@,$CATOBJEXT,;t t
31285 s,@DATADIRNAME@,$DATADIRNAME,;t t
31286 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
31287 s,@GENCAT@,$GENCAT,;t t
31288 s,@INTLOBJS@,$INTLOBJS,;t t
31289 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
31290 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
31291 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
31292 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
31293 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
31294 s,@GNOME_DIR@,$GNOME_DIR,;t t
31295 s,@BAT_DIR@,$BAT_DIR,;t t
31296 s,@QWT_INC@,$QWT_INC,;t t
31297 s,@QWT_LDFLAGS@,$QWT_LDFLAGS,;t t
31298 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
31299 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
31300 s,@WX_DIR@,$WX_DIR,;t t
31301 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
31302 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
31303 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
31304 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
31305 s,@STATIC_FD@,$STATIC_FD,;t t
31306 s,@STATIC_SD@,$STATIC_SD,;t t
31307 s,@STATIC_DIR@,$STATIC_DIR,;t t
31308 s,@STATIC_CONS@,$STATIC_CONS,;t t
31309 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
31310 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
31311 s,@ALL_DIRS@,$ALL_DIRS,;t t
31312 s,@DIRD_DIR@,$DIRD_DIR,;t t
31313 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
31314 s,@STORED_DIR@,$STORED_DIR,;t t
31315 s,@CONS_INC@,$CONS_INC,;t t
31316 s,@CONS_OBJ@,$CONS_OBJ,;t t
31317 s,@CONS_SRC@,$CONS_SRC,;t t
31318 s,@CONS_LIBS@,$CONS_LIBS,;t t
31319 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
31320 s,@READLINE_SRC@,$READLINE_SRC,;t t
31321 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
31322 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
31323 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
31324 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
31325 s,@working_dir@,$working_dir,;t t
31326 s,@scriptdir@,$scriptdir,;t t
31327 s,@dump_email@,$dump_email,;t t
31328 s,@job_email@,$job_email,;t t
31329 s,@smtp_host@,$smtp_host,;t t
31330 s,@piddir@,$piddir,;t t
31331 s,@subsysdir@,$subsysdir,;t t
31332 s,@baseport@,$baseport,;t t
31333 s,@dir_port@,$dir_port,;t t
31334 s,@fd_port@,$fd_port,;t t
31335 s,@sd_port@,$sd_port,;t t
31336 s,@dir_password@,$dir_password,;t t
31337 s,@fd_password@,$fd_password,;t t
31338 s,@sd_password@,$sd_password,;t t
31339 s,@mon_dir_password@,$mon_dir_password,;t t
31340 s,@mon_fd_password@,$mon_fd_password,;t t
31341 s,@mon_sd_password@,$mon_sd_password,;t t
31342 s,@db_name@,$db_name,;t t
31343 s,@db_user@,$db_user,;t t
31344 s,@dir_user@,$dir_user,;t t
31345 s,@dir_group@,$dir_group,;t t
31346 s,@sd_user@,$sd_user,;t t
31347 s,@sd_group@,$sd_group,;t t
31348 s,@fd_user@,$fd_user,;t t
31349 s,@fd_group@,$fd_group,;t t
31350 s,@SBINPERM@,$SBINPERM,;t t
31351 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
31352 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
31353 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
31354 s,@cats@,$cats,;t t
31355 s,@DB_TYPE@,$DB_TYPE,;t t
31356 s,@GETCONF@,$GETCONF,;t t
31357 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
31358 s,@X_CFLAGS@,$X_CFLAGS,;t t
31359 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31360 s,@X_LIBS@,$X_LIBS,;t t
31361 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31362 s,@LIBOBJS@,$LIBOBJS,;t t
31363 s,@FDLIBS@,$FDLIBS,;t t
31364 s,@DEBUG@,$DEBUG,;t t
31365 s,@DINCLUDE@,$DINCLUDE,;t t
31366 s,@DLIB@,$DLIB,;t t
31367 s,@DB_LIBS@,$DB_LIBS,;t t
31368 s,@WCFLAGS@,$WCFLAGS,;t t
31369 s,@WLDFLAGS@,$WLDFLAGS,;t t
31370 s,@WRAPLIBS@,$WRAPLIBS,;t t
31371 s,@OBJLIST@,$OBJLIST,;t t
31372 s,@hostname@,$hostname,;t t
31373 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
31374 s,@PSCMD@,$PSCMD,;t t
31375 s,@WIN32@,$WIN32,;t t
31376 s,@MACOSX@,$MACOSX,;t t
31377 s,@DISTNAME@,$DISTNAME,;t t
31378 s,@DISTVER@,$DISTVER,;t t
31379 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31380 /@MCOMMON@/r $MCOMMON
31381 s,@MCOMMON@,,;t t
31382 CEOF
31383
31384 _ACEOF
31385
31386   cat >>$CONFIG_STATUS <<\_ACEOF
31387   # Split the substitutions into bite-sized pieces for seds with
31388   # small command number limits, like on Digital OSF/1 and HP-UX.
31389   ac_max_sed_lines=48
31390   ac_sed_frag=1 # Number of current file.
31391   ac_beg=1 # First line for current file.
31392   ac_end=$ac_max_sed_lines # Line after last line for current file.
31393   ac_more_lines=:
31394   ac_sed_cmds=
31395   while $ac_more_lines; do
31396     if test $ac_beg -gt 1; then
31397       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31398     else
31399       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31400     fi
31401     if test ! -s $tmp/subs.frag; then
31402       ac_more_lines=false
31403     else
31404       # The purpose of the label and of the branching condition is to
31405       # speed up the sed processing (if there are no `@' at all, there
31406       # is no need to browse any of the substitutions).
31407       # These are the two extra sed commands mentioned above.
31408       (echo ':t
31409   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31410       if test -z "$ac_sed_cmds"; then
31411         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31412       else
31413         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31414       fi
31415       ac_sed_frag=`expr $ac_sed_frag + 1`
31416       ac_beg=$ac_end
31417       ac_end=`expr $ac_end + $ac_max_sed_lines`
31418     fi
31419   done
31420   if test -z "$ac_sed_cmds"; then
31421     ac_sed_cmds=cat
31422   fi
31423 fi # test -n "$CONFIG_FILES"
31424
31425 _ACEOF
31426 cat >>$CONFIG_STATUS <<\_ACEOF
31427 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31428   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31429   case $ac_file in
31430   - | *:- | *:-:* ) # input from stdin
31431         cat >$tmp/stdin
31432         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31433         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31434   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31435         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31436   * )   ac_file_in=$ac_file.in ;;
31437   esac
31438
31439   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31440   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31441 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31442          X"$ac_file" : 'X\(//\)[^/]' \| \
31443          X"$ac_file" : 'X\(//\)$' \| \
31444          X"$ac_file" : 'X\(/\)' \| \
31445          .     : '\(.\)' 2>/dev/null ||
31446 echo X"$ac_file" |
31447     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31448           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31449           /^X\(\/\/\)$/{ s//\1/; q; }
31450           /^X\(\/\).*/{ s//\1/; q; }
31451           s/.*/./; q'`
31452   { if $as_mkdir_p; then
31453     mkdir -p "$ac_dir"
31454   else
31455     as_dir="$ac_dir"
31456     as_dirs=
31457     while test ! -d "$as_dir"; do
31458       as_dirs="$as_dir $as_dirs"
31459       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31460 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31461          X"$as_dir" : 'X\(//\)[^/]' \| \
31462          X"$as_dir" : 'X\(//\)$' \| \
31463          X"$as_dir" : 'X\(/\)' \| \
31464          .     : '\(.\)' 2>/dev/null ||
31465 echo X"$as_dir" |
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     done
31472     test ! -n "$as_dirs" || mkdir $as_dirs
31473   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31474 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31475    { (exit 1); exit 1; }; }; }
31476
31477   ac_builddir=.
31478
31479 if test "$ac_dir" != .; then
31480   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31481   # A "../" for each directory in $ac_dir_suffix.
31482   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31483 else
31484   ac_dir_suffix= ac_top_builddir=
31485 fi
31486
31487 case $srcdir in
31488   .)  # No --srcdir option.  We are building in place.
31489     ac_srcdir=.
31490     if test -z "$ac_top_builddir"; then
31491        ac_top_srcdir=.
31492     else
31493        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31494     fi ;;
31495   [\\/]* | ?:[\\/]* )  # Absolute path.
31496     ac_srcdir=$srcdir$ac_dir_suffix;
31497     ac_top_srcdir=$srcdir ;;
31498   *) # Relative path.
31499     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31500     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31501 esac
31502
31503 # Do not use `cd foo && pwd` to compute absolute paths, because
31504 # the directories may not exist.
31505 case `pwd` in
31506 .) ac_abs_builddir="$ac_dir";;
31507 *)
31508   case "$ac_dir" in
31509   .) ac_abs_builddir=`pwd`;;
31510   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31511   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31512   esac;;
31513 esac
31514 case $ac_abs_builddir in
31515 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31516 *)
31517   case ${ac_top_builddir}. in
31518   .) ac_abs_top_builddir=$ac_abs_builddir;;
31519   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31520   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31521   esac;;
31522 esac
31523 case $ac_abs_builddir in
31524 .) ac_abs_srcdir=$ac_srcdir;;
31525 *)
31526   case $ac_srcdir in
31527   .) ac_abs_srcdir=$ac_abs_builddir;;
31528   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31529   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31530   esac;;
31531 esac
31532 case $ac_abs_builddir in
31533 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31534 *)
31535   case $ac_top_srcdir in
31536   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31537   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31538   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31539   esac;;
31540 esac
31541
31542
31543   case $INSTALL in
31544   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31545   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31546   esac
31547
31548   if test x"$ac_file" != x-; then
31549     { echo "$as_me:$LINENO: creating $ac_file" >&5
31550 echo "$as_me: creating $ac_file" >&6;}
31551     rm -f "$ac_file"
31552   fi
31553   # Let's still pretend it is `configure' which instantiates (i.e., don't
31554   # use $as_me), people would be surprised to read:
31555   #    /* config.h.  Generated by config.status.  */
31556   if test x"$ac_file" = x-; then
31557     configure_input=
31558   else
31559     configure_input="$ac_file.  "
31560   fi
31561   configure_input=$configure_input"Generated from `echo $ac_file_in |
31562                                      sed 's,.*/,,'` by configure."
31563
31564   # First look for the input files in the build tree, otherwise in the
31565   # src tree.
31566   ac_file_inputs=`IFS=:
31567     for f in $ac_file_in; do
31568       case $f in
31569       -) echo $tmp/stdin ;;
31570       [\\/$]*)
31571          # Absolute (can't be DOS-style, as IFS=:)
31572          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31573 echo "$as_me: error: cannot find input file: $f" >&2;}
31574    { (exit 1); exit 1; }; }
31575          echo "$f";;
31576       *) # Relative
31577          if test -f "$f"; then
31578            # Build tree
31579            echo "$f"
31580          elif test -f "$srcdir/$f"; then
31581            # Source tree
31582            echo "$srcdir/$f"
31583          else
31584            # /dev/null tree
31585            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31586 echo "$as_me: error: cannot find input file: $f" >&2;}
31587    { (exit 1); exit 1; }; }
31588          fi;;
31589       esac
31590     done` || { (exit 1); exit 1; }
31591 _ACEOF
31592 cat >>$CONFIG_STATUS <<_ACEOF
31593   sed "$ac_vpsub
31594 $extrasub
31595 _ACEOF
31596 cat >>$CONFIG_STATUS <<\_ACEOF
31597 :t
31598 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31599 s,@configure_input@,$configure_input,;t t
31600 s,@srcdir@,$ac_srcdir,;t t
31601 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31602 s,@top_srcdir@,$ac_top_srcdir,;t t
31603 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31604 s,@builddir@,$ac_builddir,;t t
31605 s,@abs_builddir@,$ac_abs_builddir,;t t
31606 s,@top_builddir@,$ac_top_builddir,;t t
31607 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31608 s,@INSTALL@,$ac_INSTALL,;t t
31609 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31610   rm -f $tmp/stdin
31611   if test x"$ac_file" != x-; then
31612     mv $tmp/out $ac_file
31613   else
31614     cat $tmp/out
31615     rm -f $tmp/out
31616   fi
31617
31618 done
31619 _ACEOF
31620 cat >>$CONFIG_STATUS <<\_ACEOF
31621
31622 #
31623 # CONFIG_HEADER section.
31624 #
31625
31626 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31627 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31628 #
31629 # ac_d sets the value in "#define NAME VALUE" lines.
31630 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31631 ac_dB='[         ].*$,\1#\2'
31632 ac_dC=' '
31633 ac_dD=',;t'
31634 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31635 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31636 ac_uB='$,\1#\2define\3'
31637 ac_uC=' '
31638 ac_uD=',;t'
31639
31640 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31641   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31642   case $ac_file in
31643   - | *:- | *:-:* ) # input from stdin
31644         cat >$tmp/stdin
31645         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31646         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31647   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31648         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31649   * )   ac_file_in=$ac_file.in ;;
31650   esac
31651
31652   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31653 echo "$as_me: creating $ac_file" >&6;}
31654
31655   # First look for the input files in the build tree, otherwise in the
31656   # src tree.
31657   ac_file_inputs=`IFS=:
31658     for f in $ac_file_in; do
31659       case $f in
31660       -) echo $tmp/stdin ;;
31661       [\\/$]*)
31662          # Absolute (can't be DOS-style, as IFS=:)
31663          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31664 echo "$as_me: error: cannot find input file: $f" >&2;}
31665    { (exit 1); exit 1; }; }
31666          # Do quote $f, to prevent DOS paths from being IFS'd.
31667          echo "$f";;
31668       *) # Relative
31669          if test -f "$f"; then
31670            # Build tree
31671            echo "$f"
31672          elif test -f "$srcdir/$f"; then
31673            # Source tree
31674            echo "$srcdir/$f"
31675          else
31676            # /dev/null tree
31677            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31678 echo "$as_me: error: cannot find input file: $f" >&2;}
31679    { (exit 1); exit 1; }; }
31680          fi;;
31681       esac
31682     done` || { (exit 1); exit 1; }
31683   # Remove the trailing spaces.
31684   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31685
31686 _ACEOF
31687
31688 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31689 # `conftest.undefs', that substitutes the proper values into
31690 # config.h.in to produce config.h.  The first handles `#define'
31691 # templates, and the second `#undef' templates.
31692 # And first: Protect against being on the right side of a sed subst in
31693 # config.status.  Protect against being in an unquoted here document
31694 # in config.status.
31695 rm -f conftest.defines conftest.undefs
31696 # Using a here document instead of a string reduces the quoting nightmare.
31697 # Putting comments in sed scripts is not portable.
31698 #
31699 # `end' is used to avoid that the second main sed command (meant for
31700 # 0-ary CPP macros) applies to n-ary macro definitions.
31701 # See the Autoconf documentation for `clear'.
31702 cat >confdef2sed.sed <<\_ACEOF
31703 s/[\\&,]/\\&/g
31704 s,[\\$`],\\&,g
31705 t clear
31706 : clear
31707 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31708 t end
31709 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31710 : end
31711 _ACEOF
31712 # If some macros were called several times there might be several times
31713 # the same #defines, which is useless.  Nevertheless, we may not want to
31714 # sort them, since we want the *last* AC-DEFINE to be honored.
31715 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31716 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31717 rm -f confdef2sed.sed
31718
31719 # This sed command replaces #undef with comments.  This is necessary, for
31720 # example, in the case of _POSIX_SOURCE, which is predefined and required
31721 # on some systems where configure will not decide to define it.
31722 cat >>conftest.undefs <<\_ACEOF
31723 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31724 _ACEOF
31725
31726 # Break up conftest.defines because some shells have a limit on the size
31727 # of here documents, and old seds have small limits too (100 cmds).
31728 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31729 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31730 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31731 echo '  :' >>$CONFIG_STATUS
31732 rm -f conftest.tail
31733 while grep . conftest.defines >/dev/null
31734 do
31735   # Write a limited-size here document to $tmp/defines.sed.
31736   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31737   # Speed up: don't consider the non `#define' lines.
31738   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31739   # Work around the forget-to-reset-the-flag bug.
31740   echo 't clr' >>$CONFIG_STATUS
31741   echo ': clr' >>$CONFIG_STATUS
31742   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31743   echo 'CEOF
31744   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31745   rm -f $tmp/in
31746   mv $tmp/out $tmp/in
31747 ' >>$CONFIG_STATUS
31748   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31749   rm -f conftest.defines
31750   mv conftest.tail conftest.defines
31751 done
31752 rm -f conftest.defines
31753 echo '  fi # grep' >>$CONFIG_STATUS
31754 echo >>$CONFIG_STATUS
31755
31756 # Break up conftest.undefs because some shells have a limit on the size
31757 # of here documents, and old seds have small limits too (100 cmds).
31758 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31759 rm -f conftest.tail
31760 while grep . conftest.undefs >/dev/null
31761 do
31762   # Write a limited-size here document to $tmp/undefs.sed.
31763   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31764   # Speed up: don't consider the non `#undef'
31765   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31766   # Work around the forget-to-reset-the-flag bug.
31767   echo 't clr' >>$CONFIG_STATUS
31768   echo ': clr' >>$CONFIG_STATUS
31769   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31770   echo 'CEOF
31771   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31772   rm -f $tmp/in
31773   mv $tmp/out $tmp/in
31774 ' >>$CONFIG_STATUS
31775   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31776   rm -f conftest.undefs
31777   mv conftest.tail conftest.undefs
31778 done
31779 rm -f conftest.undefs
31780
31781 cat >>$CONFIG_STATUS <<\_ACEOF
31782   # Let's still pretend it is `configure' which instantiates (i.e., don't
31783   # use $as_me), people would be surprised to read:
31784   #    /* config.h.  Generated by config.status.  */
31785   if test x"$ac_file" = x-; then
31786     echo "/* Generated by configure.  */" >$tmp/config.h
31787   else
31788     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31789   fi
31790   cat $tmp/in >>$tmp/config.h
31791   rm -f $tmp/in
31792   if test x"$ac_file" != x-; then
31793     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31794       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31795 echo "$as_me: $ac_file is unchanged" >&6;}
31796     else
31797       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31798 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31799          X"$ac_file" : 'X\(//\)[^/]' \| \
31800          X"$ac_file" : 'X\(//\)$' \| \
31801          X"$ac_file" : 'X\(/\)' \| \
31802          .     : '\(.\)' 2>/dev/null ||
31803 echo X"$ac_file" |
31804     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31805           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31806           /^X\(\/\/\)$/{ s//\1/; q; }
31807           /^X\(\/\).*/{ s//\1/; q; }
31808           s/.*/./; q'`
31809       { if $as_mkdir_p; then
31810     mkdir -p "$ac_dir"
31811   else
31812     as_dir="$ac_dir"
31813     as_dirs=
31814     while test ! -d "$as_dir"; do
31815       as_dirs="$as_dir $as_dirs"
31816       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31817 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31818          X"$as_dir" : 'X\(//\)[^/]' \| \
31819          X"$as_dir" : 'X\(//\)$' \| \
31820          X"$as_dir" : 'X\(/\)' \| \
31821          .     : '\(.\)' 2>/dev/null ||
31822 echo X"$as_dir" |
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     done
31829     test ! -n "$as_dirs" || mkdir $as_dirs
31830   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31831 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31832    { (exit 1); exit 1; }; }; }
31833
31834       rm -f $ac_file
31835       mv $tmp/config.h $ac_file
31836     fi
31837   else
31838     cat $tmp/config.h
31839     rm -f $tmp/config.h
31840   fi
31841 done
31842 _ACEOF
31843 cat >>$CONFIG_STATUS <<\_ACEOF
31844
31845 #
31846 # CONFIG_COMMANDS section.
31847 #
31848 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31849   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31850   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31851   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31852 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31853          X"$ac_dest" : 'X\(//\)[^/]' \| \
31854          X"$ac_dest" : 'X\(//\)$' \| \
31855          X"$ac_dest" : 'X\(/\)' \| \
31856          .     : '\(.\)' 2>/dev/null ||
31857 echo X"$ac_dest" |
31858     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31859           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31860           /^X\(\/\/\)$/{ s//\1/; q; }
31861           /^X\(\/\).*/{ s//\1/; q; }
31862           s/.*/./; q'`
31863   { if $as_mkdir_p; then
31864     mkdir -p "$ac_dir"
31865   else
31866     as_dir="$ac_dir"
31867     as_dirs=
31868     while test ! -d "$as_dir"; do
31869       as_dirs="$as_dir $as_dirs"
31870       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31871 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31872          X"$as_dir" : 'X\(//\)[^/]' \| \
31873          X"$as_dir" : 'X\(//\)$' \| \
31874          X"$as_dir" : 'X\(/\)' \| \
31875          .     : '\(.\)' 2>/dev/null ||
31876 echo X"$as_dir" |
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     done
31883     test ! -n "$as_dirs" || mkdir $as_dirs
31884   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31885 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31886    { (exit 1); exit 1; }; }; }
31887
31888   ac_builddir=.
31889
31890 if test "$ac_dir" != .; then
31891   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31892   # A "../" for each directory in $ac_dir_suffix.
31893   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31894 else
31895   ac_dir_suffix= ac_top_builddir=
31896 fi
31897
31898 case $srcdir in
31899   .)  # No --srcdir option.  We are building in place.
31900     ac_srcdir=.
31901     if test -z "$ac_top_builddir"; then
31902        ac_top_srcdir=.
31903     else
31904        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31905     fi ;;
31906   [\\/]* | ?:[\\/]* )  # Absolute path.
31907     ac_srcdir=$srcdir$ac_dir_suffix;
31908     ac_top_srcdir=$srcdir ;;
31909   *) # Relative path.
31910     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31911     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31912 esac
31913
31914 # Do not use `cd foo && pwd` to compute absolute paths, because
31915 # the directories may not exist.
31916 case `pwd` in
31917 .) ac_abs_builddir="$ac_dir";;
31918 *)
31919   case "$ac_dir" in
31920   .) ac_abs_builddir=`pwd`;;
31921   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31922   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31923   esac;;
31924 esac
31925 case $ac_abs_builddir in
31926 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31927 *)
31928   case ${ac_top_builddir}. in
31929   .) ac_abs_top_builddir=$ac_abs_builddir;;
31930   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31931   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31932   esac;;
31933 esac
31934 case $ac_abs_builddir in
31935 .) ac_abs_srcdir=$ac_srcdir;;
31936 *)
31937   case $ac_srcdir in
31938   .) ac_abs_srcdir=$ac_abs_builddir;;
31939   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31940   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31941   esac;;
31942 esac
31943 case $ac_abs_builddir in
31944 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31945 *)
31946   case $ac_top_srcdir in
31947   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31948   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31949   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31950   esac;;
31951 esac
31952
31953
31954   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31955 echo "$as_me: executing $ac_dest commands" >&6;}
31956   case $ac_dest in
31957     default-1 )
31958     for ac_file in $CONFIG_FILES; do
31959       # Support "outfile[:infile[:infile...]]"
31960       case "$ac_file" in
31961         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31962       esac
31963       # PO directories have a Makefile.in generated from Makefile.in.in.
31964       case "$ac_file" in */Makefile.in)
31965         # Adjust a relative srcdir.
31966         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31967         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31968         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31969         # In autoconf-2.13 it is called $ac_given_srcdir.
31970         # In autoconf-2.50 it is called $srcdir.
31971         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31972         case "$ac_given_srcdir" in
31973           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31974           /*) top_srcdir="$ac_given_srcdir" ;;
31975           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31976         esac
31977         # Treat a directory as a PO directory if and only if it has a
31978         # POTFILES.in file. This allows packages to have multiple PO
31979         # directories under different names or in different locations.
31980         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31981           rm -f "$ac_dir/POTFILES"
31982           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31983           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31984           POMAKEFILEDEPS="POTFILES.in"
31985           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31986           # on $ac_dir but don't depend on user-specified configuration
31987           # parameters.
31988           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31989             # The LINGUAS file contains the set of available languages.
31990             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31991               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31992             fi
31993             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31994             # Hide the ALL_LINGUAS assigment from automake.
31995             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31996             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31997           else
31998             # The set of available languages was given in configure.in.
31999             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32000           fi
32001           # Compute POFILES
32002           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32003           # Compute UPDATEPOFILES
32004           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32005           # Compute DUMMYPOFILES
32006           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32007           # Compute GMOFILES
32008           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32009           case "$ac_given_srcdir" in
32010             .) srcdirpre= ;;
32011             *) srcdirpre='$(srcdir)/' ;;
32012           esac
32013           POFILES=
32014           UPDATEPOFILES=
32015           DUMMYPOFILES=
32016           GMOFILES=
32017           for lang in $ALL_LINGUAS; do
32018             POFILES="$POFILES $srcdirpre$lang.po"
32019             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32020             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32021             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32022           done
32023           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32024           # environment variable.
32025           INST_LINGUAS=
32026           if test -n "$ALL_LINGUAS"; then
32027             for presentlang in $ALL_LINGUAS; do
32028               useit=no
32029               if test "%UNSET%" != "$LINGUAS"; then
32030                 desiredlanguages="$LINGUAS"
32031               else
32032                 desiredlanguages="$ALL_LINGUAS"
32033               fi
32034               for desiredlang in $desiredlanguages; do
32035                 # Use the presentlang catalog if desiredlang is
32036                 #   a. equal to presentlang, or
32037                 #   b. a variant of presentlang (because in this case,
32038                 #      presentlang can be used as a fallback for messages
32039                 #      which are not translated in the desiredlang catalog).
32040                 case "$desiredlang" in
32041                   "$presentlang"*) useit=yes;;
32042                 esac
32043               done
32044               if test $useit = yes; then
32045                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32046               fi
32047             done
32048           fi
32049           CATALOGS=
32050           if test -n "$INST_LINGUAS"; then
32051             for lang in $INST_LINGUAS; do
32052               CATALOGS="$CATALOGS $lang.gmo"
32053             done
32054           fi
32055           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32056           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"
32057           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32058             if test -f "$f"; then
32059               case "$f" in
32060                 *.orig | *.bak | *~) ;;
32061                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32062               esac
32063             fi
32064           done
32065         fi
32066         ;;
32067       esac
32068     done ;;
32069     default )
32070  ;;
32071   esac
32072 done
32073 _ACEOF
32074
32075 cat >>$CONFIG_STATUS <<\_ACEOF
32076
32077 { (exit 0); exit 0; }
32078 _ACEOF
32079 chmod +x $CONFIG_STATUS
32080 ac_clean_files=$ac_clean_files_save
32081
32082
32083 # configure is writing to config.log, and then calls config.status.
32084 # config.status does its own redirection, appending to config.log.
32085 # Unfortunately, on DOS this fails, as config.log is still kept open
32086 # by configure, so config.status won't be able to write to it; its
32087 # output is simply discarded.  So we exec the FD to /dev/null,
32088 # effectively closing config.log, so it can be properly (re)opened and
32089 # appended to by config.status.  When coming back to configure, we
32090 # need to make the FD available again.
32091 if test "$no_create" != yes; then
32092   ac_cs_success=:
32093   ac_config_status_args=
32094   test "$silent" = yes &&
32095     ac_config_status_args="$ac_config_status_args --quiet"
32096   exec 5>/dev/null
32097   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32098   exec 5>>config.log
32099   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32100   # would make configure fail if this is the last instruction.
32101   $ac_cs_success || { (exit 1); exit 1; }
32102 fi
32103
32104
32105 if test "${support_bat}" = "yes" ; then
32106   cd src/qt-console
32107   chmod 755 install_conf_file build-depkgs-qt-console
32108   echo "Creating bat Makefile"
32109   qmake
32110   cd ${BUILD_DIR}
32111 fi
32112
32113 echo "Doing make of dependencies"
32114 ${MAKE:-make} depend
32115
32116 cd scripts
32117 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32118 chmod 755 dvd-handler dvd-simulator
32119 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32120 cd ..
32121
32122 c=src/cats
32123
32124 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32125 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32126
32127 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
32128 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
32129
32130 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32131 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32132
32133 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
32134 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
32135
32136 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32137 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32138
32139 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32140 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32141
32142 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32143 chmod 755 $c/sqlite
32144 chmod 755 $c/mysql
32145
32146 chmod 755 src/win32/build-depkgs-mingw32
32147
32148
32149
32150 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32151    largefile_support="yes"
32152 fi
32153
32154 #
32155 # A whole lot of hand springs to get the compiler version.
32156 #  This is because gcc changed the output in version 3.0
32157 #
32158 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32159 if test "x${CCVERSION}" = "x" ; then
32160   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32161 fi
32162 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32163 if test x"${CXXVERSION}" = x ; then
32164   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32165 fi
32166
32167 if test "x${subsysdir}" = "x${sbindir}" ; then
32168    echo " "
32169    echo " "
32170    echo "You have set --sbindir and --with-subsys-dir"
32171    echo "  both equal to: ${subsysdir} "
32172    echo "  This is not permitted. Please reconfigure."
32173    echo " "
32174    echo "Aborting configuration ..."
32175    echo " "
32176    echo " "
32177    exit 1
32178 fi
32179
32180 if test "x${db_type}" = "xInternal" ; then
32181    echo " "
32182    echo " "
32183    echo "You have not specified either --enable-client-only or one of the"
32184    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
32185    echo "  This is not permitted. Please reconfigure."
32186    echo " "
32187    echo "Aborting the configuration ..."
32188    echo " "
32189    echo " "
32190    exit 1
32191 fi
32192
32193 echo "
32194 Configuration on `date`:
32195
32196   Host:                       $host -- ${DISTNAME} ${DISTVER}
32197   Bacula version:             ${VERSION} (${DATE})
32198   Source code location:       ${srcdir}
32199   Install binaries:           ${sbindir}
32200   Install config files:       ${sysconfdir}
32201   Scripts directory:          ${scriptdir}
32202   Working directory:          ${working_dir}
32203   PID directory:              ${piddir}
32204   Subsys directory:           ${subsysdir}
32205   Man directory:              ${mandir}
32206   Data directory:             ${datadir}
32207   C Compiler:                 ${CC} ${CCVERSION}
32208   C++ Compiler:               ${CXX} ${CXXVERSION}
32209   Compiler flags:             ${WCFLAGS} ${CFLAGS}
32210   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
32211   Libraries:                  ${LIBS}
32212   Statically Linked Tools:    ${support_static_tools}
32213   Statically Linked FD:       ${support_static_fd}
32214   Statically Linked SD:       ${support_static_sd}
32215   Statically Linked DIR:      ${support_static_dir}
32216   Statically Linked CONS:     ${support_static_cons}
32217   Database type:              ${db_type}
32218   Database lib:               ${DB_LIBS}
32219   Database name:              ${db_name}
32220   Database user:              ${db_user}
32221
32222   Job Output Email:           ${job_email}
32223   Traceback Email:            ${dump_email}
32224   SMTP Host Address:          ${smtp_host}
32225
32226   Director Port:              ${dir_port}
32227   File daemon Port:           ${fd_port}
32228   Storage daemon Port:        ${sd_port}
32229
32230   Director User:              ${dir_user}
32231   Director Group:             ${dir_group}
32232   Storage Daemon User:        ${sd_user}
32233   Storage DaemonGroup:        ${sd_group}
32234   File Daemon User:           ${fd_user}
32235   File Daemon Group:          ${fd_group}
32236
32237   SQL binaries Directory      ${SQL_BINDIR}
32238
32239   Large file support:         $largefile_support
32240   Bacula conio support:       ${got_conio} ${CONS_LIBS}
32241   readline support:           ${got_readline} ${PRTREADLINE_SRC}
32242   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
32243   TLS support:                ${support_tls}
32244   Encryption support:         ${support_crypto}
32245   ZLIB support:               ${have_zlib}
32246   enable-smartalloc:          ${support_smartalloc}
32247   bat support:                ${support_bat} ${QWT_LDFLAGS}
32248   enable-gnome:               ${support_gnome} ${gnome_version}
32249   enable-bwx-console:         ${support_wx_console} ${wx_version}
32250   enable-tray-monitor:        ${support_tray_monitor}
32251   client-only:                ${build_client_only}
32252   build-dird:                 ${build_dird}
32253   build-stored:               ${build_stored}
32254   ACL support:                ${have_acl}
32255   Python support:             ${support_python} ${PYTHON_LIBS}
32256   Batch insert enabled:       ${support_batch_insert}
32257
32258   " > config.out
32259
32260 cat config.out