]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
kes Begin work on new GUI console.
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TOP_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX DD MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO DVDRWFORMAT PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GLIBC2 ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS DIRD_DIR DIR_TOOLS STORED_DIR CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS WRAPLIBS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures this package to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861
862   cat <<\_ACEOF
863
864 Optional Features:
865   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
866   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
867   --disable-nls           do not use Native Language Support
868   --disable-rpath         do not hardcode runtime library paths
869   --enable-gnome          enable build of gnome-console GUI disabled
870   --enable-wx-console     enable build of wxWidgets console disabled
871   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
872   --enable-smartalloc     enable smartalloc debugging support disabled
873   --enable-static-tools   enable static tape tools disabled
874   --enable-static-fd      enable static File daemon disabled
875   --enable-static-sd      enable static Storage daemon disabled
876   --enable-static-dir     enable static Director disabled
877   --enable-static-cons    enable static Console disabled
878   --enable-client-only    build client (File daemon) only disabled
879   --enable-build-dird     enable building of dird (Director) enabled
880   --enable-build-stored   enable building of stored (Storage daemon) enabled
881   --disable-conio            disable conio support enabled
882
883   --disable-readline      disable readline support disable
884
885   --disable-largefile     omit support for large files
886
887 Optional Packages:
888   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
889   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
892   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
893   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
894   --without-libintl-prefix     don't search for libintl in includedir and libdir
895   --with-included-gettext use the GNU gettext library included here
896  --with-readline=DIR             specify readline library directory
897
898   --with-python=DIR       Include Python support.  DIR is the Python base
899                           install directory, default is to search through
900                           a number of common places for the Python files.
901   --with-tcp-wrappers=DIR        enable tcpwrappers support
902   --with-openssl[=DIR]
903                           Include OpenSSL support. DIR is the OpenSSL base
904   --with-working-dir=PATH        specify path of Bacula working directory
905   --with-scriptdir=PATH    specify path of Bacula scripts directory
906   --with-dump-email=EMAIL        dump email address
907   --with-job-email=EMAIL         job output email address
908   --with-smtp-host=HOST          SMTP mail host address
909   --with-pid-dir=PATH            specify location of Bacula pid files
910   --with-subsys-dir=PATH         specify location of Bacula subsys file
911   --with-baseport=PORT           specify base port address for daemons
912   --with-dir-password=PASSWORD   specify Director's password
913   --with-fd-password=PASSWORD    specify Client's password
914   --with-sd-password=PASSWORD    specify Storage daemon's password
915   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
916   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
917   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
918   --with-dir-user=USER           specify user for Director daemon
919   --with-dir-group=GROUP                 specify group for Director daemon
920   --with-sd-user=USER            specify user for Storage daemon
921   --with-sd-group=GROUP          specify group for Storage daemon
922   --with-fd-user=USER            specify user for File daemon
923   --with-fd-group=GROUP          specify group for File daemon
924   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
925   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
926                           base install directory, defaults to /usr/local/pgsql
927
928   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
929                           install directory, default is to search through
930                           a number of common places for the MySQL files.
931
932   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
933                           install directory, default is to search through
934                           a number of common places for the MySQL files.
935
936   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
937                           install directory, default is to search through
938                           a number of common places for the SQLite3 files.
939
940   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
941                           install directory, default is to search through
942                           a number of common places for the SQLite files.
943   --with-x                use the X Window System
944
945 Some influential environment variables:
946   CC          C compiler command
947   CFLAGS      C compiler flags
948   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
949               nonstandard directory <lib dir>
950   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
951               headers in a nonstandard directory <include dir>
952   CXX         C++ compiler command
953   CXXFLAGS    C++ compiler flags
954   CPP         C preprocessor
955   WXCONFIG    wx-config command. On some systems, you must set it to
956               wx-config-2.6 to use wxWidgets 2.6.
957   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
958
959 Use these variables to override the choices made by `configure' or to help
960 it to find libraries and programs with nonstandard names/locations.
961
962 _ACEOF
963 fi
964
965 if test "$ac_init_help" = "recursive"; then
966   # If there are subdirs, report their specific --help.
967   ac_popdir=`pwd`
968   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
969     test -d $ac_dir || continue
970     ac_builddir=.
971
972 if test "$ac_dir" != .; then
973   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
974   # A "../" for each directory in $ac_dir_suffix.
975   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
976 else
977   ac_dir_suffix= ac_top_builddir=
978 fi
979
980 case $srcdir in
981   .)  # No --srcdir option.  We are building in place.
982     ac_srcdir=.
983     if test -z "$ac_top_builddir"; then
984        ac_top_srcdir=.
985     else
986        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
987     fi ;;
988   [\\/]* | ?:[\\/]* )  # Absolute path.
989     ac_srcdir=$srcdir$ac_dir_suffix;
990     ac_top_srcdir=$srcdir ;;
991   *) # Relative path.
992     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
993     ac_top_srcdir=$ac_top_builddir$srcdir ;;
994 esac
995
996 # Do not use `cd foo && pwd` to compute absolute paths, because
997 # the directories may not exist.
998 case `pwd` in
999 .) ac_abs_builddir="$ac_dir";;
1000 *)
1001   case "$ac_dir" in
1002   .) ac_abs_builddir=`pwd`;;
1003   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1004   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1005   esac;;
1006 esac
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 *)
1010   case ${ac_top_builddir}. in
1011   .) ac_abs_top_builddir=$ac_abs_builddir;;
1012   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1013   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1014   esac;;
1015 esac
1016 case $ac_abs_builddir in
1017 .) ac_abs_srcdir=$ac_srcdir;;
1018 *)
1019   case $ac_srcdir in
1020   .) ac_abs_srcdir=$ac_abs_builddir;;
1021   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1022   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1023   esac;;
1024 esac
1025 case $ac_abs_builddir in
1026 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 *)
1028   case $ac_top_srcdir in
1029   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1030   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1031   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1032   esac;;
1033 esac
1034
1035     cd $ac_dir
1036     # Check for guested configure; otherwise get Cygnus style configure.
1037     if test -f $ac_srcdir/configure.gnu; then
1038       echo
1039       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1040     elif test -f $ac_srcdir/configure; then
1041       echo
1042       $SHELL $ac_srcdir/configure  --help=recursive
1043     elif test -f $ac_srcdir/configure.ac ||
1044            test -f $ac_srcdir/configure.in; then
1045       echo
1046       $ac_configure --help
1047     else
1048       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1049     fi
1050     cd $ac_popdir
1051   done
1052 fi
1053
1054 test -n "$ac_init_help" && exit 0
1055 if $ac_init_version; then
1056   cat <<\_ACEOF
1057
1058 Copyright (C) 2003 Free Software Foundation, Inc.
1059 This configure script is free software; the Free Software Foundation
1060 gives unlimited permission to copy, distribute and modify it.
1061 _ACEOF
1062   exit 0
1063 fi
1064 exec 5>config.log
1065 cat >&5 <<_ACEOF
1066 This file contains any messages produced by compilers while
1067 running configure, to aid debugging if configure makes a mistake.
1068
1069 It was created by $as_me, which was
1070 generated by GNU Autoconf 2.59.  Invocation command line was
1071
1072   $ $0 $@
1073
1074 _ACEOF
1075 {
1076 cat <<_ASUNAME
1077 ## --------- ##
1078 ## Platform. ##
1079 ## --------- ##
1080
1081 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1082 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1083 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1084 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1085 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1086
1087 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1088 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1089
1090 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1091 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1092 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1093 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1094 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1095 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1096 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1097
1098 _ASUNAME
1099
1100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1101 for as_dir in $PATH
1102 do
1103   IFS=$as_save_IFS
1104   test -z "$as_dir" && as_dir=.
1105   echo "PATH: $as_dir"
1106 done
1107
1108 } >&5
1109
1110 cat >&5 <<_ACEOF
1111
1112
1113 ## ----------- ##
1114 ## Core tests. ##
1115 ## ----------- ##
1116
1117 _ACEOF
1118
1119
1120 # Keep a trace of the command line.
1121 # Strip out --no-create and --no-recursion so they do not pile up.
1122 # Strip out --silent because we don't want to record it for future runs.
1123 # Also quote any args containing shell meta-characters.
1124 # Make two passes to allow for proper duplicate-argument suppression.
1125 ac_configure_args=
1126 ac_configure_args0=
1127 ac_configure_args1=
1128 ac_sep=
1129 ac_must_keep_next=false
1130 for ac_pass in 1 2
1131 do
1132   for ac_arg
1133   do
1134     case $ac_arg in
1135     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1136     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137     | -silent | --silent | --silen | --sile | --sil)
1138       continue ;;
1139     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1140       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1141     esac
1142     case $ac_pass in
1143     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1144     2)
1145       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1146       if test $ac_must_keep_next = true; then
1147         ac_must_keep_next=false # Got value, back to normal.
1148       else
1149         case $ac_arg in
1150           *=* | --config-cache | -C | -disable-* | --disable-* \
1151           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1152           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1153           | -with-* | --with-* | -without-* | --without-* | --x)
1154             case "$ac_configure_args0 " in
1155               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1156             esac
1157             ;;
1158           -* ) ac_must_keep_next=true ;;
1159         esac
1160       fi
1161       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1162       # Get rid of the leading space.
1163       ac_sep=" "
1164       ;;
1165     esac
1166   done
1167 done
1168 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1169 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1170
1171 # When interrupted or exit'd, cleanup temporary files, and complete
1172 # config.log.  We remove comments because anyway the quotes in there
1173 # would cause problems or look ugly.
1174 # WARNING: Be sure not to use single quotes in there, as some shells,
1175 # such as our DU 5.0 friend, will then `close' the trap.
1176 trap 'exit_status=$?
1177   # Save into config.log some information that might help in debugging.
1178   {
1179     echo
1180
1181     cat <<\_ASBOX
1182 ## ---------------- ##
1183 ## Cache variables. ##
1184 ## ---------------- ##
1185 _ASBOX
1186     echo
1187     # The following way of writing the cache mishandles newlines in values,
1188 {
1189   (set) 2>&1 |
1190     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1191     *ac_space=\ *)
1192       sed -n \
1193         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1194           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1195       ;;
1196     *)
1197       sed -n \
1198         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1199       ;;
1200     esac;
1201 }
1202     echo
1203
1204     cat <<\_ASBOX
1205 ## ----------------- ##
1206 ## Output variables. ##
1207 ## ----------------- ##
1208 _ASBOX
1209     echo
1210     for ac_var in $ac_subst_vars
1211     do
1212       eval ac_val=$`echo $ac_var`
1213       echo "$ac_var='"'"'$ac_val'"'"'"
1214     done | sort
1215     echo
1216
1217     if test -n "$ac_subst_files"; then
1218       cat <<\_ASBOX
1219 ## ------------- ##
1220 ## Output files. ##
1221 ## ------------- ##
1222 _ASBOX
1223       echo
1224       for ac_var in $ac_subst_files
1225       do
1226         eval ac_val=$`echo $ac_var`
1227         echo "$ac_var='"'"'$ac_val'"'"'"
1228       done | sort
1229       echo
1230     fi
1231
1232     if test -s confdefs.h; then
1233       cat <<\_ASBOX
1234 ## ----------- ##
1235 ## confdefs.h. ##
1236 ## ----------- ##
1237 _ASBOX
1238       echo
1239       sed "/^$/d" confdefs.h | sort
1240       echo
1241     fi
1242     test "$ac_signal" != 0 &&
1243       echo "$as_me: caught signal $ac_signal"
1244     echo "$as_me: exit $exit_status"
1245   } >&5
1246   rm -f core *.core &&
1247   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1248     exit $exit_status
1249      ' 0
1250 for ac_signal in 1 2 13 15; do
1251   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1252 done
1253 ac_signal=0
1254
1255 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1256 rm -rf conftest* confdefs.h
1257 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1258 echo >confdefs.h
1259
1260 # Predefined preprocessor variables.
1261
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_NAME "$PACKAGE_NAME"
1264 _ACEOF
1265
1266
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1269 _ACEOF
1270
1271
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1274 _ACEOF
1275
1276
1277 cat >>confdefs.h <<_ACEOF
1278 #define PACKAGE_STRING "$PACKAGE_STRING"
1279 _ACEOF
1280
1281
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1284 _ACEOF
1285
1286
1287 # Let the site file select an alternate cache file if it wants to.
1288 # Prefer explicitly selected file to automatically selected ones.
1289 if test -z "$CONFIG_SITE"; then
1290   if test "x$prefix" != xNONE; then
1291     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1292   else
1293     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1294   fi
1295 fi
1296 for ac_site_file in $CONFIG_SITE; do
1297   if test -r "$ac_site_file"; then
1298     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1299 echo "$as_me: loading site script $ac_site_file" >&6;}
1300     sed 's/^/| /' "$ac_site_file" >&5
1301     . "$ac_site_file"
1302   fi
1303 done
1304
1305 if test -r "$cache_file"; then
1306   # Some versions of bash will fail to source /dev/null (special
1307   # files actually), so we avoid doing that.
1308   if test -f "$cache_file"; then
1309     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1310 echo "$as_me: loading cache $cache_file" >&6;}
1311     case $cache_file in
1312       [\\/]* | ?:[\\/]* ) . $cache_file;;
1313       *)                      . ./$cache_file;;
1314     esac
1315   fi
1316 else
1317   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1318 echo "$as_me: creating cache $cache_file" >&6;}
1319   >$cache_file
1320 fi
1321
1322 # Check that the precious variables saved in the cache have kept the same
1323 # value.
1324 ac_cache_corrupted=false
1325 for ac_var in `(set) 2>&1 |
1326                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1327   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1328   eval ac_new_set=\$ac_env_${ac_var}_set
1329   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1330   eval ac_new_val="\$ac_env_${ac_var}_value"
1331   case $ac_old_set,$ac_new_set in
1332     set,)
1333       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1335       ac_cache_corrupted=: ;;
1336     ,set)
1337       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1338 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1339       ac_cache_corrupted=: ;;
1340     ,);;
1341     *)
1342       if test "x$ac_old_val" != "x$ac_new_val"; then
1343         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1344 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1345         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1346 echo "$as_me:   former value:  $ac_old_val" >&2;}
1347         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1348 echo "$as_me:   current value: $ac_new_val" >&2;}
1349         ac_cache_corrupted=:
1350       fi;;
1351   esac
1352   # Pass precious variables to config.status.
1353   if test "$ac_new_set" = set; then
1354     case $ac_new_val in
1355     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1356       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1357     *) ac_arg=$ac_var=$ac_new_val ;;
1358     esac
1359     case " $ac_configure_args " in
1360       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1361       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1362     esac
1363   fi
1364 done
1365 if $ac_cache_corrupted; then
1366   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1367 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1368   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1369 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1370    { (exit 1); exit 1; }; }
1371 fi
1372
1373 ac_ext=c
1374 ac_cpp='$CPP $CPPFLAGS'
1375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397 BUILD_DIR=`pwd`
1398 cd ..
1399 TOP_DIR=`pwd`
1400 cd ${BUILD_DIR}
1401
1402
1403 ac_aux_dir=
1404 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1405   if test -f $ac_dir/install-sh; then
1406     ac_aux_dir=$ac_dir
1407     ac_install_sh="$ac_aux_dir/install-sh -c"
1408     break
1409   elif test -f $ac_dir/install.sh; then
1410     ac_aux_dir=$ac_dir
1411     ac_install_sh="$ac_aux_dir/install.sh -c"
1412     break
1413   elif test -f $ac_dir/shtool; then
1414     ac_aux_dir=$ac_dir
1415     ac_install_sh="$ac_aux_dir/shtool install -c"
1416     break
1417   fi
1418 done
1419 if test -z "$ac_aux_dir"; then
1420   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1422    { (exit 1); exit 1; }; }
1423 fi
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1427
1428           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1429
1430
1431
1432
1433
1434 for ac_prog in true
1435 do
1436   # Extract the first word of "$ac_prog", so it can be a program name with args.
1437 set dummy $ac_prog; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1441   echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443   case $TRUEPRG in
1444   [\\/]* | ?:[\\/]*)
1445   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1446   ;;
1447   *)
1448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1450 do
1451   IFS=$as_save_IFS
1452   test -z "$as_dir" && as_dir=.
1453   for ac_exec_ext in '' $ac_executable_extensions; do
1454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457     break 2
1458   fi
1459 done
1460 done
1461
1462   ;;
1463 esac
1464 fi
1465 TRUEPRG=$ac_cv_path_TRUEPRG
1466
1467 if test -n "$TRUEPRG"; then
1468   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1469 echo "${ECHO_T}$TRUEPRG" >&6
1470 else
1471   echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1473 fi
1474
1475   test -n "$TRUEPRG" && break
1476 done
1477 test -n "$TRUEPRG" || TRUEPRG=":"
1478
1479 for ac_prog in false
1480 do
1481   # Extract the first word of "$ac_prog", so it can be a program name with args.
1482 set dummy $ac_prog; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1486   echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488   case $FALSEPRG in
1489   [\\/]* | ?:[\\/]*)
1490   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1491   ;;
1492   *)
1493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 for as_dir in $PATH
1495 do
1496   IFS=$as_save_IFS
1497   test -z "$as_dir" && as_dir=.
1498   for ac_exec_ext in '' $ac_executable_extensions; do
1499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502     break 2
1503   fi
1504 done
1505 done
1506
1507   ;;
1508 esac
1509 fi
1510 FALSEPRG=$ac_cv_path_FALSEPRG
1511
1512 if test -n "$FALSEPRG"; then
1513   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1514 echo "${ECHO_T}$FALSEPRG" >&6
1515 else
1516   echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1518 fi
1519
1520   test -n "$FALSEPRG" && break
1521 done
1522 test -n "$FALSEPRG" || FALSEPRG=":"
1523
1524
1525 #AC_CANONICAL_HOST
1526
1527 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1529 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1530 echo "configuring for bacula $VERSION ($DATE)"
1531
1532
1533
1534 ac_ext=c
1535 ac_cpp='$CPP $CPPFLAGS'
1536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1539 if test -n "$ac_tool_prefix"; then
1540   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_CC+set}" = set; then
1545   echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547   if test -n "$CC"; then
1548   ac_cv_prog_CC="$CC" # Let the user override the test.
1549 else
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1552 do
1553   IFS=$as_save_IFS
1554   test -z "$as_dir" && as_dir=.
1555   for ac_exec_ext in '' $ac_executable_extensions; do
1556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559     break 2
1560   fi
1561 done
1562 done
1563
1564 fi
1565 fi
1566 CC=$ac_cv_prog_CC
1567 if test -n "$CC"; then
1568   echo "$as_me:$LINENO: result: $CC" >&5
1569 echo "${ECHO_T}$CC" >&6
1570 else
1571   echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1573 fi
1574
1575 fi
1576 if test -z "$ac_cv_prog_CC"; then
1577   ac_ct_CC=$CC
1578   # Extract the first word of "gcc", so it can be a program name with args.
1579 set dummy gcc; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1583   echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585   if test -n "$ac_ct_CC"; then
1586   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1587 else
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 for as_dir in $PATH
1590 do
1591   IFS=$as_save_IFS
1592   test -z "$as_dir" && as_dir=.
1593   for ac_exec_ext in '' $ac_executable_extensions; do
1594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595     ac_cv_prog_ac_ct_CC="gcc"
1596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1597     break 2
1598   fi
1599 done
1600 done
1601
1602 fi
1603 fi
1604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1605 if test -n "$ac_ct_CC"; then
1606   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1607 echo "${ECHO_T}$ac_ct_CC" >&6
1608 else
1609   echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1611 fi
1612
1613   CC=$ac_ct_CC
1614 else
1615   CC="$ac_cv_prog_CC"
1616 fi
1617
1618 if test -z "$CC"; then
1619   if test -n "$ac_tool_prefix"; then
1620   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1621 set dummy ${ac_tool_prefix}cc; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   if test -n "$CC"; then
1628   ac_cv_prog_CC="$CC" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1632 do
1633   IFS=$as_save_IFS
1634   test -z "$as_dir" && as_dir=.
1635   for ac_exec_ext in '' $ac_executable_extensions; do
1636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637     ac_cv_prog_CC="${ac_tool_prefix}cc"
1638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639     break 2
1640   fi
1641 done
1642 done
1643
1644 fi
1645 fi
1646 CC=$ac_cv_prog_CC
1647 if test -n "$CC"; then
1648   echo "$as_me:$LINENO: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1650 else
1651   echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1653 fi
1654
1655 fi
1656 if test -z "$ac_cv_prog_CC"; then
1657   ac_ct_CC=$CC
1658   # Extract the first word of "cc", so it can be a program name with args.
1659 set dummy cc; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1663   echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665   if test -n "$ac_ct_CC"; then
1666   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1667 else
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1670 do
1671   IFS=$as_save_IFS
1672   test -z "$as_dir" && as_dir=.
1673   for ac_exec_ext in '' $ac_executable_extensions; do
1674   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675     ac_cv_prog_ac_ct_CC="cc"
1676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677     break 2
1678   fi
1679 done
1680 done
1681
1682 fi
1683 fi
1684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1685 if test -n "$ac_ct_CC"; then
1686   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1687 echo "${ECHO_T}$ac_ct_CC" >&6
1688 else
1689   echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1691 fi
1692
1693   CC=$ac_ct_CC
1694 else
1695   CC="$ac_cv_prog_CC"
1696 fi
1697
1698 fi
1699 if test -z "$CC"; then
1700   # Extract the first word of "cc", so it can be a program name with args.
1701 set dummy cc; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_CC+set}" = set; then
1705   echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707   if test -n "$CC"; then
1708   ac_cv_prog_CC="$CC" # Let the user override the test.
1709 else
1710   ac_prog_rejected=no
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   for ac_exec_ext in '' $ac_executable_extensions; do
1717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1719        ac_prog_rejected=yes
1720        continue
1721      fi
1722     ac_cv_prog_CC="cc"
1723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724     break 2
1725   fi
1726 done
1727 done
1728
1729 if test $ac_prog_rejected = yes; then
1730   # We found a bogon in the path, so make sure we never use it.
1731   set dummy $ac_cv_prog_CC
1732   shift
1733   if test $# != 0; then
1734     # We chose a different compiler from the bogus one.
1735     # However, it has the same basename, so the bogon will be chosen
1736     # first if we set CC to just the basename; use the full file name.
1737     shift
1738     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1739   fi
1740 fi
1741 fi
1742 fi
1743 CC=$ac_cv_prog_CC
1744 if test -n "$CC"; then
1745   echo "$as_me:$LINENO: result: $CC" >&5
1746 echo "${ECHO_T}$CC" >&6
1747 else
1748   echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1750 fi
1751
1752 fi
1753 if test -z "$CC"; then
1754   if test -n "$ac_tool_prefix"; then
1755   for ac_prog in cl
1756   do
1757     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1759 echo "$as_me:$LINENO: checking for $ac_word" >&5
1760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1761 if test "${ac_cv_prog_CC+set}" = set; then
1762   echo $ECHO_N "(cached) $ECHO_C" >&6
1763 else
1764   if test -n "$CC"; then
1765   ac_cv_prog_CC="$CC" # Let the user override the test.
1766 else
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 for as_dir in $PATH
1769 do
1770   IFS=$as_save_IFS
1771   test -z "$as_dir" && as_dir=.
1772   for ac_exec_ext in '' $ac_executable_extensions; do
1773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1774     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1776     break 2
1777   fi
1778 done
1779 done
1780
1781 fi
1782 fi
1783 CC=$ac_cv_prog_CC
1784 if test -n "$CC"; then
1785   echo "$as_me:$LINENO: result: $CC" >&5
1786 echo "${ECHO_T}$CC" >&6
1787 else
1788   echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1790 fi
1791
1792     test -n "$CC" && break
1793   done
1794 fi
1795 if test -z "$CC"; then
1796   ac_ct_CC=$CC
1797   for ac_prog in cl
1798 do
1799   # Extract the first word of "$ac_prog", so it can be a program name with args.
1800 set dummy $ac_prog; ac_word=$2
1801 echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1804   echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806   if test -n "$ac_ct_CC"; then
1807   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1808 else
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 for as_dir in $PATH
1811 do
1812   IFS=$as_save_IFS
1813   test -z "$as_dir" && as_dir=.
1814   for ac_exec_ext in '' $ac_executable_extensions; do
1815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816     ac_cv_prog_ac_ct_CC="$ac_prog"
1817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818     break 2
1819   fi
1820 done
1821 done
1822
1823 fi
1824 fi
1825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1826 if test -n "$ac_ct_CC"; then
1827   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1828 echo "${ECHO_T}$ac_ct_CC" >&6
1829 else
1830   echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1832 fi
1833
1834   test -n "$ac_ct_CC" && break
1835 done
1836
1837   CC=$ac_ct_CC
1838 fi
1839
1840 fi
1841
1842
1843 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1844 See \`config.log' for more details." >&5
1845 echo "$as_me: error: no acceptable C compiler found in \$PATH
1846 See \`config.log' for more details." >&2;}
1847    { (exit 1); exit 1; }; }
1848
1849 # Provide some information about the compiler.
1850 echo "$as_me:$LINENO:" \
1851      "checking for C compiler version" >&5
1852 ac_compiler=`set X $ac_compile; echo $2`
1853 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1854   (eval $ac_compiler --version </dev/null >&5) 2>&5
1855   ac_status=$?
1856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857   (exit $ac_status); }
1858 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1859   (eval $ac_compiler -v </dev/null >&5) 2>&5
1860   ac_status=$?
1861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862   (exit $ac_status); }
1863 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1864   (eval $ac_compiler -V </dev/null >&5) 2>&5
1865   ac_status=$?
1866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867   (exit $ac_status); }
1868
1869 cat >conftest.$ac_ext <<_ACEOF
1870 /* confdefs.h.  */
1871 _ACEOF
1872 cat confdefs.h >>conftest.$ac_ext
1873 cat >>conftest.$ac_ext <<_ACEOF
1874 /* end confdefs.h.  */
1875
1876 int
1877 main ()
1878 {
1879
1880   ;
1881   return 0;
1882 }
1883 _ACEOF
1884 ac_clean_files_save=$ac_clean_files
1885 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1886 # Try to create an executable without -o first, disregard a.out.
1887 # It will help us diagnose broken compilers, and finding out an intuition
1888 # of exeext.
1889 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1890 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1891 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1892 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1893   (eval $ac_link_default) 2>&5
1894   ac_status=$?
1895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896   (exit $ac_status); }; then
1897   # Find the output, starting from the most likely.  This scheme is
1898 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1899 # resort.
1900
1901 # Be careful to initialize this variable, since it used to be cached.
1902 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1903 ac_cv_exeext=
1904 # b.out is created by i960 compilers.
1905 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1906 do
1907   test -f "$ac_file" || continue
1908   case $ac_file in
1909     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1910         ;;
1911     conftest.$ac_ext )
1912         # This is the source file.
1913         ;;
1914     [ab].out )
1915         # We found the default executable, but exeext='' is most
1916         # certainly right.
1917         break;;
1918     *.* )
1919         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1920         # FIXME: I believe we export ac_cv_exeext for Libtool,
1921         # but it would be cool to find out if it's true.  Does anybody
1922         # maintain Libtool? --akim.
1923         export ac_cv_exeext
1924         break;;
1925     * )
1926         break;;
1927   esac
1928 done
1929 else
1930   echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1934 See \`config.log' for more details." >&5
1935 echo "$as_me: error: C compiler cannot create executables
1936 See \`config.log' for more details." >&2;}
1937    { (exit 77); exit 77; }; }
1938 fi
1939
1940 ac_exeext=$ac_cv_exeext
1941 echo "$as_me:$LINENO: result: $ac_file" >&5
1942 echo "${ECHO_T}$ac_file" >&6
1943
1944 # Check the compiler produces executables we can run.  If not, either
1945 # the compiler is broken, or we cross compile.
1946 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1947 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1948 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1949 # If not cross compiling, check that we can run a simple program.
1950 if test "$cross_compiling" != yes; then
1951   if { ac_try='./$ac_file'
1952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953   (eval $ac_try) 2>&5
1954   ac_status=$?
1955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956   (exit $ac_status); }; }; then
1957     cross_compiling=no
1958   else
1959     if test "$cross_compiling" = maybe; then
1960         cross_compiling=yes
1961     else
1962         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1963 If you meant to cross compile, use \`--host'.
1964 See \`config.log' for more details." >&5
1965 echo "$as_me: error: cannot run C compiled programs.
1966 If you meant to cross compile, use \`--host'.
1967 See \`config.log' for more details." >&2;}
1968    { (exit 1); exit 1; }; }
1969     fi
1970   fi
1971 fi
1972 echo "$as_me:$LINENO: result: yes" >&5
1973 echo "${ECHO_T}yes" >&6
1974
1975 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1976 ac_clean_files=$ac_clean_files_save
1977 # Check the compiler produces executables we can run.  If not, either
1978 # the compiler is broken, or we cross compile.
1979 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1980 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1981 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1982 echo "${ECHO_T}$cross_compiling" >&6
1983
1984 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1985 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1987   (eval $ac_link) 2>&5
1988   ac_status=$?
1989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990   (exit $ac_status); }; then
1991   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1992 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1993 # work properly (i.e., refer to `conftest.exe'), while it won't with
1994 # `rm'.
1995 for ac_file in conftest.exe conftest conftest.*; do
1996   test -f "$ac_file" || continue
1997   case $ac_file in
1998     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1999     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2000           export ac_cv_exeext
2001           break;;
2002     * ) break;;
2003   esac
2004 done
2005 else
2006   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2007 See \`config.log' for more details." >&5
2008 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2009 See \`config.log' for more details." >&2;}
2010    { (exit 1); exit 1; }; }
2011 fi
2012
2013 rm -f conftest$ac_cv_exeext
2014 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2015 echo "${ECHO_T}$ac_cv_exeext" >&6
2016
2017 rm -f conftest.$ac_ext
2018 EXEEXT=$ac_cv_exeext
2019 ac_exeext=$EXEEXT
2020 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2021 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2022 if test "${ac_cv_objext+set}" = set; then
2023   echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025   cat >conftest.$ac_ext <<_ACEOF
2026 /* confdefs.h.  */
2027 _ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h.  */
2031
2032 int
2033 main ()
2034 {
2035
2036   ;
2037   return 0;
2038 }
2039 _ACEOF
2040 rm -f conftest.o conftest.obj
2041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042   (eval $ac_compile) 2>&5
2043   ac_status=$?
2044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045   (exit $ac_status); }; then
2046   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2047   case $ac_file in
2048     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2049     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2050        break;;
2051   esac
2052 done
2053 else
2054   echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2056
2057 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2058 See \`config.log' for more details." >&5
2059 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2060 See \`config.log' for more details." >&2;}
2061    { (exit 1); exit 1; }; }
2062 fi
2063
2064 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2065 fi
2066 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2067 echo "${ECHO_T}$ac_cv_objext" >&6
2068 OBJEXT=$ac_cv_objext
2069 ac_objext=$OBJEXT
2070 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2071 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2072 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   cat >conftest.$ac_ext <<_ACEOF
2076 /* confdefs.h.  */
2077 _ACEOF
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h.  */
2081
2082 int
2083 main ()
2084 {
2085 #ifndef __GNUC__
2086        choke me
2087 #endif
2088
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095   (eval $ac_compile) 2>conftest.er1
2096   ac_status=$?
2097   grep -v '^ *+' conftest.er1 >conftest.err
2098   rm -f conftest.er1
2099   cat conftest.err >&5
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); } &&
2102          { ac_try='test -z "$ac_c_werror_flag"
2103                          || test ! -s conftest.err'
2104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105   (eval $ac_try) 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }; } &&
2109          { ac_try='test -s conftest.$ac_objext'
2110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111   (eval $ac_try) 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }; }; then
2115   ac_compiler_gnu=yes
2116 else
2117   echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2119
2120 ac_compiler_gnu=no
2121 fi
2122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2123 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2124
2125 fi
2126 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2127 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2128 GCC=`test $ac_compiler_gnu = yes && echo yes`
2129 ac_test_CFLAGS=${CFLAGS+set}
2130 ac_save_CFLAGS=$CFLAGS
2131 CFLAGS="-g"
2132 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2133 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2134 if test "${ac_cv_prog_cc_g+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   cat >conftest.$ac_ext <<_ACEOF
2138 /* confdefs.h.  */
2139 _ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h.  */
2143
2144 int
2145 main ()
2146 {
2147
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154   (eval $ac_compile) 2>conftest.er1
2155   ac_status=$?
2156   grep -v '^ *+' conftest.er1 >conftest.err
2157   rm -f conftest.er1
2158   cat conftest.err >&5
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); } &&
2161          { ac_try='test -z "$ac_c_werror_flag"
2162                          || test ! -s conftest.err'
2163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164   (eval $ac_try) 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); }; } &&
2168          { ac_try='test -s conftest.$ac_objext'
2169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170   (eval $ac_try) 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }; }; then
2174   ac_cv_prog_cc_g=yes
2175 else
2176   echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2178
2179 ac_cv_prog_cc_g=no
2180 fi
2181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2182 fi
2183 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2184 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2185 if test "$ac_test_CFLAGS" = set; then
2186   CFLAGS=$ac_save_CFLAGS
2187 elif test $ac_cv_prog_cc_g = yes; then
2188   if test "$GCC" = yes; then
2189     CFLAGS="-g -O2"
2190   else
2191     CFLAGS="-g"
2192   fi
2193 else
2194   if test "$GCC" = yes; then
2195     CFLAGS="-O2"
2196   else
2197     CFLAGS=
2198   fi
2199 fi
2200 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2201 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2202 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   ac_cv_prog_cc_stdc=no
2206 ac_save_CC=$CC
2207 cat >conftest.$ac_ext <<_ACEOF
2208 /* confdefs.h.  */
2209 _ACEOF
2210 cat confdefs.h >>conftest.$ac_ext
2211 cat >>conftest.$ac_ext <<_ACEOF
2212 /* end confdefs.h.  */
2213 #include <stdarg.h>
2214 #include <stdio.h>
2215 #include <sys/types.h>
2216 #include <sys/stat.h>
2217 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2218 struct buf { int x; };
2219 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2220 static char *e (p, i)
2221      char **p;
2222      int i;
2223 {
2224   return p[i];
2225 }
2226 static char *f (char * (*g) (char **, int), char **p, ...)
2227 {
2228   char *s;
2229   va_list v;
2230   va_start (v,p);
2231   s = g (p, va_arg (v,int));
2232   va_end (v);
2233   return s;
2234 }
2235
2236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2237    function prototypes and stuff, but not '\xHH' hex character constants.
2238    These don't provoke an error unfortunately, instead are silently treated
2239    as 'x'.  The following induces an error, until -std1 is added to get
2240    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2241    array size at least.  It's necessary to write '\x00'==0 to get something
2242    that's true only with -std1.  */
2243 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2244
2245 int test (int i, double x);
2246 struct s1 {int (*f) (int a);};
2247 struct s2 {int (*f) (double a);};
2248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2249 int argc;
2250 char **argv;
2251 int
2252 main ()
2253 {
2254 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2255   ;
2256   return 0;
2257 }
2258 _ACEOF
2259 # Don't try gcc -ansi; that turns off useful extensions and
2260 # breaks some systems' header files.
2261 # AIX                   -qlanglvl=ansi
2262 # Ultrix and OSF/1      -std1
2263 # HP-UX 10.20 and later -Ae
2264 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2265 # SVR4                  -Xc -D__EXTENSIONS__
2266 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2267 do
2268   CC="$ac_save_CC $ac_arg"
2269   rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271   (eval $ac_compile) 2>conftest.er1
2272   ac_status=$?
2273   grep -v '^ *+' conftest.er1 >conftest.err
2274   rm -f conftest.er1
2275   cat conftest.err >&5
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); } &&
2278          { ac_try='test -z "$ac_c_werror_flag"
2279                          || test ! -s conftest.err'
2280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281   (eval $ac_try) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }; } &&
2285          { ac_try='test -s conftest.$ac_objext'
2286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287   (eval $ac_try) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }; }; then
2291   ac_cv_prog_cc_stdc=$ac_arg
2292 break
2293 else
2294   echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2296
2297 fi
2298 rm -f conftest.err conftest.$ac_objext
2299 done
2300 rm -f conftest.$ac_ext conftest.$ac_objext
2301 CC=$ac_save_CC
2302
2303 fi
2304
2305 case "x$ac_cv_prog_cc_stdc" in
2306   x|xno)
2307     echo "$as_me:$LINENO: result: none needed" >&5
2308 echo "${ECHO_T}none needed" >&6 ;;
2309   *)
2310     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2311 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2312     CC="$CC $ac_cv_prog_cc_stdc" ;;
2313 esac
2314
2315 # Some people use a C++ compiler to compile C.  Since we use `exit',
2316 # in C++ we need to declare it.  In case someone uses the same compiler
2317 # for both compiling C and C++ we need to have the C++ compiler decide
2318 # the declaration of exit, since it's the most demanding environment.
2319 cat >conftest.$ac_ext <<_ACEOF
2320 #ifndef __cplusplus
2321   choke me
2322 #endif
2323 _ACEOF
2324 rm -f conftest.$ac_objext
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326   (eval $ac_compile) 2>conftest.er1
2327   ac_status=$?
2328   grep -v '^ *+' conftest.er1 >conftest.err
2329   rm -f conftest.er1
2330   cat conftest.err >&5
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); } &&
2333          { ac_try='test -z "$ac_c_werror_flag"
2334                          || test ! -s conftest.err'
2335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336   (eval $ac_try) 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); }; } &&
2340          { ac_try='test -s conftest.$ac_objext'
2341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342   (eval $ac_try) 2>&5
2343   ac_status=$?
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); }; }; then
2346   for ac_declaration in \
2347    '' \
2348    'extern "C" void std::exit (int) throw (); using std::exit;' \
2349    'extern "C" void std::exit (int); using std::exit;' \
2350    'extern "C" void exit (int) throw ();' \
2351    'extern "C" void exit (int);' \
2352    'void exit (int);'
2353 do
2354   cat >conftest.$ac_ext <<_ACEOF
2355 /* confdefs.h.  */
2356 _ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h.  */
2360 $ac_declaration
2361 #include <stdlib.h>
2362 int
2363 main ()
2364 {
2365 exit (42);
2366   ;
2367   return 0;
2368 }
2369 _ACEOF
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372   (eval $ac_compile) 2>conftest.er1
2373   ac_status=$?
2374   grep -v '^ *+' conftest.er1 >conftest.err
2375   rm -f conftest.er1
2376   cat conftest.err >&5
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); } &&
2379          { ac_try='test -z "$ac_c_werror_flag"
2380                          || test ! -s conftest.err'
2381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382   (eval $ac_try) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }; } &&
2386          { ac_try='test -s conftest.$ac_objext'
2387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388   (eval $ac_try) 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); }; }; then
2392   :
2393 else
2394   echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2396
2397 continue
2398 fi
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400   cat >conftest.$ac_ext <<_ACEOF
2401 /* confdefs.h.  */
2402 _ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h.  */
2406 $ac_declaration
2407 int
2408 main ()
2409 {
2410 exit (42);
2411   ;
2412   return 0;
2413 }
2414 _ACEOF
2415 rm -f conftest.$ac_objext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417   (eval $ac_compile) 2>conftest.er1
2418   ac_status=$?
2419   grep -v '^ *+' conftest.er1 >conftest.err
2420   rm -f conftest.er1
2421   cat conftest.err >&5
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); } &&
2424          { ac_try='test -z "$ac_c_werror_flag"
2425                          || test ! -s conftest.err'
2426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427   (eval $ac_try) 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }; } &&
2431          { ac_try='test -s conftest.$ac_objext'
2432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433   (eval $ac_try) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }; }; then
2437   break
2438 else
2439   echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 fi
2443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444 done
2445 rm -f conftest*
2446 if test -n "$ac_declaration"; then
2447   echo '#ifdef __cplusplus' >>confdefs.h
2448   echo $ac_declaration      >>confdefs.h
2449   echo '#endif'             >>confdefs.h
2450 fi
2451
2452 else
2453   echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2455
2456 fi
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 ac_ext=c
2459 ac_cpp='$CPP $CPPFLAGS'
2460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463
2464 ac_ext=cc
2465 ac_cpp='$CXXCPP $CPPFLAGS'
2466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2469 if test -n "$ac_tool_prefix"; then
2470   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2471   do
2472     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2474 echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476 if test "${ac_cv_prog_CXX+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   if test -n "$CXX"; then
2480   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485   IFS=$as_save_IFS
2486   test -z "$as_dir" && as_dir=.
2487   for ac_exec_ext in '' $ac_executable_extensions; do
2488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491     break 2
2492   fi
2493 done
2494 done
2495
2496 fi
2497 fi
2498 CXX=$ac_cv_prog_CXX
2499 if test -n "$CXX"; then
2500   echo "$as_me:$LINENO: result: $CXX" >&5
2501 echo "${ECHO_T}$CXX" >&6
2502 else
2503   echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6
2505 fi
2506
2507     test -n "$CXX" && break
2508   done
2509 fi
2510 if test -z "$CXX"; then
2511   ac_ct_CXX=$CXX
2512   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2513 do
2514   # Extract the first word of "$ac_prog", so it can be a program name with args.
2515 set dummy $ac_prog; ac_word=$2
2516 echo "$as_me:$LINENO: checking for $ac_word" >&5
2517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2518 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2519   echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521   if test -n "$ac_ct_CXX"; then
2522   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527   IFS=$as_save_IFS
2528   test -z "$as_dir" && as_dir=.
2529   for ac_exec_ext in '' $ac_executable_extensions; do
2530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531     ac_cv_prog_ac_ct_CXX="$ac_prog"
2532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533     break 2
2534   fi
2535 done
2536 done
2537
2538 fi
2539 fi
2540 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2541 if test -n "$ac_ct_CXX"; then
2542   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2543 echo "${ECHO_T}$ac_ct_CXX" >&6
2544 else
2545   echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6
2547 fi
2548
2549   test -n "$ac_ct_CXX" && break
2550 done
2551 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2552
2553   CXX=$ac_ct_CXX
2554 fi
2555
2556
2557 # Provide some information about the compiler.
2558 echo "$as_me:$LINENO:" \
2559      "checking for C++ compiler version" >&5
2560 ac_compiler=`set X $ac_compile; echo $2`
2561 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2562   (eval $ac_compiler --version </dev/null >&5) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }
2566 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2567   (eval $ac_compiler -v </dev/null >&5) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }
2571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2572   (eval $ac_compiler -V </dev/null >&5) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }
2576
2577 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2578 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2579 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2580   echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582   cat >conftest.$ac_ext <<_ACEOF
2583 /* confdefs.h.  */
2584 _ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h.  */
2588
2589 int
2590 main ()
2591 {
2592 #ifndef __GNUC__
2593        choke me
2594 #endif
2595
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602   (eval $ac_compile) 2>conftest.er1
2603   ac_status=$?
2604   grep -v '^ *+' conftest.er1 >conftest.err
2605   rm -f conftest.er1
2606   cat conftest.err >&5
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); } &&
2609          { ac_try='test -z "$ac_cxx_werror_flag"
2610                          || test ! -s conftest.err'
2611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; } &&
2616          { ac_try='test -s conftest.$ac_objext'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; }; then
2622   ac_compiler_gnu=yes
2623 else
2624   echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2626
2627 ac_compiler_gnu=no
2628 fi
2629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2630 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2631
2632 fi
2633 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2634 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2635 GXX=`test $ac_compiler_gnu = yes && echo yes`
2636 ac_test_CXXFLAGS=${CXXFLAGS+set}
2637 ac_save_CXXFLAGS=$CXXFLAGS
2638 CXXFLAGS="-g"
2639 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2640 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2641 if test "${ac_cv_prog_cxx_g+set}" = set; then
2642   echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644   cat >conftest.$ac_ext <<_ACEOF
2645 /* confdefs.h.  */
2646 _ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h.  */
2650
2651 int
2652 main ()
2653 {
2654
2655   ;
2656   return 0;
2657 }
2658 _ACEOF
2659 rm -f conftest.$ac_objext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661   (eval $ac_compile) 2>conftest.er1
2662   ac_status=$?
2663   grep -v '^ *+' conftest.er1 >conftest.err
2664   rm -f conftest.er1
2665   cat conftest.err >&5
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); } &&
2668          { ac_try='test -z "$ac_cxx_werror_flag"
2669                          || test ! -s conftest.err'
2670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671   (eval $ac_try) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; } &&
2675          { ac_try='test -s conftest.$ac_objext'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; }; then
2681   ac_cv_prog_cxx_g=yes
2682 else
2683   echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2685
2686 ac_cv_prog_cxx_g=no
2687 fi
2688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2689 fi
2690 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2691 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2692 if test "$ac_test_CXXFLAGS" = set; then
2693   CXXFLAGS=$ac_save_CXXFLAGS
2694 elif test $ac_cv_prog_cxx_g = yes; then
2695   if test "$GXX" = yes; then
2696     CXXFLAGS="-g -O2"
2697   else
2698     CXXFLAGS="-g"
2699   fi
2700 else
2701   if test "$GXX" = yes; then
2702     CXXFLAGS="-O2"
2703   else
2704     CXXFLAGS=
2705   fi
2706 fi
2707 for ac_declaration in \
2708    '' \
2709    'extern "C" void std::exit (int) throw (); using std::exit;' \
2710    'extern "C" void std::exit (int); using std::exit;' \
2711    'extern "C" void exit (int) throw ();' \
2712    'extern "C" void exit (int);' \
2713    'void exit (int);'
2714 do
2715   cat >conftest.$ac_ext <<_ACEOF
2716 /* confdefs.h.  */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h.  */
2721 $ac_declaration
2722 #include <stdlib.h>
2723 int
2724 main ()
2725 {
2726 exit (42);
2727   ;
2728   return 0;
2729 }
2730 _ACEOF
2731 rm -f conftest.$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733   (eval $ac_compile) 2>conftest.er1
2734   ac_status=$?
2735   grep -v '^ *+' conftest.er1 >conftest.err
2736   rm -f conftest.er1
2737   cat conftest.err >&5
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); } &&
2740          { ac_try='test -z "$ac_cxx_werror_flag"
2741                          || test ! -s conftest.err'
2742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743   (eval $ac_try) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }; } &&
2747          { ac_try='test -s conftest.$ac_objext'
2748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749   (eval $ac_try) 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; }; then
2753   :
2754 else
2755   echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2757
2758 continue
2759 fi
2760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2761   cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h.  */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h.  */
2767 $ac_declaration
2768 int
2769 main ()
2770 {
2771 exit (42);
2772   ;
2773   return 0;
2774 }
2775 _ACEOF
2776 rm -f conftest.$ac_objext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778   (eval $ac_compile) 2>conftest.er1
2779   ac_status=$?
2780   grep -v '^ *+' conftest.er1 >conftest.err
2781   rm -f conftest.er1
2782   cat conftest.err >&5
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); } &&
2785          { ac_try='test -z "$ac_cxx_werror_flag"
2786                          || test ! -s conftest.err'
2787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788   (eval $ac_try) 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); }; } &&
2792          { ac_try='test -s conftest.$ac_objext'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; }; then
2798   break
2799 else
2800   echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2802
2803 fi
2804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2805 done
2806 rm -f conftest*
2807 if test -n "$ac_declaration"; then
2808   echo '#ifdef __cplusplus' >>confdefs.h
2809   echo $ac_declaration      >>confdefs.h
2810   echo '#endif'             >>confdefs.h
2811 fi
2812
2813 ac_ext=c
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818
2819 if test "x$CC" != xcc; then
2820   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2821 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2822 else
2823   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2824 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2825 fi
2826 set dummy $CC; ac_cc=`echo $2 |
2827                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2828 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h.  */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h.  */
2837
2838 int
2839 main ()
2840 {
2841
2842   ;
2843   return 0;
2844 }
2845 _ACEOF
2846 # Make sure it works both with $CC and with simple cc.
2847 # We do the test twice because some compilers refuse to overwrite an
2848 # existing .o file with -o, though they will create one.
2849 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2850 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851   (eval $ac_try) 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); } &&
2855    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856   (eval $ac_try) 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); };
2860 then
2861   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2862   if test "x$CC" != xcc; then
2863     # Test first that cc exists at all.
2864     if { ac_try='cc -c conftest.$ac_ext >&5'
2865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866   (eval $ac_try) 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); }; }; then
2870       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2871       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); } &&
2876          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877   (eval $ac_try) 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); };
2881       then
2882         # cc works too.
2883         :
2884       else
2885         # cc exists but doesn't like -o.
2886         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2887       fi
2888     fi
2889   fi
2890 else
2891   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2892 fi
2893 rm -f conftest*
2894
2895 fi
2896 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2897   echo "$as_me:$LINENO: result: yes" >&5
2898 echo "${ECHO_T}yes" >&6
2899 else
2900   echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2902
2903 cat >>confdefs.h <<\_ACEOF
2904 #define NO_MINUS_C_MINUS_O 1
2905 _ACEOF
2906
2907 fi
2908
2909 ac_ext=c
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2916 # On Suns, sometimes $CPP names a directory.
2917 if test -n "$CPP" && test -d "$CPP"; then
2918   CPP=
2919 fi
2920 if test -z "$CPP"; then
2921   if test "${ac_cv_prog_CPP+set}" = set; then
2922   echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924       # Double quotes because CPP needs to be expanded
2925     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2926     do
2927       ac_preproc_ok=false
2928 for ac_c_preproc_warn_flag in '' yes
2929 do
2930   # Use a header file that comes with gcc, so configuring glibc
2931   # with a fresh cross-compiler works.
2932   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2933   # <limits.h> exists even on freestanding compilers.
2934   # On the NeXT, cc -E runs the code through the compiler's parser,
2935   # not just through cpp. "Syntax error" is here to catch this case.
2936   cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h.  */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h.  */
2942 #ifdef __STDC__
2943 # include <limits.h>
2944 #else
2945 # include <assert.h>
2946 #endif
2947                      Syntax error
2948 _ACEOF
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951   ac_status=$?
2952   grep -v '^ *+' conftest.er1 >conftest.err
2953   rm -f conftest.er1
2954   cat conftest.err >&5
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } >/dev/null; then
2957   if test -s conftest.err; then
2958     ac_cpp_err=$ac_c_preproc_warn_flag
2959     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2960   else
2961     ac_cpp_err=
2962   fi
2963 else
2964   ac_cpp_err=yes
2965 fi
2966 if test -z "$ac_cpp_err"; then
2967   :
2968 else
2969   echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972   # Broken: fails on valid input.
2973 continue
2974 fi
2975 rm -f conftest.err conftest.$ac_ext
2976
2977   # OK, works on sane cases.  Now check whether non-existent headers
2978   # can be detected and how.
2979   cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985 #include <ac_nonexistent.h>
2986 _ACEOF
2987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2989   ac_status=$?
2990   grep -v '^ *+' conftest.er1 >conftest.err
2991   rm -f conftest.er1
2992   cat conftest.err >&5
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); } >/dev/null; then
2995   if test -s conftest.err; then
2996     ac_cpp_err=$ac_c_preproc_warn_flag
2997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2998   else
2999     ac_cpp_err=
3000   fi
3001 else
3002   ac_cpp_err=yes
3003 fi
3004 if test -z "$ac_cpp_err"; then
3005   # Broken: success on invalid input.
3006 continue
3007 else
3008   echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3010
3011   # Passes both tests.
3012 ac_preproc_ok=:
3013 break
3014 fi
3015 rm -f conftest.err conftest.$ac_ext
3016
3017 done
3018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3019 rm -f conftest.err conftest.$ac_ext
3020 if $ac_preproc_ok; then
3021   break
3022 fi
3023
3024     done
3025     ac_cv_prog_CPP=$CPP
3026
3027 fi
3028   CPP=$ac_cv_prog_CPP
3029 else
3030   ac_cv_prog_CPP=$CPP
3031 fi
3032 echo "$as_me:$LINENO: result: $CPP" >&5
3033 echo "${ECHO_T}$CPP" >&6
3034 ac_preproc_ok=false
3035 for ac_c_preproc_warn_flag in '' yes
3036 do
3037   # Use a header file that comes with gcc, so configuring glibc
3038   # with a fresh cross-compiler works.
3039   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3040   # <limits.h> exists even on freestanding compilers.
3041   # On the NeXT, cc -E runs the code through the compiler's parser,
3042   # not just through cpp. "Syntax error" is here to catch this case.
3043   cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h.  */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h.  */
3049 #ifdef __STDC__
3050 # include <limits.h>
3051 #else
3052 # include <assert.h>
3053 #endif
3054                      Syntax error
3055 _ACEOF
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058   ac_status=$?
3059   grep -v '^ *+' conftest.er1 >conftest.err
3060   rm -f conftest.er1
3061   cat conftest.err >&5
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); } >/dev/null; then
3064   if test -s conftest.err; then
3065     ac_cpp_err=$ac_c_preproc_warn_flag
3066     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3067   else
3068     ac_cpp_err=
3069   fi
3070 else
3071   ac_cpp_err=yes
3072 fi
3073 if test -z "$ac_cpp_err"; then
3074   :
3075 else
3076   echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079   # Broken: fails on valid input.
3080 continue
3081 fi
3082 rm -f conftest.err conftest.$ac_ext
3083
3084   # OK, works on sane cases.  Now check whether non-existent headers
3085   # can be detected and how.
3086   cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h.  */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h.  */
3092 #include <ac_nonexistent.h>
3093 _ACEOF
3094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3096   ac_status=$?
3097   grep -v '^ *+' conftest.er1 >conftest.err
3098   rm -f conftest.er1
3099   cat conftest.err >&5
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); } >/dev/null; then
3102   if test -s conftest.err; then
3103     ac_cpp_err=$ac_c_preproc_warn_flag
3104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3105   else
3106     ac_cpp_err=
3107   fi
3108 else
3109   ac_cpp_err=yes
3110 fi
3111 if test -z "$ac_cpp_err"; then
3112   # Broken: success on invalid input.
3113 continue
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118   # Passes both tests.
3119 ac_preproc_ok=:
3120 break
3121 fi
3122 rm -f conftest.err conftest.$ac_ext
3123
3124 done
3125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3126 rm -f conftest.err conftest.$ac_ext
3127 if $ac_preproc_ok; then
3128   :
3129 else
3130   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&5
3132 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3133 See \`config.log' for more details." >&2;}
3134    { (exit 1); exit 1; }; }
3135 fi
3136
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
3143
3144 echo "$as_me:$LINENO: checking for egrep" >&5
3145 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3146 if test "${ac_cv_prog_egrep+set}" = set; then
3147   echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3150     then ac_cv_prog_egrep='grep -E'
3151     else ac_cv_prog_egrep='egrep'
3152     fi
3153 fi
3154 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3155 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3156  EGREP=$ac_cv_prog_egrep
3157
3158
3159 if test $ac_cv_c_compiler_gnu = yes; then
3160     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3161 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3162 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3163   echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165     ac_pattern="Autoconf.*'x'"
3166   cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h.  */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h.  */
3172 #include <sgtty.h>
3173 Autoconf TIOCGETP
3174 _ACEOF
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3177   ac_cv_prog_gcc_traditional=yes
3178 else
3179   ac_cv_prog_gcc_traditional=no
3180 fi
3181 rm -f conftest*
3182
3183
3184   if test $ac_cv_prog_gcc_traditional = no; then
3185     cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h.  */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h.  */
3191 #include <termio.h>
3192 Autoconf TCGETA
3193 _ACEOF
3194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3195   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3196   ac_cv_prog_gcc_traditional=yes
3197 fi
3198 rm -f conftest*
3199
3200   fi
3201 fi
3202 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3203 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3204   if test $ac_cv_prog_gcc_traditional = yes; then
3205     CC="$CC -traditional"
3206   fi
3207 fi
3208
3209 BASECC=`basename $CC`
3210 have_gcc=no
3211 if test "x$BASECC" = xgcc; then
3212    cat >>confdefs.h <<\_ACEOF
3213 #define HAVE_GCC 1
3214 _ACEOF
3215
3216    have_gcc=yes
3217 fi
3218 # Extract the first word of "$CXX", so it can be a program name with args.
3219 set dummy $CXX; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_path_CXX+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   case $CXX in
3226   [\\/]* | ?:[\\/]*)
3227   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3228   ;;
3229   *)
3230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233   IFS=$as_save_IFS
3234   test -z "$as_dir" && as_dir=.
3235   for ac_exec_ext in '' $ac_executable_extensions; do
3236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239     break 2
3240   fi
3241 done
3242 done
3243
3244   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3245   ;;
3246 esac
3247 fi
3248 CXX=$ac_cv_path_CXX
3249
3250 if test -n "$CXX"; then
3251   echo "$as_me:$LINENO: result: $CXX" >&5
3252 echo "${ECHO_T}$CXX" >&6
3253 else
3254   echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6
3256 fi
3257
3258 if test ! -e $CXX; then
3259    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3260 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3261    { (exit 1); exit 1; }; }
3262 fi
3263
3264 # Find a good install program.  We prefer a C program (faster),
3265 # so one script is as good as another.  But avoid the broken or
3266 # incompatible versions:
3267 # SysV /etc/install, /usr/sbin/install
3268 # SunOS /usr/etc/install
3269 # IRIX /sbin/install
3270 # AIX /bin/install
3271 # AmigaOS /C/install, which installs bootblocks on floppy discs
3272 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3273 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3274 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3275 # OS/2's system install, which has a completely different semantic
3276 # ./install, which can be erroneously created by make from ./install.sh.
3277 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3278 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3279 if test -z "$INSTALL"; then
3280 if test "${ac_cv_path_install+set}" = set; then
3281   echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286   IFS=$as_save_IFS
3287   test -z "$as_dir" && as_dir=.
3288   # Account for people who put trailing slashes in PATH elements.
3289 case $as_dir/ in
3290   ./ | .// | /cC/* | \
3291   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3292   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3293   /usr/ucb/* ) ;;
3294   *)
3295     # OSF1 and SCO ODT 3.0 have their own names for install.
3296     # Don't use installbsd from OSF since it installs stuff as root
3297     # by default.
3298     for ac_prog in ginstall scoinst install; do
3299       for ac_exec_ext in '' $ac_executable_extensions; do
3300         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3301           if test $ac_prog = install &&
3302             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3303             # AIX install.  It has an incompatible calling convention.
3304             :
3305           elif test $ac_prog = install &&
3306             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3307             # program-specific install script used by HP pwplus--don't use.
3308             :
3309           else
3310             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3311             break 3
3312           fi
3313         fi
3314       done
3315     done
3316     ;;
3317 esac
3318 done
3319
3320
3321 fi
3322   if test "${ac_cv_path_install+set}" = set; then
3323     INSTALL=$ac_cv_path_install
3324   else
3325     # As a last resort, use the slow shell script.  We don't cache a
3326     # path for INSTALL within a source directory, because that will
3327     # break other packages using the cache if that directory is
3328     # removed, or if the path is relative.
3329     INSTALL=$ac_install_sh
3330   fi
3331 fi
3332 echo "$as_me:$LINENO: result: $INSTALL" >&5
3333 echo "${ECHO_T}$INSTALL" >&6
3334
3335 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3336 # It thinks the first close brace ends the variable substitution.
3337 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3338
3339 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3340
3341 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3342
3343 if test -n "$ac_tool_prefix"; then
3344   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_prog_RANLIB+set}" = set; then
3349   echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351   if test -n "$RANLIB"; then
3352   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3356 do
3357   IFS=$as_save_IFS
3358   test -z "$as_dir" && as_dir=.
3359   for ac_exec_ext in '' $ac_executable_extensions; do
3360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3363     break 2
3364   fi
3365 done
3366 done
3367
3368 fi
3369 fi
3370 RANLIB=$ac_cv_prog_RANLIB
3371 if test -n "$RANLIB"; then
3372   echo "$as_me:$LINENO: result: $RANLIB" >&5
3373 echo "${ECHO_T}$RANLIB" >&6
3374 else
3375   echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3377 fi
3378
3379 fi
3380 if test -z "$ac_cv_prog_RANLIB"; then
3381   ac_ct_RANLIB=$RANLIB
3382   # Extract the first word of "ranlib", so it can be a program name with args.
3383 set dummy ranlib; ac_word=$2
3384 echo "$as_me:$LINENO: checking for $ac_word" >&5
3385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3386 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3387   echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389   if test -n "$ac_ct_RANLIB"; then
3390   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3391 else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3394 do
3395   IFS=$as_save_IFS
3396   test -z "$as_dir" && as_dir=.
3397   for ac_exec_ext in '' $ac_executable_extensions; do
3398   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3399     ac_cv_prog_ac_ct_RANLIB="ranlib"
3400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3401     break 2
3402   fi
3403 done
3404 done
3405
3406   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3407 fi
3408 fi
3409 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3410 if test -n "$ac_ct_RANLIB"; then
3411   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3412 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3413 else
3414   echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3416 fi
3417
3418   RANLIB=$ac_ct_RANLIB
3419 else
3420   RANLIB="$ac_cv_prog_RANLIB"
3421 fi
3422
3423 # Extract the first word of "mv", so it can be a program name with args.
3424 set dummy mv; ac_word=$2
3425 echo "$as_me:$LINENO: checking for $ac_word" >&5
3426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3427 if test "${ac_cv_path_MV+set}" = set; then
3428   echo $ECHO_N "(cached) $ECHO_C" >&6
3429 else
3430   case $MV in
3431   [\\/]* | ?:[\\/]*)
3432   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3433   ;;
3434   *)
3435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3437 do
3438   IFS=$as_save_IFS
3439   test -z "$as_dir" && as_dir=.
3440   for ac_exec_ext in '' $ac_executable_extensions; do
3441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444     break 2
3445   fi
3446 done
3447 done
3448
3449   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3450   ;;
3451 esac
3452 fi
3453 MV=$ac_cv_path_MV
3454
3455 if test -n "$MV"; then
3456   echo "$as_me:$LINENO: result: $MV" >&5
3457 echo "${ECHO_T}$MV" >&6
3458 else
3459   echo "$as_me:$LINENO: result: no" >&5
3460 echo "${ECHO_T}no" >&6
3461 fi
3462
3463 # Extract the first word of "rm", so it can be a program name with args.
3464 set dummy rm; ac_word=$2
3465 echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467 if test "${ac_cv_path_RM+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470   case $RM in
3471   [\\/]* | ?:[\\/]*)
3472   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3473   ;;
3474   *)
3475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH
3477 do
3478   IFS=$as_save_IFS
3479   test -z "$as_dir" && as_dir=.
3480   for ac_exec_ext in '' $ac_executable_extensions; do
3481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484     break 2
3485   fi
3486 done
3487 done
3488
3489   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3490   ;;
3491 esac
3492 fi
3493 RM=$ac_cv_path_RM
3494
3495 if test -n "$RM"; then
3496   echo "$as_me:$LINENO: result: $RM" >&5
3497 echo "${ECHO_T}$RM" >&6
3498 else
3499   echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3501 fi
3502
3503 # Extract the first word of "cp", so it can be a program name with args.
3504 set dummy cp; ac_word=$2
3505 echo "$as_me:$LINENO: checking for $ac_word" >&5
3506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3507 if test "${ac_cv_path_CP+set}" = set; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   case $CP in
3511   [\\/]* | ?:[\\/]*)
3512   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3513   ;;
3514   *)
3515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3517 do
3518   IFS=$as_save_IFS
3519   test -z "$as_dir" && as_dir=.
3520   for ac_exec_ext in '' $ac_executable_extensions; do
3521   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524     break 2
3525   fi
3526 done
3527 done
3528
3529   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3530   ;;
3531 esac
3532 fi
3533 CP=$ac_cv_path_CP
3534
3535 if test -n "$CP"; then
3536   echo "$as_me:$LINENO: result: $CP" >&5
3537 echo "${ECHO_T}$CP" >&6
3538 else
3539   echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3541 fi
3542
3543 # Extract the first word of "sed", so it can be a program name with args.
3544 set dummy sed; ac_word=$2
3545 echo "$as_me:$LINENO: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547 if test "${ac_cv_path_SED+set}" = set; then
3548   echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550   case $SED in
3551   [\\/]* | ?:[\\/]*)
3552   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3553   ;;
3554   *)
3555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558   IFS=$as_save_IFS
3559   test -z "$as_dir" && as_dir=.
3560   for ac_exec_ext in '' $ac_executable_extensions; do
3561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3562     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564     break 2
3565   fi
3566 done
3567 done
3568
3569   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3570   ;;
3571 esac
3572 fi
3573 SED=$ac_cv_path_SED
3574
3575 if test -n "$SED"; then
3576   echo "$as_me:$LINENO: result: $SED" >&5
3577 echo "${ECHO_T}$SED" >&6
3578 else
3579   echo "$as_me:$LINENO: result: no" >&5
3580 echo "${ECHO_T}no" >&6
3581 fi
3582
3583 # Extract the first word of "echo", so it can be a program name with args.
3584 set dummy echo; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_path_ECHO+set}" = set; then
3588   echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590   case $ECHO in
3591   [\\/]* | ?:[\\/]*)
3592   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3593   ;;
3594   *)
3595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598   IFS=$as_save_IFS
3599   test -z "$as_dir" && as_dir=.
3600   for ac_exec_ext in '' $ac_executable_extensions; do
3601   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604     break 2
3605   fi
3606 done
3607 done
3608
3609   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3610   ;;
3611 esac
3612 fi
3613 ECHO=$ac_cv_path_ECHO
3614
3615 if test -n "$ECHO"; then
3616   echo "$as_me:$LINENO: result: $ECHO" >&5
3617 echo "${ECHO_T}$ECHO" >&6
3618 else
3619   echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6
3621 fi
3622
3623 # Extract the first word of "cmp", so it can be a program name with args.
3624 set dummy cmp; ac_word=$2
3625 echo "$as_me:$LINENO: checking for $ac_word" >&5
3626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3627 if test "${ac_cv_path_CMP+set}" = set; then
3628   echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630   case $CMP in
3631   [\\/]* | ?:[\\/]*)
3632   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3633   ;;
3634   *)
3635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638   IFS=$as_save_IFS
3639   test -z "$as_dir" && as_dir=.
3640   for ac_exec_ext in '' $ac_executable_extensions; do
3641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644     break 2
3645   fi
3646 done
3647 done
3648
3649   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3650   ;;
3651 esac
3652 fi
3653 CMP=$ac_cv_path_CMP
3654
3655 if test -n "$CMP"; then
3656   echo "$as_me:$LINENO: result: $CMP" >&5
3657 echo "${ECHO_T}$CMP" >&6
3658 else
3659   echo "$as_me:$LINENO: result: no" >&5
3660 echo "${ECHO_T}no" >&6
3661 fi
3662
3663 # Extract the first word of "tbl", so it can be a program name with args.
3664 set dummy tbl; ac_word=$2
3665 echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3667 if test "${ac_cv_path_TBL+set}" = set; then
3668   echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670   case $TBL in
3671   [\\/]* | ?:[\\/]*)
3672   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3673   ;;
3674   *)
3675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3677 do
3678   IFS=$as_save_IFS
3679   test -z "$as_dir" && as_dir=.
3680   for ac_exec_ext in '' $ac_executable_extensions; do
3681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684     break 2
3685   fi
3686 done
3687 done
3688
3689   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3690   ;;
3691 esac
3692 fi
3693 TBL=$ac_cv_path_TBL
3694
3695 if test -n "$TBL"; then
3696   echo "$as_me:$LINENO: result: $TBL" >&5
3697 echo "${ECHO_T}$TBL" >&6
3698 else
3699   echo "$as_me:$LINENO: result: no" >&5
3700 echo "${ECHO_T}no" >&6
3701 fi
3702
3703 # Extract the first word of "ar", so it can be a program name with args.
3704 set dummy ar; ac_word=$2
3705 echo "$as_me:$LINENO: checking for $ac_word" >&5
3706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3707 if test "${ac_cv_path_AR+set}" = set; then
3708   echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710   case $AR in
3711   [\\/]* | ?:[\\/]*)
3712   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3713   ;;
3714   *)
3715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH
3717 do
3718   IFS=$as_save_IFS
3719   test -z "$as_dir" && as_dir=.
3720   for ac_exec_ext in '' $ac_executable_extensions; do
3721   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724     break 2
3725   fi
3726 done
3727 done
3728
3729   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3730   ;;
3731 esac
3732 fi
3733 AR=$ac_cv_path_AR
3734
3735 if test -n "$AR"; then
3736   echo "$as_me:$LINENO: result: $AR" >&5
3737 echo "${ECHO_T}$AR" >&6
3738 else
3739   echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6
3741 fi
3742
3743 # Extract the first word of "openssl", so it can be a program name with args.
3744 set dummy openssl; ac_word=$2
3745 echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3747 if test "${ac_cv_path_OPENSSL+set}" = set; then
3748   echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750   case $OPENSSL in
3751   [\\/]* | ?:[\\/]*)
3752   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3753   ;;
3754   *)
3755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3757 do
3758   IFS=$as_save_IFS
3759   test -z "$as_dir" && as_dir=.
3760   for ac_exec_ext in '' $ac_executable_extensions; do
3761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764     break 2
3765   fi
3766 done
3767 done
3768
3769   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3770   ;;
3771 esac
3772 fi
3773 OPENSSL=$ac_cv_path_OPENSSL
3774
3775 if test -n "$OPENSSL"; then
3776   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3777 echo "${ECHO_T}$OPENSSL" >&6
3778 else
3779   echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3781 fi
3782
3783 # Extract the first word of "mtx", so it can be a program name with args.
3784 set dummy mtx; ac_word=$2
3785 echo "$as_me:$LINENO: checking for $ac_word" >&5
3786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3787 if test "${ac_cv_path_MTX+set}" = set; then
3788   echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790   case $MTX in
3791   [\\/]* | ?:[\\/]*)
3792   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3793   ;;
3794   *)
3795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798   IFS=$as_save_IFS
3799   test -z "$as_dir" && as_dir=.
3800   for ac_exec_ext in '' $ac_executable_extensions; do
3801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804     break 2
3805   fi
3806 done
3807 done
3808
3809   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3810   ;;
3811 esac
3812 fi
3813 MTX=$ac_cv_path_MTX
3814
3815 if test -n "$MTX"; then
3816   echo "$as_me:$LINENO: result: $MTX" >&5
3817 echo "${ECHO_T}$MTX" >&6
3818 else
3819   echo "$as_me:$LINENO: result: no" >&5
3820 echo "${ECHO_T}no" >&6
3821 fi
3822
3823 # Extract the first word of "dd", so it can be a program name with args.
3824 set dummy dd; ac_word=$2
3825 echo "$as_me:$LINENO: checking for $ac_word" >&5
3826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827 if test "${ac_cv_path_DD+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   case $DD in
3831   [\\/]* | ?:[\\/]*)
3832   ac_cv_path_DD="$DD" # Let the user override the test with a path.
3833   ;;
3834   *)
3835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3837 do
3838   IFS=$as_save_IFS
3839   test -z "$as_dir" && as_dir=.
3840   for ac_exec_ext in '' $ac_executable_extensions; do
3841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844     break 2
3845   fi
3846 done
3847 done
3848
3849   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3850   ;;
3851 esac
3852 fi
3853 DD=$ac_cv_path_DD
3854
3855 if test -n "$DD"; then
3856   echo "$as_me:$LINENO: result: $DD" >&5
3857 echo "${ECHO_T}$DD" >&6
3858 else
3859   echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3861 fi
3862
3863 # Extract the first word of "mkisofs", so it can be a program name with args.
3864 set dummy mkisofs; ac_word=$2
3865 echo "$as_me:$LINENO: checking for $ac_word" >&5
3866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3867 if test "${ac_cv_path_MKISOFS+set}" = set; then
3868   echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870   case $MKISOFS in
3871   [\\/]* | ?:[\\/]*)
3872   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3873   ;;
3874   *)
3875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878   IFS=$as_save_IFS
3879   test -z "$as_dir" && as_dir=.
3880   for ac_exec_ext in '' $ac_executable_extensions; do
3881   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884     break 2
3885   fi
3886 done
3887 done
3888
3889   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3890   ;;
3891 esac
3892 fi
3893 MKISOFS=$ac_cv_path_MKISOFS
3894
3895 if test -n "$MKISOFS"; then
3896   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3897 echo "${ECHO_T}$MKISOFS" >&6
3898 else
3899   echo "$as_me:$LINENO: result: no" >&5
3900 echo "${ECHO_T}no" >&6
3901 fi
3902
3903 # Extract the first word of "python", so it can be a program name with args.
3904 set dummy python; ac_word=$2
3905 echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907 if test "${ac_cv_path_PYTHON+set}" = set; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910   case $PYTHON in
3911   [\\/]* | ?:[\\/]*)
3912   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3913   ;;
3914   *)
3915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3917 do
3918   IFS=$as_save_IFS
3919   test -z "$as_dir" && as_dir=.
3920   for ac_exec_ext in '' $ac_executable_extensions; do
3921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924     break 2
3925   fi
3926 done
3927 done
3928
3929   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3930   ;;
3931 esac
3932 fi
3933 PYTHON=$ac_cv_path_PYTHON
3934
3935 if test -n "$PYTHON"; then
3936   echo "$as_me:$LINENO: result: $PYTHON" >&5
3937 echo "${ECHO_T}$PYTHON" >&6
3938 else
3939   echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6
3941 fi
3942
3943 # Extract the first word of "growisofs", so it can be a program name with args.
3944 set dummy growisofs; ac_word=$2
3945 echo "$as_me:$LINENO: checking for $ac_word" >&5
3946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3947 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3948   echo $ECHO_N "(cached) $ECHO_C" >&6
3949 else
3950   case $GROWISOFS in
3951   [\\/]* | ?:[\\/]*)
3952   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3953   ;;
3954   *)
3955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958   IFS=$as_save_IFS
3959   test -z "$as_dir" && as_dir=.
3960   for ac_exec_ext in '' $ac_executable_extensions; do
3961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964     break 2
3965   fi
3966 done
3967 done
3968
3969   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3970   ;;
3971 esac
3972 fi
3973 GROWISOFS=$ac_cv_path_GROWISOFS
3974
3975 if test -n "$GROWISOFS"; then
3976   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3977 echo "${ECHO_T}$GROWISOFS" >&6
3978 else
3979   echo "$as_me:$LINENO: result: no" >&5
3980 echo "${ECHO_T}no" >&6
3981 fi
3982
3983 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3984 set dummy dvd+rw-mediainfo; ac_word=$2
3985 echo "$as_me:$LINENO: checking for $ac_word" >&5
3986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3987 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3988   echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990   case $DVDRWMEDIAINFO in
3991   [\\/]* | ?:[\\/]*)
3992   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3993   ;;
3994   *)
3995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3997 do
3998   IFS=$as_save_IFS
3999   test -z "$as_dir" && as_dir=.
4000   for ac_exec_ext in '' $ac_executable_extensions; do
4001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004     break 2
4005   fi
4006 done
4007 done
4008
4009   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4010   ;;
4011 esac
4012 fi
4013 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4014
4015 if test -n "$DVDRWMEDIAINFO"; then
4016   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4017 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4018 else
4019   echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6
4021 fi
4022
4023 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4024 set dummy dvd+rw-format; ac_word=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030   case $DVDRWFORMAT in
4031   [\\/]* | ?:[\\/]*)
4032   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4033   ;;
4034   *)
4035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038   IFS=$as_save_IFS
4039   test -z "$as_dir" && as_dir=.
4040   for ac_exec_ext in '' $ac_executable_extensions; do
4041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4044     break 2
4045   fi
4046 done
4047 done
4048
4049   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4050   ;;
4051 esac
4052 fi
4053 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4054
4055 if test -n "$DVDRWFORMAT"; then
4056   echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4057 echo "${ECHO_T}$DVDRWFORMAT" >&6
4058 else
4059   echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6
4061 fi
4062
4063 # Extract the first word of "pkg-config", so it can be a program name with args.
4064 set dummy pkg-config; ac_word=$2
4065 echo "$as_me:$LINENO: checking for $ac_word" >&5
4066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4067 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070   case $PKGCONFIG in
4071   [\\/]* | ?:[\\/]*)
4072   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4073   ;;
4074   *)
4075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078   IFS=$as_save_IFS
4079   test -z "$as_dir" && as_dir=.
4080   for ac_exec_ext in '' $ac_executable_extensions; do
4081   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084     break 2
4085   fi
4086 done
4087 done
4088
4089   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4090   ;;
4091 esac
4092 fi
4093 PKGCONFIG=$ac_cv_path_PKGCONFIG
4094
4095 if test -n "$PKGCONFIG"; then
4096   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4097 echo "${ECHO_T}$PKGCONFIG" >&6
4098 else
4099   echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4101 fi
4102
4103
4104 if test "x$WXCONFIG" = x; then
4105   WXCONFIG=wx-config
4106 fi
4107 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4108 set dummy ${WXCONFIG}; ac_word=$2
4109 echo "$as_me:$LINENO: checking for $ac_word" >&5
4110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4111 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   case $WXCONFIG in
4115   [\\/]* | ?:[\\/]*)
4116   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4117   ;;
4118   *)
4119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122   IFS=$as_save_IFS
4123   test -z "$as_dir" && as_dir=.
4124   for ac_exec_ext in '' $ac_executable_extensions; do
4125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128     break 2
4129   fi
4130 done
4131 done
4132
4133   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4134   ;;
4135 esac
4136 fi
4137 WXCONFIG=$ac_cv_path_WXCONFIG
4138
4139 if test -n "$WXCONFIG"; then
4140   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4141 echo "${ECHO_T}$WXCONFIG" >&6
4142 else
4143   echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4145 fi
4146
4147
4148 # Extract the first word of "cdrecord", so it can be a program name with args.
4149 set dummy cdrecord; ac_word=$2
4150 echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4152 if test "${ac_cv_path_CDRECORD+set}" = set; then
4153   echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155   case $CDRECORD in
4156   [\\/]* | ?:[\\/]*)
4157   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4158   ;;
4159   *)
4160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4162 do
4163   IFS=$as_save_IFS
4164   test -z "$as_dir" && as_dir=.
4165   for ac_exec_ext in '' $ac_executable_extensions; do
4166   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169     break 2
4170   fi
4171 done
4172 done
4173
4174   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4175   ;;
4176 esac
4177 fi
4178 CDRECORD=$ac_cv_path_CDRECORD
4179
4180 if test -n "$CDRECORD"; then
4181   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4182 echo "${ECHO_T}$CDRECORD" >&6
4183 else
4184   echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6
4186 fi
4187
4188 # Extract the first word of "pidof", so it can be a program name with args.
4189 set dummy pidof; ac_word=$2
4190 echo "$as_me:$LINENO: checking for $ac_word" >&5
4191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4192 if test "${ac_cv_path_PIDOF+set}" = set; then
4193   echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195   case $PIDOF in
4196   [\\/]* | ?:[\\/]*)
4197   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4198   ;;
4199   *)
4200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4202 do
4203   IFS=$as_save_IFS
4204   test -z "$as_dir" && as_dir=.
4205   for ac_exec_ext in '' $ac_executable_extensions; do
4206   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209     break 2
4210   fi
4211 done
4212 done
4213
4214   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4215   ;;
4216 esac
4217 fi
4218 PIDOF=$ac_cv_path_PIDOF
4219
4220 if test -n "$PIDOF"; then
4221   echo "$as_me:$LINENO: result: $PIDOF" >&5
4222 echo "${ECHO_T}$PIDOF" >&6
4223 else
4224   echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4226 fi
4227
4228 for ac_prog in gawk mawk nawk awk
4229 do
4230   # Extract the first word of "$ac_prog", so it can be a program name with args.
4231 set dummy $ac_prog; ac_word=$2
4232 echo "$as_me:$LINENO: checking for $ac_word" >&5
4233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4234 if test "${ac_cv_prog_AWK+set}" = set; then
4235   echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237   if test -n "$AWK"; then
4238   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4242 do
4243   IFS=$as_save_IFS
4244   test -z "$as_dir" && as_dir=.
4245   for ac_exec_ext in '' $ac_executable_extensions; do
4246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4247     ac_cv_prog_AWK="$ac_prog"
4248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4249     break 2
4250   fi
4251 done
4252 done
4253
4254 fi
4255 fi
4256 AWK=$ac_cv_prog_AWK
4257 if test -n "$AWK"; then
4258   echo "$as_me:$LINENO: result: $AWK" >&5
4259 echo "${ECHO_T}$AWK" >&6
4260 else
4261   echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4263 fi
4264
4265   test -n "$AWK" && break
4266 done
4267
4268 # Some AWK programs fail, so test it and warn the user
4269 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4270       { if ((prog == $2) || (("(" prog ")") == $2) ||
4271            (("" prog "") == $2) ||
4272            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4273 else
4274   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4275    The regex engine of $AWK is too broken to be used you
4276    might want to install GNU AWK.
4277    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4278 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4279    The regex engine of $AWK is too broken to be used you
4280    might want to install GNU AWK.
4281    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4282    { (exit 1); exit 1; }; }
4283 fi
4284 THE_AWK=$AWK
4285 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4286 set dummy $THE_AWK; ac_word=$2
4287 echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4289 if test "${ac_cv_path_AWK+set}" = set; then
4290   echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292   case $AWK in
4293   [\\/]* | ?:[\\/]*)
4294   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4295   ;;
4296   *)
4297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH
4299 do
4300   IFS=$as_save_IFS
4301   test -z "$as_dir" && as_dir=.
4302   for ac_exec_ext in '' $ac_executable_extensions; do
4303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4304     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4306     break 2
4307   fi
4308 done
4309 done
4310
4311   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4312   ;;
4313 esac
4314 fi
4315 AWK=$ac_cv_path_AWK
4316
4317 if test -n "$AWK"; then
4318   echo "$as_me:$LINENO: result: $AWK" >&5
4319 echo "${ECHO_T}$AWK" >&6
4320 else
4321   echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6
4323 fi
4324
4325
4326 test -n "$ARFLAG" || ARFLAGS="cr"
4327
4328
4329 MAKE_SHELL=/bin/sh
4330
4331
4332
4333
4334
4335
4336
4337 # Make sure we can run config.sub.
4338 $ac_config_sub sun4 >/dev/null 2>&1 ||
4339   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4340 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4341    { (exit 1); exit 1; }; }
4342
4343 echo "$as_me:$LINENO: checking build system type" >&5
4344 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4345 if test "${ac_cv_build+set}" = set; then
4346   echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348   ac_cv_build_alias=$build_alias
4349 test -z "$ac_cv_build_alias" &&
4350   ac_cv_build_alias=`$ac_config_guess`
4351 test -z "$ac_cv_build_alias" &&
4352   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4353 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4354    { (exit 1); exit 1; }; }
4355 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4356   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4357 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4358    { (exit 1); exit 1; }; }
4359
4360 fi
4361 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4362 echo "${ECHO_T}$ac_cv_build" >&6
4363 build=$ac_cv_build
4364 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4365 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4366 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4367
4368
4369
4370 echo "$as_me:$LINENO: checking host system type" >&5
4371 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4372 if test "${ac_cv_host+set}" = set; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   ac_cv_host_alias=$host_alias
4376 test -z "$ac_cv_host_alias" &&
4377   ac_cv_host_alias=$ac_cv_build_alias
4378 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4379   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4380 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4381    { (exit 1); exit 1; }; }
4382
4383 fi
4384 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4385 echo "${ECHO_T}$ac_cv_host" >&6
4386 host=$ac_cv_host
4387 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4388 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4389 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4390
4391
4392 case $host_os in
4393   *cygwin* ) CYGWIN=yes;;
4394          * ) CYGWIN=no;;
4395 esac
4396
4397 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4398 then
4399
4400
4401 if $TRUEPRG; then
4402   HAVE_SUN_OS_TRUE=
4403   HAVE_SUN_OS_FALSE='#'
4404 else
4405   HAVE_SUN_OS_TRUE='#'
4406   HAVE_SUN_OS_FALSE=
4407 fi
4408         cat >>confdefs.h <<\_ACEOF
4409 #define HAVE_SUN_OS 1
4410 _ACEOF
4411
4412 else
4413
4414
4415 if $FALSEPRG; then
4416   HAVE_SUN_OS_TRUE=
4417   HAVE_SUN_OS_FALSE='#'
4418 else
4419   HAVE_SUN_OS_TRUE='#'
4420   HAVE_SUN_OS_FALSE=
4421 fi
4422 fi
4423
4424 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4425 then
4426
4427
4428 if $TRUEPRG; then
4429   HAVE_OSF1_OS_TRUE=
4430   HAVE_OSF1_OS_FALSE='#'
4431 else
4432   HAVE_OSF1_OS_TRUE='#'
4433   HAVE_OSF1_OS_FALSE=
4434 fi
4435         cat >>confdefs.h <<\_ACEOF
4436 #define HAVE_OSF1_OS 1
4437 _ACEOF
4438
4439 else
4440
4441
4442 if $FALSEPRG; then
4443   HAVE_OSF1_OS_TRUE=
4444   HAVE_OSF1_OS_FALSE='#'
4445 else
4446   HAVE_OSF1_OS_TRUE='#'
4447   HAVE_OSF1_OS_FALSE=
4448 fi
4449 fi
4450
4451 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4452 then
4453
4454
4455 if $TRUEPRG; then
4456   HAVE_AIX_OS_TRUE=
4457   HAVE_AIX_OS_FALSE='#'
4458 else
4459   HAVE_AIX_OS_TRUE='#'
4460   HAVE_AIX_OS_FALSE=
4461 fi
4462         cat >>confdefs.h <<\_ACEOF
4463 #define HAVE_AIX_OS 1
4464 _ACEOF
4465
4466 else
4467
4468
4469 if $FALSEPRG; then
4470   HAVE_AIX_OS_TRUE=
4471   HAVE_AIX_OS_FALSE='#'
4472 else
4473   HAVE_AIX_OS_TRUE='#'
4474   HAVE_AIX_OS_FALSE=
4475 fi
4476 fi
4477
4478 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4479 then
4480
4481
4482 if $TRUEPRG; then
4483   HAVE_HPUX_OS_TRUE=
4484   HAVE_HPUX_OS_FALSE='#'
4485 else
4486   HAVE_HPUX_OS_TRUE='#'
4487   HAVE_HPUX_OS_FALSE=
4488 fi
4489         cat >>confdefs.h <<\_ACEOF
4490 #define HAVE_HPUX_OS 1
4491 _ACEOF
4492
4493 else
4494
4495
4496 if $FALSEPRG; then
4497   HAVE_HPUX_OS_TRUE=
4498   HAVE_HPUX_OS_FALSE='#'
4499 else
4500   HAVE_HPUX_OS_TRUE='#'
4501   HAVE_HPUX_OS_FALSE=
4502 fi
4503 fi
4504
4505 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4506 then
4507
4508
4509 if $TRUEPRG; then
4510   HAVE_LINUX_OS_TRUE=
4511   HAVE_LINUX_OS_FALSE='#'
4512 else
4513   HAVE_LINUX_OS_TRUE='#'
4514   HAVE_LINUX_OS_FALSE=
4515 fi
4516         cat >>confdefs.h <<\_ACEOF
4517 #define HAVE_LINUX_OS 1
4518 _ACEOF
4519
4520 else
4521
4522
4523 if $FALSEPRG; then
4524   HAVE_LINUX_OS_TRUE=
4525   HAVE_LINUX_OS_FALSE='#'
4526 else
4527   HAVE_LINUX_OS_TRUE='#'
4528   HAVE_LINUX_OS_FALSE=
4529 fi
4530 fi
4531
4532 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4533 then
4534
4535
4536 if $TRUEPRG; then
4537   HAVE_FREEBSD_OS_TRUE=
4538   HAVE_FREEBSD_OS_FALSE='#'
4539 else
4540   HAVE_FREEBSD_OS_TRUE='#'
4541   HAVE_FREEBSD_OS_FALSE=
4542 fi
4543         cat >>confdefs.h <<\_ACEOF
4544 #define HAVE_FREEBSD_OS 1
4545 _ACEOF
4546
4547 else
4548
4549
4550 if $FALSEPRG; then
4551   HAVE_FREEBSD_OS_TRUE=
4552   HAVE_FREEBSD_OS_FALSE='#'
4553 else
4554   HAVE_FREEBSD_OS_TRUE='#'
4555   HAVE_FREEBSD_OS_FALSE=
4556 fi
4557 fi
4558
4559 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4560 then
4561
4562
4563 if $TRUEPRG; then
4564   HAVE_NETBSD_OS_TRUE=
4565   HAVE_NETBSD_OS_FALSE='#'
4566 else
4567   HAVE_NETBSD_OS_TRUE='#'
4568   HAVE_NETBSD_OS_FALSE=
4569 fi
4570         cat >>confdefs.h <<\_ACEOF
4571 #define HAVE_NETBSD_OS 1
4572 _ACEOF
4573
4574 else
4575
4576
4577 if $FALSEPRG; then
4578   HAVE_NETBSD_OS_TRUE=
4579   HAVE_NETBSD_OS_FALSE='#'
4580 else
4581   HAVE_NETBSD_OS_TRUE='#'
4582   HAVE_NETBSD_OS_FALSE=
4583 fi
4584 fi
4585
4586 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4587 then
4588
4589
4590 if $TRUEPRG; then
4591   HAVE_OPENBSD_OS_TRUE=
4592   HAVE_OPENBSD_OS_FALSE='#'
4593 else
4594   HAVE_OPENBSD_OS_TRUE='#'
4595   HAVE_OPENBSD_OS_FALSE=
4596 fi
4597         cat >>confdefs.h <<\_ACEOF
4598 #define HAVE_OPENBSD_OS 1
4599 _ACEOF
4600
4601 else
4602
4603
4604 if $FALSEPRG; then
4605   HAVE_OPENBSD_OS_TRUE=
4606   HAVE_OPENBSD_OS_FALSE='#'
4607 else
4608   HAVE_OPENBSD_OS_TRUE='#'
4609   HAVE_OPENBSD_OS_FALSE=
4610 fi
4611 fi
4612
4613 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4614 then
4615
4616
4617 if $TRUEPRG; then
4618   HAVE_BSDI_OS_TRUE=
4619   HAVE_BSDI_OS_FALSE='#'
4620 else
4621   HAVE_BSDI_OS_TRUE='#'
4622   HAVE_BSDI_OS_FALSE=
4623 fi
4624         cat >>confdefs.h <<\_ACEOF
4625 #define HAVE_BSDI_OS 1
4626 _ACEOF
4627
4628 else
4629
4630
4631 if $FALSEPRG; then
4632   HAVE_BSDI_OS_TRUE=
4633   HAVE_BSDI_OS_FALSE='#'
4634 else
4635   HAVE_BSDI_OS_TRUE='#'
4636   HAVE_BSDI_OS_FALSE=
4637 fi
4638 fi
4639
4640 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4641 then
4642
4643
4644 if $TRUEPRG; then
4645   HAVE_SGI_OS_TRUE=
4646   HAVE_SGI_OS_FALSE='#'
4647 else
4648   HAVE_SGI_OS_TRUE='#'
4649   HAVE_SGI_OS_FALSE=
4650 fi
4651         cat >>confdefs.h <<\_ACEOF
4652 #define HAVE_SGI_OS 1
4653 _ACEOF
4654
4655 else
4656
4657
4658 if $FALSEPRG; then
4659   HAVE_SGI_OS_TRUE=
4660   HAVE_SGI_OS_FALSE='#'
4661 else
4662   HAVE_SGI_OS_TRUE='#'
4663   HAVE_SGI_OS_FALSE=
4664 fi
4665 fi
4666
4667 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
4668 then
4669
4670
4671 if $TRUEPRG; then
4672   HAVE_IRIX_OS_TRUE=
4673   HAVE_IRIX_OS_FALSE='#'
4674 else
4675   HAVE_IRIX_OS_TRUE='#'
4676   HAVE_IRIX_OS_FALSE=
4677 fi
4678         cat >>confdefs.h <<\_ACEOF
4679 #define HAVE_IRIX_OS 1
4680 _ACEOF
4681
4682 else
4683
4684
4685 if $FALSEPRG; then
4686   HAVE_IRIX_OS_TRUE=
4687   HAVE_IRIX_OS_FALSE='#'
4688 else
4689   HAVE_IRIX_OS_TRUE='#'
4690   HAVE_IRIX_OS_FALSE=
4691 fi
4692 fi
4693
4694 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4695 then
4696
4697
4698 if $TRUEPRG; then
4699   HAVE_DARWIN_OS_TRUE=
4700   HAVE_DARWIN_OS_FALSE='#'
4701 else
4702   HAVE_DARWIN_OS_TRUE='#'
4703   HAVE_DARWIN_OS_FALSE=
4704 fi
4705     cat >>confdefs.h <<\_ACEOF
4706 #define HAVE_DARWIN_OS 1
4707 _ACEOF
4708
4709 else
4710
4711
4712 if $FALSEPRG; then
4713   HAVE_DARWIN_OS_TRUE=
4714   HAVE_DARWIN_OS_FALSE='#'
4715 else
4716   HAVE_DARWIN_OS_TRUE='#'
4717   HAVE_DARWIN_OS_FALSE=
4718 fi
4719 fi
4720
4721
4722 # -----------------------------------------------------------
4723 # ----------------------------------------------------------
4724 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4725 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4726 if test "x$DISTNAME" != "x"
4727 then
4728         echo "distname set to $DISTNAME"
4729 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4730 then
4731         DISTNAME=alpha
4732 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4733 then
4734         DISTNAME=aix
4735 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4736 then
4737         DISTNAME=hpux
4738 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4739 then
4740         DISTNAME=solaris
4741 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4742 then
4743         DISTNAME=freebsd
4744 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4745 then
4746         DISTNAME=netbsd
4747 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4748 then
4749         DISTNAME=openbsd
4750 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4751 then
4752         DISTNAME=irix
4753 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4754 then
4755         DISTNAME=bsdi
4756 elif test -f /etc/SuSE-release
4757 then
4758         DISTNAME=suse
4759 elif test -d /etc/SuSEconfig
4760 then
4761         DISTNAME=suse5
4762 elif test -f /etc/mandrake-release
4763 then
4764         DISTNAME=mandrake
4765 elif test -f /etc/whitebox-release
4766 then
4767        DISTNAME=redhat
4768 elif test -f /etc/redhat-release
4769 then
4770         DISTNAME=redhat
4771 elif test -f /etc/gentoo-release
4772 then
4773         DISTNAME=gentoo
4774 elif test -f /etc/debian_version
4775 then
4776         DISTNAME=debian
4777 elif test -f /etc/slackware-version
4778 then
4779         DISTNAME=slackware
4780 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4781 then
4782     DISTNAME=darwin
4783 elif test -f /etc/engarde-version
4784 then
4785         DISTNAME=engarde
4786 elif test "$CYGWIN" = yes
4787 then
4788         DISTNAME=cygwin
4789         cat >>confdefs.h <<\_ACEOF
4790 #define HAVE_CYGWIN 1
4791 _ACEOF
4792
4793 else
4794         DISTNAME=unknown
4795 fi
4796 echo "$as_me:$LINENO: result: done" >&5
4797 echo "${ECHO_T}done" >&6
4798
4799
4800 # --------------------------------------------------
4801 # Suppport for gettext (translations)
4802 # By default, $datadir is ${prefix}/share
4803 # --------------------------------------------------
4804 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4805 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4806 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4807 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4808   echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810   cat >conftest.make <<\_ACEOF
4811 all:
4812         @echo 'ac_maketemp="$(MAKE)"'
4813 _ACEOF
4814 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4815 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4816 if test -n "$ac_maketemp"; then
4817   eval ac_cv_prog_make_${ac_make}_set=yes
4818 else
4819   eval ac_cv_prog_make_${ac_make}_set=no
4820 fi
4821 rm -f conftest.make
4822 fi
4823 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4824   echo "$as_me:$LINENO: result: yes" >&5
4825 echo "${ECHO_T}yes" >&6
4826   SET_MAKE=
4827 else
4828   echo "$as_me:$LINENO: result: no" >&5
4829 echo "${ECHO_T}no" >&6
4830   SET_MAKE="MAKE=${MAKE-make}"
4831 fi
4832
4833
4834
4835         MKINSTALLDIRS=
4836   if test -n "$ac_aux_dir"; then
4837     case "$ac_aux_dir" in
4838       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4839       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4840     esac
4841   fi
4842   if test -z "$MKINSTALLDIRS"; then
4843     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4844   fi
4845
4846
4847
4848   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4849 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4850     # Check whether --enable-nls or --disable-nls was given.
4851 if test "${enable_nls+set}" = set; then
4852   enableval="$enable_nls"
4853   USE_NLS=$enableval
4854 else
4855   USE_NLS=yes
4856 fi;
4857   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4858 echo "${ECHO_T}$USE_NLS" >&6
4859
4860
4861
4862
4863
4864
4865 # Prepare PATH_SEPARATOR.
4866 # The user is always right.
4867 if test "${PATH_SEPARATOR+set}" != set; then
4868   echo "#! /bin/sh" >conf$$.sh
4869   echo  "exit 0"   >>conf$$.sh
4870   chmod +x conf$$.sh
4871   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4872     PATH_SEPARATOR=';'
4873   else
4874     PATH_SEPARATOR=:
4875   fi
4876   rm -f conf$$.sh
4877 fi
4878
4879 # Find out how to test for executable files. Don't use a zero-byte file,
4880 # as systems may use methods other than mode bits to determine executability.
4881 cat >conf$$.file <<_ASEOF
4882 #! /bin/sh
4883 exit 0
4884 _ASEOF
4885 chmod +x conf$$.file
4886 if test -x conf$$.file >/dev/null 2>&1; then
4887   ac_executable_p="test -x"
4888 else
4889   ac_executable_p="test -f"
4890 fi
4891 rm -f conf$$.file
4892
4893 # Extract the first word of "msgfmt", so it can be a program name with args.
4894 set dummy msgfmt; ac_word=$2
4895 echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4897 if test "${ac_cv_path_MSGFMT+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   case "$MSGFMT" in
4901   [\\/]* | ?:[\\/]*)
4902     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4903     ;;
4904   *)
4905     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4906     for ac_dir in $PATH; do
4907       IFS="$ac_save_IFS"
4908       test -z "$ac_dir" && ac_dir=.
4909       for ac_exec_ext in '' $ac_executable_extensions; do
4910         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4911           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4912           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4913      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4914             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4915             break 2
4916           fi
4917         fi
4918       done
4919     done
4920     IFS="$ac_save_IFS"
4921   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4922     ;;
4923 esac
4924 fi
4925 MSGFMT="$ac_cv_path_MSGFMT"
4926 if test "$MSGFMT" != ":"; then
4927   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4928 echo "${ECHO_T}$MSGFMT" >&6
4929 else
4930   echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6
4932 fi
4933
4934   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4935 set dummy gmsgfmt; ac_word=$2
4936 echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4939   echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941   case $GMSGFMT in
4942   [\\/]* | ?:[\\/]*)
4943   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4944   ;;
4945   *)
4946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949   IFS=$as_save_IFS
4950   test -z "$as_dir" && as_dir=.
4951   for ac_exec_ext in '' $ac_executable_extensions; do
4952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955     break 2
4956   fi
4957 done
4958 done
4959
4960   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4961   ;;
4962 esac
4963 fi
4964 GMSGFMT=$ac_cv_path_GMSGFMT
4965
4966 if test -n "$GMSGFMT"; then
4967   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4968 echo "${ECHO_T}$GMSGFMT" >&6
4969 else
4970   echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6
4972 fi
4973
4974
4975
4976 # Prepare PATH_SEPARATOR.
4977 # The user is always right.
4978 if test "${PATH_SEPARATOR+set}" != set; then
4979   echo "#! /bin/sh" >conf$$.sh
4980   echo  "exit 0"   >>conf$$.sh
4981   chmod +x conf$$.sh
4982   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4983     PATH_SEPARATOR=';'
4984   else
4985     PATH_SEPARATOR=:
4986   fi
4987   rm -f conf$$.sh
4988 fi
4989
4990 # Find out how to test for executable files. Don't use a zero-byte file,
4991 # as systems may use methods other than mode bits to determine executability.
4992 cat >conf$$.file <<_ASEOF
4993 #! /bin/sh
4994 exit 0
4995 _ASEOF
4996 chmod +x conf$$.file
4997 if test -x conf$$.file >/dev/null 2>&1; then
4998   ac_executable_p="test -x"
4999 else
5000   ac_executable_p="test -f"
5001 fi
5002 rm -f conf$$.file
5003
5004 # Extract the first word of "xgettext", so it can be a program name with args.
5005 set dummy xgettext; ac_word=$2
5006 echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5008 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5009   echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011   case "$XGETTEXT" in
5012   [\\/]* | ?:[\\/]*)
5013     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5014     ;;
5015   *)
5016     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5017     for ac_dir in $PATH; do
5018       IFS="$ac_save_IFS"
5019       test -z "$ac_dir" && ac_dir=.
5020       for ac_exec_ext in '' $ac_executable_extensions; do
5021         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5022           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5023           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5024      (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
5025             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5026             break 2
5027           fi
5028         fi
5029       done
5030     done
5031     IFS="$ac_save_IFS"
5032   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5033     ;;
5034 esac
5035 fi
5036 XGETTEXT="$ac_cv_path_XGETTEXT"
5037 if test "$XGETTEXT" != ":"; then
5038   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5039 echo "${ECHO_T}$XGETTEXT" >&6
5040 else
5041   echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6
5043 fi
5044
5045     rm -f messages.po
5046
5047
5048 # Prepare PATH_SEPARATOR.
5049 # The user is always right.
5050 if test "${PATH_SEPARATOR+set}" != set; then
5051   echo "#! /bin/sh" >conf$$.sh
5052   echo  "exit 0"   >>conf$$.sh
5053   chmod +x conf$$.sh
5054   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5055     PATH_SEPARATOR=';'
5056   else
5057     PATH_SEPARATOR=:
5058   fi
5059   rm -f conf$$.sh
5060 fi
5061
5062 # Find out how to test for executable files. Don't use a zero-byte file,
5063 # as systems may use methods other than mode bits to determine executability.
5064 cat >conf$$.file <<_ASEOF
5065 #! /bin/sh
5066 exit 0
5067 _ASEOF
5068 chmod +x conf$$.file
5069 if test -x conf$$.file >/dev/null 2>&1; then
5070   ac_executable_p="test -x"
5071 else
5072   ac_executable_p="test -f"
5073 fi
5074 rm -f conf$$.file
5075
5076 # Extract the first word of "msgmerge", so it can be a program name with args.
5077 set dummy msgmerge; ac_word=$2
5078 echo "$as_me:$LINENO: checking for $ac_word" >&5
5079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5080 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083   case "$MSGMERGE" in
5084   [\\/]* | ?:[\\/]*)
5085     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5086     ;;
5087   *)
5088     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5089     for ac_dir in $PATH; do
5090       IFS="$ac_save_IFS"
5091       test -z "$ac_dir" && ac_dir=.
5092       for ac_exec_ext in '' $ac_executable_extensions; do
5093         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5094           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5095           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5096             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5097             break 2
5098           fi
5099         fi
5100       done
5101     done
5102     IFS="$ac_save_IFS"
5103   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5104     ;;
5105 esac
5106 fi
5107 MSGMERGE="$ac_cv_path_MSGMERGE"
5108 if test "$MSGMERGE" != ":"; then
5109   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5110 echo "${ECHO_T}$MSGMERGE" >&6
5111 else
5112   echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6
5114 fi
5115
5116
5117       if test "$GMSGFMT" != ":"; then
5118             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5119        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5120       : ;
5121     else
5122       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5123       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5124 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5125       GMSGFMT=":"
5126     fi
5127   fi
5128
5129       if test "$XGETTEXT" != ":"; then
5130             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5131        (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
5132       : ;
5133     else
5134       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5135 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5136       XGETTEXT=":"
5137     fi
5138         rm -f messages.po
5139   fi
5140
5141             ac_config_commands="$ac_config_commands default-1"
5142
5143
5144
5145       if test "X$prefix" = "XNONE"; then
5146     acl_final_prefix="$ac_default_prefix"
5147   else
5148     acl_final_prefix="$prefix"
5149   fi
5150   if test "X$exec_prefix" = "XNONE"; then
5151     acl_final_exec_prefix='${prefix}'
5152   else
5153     acl_final_exec_prefix="$exec_prefix"
5154   fi
5155   acl_save_prefix="$prefix"
5156   prefix="$acl_final_prefix"
5157   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5158   prefix="$acl_save_prefix"
5159
5160
5161 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5162 if test "${with_gnu_ld+set}" = set; then
5163   withval="$with_gnu_ld"
5164   test "$withval" = no || with_gnu_ld=yes
5165 else
5166   with_gnu_ld=no
5167 fi;
5168 # Prepare PATH_SEPARATOR.
5169 # The user is always right.
5170 if test "${PATH_SEPARATOR+set}" != set; then
5171   echo "#! /bin/sh" >conf$$.sh
5172   echo  "exit 0"   >>conf$$.sh
5173   chmod +x conf$$.sh
5174   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5175     PATH_SEPARATOR=';'
5176   else
5177     PATH_SEPARATOR=:
5178   fi
5179   rm -f conf$$.sh
5180 fi
5181 ac_prog=ld
5182 if test "$GCC" = yes; then
5183   # Check if gcc -print-prog-name=ld gives a path.
5184   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5185 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5186   case $host in
5187   *-*-mingw*)
5188     # gcc leaves a trailing carriage return which upsets mingw
5189     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5190   *)
5191     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5192   esac
5193   case $ac_prog in
5194     # Accept absolute paths.
5195     [\\/]* | [A-Za-z]:[\\/]*)
5196       re_direlt='/[^/][^/]*/\.\./'
5197       # Canonicalize the path of ld
5198       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5199       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5200         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5201       done
5202       test -z "$LD" && LD="$ac_prog"
5203       ;;
5204   "")
5205     # If it fails, then pretend we aren't using GCC.
5206     ac_prog=ld
5207     ;;
5208   *)
5209     # If it is relative, then search for the first ld in PATH.
5210     with_gnu_ld=unknown
5211     ;;
5212   esac
5213 elif test "$with_gnu_ld" = yes; then
5214   echo "$as_me:$LINENO: checking for GNU ld" >&5
5215 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5216 else
5217   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5218 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5219 fi
5220 if test "${acl_cv_path_LD+set}" = set; then
5221   echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223   if test -z "$LD"; then
5224   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5225   for ac_dir in $PATH; do
5226     test -z "$ac_dir" && ac_dir=.
5227     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5228       acl_cv_path_LD="$ac_dir/$ac_prog"
5229       # Check to see if the program is GNU ld.  I'd rather use --version,
5230       # but apparently some GNU ld's only accept -v.
5231       # Break only if it was the GNU/non-GNU ld that we prefer.
5232       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5233       *GNU* | *'with BFD'*)
5234         test "$with_gnu_ld" != no && break ;;
5235       *)
5236         test "$with_gnu_ld" != yes && break ;;
5237       esac
5238     fi
5239   done
5240   IFS="$ac_save_ifs"
5241 else
5242   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5243 fi
5244 fi
5245
5246 LD="$acl_cv_path_LD"
5247 if test -n "$LD"; then
5248   echo "$as_me:$LINENO: result: $LD" >&5
5249 echo "${ECHO_T}$LD" >&6
5250 else
5251   echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5253 fi
5254 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5255 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5256    { (exit 1); exit 1; }; }
5257 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5258 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5259 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5263 case `$LD -v 2>&1 </dev/null` in
5264 *GNU* | *'with BFD'*)
5265   acl_cv_prog_gnu_ld=yes ;;
5266 *)
5267   acl_cv_prog_gnu_ld=no ;;
5268 esac
5269 fi
5270 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5271 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5272 with_gnu_ld=$acl_cv_prog_gnu_ld
5273
5274
5275
5276
5277                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5278 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5279 if test "${acl_cv_rpath+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282
5283     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5284     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5285     . ./conftest.sh
5286     rm -f ./conftest.sh
5287     acl_cv_rpath=done
5288
5289 fi
5290 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5291 echo "${ECHO_T}$acl_cv_rpath" >&6
5292   wl="$acl_cv_wl"
5293   libext="$acl_cv_libext"
5294   shlibext="$acl_cv_shlibext"
5295   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5296   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5297   hardcode_direct="$acl_cv_hardcode_direct"
5298   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5299     # Check whether --enable-rpath or --disable-rpath was given.
5300 if test "${enable_rpath+set}" = set; then
5301   enableval="$enable_rpath"
5302   :
5303 else
5304   enable_rpath=yes
5305 fi;
5306
5307
5308
5309
5310
5311
5312
5313     use_additional=yes
5314
5315   acl_save_prefix="$prefix"
5316   prefix="$acl_final_prefix"
5317   acl_save_exec_prefix="$exec_prefix"
5318   exec_prefix="$acl_final_exec_prefix"
5319
5320     eval additional_includedir=\"$includedir\"
5321     eval additional_libdir=\"$libdir\"
5322
5323   exec_prefix="$acl_save_exec_prefix"
5324   prefix="$acl_save_prefix"
5325
5326
5327 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5328 if test "${with_libiconv_prefix+set}" = set; then
5329   withval="$with_libiconv_prefix"
5330
5331     if test "X$withval" = "Xno"; then
5332       use_additional=no
5333     else
5334       if test "X$withval" = "X"; then
5335
5336   acl_save_prefix="$prefix"
5337   prefix="$acl_final_prefix"
5338   acl_save_exec_prefix="$exec_prefix"
5339   exec_prefix="$acl_final_exec_prefix"
5340
5341           eval additional_includedir=\"$includedir\"
5342           eval additional_libdir=\"$libdir\"
5343
5344   exec_prefix="$acl_save_exec_prefix"
5345   prefix="$acl_save_prefix"
5346
5347       else
5348         additional_includedir="$withval/include"
5349         additional_libdir="$withval/lib"
5350       fi
5351     fi
5352
5353 fi;
5354       LIBICONV=
5355   LTLIBICONV=
5356   INCICONV=
5357   rpathdirs=
5358   ltrpathdirs=
5359   names_already_handled=
5360   names_next_round='iconv '
5361   while test -n "$names_next_round"; do
5362     names_this_round="$names_next_round"
5363     names_next_round=
5364     for name in $names_this_round; do
5365       already_handled=
5366       for n in $names_already_handled; do
5367         if test "$n" = "$name"; then
5368           already_handled=yes
5369           break
5370         fi
5371       done
5372       if test -z "$already_handled"; then
5373         names_already_handled="$names_already_handled $name"
5374                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5375         eval value=\"\$HAVE_LIB$uppername\"
5376         if test -n "$value"; then
5377           if test "$value" = yes; then
5378             eval value=\"\$LIB$uppername\"
5379             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5380             eval value=\"\$LTLIB$uppername\"
5381             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5382           else
5383                                     :
5384           fi
5385         else
5386                               found_dir=
5387           found_la=
5388           found_so=
5389           found_a=
5390           if test $use_additional = yes; then
5391             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5392               found_dir="$additional_libdir"
5393               found_so="$additional_libdir/lib$name.$shlibext"
5394               if test -f "$additional_libdir/lib$name.la"; then
5395                 found_la="$additional_libdir/lib$name.la"
5396               fi
5397             else
5398               if test -f "$additional_libdir/lib$name.$libext"; then
5399                 found_dir="$additional_libdir"
5400                 found_a="$additional_libdir/lib$name.$libext"
5401                 if test -f "$additional_libdir/lib$name.la"; then
5402                   found_la="$additional_libdir/lib$name.la"
5403                 fi
5404               fi
5405             fi
5406           fi
5407           if test "X$found_dir" = "X"; then
5408             for x in $LDFLAGS $LTLIBICONV; do
5409
5410   acl_save_prefix="$prefix"
5411   prefix="$acl_final_prefix"
5412   acl_save_exec_prefix="$exec_prefix"
5413   exec_prefix="$acl_final_exec_prefix"
5414   eval x=\"$x\"
5415   exec_prefix="$acl_save_exec_prefix"
5416   prefix="$acl_save_prefix"
5417
5418               case "$x" in
5419                 -L*)
5420                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5421                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5422                     found_dir="$dir"
5423                     found_so="$dir/lib$name.$shlibext"
5424                     if test -f "$dir/lib$name.la"; then
5425                       found_la="$dir/lib$name.la"
5426                     fi
5427                   else
5428                     if test -f "$dir/lib$name.$libext"; then
5429                       found_dir="$dir"
5430                       found_a="$dir/lib$name.$libext"
5431                       if test -f "$dir/lib$name.la"; then
5432                         found_la="$dir/lib$name.la"
5433                       fi
5434                     fi
5435                   fi
5436                   ;;
5437               esac
5438               if test "X$found_dir" != "X"; then
5439                 break
5440               fi
5441             done
5442           fi
5443           if test "X$found_dir" != "X"; then
5444                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5445             if test "X$found_so" != "X"; then
5446                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5447                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5448               else
5449                                                                                 haveit=
5450                 for x in $ltrpathdirs; do
5451                   if test "X$x" = "X$found_dir"; then
5452                     haveit=yes
5453                     break
5454                   fi
5455                 done
5456                 if test -z "$haveit"; then
5457                   ltrpathdirs="$ltrpathdirs $found_dir"
5458                 fi
5459                                 if test "$hardcode_direct" = yes; then
5460                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5461                 else
5462                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5463                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5464                                                             haveit=
5465                     for x in $rpathdirs; do
5466                       if test "X$x" = "X$found_dir"; then
5467                         haveit=yes
5468                         break
5469                       fi
5470                     done
5471                     if test -z "$haveit"; then
5472                       rpathdirs="$rpathdirs $found_dir"
5473                     fi
5474                   else
5475                                                                                 haveit=
5476                     for x in $LDFLAGS $LIBICONV; do
5477
5478   acl_save_prefix="$prefix"
5479   prefix="$acl_final_prefix"
5480   acl_save_exec_prefix="$exec_prefix"
5481   exec_prefix="$acl_final_exec_prefix"
5482   eval x=\"$x\"
5483   exec_prefix="$acl_save_exec_prefix"
5484   prefix="$acl_save_prefix"
5485
5486                       if test "X$x" = "X-L$found_dir"; then
5487                         haveit=yes
5488                         break
5489                       fi
5490                     done
5491                     if test -z "$haveit"; then
5492                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5493                     fi
5494                     if test "$hardcode_minus_L" != no; then
5495                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5496                     else
5497                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5498                     fi
5499                   fi
5500                 fi
5501               fi
5502             else
5503               if test "X$found_a" != "X"; then
5504                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5505               else
5506                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5507               fi
5508             fi
5509                         additional_includedir=
5510             case "$found_dir" in
5511               */lib | */lib/)
5512                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5513                 additional_includedir="$basedir/include"
5514                 ;;
5515             esac
5516             if test "X$additional_includedir" != "X"; then
5517                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5518                 haveit=
5519                 if test "X$additional_includedir" = "X/usr/local/include"; then
5520                   if test -n "$GCC"; then
5521                     case $host_os in
5522                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5523                     esac
5524                   fi
5525                 fi
5526                 if test -z "$haveit"; then
5527                   for x in $CPPFLAGS $INCICONV; do
5528
5529   acl_save_prefix="$prefix"
5530   prefix="$acl_final_prefix"
5531   acl_save_exec_prefix="$exec_prefix"
5532   exec_prefix="$acl_final_exec_prefix"
5533   eval x=\"$x\"
5534   exec_prefix="$acl_save_exec_prefix"
5535   prefix="$acl_save_prefix"
5536
5537                     if test "X$x" = "X-I$additional_includedir"; then
5538                       haveit=yes
5539                       break
5540                     fi
5541                   done
5542                   if test -z "$haveit"; then
5543                     if test -d "$additional_includedir"; then
5544                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5545                     fi
5546                   fi
5547                 fi
5548               fi
5549             fi
5550                         if test -n "$found_la"; then
5551                                                         save_libdir="$libdir"
5552               case "$found_la" in
5553                 */* | *\\*) . "$found_la" ;;
5554                 *) . "./$found_la" ;;
5555               esac
5556               libdir="$save_libdir"
5557                             for dep in $dependency_libs; do
5558                 case "$dep" in
5559                   -L*)
5560                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5561                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5562                       haveit=
5563                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5564                         if test -n "$GCC"; then
5565                           case $host_os in
5566                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5567                           esac
5568                         fi
5569                       fi
5570                       if test -z "$haveit"; then
5571                         haveit=
5572                         for x in $LDFLAGS $LIBICONV; do
5573
5574   acl_save_prefix="$prefix"
5575   prefix="$acl_final_prefix"
5576   acl_save_exec_prefix="$exec_prefix"
5577   exec_prefix="$acl_final_exec_prefix"
5578   eval x=\"$x\"
5579   exec_prefix="$acl_save_exec_prefix"
5580   prefix="$acl_save_prefix"
5581
5582                           if test "X$x" = "X-L$additional_libdir"; then
5583                             haveit=yes
5584                             break
5585                           fi
5586                         done
5587                         if test -z "$haveit"; then
5588                           if test -d "$additional_libdir"; then
5589                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5590                           fi
5591                         fi
5592                         haveit=
5593                         for x in $LDFLAGS $LTLIBICONV; do
5594
5595   acl_save_prefix="$prefix"
5596   prefix="$acl_final_prefix"
5597   acl_save_exec_prefix="$exec_prefix"
5598   exec_prefix="$acl_final_exec_prefix"
5599   eval x=\"$x\"
5600   exec_prefix="$acl_save_exec_prefix"
5601   prefix="$acl_save_prefix"
5602
5603                           if test "X$x" = "X-L$additional_libdir"; then
5604                             haveit=yes
5605                             break
5606                           fi
5607                         done
5608                         if test -z "$haveit"; then
5609                           if test -d "$additional_libdir"; then
5610                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5611                           fi
5612                         fi
5613                       fi
5614                     fi
5615                     ;;
5616                   -R*)
5617                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5618                     if test "$enable_rpath" != no; then
5619                                                                   haveit=
5620                       for x in $rpathdirs; do
5621                         if test "X$x" = "X$dir"; then
5622                           haveit=yes
5623                           break
5624                         fi
5625                       done
5626                       if test -z "$haveit"; then
5627                         rpathdirs="$rpathdirs $dir"
5628                       fi
5629                                                                   haveit=
5630                       for x in $ltrpathdirs; do
5631                         if test "X$x" = "X$dir"; then
5632                           haveit=yes
5633                           break
5634                         fi
5635                       done
5636                       if test -z "$haveit"; then
5637                         ltrpathdirs="$ltrpathdirs $dir"
5638                       fi
5639                     fi
5640                     ;;
5641                   -l*)
5642                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5643                     ;;
5644                   *.la)
5645                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5646                     ;;
5647                   *)
5648                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5649                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5650                     ;;
5651                 esac
5652               done
5653             fi
5654           else
5655                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5656             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5657           fi
5658         fi
5659       fi
5660     done
5661   done
5662   if test "X$rpathdirs" != "X"; then
5663     if test -n "$hardcode_libdir_separator"; then
5664                         alldirs=
5665       for found_dir in $rpathdirs; do
5666         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5667       done
5668             acl_save_libdir="$libdir"
5669       libdir="$alldirs"
5670       eval flag=\"$hardcode_libdir_flag_spec\"
5671       libdir="$acl_save_libdir"
5672       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5673     else
5674             for found_dir in $rpathdirs; do
5675         acl_save_libdir="$libdir"
5676         libdir="$found_dir"
5677         eval flag=\"$hardcode_libdir_flag_spec\"
5678         libdir="$acl_save_libdir"
5679         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5680       done
5681     fi
5682   fi
5683   if test "X$ltrpathdirs" != "X"; then
5684             for found_dir in $ltrpathdirs; do
5685       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5686     done
5687   fi
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5707 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5708 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   gt_save_CPPFLAGS="$CPPFLAGS"
5712      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5713      gt_save_LIBS="$LIBS"
5714      LIBS="$LIBS -framework CoreFoundation"
5715      cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h.  */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h.  */
5721 #include <CFPreferences.h>
5722 int
5723 main ()
5724 {
5725 CFPreferencesCopyAppValue(NULL, NULL)
5726   ;
5727   return 0;
5728 }
5729 _ACEOF
5730 rm -f conftest.$ac_objext conftest$ac_exeext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5732   (eval $ac_link) 2>conftest.er1
5733   ac_status=$?
5734   grep -v '^ *+' conftest.er1 >conftest.err
5735   rm -f conftest.er1
5736   cat conftest.err >&5
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); } &&
5739          { ac_try='test -z "$ac_c_werror_flag"
5740                          || test ! -s conftest.err'
5741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742   (eval $ac_try) 2>&5
5743   ac_status=$?
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); }; } &&
5746          { ac_try='test -s conftest$ac_exeext'
5747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748   (eval $ac_try) 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); }; }; then
5752   gt_cv_func_CFPreferencesCopyAppValue=yes
5753 else
5754   echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5756
5757 gt_cv_func_CFPreferencesCopyAppValue=no
5758 fi
5759 rm -f conftest.err conftest.$ac_objext \
5760       conftest$ac_exeext conftest.$ac_ext
5761      CPPFLAGS="$gt_save_CPPFLAGS"
5762      LIBS="$gt_save_LIBS"
5763 fi
5764 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5765 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5766   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5767
5768 cat >>confdefs.h <<\_ACEOF
5769 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5770 _ACEOF
5771
5772   fi
5773     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5774 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5775 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5776   echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778   gt_save_CPPFLAGS="$CPPFLAGS"
5779      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5780      gt_save_LIBS="$LIBS"
5781      LIBS="$LIBS -framework CoreFoundation"
5782      cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h.  */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h.  */
5788 #include <CFLocale.h>
5789 int
5790 main ()
5791 {
5792 CFLocaleCopyCurrent();
5793   ;
5794   return 0;
5795 }
5796 _ACEOF
5797 rm -f conftest.$ac_objext conftest$ac_exeext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5799   (eval $ac_link) 2>conftest.er1
5800   ac_status=$?
5801   grep -v '^ *+' conftest.er1 >conftest.err
5802   rm -f conftest.er1
5803   cat conftest.err >&5
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); } &&
5806          { ac_try='test -z "$ac_c_werror_flag"
5807                          || test ! -s conftest.err'
5808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809   (eval $ac_try) 2>&5
5810   ac_status=$?
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); }; } &&
5813          { ac_try='test -s conftest$ac_exeext'
5814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815   (eval $ac_try) 2>&5
5816   ac_status=$?
5817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818   (exit $ac_status); }; }; then
5819   gt_cv_func_CFLocaleCopyCurrent=yes
5820 else
5821   echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5823
5824 gt_cv_func_CFLocaleCopyCurrent=no
5825 fi
5826 rm -f conftest.err conftest.$ac_objext \
5827       conftest$ac_exeext conftest.$ac_ext
5828      CPPFLAGS="$gt_save_CPPFLAGS"
5829      LIBS="$gt_save_LIBS"
5830 fi
5831 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5832 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5833   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5834
5835 cat >>confdefs.h <<\_ACEOF
5836 #define HAVE_CFLOCALECOPYCURRENT 1
5837 _ACEOF
5838
5839   fi
5840   INTL_MACOSX_LIBS=
5841   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5842     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5843   fi
5844
5845
5846
5847
5848   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5849 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5850     # Check whether --enable-nls or --disable-nls was given.
5851 if test "${enable_nls+set}" = set; then
5852   enableval="$enable_nls"
5853   USE_NLS=$enableval
5854 else
5855   USE_NLS=yes
5856 fi;
5857   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5858 echo "${ECHO_T}$USE_NLS" >&6
5859
5860
5861
5862
5863   LIBINTL=
5864   LTLIBINTL=
5865   POSUB=
5866
5867     if test "$USE_NLS" = "yes"; then
5868     gt_use_preinstalled_gnugettext=no
5869
5870
5871
5872
5873
5874
5875         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5876 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5877 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h.  */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h.  */
5886 #include <libintl.h>
5887 extern int _nl_msg_cat_cntr;
5888 extern int *_nl_domain_bindings;
5889 int
5890 main ()
5891 {
5892 bindtextdomain ("", "");
5893 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5894   ;
5895   return 0;
5896 }
5897 _ACEOF
5898 rm -f conftest.$ac_objext conftest$ac_exeext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5900   (eval $ac_link) 2>conftest.er1
5901   ac_status=$?
5902   grep -v '^ *+' conftest.er1 >conftest.err
5903   rm -f conftest.er1
5904   cat conftest.err >&5
5905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906   (exit $ac_status); } &&
5907          { ac_try='test -z "$ac_c_werror_flag"
5908                          || test ! -s conftest.err'
5909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910   (eval $ac_try) 2>&5
5911   ac_status=$?
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); }; } &&
5914          { ac_try='test -s conftest$ac_exeext'
5915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916   (eval $ac_try) 2>&5
5917   ac_status=$?
5918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919   (exit $ac_status); }; }; then
5920   gt_cv_func_gnugettext1_libc=yes
5921 else
5922   echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925 gt_cv_func_gnugettext1_libc=no
5926 fi
5927 rm -f conftest.err conftest.$ac_objext \
5928       conftest$ac_exeext conftest.$ac_ext
5929 fi
5930 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5931 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5932
5933         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5934
5935
5936
5937
5938
5939           am_save_CPPFLAGS="$CPPFLAGS"
5940
5941   for element in $INCICONV; do
5942     haveit=
5943     for x in $CPPFLAGS; do
5944
5945   acl_save_prefix="$prefix"
5946   prefix="$acl_final_prefix"
5947   acl_save_exec_prefix="$exec_prefix"
5948   exec_prefix="$acl_final_exec_prefix"
5949   eval x=\"$x\"
5950   exec_prefix="$acl_save_exec_prefix"
5951   prefix="$acl_save_prefix"
5952
5953       if test "X$x" = "X$element"; then
5954         haveit=yes
5955         break
5956       fi
5957     done
5958     if test -z "$haveit"; then
5959       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5960     fi
5961   done
5962
5963
5964   echo "$as_me:$LINENO: checking for iconv" >&5
5965 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5966 if test "${am_cv_func_iconv+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969
5970     am_cv_func_iconv="no, consider installing GNU libiconv"
5971     am_cv_lib_iconv=no
5972     cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h.  */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h.  */
5978 #include <stdlib.h>
5979 #include <iconv.h>
5980 int
5981 main ()
5982 {
5983 iconv_t cd = iconv_open("","");
5984        iconv(cd,NULL,NULL,NULL,NULL);
5985        iconv_close(cd);
5986   ;
5987   return 0;
5988 }
5989 _ACEOF
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5992   (eval $ac_link) 2>conftest.er1
5993   ac_status=$?
5994   grep -v '^ *+' conftest.er1 >conftest.err
5995   rm -f conftest.er1
5996   cat conftest.err >&5
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); } &&
5999          { ac_try='test -z "$ac_c_werror_flag"
6000                          || test ! -s conftest.err'
6001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002   (eval $ac_try) 2>&5
6003   ac_status=$?
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); }; } &&
6006          { ac_try='test -s conftest$ac_exeext'
6007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008   (eval $ac_try) 2>&5
6009   ac_status=$?
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); }; }; then
6012   am_cv_func_iconv=yes
6013 else
6014   echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 fi
6018 rm -f conftest.err conftest.$ac_objext \
6019       conftest$ac_exeext conftest.$ac_ext
6020     if test "$am_cv_func_iconv" != yes; then
6021       am_save_LIBS="$LIBS"
6022       LIBS="$LIBS $LIBICONV"
6023       cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h.  */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h.  */
6029 #include <stdlib.h>
6030 #include <iconv.h>
6031 int
6032 main ()
6033 {
6034 iconv_t cd = iconv_open("","");
6035          iconv(cd,NULL,NULL,NULL,NULL);
6036          iconv_close(cd);
6037   ;
6038   return 0;
6039 }
6040 _ACEOF
6041 rm -f conftest.$ac_objext conftest$ac_exeext
6042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6043   (eval $ac_link) 2>conftest.er1
6044   ac_status=$?
6045   grep -v '^ *+' conftest.er1 >conftest.err
6046   rm -f conftest.er1
6047   cat conftest.err >&5
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); } &&
6050          { ac_try='test -z "$ac_c_werror_flag"
6051                          || test ! -s conftest.err'
6052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053   (eval $ac_try) 2>&5
6054   ac_status=$?
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); }; } &&
6057          { ac_try='test -s conftest$ac_exeext'
6058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059   (eval $ac_try) 2>&5
6060   ac_status=$?
6061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062   (exit $ac_status); }; }; then
6063   am_cv_lib_iconv=yes
6064         am_cv_func_iconv=yes
6065 else
6066   echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6068
6069 fi
6070 rm -f conftest.err conftest.$ac_objext \
6071       conftest$ac_exeext conftest.$ac_ext
6072       LIBS="$am_save_LIBS"
6073     fi
6074
6075 fi
6076 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6077 echo "${ECHO_T}$am_cv_func_iconv" >&6
6078   if test "$am_cv_func_iconv" = yes; then
6079
6080 cat >>confdefs.h <<\_ACEOF
6081 #define HAVE_ICONV 1
6082 _ACEOF
6083
6084   fi
6085   if test "$am_cv_lib_iconv" = yes; then
6086     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6087 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6088     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6089 echo "${ECHO_T}$LIBICONV" >&6
6090   else
6091             CPPFLAGS="$am_save_CPPFLAGS"
6092     LIBICONV=
6093     LTLIBICONV=
6094   fi
6095
6096
6097
6098
6099
6100
6101     use_additional=yes
6102
6103   acl_save_prefix="$prefix"
6104   prefix="$acl_final_prefix"
6105   acl_save_exec_prefix="$exec_prefix"
6106   exec_prefix="$acl_final_exec_prefix"
6107
6108     eval additional_includedir=\"$includedir\"
6109     eval additional_libdir=\"$libdir\"
6110
6111   exec_prefix="$acl_save_exec_prefix"
6112   prefix="$acl_save_prefix"
6113
6114
6115 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6116 if test "${with_libintl_prefix+set}" = set; then
6117   withval="$with_libintl_prefix"
6118
6119     if test "X$withval" = "Xno"; then
6120       use_additional=no
6121     else
6122       if test "X$withval" = "X"; then
6123
6124   acl_save_prefix="$prefix"
6125   prefix="$acl_final_prefix"
6126   acl_save_exec_prefix="$exec_prefix"
6127   exec_prefix="$acl_final_exec_prefix"
6128
6129           eval additional_includedir=\"$includedir\"
6130           eval additional_libdir=\"$libdir\"
6131
6132   exec_prefix="$acl_save_exec_prefix"
6133   prefix="$acl_save_prefix"
6134
6135       else
6136         additional_includedir="$withval/include"
6137         additional_libdir="$withval/lib"
6138       fi
6139     fi
6140
6141 fi;
6142       LIBINTL=
6143   LTLIBINTL=
6144   INCINTL=
6145   rpathdirs=
6146   ltrpathdirs=
6147   names_already_handled=
6148   names_next_round='intl '
6149   while test -n "$names_next_round"; do
6150     names_this_round="$names_next_round"
6151     names_next_round=
6152     for name in $names_this_round; do
6153       already_handled=
6154       for n in $names_already_handled; do
6155         if test "$n" = "$name"; then
6156           already_handled=yes
6157           break
6158         fi
6159       done
6160       if test -z "$already_handled"; then
6161         names_already_handled="$names_already_handled $name"
6162                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6163         eval value=\"\$HAVE_LIB$uppername\"
6164         if test -n "$value"; then
6165           if test "$value" = yes; then
6166             eval value=\"\$LIB$uppername\"
6167             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6168             eval value=\"\$LTLIB$uppername\"
6169             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6170           else
6171                                     :
6172           fi
6173         else
6174                               found_dir=
6175           found_la=
6176           found_so=
6177           found_a=
6178           if test $use_additional = yes; then
6179             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6180               found_dir="$additional_libdir"
6181               found_so="$additional_libdir/lib$name.$shlibext"
6182               if test -f "$additional_libdir/lib$name.la"; then
6183                 found_la="$additional_libdir/lib$name.la"
6184               fi
6185             else
6186               if test -f "$additional_libdir/lib$name.$libext"; then
6187                 found_dir="$additional_libdir"
6188                 found_a="$additional_libdir/lib$name.$libext"
6189                 if test -f "$additional_libdir/lib$name.la"; then
6190                   found_la="$additional_libdir/lib$name.la"
6191                 fi
6192               fi
6193             fi
6194           fi
6195           if test "X$found_dir" = "X"; then
6196             for x in $LDFLAGS $LTLIBINTL; do
6197
6198   acl_save_prefix="$prefix"
6199   prefix="$acl_final_prefix"
6200   acl_save_exec_prefix="$exec_prefix"
6201   exec_prefix="$acl_final_exec_prefix"
6202   eval x=\"$x\"
6203   exec_prefix="$acl_save_exec_prefix"
6204   prefix="$acl_save_prefix"
6205
6206               case "$x" in
6207                 -L*)
6208                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6209                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6210                     found_dir="$dir"
6211                     found_so="$dir/lib$name.$shlibext"
6212                     if test -f "$dir/lib$name.la"; then
6213                       found_la="$dir/lib$name.la"
6214                     fi
6215                   else
6216                     if test -f "$dir/lib$name.$libext"; then
6217                       found_dir="$dir"
6218                       found_a="$dir/lib$name.$libext"
6219                       if test -f "$dir/lib$name.la"; then
6220                         found_la="$dir/lib$name.la"
6221                       fi
6222                     fi
6223                   fi
6224                   ;;
6225               esac
6226               if test "X$found_dir" != "X"; then
6227                 break
6228               fi
6229             done
6230           fi
6231           if test "X$found_dir" != "X"; then
6232                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6233             if test "X$found_so" != "X"; then
6234                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6235                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6236               else
6237                                                                                 haveit=
6238                 for x in $ltrpathdirs; do
6239                   if test "X$x" = "X$found_dir"; then
6240                     haveit=yes
6241                     break
6242                   fi
6243                 done
6244                 if test -z "$haveit"; then
6245                   ltrpathdirs="$ltrpathdirs $found_dir"
6246                 fi
6247                                 if test "$hardcode_direct" = yes; then
6248                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6249                 else
6250                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6251                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6252                                                             haveit=
6253                     for x in $rpathdirs; do
6254                       if test "X$x" = "X$found_dir"; then
6255                         haveit=yes
6256                         break
6257                       fi
6258                     done
6259                     if test -z "$haveit"; then
6260                       rpathdirs="$rpathdirs $found_dir"
6261                     fi
6262                   else
6263                                                                                 haveit=
6264                     for x in $LDFLAGS $LIBINTL; do
6265
6266   acl_save_prefix="$prefix"
6267   prefix="$acl_final_prefix"
6268   acl_save_exec_prefix="$exec_prefix"
6269   exec_prefix="$acl_final_exec_prefix"
6270   eval x=\"$x\"
6271   exec_prefix="$acl_save_exec_prefix"
6272   prefix="$acl_save_prefix"
6273
6274                       if test "X$x" = "X-L$found_dir"; then
6275                         haveit=yes
6276                         break
6277                       fi
6278                     done
6279                     if test -z "$haveit"; then
6280                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6281                     fi
6282                     if test "$hardcode_minus_L" != no; then
6283                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6284                     else
6285                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6286                     fi
6287                   fi
6288                 fi
6289               fi
6290             else
6291               if test "X$found_a" != "X"; then
6292                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6293               else
6294                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6295               fi
6296             fi
6297                         additional_includedir=
6298             case "$found_dir" in
6299               */lib | */lib/)
6300                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6301                 additional_includedir="$basedir/include"
6302                 ;;
6303             esac
6304             if test "X$additional_includedir" != "X"; then
6305                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6306                 haveit=
6307                 if test "X$additional_includedir" = "X/usr/local/include"; then
6308                   if test -n "$GCC"; then
6309                     case $host_os in
6310                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6311                     esac
6312                   fi
6313                 fi
6314                 if test -z "$haveit"; then
6315                   for x in $CPPFLAGS $INCINTL; do
6316
6317   acl_save_prefix="$prefix"
6318   prefix="$acl_final_prefix"
6319   acl_save_exec_prefix="$exec_prefix"
6320   exec_prefix="$acl_final_exec_prefix"
6321   eval x=\"$x\"
6322   exec_prefix="$acl_save_exec_prefix"
6323   prefix="$acl_save_prefix"
6324
6325                     if test "X$x" = "X-I$additional_includedir"; then
6326                       haveit=yes
6327                       break
6328                     fi
6329                   done
6330                   if test -z "$haveit"; then
6331                     if test -d "$additional_includedir"; then
6332                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6333                     fi
6334                   fi
6335                 fi
6336               fi
6337             fi
6338                         if test -n "$found_la"; then
6339                                                         save_libdir="$libdir"
6340               case "$found_la" in
6341                 */* | *\\*) . "$found_la" ;;
6342                 *) . "./$found_la" ;;
6343               esac
6344               libdir="$save_libdir"
6345                             for dep in $dependency_libs; do
6346                 case "$dep" in
6347                   -L*)
6348                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6349                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6350                       haveit=
6351                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6352                         if test -n "$GCC"; then
6353                           case $host_os in
6354                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6355                           esac
6356                         fi
6357                       fi
6358                       if test -z "$haveit"; then
6359                         haveit=
6360                         for x in $LDFLAGS $LIBINTL; do
6361
6362   acl_save_prefix="$prefix"
6363   prefix="$acl_final_prefix"
6364   acl_save_exec_prefix="$exec_prefix"
6365   exec_prefix="$acl_final_exec_prefix"
6366   eval x=\"$x\"
6367   exec_prefix="$acl_save_exec_prefix"
6368   prefix="$acl_save_prefix"
6369
6370                           if test "X$x" = "X-L$additional_libdir"; then
6371                             haveit=yes
6372                             break
6373                           fi
6374                         done
6375                         if test -z "$haveit"; then
6376                           if test -d "$additional_libdir"; then
6377                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6378                           fi
6379                         fi
6380                         haveit=
6381                         for x in $LDFLAGS $LTLIBINTL; do
6382
6383   acl_save_prefix="$prefix"
6384   prefix="$acl_final_prefix"
6385   acl_save_exec_prefix="$exec_prefix"
6386   exec_prefix="$acl_final_exec_prefix"
6387   eval x=\"$x\"
6388   exec_prefix="$acl_save_exec_prefix"
6389   prefix="$acl_save_prefix"
6390
6391                           if test "X$x" = "X-L$additional_libdir"; then
6392                             haveit=yes
6393                             break
6394                           fi
6395                         done
6396                         if test -z "$haveit"; then
6397                           if test -d "$additional_libdir"; then
6398                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6399                           fi
6400                         fi
6401                       fi
6402                     fi
6403                     ;;
6404                   -R*)
6405                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6406                     if test "$enable_rpath" != no; then
6407                                                                   haveit=
6408                       for x in $rpathdirs; do
6409                         if test "X$x" = "X$dir"; then
6410                           haveit=yes
6411                           break
6412                         fi
6413                       done
6414                       if test -z "$haveit"; then
6415                         rpathdirs="$rpathdirs $dir"
6416                       fi
6417                                                                   haveit=
6418                       for x in $ltrpathdirs; do
6419                         if test "X$x" = "X$dir"; then
6420                           haveit=yes
6421                           break
6422                         fi
6423                       done
6424                       if test -z "$haveit"; then
6425                         ltrpathdirs="$ltrpathdirs $dir"
6426                       fi
6427                     fi
6428                     ;;
6429                   -l*)
6430                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6431                     ;;
6432                   *.la)
6433                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6434                     ;;
6435                   *)
6436                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6437                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6438                     ;;
6439                 esac
6440               done
6441             fi
6442           else
6443                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6444             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6445           fi
6446         fi
6447       fi
6448     done
6449   done
6450   if test "X$rpathdirs" != "X"; then
6451     if test -n "$hardcode_libdir_separator"; then
6452                         alldirs=
6453       for found_dir in $rpathdirs; do
6454         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6455       done
6456             acl_save_libdir="$libdir"
6457       libdir="$alldirs"
6458       eval flag=\"$hardcode_libdir_flag_spec\"
6459       libdir="$acl_save_libdir"
6460       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6461     else
6462             for found_dir in $rpathdirs; do
6463         acl_save_libdir="$libdir"
6464         libdir="$found_dir"
6465         eval flag=\"$hardcode_libdir_flag_spec\"
6466         libdir="$acl_save_libdir"
6467         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6468       done
6469     fi
6470   fi
6471   if test "X$ltrpathdirs" != "X"; then
6472             for found_dir in $ltrpathdirs; do
6473       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6474     done
6475   fi
6476
6477           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6478 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6479 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6480   echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482   gt_save_CPPFLAGS="$CPPFLAGS"
6483             CPPFLAGS="$CPPFLAGS $INCINTL"
6484             gt_save_LIBS="$LIBS"
6485             LIBS="$LIBS $LIBINTL"
6486                         cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h.  */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h.  */
6492 #include <libintl.h>
6493 extern int _nl_msg_cat_cntr;
6494 extern
6495 #ifdef __cplusplus
6496 "C"
6497 #endif
6498 const char *_nl_expand_alias (const char *);
6499 int
6500 main ()
6501 {
6502 bindtextdomain ("", "");
6503 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6504   ;
6505   return 0;
6506 }
6507 _ACEOF
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6510   (eval $ac_link) 2>conftest.er1
6511   ac_status=$?
6512   grep -v '^ *+' conftest.er1 >conftest.err
6513   rm -f conftest.er1
6514   cat conftest.err >&5
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); } &&
6517          { ac_try='test -z "$ac_c_werror_flag"
6518                          || test ! -s conftest.err'
6519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520   (eval $ac_try) 2>&5
6521   ac_status=$?
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); }; } &&
6524          { ac_try='test -s conftest$ac_exeext'
6525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526   (eval $ac_try) 2>&5
6527   ac_status=$?
6528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); }; }; then
6530   gt_cv_func_gnugettext1_libintl=yes
6531 else
6532   echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6534
6535 gt_cv_func_gnugettext1_libintl=no
6536 fi
6537 rm -f conftest.err conftest.$ac_objext \
6538       conftest$ac_exeext conftest.$ac_ext
6539                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6540               LIBS="$LIBS $LIBICONV"
6541               cat >conftest.$ac_ext <<_ACEOF
6542 /* confdefs.h.  */
6543 _ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h.  */
6547 #include <libintl.h>
6548 extern int _nl_msg_cat_cntr;
6549 extern
6550 #ifdef __cplusplus
6551 "C"
6552 #endif
6553 const char *_nl_expand_alias (const char *);
6554 int
6555 main ()
6556 {
6557 bindtextdomain ("", "");
6558 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6559   ;
6560   return 0;
6561 }
6562 _ACEOF
6563 rm -f conftest.$ac_objext conftest$ac_exeext
6564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6565   (eval $ac_link) 2>conftest.er1
6566   ac_status=$?
6567   grep -v '^ *+' conftest.er1 >conftest.err
6568   rm -f conftest.er1
6569   cat conftest.err >&5
6570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571   (exit $ac_status); } &&
6572          { ac_try='test -z "$ac_c_werror_flag"
6573                          || test ! -s conftest.err'
6574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575   (eval $ac_try) 2>&5
6576   ac_status=$?
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); }; } &&
6579          { ac_try='test -s conftest$ac_exeext'
6580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581   (eval $ac_try) 2>&5
6582   ac_status=$?
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); }; }; then
6585   LIBINTL="$LIBINTL $LIBICONV"
6586                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6587                 gt_cv_func_gnugettext1_libintl=yes
6588
6589 else
6590   echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 fi
6594 rm -f conftest.err conftest.$ac_objext \
6595       conftest$ac_exeext conftest.$ac_ext
6596             fi
6597             CPPFLAGS="$gt_save_CPPFLAGS"
6598             LIBS="$gt_save_LIBS"
6599 fi
6600 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6601 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6602         fi
6603
6604                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6605            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6606                 && test "$PACKAGE" != gettext-runtime \
6607                 && test "$PACKAGE" != gettext-tools; }; then
6608           gt_use_preinstalled_gnugettext=yes
6609         else
6610                     LIBINTL=
6611           LTLIBINTL=
6612           INCINTL=
6613         fi
6614
6615
6616
6617     if test -n "$INTL_MACOSX_LIBS"; then
6618       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6619          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6620                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6621         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6622       fi
6623     fi
6624
6625     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6626        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6627
6628 cat >>confdefs.h <<\_ACEOF
6629 #define ENABLE_NLS 1
6630 _ACEOF
6631
6632     else
6633       USE_NLS=no
6634     fi
6635   fi
6636
6637   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6638 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6639   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6640 echo "${ECHO_T}$USE_NLS" >&6
6641   if test "$USE_NLS" = "yes"; then
6642     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6643 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6644     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6645       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6646         gt_source="external libintl"
6647       else
6648         gt_source="libc"
6649       fi
6650     else
6651       gt_source="included intl directory"
6652     fi
6653     echo "$as_me:$LINENO: result: $gt_source" >&5
6654 echo "${ECHO_T}$gt_source" >&6
6655   fi
6656
6657   if test "$USE_NLS" = "yes"; then
6658
6659     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6660       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6661         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6662 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6663         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6664 echo "${ECHO_T}$LIBINTL" >&6
6665
6666   for element in $INCINTL; do
6667     haveit=
6668     for x in $CPPFLAGS; do
6669
6670   acl_save_prefix="$prefix"
6671   prefix="$acl_final_prefix"
6672   acl_save_exec_prefix="$exec_prefix"
6673   exec_prefix="$acl_final_exec_prefix"
6674   eval x=\"$x\"
6675   exec_prefix="$acl_save_exec_prefix"
6676   prefix="$acl_save_prefix"
6677
6678       if test "X$x" = "X$element"; then
6679         haveit=yes
6680         break
6681       fi
6682     done
6683     if test -z "$haveit"; then
6684       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6685     fi
6686   done
6687
6688       fi
6689
6690
6691 cat >>confdefs.h <<\_ACEOF
6692 #define HAVE_GETTEXT 1
6693 _ACEOF
6694
6695
6696 cat >>confdefs.h <<\_ACEOF
6697 #define HAVE_DCGETTEXT 1
6698 _ACEOF
6699
6700     fi
6701
6702         POSUB=po
6703   fi
6704
6705
6706
6707     INTLLIBS="$LIBINTL"
6708
6709
6710
6711
6712
6713
6714 if test x${prefix} = xNONE ; then
6715    if test `eval echo ${datadir}` = NONE/share ; then
6716       datadir=/usr/share
6717    fi
6718 fi
6719
6720 # ------------------------------------------------------------------
6721 #  If the user has not set --prefix, we set our default to nothing.
6722 #  In this case, if the user has not set --sysconfdir, we set it
6723 #  to the package default of /etc/bacula.  If either --prefix or
6724 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6725 # ------------------------------------------------------------------
6726 if test x${prefix} = xNONE ; then
6727     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6728         sysconfdir=/etc/bacula
6729     fi
6730     prefix=
6731 fi
6732 sysconfdir=`eval echo ${sysconfdir}`
6733 datadir=`eval echo ${datadir}`
6734 localedir=`eval echo ${datadir}/locale`
6735 cat >>confdefs.h <<_ACEOF
6736 #define LOCALEDIR "$localedir"
6737 _ACEOF
6738
6739
6740 # -------------------------------------------------------------------------
6741 #  If the user has not set --exec-prefix, we default to ${prefix}
6742 # -------------------------------------------------------------------------
6743 if test x${exec_prefix} = xNONE ; then
6744     exec_prefix=${prefix}
6745 fi
6746
6747 # ------------------------------------------------------------------
6748 # If the user has not set --sbindir, we set our default as /sbin
6749 # ------------------------------------------------------------------
6750 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6751     sbindir=${exec_prefix}/sbin
6752 fi
6753 sbindir=`eval echo ${sbindir}`
6754
6755 # -------------------------------------------------------------------------
6756 #  If the user has not set --mandir, we default to /usr/share/man
6757 # -------------------------------------------------------------------------
6758 if test x$mandir = x'${prefix}/man' ; then
6759    mandir=/usr/share/man
6760 fi
6761
6762
6763 # ------------------------------------------------------------------
6764 # All list of languages for which a translation exist. Each
6765 #  language is separated by a space.
6766 # ------------------------------------------------------------------
6767 ALL_LINGUAS=""
6768
6769 for ac_prog in msgfmt
6770 do
6771   # Extract the first word of "$ac_prog", so it can be a program name with args.
6772 set dummy $ac_prog; ac_word=$2
6773 echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6775 if test "${ac_cv_path_MSGFMT+set}" = set; then
6776   echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778   case $MSGFMT in
6779   [\\/]* | ?:[\\/]*)
6780   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6781   ;;
6782   *)
6783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788   for ac_exec_ext in '' $ac_executable_extensions; do
6789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795 done
6796
6797   ;;
6798 esac
6799 fi
6800 MSGFMT=$ac_cv_path_MSGFMT
6801
6802 if test -n "$MSGFMT"; then
6803   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6804 echo "${ECHO_T}$MSGFMT" >&6
6805 else
6806   echo "$as_me:$LINENO: result: no" >&5
6807 echo "${ECHO_T}no" >&6
6808 fi
6809
6810   test -n "$MSGFMT" && break
6811 done
6812 test -n "$MSGFMT" || MSGFMT="no"
6813
6814 if test "$MSGFMT" = "no"
6815 then
6816    echo 'msgfmt program not found, disabling NLS !'
6817    USE_NLS=no
6818    USE_INCLUDED_LIBINTL=no
6819 #else
6820
6821     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6822 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6823 if test "${ac_cv_gnu_library_2+set}" = set; then
6824   echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826   cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h.  */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h.  */
6832
6833 #include <features.h>
6834 #ifdef __GNU_LIBRARY__
6835  #if (__GLIBC__ >= 2)
6836   Lucky GNU user
6837  #endif
6838 #endif
6839
6840 _ACEOF
6841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6842   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6843   ac_cv_gnu_library_2=yes
6844 else
6845   ac_cv_gnu_library_2=no
6846 fi
6847 rm -f conftest*
6848
6849
6850
6851 fi
6852 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6853 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6854
6855     GLIBC2="$ac_cv_gnu_library_2"
6856
6857
6858 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6859 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6860 if test "${ac_cv_search_strerror+set}" = set; then
6861   echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863   ac_func_search_save_LIBS=$LIBS
6864 ac_cv_search_strerror=no
6865 cat >conftest.$ac_ext <<_ACEOF
6866 /* confdefs.h.  */
6867 _ACEOF
6868 cat confdefs.h >>conftest.$ac_ext
6869 cat >>conftest.$ac_ext <<_ACEOF
6870 /* end confdefs.h.  */
6871
6872 /* Override any gcc2 internal prototype to avoid an error.  */
6873 #ifdef __cplusplus
6874 extern "C"
6875 #endif
6876 /* We use char because int might match the return type of a gcc2
6877    builtin and then its argument prototype would still apply.  */
6878 char strerror ();
6879 int
6880 main ()
6881 {
6882 strerror ();
6883   ;
6884   return 0;
6885 }
6886 _ACEOF
6887 rm -f conftest.$ac_objext conftest$ac_exeext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6889   (eval $ac_link) 2>conftest.er1
6890   ac_status=$?
6891   grep -v '^ *+' conftest.er1 >conftest.err
6892   rm -f conftest.er1
6893   cat conftest.err >&5
6894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895   (exit $ac_status); } &&
6896          { ac_try='test -z "$ac_c_werror_flag"
6897                          || test ! -s conftest.err'
6898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899   (eval $ac_try) 2>&5
6900   ac_status=$?
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); }; } &&
6903          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6909   ac_cv_search_strerror="none required"
6910 else
6911   echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6913
6914 fi
6915 rm -f conftest.err conftest.$ac_objext \
6916       conftest$ac_exeext conftest.$ac_ext
6917 if test "$ac_cv_search_strerror" = no; then
6918   for ac_lib in cposix; do
6919     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6920     cat >conftest.$ac_ext <<_ACEOF
6921 /* confdefs.h.  */
6922 _ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h.  */
6926
6927 /* Override any gcc2 internal prototype to avoid an error.  */
6928 #ifdef __cplusplus
6929 extern "C"
6930 #endif
6931 /* We use char because int might match the return type of a gcc2
6932    builtin and then its argument prototype would still apply.  */
6933 char strerror ();
6934 int
6935 main ()
6936 {
6937 strerror ();
6938   ;
6939   return 0;
6940 }
6941 _ACEOF
6942 rm -f conftest.$ac_objext conftest$ac_exeext
6943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6944   (eval $ac_link) 2>conftest.er1
6945   ac_status=$?
6946   grep -v '^ *+' conftest.er1 >conftest.err
6947   rm -f conftest.er1
6948   cat conftest.err >&5
6949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950   (exit $ac_status); } &&
6951          { ac_try='test -z "$ac_c_werror_flag"
6952                          || test ! -s conftest.err'
6953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954   (eval $ac_try) 2>&5
6955   ac_status=$?
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); }; } &&
6958          { ac_try='test -s conftest$ac_exeext'
6959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960   (eval $ac_try) 2>&5
6961   ac_status=$?
6962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963   (exit $ac_status); }; }; then
6964   ac_cv_search_strerror="-l$ac_lib"
6965 break
6966 else
6967   echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6969
6970 fi
6971 rm -f conftest.err conftest.$ac_objext \
6972       conftest$ac_exeext conftest.$ac_ext
6973   done
6974 fi
6975 LIBS=$ac_func_search_save_LIBS
6976 fi
6977 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6978 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6979 if test "$ac_cv_search_strerror" != no; then
6980   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6981
6982 fi
6983
6984 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6985 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6986 if test "${ac_cv_header_stdc+set}" = set; then
6987   echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989   cat >conftest.$ac_ext <<_ACEOF
6990 /* confdefs.h.  */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h.  */
6995 #include <stdlib.h>
6996 #include <stdarg.h>
6997 #include <string.h>
6998 #include <float.h>
6999
7000 int
7001 main ()
7002 {
7003
7004   ;
7005   return 0;
7006 }
7007 _ACEOF
7008 rm -f conftest.$ac_objext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7010   (eval $ac_compile) 2>conftest.er1
7011   ac_status=$?
7012   grep -v '^ *+' conftest.er1 >conftest.err
7013   rm -f conftest.er1
7014   cat conftest.err >&5
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); } &&
7017          { ac_try='test -z "$ac_c_werror_flag"
7018                          || test ! -s conftest.err'
7019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020   (eval $ac_try) 2>&5
7021   ac_status=$?
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); }; } &&
7024          { ac_try='test -s conftest.$ac_objext'
7025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026   (eval $ac_try) 2>&5
7027   ac_status=$?
7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029   (exit $ac_status); }; }; then
7030   ac_cv_header_stdc=yes
7031 else
7032   echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7034
7035 ac_cv_header_stdc=no
7036 fi
7037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7038
7039 if test $ac_cv_header_stdc = yes; then
7040   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7041   cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h.  */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h.  */
7047 #include <string.h>
7048
7049 _ACEOF
7050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7051   $EGREP "memchr" >/dev/null 2>&1; then
7052   :
7053 else
7054   ac_cv_header_stdc=no
7055 fi
7056 rm -f conftest*
7057
7058 fi
7059
7060 if test $ac_cv_header_stdc = yes; then
7061   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7062   cat >conftest.$ac_ext <<_ACEOF
7063 /* confdefs.h.  */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h.  */
7068 #include <stdlib.h>
7069
7070 _ACEOF
7071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7072   $EGREP "free" >/dev/null 2>&1; then
7073   :
7074 else
7075   ac_cv_header_stdc=no
7076 fi
7077 rm -f conftest*
7078
7079 fi
7080
7081 if test $ac_cv_header_stdc = yes; then
7082   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7083   if test "$cross_compiling" = yes; then
7084   :
7085 else
7086   cat >conftest.$ac_ext <<_ACEOF
7087 /* confdefs.h.  */
7088 _ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h.  */
7092 #include <ctype.h>
7093 #if ((' ' & 0x0FF) == 0x020)
7094 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7095 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7096 #else
7097 # define ISLOWER(c) \
7098                    (('a' <= (c) && (c) <= 'i') \
7099                      || ('j' <= (c) && (c) <= 'r') \
7100                      || ('s' <= (c) && (c) <= 'z'))
7101 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7102 #endif
7103
7104 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7105 int
7106 main ()
7107 {
7108   int i;
7109   for (i = 0; i < 256; i++)
7110     if (XOR (islower (i), ISLOWER (i))
7111         || toupper (i) != TOUPPER (i))
7112       exit(2);
7113   exit (0);
7114 }
7115 _ACEOF
7116 rm -f conftest$ac_exeext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118   (eval $ac_link) 2>&5
7119   ac_status=$?
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123   (eval $ac_try) 2>&5
7124   ac_status=$?
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); }; }; then
7127   :
7128 else
7129   echo "$as_me: program exited with status $ac_status" >&5
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133 ( exit $ac_status )
7134 ac_cv_header_stdc=no
7135 fi
7136 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7137 fi
7138 fi
7139 fi
7140 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7141 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7142 if test $ac_cv_header_stdc = yes; then
7143
7144 cat >>confdefs.h <<\_ACEOF
7145 #define STDC_HEADERS 1
7146 _ACEOF
7147
7148 fi
7149
7150 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7151 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7152 if test "${ac_cv_c_const+set}" = set; then
7153   echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155   cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h.  */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h.  */
7161
7162 int
7163 main ()
7164 {
7165 /* FIXME: Include the comments suggested by Paul. */
7166 #ifndef __cplusplus
7167   /* Ultrix mips cc rejects this.  */
7168   typedef int charset[2];
7169   const charset x;
7170   /* SunOS 4.1.1 cc rejects this.  */
7171   char const *const *ccp;
7172   char **p;
7173   /* NEC SVR4.0.2 mips cc rejects this.  */
7174   struct point {int x, y;};
7175   static struct point const zero = {0,0};
7176   /* AIX XL C 1.02.0.0 rejects this.
7177      It does not let you subtract one const X* pointer from another in
7178      an arm of an if-expression whose if-part is not a constant
7179      expression */
7180   const char *g = "string";
7181   ccp = &g + (g ? g-g : 0);
7182   /* HPUX 7.0 cc rejects these. */
7183   ++ccp;
7184   p = (char**) ccp;
7185   ccp = (char const *const *) p;
7186   { /* SCO 3.2v4 cc rejects this.  */
7187     char *t;
7188     char const *s = 0 ? (char *) 0 : (char const *) 0;
7189
7190     *t++ = 0;
7191   }
7192   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7193     int x[] = {25, 17};
7194     const int *foo = &x[0];
7195     ++foo;
7196   }
7197   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7198     typedef const int *iptr;
7199     iptr p = 0;
7200     ++p;
7201   }
7202   { /* AIX XL C 1.02.0.0 rejects this saying
7203        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7204     struct s { int j; const int *ap[3]; };
7205     struct s *b; b->j = 5;
7206   }
7207   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7208     const int foo = 10;
7209   }
7210 #endif
7211
7212   ;
7213   return 0;
7214 }
7215 _ACEOF
7216 rm -f conftest.$ac_objext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7218   (eval $ac_compile) 2>conftest.er1
7219   ac_status=$?
7220   grep -v '^ *+' conftest.er1 >conftest.err
7221   rm -f conftest.er1
7222   cat conftest.err >&5
7223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224   (exit $ac_status); } &&
7225          { ac_try='test -z "$ac_c_werror_flag"
7226                          || test ! -s conftest.err'
7227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228   (eval $ac_try) 2>&5
7229   ac_status=$?
7230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231   (exit $ac_status); }; } &&
7232          { ac_try='test -s conftest.$ac_objext'
7233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234   (eval $ac_try) 2>&5
7235   ac_status=$?
7236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237   (exit $ac_status); }; }; then
7238   ac_cv_c_const=yes
7239 else
7240   echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7242
7243 ac_cv_c_const=no
7244 fi
7245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7246 fi
7247 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7248 echo "${ECHO_T}$ac_cv_c_const" >&6
7249 if test $ac_cv_c_const = no; then
7250
7251 cat >>confdefs.h <<\_ACEOF
7252 #define const
7253 _ACEOF
7254
7255 fi
7256
7257
7258   echo "$as_me:$LINENO: checking for signed" >&5
7259 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7260 if test "${bh_cv_c_signed+set}" = set; then
7261   echo $ECHO_N "(cached) $ECHO_C" >&6
7262 else
7263   cat >conftest.$ac_ext <<_ACEOF
7264 /* confdefs.h.  */
7265 _ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h.  */
7269
7270 int
7271 main ()
7272 {
7273 signed char x;
7274   ;
7275   return 0;
7276 }
7277 _ACEOF
7278 rm -f conftest.$ac_objext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7280   (eval $ac_compile) 2>conftest.er1
7281   ac_status=$?
7282   grep -v '^ *+' conftest.er1 >conftest.err
7283   rm -f conftest.er1
7284   cat conftest.err >&5
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); } &&
7287          { ac_try='test -z "$ac_c_werror_flag"
7288                          || test ! -s conftest.err'
7289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290   (eval $ac_try) 2>&5
7291   ac_status=$?
7292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293   (exit $ac_status); }; } &&
7294          { ac_try='test -s conftest.$ac_objext'
7295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296   (eval $ac_try) 2>&5
7297   ac_status=$?
7298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299   (exit $ac_status); }; }; then
7300   bh_cv_c_signed=yes
7301 else
7302   echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7304
7305 bh_cv_c_signed=no
7306 fi
7307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7308 fi
7309 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7310 echo "${ECHO_T}$bh_cv_c_signed" >&6
7311   if test $bh_cv_c_signed = no; then
7312
7313 cat >>confdefs.h <<\_ACEOF
7314 #define signed
7315 _ACEOF
7316
7317   fi
7318
7319 echo "$as_me:$LINENO: checking for inline" >&5
7320 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7321 if test "${ac_cv_c_inline+set}" = set; then
7322   echo $ECHO_N "(cached) $ECHO_C" >&6
7323 else
7324   ac_cv_c_inline=no
7325 for ac_kw in inline __inline__ __inline; do
7326   cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h.  */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h.  */
7332 #ifndef __cplusplus
7333 typedef int foo_t;
7334 static $ac_kw foo_t static_foo () {return 0; }
7335 $ac_kw foo_t foo () {return 0; }
7336 #endif
7337
7338 _ACEOF
7339 rm -f conftest.$ac_objext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7341   (eval $ac_compile) 2>conftest.er1
7342   ac_status=$?
7343   grep -v '^ *+' conftest.er1 >conftest.err
7344   rm -f conftest.er1
7345   cat conftest.err >&5
7346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347   (exit $ac_status); } &&
7348          { ac_try='test -z "$ac_c_werror_flag"
7349                          || test ! -s conftest.err'
7350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351   (eval $ac_try) 2>&5
7352   ac_status=$?
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); }; } &&
7355          { ac_try='test -s conftest.$ac_objext'
7356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357   (eval $ac_try) 2>&5
7358   ac_status=$?
7359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360   (exit $ac_status); }; }; then
7361   ac_cv_c_inline=$ac_kw; break
7362 else
7363   echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7365
7366 fi
7367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7368 done
7369
7370 fi
7371 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7372 echo "${ECHO_T}$ac_cv_c_inline" >&6
7373
7374
7375 case $ac_cv_c_inline in
7376   inline | yes) ;;
7377   *)
7378     case $ac_cv_c_inline in
7379       no) ac_val=;;
7380       *) ac_val=$ac_cv_c_inline;;
7381     esac
7382     cat >>confdefs.h <<_ACEOF
7383 #ifndef __cplusplus
7384 #define inline $ac_val
7385 #endif
7386 _ACEOF
7387     ;;
7388 esac
7389
7390 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7401                   inttypes.h stdint.h unistd.h
7402 do
7403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7404 echo "$as_me:$LINENO: checking for $ac_header" >&5
7405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7407   echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409   cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h.  */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h.  */
7415 $ac_includes_default
7416
7417 #include <$ac_header>
7418 _ACEOF
7419 rm -f conftest.$ac_objext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421   (eval $ac_compile) 2>conftest.er1
7422   ac_status=$?
7423   grep -v '^ *+' conftest.er1 >conftest.err
7424   rm -f conftest.er1
7425   cat conftest.err >&5
7426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); } &&
7428          { ac_try='test -z "$ac_c_werror_flag"
7429                          || test ! -s conftest.err'
7430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431   (eval $ac_try) 2>&5
7432   ac_status=$?
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); }; } &&
7435          { ac_try='test -s conftest.$ac_objext'
7436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437   (eval $ac_try) 2>&5
7438   ac_status=$?
7439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440   (exit $ac_status); }; }; then
7441   eval "$as_ac_Header=yes"
7442 else
7443   echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7445
7446 eval "$as_ac_Header=no"
7447 fi
7448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7449 fi
7450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7453   cat >>confdefs.h <<_ACEOF
7454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7455 _ACEOF
7456
7457 fi
7458
7459 done
7460
7461
7462 echo "$as_me:$LINENO: checking for off_t" >&5
7463 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7464 if test "${ac_cv_type_off_t+set}" = set; then
7465   echo $ECHO_N "(cached) $ECHO_C" >&6
7466 else
7467   cat >conftest.$ac_ext <<_ACEOF
7468 /* confdefs.h.  */
7469 _ACEOF
7470 cat confdefs.h >>conftest.$ac_ext
7471 cat >>conftest.$ac_ext <<_ACEOF
7472 /* end confdefs.h.  */
7473 $ac_includes_default
7474 int
7475 main ()
7476 {
7477 if ((off_t *) 0)
7478   return 0;
7479 if (sizeof (off_t))
7480   return 0;
7481   ;
7482   return 0;
7483 }
7484 _ACEOF
7485 rm -f conftest.$ac_objext
7486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7487   (eval $ac_compile) 2>conftest.er1
7488   ac_status=$?
7489   grep -v '^ *+' conftest.er1 >conftest.err
7490   rm -f conftest.er1
7491   cat conftest.err >&5
7492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493   (exit $ac_status); } &&
7494          { ac_try='test -z "$ac_c_werror_flag"
7495                          || test ! -s conftest.err'
7496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497   (eval $ac_try) 2>&5
7498   ac_status=$?
7499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500   (exit $ac_status); }; } &&
7501          { ac_try='test -s conftest.$ac_objext'
7502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503   (eval $ac_try) 2>&5
7504   ac_status=$?
7505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506   (exit $ac_status); }; }; then
7507   ac_cv_type_off_t=yes
7508 else
7509   echo "$as_me: failed program was:" >&5
7510 sed 's/^/| /' conftest.$ac_ext >&5
7511
7512 ac_cv_type_off_t=no
7513 fi
7514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7515 fi
7516 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7517 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7518 if test $ac_cv_type_off_t = yes; then
7519   :
7520 else
7521
7522 cat >>confdefs.h <<_ACEOF
7523 #define off_t long
7524 _ACEOF
7525
7526 fi
7527
7528 echo "$as_me:$LINENO: checking for size_t" >&5
7529 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7530 if test "${ac_cv_type_size_t+set}" = set; then
7531   echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533   cat >conftest.$ac_ext <<_ACEOF
7534 /* confdefs.h.  */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h.  */
7539 $ac_includes_default
7540 int
7541 main ()
7542 {
7543 if ((size_t *) 0)
7544   return 0;
7545 if (sizeof (size_t))
7546   return 0;
7547   ;
7548   return 0;
7549 }
7550 _ACEOF
7551 rm -f conftest.$ac_objext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7553   (eval $ac_compile) 2>conftest.er1
7554   ac_status=$?
7555   grep -v '^ *+' conftest.er1 >conftest.err
7556   rm -f conftest.er1
7557   cat conftest.err >&5
7558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559   (exit $ac_status); } &&
7560          { ac_try='test -z "$ac_c_werror_flag"
7561                          || test ! -s conftest.err'
7562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563   (eval $ac_try) 2>&5
7564   ac_status=$?
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); }; } &&
7567          { ac_try='test -s conftest.$ac_objext'
7568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569   (eval $ac_try) 2>&5
7570   ac_status=$?
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); }; }; then
7573   ac_cv_type_size_t=yes
7574 else
7575   echo "$as_me: failed program was:" >&5
7576 sed 's/^/| /' conftest.$ac_ext >&5
7577
7578 ac_cv_type_size_t=no
7579 fi
7580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7581 fi
7582 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7583 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7584 if test $ac_cv_type_size_t = yes; then
7585   :
7586 else
7587
7588 cat >>confdefs.h <<_ACEOF
7589 #define size_t unsigned
7590 _ACEOF
7591
7592 fi
7593
7594
7595   echo "$as_me:$LINENO: checking for long long" >&5
7596 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7597 if test "${ac_cv_type_long_long+set}" = set; then
7598   echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600   cat >conftest.$ac_ext <<_ACEOF
7601 /* confdefs.h.  */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h.  */
7606 long long ll = 1LL; int i = 63;
7607 int
7608 main ()
7609 {
7610 long long llmax = (long long) -1;
7611      return ll << i | ll >> i | llmax / ll | llmax % ll;
7612   ;
7613   return 0;
7614 }
7615 _ACEOF
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618   (eval $ac_link) 2>conftest.er1
7619   ac_status=$?
7620   grep -v '^ *+' conftest.er1 >conftest.err
7621   rm -f conftest.er1
7622   cat conftest.err >&5
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); } &&
7625          { ac_try='test -z "$ac_c_werror_flag"
7626                          || test ! -s conftest.err'
7627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628   (eval $ac_try) 2>&5
7629   ac_status=$?
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); }; } &&
7632          { ac_try='test -s conftest$ac_exeext'
7633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634   (eval $ac_try) 2>&5
7635   ac_status=$?
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); }; }; then
7638   ac_cv_type_long_long=yes
7639 else
7640   echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7642
7643 ac_cv_type_long_long=no
7644 fi
7645 rm -f conftest.err conftest.$ac_objext \
7646       conftest$ac_exeext conftest.$ac_ext
7647 fi
7648 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7649 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7650   if test $ac_cv_type_long_long = yes; then
7651
7652 cat >>confdefs.h <<\_ACEOF
7653 #define HAVE_LONG_LONG 1
7654 _ACEOF
7655
7656   fi
7657
7658
7659   echo "$as_me:$LINENO: checking for long double" >&5
7660 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7661 if test "${gt_cv_c_long_double+set}" = set; then
7662   echo $ECHO_N "(cached) $ECHO_C" >&6
7663 else
7664   if test "$GCC" = yes; then
7665        gt_cv_c_long_double=yes
7666      else
7667        cat >conftest.$ac_ext <<_ACEOF
7668 /* confdefs.h.  */
7669 _ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h.  */
7673
7674          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
7675          long double foo = 0.0;
7676          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7677          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7678
7679 int
7680 main ()
7681 {
7682
7683   ;
7684   return 0;
7685 }
7686 _ACEOF
7687 rm -f conftest.$ac_objext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7689   (eval $ac_compile) 2>conftest.er1
7690   ac_status=$?
7691   grep -v '^ *+' conftest.er1 >conftest.err
7692   rm -f conftest.er1
7693   cat conftest.err >&5
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); } &&
7696          { ac_try='test -z "$ac_c_werror_flag"
7697                          || test ! -s conftest.err'
7698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699   (eval $ac_try) 2>&5
7700   ac_status=$?
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); }; } &&
7703          { ac_try='test -s conftest.$ac_objext'
7704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705   (eval $ac_try) 2>&5
7706   ac_status=$?
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); }; }; then
7709   gt_cv_c_long_double=yes
7710 else
7711   echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7713
7714 gt_cv_c_long_double=no
7715 fi
7716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7717      fi
7718 fi
7719 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7720 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7721   if test $gt_cv_c_long_double = yes; then
7722
7723 cat >>confdefs.h <<\_ACEOF
7724 #define HAVE_LONG_DOUBLE 1
7725 _ACEOF
7726
7727   fi
7728
7729
7730   echo "$as_me:$LINENO: checking for wchar_t" >&5
7731 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7732 if test "${gt_cv_c_wchar_t+set}" = set; then
7733   echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735   cat >conftest.$ac_ext <<_ACEOF
7736 /* confdefs.h.  */
7737 _ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h.  */
7741 #include <stddef.h>
7742        wchar_t foo = (wchar_t)'\0';
7743 int
7744 main ()
7745 {
7746
7747   ;
7748   return 0;
7749 }
7750 _ACEOF
7751 rm -f conftest.$ac_objext
7752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7753   (eval $ac_compile) 2>conftest.er1
7754   ac_status=$?
7755   grep -v '^ *+' conftest.er1 >conftest.err
7756   rm -f conftest.er1
7757   cat conftest.err >&5
7758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759   (exit $ac_status); } &&
7760          { ac_try='test -z "$ac_c_werror_flag"
7761                          || test ! -s conftest.err'
7762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763   (eval $ac_try) 2>&5
7764   ac_status=$?
7765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766   (exit $ac_status); }; } &&
7767          { ac_try='test -s conftest.$ac_objext'
7768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769   (eval $ac_try) 2>&5
7770   ac_status=$?
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); }; }; then
7773   gt_cv_c_wchar_t=yes
7774 else
7775   echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7777
7778 gt_cv_c_wchar_t=no
7779 fi
7780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7781 fi
7782 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7783 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7784   if test $gt_cv_c_wchar_t = yes; then
7785
7786 cat >>confdefs.h <<\_ACEOF
7787 #define HAVE_WCHAR_T 1
7788 _ACEOF
7789
7790   fi
7791
7792
7793   echo "$as_me:$LINENO: checking for wint_t" >&5
7794 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7795 if test "${gt_cv_c_wint_t+set}" = set; then
7796   echo $ECHO_N "(cached) $ECHO_C" >&6
7797 else
7798   cat >conftest.$ac_ext <<_ACEOF
7799 /* confdefs.h.  */
7800 _ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h.  */
7804 #include <wchar.h>
7805        wint_t foo = (wchar_t)'\0';
7806 int
7807 main ()
7808 {
7809
7810   ;
7811   return 0;
7812 }
7813 _ACEOF
7814 rm -f conftest.$ac_objext
7815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7816   (eval $ac_compile) 2>conftest.er1
7817   ac_status=$?
7818   grep -v '^ *+' conftest.er1 >conftest.err
7819   rm -f conftest.er1
7820   cat conftest.err >&5
7821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); } &&
7823          { ac_try='test -z "$ac_c_werror_flag"
7824                          || test ! -s conftest.err'
7825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826   (eval $ac_try) 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); }; } &&
7830          { ac_try='test -s conftest.$ac_objext'
7831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832   (eval $ac_try) 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); }; }; then
7836   gt_cv_c_wint_t=yes
7837 else
7838   echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7840
7841 gt_cv_c_wint_t=no
7842 fi
7843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7844 fi
7845 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7846 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7847   if test $gt_cv_c_wint_t = yes; then
7848
7849 cat >>confdefs.h <<\_ACEOF
7850 #define HAVE_WINT_T 1
7851 _ACEOF
7852
7853   fi
7854
7855
7856   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7857 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7858 if test "${gl_cv_header_inttypes_h+set}" = set; then
7859   echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861   cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h.  */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h.  */
7867 #include <sys/types.h>
7868 #include <inttypes.h>
7869 int
7870 main ()
7871 {
7872 uintmax_t i = (uintmax_t) -1;
7873   ;
7874   return 0;
7875 }
7876 _ACEOF
7877 rm -f conftest.$ac_objext
7878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7879   (eval $ac_compile) 2>conftest.er1
7880   ac_status=$?
7881   grep -v '^ *+' conftest.er1 >conftest.err
7882   rm -f conftest.er1
7883   cat conftest.err >&5
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); } &&
7886          { ac_try='test -z "$ac_c_werror_flag"
7887                          || test ! -s conftest.err'
7888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889   (eval $ac_try) 2>&5
7890   ac_status=$?
7891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892   (exit $ac_status); }; } &&
7893          { ac_try='test -s conftest.$ac_objext'
7894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895   (eval $ac_try) 2>&5
7896   ac_status=$?
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); }; }; then
7899   gl_cv_header_inttypes_h=yes
7900 else
7901   echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7903
7904 gl_cv_header_inttypes_h=no
7905 fi
7906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7907 fi
7908 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7909 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7910   if test $gl_cv_header_inttypes_h = yes; then
7911
7912 cat >>confdefs.h <<_ACEOF
7913 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7914 _ACEOF
7915
7916   fi
7917
7918
7919   echo "$as_me:$LINENO: checking for stdint.h" >&5
7920 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7921 if test "${gl_cv_header_stdint_h+set}" = set; then
7922   echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924   cat >conftest.$ac_ext <<_ACEOF
7925 /* confdefs.h.  */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h.  */
7930 #include <sys/types.h>
7931 #include <stdint.h>
7932 int
7933 main ()
7934 {
7935 uintmax_t i = (uintmax_t) -1;
7936   ;
7937   return 0;
7938 }
7939 _ACEOF
7940 rm -f conftest.$ac_objext
7941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7942   (eval $ac_compile) 2>conftest.er1
7943   ac_status=$?
7944   grep -v '^ *+' conftest.er1 >conftest.err
7945   rm -f conftest.er1
7946   cat conftest.err >&5
7947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948   (exit $ac_status); } &&
7949          { ac_try='test -z "$ac_c_werror_flag"
7950                          || test ! -s conftest.err'
7951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952   (eval $ac_try) 2>&5
7953   ac_status=$?
7954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955   (exit $ac_status); }; } &&
7956          { ac_try='test -s conftest.$ac_objext'
7957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958   (eval $ac_try) 2>&5
7959   ac_status=$?
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); }; }; then
7962   gl_cv_header_stdint_h=yes
7963 else
7964   echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7966
7967 gl_cv_header_stdint_h=no
7968 fi
7969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7970 fi
7971 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7972 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7973   if test $gl_cv_header_stdint_h = yes; then
7974
7975 cat >>confdefs.h <<_ACEOF
7976 #define HAVE_STDINT_H_WITH_UINTMAX 1
7977 _ACEOF
7978
7979   fi
7980
7981
7982
7983
7984   echo "$as_me:$LINENO: checking for intmax_t" >&5
7985 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7986 if test "${gt_cv_c_intmax_t+set}" = set; then
7987   echo $ECHO_N "(cached) $ECHO_C" >&6
7988 else
7989   cat >conftest.$ac_ext <<_ACEOF
7990 /* confdefs.h.  */
7991 _ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h.  */
7995
7996 #include <stddef.h>
7997 #include <stdlib.h>
7998 #if HAVE_STDINT_H_WITH_UINTMAX
7999 #include <stdint.h>
8000 #endif
8001 #if HAVE_INTTYPES_H_WITH_UINTMAX
8002 #include <inttypes.h>
8003 #endif
8004
8005 int
8006 main ()
8007 {
8008 intmax_t x = -1;
8009   ;
8010   return 0;
8011 }
8012 _ACEOF
8013 rm -f conftest.$ac_objext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8015   (eval $ac_compile) 2>conftest.er1
8016   ac_status=$?
8017   grep -v '^ *+' conftest.er1 >conftest.err
8018   rm -f conftest.er1
8019   cat conftest.err >&5
8020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021   (exit $ac_status); } &&
8022          { ac_try='test -z "$ac_c_werror_flag"
8023                          || test ! -s conftest.err'
8024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025   (eval $ac_try) 2>&5
8026   ac_status=$?
8027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028   (exit $ac_status); }; } &&
8029          { ac_try='test -s conftest.$ac_objext'
8030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031   (eval $ac_try) 2>&5
8032   ac_status=$?
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); }; }; then
8035   gt_cv_c_intmax_t=yes
8036 else
8037   echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8039
8040 gt_cv_c_intmax_t=no
8041 fi
8042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8043 fi
8044 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8045 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8046   if test $gt_cv_c_intmax_t = yes; then
8047
8048 cat >>confdefs.h <<\_ACEOF
8049 #define HAVE_INTMAX_T 1
8050 _ACEOF
8051
8052   fi
8053
8054
8055
8056   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8057 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8058 if test "${gt_cv_func_printf_posix+set}" = set; then
8059   echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061
8062       if test "$cross_compiling" = yes; then
8063
8064         cat >conftest.$ac_ext <<_ACEOF
8065 /* confdefs.h.  */
8066 _ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h.  */
8070
8071 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8072   notposix
8073 #endif
8074
8075 _ACEOF
8076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8077   $EGREP "notposix" >/dev/null 2>&1; then
8078   gt_cv_func_printf_posix="guessing no"
8079 else
8080   gt_cv_func_printf_posix="guessing yes"
8081 fi
8082 rm -f conftest*
8083
8084
8085 else
8086   cat >conftest.$ac_ext <<_ACEOF
8087 /* confdefs.h.  */
8088 _ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h.  */
8092
8093 #include <stdio.h>
8094 #include <string.h>
8095 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8096    dollar expansion (possibly an autoconf bug).  */
8097 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8098 static char buf[100];
8099 int main ()
8100 {
8101   sprintf (buf, format, 33, 55);
8102   return (strcmp (buf, "55 33") != 0);
8103 }
8104 _ACEOF
8105 rm -f conftest$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107   (eval $ac_link) 2>&5
8108   ac_status=$?
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112   (eval $ac_try) 2>&5
8113   ac_status=$?
8114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115   (exit $ac_status); }; }; then
8116   gt_cv_func_printf_posix=yes
8117 else
8118   echo "$as_me: program exited with status $ac_status" >&5
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8121
8122 ( exit $ac_status )
8123 gt_cv_func_printf_posix=no
8124 fi
8125 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8126 fi
8127
8128 fi
8129 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8130 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8131   case $gt_cv_func_printf_posix in
8132     *yes)
8133
8134 cat >>confdefs.h <<\_ACEOF
8135 #define HAVE_POSIX_PRINTF 1
8136 _ACEOF
8137
8138       ;;
8139   esac
8140
8141 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8142 # for constant arguments.  Useless!
8143 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8144 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8145 if test "${ac_cv_working_alloca_h+set}" = set; then
8146   echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148   cat >conftest.$ac_ext <<_ACEOF
8149 /* confdefs.h.  */
8150 _ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h.  */
8154 #include <alloca.h>
8155 int
8156 main ()
8157 {
8158 char *p = (char *) alloca (2 * sizeof (int));
8159   ;
8160   return 0;
8161 }
8162 _ACEOF
8163 rm -f conftest.$ac_objext conftest$ac_exeext
8164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8165   (eval $ac_link) 2>conftest.er1
8166   ac_status=$?
8167   grep -v '^ *+' conftest.er1 >conftest.err
8168   rm -f conftest.er1
8169   cat conftest.err >&5
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); } &&
8172          { ac_try='test -z "$ac_c_werror_flag"
8173                          || test ! -s conftest.err'
8174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175   (eval $ac_try) 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); }; } &&
8179          { ac_try='test -s conftest$ac_exeext'
8180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181   (eval $ac_try) 2>&5
8182   ac_status=$?
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); }; }; then
8185   ac_cv_working_alloca_h=yes
8186 else
8187   echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8189
8190 ac_cv_working_alloca_h=no
8191 fi
8192 rm -f conftest.err conftest.$ac_objext \
8193       conftest$ac_exeext conftest.$ac_ext
8194 fi
8195 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8196 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8197 if test $ac_cv_working_alloca_h = yes; then
8198
8199 cat >>confdefs.h <<\_ACEOF
8200 #define HAVE_ALLOCA_H 1
8201 _ACEOF
8202
8203 fi
8204
8205 echo "$as_me:$LINENO: checking for alloca" >&5
8206 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8207 if test "${ac_cv_func_alloca_works+set}" = set; then
8208   echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210   cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h.  */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h.  */
8216 #ifdef __GNUC__
8217 # define alloca __builtin_alloca
8218 #else
8219 # ifdef _MSC_VER
8220 #  include <malloc.h>
8221 #  define alloca _alloca
8222 # else
8223 #  if HAVE_ALLOCA_H
8224 #   include <alloca.h>
8225 #  else
8226 #   ifdef _AIX
8227  #pragma alloca
8228 #   else
8229 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8230 char *alloca ();
8231 #    endif
8232 #   endif
8233 #  endif
8234 # endif
8235 #endif
8236
8237 int
8238 main ()
8239 {
8240 char *p = (char *) alloca (1);
8241   ;
8242   return 0;
8243 }
8244 _ACEOF
8245 rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8247   (eval $ac_link) 2>conftest.er1
8248   ac_status=$?
8249   grep -v '^ *+' conftest.er1 >conftest.err
8250   rm -f conftest.er1
8251   cat conftest.err >&5
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); } &&
8254          { ac_try='test -z "$ac_c_werror_flag"
8255                          || test ! -s conftest.err'
8256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257   (eval $ac_try) 2>&5
8258   ac_status=$?
8259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260   (exit $ac_status); }; } &&
8261          { ac_try='test -s conftest$ac_exeext'
8262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263   (eval $ac_try) 2>&5
8264   ac_status=$?
8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266   (exit $ac_status); }; }; then
8267   ac_cv_func_alloca_works=yes
8268 else
8269   echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.$ac_ext >&5
8271
8272 ac_cv_func_alloca_works=no
8273 fi
8274 rm -f conftest.err conftest.$ac_objext \
8275       conftest$ac_exeext conftest.$ac_ext
8276 fi
8277 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8278 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8279
8280 if test $ac_cv_func_alloca_works = yes; then
8281
8282 cat >>confdefs.h <<\_ACEOF
8283 #define HAVE_ALLOCA 1
8284 _ACEOF
8285
8286 else
8287   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8288 # that cause trouble.  Some versions do not even contain alloca or
8289 # contain a buggy version.  If you still want to use their alloca,
8290 # use ar to extract alloca.o from them instead of compiling alloca.c.
8291
8292 ALLOCA=alloca.$ac_objext
8293
8294 cat >>confdefs.h <<\_ACEOF
8295 #define C_ALLOCA 1
8296 _ACEOF
8297
8298
8299 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8300 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8301 if test "${ac_cv_os_cray+set}" = set; then
8302   echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304   cat >conftest.$ac_ext <<_ACEOF
8305 /* confdefs.h.  */
8306 _ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h.  */
8310 #if defined(CRAY) && ! defined(CRAY2)
8311 webecray
8312 #else
8313 wenotbecray
8314 #endif
8315
8316 _ACEOF
8317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8318   $EGREP "webecray" >/dev/null 2>&1; then
8319   ac_cv_os_cray=yes
8320 else
8321   ac_cv_os_cray=no
8322 fi
8323 rm -f conftest*
8324
8325 fi
8326 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8327 echo "${ECHO_T}$ac_cv_os_cray" >&6
8328 if test $ac_cv_os_cray = yes; then
8329   for ac_func in _getb67 GETB67 getb67; do
8330     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8331 echo "$as_me:$LINENO: checking for $ac_func" >&5
8332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8333 if eval "test \"\${$as_ac_var+set}\" = set"; then
8334   echo $ECHO_N "(cached) $ECHO_C" >&6
8335 else
8336   cat >conftest.$ac_ext <<_ACEOF
8337 /* confdefs.h.  */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h.  */
8342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8344 #define $ac_func innocuous_$ac_func
8345
8346 /* System header to define __stub macros and hopefully few prototypes,
8347     which can conflict with char $ac_func (); below.
8348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8349     <limits.h> exists even on freestanding compilers.  */
8350
8351 #ifdef __STDC__
8352 # include <limits.h>
8353 #else
8354 # include <assert.h>
8355 #endif
8356
8357 #undef $ac_func
8358
8359 /* Override any gcc2 internal prototype to avoid an error.  */
8360 #ifdef __cplusplus
8361 extern "C"
8362 {
8363 #endif
8364 /* We use char because int might match the return type of a gcc2
8365    builtin and then its argument prototype would still apply.  */
8366 char $ac_func ();
8367 /* The GNU C library defines this for functions which it implements
8368     to always fail with ENOSYS.  Some functions are actually named
8369     something starting with __ and the normal name is an alias.  */
8370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8371 choke me
8372 #else
8373 char (*f) () = $ac_func;
8374 #endif
8375 #ifdef __cplusplus
8376 }
8377 #endif
8378
8379 int
8380 main ()
8381 {
8382 return f != $ac_func;
8383   ;
8384   return 0;
8385 }
8386 _ACEOF
8387 rm -f conftest.$ac_objext conftest$ac_exeext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389   (eval $ac_link) 2>conftest.er1
8390   ac_status=$?
8391   grep -v '^ *+' conftest.er1 >conftest.err
8392   rm -f conftest.er1
8393   cat conftest.err >&5
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); } &&
8396          { ac_try='test -z "$ac_c_werror_flag"
8397                          || test ! -s conftest.err'
8398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399   (eval $ac_try) 2>&5
8400   ac_status=$?
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); }; } &&
8403          { ac_try='test -s conftest$ac_exeext'
8404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405   (eval $ac_try) 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }; }; then
8409   eval "$as_ac_var=yes"
8410 else
8411   echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8413
8414 eval "$as_ac_var=no"
8415 fi
8416 rm -f conftest.err conftest.$ac_objext \
8417       conftest$ac_exeext conftest.$ac_ext
8418 fi
8419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8421 if test `eval echo '${'$as_ac_var'}'` = yes; then
8422
8423 cat >>confdefs.h <<_ACEOF
8424 #define CRAY_STACKSEG_END $ac_func
8425 _ACEOF
8426
8427     break
8428 fi
8429
8430   done
8431 fi
8432
8433 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8434 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8435 if test "${ac_cv_c_stack_direction+set}" = set; then
8436   echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438   if test "$cross_compiling" = yes; then
8439   ac_cv_c_stack_direction=0
8440 else
8441   cat >conftest.$ac_ext <<_ACEOF
8442 /* confdefs.h.  */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h.  */
8447 int
8448 find_stack_direction ()
8449 {
8450   static char *addr = 0;
8451   auto char dummy;
8452   if (addr == 0)
8453     {
8454       addr = &dummy;
8455       return find_stack_direction ();
8456     }
8457   else
8458     return (&dummy > addr) ? 1 : -1;
8459 }
8460
8461 int
8462 main ()
8463 {
8464   exit (find_stack_direction () < 0);
8465 }
8466 _ACEOF
8467 rm -f conftest$ac_exeext
8468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8469   (eval $ac_link) 2>&5
8470   ac_status=$?
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474   (eval $ac_try) 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); }; }; then
8478   ac_cv_c_stack_direction=1
8479 else
8480   echo "$as_me: program exited with status $ac_status" >&5
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8483
8484 ( exit $ac_status )
8485 ac_cv_c_stack_direction=-1
8486 fi
8487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8488 fi
8489 fi
8490 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8491 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8492
8493 cat >>confdefs.h <<_ACEOF
8494 #define STACK_DIRECTION $ac_cv_c_stack_direction
8495 _ACEOF
8496
8497
8498 fi
8499
8500
8501
8502 for ac_header in stdlib.h unistd.h
8503 do
8504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8506   echo "$as_me:$LINENO: checking for $ac_header" >&5
8507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8509   echo $ECHO_N "(cached) $ECHO_C" >&6
8510 fi
8511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8513 else
8514   # Is the header compilable?
8515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h.  */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h.  */
8523 $ac_includes_default
8524 #include <$ac_header>
8525 _ACEOF
8526 rm -f conftest.$ac_objext
8527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8528   (eval $ac_compile) 2>conftest.er1
8529   ac_status=$?
8530   grep -v '^ *+' conftest.er1 >conftest.err
8531   rm -f conftest.er1
8532   cat conftest.err >&5
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); } &&
8535          { ac_try='test -z "$ac_c_werror_flag"
8536                          || test ! -s conftest.err'
8537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538   (eval $ac_try) 2>&5
8539   ac_status=$?
8540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541   (exit $ac_status); }; } &&
8542          { ac_try='test -s conftest.$ac_objext'
8543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544   (eval $ac_try) 2>&5
8545   ac_status=$?
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); }; }; then
8548   ac_header_compiler=yes
8549 else
8550   echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8552
8553 ac_header_compiler=no
8554 fi
8555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8557 echo "${ECHO_T}$ac_header_compiler" >&6
8558
8559 # Is the header present?
8560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h.  */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h.  */
8568 #include <$ac_header>
8569 _ACEOF
8570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8571   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8572   ac_status=$?
8573   grep -v '^ *+' conftest.er1 >conftest.err
8574   rm -f conftest.er1
8575   cat conftest.err >&5
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); } >/dev/null; then
8578   if test -s conftest.err; then
8579     ac_cpp_err=$ac_c_preproc_warn_flag
8580     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8581   else
8582     ac_cpp_err=
8583   fi
8584 else
8585   ac_cpp_err=yes
8586 fi
8587 if test -z "$ac_cpp_err"; then
8588   ac_header_preproc=yes
8589 else
8590   echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8592
8593   ac_header_preproc=no
8594 fi
8595 rm -f conftest.err conftest.$ac_ext
8596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8597 echo "${ECHO_T}$ac_header_preproc" >&6
8598
8599 # So?  What about this header?
8600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8601   yes:no: )
8602     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8606     ac_header_preproc=yes
8607     ;;
8608   no:yes:* )
8609     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8611     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8612 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8613     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8615     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8616 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8619     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8621     (
8622       cat <<\_ASBOX
8623 ## ------------------------------------------ ##
8624 ## Report this to the AC_PACKAGE_NAME lists.  ##
8625 ## ------------------------------------------ ##
8626 _ASBOX
8627     ) |
8628       sed "s/^/$as_me: WARNING:     /" >&2
8629     ;;
8630 esac
8631 echo "$as_me:$LINENO: checking for $ac_header" >&5
8632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8634   echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636   eval "$as_ac_Header=\$ac_header_preproc"
8637 fi
8638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8640
8641 fi
8642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8643   cat >>confdefs.h <<_ACEOF
8644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8645 _ACEOF
8646
8647 fi
8648
8649 done
8650
8651
8652 for ac_func in getpagesize
8653 do
8654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8655 echo "$as_me:$LINENO: checking for $ac_func" >&5
8656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8657 if eval "test \"\${$as_ac_var+set}\" = set"; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660   cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8668 #define $ac_func innocuous_$ac_func
8669
8670 /* System header to define __stub macros and hopefully few prototypes,
8671     which can conflict with char $ac_func (); below.
8672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8673     <limits.h> exists even on freestanding compilers.  */
8674
8675 #ifdef __STDC__
8676 # include <limits.h>
8677 #else
8678 # include <assert.h>
8679 #endif
8680
8681 #undef $ac_func
8682
8683 /* Override any gcc2 internal prototype to avoid an error.  */
8684 #ifdef __cplusplus
8685 extern "C"
8686 {
8687 #endif
8688 /* We use char because int might match the return type of a gcc2
8689    builtin and then its argument prototype would still apply.  */
8690 char $ac_func ();
8691 /* The GNU C library defines this for functions which it implements
8692     to always fail with ENOSYS.  Some functions are actually named
8693     something starting with __ and the normal name is an alias.  */
8694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8695 choke me
8696 #else
8697 char (*f) () = $ac_func;
8698 #endif
8699 #ifdef __cplusplus
8700 }
8701 #endif
8702
8703 int
8704 main ()
8705 {
8706 return f != $ac_func;
8707   ;
8708   return 0;
8709 }
8710 _ACEOF
8711 rm -f conftest.$ac_objext conftest$ac_exeext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713   (eval $ac_link) 2>conftest.er1
8714   ac_status=$?
8715   grep -v '^ *+' conftest.er1 >conftest.err
8716   rm -f conftest.er1
8717   cat conftest.err >&5
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); } &&
8720          { ac_try='test -z "$ac_c_werror_flag"
8721                          || test ! -s conftest.err'
8722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723   (eval $ac_try) 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); }; } &&
8727          { ac_try='test -s conftest$ac_exeext'
8728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729   (eval $ac_try) 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); }; }; then
8733   eval "$as_ac_var=yes"
8734 else
8735   echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738 eval "$as_ac_var=no"
8739 fi
8740 rm -f conftest.err conftest.$ac_objext \
8741       conftest$ac_exeext conftest.$ac_ext
8742 fi
8743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8745 if test `eval echo '${'$as_ac_var'}'` = yes; then
8746   cat >>confdefs.h <<_ACEOF
8747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8748 _ACEOF
8749
8750 fi
8751 done
8752
8753 echo "$as_me:$LINENO: checking for working mmap" >&5
8754 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8755 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8756   echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758   if test "$cross_compiling" = yes; then
8759   ac_cv_func_mmap_fixed_mapped=no
8760 else
8761   cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h.  */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h.  */
8767 $ac_includes_default
8768 /* malloc might have been renamed as rpl_malloc. */
8769 #undef malloc
8770
8771 /* Thanks to Mike Haertel and Jim Avera for this test.
8772    Here is a matrix of mmap possibilities:
8773         mmap private not fixed
8774         mmap private fixed at somewhere currently unmapped
8775         mmap private fixed at somewhere already mapped
8776         mmap shared not fixed
8777         mmap shared fixed at somewhere currently unmapped
8778         mmap shared fixed at somewhere already mapped
8779    For private mappings, we should verify that changes cannot be read()
8780    back from the file, nor mmap's back from the file at a different
8781    address.  (There have been systems where private was not correctly
8782    implemented like the infamous i386 svr4.0, and systems where the
8783    VM page cache was not coherent with the file system buffer cache
8784    like early versions of FreeBSD and possibly contemporary NetBSD.)
8785    For shared mappings, we should conversely verify that changes get
8786    propagated back to all the places they're supposed to be.
8787
8788    Grep wants private fixed already mapped.
8789    The main things grep needs to know about mmap are:
8790    * does it exist and is it safe to write into the mmap'd area
8791    * how to use it (BSD variants)  */
8792
8793 #include <fcntl.h>
8794 #include <sys/mman.h>
8795
8796 #if !STDC_HEADERS && !HAVE_STDLIB_H
8797 char *malloc ();
8798 #endif
8799
8800 /* This mess was copied from the GNU getpagesize.h.  */
8801 #if !HAVE_GETPAGESIZE
8802 /* Assume that all systems that can run configure have sys/param.h.  */
8803 # if !HAVE_SYS_PARAM_H
8804 #  define HAVE_SYS_PARAM_H 1
8805 # endif
8806
8807 # ifdef _SC_PAGESIZE
8808 #  define getpagesize() sysconf(_SC_PAGESIZE)
8809 # else /* no _SC_PAGESIZE */
8810 #  if HAVE_SYS_PARAM_H
8811 #   include <sys/param.h>
8812 #   ifdef EXEC_PAGESIZE
8813 #    define getpagesize() EXEC_PAGESIZE
8814 #   else /* no EXEC_PAGESIZE */
8815 #    ifdef NBPG
8816 #     define getpagesize() NBPG * CLSIZE
8817 #     ifndef CLSIZE
8818 #      define CLSIZE 1
8819 #     endif /* no CLSIZE */
8820 #    else /* no NBPG */
8821 #     ifdef NBPC
8822 #      define getpagesize() NBPC
8823 #     else /* no NBPC */
8824 #      ifdef PAGESIZE
8825 #       define getpagesize() PAGESIZE
8826 #      endif /* PAGESIZE */
8827 #     endif /* no NBPC */
8828 #    endif /* no NBPG */
8829 #   endif /* no EXEC_PAGESIZE */
8830 #  else /* no HAVE_SYS_PARAM_H */
8831 #   define getpagesize() 8192   /* punt totally */
8832 #  endif /* no HAVE_SYS_PARAM_H */
8833 # endif /* no _SC_PAGESIZE */
8834
8835 #endif /* no HAVE_GETPAGESIZE */
8836
8837 int
8838 main ()
8839 {
8840   char *data, *data2, *data3;
8841   int i, pagesize;
8842   int fd;
8843
8844   pagesize = getpagesize ();
8845
8846   /* First, make a file with some known garbage in it. */
8847   data = (char *) malloc (pagesize);
8848   if (!data)
8849     exit (1);
8850   for (i = 0; i < pagesize; ++i)
8851     *(data + i) = rand ();
8852   umask (0);
8853   fd = creat ("conftest.mmap", 0600);
8854   if (fd < 0)
8855     exit (1);
8856   if (write (fd, data, pagesize) != pagesize)
8857     exit (1);
8858   close (fd);
8859
8860   /* Next, try to mmap the file at a fixed address which already has
8861      something else allocated at it.  If we can, also make sure that
8862      we see the same garbage.  */
8863   fd = open ("conftest.mmap", O_RDWR);
8864   if (fd < 0)
8865     exit (1);
8866   data2 = (char *) malloc (2 * pagesize);
8867   if (!data2)
8868     exit (1);
8869   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8870   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8871                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8872     exit (1);
8873   for (i = 0; i < pagesize; ++i)
8874     if (*(data + i) != *(data2 + i))
8875       exit (1);
8876
8877   /* Finally, make sure that changes to the mapped area do not
8878      percolate back to the file as seen by read().  (This is a bug on
8879      some variants of i386 svr4.0.)  */
8880   for (i = 0; i < pagesize; ++i)
8881     *(data2 + i) = *(data2 + i) + 1;
8882   data3 = (char *) malloc (pagesize);
8883   if (!data3)
8884     exit (1);
8885   if (read (fd, data3, pagesize) != pagesize)
8886     exit (1);
8887   for (i = 0; i < pagesize; ++i)
8888     if (*(data + i) != *(data3 + i))
8889       exit (1);
8890   close (fd);
8891   exit (0);
8892 }
8893 _ACEOF
8894 rm -f conftest$ac_exeext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896   (eval $ac_link) 2>&5
8897   ac_status=$?
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901   (eval $ac_try) 2>&5
8902   ac_status=$?
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   (exit $ac_status); }; }; then
8905   ac_cv_func_mmap_fixed_mapped=yes
8906 else
8907   echo "$as_me: program exited with status $ac_status" >&5
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8910
8911 ( exit $ac_status )
8912 ac_cv_func_mmap_fixed_mapped=no
8913 fi
8914 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8915 fi
8916 fi
8917 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8918 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8919 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8920
8921 cat >>confdefs.h <<\_ACEOF
8922 #define HAVE_MMAP 1
8923 _ACEOF
8924
8925 fi
8926 rm -f conftest.mmap
8927
8928
8929     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8930 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8931 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8932   echo $ECHO_N "(cached) $ECHO_C" >&6
8933 else
8934   cat >conftest.$ac_ext <<_ACEOF
8935 /* confdefs.h.  */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h.  */
8940
8941 #include <features.h>
8942 #ifdef __GNU_LIBRARY__
8943  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8944   Lucky GNU user
8945  #endif
8946 #endif
8947
8948 _ACEOF
8949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8950   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8951   ac_cv_gnu_library_2_1=yes
8952 else
8953   ac_cv_gnu_library_2_1=no
8954 fi
8955 rm -f conftest*
8956
8957
8958
8959 fi
8960 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8961 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8962
8963     GLIBC21="$ac_cv_gnu_library_2_1"
8964
8965
8966
8967
8968   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8969 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8970 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8971   echo $ECHO_N "(cached) $ECHO_C" >&6
8972 else
8973
8974       if test "$cross_compiling" = yes; then
8975
8976           # Guess based on the CPU.
8977           case "$host_cpu" in
8978             alpha* | i3456786 | m68k | s390*)
8979               gt_cv_int_divbyzero_sigfpe="guessing yes";;
8980             *)
8981               gt_cv_int_divbyzero_sigfpe="guessing no";;
8982           esac
8983
8984 else
8985   cat >conftest.$ac_ext <<_ACEOF
8986 /* confdefs.h.  */
8987 _ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h.  */
8991
8992 #include <stdlib.h>
8993 #include <signal.h>
8994
8995 static void
8996 #ifdef __cplusplus
8997 sigfpe_handler (int sig)
8998 #else
8999 sigfpe_handler (sig) int sig;
9000 #endif
9001 {
9002   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9003   exit (sig != SIGFPE);
9004 }
9005
9006 int x = 1;
9007 int y = 0;
9008 int z;
9009 int nan;
9010
9011 int main ()
9012 {
9013   signal (SIGFPE, sigfpe_handler);
9014 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9015 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9016   signal (SIGTRAP, sigfpe_handler);
9017 #endif
9018 /* Linux/SPARC yields signal SIGILL.  */
9019 #if defined (__sparc__) && defined (__linux__)
9020   signal (SIGILL, sigfpe_handler);
9021 #endif
9022
9023   z = x / y;
9024   nan = y / y;
9025   exit (1);
9026 }
9027
9028 _ACEOF
9029 rm -f conftest$ac_exeext
9030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9031   (eval $ac_link) 2>&5
9032   ac_status=$?
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036   (eval $ac_try) 2>&5
9037   ac_status=$?
9038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039   (exit $ac_status); }; }; then
9040   gt_cv_int_divbyzero_sigfpe=yes
9041 else
9042   echo "$as_me: program exited with status $ac_status" >&5
9043 echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9045
9046 ( exit $ac_status )
9047 gt_cv_int_divbyzero_sigfpe=no
9048 fi
9049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9050 fi
9051
9052 fi
9053 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9054 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9055   case "$gt_cv_int_divbyzero_sigfpe" in
9056     *yes) value=1;;
9057     *) value=0;;
9058   esac
9059
9060 cat >>confdefs.h <<_ACEOF
9061 #define INTDIV0_RAISES_SIGFPE $value
9062 _ACEOF
9063
9064
9065
9066   echo "$as_me:$LINENO: checking for unsigned long long" >&5
9067 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9068 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9069   echo $ECHO_N "(cached) $ECHO_C" >&6
9070 else
9071   cat >conftest.$ac_ext <<_ACEOF
9072 /* confdefs.h.  */
9073 _ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h.  */
9077 unsigned long long ull = 1ULL; int i = 63;
9078 int
9079 main ()
9080 {
9081 unsigned long long ullmax = (unsigned long long) -1;
9082      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9083   ;
9084   return 0;
9085 }
9086 _ACEOF
9087 rm -f conftest.$ac_objext conftest$ac_exeext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089   (eval $ac_link) 2>conftest.er1
9090   ac_status=$?
9091   grep -v '^ *+' conftest.er1 >conftest.err
9092   rm -f conftest.er1
9093   cat conftest.err >&5
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); } &&
9096          { ac_try='test -z "$ac_c_werror_flag"
9097                          || test ! -s conftest.err'
9098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099   (eval $ac_try) 2>&5
9100   ac_status=$?
9101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   (exit $ac_status); }; } &&
9103          { ac_try='test -s conftest$ac_exeext'
9104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105   (eval $ac_try) 2>&5
9106   ac_status=$?
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); }; }; then
9109   ac_cv_type_unsigned_long_long=yes
9110 else
9111   echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9113
9114 ac_cv_type_unsigned_long_long=no
9115 fi
9116 rm -f conftest.err conftest.$ac_objext \
9117       conftest$ac_exeext conftest.$ac_ext
9118 fi
9119 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9120 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9121   if test $ac_cv_type_unsigned_long_long = yes; then
9122
9123 cat >>confdefs.h <<\_ACEOF
9124 #define HAVE_UNSIGNED_LONG_LONG 1
9125 _ACEOF
9126
9127   fi
9128
9129
9130
9131
9132   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9133
9134     test $ac_cv_type_unsigned_long_long = yes \
9135       && ac_type='unsigned long long' \
9136       || ac_type='unsigned long'
9137
9138 cat >>confdefs.h <<_ACEOF
9139 #define uintmax_t $ac_type
9140 _ACEOF
9141
9142   else
9143
9144 cat >>confdefs.h <<\_ACEOF
9145 #define HAVE_UINTMAX_T 1
9146 _ACEOF
9147
9148   fi
9149
9150
9151   echo "$as_me:$LINENO: checking for inttypes.h" >&5
9152 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9153 if test "${gt_cv_header_inttypes_h+set}" = set; then
9154   echo $ECHO_N "(cached) $ECHO_C" >&6
9155 else
9156
9157     cat >conftest.$ac_ext <<_ACEOF
9158 /* confdefs.h.  */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h.  */
9163 #include <sys/types.h>
9164 #include <inttypes.h>
9165 int
9166 main ()
9167 {
9168
9169   ;
9170   return 0;
9171 }
9172 _ACEOF
9173 rm -f conftest.$ac_objext
9174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9175   (eval $ac_compile) 2>conftest.er1
9176   ac_status=$?
9177   grep -v '^ *+' conftest.er1 >conftest.err
9178   rm -f conftest.er1
9179   cat conftest.err >&5
9180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181   (exit $ac_status); } &&
9182          { ac_try='test -z "$ac_c_werror_flag"
9183                          || test ! -s conftest.err'
9184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185   (eval $ac_try) 2>&5
9186   ac_status=$?
9187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); }; } &&
9189          { ac_try='test -s conftest.$ac_objext'
9190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191   (eval $ac_try) 2>&5
9192   ac_status=$?
9193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194   (exit $ac_status); }; }; then
9195   gt_cv_header_inttypes_h=yes
9196 else
9197   echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9199
9200 gt_cv_header_inttypes_h=no
9201 fi
9202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9203
9204 fi
9205 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9206 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9207   if test $gt_cv_header_inttypes_h = yes; then
9208
9209 cat >>confdefs.h <<_ACEOF
9210 #define HAVE_INTTYPES_H 1
9211 _ACEOF
9212
9213   fi
9214
9215
9216
9217   if test $gt_cv_header_inttypes_h = yes; then
9218     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9219 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9220 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9221   echo $ECHO_N "(cached) $ECHO_C" >&6
9222 else
9223
9224         cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h.  */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h.  */
9230 #include <inttypes.h>
9231 #ifdef PRId32
9232 char *p = PRId32;
9233 #endif
9234
9235 int
9236 main ()
9237 {
9238
9239   ;
9240   return 0;
9241 }
9242 _ACEOF
9243 rm -f conftest.$ac_objext
9244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9245   (eval $ac_compile) 2>conftest.er1
9246   ac_status=$?
9247   grep -v '^ *+' conftest.er1 >conftest.err
9248   rm -f conftest.er1
9249   cat conftest.err >&5
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); } &&
9252          { ac_try='test -z "$ac_c_werror_flag"
9253                          || test ! -s conftest.err'
9254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255   (eval $ac_try) 2>&5
9256   ac_status=$?
9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); }; } &&
9259          { ac_try='test -s conftest.$ac_objext'
9260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261   (eval $ac_try) 2>&5
9262   ac_status=$?
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); }; }; then
9265   gt_cv_inttypes_pri_broken=no
9266 else
9267   echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9269
9270 gt_cv_inttypes_pri_broken=yes
9271 fi
9272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9273
9274 fi
9275 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9276 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9277   fi
9278   if test "$gt_cv_inttypes_pri_broken" = yes; then
9279
9280 cat >>confdefs.h <<_ACEOF
9281 #define PRI_MACROS_BROKEN 1
9282 _ACEOF
9283
9284   fi
9285
9286
9287
9288 for ac_header in stdint.h
9289 do
9290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9292   echo "$as_me:$LINENO: checking for $ac_header" >&5
9293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9295   echo $ECHO_N "(cached) $ECHO_C" >&6
9296 fi
9297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9299 else
9300   # Is the header compilable?
9301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9303 cat >conftest.$ac_ext <<_ACEOF
9304 /* confdefs.h.  */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h.  */
9309 $ac_includes_default
9310 #include <$ac_header>
9311 _ACEOF
9312 rm -f conftest.$ac_objext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9314   (eval $ac_compile) 2>conftest.er1
9315   ac_status=$?
9316   grep -v '^ *+' conftest.er1 >conftest.err
9317   rm -f conftest.er1
9318   cat conftest.err >&5
9319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320   (exit $ac_status); } &&
9321          { ac_try='test -z "$ac_c_werror_flag"
9322                          || test ! -s conftest.err'
9323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324   (eval $ac_try) 2>&5
9325   ac_status=$?
9326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327   (exit $ac_status); }; } &&
9328          { ac_try='test -s conftest.$ac_objext'
9329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330   (eval $ac_try) 2>&5
9331   ac_status=$?
9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333   (exit $ac_status); }; }; then
9334   ac_header_compiler=yes
9335 else
9336   echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9338
9339 ac_header_compiler=no
9340 fi
9341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9343 echo "${ECHO_T}$ac_header_compiler" >&6
9344
9345 # Is the header present?
9346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9348 cat >conftest.$ac_ext <<_ACEOF
9349 /* confdefs.h.  */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h.  */
9354 #include <$ac_header>
9355 _ACEOF
9356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9357   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9358   ac_status=$?
9359   grep -v '^ *+' conftest.er1 >conftest.err
9360   rm -f conftest.er1
9361   cat conftest.err >&5
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); } >/dev/null; then
9364   if test -s conftest.err; then
9365     ac_cpp_err=$ac_c_preproc_warn_flag
9366     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9367   else
9368     ac_cpp_err=
9369   fi
9370 else
9371   ac_cpp_err=yes
9372 fi
9373 if test -z "$ac_cpp_err"; then
9374   ac_header_preproc=yes
9375 else
9376   echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9378
9379   ac_header_preproc=no
9380 fi
9381 rm -f conftest.err conftest.$ac_ext
9382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9383 echo "${ECHO_T}$ac_header_preproc" >&6
9384
9385 # So?  What about this header?
9386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9387   yes:no: )
9388     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9390     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9392     ac_header_preproc=yes
9393     ;;
9394   no:yes:* )
9395     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9397     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9398 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9399     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9401     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9402 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9405     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9407     (
9408       cat <<\_ASBOX
9409 ## ------------------------------------------ ##
9410 ## Report this to the AC_PACKAGE_NAME lists.  ##
9411 ## ------------------------------------------ ##
9412 _ASBOX
9413     ) |
9414       sed "s/^/$as_me: WARNING:     /" >&2
9415     ;;
9416 esac
9417 echo "$as_me:$LINENO: checking for $ac_header" >&5
9418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9420   echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422   eval "$as_ac_Header=\$ac_header_preproc"
9423 fi
9424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9426
9427 fi
9428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9429   cat >>confdefs.h <<_ACEOF
9430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9431 _ACEOF
9432
9433 fi
9434
9435 done
9436
9437     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9438 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9439   result=
9440   cat >conftest.$ac_ext <<_ACEOF
9441 /* confdefs.h.  */
9442 _ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h.  */
9446
9447 #include <limits.h>
9448 #if HAVE_STDINT_H
9449 #include <stdint.h>
9450 #endif
9451 #ifdef SIZE_MAX
9452 Found it
9453 #endif
9454
9455 _ACEOF
9456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9457   $EGREP "Found it" >/dev/null 2>&1; then
9458   result=yes
9459 fi
9460 rm -f conftest*
9461
9462   if test -z "$result"; then
9463                     if test "$cross_compiling" = yes; then
9464   # Depending upon the size, compute the lo and hi bounds.
9465 cat >conftest.$ac_ext <<_ACEOF
9466 /* confdefs.h.  */
9467 _ACEOF
9468 cat confdefs.h >>conftest.$ac_ext
9469 cat >>conftest.$ac_ext <<_ACEOF
9470 /* end confdefs.h.  */
9471 #include <stddef.h>
9472 int
9473 main ()
9474 {
9475 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9476 test_array [0] = 0
9477
9478   ;
9479   return 0;
9480 }
9481 _ACEOF
9482 rm -f conftest.$ac_objext
9483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9484   (eval $ac_compile) 2>conftest.er1
9485   ac_status=$?
9486   grep -v '^ *+' conftest.er1 >conftest.err
9487   rm -f conftest.er1
9488   cat conftest.err >&5
9489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490   (exit $ac_status); } &&
9491          { ac_try='test -z "$ac_c_werror_flag"
9492                          || test ! -s conftest.err'
9493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494   (eval $ac_try) 2>&5
9495   ac_status=$?
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); }; } &&
9498          { ac_try='test -s conftest.$ac_objext'
9499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500   (eval $ac_try) 2>&5
9501   ac_status=$?
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); }; }; then
9504   ac_lo=0 ac_mid=0
9505   while :; do
9506     cat >conftest.$ac_ext <<_ACEOF
9507 /* confdefs.h.  */
9508 _ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h.  */
9512 #include <stddef.h>
9513 int
9514 main ()
9515 {
9516 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9517 test_array [0] = 0
9518
9519   ;
9520   return 0;
9521 }
9522 _ACEOF
9523 rm -f conftest.$ac_objext
9524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9525   (eval $ac_compile) 2>conftest.er1
9526   ac_status=$?
9527   grep -v '^ *+' conftest.er1 >conftest.err
9528   rm -f conftest.er1
9529   cat conftest.err >&5
9530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531   (exit $ac_status); } &&
9532          { ac_try='test -z "$ac_c_werror_flag"
9533                          || test ! -s conftest.err'
9534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535   (eval $ac_try) 2>&5
9536   ac_status=$?
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); }; } &&
9539          { ac_try='test -s conftest.$ac_objext'
9540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541   (eval $ac_try) 2>&5
9542   ac_status=$?
9543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544   (exit $ac_status); }; }; then
9545   ac_hi=$ac_mid; break
9546 else
9547   echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9549
9550 ac_lo=`expr $ac_mid + 1`
9551                     if test $ac_lo -le $ac_mid; then
9552                       ac_lo= ac_hi=
9553                       break
9554                     fi
9555                     ac_mid=`expr 2 '*' $ac_mid + 1`
9556 fi
9557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9558   done
9559 else
9560   echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9562
9563 cat >conftest.$ac_ext <<_ACEOF
9564 /* confdefs.h.  */
9565 _ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h.  */
9569 #include <stddef.h>
9570 int
9571 main ()
9572 {
9573 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9574 test_array [0] = 0
9575
9576   ;
9577   return 0;
9578 }
9579 _ACEOF
9580 rm -f conftest.$ac_objext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582   (eval $ac_compile) 2>conftest.er1
9583   ac_status=$?
9584   grep -v '^ *+' conftest.er1 >conftest.err
9585   rm -f conftest.er1
9586   cat conftest.err >&5
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); } &&
9589          { ac_try='test -z "$ac_c_werror_flag"
9590                          || test ! -s conftest.err'
9591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592   (eval $ac_try) 2>&5
9593   ac_status=$?
9594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595   (exit $ac_status); }; } &&
9596          { ac_try='test -s conftest.$ac_objext'
9597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598   (eval $ac_try) 2>&5
9599   ac_status=$?
9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); }; }; then
9602   ac_hi=-1 ac_mid=-1
9603   while :; do
9604     cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h.  */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h.  */
9610 #include <stddef.h>
9611 int
9612 main ()
9613 {
9614 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9615 test_array [0] = 0
9616
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 rm -f conftest.$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623   (eval $ac_compile) 2>conftest.er1
9624   ac_status=$?
9625   grep -v '^ *+' conftest.er1 >conftest.err
9626   rm -f conftest.er1
9627   cat conftest.err >&5
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   (exit $ac_status); } &&
9630          { ac_try='test -z "$ac_c_werror_flag"
9631                          || test ! -s conftest.err'
9632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633   (eval $ac_try) 2>&5
9634   ac_status=$?
9635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636   (exit $ac_status); }; } &&
9637          { ac_try='test -s conftest.$ac_objext'
9638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639   (eval $ac_try) 2>&5
9640   ac_status=$?
9641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642   (exit $ac_status); }; }; then
9643   ac_lo=$ac_mid; break
9644 else
9645   echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9647
9648 ac_hi=`expr '(' $ac_mid ')' - 1`
9649                        if test $ac_mid -le $ac_hi; then
9650                          ac_lo= ac_hi=
9651                          break
9652                        fi
9653                        ac_mid=`expr 2 '*' $ac_mid`
9654 fi
9655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9656   done
9657 else
9658   echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9660
9661 ac_lo= ac_hi=
9662 fi
9663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9664 fi
9665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9666 # Binary search between lo and hi bounds.
9667 while test "x$ac_lo" != "x$ac_hi"; do
9668   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9669   cat >conftest.$ac_ext <<_ACEOF
9670 /* confdefs.h.  */
9671 _ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h.  */
9675 #include <stddef.h>
9676 int
9677 main ()
9678 {
9679 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9680 test_array [0] = 0
9681
9682   ;
9683   return 0;
9684 }
9685 _ACEOF
9686 rm -f conftest.$ac_objext
9687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9688   (eval $ac_compile) 2>conftest.er1
9689   ac_status=$?
9690   grep -v '^ *+' conftest.er1 >conftest.err
9691   rm -f conftest.er1
9692   cat conftest.err >&5
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); } &&
9695          { ac_try='test -z "$ac_c_werror_flag"
9696                          || test ! -s conftest.err'
9697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698   (eval $ac_try) 2>&5
9699   ac_status=$?
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); }; } &&
9702          { ac_try='test -s conftest.$ac_objext'
9703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704   (eval $ac_try) 2>&5
9705   ac_status=$?
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); }; }; then
9708   ac_hi=$ac_mid
9709 else
9710   echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9712
9713 ac_lo=`expr '(' $ac_mid ')' + 1`
9714 fi
9715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9716 done
9717 case $ac_lo in
9718 ?*) res_hi=$ac_lo;;
9719 '') result=? ;;
9720 esac
9721 else
9722   if test "$cross_compiling" = yes; then
9723   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9724 See \`config.log' for more details." >&5
9725 echo "$as_me: error: cannot run test program while cross compiling
9726 See \`config.log' for more details." >&2;}
9727    { (exit 1); exit 1; }; }
9728 else
9729   cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h.  */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h.  */
9735 #include <stddef.h>
9736 long longval () { return ~(size_t)0 / 10; }
9737 unsigned long ulongval () { return ~(size_t)0 / 10; }
9738 #include <stdio.h>
9739 #include <stdlib.h>
9740 int
9741 main ()
9742 {
9743
9744   FILE *f = fopen ("conftest.val", "w");
9745   if (! f)
9746     exit (1);
9747   if ((~(size_t)0 / 10) < 0)
9748     {
9749       long i = longval ();
9750       if (i != (~(size_t)0 / 10))
9751         exit (1);
9752       fprintf (f, "%ld\n", i);
9753     }
9754   else
9755     {
9756       unsigned long i = ulongval ();
9757       if (i != (~(size_t)0 / 10))
9758         exit (1);
9759       fprintf (f, "%lu\n", i);
9760     }
9761   exit (ferror (f) || fclose (f) != 0);
9762
9763   ;
9764   return 0;
9765 }
9766 _ACEOF
9767 rm -f conftest$ac_exeext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769   (eval $ac_link) 2>&5
9770   ac_status=$?
9771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774   (eval $ac_try) 2>&5
9775   ac_status=$?
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); }; }; then
9778   res_hi=`cat conftest.val`
9779 else
9780   echo "$as_me: program exited with status $ac_status" >&5
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9783
9784 ( exit $ac_status )
9785 result=?
9786 fi
9787 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9788 fi
9789 fi
9790 rm -f conftest.val
9791     if test "$cross_compiling" = yes; then
9792   # Depending upon the size, compute the lo and hi bounds.
9793 cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h.  */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h.  */
9799 #include <stddef.h>
9800 int
9801 main ()
9802 {
9803 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9804 test_array [0] = 0
9805
9806   ;
9807   return 0;
9808 }
9809 _ACEOF
9810 rm -f conftest.$ac_objext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9812   (eval $ac_compile) 2>conftest.er1
9813   ac_status=$?
9814   grep -v '^ *+' conftest.er1 >conftest.err
9815   rm -f conftest.er1
9816   cat conftest.err >&5
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); } &&
9819          { ac_try='test -z "$ac_c_werror_flag"
9820                          || test ! -s conftest.err'
9821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822   (eval $ac_try) 2>&5
9823   ac_status=$?
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); }; } &&
9826          { ac_try='test -s conftest.$ac_objext'
9827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828   (eval $ac_try) 2>&5
9829   ac_status=$?
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); }; }; then
9832   ac_lo=0 ac_mid=0
9833   while :; do
9834     cat >conftest.$ac_ext <<_ACEOF
9835 /* confdefs.h.  */
9836 _ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h.  */
9840 #include <stddef.h>
9841 int
9842 main ()
9843 {
9844 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9845 test_array [0] = 0
9846
9847   ;
9848   return 0;
9849 }
9850 _ACEOF
9851 rm -f conftest.$ac_objext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853   (eval $ac_compile) 2>conftest.er1
9854   ac_status=$?
9855   grep -v '^ *+' conftest.er1 >conftest.err
9856   rm -f conftest.er1
9857   cat conftest.err >&5
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); } &&
9860          { ac_try='test -z "$ac_c_werror_flag"
9861                          || test ! -s conftest.err'
9862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863   (eval $ac_try) 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); }; } &&
9867          { ac_try='test -s conftest.$ac_objext'
9868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869   (eval $ac_try) 2>&5
9870   ac_status=$?
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); }; }; then
9873   ac_hi=$ac_mid; break
9874 else
9875   echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9877
9878 ac_lo=`expr $ac_mid + 1`
9879                     if test $ac_lo -le $ac_mid; then
9880                       ac_lo= ac_hi=
9881                       break
9882                     fi
9883                     ac_mid=`expr 2 '*' $ac_mid + 1`
9884 fi
9885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9886   done
9887 else
9888   echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9890
9891 cat >conftest.$ac_ext <<_ACEOF
9892 /* confdefs.h.  */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h.  */
9897 #include <stddef.h>
9898 int
9899 main ()
9900 {
9901 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9902 test_array [0] = 0
9903
9904   ;
9905   return 0;
9906 }
9907 _ACEOF
9908 rm -f conftest.$ac_objext
9909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9910   (eval $ac_compile) 2>conftest.er1
9911   ac_status=$?
9912   grep -v '^ *+' conftest.er1 >conftest.err
9913   rm -f conftest.er1
9914   cat conftest.err >&5
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); } &&
9917          { ac_try='test -z "$ac_c_werror_flag"
9918                          || test ! -s conftest.err'
9919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920   (eval $ac_try) 2>&5
9921   ac_status=$?
9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923   (exit $ac_status); }; } &&
9924          { ac_try='test -s conftest.$ac_objext'
9925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926   (eval $ac_try) 2>&5
9927   ac_status=$?
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); }; }; then
9930   ac_hi=-1 ac_mid=-1
9931   while :; do
9932     cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h.  */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h.  */
9938 #include <stddef.h>
9939 int
9940 main ()
9941 {
9942 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9943 test_array [0] = 0
9944
9945   ;
9946   return 0;
9947 }
9948 _ACEOF
9949 rm -f conftest.$ac_objext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9951   (eval $ac_compile) 2>conftest.er1
9952   ac_status=$?
9953   grep -v '^ *+' conftest.er1 >conftest.err
9954   rm -f conftest.er1
9955   cat conftest.err >&5
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); } &&
9958          { ac_try='test -z "$ac_c_werror_flag"
9959                          || test ! -s conftest.err'
9960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961   (eval $ac_try) 2>&5
9962   ac_status=$?
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); }; } &&
9965          { ac_try='test -s conftest.$ac_objext'
9966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967   (eval $ac_try) 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); }; }; then
9971   ac_lo=$ac_mid; break
9972 else
9973   echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9975
9976 ac_hi=`expr '(' $ac_mid ')' - 1`
9977                        if test $ac_mid -le $ac_hi; then
9978                          ac_lo= ac_hi=
9979                          break
9980                        fi
9981                        ac_mid=`expr 2 '*' $ac_mid`
9982 fi
9983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9984   done
9985 else
9986   echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9988
9989 ac_lo= ac_hi=
9990 fi
9991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9992 fi
9993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9994 # Binary search between lo and hi bounds.
9995 while test "x$ac_lo" != "x$ac_hi"; do
9996   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9997   cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h.  */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h.  */
10003 #include <stddef.h>
10004 int
10005 main ()
10006 {
10007 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10008 test_array [0] = 0
10009
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest.$ac_objext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10016   (eval $ac_compile) 2>conftest.er1
10017   ac_status=$?
10018   grep -v '^ *+' conftest.er1 >conftest.err
10019   rm -f conftest.er1
10020   cat conftest.err >&5
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); } &&
10023          { ac_try='test -z "$ac_c_werror_flag"
10024                          || test ! -s conftest.err'
10025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026   (eval $ac_try) 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); }; } &&
10030          { ac_try='test -s conftest.$ac_objext'
10031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032   (eval $ac_try) 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; }; then
10036   ac_hi=$ac_mid
10037 else
10038   echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10040
10041 ac_lo=`expr '(' $ac_mid ')' + 1`
10042 fi
10043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10044 done
10045 case $ac_lo in
10046 ?*) res_lo=$ac_lo;;
10047 '') result=? ;;
10048 esac
10049 else
10050   if test "$cross_compiling" = yes; then
10051   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10052 See \`config.log' for more details." >&5
10053 echo "$as_me: error: cannot run test program while cross compiling
10054 See \`config.log' for more details." >&2;}
10055    { (exit 1); exit 1; }; }
10056 else
10057   cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h.  */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h.  */
10063 #include <stddef.h>
10064 long longval () { return ~(size_t)0 % 10; }
10065 unsigned long ulongval () { return ~(size_t)0 % 10; }
10066 #include <stdio.h>
10067 #include <stdlib.h>
10068 int
10069 main ()
10070 {
10071
10072   FILE *f = fopen ("conftest.val", "w");
10073   if (! f)
10074     exit (1);
10075   if ((~(size_t)0 % 10) < 0)
10076     {
10077       long i = longval ();
10078       if (i != (~(size_t)0 % 10))
10079         exit (1);
10080       fprintf (f, "%ld\n", i);
10081     }
10082   else
10083     {
10084       unsigned long i = ulongval ();
10085       if (i != (~(size_t)0 % 10))
10086         exit (1);
10087       fprintf (f, "%lu\n", i);
10088     }
10089   exit (ferror (f) || fclose (f) != 0);
10090
10091   ;
10092   return 0;
10093 }
10094 _ACEOF
10095 rm -f conftest$ac_exeext
10096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10097   (eval $ac_link) 2>&5
10098   ac_status=$?
10099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102   (eval $ac_try) 2>&5
10103   ac_status=$?
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); }; }; then
10106   res_lo=`cat conftest.val`
10107 else
10108   echo "$as_me: program exited with status $ac_status" >&5
10109 echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.$ac_ext >&5
10111
10112 ( exit $ac_status )
10113 result=?
10114 fi
10115 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10116 fi
10117 fi
10118 rm -f conftest.val
10119     if test "$cross_compiling" = yes; then
10120   # Depending upon the size, compute the lo and hi bounds.
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h.  */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h.  */
10127 #include <stddef.h>
10128 int
10129 main ()
10130 {
10131 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10132 test_array [0] = 0
10133
10134   ;
10135   return 0;
10136 }
10137 _ACEOF
10138 rm -f conftest.$ac_objext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10140   (eval $ac_compile) 2>conftest.er1
10141   ac_status=$?
10142   grep -v '^ *+' conftest.er1 >conftest.err
10143   rm -f conftest.er1
10144   cat conftest.err >&5
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); } &&
10147          { ac_try='test -z "$ac_c_werror_flag"
10148                          || test ! -s conftest.err'
10149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150   (eval $ac_try) 2>&5
10151   ac_status=$?
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); }; } &&
10154          { ac_try='test -s conftest.$ac_objext'
10155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156   (eval $ac_try) 2>&5
10157   ac_status=$?
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); }; }; then
10160   ac_lo=0 ac_mid=0
10161   while :; do
10162     cat >conftest.$ac_ext <<_ACEOF
10163 /* confdefs.h.  */
10164 _ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h.  */
10168 #include <stddef.h>
10169 int
10170 main ()
10171 {
10172 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10173 test_array [0] = 0
10174
10175   ;
10176   return 0;
10177 }
10178 _ACEOF
10179 rm -f conftest.$ac_objext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10181   (eval $ac_compile) 2>conftest.er1
10182   ac_status=$?
10183   grep -v '^ *+' conftest.er1 >conftest.err
10184   rm -f conftest.er1
10185   cat conftest.err >&5
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); } &&
10188          { ac_try='test -z "$ac_c_werror_flag"
10189                          || test ! -s conftest.err'
10190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191   (eval $ac_try) 2>&5
10192   ac_status=$?
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); }; } &&
10195          { ac_try='test -s conftest.$ac_objext'
10196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197   (eval $ac_try) 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); }; }; then
10201   ac_hi=$ac_mid; break
10202 else
10203   echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10205
10206 ac_lo=`expr $ac_mid + 1`
10207                     if test $ac_lo -le $ac_mid; then
10208                       ac_lo= ac_hi=
10209                       break
10210                     fi
10211                     ac_mid=`expr 2 '*' $ac_mid + 1`
10212 fi
10213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10214   done
10215 else
10216   echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10218
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h.  */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h.  */
10225 #include <stddef.h>
10226 int
10227 main ()
10228 {
10229 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10230 test_array [0] = 0
10231
10232   ;
10233   return 0;
10234 }
10235 _ACEOF
10236 rm -f conftest.$ac_objext
10237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10238   (eval $ac_compile) 2>conftest.er1
10239   ac_status=$?
10240   grep -v '^ *+' conftest.er1 >conftest.err
10241   rm -f conftest.er1
10242   cat conftest.err >&5
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); } &&
10245          { ac_try='test -z "$ac_c_werror_flag"
10246                          || test ! -s conftest.err'
10247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10248   (eval $ac_try) 2>&5
10249   ac_status=$?
10250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251   (exit $ac_status); }; } &&
10252          { ac_try='test -s conftest.$ac_objext'
10253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254   (eval $ac_try) 2>&5
10255   ac_status=$?
10256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257   (exit $ac_status); }; }; then
10258   ac_hi=-1 ac_mid=-1
10259   while :; do
10260     cat >conftest.$ac_ext <<_ACEOF
10261 /* confdefs.h.  */
10262 _ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h.  */
10266 #include <stddef.h>
10267 int
10268 main ()
10269 {
10270 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10271 test_array [0] = 0
10272
10273   ;
10274   return 0;
10275 }
10276 _ACEOF
10277 rm -f conftest.$ac_objext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279   (eval $ac_compile) 2>conftest.er1
10280   ac_status=$?
10281   grep -v '^ *+' conftest.er1 >conftest.err
10282   rm -f conftest.er1
10283   cat conftest.err >&5
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); } &&
10286          { ac_try='test -z "$ac_c_werror_flag"
10287                          || test ! -s conftest.err'
10288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289   (eval $ac_try) 2>&5
10290   ac_status=$?
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); }; } &&
10293          { ac_try='test -s conftest.$ac_objext'
10294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295   (eval $ac_try) 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); }; }; then
10299   ac_lo=$ac_mid; break
10300 else
10301   echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10303
10304 ac_hi=`expr '(' $ac_mid ')' - 1`
10305                        if test $ac_mid -le $ac_hi; then
10306                          ac_lo= ac_hi=
10307                          break
10308                        fi
10309                        ac_mid=`expr 2 '*' $ac_mid`
10310 fi
10311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10312   done
10313 else
10314   echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.$ac_ext >&5
10316
10317 ac_lo= ac_hi=
10318 fi
10319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10320 fi
10321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10322 # Binary search between lo and hi bounds.
10323 while test "x$ac_lo" != "x$ac_hi"; do
10324   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10325   cat >conftest.$ac_ext <<_ACEOF
10326 /* confdefs.h.  */
10327 _ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h.  */
10331 #include <stddef.h>
10332 int
10333 main ()
10334 {
10335 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10336 test_array [0] = 0
10337
10338   ;
10339   return 0;
10340 }
10341 _ACEOF
10342 rm -f conftest.$ac_objext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10344   (eval $ac_compile) 2>conftest.er1
10345   ac_status=$?
10346   grep -v '^ *+' conftest.er1 >conftest.err
10347   rm -f conftest.er1
10348   cat conftest.err >&5
10349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350   (exit $ac_status); } &&
10351          { ac_try='test -z "$ac_c_werror_flag"
10352                          || test ! -s conftest.err'
10353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354   (eval $ac_try) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; } &&
10358          { ac_try='test -s conftest.$ac_objext'
10359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360   (eval $ac_try) 2>&5
10361   ac_status=$?
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); }; }; then
10364   ac_hi=$ac_mid
10365 else
10366   echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10368
10369 ac_lo=`expr '(' $ac_mid ')' + 1`
10370 fi
10371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10372 done
10373 case $ac_lo in
10374 ?*) fits_in_uint=$ac_lo;;
10375 '') result=? ;;
10376 esac
10377 else
10378   if test "$cross_compiling" = yes; then
10379   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10380 See \`config.log' for more details." >&5
10381 echo "$as_me: error: cannot run test program while cross compiling
10382 See \`config.log' for more details." >&2;}
10383    { (exit 1); exit 1; }; }
10384 else
10385   cat >conftest.$ac_ext <<_ACEOF
10386 /* confdefs.h.  */
10387 _ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h.  */
10391 #include <stddef.h>
10392 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10393 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10394 #include <stdio.h>
10395 #include <stdlib.h>
10396 int
10397 main ()
10398 {
10399
10400   FILE *f = fopen ("conftest.val", "w");
10401   if (! f)
10402     exit (1);
10403   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10404     {
10405       long i = longval ();
10406       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10407         exit (1);
10408       fprintf (f, "%ld\n", i);
10409     }
10410   else
10411     {
10412       unsigned long i = ulongval ();
10413       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10414         exit (1);
10415       fprintf (f, "%lu\n", i);
10416     }
10417   exit (ferror (f) || fclose (f) != 0);
10418
10419   ;
10420   return 0;
10421 }
10422 _ACEOF
10423 rm -f conftest$ac_exeext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10425   (eval $ac_link) 2>&5
10426   ac_status=$?
10427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430   (eval $ac_try) 2>&5
10431   ac_status=$?
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); }; }; then
10434   fits_in_uint=`cat conftest.val`
10435 else
10436   echo "$as_me: program exited with status $ac_status" >&5
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10439
10440 ( exit $ac_status )
10441 result=?
10442 fi
10443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10444 fi
10445 fi
10446 rm -f conftest.val
10447     if test "$fits_in_uint" = 1; then
10448                   cat >conftest.$ac_ext <<_ACEOF
10449 /* confdefs.h.  */
10450 _ACEOF
10451 cat confdefs.h >>conftest.$ac_ext
10452 cat >>conftest.$ac_ext <<_ACEOF
10453 /* end confdefs.h.  */
10454 #include <stddef.h>
10455         extern size_t foo;
10456         extern unsigned long foo;
10457
10458 int
10459 main ()
10460 {
10461
10462   ;
10463   return 0;
10464 }
10465 _ACEOF
10466 rm -f conftest.$ac_objext
10467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10468   (eval $ac_compile) 2>conftest.er1
10469   ac_status=$?
10470   grep -v '^ *+' conftest.er1 >conftest.err
10471   rm -f conftest.er1
10472   cat conftest.err >&5
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); } &&
10475          { ac_try='test -z "$ac_c_werror_flag"
10476                          || test ! -s conftest.err'
10477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478   (eval $ac_try) 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); }; } &&
10482          { ac_try='test -s conftest.$ac_objext'
10483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484   (eval $ac_try) 2>&5
10485   ac_status=$?
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); }; }; then
10488   fits_in_uint=0
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493 fi
10494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10495     fi
10496     if test -z "$result"; then
10497       if test "$fits_in_uint" = 1; then
10498         result="$res_hi$res_lo"U
10499       else
10500         result="$res_hi$res_lo"UL
10501       fi
10502     else
10503             result='~(size_t)0'
10504     fi
10505   fi
10506   echo "$as_me:$LINENO: result: $result" >&5
10507 echo "${ECHO_T}$result" >&6
10508   if test "$result" != yes; then
10509
10510 cat >>confdefs.h <<_ACEOF
10511 #define SIZE_MAX $result
10512 _ACEOF
10513
10514   fi
10515
10516
10517
10518
10519
10520 for ac_header in stdint.h
10521 do
10522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10524   echo "$as_me:$LINENO: checking for $ac_header" >&5
10525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10527   echo $ECHO_N "(cached) $ECHO_C" >&6
10528 fi
10529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10531 else
10532   # Is the header compilable?
10533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10535 cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h.  */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h.  */
10541 $ac_includes_default
10542 #include <$ac_header>
10543 _ACEOF
10544 rm -f conftest.$ac_objext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546   (eval $ac_compile) 2>conftest.er1
10547   ac_status=$?
10548   grep -v '^ *+' conftest.er1 >conftest.err
10549   rm -f conftest.er1
10550   cat conftest.err >&5
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); } &&
10553          { ac_try='test -z "$ac_c_werror_flag"
10554                          || test ! -s conftest.err'
10555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556   (eval $ac_try) 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); }; } &&
10560          { ac_try='test -s conftest.$ac_objext'
10561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562   (eval $ac_try) 2>&5
10563   ac_status=$?
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); }; }; then
10566   ac_header_compiler=yes
10567 else
10568   echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571 ac_header_compiler=no
10572 fi
10573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10575 echo "${ECHO_T}$ac_header_compiler" >&6
10576
10577 # Is the header present?
10578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10580 cat >conftest.$ac_ext <<_ACEOF
10581 /* confdefs.h.  */
10582 _ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h.  */
10586 #include <$ac_header>
10587 _ACEOF
10588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10589   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10590   ac_status=$?
10591   grep -v '^ *+' conftest.er1 >conftest.err
10592   rm -f conftest.er1
10593   cat conftest.err >&5
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); } >/dev/null; then
10596   if test -s conftest.err; then
10597     ac_cpp_err=$ac_c_preproc_warn_flag
10598     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10599   else
10600     ac_cpp_err=
10601   fi
10602 else
10603   ac_cpp_err=yes
10604 fi
10605 if test -z "$ac_cpp_err"; then
10606   ac_header_preproc=yes
10607 else
10608   echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10610
10611   ac_header_preproc=no
10612 fi
10613 rm -f conftest.err conftest.$ac_ext
10614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10615 echo "${ECHO_T}$ac_header_preproc" >&6
10616
10617 # So?  What about this header?
10618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10619   yes:no: )
10620     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10624     ac_header_preproc=yes
10625     ;;
10626   no:yes:* )
10627     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10629     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10630 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10631     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10633     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10634 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10635     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10637     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10639     (
10640       cat <<\_ASBOX
10641 ## ------------------------------------------ ##
10642 ## Report this to the AC_PACKAGE_NAME lists.  ##
10643 ## ------------------------------------------ ##
10644 _ASBOX
10645     ) |
10646       sed "s/^/$as_me: WARNING:     /" >&2
10647     ;;
10648 esac
10649 echo "$as_me:$LINENO: checking for $ac_header" >&5
10650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10652   echo $ECHO_N "(cached) $ECHO_C" >&6
10653 else
10654   eval "$as_ac_Header=\$ac_header_preproc"
10655 fi
10656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10658
10659 fi
10660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10661   cat >>confdefs.h <<_ACEOF
10662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10663 _ACEOF
10664
10665 fi
10666
10667 done
10668
10669
10670
10671
10672
10673
10674
10675
10676   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10677 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10678 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10679   echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681   cat >conftest.$ac_ext <<_ACEOF
10682 /* confdefs.h.  */
10683 _ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h.  */
10687 $ac_includes_default
10688 int
10689 main ()
10690 {
10691 if ((ptrdiff_t *) 0)
10692   return 0;
10693 if (sizeof (ptrdiff_t))
10694   return 0;
10695   ;
10696   return 0;
10697 }
10698 _ACEOF
10699 rm -f conftest.$ac_objext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10701   (eval $ac_compile) 2>conftest.er1
10702   ac_status=$?
10703   grep -v '^ *+' conftest.er1 >conftest.err
10704   rm -f conftest.er1
10705   cat conftest.err >&5
10706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   (exit $ac_status); } &&
10708          { ac_try='test -z "$ac_c_werror_flag"
10709                          || test ! -s conftest.err'
10710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711   (eval $ac_try) 2>&5
10712   ac_status=$?
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); }; } &&
10715          { ac_try='test -s conftest.$ac_objext'
10716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717   (eval $ac_try) 2>&5
10718   ac_status=$?
10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720   (exit $ac_status); }; }; then
10721   ac_cv_type_ptrdiff_t=yes
10722 else
10723   echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10725
10726 ac_cv_type_ptrdiff_t=no
10727 fi
10728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10729 fi
10730 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10731 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10732 if test $ac_cv_type_ptrdiff_t = yes; then
10733   :
10734 else
10735
10736 cat >>confdefs.h <<\_ACEOF
10737 #define ptrdiff_t long
10738 _ACEOF
10739
10740
10741 fi
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10754 stdlib.h string.h unistd.h sys/param.h
10755 do
10756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10758   echo "$as_me:$LINENO: checking for $ac_header" >&5
10759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10761   echo $ECHO_N "(cached) $ECHO_C" >&6
10762 fi
10763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10765 else
10766   # Is the header compilable?
10767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10769 cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h.  */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h.  */
10775 $ac_includes_default
10776 #include <$ac_header>
10777 _ACEOF
10778 rm -f conftest.$ac_objext
10779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10780   (eval $ac_compile) 2>conftest.er1
10781   ac_status=$?
10782   grep -v '^ *+' conftest.er1 >conftest.err
10783   rm -f conftest.er1
10784   cat conftest.err >&5
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); } &&
10787          { ac_try='test -z "$ac_c_werror_flag"
10788                          || test ! -s conftest.err'
10789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790   (eval $ac_try) 2>&5
10791   ac_status=$?
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); }; } &&
10794          { ac_try='test -s conftest.$ac_objext'
10795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796   (eval $ac_try) 2>&5
10797   ac_status=$?
10798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799   (exit $ac_status); }; }; then
10800   ac_header_compiler=yes
10801 else
10802   echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10804
10805 ac_header_compiler=no
10806 fi
10807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10809 echo "${ECHO_T}$ac_header_compiler" >&6
10810
10811 # Is the header present?
10812 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10814 cat >conftest.$ac_ext <<_ACEOF
10815 /* confdefs.h.  */
10816 _ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h.  */
10820 #include <$ac_header>
10821 _ACEOF
10822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10823   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10824   ac_status=$?
10825   grep -v '^ *+' conftest.er1 >conftest.err
10826   rm -f conftest.er1
10827   cat conftest.err >&5
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); } >/dev/null; then
10830   if test -s conftest.err; then
10831     ac_cpp_err=$ac_c_preproc_warn_flag
10832     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10833   else
10834     ac_cpp_err=
10835   fi
10836 else
10837   ac_cpp_err=yes
10838 fi
10839 if test -z "$ac_cpp_err"; then
10840   ac_header_preproc=yes
10841 else
10842   echo "$as_me: failed program was:" >&5
10843 sed 's/^/| /' conftest.$ac_ext >&5
10844
10845   ac_header_preproc=no
10846 fi
10847 rm -f conftest.err conftest.$ac_ext
10848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10849 echo "${ECHO_T}$ac_header_preproc" >&6
10850
10851 # So?  What about this header?
10852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10853   yes:no: )
10854     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10858     ac_header_preproc=yes
10859     ;;
10860   no:yes:* )
10861     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10863     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10864 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10865     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10867     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10868 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10871     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10873     (
10874       cat <<\_ASBOX
10875 ## ------------------------------------------ ##
10876 ## Report this to the AC_PACKAGE_NAME lists.  ##
10877 ## ------------------------------------------ ##
10878 _ASBOX
10879     ) |
10880       sed "s/^/$as_me: WARNING:     /" >&2
10881     ;;
10882 esac
10883 echo "$as_me:$LINENO: checking for $ac_header" >&5
10884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10886   echo $ECHO_N "(cached) $ECHO_C" >&6
10887 else
10888   eval "$as_ac_Header=\$ac_header_preproc"
10889 fi
10890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10892
10893 fi
10894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10895   cat >>confdefs.h <<_ACEOF
10896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10897 _ACEOF
10898
10899 fi
10900
10901 done
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10927 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10928 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10929 __fsetlocking
10930 do
10931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10932 echo "$as_me:$LINENO: checking for $ac_func" >&5
10933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10934 if eval "test \"\${$as_ac_var+set}\" = set"; then
10935   echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937   cat >conftest.$ac_ext <<_ACEOF
10938 /* confdefs.h.  */
10939 _ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h.  */
10943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10945 #define $ac_func innocuous_$ac_func
10946
10947 /* System header to define __stub macros and hopefully few prototypes,
10948     which can conflict with char $ac_func (); below.
10949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10950     <limits.h> exists even on freestanding compilers.  */
10951
10952 #ifdef __STDC__
10953 # include <limits.h>
10954 #else
10955 # include <assert.h>
10956 #endif
10957
10958 #undef $ac_func
10959
10960 /* Override any gcc2 internal prototype to avoid an error.  */
10961 #ifdef __cplusplus
10962 extern "C"
10963 {
10964 #endif
10965 /* We use char because int might match the return type of a gcc2
10966    builtin and then its argument prototype would still apply.  */
10967 char $ac_func ();
10968 /* The GNU C library defines this for functions which it implements
10969     to always fail with ENOSYS.  Some functions are actually named
10970     something starting with __ and the normal name is an alias.  */
10971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10972 choke me
10973 #else
10974 char (*f) () = $ac_func;
10975 #endif
10976 #ifdef __cplusplus
10977 }
10978 #endif
10979
10980 int
10981 main ()
10982 {
10983 return f != $ac_func;
10984   ;
10985   return 0;
10986 }
10987 _ACEOF
10988 rm -f conftest.$ac_objext conftest$ac_exeext
10989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10990   (eval $ac_link) 2>conftest.er1
10991   ac_status=$?
10992   grep -v '^ *+' conftest.er1 >conftest.err
10993   rm -f conftest.er1
10994   cat conftest.err >&5
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); } &&
10997          { ac_try='test -z "$ac_c_werror_flag"
10998                          || test ! -s conftest.err'
10999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000   (eval $ac_try) 2>&5
11001   ac_status=$?
11002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003   (exit $ac_status); }; } &&
11004          { ac_try='test -s conftest$ac_exeext'
11005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006   (eval $ac_try) 2>&5
11007   ac_status=$?
11008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009   (exit $ac_status); }; }; then
11010   eval "$as_ac_var=yes"
11011 else
11012   echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11014
11015 eval "$as_ac_var=no"
11016 fi
11017 rm -f conftest.err conftest.$ac_objext \
11018       conftest$ac_exeext conftest.$ac_ext
11019 fi
11020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11022 if test `eval echo '${'$as_ac_var'}'` = yes; then
11023   cat >>confdefs.h <<_ACEOF
11024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11025 _ACEOF
11026
11027 fi
11028 done
11029
11030
11031
11032   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11033 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11034 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11035   echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037   cat >conftest.$ac_ext <<_ACEOF
11038 /* confdefs.h.  */
11039 _ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h.  */
11043 #include <stdio.h>
11044 int
11045 main ()
11046 {
11047
11048 #ifndef _snprintf
11049   char *p = (char *) _snprintf;
11050 #endif
11051
11052   ;
11053   return 0;
11054 }
11055 _ACEOF
11056 rm -f conftest.$ac_objext
11057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11058   (eval $ac_compile) 2>conftest.er1
11059   ac_status=$?
11060   grep -v '^ *+' conftest.er1 >conftest.err
11061   rm -f conftest.er1
11062   cat conftest.err >&5
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); } &&
11065          { ac_try='test -z "$ac_c_werror_flag"
11066                          || test ! -s conftest.err'
11067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068   (eval $ac_try) 2>&5
11069   ac_status=$?
11070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071   (exit $ac_status); }; } &&
11072          { ac_try='test -s conftest.$ac_objext'
11073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074   (eval $ac_try) 2>&5
11075   ac_status=$?
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); }; }; then
11078   ac_cv_have_decl__snprintf=yes
11079 else
11080   echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11082
11083 ac_cv_have_decl__snprintf=no
11084 fi
11085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11086 fi
11087 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11088 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11089   if test $ac_cv_have_decl__snprintf = yes; then
11090     gt_value=1
11091   else
11092     gt_value=0
11093   fi
11094
11095 cat >>confdefs.h <<_ACEOF
11096 #define HAVE_DECL__SNPRINTF $gt_value
11097 _ACEOF
11098
11099
11100
11101   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11102 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11103 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11104   echo $ECHO_N "(cached) $ECHO_C" >&6
11105 else
11106   cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h.  */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h.  */
11112 #include <stdio.h>
11113 int
11114 main ()
11115 {
11116
11117 #ifndef _snwprintf
11118   char *p = (char *) _snwprintf;
11119 #endif
11120
11121   ;
11122   return 0;
11123 }
11124 _ACEOF
11125 rm -f conftest.$ac_objext
11126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11127   (eval $ac_compile) 2>conftest.er1
11128   ac_status=$?
11129   grep -v '^ *+' conftest.er1 >conftest.err
11130   rm -f conftest.er1
11131   cat conftest.err >&5
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); } &&
11134          { ac_try='test -z "$ac_c_werror_flag"
11135                          || test ! -s conftest.err'
11136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137   (eval $ac_try) 2>&5
11138   ac_status=$?
11139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140   (exit $ac_status); }; } &&
11141          { ac_try='test -s conftest.$ac_objext'
11142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143   (eval $ac_try) 2>&5
11144   ac_status=$?
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); }; }; then
11147   ac_cv_have_decl__snwprintf=yes
11148 else
11149   echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11151
11152 ac_cv_have_decl__snwprintf=no
11153 fi
11154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11155 fi
11156 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11157 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11158   if test $ac_cv_have_decl__snwprintf = yes; then
11159     gt_value=1
11160   else
11161     gt_value=0
11162   fi
11163
11164 cat >>confdefs.h <<_ACEOF
11165 #define HAVE_DECL__SNWPRINTF $gt_value
11166 _ACEOF
11167
11168
11169
11170
11171   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11172 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11173 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11174   echo $ECHO_N "(cached) $ECHO_C" >&6
11175 else
11176   cat >conftest.$ac_ext <<_ACEOF
11177 /* confdefs.h.  */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h.  */
11182 #include <stdio.h>
11183 int
11184 main ()
11185 {
11186
11187 #ifndef feof_unlocked
11188   char *p = (char *) feof_unlocked;
11189 #endif
11190
11191   ;
11192   return 0;
11193 }
11194 _ACEOF
11195 rm -f conftest.$ac_objext
11196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11197   (eval $ac_compile) 2>conftest.er1
11198   ac_status=$?
11199   grep -v '^ *+' conftest.er1 >conftest.err
11200   rm -f conftest.er1
11201   cat conftest.err >&5
11202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); } &&
11204          { ac_try='test -z "$ac_c_werror_flag"
11205                          || test ! -s conftest.err'
11206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207   (eval $ac_try) 2>&5
11208   ac_status=$?
11209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210   (exit $ac_status); }; } &&
11211          { ac_try='test -s conftest.$ac_objext'
11212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11213   (eval $ac_try) 2>&5
11214   ac_status=$?
11215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216   (exit $ac_status); }; }; then
11217   ac_cv_have_decl_feof_unlocked=yes
11218 else
11219   echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11221
11222 ac_cv_have_decl_feof_unlocked=no
11223 fi
11224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11225 fi
11226 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11227 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11228   if test $ac_cv_have_decl_feof_unlocked = yes; then
11229     gt_value=1
11230   else
11231     gt_value=0
11232   fi
11233
11234 cat >>confdefs.h <<_ACEOF
11235 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11236 _ACEOF
11237
11238
11239
11240   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11241 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11242 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11243   echo $ECHO_N "(cached) $ECHO_C" >&6
11244 else
11245   cat >conftest.$ac_ext <<_ACEOF
11246 /* confdefs.h.  */
11247 _ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h.  */
11251 #include <stdio.h>
11252 int
11253 main ()
11254 {
11255
11256 #ifndef fgets_unlocked
11257   char *p = (char *) fgets_unlocked;
11258 #endif
11259
11260   ;
11261   return 0;
11262 }
11263 _ACEOF
11264 rm -f conftest.$ac_objext
11265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11266   (eval $ac_compile) 2>conftest.er1
11267   ac_status=$?
11268   grep -v '^ *+' conftest.er1 >conftest.err
11269   rm -f conftest.er1
11270   cat conftest.err >&5
11271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); } &&
11273          { ac_try='test -z "$ac_c_werror_flag"
11274                          || test ! -s conftest.err'
11275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276   (eval $ac_try) 2>&5
11277   ac_status=$?
11278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279   (exit $ac_status); }; } &&
11280          { ac_try='test -s conftest.$ac_objext'
11281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282   (eval $ac_try) 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); }; }; then
11286   ac_cv_have_decl_fgets_unlocked=yes
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291 ac_cv_have_decl_fgets_unlocked=no
11292 fi
11293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11294 fi
11295 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11296 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11297   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11298     gt_value=1
11299   else
11300     gt_value=0
11301   fi
11302
11303 cat >>confdefs.h <<_ACEOF
11304 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11305 _ACEOF
11306
11307
11308
11309   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11310 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11311 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11312   echo $ECHO_N "(cached) $ECHO_C" >&6
11313 else
11314   cat >conftest.$ac_ext <<_ACEOF
11315 /* confdefs.h.  */
11316 _ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h.  */
11320 #include <stdio.h>
11321 int
11322 main ()
11323 {
11324
11325 #ifndef getc_unlocked
11326   char *p = (char *) getc_unlocked;
11327 #endif
11328
11329   ;
11330   return 0;
11331 }
11332 _ACEOF
11333 rm -f conftest.$ac_objext
11334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11335   (eval $ac_compile) 2>conftest.er1
11336   ac_status=$?
11337   grep -v '^ *+' conftest.er1 >conftest.err
11338   rm -f conftest.er1
11339   cat conftest.err >&5
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); } &&
11342          { ac_try='test -z "$ac_c_werror_flag"
11343                          || test ! -s conftest.err'
11344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345   (eval $ac_try) 2>&5
11346   ac_status=$?
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); }; } &&
11349          { ac_try='test -s conftest.$ac_objext'
11350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351   (eval $ac_try) 2>&5
11352   ac_status=$?
11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354   (exit $ac_status); }; }; then
11355   ac_cv_have_decl_getc_unlocked=yes
11356 else
11357   echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11359
11360 ac_cv_have_decl_getc_unlocked=no
11361 fi
11362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11363 fi
11364 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11365 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11366   if test $ac_cv_have_decl_getc_unlocked = yes; then
11367     gt_value=1
11368   else
11369     gt_value=0
11370   fi
11371
11372 cat >>confdefs.h <<_ACEOF
11373 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11374 _ACEOF
11375
11376
11377
11378   case $gt_cv_func_printf_posix in
11379     *yes) HAVE_POSIX_PRINTF=1 ;;
11380     *) HAVE_POSIX_PRINTF=0 ;;
11381   esac
11382
11383   if test "$ac_cv_func_asprintf" = yes; then
11384     HAVE_ASPRINTF=1
11385   else
11386     HAVE_ASPRINTF=0
11387   fi
11388
11389   if test "$ac_cv_func_snprintf" = yes; then
11390     HAVE_SNPRINTF=1
11391   else
11392     HAVE_SNPRINTF=0
11393   fi
11394
11395   if test "$ac_cv_func_wprintf" = yes; then
11396     HAVE_WPRINTF=1
11397   else
11398     HAVE_WPRINTF=0
11399   fi
11400
11401
11402
11403
11404
11405
11406
11407           am_save_CPPFLAGS="$CPPFLAGS"
11408
11409   for element in $INCICONV; do
11410     haveit=
11411     for x in $CPPFLAGS; do
11412
11413   acl_save_prefix="$prefix"
11414   prefix="$acl_final_prefix"
11415   acl_save_exec_prefix="$exec_prefix"
11416   exec_prefix="$acl_final_exec_prefix"
11417   eval x=\"$x\"
11418   exec_prefix="$acl_save_exec_prefix"
11419   prefix="$acl_save_prefix"
11420
11421       if test "X$x" = "X$element"; then
11422         haveit=yes
11423         break
11424       fi
11425     done
11426     if test -z "$haveit"; then
11427       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11428     fi
11429   done
11430
11431
11432   echo "$as_me:$LINENO: checking for iconv" >&5
11433 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11434 if test "${am_cv_func_iconv+set}" = set; then
11435   echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437
11438     am_cv_func_iconv="no, consider installing GNU libiconv"
11439     am_cv_lib_iconv=no
11440     cat >conftest.$ac_ext <<_ACEOF
11441 /* confdefs.h.  */
11442 _ACEOF
11443 cat confdefs.h >>conftest.$ac_ext
11444 cat >>conftest.$ac_ext <<_ACEOF
11445 /* end confdefs.h.  */
11446 #include <stdlib.h>
11447 #include <iconv.h>
11448 int
11449 main ()
11450 {
11451 iconv_t cd = iconv_open("","");
11452        iconv(cd,NULL,NULL,NULL,NULL);
11453        iconv_close(cd);
11454   ;
11455   return 0;
11456 }
11457 _ACEOF
11458 rm -f conftest.$ac_objext conftest$ac_exeext
11459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11460   (eval $ac_link) 2>conftest.er1
11461   ac_status=$?
11462   grep -v '^ *+' conftest.er1 >conftest.err
11463   rm -f conftest.er1
11464   cat conftest.err >&5
11465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466   (exit $ac_status); } &&
11467          { ac_try='test -z "$ac_c_werror_flag"
11468                          || test ! -s conftest.err'
11469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470   (eval $ac_try) 2>&5
11471   ac_status=$?
11472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473   (exit $ac_status); }; } &&
11474          { ac_try='test -s conftest$ac_exeext'
11475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476   (eval $ac_try) 2>&5
11477   ac_status=$?
11478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479   (exit $ac_status); }; }; then
11480   am_cv_func_iconv=yes
11481 else
11482   echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11484
11485 fi
11486 rm -f conftest.err conftest.$ac_objext \
11487       conftest$ac_exeext conftest.$ac_ext
11488     if test "$am_cv_func_iconv" != yes; then
11489       am_save_LIBS="$LIBS"
11490       LIBS="$LIBS $LIBICONV"
11491       cat >conftest.$ac_ext <<_ACEOF
11492 /* confdefs.h.  */
11493 _ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h.  */
11497 #include <stdlib.h>
11498 #include <iconv.h>
11499 int
11500 main ()
11501 {
11502 iconv_t cd = iconv_open("","");
11503          iconv(cd,NULL,NULL,NULL,NULL);
11504          iconv_close(cd);
11505   ;
11506   return 0;
11507 }
11508 _ACEOF
11509 rm -f conftest.$ac_objext conftest$ac_exeext
11510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11511   (eval $ac_link) 2>conftest.er1
11512   ac_status=$?
11513   grep -v '^ *+' conftest.er1 >conftest.err
11514   rm -f conftest.er1
11515   cat conftest.err >&5
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); } &&
11518          { ac_try='test -z "$ac_c_werror_flag"
11519                          || test ! -s conftest.err'
11520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521   (eval $ac_try) 2>&5
11522   ac_status=$?
11523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524   (exit $ac_status); }; } &&
11525          { ac_try='test -s conftest$ac_exeext'
11526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527   (eval $ac_try) 2>&5
11528   ac_status=$?
11529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530   (exit $ac_status); }; }; then
11531   am_cv_lib_iconv=yes
11532         am_cv_func_iconv=yes
11533 else
11534   echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11536
11537 fi
11538 rm -f conftest.err conftest.$ac_objext \
11539       conftest$ac_exeext conftest.$ac_ext
11540       LIBS="$am_save_LIBS"
11541     fi
11542
11543 fi
11544 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11545 echo "${ECHO_T}$am_cv_func_iconv" >&6
11546   if test "$am_cv_func_iconv" = yes; then
11547
11548 cat >>confdefs.h <<\_ACEOF
11549 #define HAVE_ICONV 1
11550 _ACEOF
11551
11552   fi
11553   if test "$am_cv_lib_iconv" = yes; then
11554     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11555 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11556     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11557 echo "${ECHO_T}$LIBICONV" >&6
11558   else
11559             CPPFLAGS="$am_save_CPPFLAGS"
11560     LIBICONV=
11561     LTLIBICONV=
11562   fi
11563
11564
11565
11566   if test "$am_cv_func_iconv" = yes; then
11567     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11568 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11569     if test "${am_cv_proto_iconv+set}" = set; then
11570   echo $ECHO_N "(cached) $ECHO_C" >&6
11571 else
11572
11573       cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h.  */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h.  */
11579
11580 #include <stdlib.h>
11581 #include <iconv.h>
11582 extern
11583 #ifdef __cplusplus
11584 "C"
11585 #endif
11586 #if defined(__STDC__) || defined(__cplusplus)
11587 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11588 #else
11589 size_t iconv();
11590 #endif
11591
11592 int
11593 main ()
11594 {
11595
11596   ;
11597   return 0;
11598 }
11599 _ACEOF
11600 rm -f conftest.$ac_objext
11601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11602   (eval $ac_compile) 2>conftest.er1
11603   ac_status=$?
11604   grep -v '^ *+' conftest.er1 >conftest.err
11605   rm -f conftest.er1
11606   cat conftest.err >&5
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); } &&
11609          { ac_try='test -z "$ac_c_werror_flag"
11610                          || test ! -s conftest.err'
11611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612   (eval $ac_try) 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); }; } &&
11616          { ac_try='test -s conftest.$ac_objext'
11617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618   (eval $ac_try) 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); }; }; then
11622   am_cv_proto_iconv_arg1=""
11623 else
11624   echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11626
11627 am_cv_proto_iconv_arg1="const"
11628 fi
11629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11630       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);"
11631 fi
11632
11633     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11634     echo "$as_me:$LINENO: result: ${ac_t:-
11635          }$am_cv_proto_iconv" >&5
11636 echo "${ECHO_T}${ac_t:-
11637          }$am_cv_proto_iconv" >&6
11638
11639 cat >>confdefs.h <<_ACEOF
11640 #define ICONV_CONST $am_cv_proto_iconv_arg1
11641 _ACEOF
11642
11643   fi
11644
11645
11646   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11647 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11648 if test "${am_cv_langinfo_codeset+set}" = set; then
11649   echo $ECHO_N "(cached) $ECHO_C" >&6
11650 else
11651   cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h.  */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h.  */
11657 #include <langinfo.h>
11658 int
11659 main ()
11660 {
11661 char* cs = nl_langinfo(CODESET);
11662   ;
11663   return 0;
11664 }
11665 _ACEOF
11666 rm -f conftest.$ac_objext conftest$ac_exeext
11667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11668   (eval $ac_link) 2>conftest.er1
11669   ac_status=$?
11670   grep -v '^ *+' conftest.er1 >conftest.err
11671   rm -f conftest.er1
11672   cat conftest.err >&5
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); } &&
11675          { ac_try='test -z "$ac_c_werror_flag"
11676                          || test ! -s conftest.err'
11677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678   (eval $ac_try) 2>&5
11679   ac_status=$?
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); }; } &&
11682          { ac_try='test -s conftest$ac_exeext'
11683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684   (eval $ac_try) 2>&5
11685   ac_status=$?
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); }; }; then
11688   am_cv_langinfo_codeset=yes
11689 else
11690   echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11692
11693 am_cv_langinfo_codeset=no
11694 fi
11695 rm -f conftest.err conftest.$ac_objext \
11696       conftest$ac_exeext conftest.$ac_ext
11697
11698 fi
11699 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11700 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11701   if test $am_cv_langinfo_codeset = yes; then
11702
11703 cat >>confdefs.h <<\_ACEOF
11704 #define HAVE_LANGINFO_CODESET 1
11705 _ACEOF
11706
11707   fi
11708
11709   if test $ac_cv_header_locale_h = yes; then
11710
11711   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11712 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11713 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11714   echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716   cat >conftest.$ac_ext <<_ACEOF
11717 /* confdefs.h.  */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h.  */
11722 #include <locale.h>
11723 int
11724 main ()
11725 {
11726 return LC_MESSAGES
11727   ;
11728   return 0;
11729 }
11730 _ACEOF
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11733   (eval $ac_link) 2>conftest.er1
11734   ac_status=$?
11735   grep -v '^ *+' conftest.er1 >conftest.err
11736   rm -f conftest.er1
11737   cat conftest.err >&5
11738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739   (exit $ac_status); } &&
11740          { ac_try='test -z "$ac_c_werror_flag"
11741                          || test ! -s conftest.err'
11742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743   (eval $ac_try) 2>&5
11744   ac_status=$?
11745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); }; } &&
11747          { ac_try='test -s conftest$ac_exeext'
11748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749   (eval $ac_try) 2>&5
11750   ac_status=$?
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); }; }; then
11753   gt_cv_val_LC_MESSAGES=yes
11754 else
11755   echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11757
11758 gt_cv_val_LC_MESSAGES=no
11759 fi
11760 rm -f conftest.err conftest.$ac_objext \
11761       conftest$ac_exeext conftest.$ac_ext
11762 fi
11763 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11764 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11765   if test $gt_cv_val_LC_MESSAGES = yes; then
11766
11767 cat >>confdefs.h <<\_ACEOF
11768 #define HAVE_LC_MESSAGES 1
11769 _ACEOF
11770
11771   fi
11772
11773   fi
11774
11775   if test -n "$INTL_MACOSX_LIBS"; then
11776     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11777   fi
11778
11779                       for ac_prog in bison
11780 do
11781   # Extract the first word of "$ac_prog", so it can be a program name with args.
11782 set dummy $ac_prog; ac_word=$2
11783 echo "$as_me:$LINENO: checking for $ac_word" >&5
11784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11785 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11786   echo $ECHO_N "(cached) $ECHO_C" >&6
11787 else
11788   if test -n "$INTLBISON"; then
11789   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11790 else
11791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792 for as_dir in $PATH
11793 do
11794   IFS=$as_save_IFS
11795   test -z "$as_dir" && as_dir=.
11796   for ac_exec_ext in '' $ac_executable_extensions; do
11797   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11798     ac_cv_prog_INTLBISON="$ac_prog"
11799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11800     break 2
11801   fi
11802 done
11803 done
11804
11805 fi
11806 fi
11807 INTLBISON=$ac_cv_prog_INTLBISON
11808 if test -n "$INTLBISON"; then
11809   echo "$as_me:$LINENO: result: $INTLBISON" >&5
11810 echo "${ECHO_T}$INTLBISON" >&6
11811 else
11812   echo "$as_me:$LINENO: result: no" >&5
11813 echo "${ECHO_T}no" >&6
11814 fi
11815
11816   test -n "$INTLBISON" && break
11817 done
11818
11819   if test -z "$INTLBISON"; then
11820     ac_verc_fail=yes
11821   else
11822         echo "$as_me:$LINENO: checking version of bison" >&5
11823 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11824     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11825     case $ac_prog_version in
11826       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11827       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11828          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11829       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11830     esac
11831     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11832 echo "${ECHO_T}$ac_prog_version" >&6
11833   fi
11834   if test $ac_verc_fail = yes; then
11835     INTLBISON=:
11836   fi
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11854 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11855 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11856   echo $ECHO_N "(cached) $ECHO_C" >&6
11857 else
11858   gt_save_CPPFLAGS="$CPPFLAGS"
11859      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11860      gt_save_LIBS="$LIBS"
11861      LIBS="$LIBS -framework CoreFoundation"
11862      cat >conftest.$ac_ext <<_ACEOF
11863 /* confdefs.h.  */
11864 _ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h.  */
11868 #include <CFPreferences.h>
11869 int
11870 main ()
11871 {
11872 CFPreferencesCopyAppValue(NULL, NULL)
11873   ;
11874   return 0;
11875 }
11876 _ACEOF
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879   (eval $ac_link) 2>conftest.er1
11880   ac_status=$?
11881   grep -v '^ *+' conftest.er1 >conftest.err
11882   rm -f conftest.er1
11883   cat conftest.err >&5
11884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885   (exit $ac_status); } &&
11886          { ac_try='test -z "$ac_c_werror_flag"
11887                          || test ! -s conftest.err'
11888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889   (eval $ac_try) 2>&5
11890   ac_status=$?
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); }; } &&
11893          { ac_try='test -s conftest$ac_exeext'
11894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895   (eval $ac_try) 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); }; }; then
11899   gt_cv_func_CFPreferencesCopyAppValue=yes
11900 else
11901   echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11903
11904 gt_cv_func_CFPreferencesCopyAppValue=no
11905 fi
11906 rm -f conftest.err conftest.$ac_objext \
11907       conftest$ac_exeext conftest.$ac_ext
11908      CPPFLAGS="$gt_save_CPPFLAGS"
11909      LIBS="$gt_save_LIBS"
11910 fi
11911 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11912 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11913   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11914
11915 cat >>confdefs.h <<\_ACEOF
11916 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11917 _ACEOF
11918
11919   fi
11920     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11921 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11922 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11923   echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11925   gt_save_CPPFLAGS="$CPPFLAGS"
11926      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11927      gt_save_LIBS="$LIBS"
11928      LIBS="$LIBS -framework CoreFoundation"
11929      cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h.  */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h.  */
11935 #include <CFLocale.h>
11936 int
11937 main ()
11938 {
11939 CFLocaleCopyCurrent();
11940   ;
11941   return 0;
11942 }
11943 _ACEOF
11944 rm -f conftest.$ac_objext conftest$ac_exeext
11945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11946   (eval $ac_link) 2>conftest.er1
11947   ac_status=$?
11948   grep -v '^ *+' conftest.er1 >conftest.err
11949   rm -f conftest.er1
11950   cat conftest.err >&5
11951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); } &&
11953          { ac_try='test -z "$ac_c_werror_flag"
11954                          || test ! -s conftest.err'
11955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956   (eval $ac_try) 2>&5
11957   ac_status=$?
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); }; } &&
11960          { ac_try='test -s conftest$ac_exeext'
11961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962   (eval $ac_try) 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); }; }; then
11966   gt_cv_func_CFLocaleCopyCurrent=yes
11967 else
11968   echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11970
11971 gt_cv_func_CFLocaleCopyCurrent=no
11972 fi
11973 rm -f conftest.err conftest.$ac_objext \
11974       conftest$ac_exeext conftest.$ac_ext
11975      CPPFLAGS="$gt_save_CPPFLAGS"
11976      LIBS="$gt_save_LIBS"
11977 fi
11978 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11979 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11980   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11981
11982 cat >>confdefs.h <<\_ACEOF
11983 #define HAVE_CFLOCALECOPYCURRENT 1
11984 _ACEOF
11985
11986   fi
11987   INTL_MACOSX_LIBS=
11988   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11989     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11990   fi
11991
11992
11993
11994
11995   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11996 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11997     # Check whether --enable-nls or --disable-nls was given.
11998 if test "${enable_nls+set}" = set; then
11999   enableval="$enable_nls"
12000   USE_NLS=$enableval
12001 else
12002   USE_NLS=yes
12003 fi;
12004   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12005 echo "${ECHO_T}$USE_NLS" >&6
12006
12007
12008
12009
12010     BUILD_INCLUDED_LIBINTL=no
12011     USE_INCLUDED_LIBINTL=no
12012
12013   LIBINTL=
12014   LTLIBINTL=
12015   POSUB=
12016
12017     if test "$USE_NLS" = "yes"; then
12018     gt_use_preinstalled_gnugettext=no
12019
12020       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12021 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12022
12023 # Check whether --with-included-gettext or --without-included-gettext was given.
12024 if test "${with_included_gettext+set}" = set; then
12025   withval="$with_included_gettext"
12026   nls_cv_force_use_gnu_gettext=$withval
12027 else
12028   nls_cv_force_use_gnu_gettext=no
12029 fi;
12030       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12031 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12032
12033       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12034       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12035
12036
12037
12038
12039
12040
12041         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12042 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12043 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12044   echo $ECHO_N "(cached) $ECHO_C" >&6
12045 else
12046   cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h.  */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h.  */
12052 #include <libintl.h>
12053 extern int _nl_msg_cat_cntr;
12054 extern int *_nl_domain_bindings;
12055 int
12056 main ()
12057 {
12058 bindtextdomain ("", "");
12059 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12060   ;
12061   return 0;
12062 }
12063 _ACEOF
12064 rm -f conftest.$ac_objext conftest$ac_exeext
12065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12066   (eval $ac_link) 2>conftest.er1
12067   ac_status=$?
12068   grep -v '^ *+' conftest.er1 >conftest.err
12069   rm -f conftest.er1
12070   cat conftest.err >&5
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); } &&
12073          { ac_try='test -z "$ac_c_werror_flag"
12074                          || test ! -s conftest.err'
12075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076   (eval $ac_try) 2>&5
12077   ac_status=$?
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); }; } &&
12080          { ac_try='test -s conftest$ac_exeext'
12081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082   (eval $ac_try) 2>&5
12083   ac_status=$?
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); }; }; then
12086   gt_cv_func_gnugettext1_libc=yes
12087 else
12088   echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12090
12091 gt_cv_func_gnugettext1_libc=no
12092 fi
12093 rm -f conftest.err conftest.$ac_objext \
12094       conftest$ac_exeext conftest.$ac_ext
12095 fi
12096 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12097 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12098
12099         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12100
12101
12102
12103     use_additional=yes
12104
12105   acl_save_prefix="$prefix"
12106   prefix="$acl_final_prefix"
12107   acl_save_exec_prefix="$exec_prefix"
12108   exec_prefix="$acl_final_exec_prefix"
12109
12110     eval additional_includedir=\"$includedir\"
12111     eval additional_libdir=\"$libdir\"
12112
12113   exec_prefix="$acl_save_exec_prefix"
12114   prefix="$acl_save_prefix"
12115
12116
12117 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12118 if test "${with_libintl_prefix+set}" = set; then
12119   withval="$with_libintl_prefix"
12120
12121     if test "X$withval" = "Xno"; then
12122       use_additional=no
12123     else
12124       if test "X$withval" = "X"; then
12125
12126   acl_save_prefix="$prefix"
12127   prefix="$acl_final_prefix"
12128   acl_save_exec_prefix="$exec_prefix"
12129   exec_prefix="$acl_final_exec_prefix"
12130
12131           eval additional_includedir=\"$includedir\"
12132           eval additional_libdir=\"$libdir\"
12133
12134   exec_prefix="$acl_save_exec_prefix"
12135   prefix="$acl_save_prefix"
12136
12137       else
12138         additional_includedir="$withval/include"
12139         additional_libdir="$withval/lib"
12140       fi
12141     fi
12142
12143 fi;
12144       LIBINTL=
12145   LTLIBINTL=
12146   INCINTL=
12147   rpathdirs=
12148   ltrpathdirs=
12149   names_already_handled=
12150   names_next_round='intl '
12151   while test -n "$names_next_round"; do
12152     names_this_round="$names_next_round"
12153     names_next_round=
12154     for name in $names_this_round; do
12155       already_handled=
12156       for n in $names_already_handled; do
12157         if test "$n" = "$name"; then
12158           already_handled=yes
12159           break
12160         fi
12161       done
12162       if test -z "$already_handled"; then
12163         names_already_handled="$names_already_handled $name"
12164                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12165         eval value=\"\$HAVE_LIB$uppername\"
12166         if test -n "$value"; then
12167           if test "$value" = yes; then
12168             eval value=\"\$LIB$uppername\"
12169             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12170             eval value=\"\$LTLIB$uppername\"
12171             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12172           else
12173                                     :
12174           fi
12175         else
12176                               found_dir=
12177           found_la=
12178           found_so=
12179           found_a=
12180           if test $use_additional = yes; then
12181             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12182               found_dir="$additional_libdir"
12183               found_so="$additional_libdir/lib$name.$shlibext"
12184               if test -f "$additional_libdir/lib$name.la"; then
12185                 found_la="$additional_libdir/lib$name.la"
12186               fi
12187             else
12188               if test -f "$additional_libdir/lib$name.$libext"; then
12189                 found_dir="$additional_libdir"
12190                 found_a="$additional_libdir/lib$name.$libext"
12191                 if test -f "$additional_libdir/lib$name.la"; then
12192                   found_la="$additional_libdir/lib$name.la"
12193                 fi
12194               fi
12195             fi
12196           fi
12197           if test "X$found_dir" = "X"; then
12198             for x in $LDFLAGS $LTLIBINTL; do
12199
12200   acl_save_prefix="$prefix"
12201   prefix="$acl_final_prefix"
12202   acl_save_exec_prefix="$exec_prefix"
12203   exec_prefix="$acl_final_exec_prefix"
12204   eval x=\"$x\"
12205   exec_prefix="$acl_save_exec_prefix"
12206   prefix="$acl_save_prefix"
12207
12208               case "$x" in
12209                 -L*)
12210                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12211                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12212                     found_dir="$dir"
12213                     found_so="$dir/lib$name.$shlibext"
12214                     if test -f "$dir/lib$name.la"; then
12215                       found_la="$dir/lib$name.la"
12216                     fi
12217                   else
12218                     if test -f "$dir/lib$name.$libext"; then
12219                       found_dir="$dir"
12220                       found_a="$dir/lib$name.$libext"
12221                       if test -f "$dir/lib$name.la"; then
12222                         found_la="$dir/lib$name.la"
12223                       fi
12224                     fi
12225                   fi
12226                   ;;
12227               esac
12228               if test "X$found_dir" != "X"; then
12229                 break
12230               fi
12231             done
12232           fi
12233           if test "X$found_dir" != "X"; then
12234                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12235             if test "X$found_so" != "X"; then
12236                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12237                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12238               else
12239                                                                                 haveit=
12240                 for x in $ltrpathdirs; do
12241                   if test "X$x" = "X$found_dir"; then
12242                     haveit=yes
12243                     break
12244                   fi
12245                 done
12246                 if test -z "$haveit"; then
12247                   ltrpathdirs="$ltrpathdirs $found_dir"
12248                 fi
12249                                 if test "$hardcode_direct" = yes; then
12250                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12251                 else
12252                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12253                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12254                                                             haveit=
12255                     for x in $rpathdirs; do
12256                       if test "X$x" = "X$found_dir"; then
12257                         haveit=yes
12258                         break
12259                       fi
12260                     done
12261                     if test -z "$haveit"; then
12262                       rpathdirs="$rpathdirs $found_dir"
12263                     fi
12264                   else
12265                                                                                 haveit=
12266                     for x in $LDFLAGS $LIBINTL; do
12267
12268   acl_save_prefix="$prefix"
12269   prefix="$acl_final_prefix"
12270   acl_save_exec_prefix="$exec_prefix"
12271   exec_prefix="$acl_final_exec_prefix"
12272   eval x=\"$x\"
12273   exec_prefix="$acl_save_exec_prefix"
12274   prefix="$acl_save_prefix"
12275
12276                       if test "X$x" = "X-L$found_dir"; then
12277                         haveit=yes
12278                         break
12279                       fi
12280                     done
12281                     if test -z "$haveit"; then
12282                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12283                     fi
12284                     if test "$hardcode_minus_L" != no; then
12285                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12286                     else
12287                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12288                     fi
12289                   fi
12290                 fi
12291               fi
12292             else
12293               if test "X$found_a" != "X"; then
12294                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12295               else
12296                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12297               fi
12298             fi
12299                         additional_includedir=
12300             case "$found_dir" in
12301               */lib | */lib/)
12302                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12303                 additional_includedir="$basedir/include"
12304                 ;;
12305             esac
12306             if test "X$additional_includedir" != "X"; then
12307                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12308                 haveit=
12309                 if test "X$additional_includedir" = "X/usr/local/include"; then
12310                   if test -n "$GCC"; then
12311                     case $host_os in
12312                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12313                     esac
12314                   fi
12315                 fi
12316                 if test -z "$haveit"; then
12317                   for x in $CPPFLAGS $INCINTL; do
12318
12319   acl_save_prefix="$prefix"
12320   prefix="$acl_final_prefix"
12321   acl_save_exec_prefix="$exec_prefix"
12322   exec_prefix="$acl_final_exec_prefix"
12323   eval x=\"$x\"
12324   exec_prefix="$acl_save_exec_prefix"
12325   prefix="$acl_save_prefix"
12326
12327                     if test "X$x" = "X-I$additional_includedir"; then
12328                       haveit=yes
12329                       break
12330                     fi
12331                   done
12332                   if test -z "$haveit"; then
12333                     if test -d "$additional_includedir"; then
12334                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12335                     fi
12336                   fi
12337                 fi
12338               fi
12339             fi
12340                         if test -n "$found_la"; then
12341                                                         save_libdir="$libdir"
12342               case "$found_la" in
12343                 */* | *\\*) . "$found_la" ;;
12344                 *) . "./$found_la" ;;
12345               esac
12346               libdir="$save_libdir"
12347                             for dep in $dependency_libs; do
12348                 case "$dep" in
12349                   -L*)
12350                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12351                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
12352                       haveit=
12353                       if test "X$additional_libdir" = "X/usr/local/lib"; then
12354                         if test -n "$GCC"; then
12355                           case $host_os in
12356                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12357                           esac
12358                         fi
12359                       fi
12360                       if test -z "$haveit"; then
12361                         haveit=
12362                         for x in $LDFLAGS $LIBINTL; do
12363
12364   acl_save_prefix="$prefix"
12365   prefix="$acl_final_prefix"
12366   acl_save_exec_prefix="$exec_prefix"
12367   exec_prefix="$acl_final_exec_prefix"
12368   eval x=\"$x\"
12369   exec_prefix="$acl_save_exec_prefix"
12370   prefix="$acl_save_prefix"
12371
12372                           if test "X$x" = "X-L$additional_libdir"; then
12373                             haveit=yes
12374                             break
12375                           fi
12376                         done
12377                         if test -z "$haveit"; then
12378                           if test -d "$additional_libdir"; then
12379                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12380                           fi
12381                         fi
12382                         haveit=
12383                         for x in $LDFLAGS $LTLIBINTL; do
12384
12385   acl_save_prefix="$prefix"
12386   prefix="$acl_final_prefix"
12387   acl_save_exec_prefix="$exec_prefix"
12388   exec_prefix="$acl_final_exec_prefix"
12389   eval x=\"$x\"
12390   exec_prefix="$acl_save_exec_prefix"
12391   prefix="$acl_save_prefix"
12392
12393                           if test "X$x" = "X-L$additional_libdir"; then
12394                             haveit=yes
12395                             break
12396                           fi
12397                         done
12398                         if test -z "$haveit"; then
12399                           if test -d "$additional_libdir"; then
12400                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12401                           fi
12402                         fi
12403                       fi
12404                     fi
12405                     ;;
12406                   -R*)
12407                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12408                     if test "$enable_rpath" != no; then
12409                                                                   haveit=
12410                       for x in $rpathdirs; do
12411                         if test "X$x" = "X$dir"; then
12412                           haveit=yes
12413                           break
12414                         fi
12415                       done
12416                       if test -z "$haveit"; then
12417                         rpathdirs="$rpathdirs $dir"
12418                       fi
12419                                                                   haveit=
12420                       for x in $ltrpathdirs; do
12421                         if test "X$x" = "X$dir"; then
12422                           haveit=yes
12423                           break
12424                         fi
12425                       done
12426                       if test -z "$haveit"; then
12427                         ltrpathdirs="$ltrpathdirs $dir"
12428                       fi
12429                     fi
12430                     ;;
12431                   -l*)
12432                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12433                     ;;
12434                   *.la)
12435                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12436                     ;;
12437                   *)
12438                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12439                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12440                     ;;
12441                 esac
12442               done
12443             fi
12444           else
12445                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12446             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12447           fi
12448         fi
12449       fi
12450     done
12451   done
12452   if test "X$rpathdirs" != "X"; then
12453     if test -n "$hardcode_libdir_separator"; then
12454                         alldirs=
12455       for found_dir in $rpathdirs; do
12456         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12457       done
12458             acl_save_libdir="$libdir"
12459       libdir="$alldirs"
12460       eval flag=\"$hardcode_libdir_flag_spec\"
12461       libdir="$acl_save_libdir"
12462       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12463     else
12464             for found_dir in $rpathdirs; do
12465         acl_save_libdir="$libdir"
12466         libdir="$found_dir"
12467         eval flag=\"$hardcode_libdir_flag_spec\"
12468         libdir="$acl_save_libdir"
12469         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12470       done
12471     fi
12472   fi
12473   if test "X$ltrpathdirs" != "X"; then
12474             for found_dir in $ltrpathdirs; do
12475       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12476     done
12477   fi
12478
12479           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12480 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12481 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12482   echo $ECHO_N "(cached) $ECHO_C" >&6
12483 else
12484   gt_save_CPPFLAGS="$CPPFLAGS"
12485             CPPFLAGS="$CPPFLAGS $INCINTL"
12486             gt_save_LIBS="$LIBS"
12487             LIBS="$LIBS $LIBINTL"
12488                         cat >conftest.$ac_ext <<_ACEOF
12489 /* confdefs.h.  */
12490 _ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h.  */
12494 #include <libintl.h>
12495 extern int _nl_msg_cat_cntr;
12496 extern
12497 #ifdef __cplusplus
12498 "C"
12499 #endif
12500 const char *_nl_expand_alias (const char *);
12501 int
12502 main ()
12503 {
12504 bindtextdomain ("", "");
12505 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12506   ;
12507   return 0;
12508 }
12509 _ACEOF
12510 rm -f conftest.$ac_objext conftest$ac_exeext
12511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12512   (eval $ac_link) 2>conftest.er1
12513   ac_status=$?
12514   grep -v '^ *+' conftest.er1 >conftest.err
12515   rm -f conftest.er1
12516   cat conftest.err >&5
12517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518   (exit $ac_status); } &&
12519          { ac_try='test -z "$ac_c_werror_flag"
12520                          || test ! -s conftest.err'
12521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522   (eval $ac_try) 2>&5
12523   ac_status=$?
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); }; } &&
12526          { ac_try='test -s conftest$ac_exeext'
12527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528   (eval $ac_try) 2>&5
12529   ac_status=$?
12530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   (exit $ac_status); }; }; then
12532   gt_cv_func_gnugettext1_libintl=yes
12533 else
12534   echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.$ac_ext >&5
12536
12537 gt_cv_func_gnugettext1_libintl=no
12538 fi
12539 rm -f conftest.err conftest.$ac_objext \
12540       conftest$ac_exeext conftest.$ac_ext
12541                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12542               LIBS="$LIBS $LIBICONV"
12543               cat >conftest.$ac_ext <<_ACEOF
12544 /* confdefs.h.  */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h.  */
12549 #include <libintl.h>
12550 extern int _nl_msg_cat_cntr;
12551 extern
12552 #ifdef __cplusplus
12553 "C"
12554 #endif
12555 const char *_nl_expand_alias (const char *);
12556 int
12557 main ()
12558 {
12559 bindtextdomain ("", "");
12560 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12561   ;
12562   return 0;
12563 }
12564 _ACEOF
12565 rm -f conftest.$ac_objext conftest$ac_exeext
12566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12567   (eval $ac_link) 2>conftest.er1
12568   ac_status=$?
12569   grep -v '^ *+' conftest.er1 >conftest.err
12570   rm -f conftest.er1
12571   cat conftest.err >&5
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); } &&
12574          { ac_try='test -z "$ac_c_werror_flag"
12575                          || test ! -s conftest.err'
12576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577   (eval $ac_try) 2>&5
12578   ac_status=$?
12579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580   (exit $ac_status); }; } &&
12581          { ac_try='test -s conftest$ac_exeext'
12582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583   (eval $ac_try) 2>&5
12584   ac_status=$?
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); }; }; then
12587   LIBINTL="$LIBINTL $LIBICONV"
12588                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12589                 gt_cv_func_gnugettext1_libintl=yes
12590
12591 else
12592   echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12594
12595 fi
12596 rm -f conftest.err conftest.$ac_objext \
12597       conftest$ac_exeext conftest.$ac_ext
12598             fi
12599             CPPFLAGS="$gt_save_CPPFLAGS"
12600             LIBS="$gt_save_LIBS"
12601 fi
12602 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12603 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12604         fi
12605
12606                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12607            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12608                 && test "$PACKAGE" != gettext-runtime \
12609                 && test "$PACKAGE" != gettext-tools; }; then
12610           gt_use_preinstalled_gnugettext=yes
12611         else
12612                     LIBINTL=
12613           LTLIBINTL=
12614           INCINTL=
12615         fi
12616
12617
12618         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12619                               nls_cv_use_gnu_gettext=yes
12620         fi
12621       fi
12622
12623       if test "$nls_cv_use_gnu_gettext" = "yes"; then
12624                 BUILD_INCLUDED_LIBINTL=yes
12625         USE_INCLUDED_LIBINTL=yes
12626         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12627         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12628         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12629       fi
12630
12631       CATOBJEXT=
12632       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12633          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12634                 CATOBJEXT=.gmo
12635       fi
12636
12637
12638     if test -n "$INTL_MACOSX_LIBS"; then
12639       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12640          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12641                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12642         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12643       fi
12644     fi
12645
12646     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12647        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12648
12649 cat >>confdefs.h <<\_ACEOF
12650 #define ENABLE_NLS 1
12651 _ACEOF
12652
12653     else
12654       USE_NLS=no
12655     fi
12656   fi
12657
12658   echo "$as_me:$LINENO: checking whether to use NLS" >&5
12659 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12660   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12661 echo "${ECHO_T}$USE_NLS" >&6
12662   if test "$USE_NLS" = "yes"; then
12663     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12664 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12665     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12666       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12667         gt_source="external libintl"
12668       else
12669         gt_source="libc"
12670       fi
12671     else
12672       gt_source="included intl directory"
12673     fi
12674     echo "$as_me:$LINENO: result: $gt_source" >&5
12675 echo "${ECHO_T}$gt_source" >&6
12676   fi
12677
12678   if test "$USE_NLS" = "yes"; then
12679
12680     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12681       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12682         echo "$as_me:$LINENO: checking how to link with libintl" >&5
12683 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12684         echo "$as_me:$LINENO: result: $LIBINTL" >&5
12685 echo "${ECHO_T}$LIBINTL" >&6
12686
12687   for element in $INCINTL; do
12688     haveit=
12689     for x in $CPPFLAGS; do
12690
12691   acl_save_prefix="$prefix"
12692   prefix="$acl_final_prefix"
12693   acl_save_exec_prefix="$exec_prefix"
12694   exec_prefix="$acl_final_exec_prefix"
12695   eval x=\"$x\"
12696   exec_prefix="$acl_save_exec_prefix"
12697   prefix="$acl_save_prefix"
12698
12699       if test "X$x" = "X$element"; then
12700         haveit=yes
12701         break
12702       fi
12703     done
12704     if test -z "$haveit"; then
12705       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12706     fi
12707   done
12708
12709       fi
12710
12711
12712 cat >>confdefs.h <<\_ACEOF
12713 #define HAVE_GETTEXT 1
12714 _ACEOF
12715
12716
12717 cat >>confdefs.h <<\_ACEOF
12718 #define HAVE_DCGETTEXT 1
12719 _ACEOF
12720
12721     fi
12722
12723         POSUB=po
12724   fi
12725
12726
12727             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12728       BUILD_INCLUDED_LIBINTL=yes
12729     fi
12730
12731
12732
12733
12734
12735         nls_cv_header_intl=
12736     nls_cv_header_libgt=
12737
12738         DATADIRNAME=share
12739
12740
12741         INSTOBJEXT=.mo
12742
12743
12744         GENCAT=gencat
12745
12746
12747         INTLOBJS=
12748     if test "$USE_INCLUDED_LIBINTL" = yes; then
12749       INTLOBJS="\$(GETTOBJS)"
12750     fi
12751
12752
12753         INTL_LIBTOOL_SUFFIX_PREFIX=
12754
12755
12756
12757     INTLLIBS="$LIBINTL"
12758
12759
12760
12761
12762
12763
12764 fi
12765
12766
12767 support_mysql=no
12768 support_sqlite=no
12769 support_sqlite3=no
12770 support_postgresql=no
12771 support_smartalloc=yes
12772 support_readline=yes
12773 support_conio=yes
12774 support_gnome=no
12775 support_wx_console=no
12776 support_tls=no
12777 support_crypto=no
12778 gnome_version=
12779 wx_version=
12780 support_static_tools=no
12781 support_static_fd=no
12782 support_static_sd=no
12783 support_static_dir=no
12784 support_static_cons=no
12785 support_python=no
12786 build_client_only=no
12787 build_dird=yes
12788 build_stored=yes
12789 cats=
12790 db_name=Internal
12791 DB_NAME=bdb
12792
12793
12794 # -------------------------------------------
12795 # gnome (default off)
12796 # -------------------------------------------
12797 # Check whether --enable-gnome or --disable-gnome was given.
12798 if test "${enable_gnome+set}" = set; then
12799   enableval="$enable_gnome"
12800   if test x$enableval = xyes; then
12801     support_gnome=yes
12802   fi
12803 fi;
12804
12805 GNOME_DIR=
12806 if test x$support_gnome = xyes; then
12807   abc=`$PKGCONFIG --exists libgnomeui-2.0`
12808   pkg=$?
12809   if test $pkg = 0; then
12810      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12811      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12812      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12813      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12814
12815
12816
12817
12818      GNOME_DIR=src/gnome2-console
12819      gnome_version="Version 2.x"
12820   else
12821      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12822 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12823    { (exit 1); exit 1; }; }
12824   fi
12825 fi
12826
12827
12828
12829 # -------------------------------------------
12830 # wx-console (default off)
12831 # -------------------------------------------
12832 # Check whether --enable-wx-console or --disable-wx-console was given.
12833 if test "${enable_wx_console+set}" = set; then
12834   enableval="$enable_wx_console"
12835   if test x$enableval = xyes; then
12836     support_wx_console=yes
12837   fi
12838 fi;
12839
12840 WX_DIR=
12841 if test x$support_wx_console = xyes; then
12842   abc=`$WXCONFIG $WXFLAGS --cppflags`
12843   pkg=$?
12844   if test $pkg = 0; then
12845      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12846      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12847      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12848
12849
12850
12851      WX_DIR=src/wx-console
12852   else
12853      echo " "
12854      echo "wx-config program not found. wx-console disabled."
12855      echo " "
12856      support_wx_console=no
12857   fi
12858 fi
12859
12860
12861
12862 # -------------------------------------------
12863 # tray-monitor (default off)
12864 # -------------------------------------------
12865 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12866 if test "${enable_tray_monitor+set}" = set; then
12867   enableval="$enable_tray_monitor"
12868   if test x$enableval = xyes; then
12869     support_tray_monitor=yes
12870   fi
12871 fi;
12872
12873 TRAY_MONITOR_DIR=
12874 if test x$support_tray_monitor = xyes; then
12875   abc=`$PKGCONFIG --exists gtk+-2.0`
12876   pkg=$?
12877   if test $pkg = 0; then
12878      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12879      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12880
12881
12882      TRAY_MONITOR_DIR=src/tray-monitor
12883      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12884      pkg=$?
12885      if test $pkg = 0; then
12886         cat >>confdefs.h <<\_ACEOF
12887 #define HAVE_GTK_2_4 1
12888 _ACEOF
12889
12890      fi
12891   fi
12892 fi
12893
12894
12895 # -------------------------------------------
12896 # smartalloc (default off)
12897 # -------------------------------------------
12898 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12899 if test "${enable_smartalloc+set}" = set; then
12900   enableval="$enable_smartalloc"
12901   if test x$enableval = xno; then
12902     support_smartalloc=no
12903   fi
12904 fi;
12905
12906 if test x$support_smartalloc = xyes; then
12907    cat >>confdefs.h <<\_ACEOF
12908 #define SMARTALLOC 1
12909 _ACEOF
12910
12911 fi
12912
12913 # -------------------------------------------
12914 # static-tools (default off)
12915 # -------------------------------------------
12916 # Check whether --enable-static-tools or --disable-static-tools was given.
12917 if test "${enable_static_tools+set}" = set; then
12918   enableval="$enable_static_tools"
12919   if test x$enableval = xyes; then
12920      support_static_tools=yes
12921    fi
12922 fi;
12923
12924 TTOOL_LDFLAGS=
12925 if test x$support_static_tools = xyes; then
12926    TTOOL_LDFLAGS="-static"
12927 fi
12928
12929
12930 # -------------------------------------------
12931 # static-fd    (default off)
12932 # -------------------------------------------
12933 # Check whether --enable-static-fd or --disable-static-fd was given.
12934 if test "${enable_static_fd+set}" = set; then
12935   enableval="$enable_static_fd"
12936   if test x$enableval = xyes; then
12937      support_static_fd=yes
12938    fi
12939 fi;
12940
12941 STATIC_FD=
12942 if test x$support_static_fd = xyes; then
12943    STATIC_FD="static-bacula-fd"
12944 fi
12945
12946
12947 # -------------------------------------------
12948 # static-sd    (default off)
12949 # -------------------------------------------
12950 # Check whether --enable-static-sd or --disable-static-sd was given.
12951 if test "${enable_static_sd+set}" = set; then
12952   enableval="$enable_static_sd"
12953   if test x$enableval = xyes; then
12954      support_static_sd=yes
12955    fi
12956 fi;
12957
12958 STATIC_SD=
12959 if test x$support_static_sd = xyes; then
12960    STATIC_SD="static-bacula-sd"
12961 fi
12962
12963
12964 # -------------------------------------------
12965 # static-dir   (default off)
12966 # -------------------------------------------
12967 # Check whether --enable-static-dir or --disable-static-dir was given.
12968 if test "${enable_static_dir+set}" = set; then
12969   enableval="$enable_static_dir"
12970   if test x$enableval = xyes; then
12971      support_static_dir=yes
12972    fi
12973 fi;
12974
12975 STATIC_DIR=
12976 if test x$support_static_dir = xyes; then
12977    STATIC_DIR="static-bacula-dir"
12978 fi
12979
12980
12981 # -------------------------------------------
12982 # static-cons  (default off)
12983 # -------------------------------------------
12984 # Check whether --enable-static-cons or --disable-static-cons was given.
12985 if test "${enable_static_cons+set}" = set; then
12986   enableval="$enable_static_cons"
12987   if test x$enableval = xyes; then
12988      support_static_cons=yes
12989    fi
12990 fi;
12991
12992 STATIC_CONS=
12993 STATIC_GNOME_CONS=
12994 STATIC_WX_CONS=
12995 if test x$support_static_cons = xyes; then
12996    STATIC_CONS="static-bconsole"
12997    STATIC_GNOME_CONS="static-gnome-console"
12998    STATIC_WX_CONS="static-wx-console"
12999 fi
13000
13001
13002
13003
13004 # -------------------------------------------
13005 # client_only  (default off)
13006 # -------------------------------------------
13007 # Check whether --enable-client-only or --disable-client-only was given.
13008 if test "${enable_client_only+set}" = set; then
13009   enableval="$enable_client_only"
13010   if test x$enableval = xyes; then
13011       build_client_only=yes
13012       db_name=None
13013       DB_NAME=none
13014    fi
13015 fi;
13016 if test x$build_client_only = xno; then
13017    ALL_DIRS="subdirs"
13018 else
13019    ALL_DIRS=""
13020 fi
13021
13022
13023 # -------------------------------------------
13024 # director  (default on)
13025 # -------------------------------------------
13026 # Check whether --enable-build-dird or --disable-build-dird was given.
13027 if test "${enable_build_dird+set}" = set; then
13028   enableval="$enable_build_dird"
13029   if test x$enableval = xno; then
13030       build_dird=no
13031    fi
13032 fi;
13033 if test x$build_dird = xyes; then
13034    DIRD_DIR="src/dird"
13035    DIR_TOOLS="DIRTOOLS"
13036 else
13037    DIRD_DIR=""
13038    DIR_TOOLS="NODIRTOOLS"
13039 fi
13040
13041
13042
13043 # -------------------------------------------
13044 # stored  (default on)
13045 # -------------------------------------------
13046 # Check whether --enable-build-stored or --disable-build-stored was given.
13047 if test "${enable_build_stored+set}" = set; then
13048   enableval="$enable_build_stored"
13049   if test x$enableval = xno; then
13050       build_stored=no
13051    fi
13052 fi;
13053 if test x$build_stored = xyes; then
13054    STORED_DIR="src/stored"
13055 else
13056    STORED_DIR=""
13057 fi
13058
13059
13060 # ---------------------------------------------------
13061 # Check for conio (Bacula readline substitute)(
13062 # ---------------------------------------------------
13063 # this allows you to turn it completely off
13064 # Check whether --enable-conio or --disable-conio was given.
13065 if test "${enable_conio+set}" = set; then
13066   enableval="$enable_conio"
13067   if test x$enableval = xno; then
13068     support_conio=no
13069   fi
13070 fi;
13071
13072 got_conio="no"
13073 if test x$support_conio = xyes; then
13074    if test "${ac_cv_header_termcap_h+set}" = set; then
13075   echo "$as_me:$LINENO: checking for termcap.h" >&5
13076 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13077 if test "${ac_cv_header_termcap_h+set}" = set; then
13078   echo $ECHO_N "(cached) $ECHO_C" >&6
13079 fi
13080 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13081 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13082 else
13083   # Is the header compilable?
13084 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13085 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13086 cat >conftest.$ac_ext <<_ACEOF
13087 /* confdefs.h.  */
13088 _ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h.  */
13092 $ac_includes_default
13093 #include <termcap.h>
13094 _ACEOF
13095 rm -f conftest.$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097   (eval $ac_compile) 2>conftest.er1
13098   ac_status=$?
13099   grep -v '^ *+' conftest.er1 >conftest.err
13100   rm -f conftest.er1
13101   cat conftest.err >&5
13102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103   (exit $ac_status); } &&
13104          { ac_try='test -z "$ac_c_werror_flag"
13105                          || test ! -s conftest.err'
13106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107   (eval $ac_try) 2>&5
13108   ac_status=$?
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); }; } &&
13111          { ac_try='test -s conftest.$ac_objext'
13112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113   (eval $ac_try) 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); }; }; then
13117   ac_header_compiler=yes
13118 else
13119   echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13121
13122 ac_header_compiler=no
13123 fi
13124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13126 echo "${ECHO_T}$ac_header_compiler" >&6
13127
13128 # Is the header present?
13129 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13130 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13131 cat >conftest.$ac_ext <<_ACEOF
13132 /* confdefs.h.  */
13133 _ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h.  */
13137 #include <termcap.h>
13138 _ACEOF
13139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13140   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13141   ac_status=$?
13142   grep -v '^ *+' conftest.er1 >conftest.err
13143   rm -f conftest.er1
13144   cat conftest.err >&5
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); } >/dev/null; then
13147   if test -s conftest.err; then
13148     ac_cpp_err=$ac_c_preproc_warn_flag
13149     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13150   else
13151     ac_cpp_err=
13152   fi
13153 else
13154   ac_cpp_err=yes
13155 fi
13156 if test -z "$ac_cpp_err"; then
13157   ac_header_preproc=yes
13158 else
13159   echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162   ac_header_preproc=no
13163 fi
13164 rm -f conftest.err conftest.$ac_ext
13165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13166 echo "${ECHO_T}$ac_header_preproc" >&6
13167
13168 # So?  What about this header?
13169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13170   yes:no: )
13171     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13172 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13173     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13174 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13175     ac_header_preproc=yes
13176     ;;
13177   no:yes:* )
13178     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13179 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13180     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
13181 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
13182     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13183 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13184     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
13185 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13186     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13187 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13188     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13189 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13190     (
13191       cat <<\_ASBOX
13192 ## ------------------------------------------ ##
13193 ## Report this to the AC_PACKAGE_NAME lists.  ##
13194 ## ------------------------------------------ ##
13195 _ASBOX
13196     ) |
13197       sed "s/^/$as_me: WARNING:     /" >&2
13198     ;;
13199 esac
13200 echo "$as_me:$LINENO: checking for termcap.h" >&5
13201 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13202 if test "${ac_cv_header_termcap_h+set}" = set; then
13203   echo $ECHO_N "(cached) $ECHO_C" >&6
13204 else
13205   ac_cv_header_termcap_h=$ac_header_preproc
13206 fi
13207 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13208 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13209
13210 fi
13211 if test $ac_cv_header_termcap_h = yes; then
13212    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13213 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13214 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13215   echo $ECHO_N "(cached) $ECHO_C" >&6
13216 else
13217   ac_check_lib_save_LIBS=$LIBS
13218 LIBS="-ltermcap  $LIBS"
13219 cat >conftest.$ac_ext <<_ACEOF
13220 /* confdefs.h.  */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h.  */
13225
13226 /* Override any gcc2 internal prototype to avoid an error.  */
13227 #ifdef __cplusplus
13228 extern "C"
13229 #endif
13230 /* We use char because int might match the return type of a gcc2
13231    builtin and then its argument prototype would still apply.  */
13232 char tgetent ();
13233 int
13234 main ()
13235 {
13236 tgetent ();
13237   ;
13238   return 0;
13239 }
13240 _ACEOF
13241 rm -f conftest.$ac_objext conftest$ac_exeext
13242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13243   (eval $ac_link) 2>conftest.er1
13244   ac_status=$?
13245   grep -v '^ *+' conftest.er1 >conftest.err
13246   rm -f conftest.er1
13247   cat conftest.err >&5
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); } &&
13250          { ac_try='test -z "$ac_c_werror_flag"
13251                          || test ! -s conftest.err'
13252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253   (eval $ac_try) 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; } &&
13257          { ac_try='test -s conftest$ac_exeext'
13258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259   (eval $ac_try) 2>&5
13260   ac_status=$?
13261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262   (exit $ac_status); }; }; then
13263   ac_cv_lib_termcap_tgetent=yes
13264 else
13265   echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13267
13268 ac_cv_lib_termcap_tgetent=no
13269 fi
13270 rm -f conftest.err conftest.$ac_objext \
13271       conftest$ac_exeext conftest.$ac_ext
13272 LIBS=$ac_check_lib_save_LIBS
13273 fi
13274 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13275 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13276 if test $ac_cv_lib_termcap_tgetent = yes; then
13277    CONS_LIBS="-ltermcap"
13278          CONS_OBJ="conio.o"
13279          CONS_SRC="conio.c"
13280          got_conio="yes"
13281          support_readline=no
13282
13283 cat >>confdefs.h <<\_ACEOF
13284 #define HAVE_CONIO 1
13285 _ACEOF
13286
13287
13288 else
13289    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13290 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13291 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13292   echo $ECHO_N "(cached) $ECHO_C" >&6
13293 else
13294   ac_check_lib_save_LIBS=$LIBS
13295 LIBS="-lncurses  $LIBS"
13296 cat >conftest.$ac_ext <<_ACEOF
13297 /* confdefs.h.  */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h.  */
13302
13303 /* Override any gcc2 internal prototype to avoid an error.  */
13304 #ifdef __cplusplus
13305 extern "C"
13306 #endif
13307 /* We use char because int might match the return type of a gcc2
13308    builtin and then its argument prototype would still apply.  */
13309 char tgetent ();
13310 int
13311 main ()
13312 {
13313 tgetent ();
13314   ;
13315   return 0;
13316 }
13317 _ACEOF
13318 rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13320   (eval $ac_link) 2>conftest.er1
13321   ac_status=$?
13322   grep -v '^ *+' conftest.er1 >conftest.err
13323   rm -f conftest.er1
13324   cat conftest.err >&5
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); } &&
13327          { ac_try='test -z "$ac_c_werror_flag"
13328                          || test ! -s conftest.err'
13329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330   (eval $ac_try) 2>&5
13331   ac_status=$?
13332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333   (exit $ac_status); }; } &&
13334          { ac_try='test -s conftest$ac_exeext'
13335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336   (eval $ac_try) 2>&5
13337   ac_status=$?
13338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339   (exit $ac_status); }; }; then
13340   ac_cv_lib_ncurses_tgetent=yes
13341 else
13342   echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13344
13345 ac_cv_lib_ncurses_tgetent=no
13346 fi
13347 rm -f conftest.err conftest.$ac_objext \
13348       conftest$ac_exeext conftest.$ac_ext
13349 LIBS=$ac_check_lib_save_LIBS
13350 fi
13351 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13352 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13353 if test $ac_cv_lib_ncurses_tgetent = yes; then
13354    CONS_LIBS="-lncurses"
13355            CONS_OBJ="conio.o"
13356            CONS_SRC="conio.c"
13357            got_conio="yes"
13358            support_readline=no
13359
13360 cat >>confdefs.h <<\_ACEOF
13361 #define HAVE_CONIO 1
13362 _ACEOF
13363
13364
13365 fi
13366
13367
13368 fi
13369
13370
13371 else
13372
13373
13374 for ac_header in curses.h
13375 do
13376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13378   echo "$as_me:$LINENO: checking for $ac_header" >&5
13379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13381   echo $ECHO_N "(cached) $ECHO_C" >&6
13382 fi
13383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13385 else
13386   # Is the header compilable?
13387 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13389 cat >conftest.$ac_ext <<_ACEOF
13390 /* confdefs.h.  */
13391 _ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h.  */
13395 $ac_includes_default
13396 #include <$ac_header>
13397 _ACEOF
13398 rm -f conftest.$ac_objext
13399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13400   (eval $ac_compile) 2>conftest.er1
13401   ac_status=$?
13402   grep -v '^ *+' conftest.er1 >conftest.err
13403   rm -f conftest.er1
13404   cat conftest.err >&5
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); } &&
13407          { ac_try='test -z "$ac_c_werror_flag"
13408                          || test ! -s conftest.err'
13409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410   (eval $ac_try) 2>&5
13411   ac_status=$?
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); }; } &&
13414          { ac_try='test -s conftest.$ac_objext'
13415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416   (eval $ac_try) 2>&5
13417   ac_status=$?
13418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419   (exit $ac_status); }; }; then
13420   ac_header_compiler=yes
13421 else
13422   echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13424
13425 ac_header_compiler=no
13426 fi
13427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13428 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13429 echo "${ECHO_T}$ac_header_compiler" >&6
13430
13431 # Is the header present?
13432 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13434 cat >conftest.$ac_ext <<_ACEOF
13435 /* confdefs.h.  */
13436 _ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h.  */
13440 #include <$ac_header>
13441 _ACEOF
13442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13443   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13444   ac_status=$?
13445   grep -v '^ *+' conftest.er1 >conftest.err
13446   rm -f conftest.er1
13447   cat conftest.err >&5
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); } >/dev/null; then
13450   if test -s conftest.err; then
13451     ac_cpp_err=$ac_c_preproc_warn_flag
13452     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13453   else
13454     ac_cpp_err=
13455   fi
13456 else
13457   ac_cpp_err=yes
13458 fi
13459 if test -z "$ac_cpp_err"; then
13460   ac_header_preproc=yes
13461 else
13462   echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13464
13465   ac_header_preproc=no
13466 fi
13467 rm -f conftest.err conftest.$ac_ext
13468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13469 echo "${ECHO_T}$ac_header_preproc" >&6
13470
13471 # So?  What about this header?
13472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13473   yes:no: )
13474     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13478     ac_header_preproc=yes
13479     ;;
13480   no:yes:* )
13481     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13483     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13484 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13485     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13487     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13488 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13491     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13493     (
13494       cat <<\_ASBOX
13495 ## ------------------------------------------ ##
13496 ## Report this to the AC_PACKAGE_NAME lists.  ##
13497 ## ------------------------------------------ ##
13498 _ASBOX
13499     ) |
13500       sed "s/^/$as_me: WARNING:     /" >&2
13501     ;;
13502 esac
13503 echo "$as_me:$LINENO: checking for $ac_header" >&5
13504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13506   echo $ECHO_N "(cached) $ECHO_C" >&6
13507 else
13508   eval "$as_ac_Header=\$ac_header_preproc"
13509 fi
13510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13512
13513 fi
13514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13515   cat >>confdefs.h <<_ACEOF
13516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13517 _ACEOF
13518
13519 fi
13520
13521 done
13522
13523          echo "$as_me:$LINENO: checking for term.h" >&5
13524 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13525 if test "${ac_cv_header_term_h+set}" = set; then
13526   echo $ECHO_N "(cached) $ECHO_C" >&6
13527 else
13528   cat >conftest.$ac_ext <<_ACEOF
13529 /* confdefs.h.  */
13530 _ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h.  */
13534 #if HAVE_CURSES_H
13535 #include <curses.h>
13536 #endif
13537
13538
13539 #include <term.h>
13540 _ACEOF
13541 rm -f conftest.$ac_objext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13543   (eval $ac_compile) 2>conftest.er1
13544   ac_status=$?
13545   grep -v '^ *+' conftest.er1 >conftest.err
13546   rm -f conftest.er1
13547   cat conftest.err >&5
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); } &&
13550          { ac_try='test -z "$ac_c_werror_flag"
13551                          || test ! -s conftest.err'
13552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553   (eval $ac_try) 2>&5
13554   ac_status=$?
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); }; } &&
13557          { ac_try='test -s conftest.$ac_objext'
13558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559   (eval $ac_try) 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); }; }; then
13563   ac_cv_header_term_h=yes
13564 else
13565   echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13567
13568 ac_cv_header_term_h=no
13569 fi
13570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13571 fi
13572 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13573 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13574 if test $ac_cv_header_term_h = yes; then
13575    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13576 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13577 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13578   echo $ECHO_N "(cached) $ECHO_C" >&6
13579 else
13580   ac_check_lib_save_LIBS=$LIBS
13581 LIBS="-lcurses  $LIBS"
13582 cat >conftest.$ac_ext <<_ACEOF
13583 /* confdefs.h.  */
13584 _ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h.  */
13588
13589 /* Override any gcc2 internal prototype to avoid an error.  */
13590 #ifdef __cplusplus
13591 extern "C"
13592 #endif
13593 /* We use char because int might match the return type of a gcc2
13594    builtin and then its argument prototype would still apply.  */
13595 char tgetent ();
13596 int
13597 main ()
13598 {
13599 tgetent ();
13600   ;
13601   return 0;
13602 }
13603 _ACEOF
13604 rm -f conftest.$ac_objext conftest$ac_exeext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13606   (eval $ac_link) 2>conftest.er1
13607   ac_status=$?
13608   grep -v '^ *+' conftest.er1 >conftest.err
13609   rm -f conftest.er1
13610   cat conftest.err >&5
13611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612   (exit $ac_status); } &&
13613          { ac_try='test -z "$ac_c_werror_flag"
13614                          || test ! -s conftest.err'
13615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616   (eval $ac_try) 2>&5
13617   ac_status=$?
13618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619   (exit $ac_status); }; } &&
13620          { ac_try='test -s conftest$ac_exeext'
13621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622   (eval $ac_try) 2>&5
13623   ac_status=$?
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); }; }; then
13626   ac_cv_lib_curses_tgetent=yes
13627 else
13628   echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13630
13631 ac_cv_lib_curses_tgetent=no
13632 fi
13633 rm -f conftest.err conftest.$ac_objext \
13634       conftest$ac_exeext conftest.$ac_ext
13635 LIBS=$ac_check_lib_save_LIBS
13636 fi
13637 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13638 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13639 if test $ac_cv_lib_curses_tgetent = yes; then
13640    CONS_LIBS="-lcurses"
13641                    CONS_OBJ="conio.o"
13642                    CONS_SRC="conio.c"
13643                    got_conio="yes"
13644                    support_readline=no
13645
13646 cat >>confdefs.h <<\_ACEOF
13647 #define HAVE_CONIO 1
13648 _ACEOF
13649
13650
13651 fi
13652
13653
13654 else
13655    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13656 fi
13657
13658
13659
13660 fi
13661
13662
13663 fi
13664
13665
13666 # ---------------------------------------------------
13667 # Check for readline support/directory (default off)
13668 # ---------------------------------------------------
13669 # this allows you to turn it completely off
13670 # Check whether --enable-readline or --disable-readline was given.
13671 if test "${enable_readline+set}" = set; then
13672   enableval="$enable_readline"
13673   if test x$enableval = xno; then
13674     support_readline=no
13675   fi
13676 fi;
13677
13678 got_readline="no"
13679 READLINE_SRC=
13680 if test x$support_readline = xyes; then
13681
13682 # Check whether --with-readline or --without-readline was given.
13683 if test "${with_readline+set}" = set; then
13684   withval="$with_readline"
13685
13686         case "$with_readline" in
13687         no) : ;;
13688         yes|*)
13689           if test -f ${with_readline}/readline.h; then
13690              CONS_INC="-I${with_readline}"
13691              CONS_LDFLAGS="-L$with_readline"
13692           elif test -f ${with_readline}/include/readline/readline.h; then
13693              CONS_INC="-I${with_readline}/include/readline"
13694              CONS_LDFLAGS="-L${with_readline}/lib"
13695              with_readline="${with_readline}/include/readline"
13696           else
13697              with_readline="/usr/include/readline"
13698           fi
13699           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13701   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13702 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13704   echo $ECHO_N "(cached) $ECHO_C" >&6
13705 fi
13706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13708 else
13709   # Is the header compilable?
13710 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13711 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13712 cat >conftest.$ac_ext <<_ACEOF
13713 /* confdefs.h.  */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h.  */
13718 $ac_includes_default
13719 #include <${with_readline}/readline.h>
13720 _ACEOF
13721 rm -f conftest.$ac_objext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13723   (eval $ac_compile) 2>conftest.er1
13724   ac_status=$?
13725   grep -v '^ *+' conftest.er1 >conftest.err
13726   rm -f conftest.er1
13727   cat conftest.err >&5
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); } &&
13730          { ac_try='test -z "$ac_c_werror_flag"
13731                          || test ! -s conftest.err'
13732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733   (eval $ac_try) 2>&5
13734   ac_status=$?
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); }; } &&
13737          { ac_try='test -s conftest.$ac_objext'
13738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739   (eval $ac_try) 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; }; then
13743   ac_header_compiler=yes
13744 else
13745   echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13747
13748 ac_header_compiler=no
13749 fi
13750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13752 echo "${ECHO_T}$ac_header_compiler" >&6
13753
13754 # Is the header present?
13755 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13756 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13757 cat >conftest.$ac_ext <<_ACEOF
13758 /* confdefs.h.  */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h.  */
13763 #include <${with_readline}/readline.h>
13764 _ACEOF
13765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13766   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13767   ac_status=$?
13768   grep -v '^ *+' conftest.er1 >conftest.err
13769   rm -f conftest.er1
13770   cat conftest.err >&5
13771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772   (exit $ac_status); } >/dev/null; then
13773   if test -s conftest.err; then
13774     ac_cpp_err=$ac_c_preproc_warn_flag
13775     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13776   else
13777     ac_cpp_err=
13778   fi
13779 else
13780   ac_cpp_err=yes
13781 fi
13782 if test -z "$ac_cpp_err"; then
13783   ac_header_preproc=yes
13784 else
13785   echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13787
13788   ac_header_preproc=no
13789 fi
13790 rm -f conftest.err conftest.$ac_ext
13791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13792 echo "${ECHO_T}$ac_header_preproc" >&6
13793
13794 # So?  What about this header?
13795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13796   yes:no: )
13797     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13798 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13799     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13800 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13801     ac_header_preproc=yes
13802     ;;
13803   no:yes:* )
13804     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13805 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13806     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
13807 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
13808     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13809 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13810     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13811 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13812     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13813 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13814     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13815 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13816     (
13817       cat <<\_ASBOX
13818 ## ------------------------------------------ ##
13819 ## Report this to the AC_PACKAGE_NAME lists.  ##
13820 ## ------------------------------------------ ##
13821 _ASBOX
13822     ) |
13823       sed "s/^/$as_me: WARNING:     /" >&2
13824     ;;
13825 esac
13826 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13827 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13829   echo $ECHO_N "(cached) $ECHO_C" >&6
13830 else
13831   eval "$as_ac_Header=\$ac_header_preproc"
13832 fi
13833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13835
13836 fi
13837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13838    cat >>confdefs.h <<\_ACEOF
13839 #define HAVE_READLINE 1
13840 _ACEOF
13841
13842                CONS_LIBS="-lreadline -lhistory -ltermcap"
13843                got_readline="yes"
13844
13845 else
13846    echo " "
13847                echo "readline.h not found. readline turned off ..."
13848                echo " "
13849
13850
13851 fi
13852
13853
13854           ;;
13855         esac
13856
13857 else
13858
13859        # check for standard readline library
13860        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13861   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13862 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13863 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13864   echo $ECHO_N "(cached) $ECHO_C" >&6
13865 fi
13866 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13867 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13868 else
13869   # Is the header compilable?
13870 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13871 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13872 cat >conftest.$ac_ext <<_ACEOF
13873 /* confdefs.h.  */
13874 _ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h.  */
13878 $ac_includes_default
13879 #include </usr/include/readline/readline.h>
13880 _ACEOF
13881 rm -f conftest.$ac_objext
13882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13883   (eval $ac_compile) 2>conftest.er1
13884   ac_status=$?
13885   grep -v '^ *+' conftest.er1 >conftest.err
13886   rm -f conftest.er1
13887   cat conftest.err >&5
13888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889   (exit $ac_status); } &&
13890          { ac_try='test -z "$ac_c_werror_flag"
13891                          || test ! -s conftest.err'
13892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893   (eval $ac_try) 2>&5
13894   ac_status=$?
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); }; } &&
13897          { ac_try='test -s conftest.$ac_objext'
13898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899   (eval $ac_try) 2>&5
13900   ac_status=$?
13901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902   (exit $ac_status); }; }; then
13903   ac_header_compiler=yes
13904 else
13905   echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13907
13908 ac_header_compiler=no
13909 fi
13910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13912 echo "${ECHO_T}$ac_header_compiler" >&6
13913
13914 # Is the header present?
13915 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
13916 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
13917 cat >conftest.$ac_ext <<_ACEOF
13918 /* confdefs.h.  */
13919 _ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h.  */
13923 #include </usr/include/readline/readline.h>
13924 _ACEOF
13925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13926   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13927   ac_status=$?
13928   grep -v '^ *+' conftest.er1 >conftest.err
13929   rm -f conftest.er1
13930   cat conftest.err >&5
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); } >/dev/null; then
13933   if test -s conftest.err; then
13934     ac_cpp_err=$ac_c_preproc_warn_flag
13935     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13936   else
13937     ac_cpp_err=
13938   fi
13939 else
13940   ac_cpp_err=yes
13941 fi
13942 if test -z "$ac_cpp_err"; then
13943   ac_header_preproc=yes
13944 else
13945   echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13947
13948   ac_header_preproc=no
13949 fi
13950 rm -f conftest.err conftest.$ac_ext
13951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13952 echo "${ECHO_T}$ac_header_preproc" >&6
13953
13954 # So?  What about this header?
13955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13956   yes:no: )
13957     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13958 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13959     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
13960 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
13961     ac_header_preproc=yes
13962     ;;
13963   no:yes:* )
13964     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
13965 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
13966     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
13967 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
13968     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
13969 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
13970     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13971 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13972     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
13973 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
13974     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
13975 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
13976     (
13977       cat <<\_ASBOX
13978 ## ------------------------------------------ ##
13979 ## Report this to the AC_PACKAGE_NAME lists.  ##
13980 ## ------------------------------------------ ##
13981 _ASBOX
13982     ) |
13983       sed "s/^/$as_me: WARNING:     /" >&2
13984     ;;
13985 esac
13986 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13987 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13988 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13989   echo $ECHO_N "(cached) $ECHO_C" >&6
13990 else
13991   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
13992 fi
13993 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13994 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13995
13996 fi
13997 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
13998    cat >>confdefs.h <<\_ACEOF
13999 #define HAVE_READLINE 1
14000 _ACEOF
14001
14002            got_readline="yes"
14003            CONS_INC="-I/usr/include/readline"
14004            CONS_LIBS="-lreadline -ltermcap"
14005
14006 else
14007
14008            # Did not find standard library, so try Bacula's default
14009             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14011   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14012 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14014   echo $ECHO_N "(cached) $ECHO_C" >&6
14015 fi
14016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14018 else
14019   # Is the header compilable?
14020 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14021 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14022 cat >conftest.$ac_ext <<_ACEOF
14023 /* confdefs.h.  */
14024 _ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h.  */
14028 $ac_includes_default
14029 #include <${TOP_DIR}/depkgs/readline/readline.h>
14030 _ACEOF
14031 rm -f conftest.$ac_objext
14032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14033   (eval $ac_compile) 2>conftest.er1
14034   ac_status=$?
14035   grep -v '^ *+' conftest.er1 >conftest.err
14036   rm -f conftest.er1
14037   cat conftest.err >&5
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); } &&
14040          { ac_try='test -z "$ac_c_werror_flag"
14041                          || test ! -s conftest.err'
14042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043   (eval $ac_try) 2>&5
14044   ac_status=$?
14045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); }; } &&
14047          { ac_try='test -s conftest.$ac_objext'
14048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049   (eval $ac_try) 2>&5
14050   ac_status=$?
14051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052   (exit $ac_status); }; }; then
14053   ac_header_compiler=yes
14054 else
14055   echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14057
14058 ac_header_compiler=no
14059 fi
14060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14062 echo "${ECHO_T}$ac_header_compiler" >&6
14063
14064 # Is the header present?
14065 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14066 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14067 cat >conftest.$ac_ext <<_ACEOF
14068 /* confdefs.h.  */
14069 _ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h.  */
14073 #include <${TOP_DIR}/depkgs/readline/readline.h>
14074 _ACEOF
14075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14076   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14077   ac_status=$?
14078   grep -v '^ *+' conftest.er1 >conftest.err
14079   rm -f conftest.er1
14080   cat conftest.err >&5
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); } >/dev/null; then
14083   if test -s conftest.err; then
14084     ac_cpp_err=$ac_c_preproc_warn_flag
14085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14086   else
14087     ac_cpp_err=
14088   fi
14089 else
14090   ac_cpp_err=yes
14091 fi
14092 if test -z "$ac_cpp_err"; then
14093   ac_header_preproc=yes
14094 else
14095   echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14097
14098   ac_header_preproc=no
14099 fi
14100 rm -f conftest.err conftest.$ac_ext
14101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14102 echo "${ECHO_T}$ac_header_preproc" >&6
14103
14104 # So?  What about this header?
14105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14106   yes:no: )
14107     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14108 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14109     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14110 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14111     ac_header_preproc=yes
14112     ;;
14113   no:yes:* )
14114     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14115 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14116     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14117 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14118     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14119 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14120     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14121 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14122     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14123 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14124     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14125 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14126     (
14127       cat <<\_ASBOX
14128 ## ------------------------------------------ ##
14129 ## Report this to the AC_PACKAGE_NAME lists.  ##
14130 ## ------------------------------------------ ##
14131 _ASBOX
14132     ) |
14133       sed "s/^/$as_me: WARNING:     /" >&2
14134     ;;
14135 esac
14136 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14137 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14139   echo $ECHO_N "(cached) $ECHO_C" >&6
14140 else
14141   eval "$as_ac_Header=\$ac_header_preproc"
14142 fi
14143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14145
14146 fi
14147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14148    cat >>confdefs.h <<\_ACEOF
14149 #define HAVE_READLINE 1
14150 _ACEOF
14151
14152                  got_readline="yes"
14153                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14154                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14155                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14156                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14157
14158 else
14159    echo " "
14160                 echo "readline.h not found. readline turned off ..."
14161                 echo " "
14162
14163
14164 fi
14165
14166
14167
14168
14169 fi
14170
14171
14172
14173
14174 fi;
14175 fi
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186 # Minimal stuff for readline Makefile configuration
14187 MAKE_SHELL=/bin/sh
14188
14189 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14190 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14191 if test "${ac_cv_header_stat_broken+set}" = set; then
14192   echo $ECHO_N "(cached) $ECHO_C" >&6
14193 else
14194   cat >conftest.$ac_ext <<_ACEOF
14195 /* confdefs.h.  */
14196 _ACEOF
14197 cat confdefs.h >>conftest.$ac_ext
14198 cat >>conftest.$ac_ext <<_ACEOF
14199 /* end confdefs.h.  */
14200 #include <sys/types.h>
14201 #include <sys/stat.h>
14202
14203 #if defined(S_ISBLK) && defined(S_IFDIR)
14204 # if S_ISBLK (S_IFDIR)
14205 You lose.
14206 # endif
14207 #endif
14208
14209 #if defined(S_ISBLK) && defined(S_IFCHR)
14210 # if S_ISBLK (S_IFCHR)
14211 You lose.
14212 # endif
14213 #endif
14214
14215 #if defined(S_ISLNK) && defined(S_IFREG)
14216 # if S_ISLNK (S_IFREG)
14217 You lose.
14218 # endif
14219 #endif
14220
14221 #if defined(S_ISSOCK) && defined(S_IFREG)
14222 # if S_ISSOCK (S_IFREG)
14223 You lose.
14224 # endif
14225 #endif
14226
14227 _ACEOF
14228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14229   $EGREP "You lose" >/dev/null 2>&1; then
14230   ac_cv_header_stat_broken=yes
14231 else
14232   ac_cv_header_stat_broken=no
14233 fi
14234 rm -f conftest*
14235
14236 fi
14237 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14238 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14239 if test $ac_cv_header_stat_broken = yes; then
14240
14241 cat >>confdefs.h <<\_ACEOF
14242 #define STAT_MACROS_BROKEN 1
14243 _ACEOF
14244
14245 fi
14246
14247
14248
14249
14250
14251
14252 ac_header_dirent=no
14253 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14254   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14255 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14256 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14258   echo $ECHO_N "(cached) $ECHO_C" >&6
14259 else
14260   cat >conftest.$ac_ext <<_ACEOF
14261 /* confdefs.h.  */
14262 _ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h.  */
14266 #include <sys/types.h>
14267 #include <$ac_hdr>
14268
14269 int
14270 main ()
14271 {
14272 if ((DIR *) 0)
14273 return 0;
14274   ;
14275   return 0;
14276 }
14277 _ACEOF
14278 rm -f conftest.$ac_objext
14279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14280   (eval $ac_compile) 2>conftest.er1
14281   ac_status=$?
14282   grep -v '^ *+' conftest.er1 >conftest.err
14283   rm -f conftest.er1
14284   cat conftest.err >&5
14285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   (exit $ac_status); } &&
14287          { ac_try='test -z "$ac_c_werror_flag"
14288                          || test ! -s conftest.err'
14289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290   (eval $ac_try) 2>&5
14291   ac_status=$?
14292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293   (exit $ac_status); }; } &&
14294          { ac_try='test -s conftest.$ac_objext'
14295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296   (eval $ac_try) 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); }; }; then
14300   eval "$as_ac_Header=yes"
14301 else
14302   echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14304
14305 eval "$as_ac_Header=no"
14306 fi
14307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14308 fi
14309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14312   cat >>confdefs.h <<_ACEOF
14313 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14314 _ACEOF
14315
14316 ac_header_dirent=$ac_hdr; break
14317 fi
14318
14319 done
14320 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14321 if test $ac_header_dirent = dirent.h; then
14322   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14323 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14324 if test "${ac_cv_search_opendir+set}" = set; then
14325   echo $ECHO_N "(cached) $ECHO_C" >&6
14326 else
14327   ac_func_search_save_LIBS=$LIBS
14328 ac_cv_search_opendir=no
14329 cat >conftest.$ac_ext <<_ACEOF
14330 /* confdefs.h.  */
14331 _ACEOF
14332 cat confdefs.h >>conftest.$ac_ext
14333 cat >>conftest.$ac_ext <<_ACEOF
14334 /* end confdefs.h.  */
14335
14336 /* Override any gcc2 internal prototype to avoid an error.  */
14337 #ifdef __cplusplus
14338 extern "C"
14339 #endif
14340 /* We use char because int might match the return type of a gcc2
14341    builtin and then its argument prototype would still apply.  */
14342 char opendir ();
14343 int
14344 main ()
14345 {
14346 opendir ();
14347   ;
14348   return 0;
14349 }
14350 _ACEOF
14351 rm -f conftest.$ac_objext conftest$ac_exeext
14352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14353   (eval $ac_link) 2>conftest.er1
14354   ac_status=$?
14355   grep -v '^ *+' conftest.er1 >conftest.err
14356   rm -f conftest.er1
14357   cat conftest.err >&5
14358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359   (exit $ac_status); } &&
14360          { ac_try='test -z "$ac_c_werror_flag"
14361                          || test ! -s conftest.err'
14362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363   (eval $ac_try) 2>&5
14364   ac_status=$?
14365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366   (exit $ac_status); }; } &&
14367          { ac_try='test -s conftest$ac_exeext'
14368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14369   (eval $ac_try) 2>&5
14370   ac_status=$?
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); }; }; then
14373   ac_cv_search_opendir="none required"
14374 else
14375   echo "$as_me: failed program was:" >&5
14376 sed 's/^/| /' conftest.$ac_ext >&5
14377
14378 fi
14379 rm -f conftest.err conftest.$ac_objext \
14380       conftest$ac_exeext conftest.$ac_ext
14381 if test "$ac_cv_search_opendir" = no; then
14382   for ac_lib in dir; do
14383     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14384     cat >conftest.$ac_ext <<_ACEOF
14385 /* confdefs.h.  */
14386 _ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h.  */
14390
14391 /* Override any gcc2 internal prototype to avoid an error.  */
14392 #ifdef __cplusplus
14393 extern "C"
14394 #endif
14395 /* We use char because int might match the return type of a gcc2
14396    builtin and then its argument prototype would still apply.  */
14397 char opendir ();
14398 int
14399 main ()
14400 {
14401 opendir ();
14402   ;
14403   return 0;
14404 }
14405 _ACEOF
14406 rm -f conftest.$ac_objext conftest$ac_exeext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14408   (eval $ac_link) 2>conftest.er1
14409   ac_status=$?
14410   grep -v '^ *+' conftest.er1 >conftest.err
14411   rm -f conftest.er1
14412   cat conftest.err >&5
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); } &&
14415          { ac_try='test -z "$ac_c_werror_flag"
14416                          || test ! -s conftest.err'
14417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418   (eval $ac_try) 2>&5
14419   ac_status=$?
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); }; } &&
14422          { ac_try='test -s conftest$ac_exeext'
14423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424   (eval $ac_try) 2>&5
14425   ac_status=$?
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); }; }; then
14428   ac_cv_search_opendir="-l$ac_lib"
14429 break
14430 else
14431   echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14433
14434 fi
14435 rm -f conftest.err conftest.$ac_objext \
14436       conftest$ac_exeext conftest.$ac_ext
14437   done
14438 fi
14439 LIBS=$ac_func_search_save_LIBS
14440 fi
14441 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14442 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14443 if test "$ac_cv_search_opendir" != no; then
14444   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14445
14446 fi
14447
14448 else
14449   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14450 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14451 if test "${ac_cv_search_opendir+set}" = set; then
14452   echo $ECHO_N "(cached) $ECHO_C" >&6
14453 else
14454   ac_func_search_save_LIBS=$LIBS
14455 ac_cv_search_opendir=no
14456 cat >conftest.$ac_ext <<_ACEOF
14457 /* confdefs.h.  */
14458 _ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h.  */
14462
14463 /* Override any gcc2 internal prototype to avoid an error.  */
14464 #ifdef __cplusplus
14465 extern "C"
14466 #endif
14467 /* We use char because int might match the return type of a gcc2
14468    builtin and then its argument prototype would still apply.  */
14469 char opendir ();
14470 int
14471 main ()
14472 {
14473 opendir ();
14474   ;
14475   return 0;
14476 }
14477 _ACEOF
14478 rm -f conftest.$ac_objext conftest$ac_exeext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14480   (eval $ac_link) 2>conftest.er1
14481   ac_status=$?
14482   grep -v '^ *+' conftest.er1 >conftest.err
14483   rm -f conftest.er1
14484   cat conftest.err >&5
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); } &&
14487          { ac_try='test -z "$ac_c_werror_flag"
14488                          || test ! -s conftest.err'
14489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490   (eval $ac_try) 2>&5
14491   ac_status=$?
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); }; } &&
14494          { ac_try='test -s conftest$ac_exeext'
14495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496   (eval $ac_try) 2>&5
14497   ac_status=$?
14498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499   (exit $ac_status); }; }; then
14500   ac_cv_search_opendir="none required"
14501 else
14502   echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14504
14505 fi
14506 rm -f conftest.err conftest.$ac_objext \
14507       conftest$ac_exeext conftest.$ac_ext
14508 if test "$ac_cv_search_opendir" = no; then
14509   for ac_lib in x; do
14510     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14511     cat >conftest.$ac_ext <<_ACEOF
14512 /* confdefs.h.  */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h.  */
14517
14518 /* Override any gcc2 internal prototype to avoid an error.  */
14519 #ifdef __cplusplus
14520 extern "C"
14521 #endif
14522 /* We use char because int might match the return type of a gcc2
14523    builtin and then its argument prototype would still apply.  */
14524 char opendir ();
14525 int
14526 main ()
14527 {
14528 opendir ();
14529   ;
14530   return 0;
14531 }
14532 _ACEOF
14533 rm -f conftest.$ac_objext conftest$ac_exeext
14534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14535   (eval $ac_link) 2>conftest.er1
14536   ac_status=$?
14537   grep -v '^ *+' conftest.er1 >conftest.err
14538   rm -f conftest.er1
14539   cat conftest.err >&5
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); } &&
14542          { ac_try='test -z "$ac_c_werror_flag"
14543                          || test ! -s conftest.err'
14544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545   (eval $ac_try) 2>&5
14546   ac_status=$?
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); }; } &&
14549          { ac_try='test -s conftest$ac_exeext'
14550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551   (eval $ac_try) 2>&5
14552   ac_status=$?
14553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554   (exit $ac_status); }; }; then
14555   ac_cv_search_opendir="-l$ac_lib"
14556 break
14557 else
14558   echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14560
14561 fi
14562 rm -f conftest.err conftest.$ac_objext \
14563       conftest$ac_exeext conftest.$ac_ext
14564   done
14565 fi
14566 LIBS=$ac_func_search_save_LIBS
14567 fi
14568 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14569 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14570 if test "$ac_cv_search_opendir" != no; then
14571   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14572
14573 fi
14574
14575 fi
14576
14577
14578
14579
14580
14581
14582
14583
14584 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14585 do
14586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14587 echo "$as_me:$LINENO: checking for $ac_func" >&5
14588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14589 if eval "test \"\${$as_ac_var+set}\" = set"; then
14590   echo $ECHO_N "(cached) $ECHO_C" >&6
14591 else
14592   cat >conftest.$ac_ext <<_ACEOF
14593 /* confdefs.h.  */
14594 _ACEOF
14595 cat confdefs.h >>conftest.$ac_ext
14596 cat >>conftest.$ac_ext <<_ACEOF
14597 /* end confdefs.h.  */
14598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14600 #define $ac_func innocuous_$ac_func
14601
14602 /* System header to define __stub macros and hopefully few prototypes,
14603     which can conflict with char $ac_func (); below.
14604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14605     <limits.h> exists even on freestanding compilers.  */
14606
14607 #ifdef __STDC__
14608 # include <limits.h>
14609 #else
14610 # include <assert.h>
14611 #endif
14612
14613 #undef $ac_func
14614
14615 /* Override any gcc2 internal prototype to avoid an error.  */
14616 #ifdef __cplusplus
14617 extern "C"
14618 {
14619 #endif
14620 /* We use char because int might match the return type of a gcc2
14621    builtin and then its argument prototype would still apply.  */
14622 char $ac_func ();
14623 /* The GNU C library defines this for functions which it implements
14624     to always fail with ENOSYS.  Some functions are actually named
14625     something starting with __ and the normal name is an alias.  */
14626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14627 choke me
14628 #else
14629 char (*f) () = $ac_func;
14630 #endif
14631 #ifdef __cplusplus
14632 }
14633 #endif
14634
14635 int
14636 main ()
14637 {
14638 return f != $ac_func;
14639   ;
14640   return 0;
14641 }
14642 _ACEOF
14643 rm -f conftest.$ac_objext conftest$ac_exeext
14644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14645   (eval $ac_link) 2>conftest.er1
14646   ac_status=$?
14647   grep -v '^ *+' conftest.er1 >conftest.err
14648   rm -f conftest.er1
14649   cat conftest.err >&5
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); } &&
14652          { ac_try='test -z "$ac_c_werror_flag"
14653                          || test ! -s conftest.err'
14654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655   (eval $ac_try) 2>&5
14656   ac_status=$?
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); }; } &&
14659          { ac_try='test -s conftest$ac_exeext'
14660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661   (eval $ac_try) 2>&5
14662   ac_status=$?
14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); }; }; then
14665   eval "$as_ac_var=yes"
14666 else
14667   echo "$as_me: failed program was:" >&5
14668 sed 's/^/| /' conftest.$ac_ext >&5
14669
14670 eval "$as_ac_var=no"
14671 fi
14672 rm -f conftest.err conftest.$ac_objext \
14673       conftest$ac_exeext conftest.$ac_ext
14674 fi
14675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14677 if test `eval echo '${'$as_ac_var'}'` = yes; then
14678   cat >>confdefs.h <<_ACEOF
14679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14680 _ACEOF
14681
14682 fi
14683 done
14684
14685
14686
14687 for ac_func in nanosleep nl_langinfo
14688 do
14689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14690 echo "$as_me:$LINENO: checking for $ac_func" >&5
14691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14692 if eval "test \"\${$as_ac_var+set}\" = set"; then
14693   echo $ECHO_N "(cached) $ECHO_C" >&6
14694 else
14695   cat >conftest.$ac_ext <<_ACEOF
14696 /* confdefs.h.  */
14697 _ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h.  */
14701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14703 #define $ac_func innocuous_$ac_func
14704
14705 /* System header to define __stub macros and hopefully few prototypes,
14706     which can conflict with char $ac_func (); below.
14707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14708     <limits.h> exists even on freestanding compilers.  */
14709
14710 #ifdef __STDC__
14711 # include <limits.h>
14712 #else
14713 # include <assert.h>
14714 #endif
14715
14716 #undef $ac_func
14717
14718 /* Override any gcc2 internal prototype to avoid an error.  */
14719 #ifdef __cplusplus
14720 extern "C"
14721 {
14722 #endif
14723 /* We use char because int might match the return type of a gcc2
14724    builtin and then its argument prototype would still apply.  */
14725 char $ac_func ();
14726 /* The GNU C library defines this for functions which it implements
14727     to always fail with ENOSYS.  Some functions are actually named
14728     something starting with __ and the normal name is an alias.  */
14729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14730 choke me
14731 #else
14732 char (*f) () = $ac_func;
14733 #endif
14734 #ifdef __cplusplus
14735 }
14736 #endif
14737
14738 int
14739 main ()
14740 {
14741 return f != $ac_func;
14742   ;
14743   return 0;
14744 }
14745 _ACEOF
14746 rm -f conftest.$ac_objext conftest$ac_exeext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14748   (eval $ac_link) 2>conftest.er1
14749   ac_status=$?
14750   grep -v '^ *+' conftest.er1 >conftest.err
14751   rm -f conftest.er1
14752   cat conftest.err >&5
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); } &&
14755          { ac_try='test -z "$ac_c_werror_flag"
14756                          || test ! -s conftest.err'
14757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758   (eval $ac_try) 2>&5
14759   ac_status=$?
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); }; } &&
14762          { ac_try='test -s conftest$ac_exeext'
14763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764   (eval $ac_try) 2>&5
14765   ac_status=$?
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); }; }; then
14768   eval "$as_ac_var=yes"
14769 else
14770   echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14772
14773 eval "$as_ac_var=no"
14774 fi
14775 rm -f conftest.err conftest.$ac_objext \
14776       conftest$ac_exeext conftest.$ac_ext
14777 fi
14778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14780 if test `eval echo '${'$as_ac_var'}'` = yes; then
14781   cat >>confdefs.h <<_ACEOF
14782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14783 _ACEOF
14784
14785 fi
14786 done
14787
14788
14789 for ac_header in varargs.h
14790 do
14791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14793   echo "$as_me:$LINENO: checking for $ac_header" >&5
14794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14796   echo $ECHO_N "(cached) $ECHO_C" >&6
14797 fi
14798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14800 else
14801   # Is the header compilable?
14802 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14804 cat >conftest.$ac_ext <<_ACEOF
14805 /* confdefs.h.  */
14806 _ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h.  */
14810 $ac_includes_default
14811 #include <$ac_header>
14812 _ACEOF
14813 rm -f conftest.$ac_objext
14814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14815   (eval $ac_compile) 2>conftest.er1
14816   ac_status=$?
14817   grep -v '^ *+' conftest.er1 >conftest.err
14818   rm -f conftest.er1
14819   cat conftest.err >&5
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); } &&
14822          { ac_try='test -z "$ac_c_werror_flag"
14823                          || test ! -s conftest.err'
14824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825   (eval $ac_try) 2>&5
14826   ac_status=$?
14827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828   (exit $ac_status); }; } &&
14829          { ac_try='test -s conftest.$ac_objext'
14830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831   (eval $ac_try) 2>&5
14832   ac_status=$?
14833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); }; }; then
14835   ac_header_compiler=yes
14836 else
14837   echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14839
14840 ac_header_compiler=no
14841 fi
14842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14844 echo "${ECHO_T}$ac_header_compiler" >&6
14845
14846 # Is the header present?
14847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14849 cat >conftest.$ac_ext <<_ACEOF
14850 /* confdefs.h.  */
14851 _ACEOF
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h.  */
14855 #include <$ac_header>
14856 _ACEOF
14857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14858   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14859   ac_status=$?
14860   grep -v '^ *+' conftest.er1 >conftest.err
14861   rm -f conftest.er1
14862   cat conftest.err >&5
14863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864   (exit $ac_status); } >/dev/null; then
14865   if test -s conftest.err; then
14866     ac_cpp_err=$ac_c_preproc_warn_flag
14867     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14868   else
14869     ac_cpp_err=
14870   fi
14871 else
14872   ac_cpp_err=yes
14873 fi
14874 if test -z "$ac_cpp_err"; then
14875   ac_header_preproc=yes
14876 else
14877   echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.$ac_ext >&5
14879
14880   ac_header_preproc=no
14881 fi
14882 rm -f conftest.err conftest.$ac_ext
14883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14884 echo "${ECHO_T}$ac_header_preproc" >&6
14885
14886 # So?  What about this header?
14887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14888   yes:no: )
14889     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14893     ac_header_preproc=yes
14894     ;;
14895   no:yes:* )
14896     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14898     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14899 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14900     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14902     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14903 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14906     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14908     (
14909       cat <<\_ASBOX
14910 ## ------------------------------------------ ##
14911 ## Report this to the AC_PACKAGE_NAME lists.  ##
14912 ## ------------------------------------------ ##
14913 _ASBOX
14914     ) |
14915       sed "s/^/$as_me: WARNING:     /" >&2
14916     ;;
14917 esac
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 else
14923   eval "$as_ac_Header=\$ac_header_preproc"
14924 fi
14925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14927
14928 fi
14929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14930   cat >>confdefs.h <<_ACEOF
14931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14932 _ACEOF
14933
14934 fi
14935
14936 done
14937
14938
14939 # End of readline/conio stuff
14940 # -----------------------------------------------------------------------
14941
14942 # -----------------------------------------------------------------------
14943 #  Check for Python support
14944 #
14945 echo "$as_me:$LINENO: checking for Python support" >&5
14946 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
14947
14948 # Check whether --with-python or --without-python was given.
14949 if test "${with_python+set}" = set; then
14950   withval="$with_python"
14951
14952   PYTHON_INCDIR=
14953   PYTHON_LIBS=
14954   if test "$withval" != "no"; then
14955      if test "$withval" = "yes"; then
14956         for python_root in /usr /usr/local /usr/sfw; do
14957           if test -f $python_root/include/python2.2/Python.h; then
14958              PYTHON_INCDIR=-I$python_root/include/python2.2
14959              if test -d $python_root/lib64/python2.2/config; then
14960                 PYTHON_LIBS="-L$python_root/lib64/python2.2/config -lpython2.2"
14961              else
14962                 PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
14963              fi
14964              break
14965           elif test -f $python_root/include/python2.3/Python.h; then
14966              PYTHON_INCDIR=-I$python_root/include/python2.3
14967              if test -d $python_root/lib64/python2.3/config; then
14968                 PYTHON_LIBS="-L$python_root/lib64/python2.3/config -lpython2.3"
14969              else
14970                 PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
14971              fi
14972              break
14973           elif test -f $python_root/include/python2.4/Python.h; then
14974              PYTHON_INCDIR=-I$python_root/include/python2.4
14975              if test -d $python_root/lib64/python2.4/config; then
14976                 PYTHON_LIBS="-L$python_root/lib64/python2.4/config -lpython2.4"
14977              else
14978                 PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
14979              fi
14980              break
14981           fi
14982         done
14983         if test x$PYTHON_INCDIR = x; then
14984           if test -f $prefix/include/Python.h; then
14985              PYTHON_INCDIR=-I$prefix/include
14986              if test -d $prefix/lib64/config; then
14987                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
14988              else
14989                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
14990              fi
14991           else
14992            echo "$as_me:$LINENO: result: no" >&5
14993 echo "${ECHO_T}no" >&6
14994            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
14995 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
14996    { (exit 1); exit 1; }; }
14997           fi
14998         fi
14999      else
15000         if test -f $withval/Python.h; then
15001            PYTHON_INCDIR=-I$withval
15002            PYTHON_LIBS="-L$withval/config -lpython"
15003         elif test -f $withval/include/Python.h; then
15004            PYTHON_INCDIR=-I$withval/include
15005            if test -d $withval/lib64/config; then
15006               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15007            else
15008               PYTHON_LIBS="-L$withval/lib/config -lpython"
15009            fi
15010         elif test -f $withval/include/python/Python.h; then
15011            PYTHON_INCDIR=-I$withval/include/python
15012            if test -d $withval/lib64/python/config; then
15013               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15014            else
15015               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15016            fi
15017         else
15018            echo "$as_me:$LINENO: result: no" >&5
15019 echo "${ECHO_T}no" >&6
15020            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15021 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15022    { (exit 1); exit 1; }; }
15023         fi
15024      fi
15025      cat >>confdefs.h <<\_ACEOF
15026 #define HAVE_PYTHON 1
15027 _ACEOF
15028
15029      echo "$as_me:$LINENO: result: yes" >&5
15030 echo "${ECHO_T}yes" >&6
15031      support_python=yes
15032      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15033 echo "$as_me: checking for more Python libs" >&6;}
15034      saved_LIBS="$LIBS"; LIBS=
15035      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15036 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15037 if test "${ac_cv_search_shm_open+set}" = set; then
15038   echo $ECHO_N "(cached) $ECHO_C" >&6
15039 else
15040   ac_func_search_save_LIBS=$LIBS
15041 ac_cv_search_shm_open=no
15042 cat >conftest.$ac_ext <<_ACEOF
15043 /* confdefs.h.  */
15044 _ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h.  */
15048
15049 /* Override any gcc2 internal prototype to avoid an error.  */
15050 #ifdef __cplusplus
15051 extern "C"
15052 #endif
15053 /* We use char because int might match the return type of a gcc2
15054    builtin and then its argument prototype would still apply.  */
15055 char shm_open ();
15056 int
15057 main ()
15058 {
15059 shm_open ();
15060   ;
15061   return 0;
15062 }
15063 _ACEOF
15064 rm -f conftest.$ac_objext conftest$ac_exeext
15065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15066   (eval $ac_link) 2>conftest.er1
15067   ac_status=$?
15068   grep -v '^ *+' conftest.er1 >conftest.err
15069   rm -f conftest.er1
15070   cat conftest.err >&5
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); } &&
15073          { ac_try='test -z "$ac_c_werror_flag"
15074                          || test ! -s conftest.err'
15075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076   (eval $ac_try) 2>&5
15077   ac_status=$?
15078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079   (exit $ac_status); }; } &&
15080          { ac_try='test -s conftest$ac_exeext'
15081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082   (eval $ac_try) 2>&5
15083   ac_status=$?
15084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085   (exit $ac_status); }; }; then
15086   ac_cv_search_shm_open="none required"
15087 else
15088   echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15090
15091 fi
15092 rm -f conftest.err conftest.$ac_objext \
15093       conftest$ac_exeext conftest.$ac_ext
15094 if test "$ac_cv_search_shm_open" = no; then
15095   for ac_lib in rt; do
15096     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15097     cat >conftest.$ac_ext <<_ACEOF
15098 /* confdefs.h.  */
15099 _ACEOF
15100 cat confdefs.h >>conftest.$ac_ext
15101 cat >>conftest.$ac_ext <<_ACEOF
15102 /* end confdefs.h.  */
15103
15104 /* Override any gcc2 internal prototype to avoid an error.  */
15105 #ifdef __cplusplus
15106 extern "C"
15107 #endif
15108 /* We use char because int might match the return type of a gcc2
15109    builtin and then its argument prototype would still apply.  */
15110 char shm_open ();
15111 int
15112 main ()
15113 {
15114 shm_open ();
15115   ;
15116   return 0;
15117 }
15118 _ACEOF
15119 rm -f conftest.$ac_objext conftest$ac_exeext
15120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15121   (eval $ac_link) 2>conftest.er1
15122   ac_status=$?
15123   grep -v '^ *+' conftest.er1 >conftest.err
15124   rm -f conftest.er1
15125   cat conftest.err >&5
15126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127   (exit $ac_status); } &&
15128          { ac_try='test -z "$ac_c_werror_flag"
15129                          || test ! -s conftest.err'
15130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131   (eval $ac_try) 2>&5
15132   ac_status=$?
15133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134   (exit $ac_status); }; } &&
15135          { ac_try='test -s conftest$ac_exeext'
15136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137   (eval $ac_try) 2>&5
15138   ac_status=$?
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); }; }; then
15141   ac_cv_search_shm_open="-l$ac_lib"
15142 break
15143 else
15144   echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.$ac_ext >&5
15146
15147 fi
15148 rm -f conftest.err conftest.$ac_objext \
15149       conftest$ac_exeext conftest.$ac_ext
15150   done
15151 fi
15152 LIBS=$ac_func_search_save_LIBS
15153 fi
15154 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15155 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15156 if test "$ac_cv_search_shm_open" != no; then
15157   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15158
15159 fi
15160
15161
15162 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15163 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15164 if test "${ac_cv_lib_util_openpty+set}" = set; then
15165   echo $ECHO_N "(cached) $ECHO_C" >&6
15166 else
15167   ac_check_lib_save_LIBS=$LIBS
15168 LIBS="-lutil  $LIBS"
15169 cat >conftest.$ac_ext <<_ACEOF
15170 /* confdefs.h.  */
15171 _ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h.  */
15175
15176 /* Override any gcc2 internal prototype to avoid an error.  */
15177 #ifdef __cplusplus
15178 extern "C"
15179 #endif
15180 /* We use char because int might match the return type of a gcc2
15181    builtin and then its argument prototype would still apply.  */
15182 char openpty ();
15183 int
15184 main ()
15185 {
15186 openpty ();
15187   ;
15188   return 0;
15189 }
15190 _ACEOF
15191 rm -f conftest.$ac_objext conftest$ac_exeext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15193   (eval $ac_link) 2>conftest.er1
15194   ac_status=$?
15195   grep -v '^ *+' conftest.er1 >conftest.err
15196   rm -f conftest.er1
15197   cat conftest.err >&5
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); } &&
15200          { ac_try='test -z "$ac_c_werror_flag"
15201                          || test ! -s conftest.err'
15202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203   (eval $ac_try) 2>&5
15204   ac_status=$?
15205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206   (exit $ac_status); }; } &&
15207          { ac_try='test -s conftest$ac_exeext'
15208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209   (eval $ac_try) 2>&5
15210   ac_status=$?
15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212   (exit $ac_status); }; }; then
15213   ac_cv_lib_util_openpty=yes
15214 else
15215   echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15217
15218 ac_cv_lib_util_openpty=no
15219 fi
15220 rm -f conftest.err conftest.$ac_objext \
15221       conftest$ac_exeext conftest.$ac_ext
15222 LIBS=$ac_check_lib_save_LIBS
15223 fi
15224 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15225 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15226 if test $ac_cv_lib_util_openpty = yes; then
15227   cat >>confdefs.h <<_ACEOF
15228 #define HAVE_LIBUTIL 1
15229 _ACEOF
15230
15231   LIBS="-lutil $LIBS"
15232
15233 fi
15234
15235      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15236      LIBS="$saved_LIBS"
15237   else
15238      echo "$as_me:$LINENO: result: no" >&5
15239 echo "${ECHO_T}no" >&6
15240   fi
15241
15242 else
15243
15244   echo "$as_me:$LINENO: result: no" >&5
15245 echo "${ECHO_T}no" >&6
15246
15247 fi;
15248
15249
15250
15251
15252 #
15253 # Find where sockets are (especially for Solaris)
15254 # Do this before the TCP Wrappers test since tcp wrappers
15255 # uses the socket library and some linkers are stupid.
15256 #
15257 echo "$as_me:$LINENO: checking for socket" >&5
15258 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15259 if test "${ac_cv_func_socket+set}" = set; then
15260   echo $ECHO_N "(cached) $ECHO_C" >&6
15261 else
15262   cat >conftest.$ac_ext <<_ACEOF
15263 /* confdefs.h.  */
15264 _ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h.  */
15268 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15270 #define socket innocuous_socket
15271
15272 /* System header to define __stub macros and hopefully few prototypes,
15273     which can conflict with char socket (); below.
15274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15275     <limits.h> exists even on freestanding compilers.  */
15276
15277 #ifdef __STDC__
15278 # include <limits.h>
15279 #else
15280 # include <assert.h>
15281 #endif
15282
15283 #undef socket
15284
15285 /* Override any gcc2 internal prototype to avoid an error.  */
15286 #ifdef __cplusplus
15287 extern "C"
15288 {
15289 #endif
15290 /* We use char because int might match the return type of a gcc2
15291    builtin and then its argument prototype would still apply.  */
15292 char socket ();
15293 /* The GNU C library defines this for functions which it implements
15294     to always fail with ENOSYS.  Some functions are actually named
15295     something starting with __ and the normal name is an alias.  */
15296 #if defined (__stub_socket) || defined (__stub___socket)
15297 choke me
15298 #else
15299 char (*f) () = socket;
15300 #endif
15301 #ifdef __cplusplus
15302 }
15303 #endif
15304
15305 int
15306 main ()
15307 {
15308 return f != socket;
15309   ;
15310   return 0;
15311 }
15312 _ACEOF
15313 rm -f conftest.$ac_objext conftest$ac_exeext
15314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15315   (eval $ac_link) 2>conftest.er1
15316   ac_status=$?
15317   grep -v '^ *+' conftest.er1 >conftest.err
15318   rm -f conftest.er1
15319   cat conftest.err >&5
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); } &&
15322          { ac_try='test -z "$ac_c_werror_flag"
15323                          || test ! -s conftest.err'
15324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325   (eval $ac_try) 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; } &&
15329          { ac_try='test -s conftest$ac_exeext'
15330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331   (eval $ac_try) 2>&5
15332   ac_status=$?
15333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334   (exit $ac_status); }; }; then
15335   ac_cv_func_socket=yes
15336 else
15337   echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15339
15340 ac_cv_func_socket=no
15341 fi
15342 rm -f conftest.err conftest.$ac_objext \
15343       conftest$ac_exeext conftest.$ac_ext
15344 fi
15345 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15346 echo "${ECHO_T}$ac_cv_func_socket" >&6
15347 if test $ac_cv_func_socket = yes; then
15348   echo "$as_me:$LINENO: result: using libc's socket" >&5
15349 echo "${ECHO_T}using libc's socket" >&6
15350 else
15351
15352 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15353 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15354 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15355   echo $ECHO_N "(cached) $ECHO_C" >&6
15356 else
15357   ac_check_lib_save_LIBS=$LIBS
15358 LIBS="-lxnet  $LIBS"
15359 cat >conftest.$ac_ext <<_ACEOF
15360 /* confdefs.h.  */
15361 _ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h.  */
15365
15366 /* Override any gcc2 internal prototype to avoid an error.  */
15367 #ifdef __cplusplus
15368 extern "C"
15369 #endif
15370 /* We use char because int might match the return type of a gcc2
15371    builtin and then its argument prototype would still apply.  */
15372 char socket ();
15373 int
15374 main ()
15375 {
15376 socket ();
15377   ;
15378   return 0;
15379 }
15380 _ACEOF
15381 rm -f conftest.$ac_objext conftest$ac_exeext
15382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15383   (eval $ac_link) 2>conftest.er1
15384   ac_status=$?
15385   grep -v '^ *+' conftest.er1 >conftest.err
15386   rm -f conftest.er1
15387   cat conftest.err >&5
15388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389   (exit $ac_status); } &&
15390          { ac_try='test -z "$ac_c_werror_flag"
15391                          || test ! -s conftest.err'
15392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393   (eval $ac_try) 2>&5
15394   ac_status=$?
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); }; } &&
15397          { ac_try='test -s conftest$ac_exeext'
15398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399   (eval $ac_try) 2>&5
15400   ac_status=$?
15401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402   (exit $ac_status); }; }; then
15403   ac_cv_lib_xnet_socket=yes
15404 else
15405   echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15407
15408 ac_cv_lib_xnet_socket=no
15409 fi
15410 rm -f conftest.err conftest.$ac_objext \
15411       conftest$ac_exeext conftest.$ac_ext
15412 LIBS=$ac_check_lib_save_LIBS
15413 fi
15414 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15415 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15416 if test $ac_cv_lib_xnet_socket = yes; then
15417   cat >>confdefs.h <<_ACEOF
15418 #define HAVE_LIBXNET 1
15419 _ACEOF
15420
15421   LIBS="-lxnet $LIBS"
15422
15423 fi
15424
15425
15426 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15427 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15428 if test "${ac_cv_lib_socket_socket+set}" = set; then
15429   echo $ECHO_N "(cached) $ECHO_C" >&6
15430 else
15431   ac_check_lib_save_LIBS=$LIBS
15432 LIBS="-lsocket  $LIBS"
15433 cat >conftest.$ac_ext <<_ACEOF
15434 /* confdefs.h.  */
15435 _ACEOF
15436 cat confdefs.h >>conftest.$ac_ext
15437 cat >>conftest.$ac_ext <<_ACEOF
15438 /* end confdefs.h.  */
15439
15440 /* Override any gcc2 internal prototype to avoid an error.  */
15441 #ifdef __cplusplus
15442 extern "C"
15443 #endif
15444 /* We use char because int might match the return type of a gcc2
15445    builtin and then its argument prototype would still apply.  */
15446 char socket ();
15447 int
15448 main ()
15449 {
15450 socket ();
15451   ;
15452   return 0;
15453 }
15454 _ACEOF
15455 rm -f conftest.$ac_objext conftest$ac_exeext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15457   (eval $ac_link) 2>conftest.er1
15458   ac_status=$?
15459   grep -v '^ *+' conftest.er1 >conftest.err
15460   rm -f conftest.er1
15461   cat conftest.err >&5
15462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463   (exit $ac_status); } &&
15464          { ac_try='test -z "$ac_c_werror_flag"
15465                          || test ! -s conftest.err'
15466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467   (eval $ac_try) 2>&5
15468   ac_status=$?
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); }; } &&
15471          { ac_try='test -s conftest$ac_exeext'
15472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473   (eval $ac_try) 2>&5
15474   ac_status=$?
15475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476   (exit $ac_status); }; }; then
15477   ac_cv_lib_socket_socket=yes
15478 else
15479   echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15481
15482 ac_cv_lib_socket_socket=no
15483 fi
15484 rm -f conftest.err conftest.$ac_objext \
15485       conftest$ac_exeext conftest.$ac_ext
15486 LIBS=$ac_check_lib_save_LIBS
15487 fi
15488 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15489 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15490 if test $ac_cv_lib_socket_socket = yes; then
15491   cat >>confdefs.h <<_ACEOF
15492 #define HAVE_LIBSOCKET 1
15493 _ACEOF
15494
15495   LIBS="-lsocket $LIBS"
15496
15497 fi
15498
15499
15500 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15501 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15502 if test "${ac_cv_lib_inet_socket+set}" = set; then
15503   echo $ECHO_N "(cached) $ECHO_C" >&6
15504 else
15505   ac_check_lib_save_LIBS=$LIBS
15506 LIBS="-linet  $LIBS"
15507 cat >conftest.$ac_ext <<_ACEOF
15508 /* confdefs.h.  */
15509 _ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h.  */
15513
15514 /* Override any gcc2 internal prototype to avoid an error.  */
15515 #ifdef __cplusplus
15516 extern "C"
15517 #endif
15518 /* We use char because int might match the return type of a gcc2
15519    builtin and then its argument prototype would still apply.  */
15520 char socket ();
15521 int
15522 main ()
15523 {
15524 socket ();
15525   ;
15526   return 0;
15527 }
15528 _ACEOF
15529 rm -f conftest.$ac_objext conftest$ac_exeext
15530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15531   (eval $ac_link) 2>conftest.er1
15532   ac_status=$?
15533   grep -v '^ *+' conftest.er1 >conftest.err
15534   rm -f conftest.er1
15535   cat conftest.err >&5
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); } &&
15538          { ac_try='test -z "$ac_c_werror_flag"
15539                          || test ! -s conftest.err'
15540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541   (eval $ac_try) 2>&5
15542   ac_status=$?
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); }; } &&
15545          { ac_try='test -s conftest$ac_exeext'
15546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547   (eval $ac_try) 2>&5
15548   ac_status=$?
15549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); }; }; then
15551   ac_cv_lib_inet_socket=yes
15552 else
15553   echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15555
15556 ac_cv_lib_inet_socket=no
15557 fi
15558 rm -f conftest.err conftest.$ac_objext \
15559       conftest$ac_exeext conftest.$ac_ext
15560 LIBS=$ac_check_lib_save_LIBS
15561 fi
15562 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15563 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15564 if test $ac_cv_lib_inet_socket = yes; then
15565   cat >>confdefs.h <<_ACEOF
15566 #define HAVE_LIBINET 1
15567 _ACEOF
15568
15569   LIBS="-linet $LIBS"
15570
15571 fi
15572
15573 fi
15574
15575
15576
15577 # -----------------------------------------------------------
15578 # Check whether user wants TCP wrappers support (default off)
15579 # -----------------------------------------------------------
15580 TCPW_MSG="no"
15581 WRAPLIBS=""
15582
15583 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15584 if test "${with_tcp_wrappers+set}" = set; then
15585   withval="$with_tcp_wrappers"
15586
15587     if test "x$withval" != "xno" ; then
15588        saved_LIBS="$LIBS"
15589        LIBS="$saved_LIBS -lwrap"
15590        echo "$as_me:$LINENO: checking for libwrap" >&5
15591 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15592        echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15593 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15594 if test "${ac_cv_search_nanosleep+set}" = set; then
15595   echo $ECHO_N "(cached) $ECHO_C" >&6
15596 else
15597   ac_func_search_save_LIBS=$LIBS
15598 ac_cv_search_nanosleep=no
15599 cat >conftest.$ac_ext <<_ACEOF
15600 /* confdefs.h.  */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h.  */
15605
15606 /* Override any gcc2 internal prototype to avoid an error.  */
15607 #ifdef __cplusplus
15608 extern "C"
15609 #endif
15610 /* We use char because int might match the return type of a gcc2
15611    builtin and then its argument prototype would still apply.  */
15612 char nanosleep ();
15613 int
15614 main ()
15615 {
15616 nanosleep ();
15617   ;
15618   return 0;
15619 }
15620 _ACEOF
15621 rm -f conftest.$ac_objext conftest$ac_exeext
15622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15623   (eval $ac_link) 2>conftest.er1
15624   ac_status=$?
15625   grep -v '^ *+' conftest.er1 >conftest.err
15626   rm -f conftest.er1
15627   cat conftest.err >&5
15628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629   (exit $ac_status); } &&
15630          { ac_try='test -z "$ac_c_werror_flag"
15631                          || test ! -s conftest.err'
15632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633   (eval $ac_try) 2>&5
15634   ac_status=$?
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); }; } &&
15637          { ac_try='test -s conftest$ac_exeext'
15638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639   (eval $ac_try) 2>&5
15640   ac_status=$?
15641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642   (exit $ac_status); }; }; then
15643   ac_cv_search_nanosleep="none required"
15644 else
15645   echo "$as_me: failed program was:" >&5
15646 sed 's/^/| /' conftest.$ac_ext >&5
15647
15648 fi
15649 rm -f conftest.err conftest.$ac_objext \
15650       conftest$ac_exeext conftest.$ac_ext
15651 if test "$ac_cv_search_nanosleep" = no; then
15652   for ac_lib in rt; do
15653     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15654     cat >conftest.$ac_ext <<_ACEOF
15655 /* confdefs.h.  */
15656 _ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h.  */
15660
15661 /* Override any gcc2 internal prototype to avoid an error.  */
15662 #ifdef __cplusplus
15663 extern "C"
15664 #endif
15665 /* We use char because int might match the return type of a gcc2
15666    builtin and then its argument prototype would still apply.  */
15667 char nanosleep ();
15668 int
15669 main ()
15670 {
15671 nanosleep ();
15672   ;
15673   return 0;
15674 }
15675 _ACEOF
15676 rm -f conftest.$ac_objext conftest$ac_exeext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15678   (eval $ac_link) 2>conftest.er1
15679   ac_status=$?
15680   grep -v '^ *+' conftest.er1 >conftest.err
15681   rm -f conftest.er1
15682   cat conftest.err >&5
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); } &&
15685          { ac_try='test -z "$ac_c_werror_flag"
15686                          || test ! -s conftest.err'
15687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688   (eval $ac_try) 2>&5
15689   ac_status=$?
15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691   (exit $ac_status); }; } &&
15692          { ac_try='test -s conftest$ac_exeext'
15693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694   (eval $ac_try) 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); }; }; then
15698   ac_cv_search_nanosleep="-l$ac_lib"
15699 break
15700 else
15701   echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15703
15704 fi
15705 rm -f conftest.err conftest.$ac_objext \
15706       conftest$ac_exeext conftest.$ac_ext
15707   done
15708 fi
15709 LIBS=$ac_func_search_save_LIBS
15710 fi
15711 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15712 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15713 if test "$ac_cv_search_nanosleep" != no; then
15714   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15715
15716 fi
15717
15718        cat >conftest.$ac_ext <<_ACEOF
15719 /* confdefs.h.  */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h.  */
15724  #include <sys/types.h>
15725             #include <tcpd.h>
15726              int deny_severity = 0;
15727              int allow_severity = 0;
15728              struct request_info *req;
15729 int
15730 main ()
15731 {
15732  hosts_access(req);
15733   ;
15734   return 0;
15735 }
15736 _ACEOF
15737 rm -f conftest.$ac_objext conftest$ac_exeext
15738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15739   (eval $ac_link) 2>conftest.er1
15740   ac_status=$?
15741   grep -v '^ *+' conftest.er1 >conftest.err
15742   rm -f conftest.er1
15743   cat conftest.err >&5
15744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745   (exit $ac_status); } &&
15746          { ac_try='test -z "$ac_c_werror_flag"
15747                          || test ! -s conftest.err'
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); }; } &&
15753          { ac_try='test -s conftest$ac_exeext'
15754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755   (eval $ac_try) 2>&5
15756   ac_status=$?
15757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758   (exit $ac_status); }; }; then
15759
15760             echo "$as_me:$LINENO: result: yes" >&5
15761 echo "${ECHO_T}yes" >&6
15762             cat >>confdefs.h <<\_ACEOF
15763 #define HAVE_LIBWRAP 1
15764 _ACEOF
15765
15766             TCPW_MSG="yes"
15767             LIBS="$saved_LIBS"
15768             WRAPLIBS="-lwrap"
15769
15770 else
15771   echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15773
15774
15775             LIBS="$saved_LIBS -lwrap -lnsl"
15776             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15777             cat >conftest.$ac_ext <<_ACEOF
15778 /* confdefs.h.  */
15779 _ACEOF
15780 cat confdefs.h >>conftest.$ac_ext
15781 cat >>conftest.$ac_ext <<_ACEOF
15782 /* end confdefs.h.  */
15783  #include <sys/types.h>
15784                  #include <tcpd.h>
15785                  int deny_severity = 0;
15786                  int allow_severity = 0;
15787                  struct request_info *req;
15788 int
15789 main ()
15790 {
15791  hosts_access(req);
15792   ;
15793   return 0;
15794 }
15795 _ACEOF
15796 rm -f conftest.$ac_objext conftest$ac_exeext
15797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15798   (eval $ac_link) 2>conftest.er1
15799   ac_status=$?
15800   grep -v '^ *+' conftest.er1 >conftest.err
15801   rm -f conftest.er1
15802   cat conftest.err >&5
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); } &&
15805          { ac_try='test -z "$ac_c_werror_flag"
15806                          || test ! -s conftest.err'
15807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808   (eval $ac_try) 2>&5
15809   ac_status=$?
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); }; } &&
15812          { ac_try='test -s conftest$ac_exeext'
15813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814   (eval $ac_try) 2>&5
15815   ac_status=$?
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); }; }; then
15818
15819                  echo "$as_me:$LINENO: result: yes" >&5
15820 echo "${ECHO_T}yes" >&6
15821                  cat >>confdefs.h <<\_ACEOF
15822 #define HAVE_LIBWRAP 1
15823 _ACEOF
15824
15825                  TCPW_MSG="yes"
15826                  LIBS="$saved_LIBS"
15827                  WRAPLIBS="-lwrap"
15828
15829 else
15830   echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15832
15833 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15834 echo "$as_me: error: *** libwrap missing" >&2;}
15835    { (exit 1); exit 1; }; }
15836
15837 fi
15838 rm -f conftest.err conftest.$ac_objext \
15839       conftest$ac_exeext conftest.$ac_ext
15840
15841 fi
15842 rm -f conftest.err conftest.$ac_objext \
15843       conftest$ac_exeext conftest.$ac_ext
15844     fi
15845
15846
15847 fi;
15848
15849 # -----------------------------------------------------------
15850 # Check whether OpenSSL is available
15851 # -----------------------------------------------------------
15852 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15853 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15854
15855 # Check whether --with-openssl or --without-openssl was given.
15856 if test "${with_openssl+set}" = set; then
15857   withval="$with_openssl"
15858   with_openssl_directory=${withval}
15859 fi;
15860
15861 if test "x$with_openssl_directory" != "x"; then
15862         OPENSSL_LIBS="-lssl -lcrypto"
15863         OPENSSL_INC=""
15864
15865         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15866                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15867                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15868         fi
15869
15870         saved_LIBS="$LIBS"
15871         saved_CFLAGS="$CFLAGS"
15872         LIBS="$saved_LIBS $OPENSSL_LIBS"
15873         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
15874
15875         cat >conftest.$ac_ext <<_ACEOF
15876 /* confdefs.h.  */
15877 _ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h.  */
15881  #include <openssl/ssl.h>
15882 int
15883 main ()
15884 {
15885  CRYPTO_set_id_callback(NULL);
15886   ;
15887   return 0;
15888 }
15889 _ACEOF
15890 rm -f conftest.$ac_objext conftest$ac_exeext
15891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15892   (eval $ac_link) 2>conftest.er1
15893   ac_status=$?
15894   grep -v '^ *+' conftest.er1 >conftest.err
15895   rm -f conftest.er1
15896   cat conftest.err >&5
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); } &&
15899          { ac_try='test -z "$ac_c_werror_flag"
15900                          || test ! -s conftest.err'
15901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902   (eval $ac_try) 2>&5
15903   ac_status=$?
15904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905   (exit $ac_status); }; } &&
15906          { ac_try='test -s conftest$ac_exeext'
15907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908   (eval $ac_try) 2>&5
15909   ac_status=$?
15910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911   (exit $ac_status); }; }; then
15912
15913                         support_tls="yes"
15914                         support_crypto="yes"
15915
15916 else
15917   echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15919
15920  support_tls="no"
15921
15922 fi
15923 rm -f conftest.err conftest.$ac_objext \
15924       conftest$ac_exeext conftest.$ac_ext
15925
15926         cat >conftest.$ac_ext <<_ACEOF
15927 /* confdefs.h.  */
15928 _ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h.  */
15932  #include <openssl/evp.h>
15933 int
15934 main ()
15935 {
15936  EVP_sha512();
15937   ;
15938   return 0;
15939 }
15940 _ACEOF
15941 rm -f conftest.$ac_objext conftest$ac_exeext
15942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15943   (eval $ac_link) 2>conftest.er1
15944   ac_status=$?
15945   grep -v '^ *+' conftest.er1 >conftest.err
15946   rm -f conftest.er1
15947   cat conftest.err >&5
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); } &&
15950          { ac_try='test -z "$ac_c_werror_flag"
15951                          || test ! -s conftest.err'
15952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953   (eval $ac_try) 2>&5
15954   ac_status=$?
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); }; } &&
15957          { ac_try='test -s conftest$ac_exeext'
15958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959   (eval $ac_try) 2>&5
15960   ac_status=$?
15961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); }; }; then
15963    ac_cv_openssl_sha2="yes"
15964 else
15965   echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15967
15968  ac_cv_openssl_sha2="no"
15969
15970 fi
15971 rm -f conftest.err conftest.$ac_objext \
15972       conftest$ac_exeext conftest.$ac_ext
15973
15974         LIBS="$saved_LIBS"
15975         CFLAGS="$saved_CFLAGS"
15976
15977         if test "$support_tls" = "yes"; then
15978
15979 cat >>confdefs.h <<\_ACEOF
15980 #define HAVE_OPENSSL 1
15981 _ACEOF
15982
15983
15984 cat >>confdefs.h <<\_ACEOF
15985 #define HAVE_TLS 1
15986 _ACEOF
15987
15988
15989 cat >>confdefs.h <<\_ACEOF
15990 #define HAVE_CRYPTO 1
15991 _ACEOF
15992
15993         fi
15994
15995         if test "$ac_cv_openssl_sha2" = "yes"; then
15996
15997 cat >>confdefs.h <<\_ACEOF
15998 #define HAVE_SHA2 1
15999 _ACEOF
16000
16001         fi
16002 else
16003         support_tls="no"
16004         support_crypto="no"
16005         OPENSSL_LIBS=""
16006         OPENSSL_INC=""
16007 fi
16008
16009 echo "$as_me:$LINENO: result: $support_tls" >&5
16010 echo "${ECHO_T}$support_tls" >&6
16011
16012
16013
16014
16015 # -----------------------------------------------------------
16016 # Python and OpenSSL are using dlopen
16017 # -----------------------------------------------------------
16018
16019 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16020    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16021 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16022 if test "${ac_cv_search_dlopen+set}" = set; then
16023   echo $ECHO_N "(cached) $ECHO_C" >&6
16024 else
16025   ac_func_search_save_LIBS=$LIBS
16026 ac_cv_search_dlopen=no
16027 cat >conftest.$ac_ext <<_ACEOF
16028 /* confdefs.h.  */
16029 _ACEOF
16030 cat confdefs.h >>conftest.$ac_ext
16031 cat >>conftest.$ac_ext <<_ACEOF
16032 /* end confdefs.h.  */
16033
16034 /* Override any gcc2 internal prototype to avoid an error.  */
16035 #ifdef __cplusplus
16036 extern "C"
16037 #endif
16038 /* We use char because int might match the return type of a gcc2
16039    builtin and then its argument prototype would still apply.  */
16040 char dlopen ();
16041 int
16042 main ()
16043 {
16044 dlopen ();
16045   ;
16046   return 0;
16047 }
16048 _ACEOF
16049 rm -f conftest.$ac_objext conftest$ac_exeext
16050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16051   (eval $ac_link) 2>conftest.er1
16052   ac_status=$?
16053   grep -v '^ *+' conftest.er1 >conftest.err
16054   rm -f conftest.er1
16055   cat conftest.err >&5
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); } &&
16058          { ac_try='test -z "$ac_c_werror_flag"
16059                          || test ! -s conftest.err'
16060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061   (eval $ac_try) 2>&5
16062   ac_status=$?
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); }; } &&
16065          { ac_try='test -s conftest$ac_exeext'
16066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067   (eval $ac_try) 2>&5
16068   ac_status=$?
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); }; }; then
16071   ac_cv_search_dlopen="none required"
16072 else
16073   echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16075
16076 fi
16077 rm -f conftest.err conftest.$ac_objext \
16078       conftest$ac_exeext conftest.$ac_ext
16079 if test "$ac_cv_search_dlopen" = no; then
16080   for ac_lib in dl; do
16081     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16082     cat >conftest.$ac_ext <<_ACEOF
16083 /* confdefs.h.  */
16084 _ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h.  */
16088
16089 /* Override any gcc2 internal prototype to avoid an error.  */
16090 #ifdef __cplusplus
16091 extern "C"
16092 #endif
16093 /* We use char because int might match the return type of a gcc2
16094    builtin and then its argument prototype would still apply.  */
16095 char dlopen ();
16096 int
16097 main ()
16098 {
16099 dlopen ();
16100   ;
16101   return 0;
16102 }
16103 _ACEOF
16104 rm -f conftest.$ac_objext conftest$ac_exeext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16106   (eval $ac_link) 2>conftest.er1
16107   ac_status=$?
16108   grep -v '^ *+' conftest.er1 >conftest.err
16109   rm -f conftest.er1
16110   cat conftest.err >&5
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); } &&
16113          { ac_try='test -z "$ac_c_werror_flag"
16114                          || test ! -s conftest.err'
16115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116   (eval $ac_try) 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); }; } &&
16120          { ac_try='test -s conftest$ac_exeext'
16121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122   (eval $ac_try) 2>&5
16123   ac_status=$?
16124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125   (exit $ac_status); }; }; then
16126   ac_cv_search_dlopen="-l$ac_lib"
16127 break
16128 else
16129   echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16131
16132 fi
16133 rm -f conftest.err conftest.$ac_objext \
16134       conftest$ac_exeext conftest.$ac_ext
16135   done
16136 fi
16137 LIBS=$ac_func_search_save_LIBS
16138 fi
16139 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16140 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16141 if test "$ac_cv_search_dlopen" != no; then
16142   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16143
16144 fi
16145
16146 fi
16147
16148 # ------------------------------------------
16149 # Where to place working dir
16150 # ------------------------------------------
16151 working_dir=`eval echo ${prefix}/var/bacula/working`
16152
16153 # Check whether --with-working-dir or --without-working-dir was given.
16154 if test "${with_working_dir+set}" = set; then
16155   withval="$with_working_dir"
16156
16157        if test "x$withval" != "xno" ; then
16158               working_dir=$withval
16159        fi
16160
16161
16162 fi;
16163
16164
16165
16166
16167 # ------------------------------------------
16168 # Where to place scriptdir (script files)
16169 # ------------------------------------------
16170 scriptdir=`eval echo ${sysconfdir}`
16171
16172 # Check whether --with-scriptdir or --without-scriptdir was given.
16173 if test "${with_scriptdir+set}" = set; then
16174   withval="$with_scriptdir"
16175
16176        if test "x$withval" != "xno" ; then
16177               scriptdir=$withval
16178        fi
16179
16180
16181 fi;
16182
16183
16184
16185
16186 # ------------------------------------------
16187 # Where to send dump email
16188 # ------------------------------------------
16189 dump_email=root@localhost
16190
16191 # Check whether --with-dump-email or --without-dump-email was given.
16192 if test "${with_dump_email+set}" = set; then
16193   withval="$with_dump_email"
16194
16195        if test "x$withval" != "xno" ; then
16196               dump_email=$withval
16197        fi
16198
16199
16200 fi;
16201
16202
16203
16204 # ------------------------------------------
16205 # Where to send job email
16206 # ------------------------------------------
16207 job_email=root@localhost
16208
16209 # Check whether --with-job-email or --without-job-email was given.
16210 if test "${with_job_email+set}" = set; then
16211   withval="$with_job_email"
16212
16213        if test "x$withval" != "xno" ; then
16214               job_email=$withval
16215        fi
16216
16217
16218 fi;
16219
16220
16221
16222 # ------------------------------------------
16223 # Where to find smtp host
16224 # ------------------------------------------
16225 smtp_host=localhost
16226
16227 # Check whether --with-smtp_host or --without-smtp_host was given.
16228 if test "${with_smtp_host+set}" = set; then
16229   withval="$with_smtp_host"
16230
16231        if test "x$withval" != "xno" ; then
16232               smtp_host=$withval
16233        fi
16234
16235
16236 fi;
16237
16238
16239
16240
16241 # ------------------------------------
16242 # Where to place pid files
16243 # ------------------------------------
16244 piddir=/var/run
16245
16246 # Check whether --with-pid-dir or --without-pid-dir was given.
16247 if test "${with_pid_dir+set}" = set; then
16248   withval="$with_pid_dir"
16249
16250         if test "x$withval" != "xno" ; then
16251             piddir=$withval
16252         fi
16253
16254
16255 fi;
16256
16257 cat >>confdefs.h <<_ACEOF
16258 #define _PATH_BACULA_PIDDIR "$piddir"
16259 _ACEOF
16260
16261
16262
16263
16264 # ------------------------------------
16265 # Where to place subsys "lock file"
16266 # ------------------------------------
16267 subsysdir=/var/run/subsys
16268
16269 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16270 if test "${with_subsys_dir+set}" = set; then
16271   withval="$with_subsys_dir"
16272
16273         if test "x$withval" != "xno" ; then
16274             subsysdir=$withval
16275         fi
16276
16277
16278 fi;
16279
16280
16281
16282
16283
16284 # ------------------------------------
16285 # Where to start assigning ports
16286 # ------------------------------------
16287 baseport=9101
16288
16289 # Check whether --with-baseport or --without-baseport was given.
16290 if test "${with_baseport+set}" = set; then
16291   withval="$with_baseport"
16292
16293         if test "x$withval" != "xno" ; then
16294              baseport=$withval
16295         fi
16296
16297
16298 fi;
16299
16300
16301 dir_port=`expr $baseport`
16302 fd_port=`expr $baseport + 1`
16303 sd_port=`expr $fd_port + 1`
16304
16305
16306
16307
16308
16309
16310 # ------------------------------------------
16311 # Generate passwords
16312 # ------------------------------------------
16313 dir_password=
16314
16315 # Check whether --with-dir-password or --without-dir-password was given.
16316 if test "${with_dir_password+set}" = set; then
16317   withval="$with_dir_password"
16318
16319        if test "x$withval" != "xno" ; then
16320            dir_password=$withval
16321        fi
16322
16323
16324 fi;
16325
16326 if test "x$dir_password" = "x" ; then
16327    if test "x$OPENSSL" = "xnone" ; then
16328       key=`autoconf/randpass 33`
16329    else
16330       key=`openssl rand -base64 33`
16331    fi
16332    dir_password=$key
16333 fi
16334
16335 fd_password=
16336
16337 # Check whether --with-fd-password or --without-fd-password was given.
16338 if test "${with_fd_password+set}" = set; then
16339   withval="$with_fd_password"
16340
16341        if test "x$withval" != "xno" ; then
16342            fd_password=$withval
16343        fi
16344
16345
16346 fi;
16347
16348 if test "x$fd_password" = "x" ; then
16349    if test "x$OPENSSL" = "xnone" ; then
16350       key=`autoconf/randpass 37`
16351    else
16352       key=`openssl rand -base64 33`
16353    fi
16354    fd_password=$key
16355 fi
16356
16357 sd_password=
16358
16359 # Check whether --with-sd-password or --without-sd-password was given.
16360 if test "${with_sd_password+set}" = set; then
16361   withval="$with_sd_password"
16362
16363        if test "x$withval" != "xno" ; then
16364            sd_password=$withval
16365        fi
16366
16367
16368 fi;
16369
16370 if test "x$sd_password" = "x" ; then
16371    if test "x$OPENSSL" = "xnone" ; then
16372       key=`autoconf/randpass 41`
16373    else
16374       key=`openssl rand -base64 33`
16375    fi
16376    sd_password=$key
16377 fi
16378
16379 mon_dir_password=
16380
16381 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16382 if test "${with_mon_dir_password+set}" = set; then
16383   withval="$with_mon_dir_password"
16384
16385        if test "x$withval" != "xno" ; then
16386            mon_dir_password=$withval
16387        fi
16388
16389
16390 fi;
16391
16392 if test "x$mon_dir_password" = "x" ; then
16393    if test "x$OPENSSL" = "xnone" ; then
16394       key=`autoconf/randpass 33`
16395    else
16396       key=`openssl rand -base64 33`
16397    fi
16398    mon_dir_password=$key
16399 fi
16400
16401 mon_fd_password=
16402
16403 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16404 if test "${with_mon_fd_password+set}" = set; then
16405   withval="$with_mon_fd_password"
16406
16407        if test "x$withval" != "xno" ; then
16408            mon_fd_password=$withval
16409        fi
16410
16411
16412 fi;
16413
16414 if test "x$mon_fd_password" = "x" ; then
16415    if test "x$OPENSSL" = "xnone" ; then
16416       key=`autoconf/randpass 37`
16417    else
16418       key=`openssl rand -base64 33`
16419    fi
16420    mon_fd_password=$key
16421 fi
16422
16423 mon_sd_password=
16424
16425 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16426 if test "${with_mon_sd_password+set}" = set; then
16427   withval="$with_mon_sd_password"
16428
16429        if test "x$withval" != "xno" ; then
16430            mon_sd_password=$withval
16431        fi
16432
16433
16434 fi;
16435
16436 if test "x$mon_sd_password" = "x" ; then
16437    if test "x$OPENSSL" = "xnone" ; then
16438       key=`autoconf/randpass 41`
16439    else
16440       key=`openssl rand -base64 33`
16441    fi
16442    mon_sd_password=$key
16443 fi
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453 #
16454 # Handle users and groups for each daemon
16455 #
16456 dir_user=
16457
16458 # Check whether --with-dir_user or --without-dir_user was given.
16459 if test "${with_dir_user+set}" = set; then
16460   withval="$with_dir_user"
16461
16462         if test "x$withval" != "x" ; then
16463              dir_user=$withval
16464         fi
16465
16466
16467 fi;
16468
16469 dir_group=
16470
16471 # Check whether --with-dir_group or --without-dir_group was given.
16472 if test "${with_dir_group+set}" = set; then
16473   withval="$with_dir_group"
16474
16475         if test "x$withval" != "x" ; then
16476              dir_group=$withval
16477         fi
16478
16479
16480 fi;
16481
16482 sd_user=
16483
16484 # Check whether --with-sd_user or --without-sd_user was given.
16485 if test "${with_sd_user+set}" = set; then
16486   withval="$with_sd_user"
16487
16488         if test "x$withval" != "x" ; then
16489              sd_user=$withval
16490         fi
16491
16492
16493 fi;
16494
16495 sd_group=
16496
16497 # Check whether --with-sd_group or --without-sd_group was given.
16498 if test "${with_sd_group+set}" = set; then
16499   withval="$with_sd_group"
16500
16501         if test "x$withval" != "x" ; then
16502              sd_group=$withval
16503         fi
16504
16505
16506 fi;
16507
16508 fd_user=
16509
16510 # Check whether --with-fd_user or --without-fd_user was given.
16511 if test "${with_fd_user+set}" = set; then
16512   withval="$with_fd_user"
16513
16514         if test "x$withval" != "x" ; then
16515              fd_user=$withval
16516         fi
16517
16518
16519 fi;
16520
16521 fd_group=
16522
16523 # Check whether --with-fd_group or --without-fd_group was given.
16524 if test "${with_fd_group+set}" = set; then
16525   withval="$with_fd_group"
16526
16527         if test "x$withval" != "x" ; then
16528              fd_group=$withval
16529         fi
16530
16531
16532 fi;
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544 #
16545 # allow setting default executable permissions
16546 #
16547 SBINPERM=0754
16548
16549 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16550 if test "${with_sbin_perm+set}" = set; then
16551   withval="$with_sbin_perm"
16552
16553         if test "x$withval" != "x" ; then
16554             SBINPERM=$withval
16555         fi
16556
16557
16558 fi;
16559
16560
16561
16562 # ------------------------------------------------
16563 # Bacula check for various SQL database engines
16564 # ------------------------------------------------
16565
16566 db_found=no
16567 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16568 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16569
16570 # Check whether --with-postgresql or --without-postgresql was given.
16571 if test "${with_postgresql+set}" = set; then
16572   withval="$with_postgresql"
16573
16574   if test "$withval" != "no"; then
16575       if test "$db_found" = "yes"; then
16576           echo "$as_me:$LINENO: result: error" >&5
16577 echo "${ECHO_T}error" >&6
16578           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16579 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16580    { (exit 1); exit 1; }; };
16581       fi
16582       if test "$withval" = "yes"; then
16583           PG_CONFIG=`which pg_config`
16584           if test -n "$PG_CONFIG";then
16585               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16586               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16587               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16588           elif test -f /usr/local/include/libpq-fe.h; then
16589               POSTGRESQL_INCDIR=/usr/local/include
16590               if test -d /usr/local/lib64; then
16591                  POSTGRESQL_LIBDIR=/usr/local/lib64
16592               else
16593                  POSTGRESQL_LIBDIR=/usr/local/lib
16594               fi
16595               POSTGRESQL_BINDIR=/usr/local/bin
16596           elif test -f /usr/include/libpq-fe.h; then
16597               POSTGRESQL_INCDIR=/usr/include
16598               if test -d /usr/lib64; then
16599                  POSTGRESQL_LIBDIR=/usr/lib64
16600               else
16601                  POSTGRESQL_LIBDIR=/usr/lib
16602               fi
16603               POSTGRESQL_BINDIR=/usr/bin
16604           elif test -f /usr/include/pgsql/libpq-fe.h; then
16605               POSTGRESQL_INCDIR=/usr/include/pgsql
16606               if test -d /usr/lib64/pgsql; then
16607                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16608               else
16609                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
16610               fi
16611               POSTGRESQL_BINDIR=/usr/bin
16612           elif test -f /usr/include/postgresql/libpq-fe.h; then
16613               POSTGRESQL_INCDIR=/usr/include/postgresql
16614               if test -d /usr/lib64/postgresql; then
16615                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16616               else
16617                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
16618               fi
16619               POSTGRESQL_BINDIR=/usr/bin
16620           else
16621               echo "$as_me:$LINENO: result: no" >&5
16622 echo "${ECHO_T}no" >&6
16623               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16624 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16625    { (exit 1); exit 1; }; }
16626           fi
16627       elif test -f $withval/include/libpq-fe.h; then
16628           POSTGRESQL_INCDIR=$withval/include
16629           POSTGRESQL_LIBDIR=$withval/lib
16630           POSTGRESQL_BINDIR=$withval/bin
16631       elif test -f $withval/include/postgresql/libpq-fe.h; then
16632           POSTGRESQL_INCDIR=$withval/include/postgresql
16633      if test -d $withval/lib64; then
16634          POSTGRESQL_LIBDIR=$withval/lib64
16635      else
16636          POSTGRESQL_LIBDIR=$withval/lib
16637      fi
16638           POSTGRESQL_BINDIR=$withval/bin
16639       else
16640           echo "$as_me:$LINENO: result: no" >&5
16641 echo "${ECHO_T}no" >&6
16642           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16643 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16644    { (exit 1); exit 1; }; }
16645       fi
16646       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16647       echo "$as_me:$LINENO: checking for crypt" >&5
16648 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16649 if test "${ac_cv_func_crypt+set}" = set; then
16650   echo $ECHO_N "(cached) $ECHO_C" >&6
16651 else
16652   cat >conftest.$ac_ext <<_ACEOF
16653 /* confdefs.h.  */
16654 _ACEOF
16655 cat confdefs.h >>conftest.$ac_ext
16656 cat >>conftest.$ac_ext <<_ACEOF
16657 /* end confdefs.h.  */
16658 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16660 #define crypt innocuous_crypt
16661
16662 /* System header to define __stub macros and hopefully few prototypes,
16663     which can conflict with char crypt (); below.
16664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16665     <limits.h> exists even on freestanding compilers.  */
16666
16667 #ifdef __STDC__
16668 # include <limits.h>
16669 #else
16670 # include <assert.h>
16671 #endif
16672
16673 #undef crypt
16674
16675 /* Override any gcc2 internal prototype to avoid an error.  */
16676 #ifdef __cplusplus
16677 extern "C"
16678 {
16679 #endif
16680 /* We use char because int might match the return type of a gcc2
16681    builtin and then its argument prototype would still apply.  */
16682 char crypt ();
16683 /* The GNU C library defines this for functions which it implements
16684     to always fail with ENOSYS.  Some functions are actually named
16685     something starting with __ and the normal name is an alias.  */
16686 #if defined (__stub_crypt) || defined (__stub___crypt)
16687 choke me
16688 #else
16689 char (*f) () = crypt;
16690 #endif
16691 #ifdef __cplusplus
16692 }
16693 #endif
16694
16695 int
16696 main ()
16697 {
16698 return f != crypt;
16699   ;
16700   return 0;
16701 }
16702 _ACEOF
16703 rm -f conftest.$ac_objext conftest$ac_exeext
16704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16705   (eval $ac_link) 2>conftest.er1
16706   ac_status=$?
16707   grep -v '^ *+' conftest.er1 >conftest.err
16708   rm -f conftest.er1
16709   cat conftest.err >&5
16710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711   (exit $ac_status); } &&
16712          { ac_try='test -z "$ac_c_werror_flag"
16713                          || test ! -s conftest.err'
16714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715   (eval $ac_try) 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); }; } &&
16719          { ac_try='test -s conftest$ac_exeext'
16720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721   (eval $ac_try) 2>&5
16722   ac_status=$?
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); }; }; then
16725   ac_cv_func_crypt=yes
16726 else
16727   echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16729
16730 ac_cv_func_crypt=no
16731 fi
16732 rm -f conftest.err conftest.$ac_objext \
16733       conftest$ac_exeext conftest.$ac_ext
16734 fi
16735 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16736 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16737 if test $ac_cv_func_crypt = yes; then
16738   :
16739 else
16740   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16741 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16742 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16743   echo $ECHO_N "(cached) $ECHO_C" >&6
16744 else
16745   ac_check_lib_save_LIBS=$LIBS
16746 LIBS="-lcrypt  $LIBS"
16747 cat >conftest.$ac_ext <<_ACEOF
16748 /* confdefs.h.  */
16749 _ACEOF
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h.  */
16753
16754 /* Override any gcc2 internal prototype to avoid an error.  */
16755 #ifdef __cplusplus
16756 extern "C"
16757 #endif
16758 /* We use char because int might match the return type of a gcc2
16759    builtin and then its argument prototype would still apply.  */
16760 char crypt ();
16761 int
16762 main ()
16763 {
16764 crypt ();
16765   ;
16766   return 0;
16767 }
16768 _ACEOF
16769 rm -f conftest.$ac_objext conftest$ac_exeext
16770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16771   (eval $ac_link) 2>conftest.er1
16772   ac_status=$?
16773   grep -v '^ *+' conftest.er1 >conftest.err
16774   rm -f conftest.er1
16775   cat conftest.err >&5
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); } &&
16778          { ac_try='test -z "$ac_c_werror_flag"
16779                          || test ! -s conftest.err'
16780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781   (eval $ac_try) 2>&5
16782   ac_status=$?
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); }; } &&
16785          { ac_try='test -s conftest$ac_exeext'
16786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787   (eval $ac_try) 2>&5
16788   ac_status=$?
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); }; }; then
16791   ac_cv_lib_crypt_crypt=yes
16792 else
16793   echo "$as_me: failed program was:" >&5
16794 sed 's/^/| /' conftest.$ac_ext >&5
16795
16796 ac_cv_lib_crypt_crypt=no
16797 fi
16798 rm -f conftest.err conftest.$ac_objext \
16799       conftest$ac_exeext conftest.$ac_ext
16800 LIBS=$ac_check_lib_save_LIBS
16801 fi
16802 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16803 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
16804 if test $ac_cv_lib_crypt_crypt = yes; then
16805   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
16806 fi
16807
16808 fi
16809
16810       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
16811       SQL_LFLAGS=$POSTGRESQL_LFLAGS
16812       SQL_BINDIR=$POSTGRESQL_BINDIR
16813       cat >>confdefs.h <<\_ACEOF
16814 #define HAVE_POSTGRESQL 1
16815 _ACEOF
16816
16817       echo "$as_me:$LINENO: result: yes" >&5
16818 echo "${ECHO_T}yes" >&6
16819       db_found=yes
16820       support_postgresql=yes
16821       db_name=PostgreSQL
16822       DB_NAME=postgresql
16823   else
16824       echo "$as_me:$LINENO: result: no" >&5
16825 echo "${ECHO_T}no" >&6
16826   fi
16827
16828 else
16829
16830   echo "$as_me:$LINENO: result: no" >&5
16831 echo "${ECHO_T}no" >&6
16832
16833 fi;
16834
16835
16836
16837
16838
16839
16840
16841 db_found=no
16842 echo "$as_me:$LINENO: checking for MySQL support" >&5
16843 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
16844
16845 # Check whether --with-mysql or --without-mysql was given.
16846 if test "${with_mysql+set}" = set; then
16847   withval="$with_mysql"
16848
16849   if test "$withval" != "no"; then
16850         if test "$withval" = "yes"; then
16851            if test -f /usr/local/mysql/include/mysql/mysql.h; then
16852                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
16853                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient.a; then
16854                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
16855                    else
16856                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16857                    fi
16858                    MYSQL_BINDIR=/usr/local/mysql/bin
16859            elif test -f /usr/include/mysql/mysql.h; then
16860                    MYSQL_INCDIR=/usr/include/mysql
16861                    if test -f /usr/lib64/mysql/libmysqlclient.a; then
16862                            MYSQL_LIBDIR=/usr/lib64/mysql
16863                    else
16864                            MYSQL_LIBDIR=/usr/lib/mysql
16865                    fi
16866                    MYSQL_BINDIR=/usr/bin
16867            elif test -f /usr/include/mysql.h; then
16868                    MYSQL_INCDIR=/usr/include
16869                    if test -f /usr/lib64/libmysqlclient.a; then
16870                            MYSQL_LIBDIR=/usr/lib64
16871                    else
16872                            MYSQL_LIBDIR=/usr/lib
16873                    fi
16874                    MYSQL_BINDIR=/usr/bin
16875            elif test -f /usr/local/include/mysql/mysql.h; then
16876                    MYSQL_INCDIR=/usr/local/include/mysql
16877                    if test -f /usr/local/lib64/mysql/libmysqlclient.a; then
16878                            MYSQL_LIBDIR=/usr/local/lib64/mysql
16879                    else
16880                            MYSQL_LIBDIR=/usr/local/lib/mysql
16881                    fi
16882                    MYSQL_BINDIR=/usr/local/bin
16883            elif test -f /usr/local/include/mysql.h; then
16884                    MYSQL_INCDIR=/usr/local/include
16885                    if test -f /usr/local/lib64/libmysqlclient.a; then
16886                            MYSQL_LIBDIR=/usr/local/lib64
16887                    else
16888                            MYSQL_LIBDIR=/usr/local/lib
16889                    fi
16890                    MYSQL_BINDIR=/usr/local/bin
16891            else
16892               echo "$as_me:$LINENO: result: no" >&5
16893 echo "${ECHO_T}no" >&6
16894               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16895 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16896    { (exit 1); exit 1; }; }
16897            fi
16898         else
16899            if test -f $withval/include/mysql/mysql.h; then
16900               MYSQL_INCDIR=$withval/include/mysql
16901               if test -f $withval/lib64/mysql/libmysqlclient.a; then
16902                  MYSQL_LIBDIR=$withval/lib64/mysql
16903               else
16904                  MYSQL_LIBDIR=$withval/lib/mysql
16905                  # Solaris ...
16906                  if test -f $withval/lib/libmysqlclient.so; then
16907                     MYSQL_LIBDIR=$withval/lib
16908                  fi
16909               fi
16910               MYSQL_BINDIR=$withval/bin
16911            elif test -f $withval/include/mysql.h; then
16912               MYSQL_INCDIR=$withval/include
16913               if test -f "$withval/lib64/libmysqlclient.a"; then
16914                  MYSQL_LIBDIR=$withval/lib64
16915               else
16916                  MYSQL_LIBDIR=$withval/lib
16917               fi
16918               MYSQL_BINDIR=$withval/bin
16919            else
16920               echo "$as_me:$LINENO: result: no" >&5
16921 echo "${ECHO_T}no" >&6
16922               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16923 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16924    { (exit 1); exit 1; }; }
16925            fi
16926         fi
16927     SQL_INCLUDE=-I$MYSQL_INCDIR
16928     if test -f "$MYSQL_LIBDIR/libmysqlclient_r.a"; then
16929        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
16930        cat >>confdefs.h <<\_ACEOF
16931 #define HAVE_THREAD_SAFE_MYSQL 1
16932 _ACEOF
16933
16934     else
16935        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
16936     fi
16937     SQL_BINDIR=$MYSQL_BINDIR
16938
16939     cat >>confdefs.h <<\_ACEOF
16940 #define HAVE_MYSQL 1
16941 _ACEOF
16942
16943     echo "$as_me:$LINENO: result: yes" >&5
16944 echo "${ECHO_T}yes" >&6
16945     db_found=yes
16946     support_mysql=yes
16947     db_name=MySQL
16948     DB_NAME=mysql
16949
16950   else
16951         echo "$as_me:$LINENO: result: no" >&5
16952 echo "${ECHO_T}no" >&6
16953   fi
16954
16955
16956 fi;
16957
16958
16959 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
16960 if test "${with_embedded_mysql+set}" = set; then
16961   withval="$with_embedded_mysql"
16962
16963   if test "$withval" != "no"; then
16964         if test "$withval" = "yes"; then
16965                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16966                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
16967                         if test -d /usr/local/mysql/lib64/mysql; then
16968                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
16969                         else
16970                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16971                         fi
16972                         MYSQL_BINDIR=/usr/local/mysql/bin
16973                 elif test -f /usr/include/mysql/mysql.h; then
16974                         MYSQL_INCDIR=/usr/include/mysql
16975                         if test -d /usr/lib64/mysql; then
16976                                 MYSQL_LIBDIR=/usr/lib64/mysql
16977                         else
16978                                 MYSQL_LIBDIR=/usr/lib/mysql
16979                         fi
16980                         MYSQL_BINDIR=/usr/bin
16981                 elif test -f /usr/include/mysql.h; then
16982                         MYSQL_INCDIR=/usr/include
16983                         if test -d /usr/lib64; then
16984                                 MYSQL_LIBDIR=/usr/lib64
16985                         else
16986                                 MYSQL_LIBDIR=/usr/lib
16987                         fi
16988                         MYSQL_BINDIR=/usr/bin
16989                 elif test -f /usr/local/include/mysql/mysql.h; then
16990                         MYSQL_INCDIR=/usr/local/include/mysql
16991                         if test -d /usr/local/lib64/mysql; then
16992                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
16993                         else
16994                                 MYSQL_LIBDIR=/usr/local/lib/mysql
16995                         fi
16996                         MYSQL_BINDIR=/usr/local/bin
16997                 elif test -f /usr/local/include/mysql.h; then
16998                         MYSQL_INCDIR=/usr/local/include
16999                         if test -d /usr/local/lib64; then
17000                                 MYSQL_LIBDIR=/usr/local/lib64
17001                         else
17002                                 MYSQL_LIBDIR=/usr/local/lib
17003                         fi
17004                         MYSQL_BINDIR=/usr/local/bin
17005                 else
17006                    echo "$as_me:$LINENO: result: no" >&5
17007 echo "${ECHO_T}no" >&6
17008                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17009 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17010    { (exit 1); exit 1; }; }
17011                 fi
17012         else
17013                 if test -f $withval/include/mysql/mysql.h; then
17014                         MYSQL_INCDIR=$withval/include/mysql
17015                         if test -d $withval/lib64/mysql; then
17016                                 MYSQL_LIBDIR=$withval/lib64/mysql
17017                         else
17018                                 MYSQL_LIBDIR=$withval/lib/mysql
17019                         fi
17020                         MYSQL_BINDIR=$withval/bin
17021                 elif test -f $withval/include/mysql.h; then
17022                         MYSQL_INCDIR=$withval/include
17023                         if test -d $withval/lib64; then
17024                                 MYSQL_LIBDIR=$withval/lib64
17025                         else
17026                                 MYSQL_LIBDIR=$withval/lib
17027                         fi
17028                         MYSQL_BINDIR=$withval/bin
17029                 else
17030                    echo "$as_me:$LINENO: result: no" >&5
17031 echo "${ECHO_T}no" >&6
17032                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17033 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17034    { (exit 1); exit 1; }; }
17035                 fi
17036         fi
17037     SQL_INCLUDE=-I$MYSQL_INCDIR
17038     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17039     SQL_BINDIR=$MYSQL_BINDIR
17040
17041     cat >>confdefs.h <<\_ACEOF
17042 #define HAVE_MYSQL 1
17043 _ACEOF
17044
17045     cat >>confdefs.h <<\_ACEOF
17046 #define HAVE_EMBEDDED_MYSQL 1
17047 _ACEOF
17048
17049     echo "$as_me:$LINENO: result: yes" >&5
17050 echo "${ECHO_T}yes" >&6
17051     db_found=yes
17052     support_mysql=yes
17053     db_name=MySQL
17054     DB_NAME=mysql
17055
17056   else
17057         echo "$as_me:$LINENO: result: no" >&5
17058 echo "${ECHO_T}no" >&6
17059   fi
17060
17061
17062 fi;
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072 db_found=no
17073 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17074 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17075
17076 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17077 if test "${with_sqlite3+set}" = set; then
17078   withval="$with_sqlite3"
17079
17080   if test "$withval" != "no"; then
17081      if test "$withval" = "yes"; then
17082         if test -f /usr/local/include/sqlite3.h; then
17083            SQLITE_INCDIR=/usr/local/include
17084            if test -d /usr/local/lib64; then
17085               SQLITE_LIBDIR=/usr/local/lib64
17086            else
17087               SQLITE_LIBDIR=/usr/local/lib
17088            fi
17089            SQLITE_BINDIR=/usr/local/bin
17090         elif test -f /usr/include/sqlite3.h; then
17091            SQLITE_INCDIR=/usr/include
17092            if test -d /usr/lib64; then
17093               SQLITE_LIBDIR=/usr/lib64
17094            else
17095               SQLITE_LIBDIR=/usr/lib
17096            fi
17097            SQLITE_BINDIR=/usr/bin
17098         elif test -f $prefix/include/sqlite3.h; then
17099            SQLITE_INCDIR=$prefix/include
17100            if test -d $prefix/lib64; then
17101               SQLITE_LIBDIR=$prefix/lib64
17102            else
17103               SQLITE_LIBDIR=$prefix/lib
17104            fi
17105            SQLITE_BINDIR=$prefix/bin
17106         else
17107            echo "$as_me:$LINENO: result: no" >&5
17108 echo "${ECHO_T}no" >&6
17109            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17110 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17111    { (exit 1); exit 1; }; }
17112         fi
17113      else
17114         if test -f $withval/sqlite3.h; then
17115            SQLITE_INCDIR=$withval
17116            SQLITE_LIBDIR=$withval
17117            SQLITE_BINDIR=$withval
17118         elif test -f $withval/include/sqlite3.h; then
17119            SQLITE_INCDIR=$withval/include
17120            if test -d $withval/lib64; then
17121               SQLITE_LIBDIR=$withval/lib64
17122            else
17123               SQLITE_LIBDIR=$withval/lib
17124            fi
17125            SQLITE_BINDIR=$withval/bin
17126         else
17127            echo "$as_me:$LINENO: result: no" >&5
17128 echo "${ECHO_T}no" >&6
17129            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17130 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17131    { (exit 1); exit 1; }; }
17132         fi
17133      fi
17134      SQL_INCLUDE=-I$SQLITE_INCDIR
17135      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17136      SQL_BINDIR=$SQLITE_BINDIR
17137
17138      cat >>confdefs.h <<\_ACEOF
17139 #define HAVE_SQLITE3 1
17140 _ACEOF
17141
17142      echo "$as_me:$LINENO: result: yes" >&5
17143 echo "${ECHO_T}yes" >&6
17144      db_found=yes
17145      support_sqlite3=yes
17146      db_name=SQLite3
17147      DB_NAME=sqlite3
17148
17149   else
17150      echo "$as_me:$LINENO: result: no" >&5
17151 echo "${ECHO_T}no" >&6
17152   fi
17153
17154 else
17155
17156   echo "$as_me:$LINENO: result: no" >&5
17157 echo "${ECHO_T}no" >&6
17158
17159 fi;
17160
17161
17162
17163
17164
17165
17166
17167 db_found=no
17168 echo "$as_me:$LINENO: checking for SQLite support" >&5
17169 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17170
17171 # Check whether --with-sqlite or --without-sqlite was given.
17172 if test "${with_sqlite+set}" = set; then
17173   withval="$with_sqlite"
17174
17175   if test "$withval" != "no"; then
17176      if test "$withval" = "yes"; then
17177         if test -f /usr/local/include/sqlite.h; then
17178            SQLITE_INCDIR=/usr/local/include
17179            if test -d /usr/local/lib64; then
17180               SQLITE_LIBDIR=/usr/local/lib64
17181            else
17182               SQLITE_LIBDIR=/usr/local/lib
17183            fi
17184            SQLITE_BINDIR=/usr/local/bin
17185         elif test -f /usr/include/sqlite.h; then
17186            SQLITE_INCDIR=/usr/include
17187            if test -d /usr/lib64; then
17188               SQLITE_LIBDIR=/usr/lib64
17189            else
17190               SQLITE_LIBDIR=/usr/lib
17191            fi
17192            SQLITE_BINDIR=/usr/bin
17193         elif test -f $prefix/include/sqlite.h; then
17194            SQLITE_INCDIR=$prefix/include
17195            if test -d $prefix/lib64; then
17196               SQLITE_LIBDIR=$prefix/lib64
17197            else
17198               SQLITE_LIBDIR=$prefix/lib
17199            fi
17200            SQLITE_BINDIR=$prefix/bin
17201         else
17202            echo "$as_me:$LINENO: result: no" >&5
17203 echo "${ECHO_T}no" >&6
17204            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17205 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17206    { (exit 1); exit 1; }; }
17207         fi
17208      else
17209         if test -f $withval/sqlite.h; then
17210            SQLITE_INCDIR=$withval
17211            SQLITE_LIBDIR=$withval
17212            SQLITE_BINDIR=$withval
17213         elif test -f $withval/include/sqlite.h; then
17214            SQLITE_INCDIR=$withval/include
17215            if test -d $withval/lib64; then
17216               SQLITE_LIBDIR=$withval/lib64
17217            else
17218               SQLITE_LIBDIR=$withval/lib
17219            fi
17220            SQLITE_BINDIR=$withval/bin
17221         else
17222            echo "$as_me:$LINENO: result: no" >&5
17223 echo "${ECHO_T}no" >&6
17224            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17225 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17226    { (exit 1); exit 1; }; }
17227         fi
17228      fi
17229      SQL_INCLUDE=-I$SQLITE_INCDIR
17230      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17231      SQL_BINDIR=$SQLITE_BINDIR
17232
17233      cat >>confdefs.h <<\_ACEOF
17234 #define HAVE_SQLITE 1
17235 _ACEOF
17236
17237      echo "$as_me:$LINENO: result: yes" >&5
17238 echo "${ECHO_T}yes" >&6
17239      db_found=yes
17240      support_sqlite=yes
17241      db_name=SQLite
17242      DB_NAME=sqlite
17243
17244   else
17245      echo "$as_me:$LINENO: result: no" >&5
17246 echo "${ECHO_T}no" >&6
17247   fi
17248
17249 else
17250
17251   echo "$as_me:$LINENO: result: no" >&5
17252 echo "${ECHO_T}no" >&6
17253
17254 fi;
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264 cat >>confdefs.h <<\_ACEOF
17265 #define PROTOTYPES 1
17266 _ACEOF
17267
17268
17269 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17270     if test -z "$CCOPTS"; then
17271         CCOPTS='-g -O2 -Wall'
17272     fi
17273     CFLAGS="$CCOPTS"
17274 fi
17275
17276
17277
17278
17279 largefile_support="no"
17280
17281    # Check whether --enable-largefile or --disable-largefile was given.
17282 if test "${enable_largefile+set}" = set; then
17283   enableval="$enable_largefile"
17284
17285 fi;
17286    if test "$enable_largefile" != no; then
17287      if test -n "$ac_tool_prefix"; then
17288   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17289 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17290 echo "$as_me:$LINENO: checking for $ac_word" >&5
17291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17292 if test "${ac_cv_prog_GETCONF+set}" = set; then
17293   echo $ECHO_N "(cached) $ECHO_C" >&6
17294 else
17295   if test -n "$GETCONF"; then
17296   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17297 else
17298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17299 for as_dir in $PATH
17300 do
17301   IFS=$as_save_IFS
17302   test -z "$as_dir" && as_dir=.
17303   for ac_exec_ext in '' $ac_executable_extensions; do
17304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17305     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17307     break 2
17308   fi
17309 done
17310 done
17311
17312 fi
17313 fi
17314 GETCONF=$ac_cv_prog_GETCONF
17315 if test -n "$GETCONF"; then
17316   echo "$as_me:$LINENO: result: $GETCONF" >&5
17317 echo "${ECHO_T}$GETCONF" >&6
17318 else
17319   echo "$as_me:$LINENO: result: no" >&5
17320 echo "${ECHO_T}no" >&6
17321 fi
17322
17323 fi
17324 if test -z "$ac_cv_prog_GETCONF"; then
17325   ac_ct_GETCONF=$GETCONF
17326   # Extract the first word of "getconf", so it can be a program name with args.
17327 set dummy getconf; ac_word=$2
17328 echo "$as_me:$LINENO: checking for $ac_word" >&5
17329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17330 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17331   echo $ECHO_N "(cached) $ECHO_C" >&6
17332 else
17333   if test -n "$ac_ct_GETCONF"; then
17334   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17335 else
17336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17337 for as_dir in $PATH
17338 do
17339   IFS=$as_save_IFS
17340   test -z "$as_dir" && as_dir=.
17341   for ac_exec_ext in '' $ac_executable_extensions; do
17342   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17343     ac_cv_prog_ac_ct_GETCONF="getconf"
17344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17345     break 2
17346   fi
17347 done
17348 done
17349
17350 fi
17351 fi
17352 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17353 if test -n "$ac_ct_GETCONF"; then
17354   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17355 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17356 else
17357   echo "$as_me:$LINENO: result: no" >&5
17358 echo "${ECHO_T}no" >&6
17359 fi
17360
17361   GETCONF=$ac_ct_GETCONF
17362 else
17363   GETCONF="$ac_cv_prog_GETCONF"
17364 fi
17365
17366      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17367 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17368 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17369   echo $ECHO_N "(cached) $ECHO_C" >&6
17370 else
17371   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17372         ac_cv_sys_largefile_CFLAGS=no
17373         case "$host_os" in
17374            # IRIX 6.2 and later require cc -n32.
17375            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17376              if test "$GCC" != yes; then
17377                ac_cv_sys_largefile_CFLAGS=-n32
17378              fi
17379              ac_save_CC="$CC"
17380              CC="$CC $ac_cv_sys_largefile_CFLAGS"
17381              cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h.  */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h.  */
17387
17388 int
17389 main ()
17390 {
17391
17392   ;
17393   return 0;
17394 }
17395 _ACEOF
17396 rm -f conftest.$ac_objext conftest$ac_exeext
17397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17398   (eval $ac_link) 2>conftest.er1
17399   ac_status=$?
17400   grep -v '^ *+' conftest.er1 >conftest.err
17401   rm -f conftest.er1
17402   cat conftest.err >&5
17403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404   (exit $ac_status); } &&
17405          { ac_try='test -z "$ac_c_werror_flag"
17406                          || test ! -s conftest.err'
17407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408   (eval $ac_try) 2>&5
17409   ac_status=$?
17410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411   (exit $ac_status); }; } &&
17412          { ac_try='test -s conftest$ac_exeext'
17413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414   (eval $ac_try) 2>&5
17415   ac_status=$?
17416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417   (exit $ac_status); }; }; then
17418   :
17419 else
17420   echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17422
17423 ac_cv_sys_largefile_CFLAGS=no
17424 fi
17425 rm -f conftest.err conftest.$ac_objext \
17426       conftest$ac_exeext conftest.$ac_ext
17427              CC="$ac_save_CC"
17428            esac
17429       }
17430 fi
17431 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17432 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17433      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17434 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17435 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17436   echo $ECHO_N "(cached) $ECHO_C" >&6
17437 else
17438   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17439         ac_cv_sys_largefile_LDFLAGS=no
17440
17441       }
17442 fi
17443 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17444 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17445      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17446 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17447 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17448   echo $ECHO_N "(cached) $ECHO_C" >&6
17449 else
17450   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17451         ac_cv_sys_largefile_LIBS=no
17452
17453       }
17454 fi
17455 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17456 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17457
17458      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17459        case "$ac_flag" in
17460        no) ;;
17461        -D_FILE_OFFSET_BITS=*) ;;
17462        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17463        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17464        -D?* | -I?*)
17465          case "$ac_flag" in
17466    no) ;;
17467    ?*)
17468      case "$CPPFLAGS" in
17469      '') CPPFLAGS="$ac_flag" ;;
17470      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17471      esac ;;
17472    esac ;;
17473        *)
17474          case "$ac_flag" in
17475    no) ;;
17476    ?*)
17477      case "$CFLAGS" in
17478      '') CFLAGS="$ac_flag" ;;
17479      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17480      esac ;;
17481    esac ;;
17482        esac
17483      done
17484      case "$ac_cv_sys_largefile_LDFLAGS" in
17485    no) ;;
17486    ?*)
17487      case "$LDFLAGS" in
17488      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17489      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17490      esac ;;
17491    esac
17492      case "$ac_cv_sys_largefile_LIBS" in
17493    no) ;;
17494    ?*)
17495      case "$LIBS" in
17496      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17497      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17498      esac ;;
17499    esac
17500      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17501 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17502 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17503   echo $ECHO_N "(cached) $ECHO_C" >&6
17504 else
17505   ac_cv_sys_file_offset_bits=no
17506       ac_cv_sys_file_offset_bits=64
17507       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17508         case "$ac_flag" in
17509         -D_FILE_OFFSET_BITS)
17510           ac_cv_sys_file_offset_bits=1 ;;
17511         -D_FILE_OFFSET_BITS=*)
17512           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17513         esac
17514       done
17515
17516 fi
17517 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17518 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17519    if test "$ac_cv_sys_file_offset_bits" != no; then
17520
17521 cat >>confdefs.h <<_ACEOF
17522 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17523 _ACEOF
17524
17525    fi
17526      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17527 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17528 if test "${ac_cv_sys_largefile_source+set}" = set; then
17529   echo $ECHO_N "(cached) $ECHO_C" >&6
17530 else
17531   ac_cv_sys_largefile_source=no
17532       ac_cv_sys_largefile_source=1
17533       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17534         case "$ac_flag" in
17535         -D_LARGEFILE_SOURCE)
17536           ac_cv_sys_largefile_source=1 ;;
17537         -D_LARGEFILE_SOURCE=*)
17538           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17539         esac
17540       done
17541
17542 fi
17543 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17544 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17545    if test "$ac_cv_sys_largefile_source" != no; then
17546
17547 cat >>confdefs.h <<_ACEOF
17548 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17549 _ACEOF
17550
17551    fi
17552      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17553 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17554 if test "${ac_cv_sys_large_files+set}" = set; then
17555   echo $ECHO_N "(cached) $ECHO_C" >&6
17556 else
17557   ac_cv_sys_large_files=no
17558       ac_cv_sys_large_files=1
17559       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17560         case "$ac_flag" in
17561         -D_LARGE_FILES)
17562           ac_cv_sys_large_files=1 ;;
17563         -D_LARGE_FILES=*)
17564           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17565         esac
17566       done
17567
17568 fi
17569 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17570 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17571    if test "$ac_cv_sys_large_files" != no; then
17572
17573 cat >>confdefs.h <<_ACEOF
17574 #define _LARGE_FILES $ac_cv_sys_large_files
17575 _ACEOF
17576
17577    fi
17578    fi
17579
17580
17581
17582 echo "$as_me:$LINENO: checking for X" >&5
17583 echo $ECHO_N "checking for X... $ECHO_C" >&6
17584
17585
17586 # Check whether --with-x or --without-x was given.
17587 if test "${with_x+set}" = set; then
17588   withval="$with_x"
17589
17590 fi;
17591 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17592 if test "x$with_x" = xno; then
17593   # The user explicitly disabled X.
17594   have_x=disabled
17595 else
17596   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17597     # Both variables are already set.
17598     have_x=yes
17599   else
17600     if test "${ac_cv_have_x+set}" = set; then
17601   echo $ECHO_N "(cached) $ECHO_C" >&6
17602 else
17603   # One or both of the vars are not set, and there is no cached value.
17604 ac_x_includes=no ac_x_libraries=no
17605 rm -fr conftest.dir
17606 if mkdir conftest.dir; then
17607   cd conftest.dir
17608   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17609   cat >Imakefile <<'_ACEOF'
17610 acfindx:
17611         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17612 _ACEOF
17613   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17614     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17615     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17616     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17617     for ac_extension in a so sl; do
17618       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17619          test -f $ac_im_libdir/libX11.$ac_extension; then
17620         ac_im_usrlibdir=$ac_im_libdir; break
17621       fi
17622     done
17623     # Screen out bogus values from the imake configuration.  They are
17624     # bogus both because they are the default anyway, and because
17625     # using them would break gcc on systems where it needs fixed includes.
17626     case $ac_im_incroot in
17627         /usr/include) ;;
17628         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17629     esac
17630     case $ac_im_usrlibdir in
17631         /usr/lib | /lib) ;;
17632         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17633     esac
17634   fi
17635   cd ..
17636   rm -fr conftest.dir
17637 fi
17638
17639 # Standard set of common directories for X headers.
17640 # Check X11 before X11Rn because it is often a symlink to the current release.
17641 ac_x_header_dirs='
17642 /usr/X11/include
17643 /usr/X11R6/include
17644 /usr/X11R5/include
17645 /usr/X11R4/include
17646
17647 /usr/include/X11
17648 /usr/include/X11R6
17649 /usr/include/X11R5
17650 /usr/include/X11R4
17651
17652 /usr/local/X11/include
17653 /usr/local/X11R6/include
17654 /usr/local/X11R5/include
17655 /usr/local/X11R4/include
17656
17657 /usr/local/include/X11
17658 /usr/local/include/X11R6
17659 /usr/local/include/X11R5
17660 /usr/local/include/X11R4
17661
17662 /usr/X386/include
17663 /usr/x386/include
17664 /usr/XFree86/include/X11
17665
17666 /usr/include
17667 /usr/local/include
17668 /usr/unsupported/include
17669 /usr/athena/include
17670 /usr/local/x11r5/include
17671 /usr/lpp/Xamples/include
17672
17673 /usr/openwin/include
17674 /usr/openwin/share/include'
17675
17676 if test "$ac_x_includes" = no; then
17677   # Guess where to find include files, by looking for Intrinsic.h.
17678   # First, try using that file with no special directory specified.
17679   cat >conftest.$ac_ext <<_ACEOF
17680 /* confdefs.h.  */
17681 _ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h.  */
17685 #include <X11/Intrinsic.h>
17686 _ACEOF
17687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17688   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17689   ac_status=$?
17690   grep -v '^ *+' conftest.er1 >conftest.err
17691   rm -f conftest.er1
17692   cat conftest.err >&5
17693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); } >/dev/null; then
17695   if test -s conftest.err; then
17696     ac_cpp_err=$ac_c_preproc_warn_flag
17697     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17698   else
17699     ac_cpp_err=
17700   fi
17701 else
17702   ac_cpp_err=yes
17703 fi
17704 if test -z "$ac_cpp_err"; then
17705   # We can compile using X headers with no special include directory.
17706 ac_x_includes=
17707 else
17708   echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17710
17711   for ac_dir in $ac_x_header_dirs; do
17712   if test -r "$ac_dir/X11/Intrinsic.h"; then
17713     ac_x_includes=$ac_dir
17714     break
17715   fi
17716 done
17717 fi
17718 rm -f conftest.err conftest.$ac_ext
17719 fi # $ac_x_includes = no
17720
17721 if test "$ac_x_libraries" = no; then
17722   # Check for the libraries.
17723   # See if we find them without any special options.
17724   # Don't add to $LIBS permanently.
17725   ac_save_LIBS=$LIBS
17726   LIBS="-lXt $LIBS"
17727   cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h.  */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h.  */
17733 #include <X11/Intrinsic.h>
17734 int
17735 main ()
17736 {
17737 XtMalloc (0)
17738   ;
17739   return 0;
17740 }
17741 _ACEOF
17742 rm -f conftest.$ac_objext conftest$ac_exeext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17744   (eval $ac_link) 2>conftest.er1
17745   ac_status=$?
17746   grep -v '^ *+' conftest.er1 >conftest.err
17747   rm -f conftest.er1
17748   cat conftest.err >&5
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); } &&
17751          { ac_try='test -z "$ac_c_werror_flag"
17752                          || test ! -s conftest.err'
17753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754   (eval $ac_try) 2>&5
17755   ac_status=$?
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); }; } &&
17758          { ac_try='test -s conftest$ac_exeext'
17759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760   (eval $ac_try) 2>&5
17761   ac_status=$?
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); }; }; then
17764   LIBS=$ac_save_LIBS
17765 # We can link X programs with no special library path.
17766 ac_x_libraries=
17767 else
17768   echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17770
17771 LIBS=$ac_save_LIBS
17772 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17773 do
17774   # Don't even attempt the hair of trying to link an X program!
17775   for ac_extension in a so sl; do
17776     if test -r $ac_dir/libXt.$ac_extension; then
17777       ac_x_libraries=$ac_dir
17778       break 2
17779     fi
17780   done
17781 done
17782 fi
17783 rm -f conftest.err conftest.$ac_objext \
17784       conftest$ac_exeext conftest.$ac_ext
17785 fi # $ac_x_libraries = no
17786
17787 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
17788   # Didn't find X anywhere.  Cache the known absence of X.
17789   ac_cv_have_x="have_x=no"
17790 else
17791   # Record where we found X for the cache.
17792   ac_cv_have_x="have_x=yes \
17793                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
17794 fi
17795 fi
17796
17797   fi
17798   eval "$ac_cv_have_x"
17799 fi # $with_x != no
17800
17801 if test "$have_x" != yes; then
17802   echo "$as_me:$LINENO: result: $have_x" >&5
17803 echo "${ECHO_T}$have_x" >&6
17804   no_x=yes
17805 else
17806   # If each of the values was on the command line, it overrides each guess.
17807   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17808   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17809   # Update the cache value to reflect the command line values.
17810   ac_cv_have_x="have_x=yes \
17811                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17812   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17813 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
17814 fi
17815
17816 if test "$no_x" = yes; then
17817   # Not all programs may use this symbol, but it does not hurt to define it.
17818
17819 cat >>confdefs.h <<\_ACEOF
17820 #define X_DISPLAY_MISSING 1
17821 _ACEOF
17822
17823   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17824 else
17825   if test -n "$x_includes"; then
17826     X_CFLAGS="$X_CFLAGS -I$x_includes"
17827   fi
17828
17829   # It would also be nice to do this for all -L options, not just this one.
17830   if test -n "$x_libraries"; then
17831     X_LIBS="$X_LIBS -L$x_libraries"
17832     # For Solaris; some versions of Sun CC require a space after -R and
17833     # others require no space.  Words are not sufficient . . . .
17834     case `(uname -sr) 2>/dev/null` in
17835     "SunOS 5"*)
17836       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17837 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17838       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17839       cat >conftest.$ac_ext <<_ACEOF
17840 /* confdefs.h.  */
17841 _ACEOF
17842 cat confdefs.h >>conftest.$ac_ext
17843 cat >>conftest.$ac_ext <<_ACEOF
17844 /* end confdefs.h.  */
17845
17846 int
17847 main ()
17848 {
17849
17850   ;
17851   return 0;
17852 }
17853 _ACEOF
17854 rm -f conftest.$ac_objext conftest$ac_exeext
17855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17856   (eval $ac_link) 2>conftest.er1
17857   ac_status=$?
17858   grep -v '^ *+' conftest.er1 >conftest.err
17859   rm -f conftest.er1
17860   cat conftest.err >&5
17861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862   (exit $ac_status); } &&
17863          { ac_try='test -z "$ac_c_werror_flag"
17864                          || test ! -s conftest.err'
17865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866   (eval $ac_try) 2>&5
17867   ac_status=$?
17868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869   (exit $ac_status); }; } &&
17870          { ac_try='test -s conftest$ac_exeext'
17871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872   (eval $ac_try) 2>&5
17873   ac_status=$?
17874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875   (exit $ac_status); }; }; then
17876   ac_R_nospace=yes
17877 else
17878   echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17880
17881 ac_R_nospace=no
17882 fi
17883 rm -f conftest.err conftest.$ac_objext \
17884       conftest$ac_exeext conftest.$ac_ext
17885       if test $ac_R_nospace = yes; then
17886         echo "$as_me:$LINENO: result: no" >&5
17887 echo "${ECHO_T}no" >&6
17888         X_LIBS="$X_LIBS -R$x_libraries"
17889       else
17890         LIBS="$ac_xsave_LIBS -R $x_libraries"
17891         cat >conftest.$ac_ext <<_ACEOF
17892 /* confdefs.h.  */
17893 _ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h.  */
17897
17898 int
17899 main ()
17900 {
17901
17902   ;
17903   return 0;
17904 }
17905 _ACEOF
17906 rm -f conftest.$ac_objext conftest$ac_exeext
17907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17908   (eval $ac_link) 2>conftest.er1
17909   ac_status=$?
17910   grep -v '^ *+' conftest.er1 >conftest.err
17911   rm -f conftest.er1
17912   cat conftest.err >&5
17913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914   (exit $ac_status); } &&
17915          { ac_try='test -z "$ac_c_werror_flag"
17916                          || test ! -s conftest.err'
17917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918   (eval $ac_try) 2>&5
17919   ac_status=$?
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); }; } &&
17922          { ac_try='test -s conftest$ac_exeext'
17923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924   (eval $ac_try) 2>&5
17925   ac_status=$?
17926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927   (exit $ac_status); }; }; then
17928   ac_R_space=yes
17929 else
17930   echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17932
17933 ac_R_space=no
17934 fi
17935 rm -f conftest.err conftest.$ac_objext \
17936       conftest$ac_exeext conftest.$ac_ext
17937         if test $ac_R_space = yes; then
17938           echo "$as_me:$LINENO: result: yes" >&5
17939 echo "${ECHO_T}yes" >&6
17940           X_LIBS="$X_LIBS -R $x_libraries"
17941         else
17942           echo "$as_me:$LINENO: result: neither works" >&5
17943 echo "${ECHO_T}neither works" >&6
17944         fi
17945       fi
17946       LIBS=$ac_xsave_LIBS
17947     esac
17948   fi
17949
17950   # Check for system-dependent libraries X programs must link with.
17951   # Do this before checking for the system-independent R6 libraries
17952   # (-lICE), since we may need -lsocket or whatever for X linking.
17953
17954   if test "$ISC" = yes; then
17955     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17956   else
17957     # Martyn Johnson says this is needed for Ultrix, if the X
17958     # libraries were built with DECnet support.  And Karl Berry says
17959     # the Alpha needs dnet_stub (dnet does not exist).
17960     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17961     cat >conftest.$ac_ext <<_ACEOF
17962 /* confdefs.h.  */
17963 _ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h.  */
17967
17968 /* Override any gcc2 internal prototype to avoid an error.  */
17969 #ifdef __cplusplus
17970 extern "C"
17971 #endif
17972 /* We use char because int might match the return type of a gcc2
17973    builtin and then its argument prototype would still apply.  */
17974 char XOpenDisplay ();
17975 int
17976 main ()
17977 {
17978 XOpenDisplay ();
17979   ;
17980   return 0;
17981 }
17982 _ACEOF
17983 rm -f conftest.$ac_objext conftest$ac_exeext
17984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17985   (eval $ac_link) 2>conftest.er1
17986   ac_status=$?
17987   grep -v '^ *+' conftest.er1 >conftest.err
17988   rm -f conftest.er1
17989   cat conftest.err >&5
17990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991   (exit $ac_status); } &&
17992          { ac_try='test -z "$ac_c_werror_flag"
17993                          || test ! -s conftest.err'
17994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995   (eval $ac_try) 2>&5
17996   ac_status=$?
17997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998   (exit $ac_status); }; } &&
17999          { ac_try='test -s conftest$ac_exeext'
18000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001   (eval $ac_try) 2>&5
18002   ac_status=$?
18003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004   (exit $ac_status); }; }; then
18005   :
18006 else
18007   echo "$as_me: failed program was:" >&5
18008 sed 's/^/| /' conftest.$ac_ext >&5
18009
18010 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18011 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18012 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18013   echo $ECHO_N "(cached) $ECHO_C" >&6
18014 else
18015   ac_check_lib_save_LIBS=$LIBS
18016 LIBS="-ldnet  $LIBS"
18017 cat >conftest.$ac_ext <<_ACEOF
18018 /* confdefs.h.  */
18019 _ACEOF
18020 cat confdefs.h >>conftest.$ac_ext
18021 cat >>conftest.$ac_ext <<_ACEOF
18022 /* end confdefs.h.  */
18023
18024 /* Override any gcc2 internal prototype to avoid an error.  */
18025 #ifdef __cplusplus
18026 extern "C"
18027 #endif
18028 /* We use char because int might match the return type of a gcc2
18029    builtin and then its argument prototype would still apply.  */
18030 char dnet_ntoa ();
18031 int
18032 main ()
18033 {
18034 dnet_ntoa ();
18035   ;
18036   return 0;
18037 }
18038 _ACEOF
18039 rm -f conftest.$ac_objext conftest$ac_exeext
18040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18041   (eval $ac_link) 2>conftest.er1
18042   ac_status=$?
18043   grep -v '^ *+' conftest.er1 >conftest.err
18044   rm -f conftest.er1
18045   cat conftest.err >&5
18046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047   (exit $ac_status); } &&
18048          { ac_try='test -z "$ac_c_werror_flag"
18049                          || test ! -s conftest.err'
18050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051   (eval $ac_try) 2>&5
18052   ac_status=$?
18053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054   (exit $ac_status); }; } &&
18055          { ac_try='test -s conftest$ac_exeext'
18056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057   (eval $ac_try) 2>&5
18058   ac_status=$?
18059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060   (exit $ac_status); }; }; then
18061   ac_cv_lib_dnet_dnet_ntoa=yes
18062 else
18063   echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18065
18066 ac_cv_lib_dnet_dnet_ntoa=no
18067 fi
18068 rm -f conftest.err conftest.$ac_objext \
18069       conftest$ac_exeext conftest.$ac_ext
18070 LIBS=$ac_check_lib_save_LIBS
18071 fi
18072 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18073 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18074 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18075   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18076 fi
18077
18078     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18079       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18080 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18081 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18082   echo $ECHO_N "(cached) $ECHO_C" >&6
18083 else
18084   ac_check_lib_save_LIBS=$LIBS
18085 LIBS="-ldnet_stub  $LIBS"
18086 cat >conftest.$ac_ext <<_ACEOF
18087 /* confdefs.h.  */
18088 _ACEOF
18089 cat confdefs.h >>conftest.$ac_ext
18090 cat >>conftest.$ac_ext <<_ACEOF
18091 /* end confdefs.h.  */
18092
18093 /* Override any gcc2 internal prototype to avoid an error.  */
18094 #ifdef __cplusplus
18095 extern "C"
18096 #endif
18097 /* We use char because int might match the return type of a gcc2
18098    builtin and then its argument prototype would still apply.  */
18099 char dnet_ntoa ();
18100 int
18101 main ()
18102 {
18103 dnet_ntoa ();
18104   ;
18105   return 0;
18106 }
18107 _ACEOF
18108 rm -f conftest.$ac_objext conftest$ac_exeext
18109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18110   (eval $ac_link) 2>conftest.er1
18111   ac_status=$?
18112   grep -v '^ *+' conftest.er1 >conftest.err
18113   rm -f conftest.er1
18114   cat conftest.err >&5
18115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); } &&
18117          { ac_try='test -z "$ac_c_werror_flag"
18118                          || test ! -s conftest.err'
18119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120   (eval $ac_try) 2>&5
18121   ac_status=$?
18122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123   (exit $ac_status); }; } &&
18124          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18130   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18131 else
18132   echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18134
18135 ac_cv_lib_dnet_stub_dnet_ntoa=no
18136 fi
18137 rm -f conftest.err conftest.$ac_objext \
18138       conftest$ac_exeext conftest.$ac_ext
18139 LIBS=$ac_check_lib_save_LIBS
18140 fi
18141 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18142 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18143 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18144   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18145 fi
18146
18147     fi
18148 fi
18149 rm -f conftest.err conftest.$ac_objext \
18150       conftest$ac_exeext conftest.$ac_ext
18151     LIBS="$ac_xsave_LIBS"
18152
18153     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18154     # to get the SysV transport functions.
18155     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18156     # needs -lnsl.
18157     # The nsl library prevents programs from opening the X display
18158     # on Irix 5.2, according to T.E. Dickey.
18159     # The functions gethostbyname, getservbyname, and inet_addr are
18160     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18161     echo "$as_me:$LINENO: checking for gethostbyname" >&5
18162 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18163 if test "${ac_cv_func_gethostbyname+set}" = set; then
18164   echo $ECHO_N "(cached) $ECHO_C" >&6
18165 else
18166   cat >conftest.$ac_ext <<_ACEOF
18167 /* confdefs.h.  */
18168 _ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h.  */
18172 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18174 #define gethostbyname innocuous_gethostbyname
18175
18176 /* System header to define __stub macros and hopefully few prototypes,
18177     which can conflict with char gethostbyname (); below.
18178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18179     <limits.h> exists even on freestanding compilers.  */
18180
18181 #ifdef __STDC__
18182 # include <limits.h>
18183 #else
18184 # include <assert.h>
18185 #endif
18186
18187 #undef gethostbyname
18188
18189 /* Override any gcc2 internal prototype to avoid an error.  */
18190 #ifdef __cplusplus
18191 extern "C"
18192 {
18193 #endif
18194 /* We use char because int might match the return type of a gcc2
18195    builtin and then its argument prototype would still apply.  */
18196 char gethostbyname ();
18197 /* The GNU C library defines this for functions which it implements
18198     to always fail with ENOSYS.  Some functions are actually named
18199     something starting with __ and the normal name is an alias.  */
18200 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18201 choke me
18202 #else
18203 char (*f) () = gethostbyname;
18204 #endif
18205 #ifdef __cplusplus
18206 }
18207 #endif
18208
18209 int
18210 main ()
18211 {
18212 return f != gethostbyname;
18213   ;
18214   return 0;
18215 }
18216 _ACEOF
18217 rm -f conftest.$ac_objext conftest$ac_exeext
18218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18219   (eval $ac_link) 2>conftest.er1
18220   ac_status=$?
18221   grep -v '^ *+' conftest.er1 >conftest.err
18222   rm -f conftest.er1
18223   cat conftest.err >&5
18224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225   (exit $ac_status); } &&
18226          { ac_try='test -z "$ac_c_werror_flag"
18227                          || test ! -s conftest.err'
18228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229   (eval $ac_try) 2>&5
18230   ac_status=$?
18231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232   (exit $ac_status); }; } &&
18233          { ac_try='test -s conftest$ac_exeext'
18234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235   (eval $ac_try) 2>&5
18236   ac_status=$?
18237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238   (exit $ac_status); }; }; then
18239   ac_cv_func_gethostbyname=yes
18240 else
18241   echo "$as_me: failed program was:" >&5
18242 sed 's/^/| /' conftest.$ac_ext >&5
18243
18244 ac_cv_func_gethostbyname=no
18245 fi
18246 rm -f conftest.err conftest.$ac_objext \
18247       conftest$ac_exeext conftest.$ac_ext
18248 fi
18249 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18250 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18251
18252     if test $ac_cv_func_gethostbyname = no; then
18253       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18254 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18255 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18256   echo $ECHO_N "(cached) $ECHO_C" >&6
18257 else
18258   ac_check_lib_save_LIBS=$LIBS
18259 LIBS="-lnsl  $LIBS"
18260 cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h.  */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h.  */
18266
18267 /* Override any gcc2 internal prototype to avoid an error.  */
18268 #ifdef __cplusplus
18269 extern "C"
18270 #endif
18271 /* We use char because int might match the return type of a gcc2
18272    builtin and then its argument prototype would still apply.  */
18273 char gethostbyname ();
18274 int
18275 main ()
18276 {
18277 gethostbyname ();
18278   ;
18279   return 0;
18280 }
18281 _ACEOF
18282 rm -f conftest.$ac_objext conftest$ac_exeext
18283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18284   (eval $ac_link) 2>conftest.er1
18285   ac_status=$?
18286   grep -v '^ *+' conftest.er1 >conftest.err
18287   rm -f conftest.er1
18288   cat conftest.err >&5
18289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290   (exit $ac_status); } &&
18291          { ac_try='test -z "$ac_c_werror_flag"
18292                          || test ! -s conftest.err'
18293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294   (eval $ac_try) 2>&5
18295   ac_status=$?
18296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297   (exit $ac_status); }; } &&
18298          { ac_try='test -s conftest$ac_exeext'
18299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300   (eval $ac_try) 2>&5
18301   ac_status=$?
18302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303   (exit $ac_status); }; }; then
18304   ac_cv_lib_nsl_gethostbyname=yes
18305 else
18306   echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18308
18309 ac_cv_lib_nsl_gethostbyname=no
18310 fi
18311 rm -f conftest.err conftest.$ac_objext \
18312       conftest$ac_exeext conftest.$ac_ext
18313 LIBS=$ac_check_lib_save_LIBS
18314 fi
18315 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18316 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18317 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18318   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18319 fi
18320
18321       if test $ac_cv_lib_nsl_gethostbyname = no; then
18322         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18323 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18324 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18325   echo $ECHO_N "(cached) $ECHO_C" >&6
18326 else
18327   ac_check_lib_save_LIBS=$LIBS
18328 LIBS="-lbsd  $LIBS"
18329 cat >conftest.$ac_ext <<_ACEOF
18330 /* confdefs.h.  */
18331 _ACEOF
18332 cat confdefs.h >>conftest.$ac_ext
18333 cat >>conftest.$ac_ext <<_ACEOF
18334 /* end confdefs.h.  */
18335
18336 /* Override any gcc2 internal prototype to avoid an error.  */
18337 #ifdef __cplusplus
18338 extern "C"
18339 #endif
18340 /* We use char because int might match the return type of a gcc2
18341    builtin and then its argument prototype would still apply.  */
18342 char gethostbyname ();
18343 int
18344 main ()
18345 {
18346 gethostbyname ();
18347   ;
18348   return 0;
18349 }
18350 _ACEOF
18351 rm -f conftest.$ac_objext conftest$ac_exeext
18352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18353   (eval $ac_link) 2>conftest.er1
18354   ac_status=$?
18355   grep -v '^ *+' conftest.er1 >conftest.err
18356   rm -f conftest.er1
18357   cat conftest.err >&5
18358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359   (exit $ac_status); } &&
18360          { ac_try='test -z "$ac_c_werror_flag"
18361                          || test ! -s conftest.err'
18362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363   (eval $ac_try) 2>&5
18364   ac_status=$?
18365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366   (exit $ac_status); }; } &&
18367          { ac_try='test -s conftest$ac_exeext'
18368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369   (eval $ac_try) 2>&5
18370   ac_status=$?
18371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372   (exit $ac_status); }; }; then
18373   ac_cv_lib_bsd_gethostbyname=yes
18374 else
18375   echo "$as_me: failed program was:" >&5
18376 sed 's/^/| /' conftest.$ac_ext >&5
18377
18378 ac_cv_lib_bsd_gethostbyname=no
18379 fi
18380 rm -f conftest.err conftest.$ac_objext \
18381       conftest$ac_exeext conftest.$ac_ext
18382 LIBS=$ac_check_lib_save_LIBS
18383 fi
18384 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18385 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18386 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18387   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18388 fi
18389
18390       fi
18391     fi
18392
18393     # lieder@skyler.mavd.honeywell.com says without -lsocket,
18394     # socket/setsockopt and other routines are undefined under SCO ODT
18395     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18396     # on later versions), says Simon Leinen: it contains gethostby*
18397     # variants that don't use the name server (or something).  -lsocket
18398     # must be given before -lnsl if both are needed.  We assume that
18399     # if connect needs -lnsl, so does gethostbyname.
18400     echo "$as_me:$LINENO: checking for connect" >&5
18401 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18402 if test "${ac_cv_func_connect+set}" = set; then
18403   echo $ECHO_N "(cached) $ECHO_C" >&6
18404 else
18405   cat >conftest.$ac_ext <<_ACEOF
18406 /* confdefs.h.  */
18407 _ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h.  */
18411 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18413 #define connect innocuous_connect
18414
18415 /* System header to define __stub macros and hopefully few prototypes,
18416     which can conflict with char connect (); below.
18417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18418     <limits.h> exists even on freestanding compilers.  */
18419
18420 #ifdef __STDC__
18421 # include <limits.h>
18422 #else
18423 # include <assert.h>
18424 #endif
18425
18426 #undef connect
18427
18428 /* Override any gcc2 internal prototype to avoid an error.  */
18429 #ifdef __cplusplus
18430 extern "C"
18431 {
18432 #endif
18433 /* We use char because int might match the return type of a gcc2
18434    builtin and then its argument prototype would still apply.  */
18435 char connect ();
18436 /* The GNU C library defines this for functions which it implements
18437     to always fail with ENOSYS.  Some functions are actually named
18438     something starting with __ and the normal name is an alias.  */
18439 #if defined (__stub_connect) || defined (__stub___connect)
18440 choke me
18441 #else
18442 char (*f) () = connect;
18443 #endif
18444 #ifdef __cplusplus
18445 }
18446 #endif
18447
18448 int
18449 main ()
18450 {
18451 return f != connect;
18452   ;
18453   return 0;
18454 }
18455 _ACEOF
18456 rm -f conftest.$ac_objext conftest$ac_exeext
18457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18458   (eval $ac_link) 2>conftest.er1
18459   ac_status=$?
18460   grep -v '^ *+' conftest.er1 >conftest.err
18461   rm -f conftest.er1
18462   cat conftest.err >&5
18463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464   (exit $ac_status); } &&
18465          { ac_try='test -z "$ac_c_werror_flag"
18466                          || test ! -s conftest.err'
18467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468   (eval $ac_try) 2>&5
18469   ac_status=$?
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); }; } &&
18472          { ac_try='test -s conftest$ac_exeext'
18473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474   (eval $ac_try) 2>&5
18475   ac_status=$?
18476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477   (exit $ac_status); }; }; then
18478   ac_cv_func_connect=yes
18479 else
18480   echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18482
18483 ac_cv_func_connect=no
18484 fi
18485 rm -f conftest.err conftest.$ac_objext \
18486       conftest$ac_exeext conftest.$ac_ext
18487 fi
18488 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18489 echo "${ECHO_T}$ac_cv_func_connect" >&6
18490
18491     if test $ac_cv_func_connect = no; then
18492       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18493 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18494 if test "${ac_cv_lib_socket_connect+set}" = set; then
18495   echo $ECHO_N "(cached) $ECHO_C" >&6
18496 else
18497   ac_check_lib_save_LIBS=$LIBS
18498 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18499 cat >conftest.$ac_ext <<_ACEOF
18500 /* confdefs.h.  */
18501 _ACEOF
18502 cat confdefs.h >>conftest.$ac_ext
18503 cat >>conftest.$ac_ext <<_ACEOF
18504 /* end confdefs.h.  */
18505
18506 /* Override any gcc2 internal prototype to avoid an error.  */
18507 #ifdef __cplusplus
18508 extern "C"
18509 #endif
18510 /* We use char because int might match the return type of a gcc2
18511    builtin and then its argument prototype would still apply.  */
18512 char connect ();
18513 int
18514 main ()
18515 {
18516 connect ();
18517   ;
18518   return 0;
18519 }
18520 _ACEOF
18521 rm -f conftest.$ac_objext conftest$ac_exeext
18522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18523   (eval $ac_link) 2>conftest.er1
18524   ac_status=$?
18525   grep -v '^ *+' conftest.er1 >conftest.err
18526   rm -f conftest.er1
18527   cat conftest.err >&5
18528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529   (exit $ac_status); } &&
18530          { ac_try='test -z "$ac_c_werror_flag"
18531                          || test ! -s conftest.err'
18532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533   (eval $ac_try) 2>&5
18534   ac_status=$?
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); }; } &&
18537          { ac_try='test -s conftest$ac_exeext'
18538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539   (eval $ac_try) 2>&5
18540   ac_status=$?
18541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542   (exit $ac_status); }; }; then
18543   ac_cv_lib_socket_connect=yes
18544 else
18545   echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18547
18548 ac_cv_lib_socket_connect=no
18549 fi
18550 rm -f conftest.err conftest.$ac_objext \
18551       conftest$ac_exeext conftest.$ac_ext
18552 LIBS=$ac_check_lib_save_LIBS
18553 fi
18554 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18555 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18556 if test $ac_cv_lib_socket_connect = yes; then
18557   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18558 fi
18559
18560     fi
18561
18562     # Guillermo Gomez says -lposix is necessary on A/UX.
18563     echo "$as_me:$LINENO: checking for remove" >&5
18564 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18565 if test "${ac_cv_func_remove+set}" = set; then
18566   echo $ECHO_N "(cached) $ECHO_C" >&6
18567 else
18568   cat >conftest.$ac_ext <<_ACEOF
18569 /* confdefs.h.  */
18570 _ACEOF
18571 cat confdefs.h >>conftest.$ac_ext
18572 cat >>conftest.$ac_ext <<_ACEOF
18573 /* end confdefs.h.  */
18574 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18576 #define remove innocuous_remove
18577
18578 /* System header to define __stub macros and hopefully few prototypes,
18579     which can conflict with char remove (); below.
18580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18581     <limits.h> exists even on freestanding compilers.  */
18582
18583 #ifdef __STDC__
18584 # include <limits.h>
18585 #else
18586 # include <assert.h>
18587 #endif
18588
18589 #undef remove
18590
18591 /* Override any gcc2 internal prototype to avoid an error.  */
18592 #ifdef __cplusplus
18593 extern "C"
18594 {
18595 #endif
18596 /* We use char because int might match the return type of a gcc2
18597    builtin and then its argument prototype would still apply.  */
18598 char remove ();
18599 /* The GNU C library defines this for functions which it implements
18600     to always fail with ENOSYS.  Some functions are actually named
18601     something starting with __ and the normal name is an alias.  */
18602 #if defined (__stub_remove) || defined (__stub___remove)
18603 choke me
18604 #else
18605 char (*f) () = remove;
18606 #endif
18607 #ifdef __cplusplus
18608 }
18609 #endif
18610
18611 int
18612 main ()
18613 {
18614 return f != remove;
18615   ;
18616   return 0;
18617 }
18618 _ACEOF
18619 rm -f conftest.$ac_objext conftest$ac_exeext
18620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18621   (eval $ac_link) 2>conftest.er1
18622   ac_status=$?
18623   grep -v '^ *+' conftest.er1 >conftest.err
18624   rm -f conftest.er1
18625   cat conftest.err >&5
18626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627   (exit $ac_status); } &&
18628          { ac_try='test -z "$ac_c_werror_flag"
18629                          || test ! -s conftest.err'
18630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631   (eval $ac_try) 2>&5
18632   ac_status=$?
18633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634   (exit $ac_status); }; } &&
18635          { ac_try='test -s conftest$ac_exeext'
18636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637   (eval $ac_try) 2>&5
18638   ac_status=$?
18639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640   (exit $ac_status); }; }; then
18641   ac_cv_func_remove=yes
18642 else
18643   echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18645
18646 ac_cv_func_remove=no
18647 fi
18648 rm -f conftest.err conftest.$ac_objext \
18649       conftest$ac_exeext conftest.$ac_ext
18650 fi
18651 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18652 echo "${ECHO_T}$ac_cv_func_remove" >&6
18653
18654     if test $ac_cv_func_remove = no; then
18655       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18656 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18657 if test "${ac_cv_lib_posix_remove+set}" = set; then
18658   echo $ECHO_N "(cached) $ECHO_C" >&6
18659 else
18660   ac_check_lib_save_LIBS=$LIBS
18661 LIBS="-lposix  $LIBS"
18662 cat >conftest.$ac_ext <<_ACEOF
18663 /* confdefs.h.  */
18664 _ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h.  */
18668
18669 /* Override any gcc2 internal prototype to avoid an error.  */
18670 #ifdef __cplusplus
18671 extern "C"
18672 #endif
18673 /* We use char because int might match the return type of a gcc2
18674    builtin and then its argument prototype would still apply.  */
18675 char remove ();
18676 int
18677 main ()
18678 {
18679 remove ();
18680   ;
18681   return 0;
18682 }
18683 _ACEOF
18684 rm -f conftest.$ac_objext conftest$ac_exeext
18685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18686   (eval $ac_link) 2>conftest.er1
18687   ac_status=$?
18688   grep -v '^ *+' conftest.er1 >conftest.err
18689   rm -f conftest.er1
18690   cat conftest.err >&5
18691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692   (exit $ac_status); } &&
18693          { ac_try='test -z "$ac_c_werror_flag"
18694                          || test ! -s conftest.err'
18695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696   (eval $ac_try) 2>&5
18697   ac_status=$?
18698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699   (exit $ac_status); }; } &&
18700          { ac_try='test -s conftest$ac_exeext'
18701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702   (eval $ac_try) 2>&5
18703   ac_status=$?
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); }; }; then
18706   ac_cv_lib_posix_remove=yes
18707 else
18708   echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18710
18711 ac_cv_lib_posix_remove=no
18712 fi
18713 rm -f conftest.err conftest.$ac_objext \
18714       conftest$ac_exeext conftest.$ac_ext
18715 LIBS=$ac_check_lib_save_LIBS
18716 fi
18717 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18718 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18719 if test $ac_cv_lib_posix_remove = yes; then
18720   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18721 fi
18722
18723     fi
18724
18725     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18726     echo "$as_me:$LINENO: checking for shmat" >&5
18727 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18728 if test "${ac_cv_func_shmat+set}" = set; then
18729   echo $ECHO_N "(cached) $ECHO_C" >&6
18730 else
18731   cat >conftest.$ac_ext <<_ACEOF
18732 /* confdefs.h.  */
18733 _ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h.  */
18737 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18739 #define shmat innocuous_shmat
18740
18741 /* System header to define __stub macros and hopefully few prototypes,
18742     which can conflict with char shmat (); below.
18743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18744     <limits.h> exists even on freestanding compilers.  */
18745
18746 #ifdef __STDC__
18747 # include <limits.h>
18748 #else
18749 # include <assert.h>
18750 #endif
18751
18752 #undef shmat
18753
18754 /* Override any gcc2 internal prototype to avoid an error.  */
18755 #ifdef __cplusplus
18756 extern "C"
18757 {
18758 #endif
18759 /* We use char because int might match the return type of a gcc2
18760    builtin and then its argument prototype would still apply.  */
18761 char shmat ();
18762 /* The GNU C library defines this for functions which it implements
18763     to always fail with ENOSYS.  Some functions are actually named
18764     something starting with __ and the normal name is an alias.  */
18765 #if defined (__stub_shmat) || defined (__stub___shmat)
18766 choke me
18767 #else
18768 char (*f) () = shmat;
18769 #endif
18770 #ifdef __cplusplus
18771 }
18772 #endif
18773
18774 int
18775 main ()
18776 {
18777 return f != shmat;
18778   ;
18779   return 0;
18780 }
18781 _ACEOF
18782 rm -f conftest.$ac_objext conftest$ac_exeext
18783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18784   (eval $ac_link) 2>conftest.er1
18785   ac_status=$?
18786   grep -v '^ *+' conftest.er1 >conftest.err
18787   rm -f conftest.er1
18788   cat conftest.err >&5
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); } &&
18791          { ac_try='test -z "$ac_c_werror_flag"
18792                          || test ! -s conftest.err'
18793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794   (eval $ac_try) 2>&5
18795   ac_status=$?
18796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797   (exit $ac_status); }; } &&
18798          { ac_try='test -s conftest$ac_exeext'
18799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800   (eval $ac_try) 2>&5
18801   ac_status=$?
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); }; }; then
18804   ac_cv_func_shmat=yes
18805 else
18806   echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18808
18809 ac_cv_func_shmat=no
18810 fi
18811 rm -f conftest.err conftest.$ac_objext \
18812       conftest$ac_exeext conftest.$ac_ext
18813 fi
18814 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18815 echo "${ECHO_T}$ac_cv_func_shmat" >&6
18816
18817     if test $ac_cv_func_shmat = no; then
18818       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18819 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18820 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18821   echo $ECHO_N "(cached) $ECHO_C" >&6
18822 else
18823   ac_check_lib_save_LIBS=$LIBS
18824 LIBS="-lipc  $LIBS"
18825 cat >conftest.$ac_ext <<_ACEOF
18826 /* confdefs.h.  */
18827 _ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h.  */
18831
18832 /* Override any gcc2 internal prototype to avoid an error.  */
18833 #ifdef __cplusplus
18834 extern "C"
18835 #endif
18836 /* We use char because int might match the return type of a gcc2
18837    builtin and then its argument prototype would still apply.  */
18838 char shmat ();
18839 int
18840 main ()
18841 {
18842 shmat ();
18843   ;
18844   return 0;
18845 }
18846 _ACEOF
18847 rm -f conftest.$ac_objext conftest$ac_exeext
18848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18849   (eval $ac_link) 2>conftest.er1
18850   ac_status=$?
18851   grep -v '^ *+' conftest.er1 >conftest.err
18852   rm -f conftest.er1
18853   cat conftest.err >&5
18854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855   (exit $ac_status); } &&
18856          { ac_try='test -z "$ac_c_werror_flag"
18857                          || test ! -s conftest.err'
18858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859   (eval $ac_try) 2>&5
18860   ac_status=$?
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); }; } &&
18863          { ac_try='test -s conftest$ac_exeext'
18864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865   (eval $ac_try) 2>&5
18866   ac_status=$?
18867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868   (exit $ac_status); }; }; then
18869   ac_cv_lib_ipc_shmat=yes
18870 else
18871   echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18873
18874 ac_cv_lib_ipc_shmat=no
18875 fi
18876 rm -f conftest.err conftest.$ac_objext \
18877       conftest$ac_exeext conftest.$ac_ext
18878 LIBS=$ac_check_lib_save_LIBS
18879 fi
18880 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18881 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18882 if test $ac_cv_lib_ipc_shmat = yes; then
18883   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18884 fi
18885
18886     fi
18887   fi
18888
18889   # Check for libraries that X11R6 Xt/Xaw programs need.
18890   ac_save_LDFLAGS=$LDFLAGS
18891   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18892   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18893   # check for ICE first), but we must link in the order -lSM -lICE or
18894   # we get undefined symbols.  So assume we have SM if we have ICE.
18895   # These have to be linked with before -lX11, unlike the other
18896   # libraries we check for below, so use a different variable.
18897   # John Interrante, Karl Berry
18898   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18899 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18900 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18901   echo $ECHO_N "(cached) $ECHO_C" >&6
18902 else
18903   ac_check_lib_save_LIBS=$LIBS
18904 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18905 cat >conftest.$ac_ext <<_ACEOF
18906 /* confdefs.h.  */
18907 _ACEOF
18908 cat confdefs.h >>conftest.$ac_ext
18909 cat >>conftest.$ac_ext <<_ACEOF
18910 /* end confdefs.h.  */
18911
18912 /* Override any gcc2 internal prototype to avoid an error.  */
18913 #ifdef __cplusplus
18914 extern "C"
18915 #endif
18916 /* We use char because int might match the return type of a gcc2
18917    builtin and then its argument prototype would still apply.  */
18918 char IceConnectionNumber ();
18919 int
18920 main ()
18921 {
18922 IceConnectionNumber ();
18923   ;
18924   return 0;
18925 }
18926 _ACEOF
18927 rm -f conftest.$ac_objext conftest$ac_exeext
18928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18929   (eval $ac_link) 2>conftest.er1
18930   ac_status=$?
18931   grep -v '^ *+' conftest.er1 >conftest.err
18932   rm -f conftest.er1
18933   cat conftest.err >&5
18934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935   (exit $ac_status); } &&
18936          { ac_try='test -z "$ac_c_werror_flag"
18937                          || test ! -s conftest.err'
18938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939   (eval $ac_try) 2>&5
18940   ac_status=$?
18941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942   (exit $ac_status); }; } &&
18943          { ac_try='test -s conftest$ac_exeext'
18944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945   (eval $ac_try) 2>&5
18946   ac_status=$?
18947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948   (exit $ac_status); }; }; then
18949   ac_cv_lib_ICE_IceConnectionNumber=yes
18950 else
18951   echo "$as_me: failed program was:" >&5
18952 sed 's/^/| /' conftest.$ac_ext >&5
18953
18954 ac_cv_lib_ICE_IceConnectionNumber=no
18955 fi
18956 rm -f conftest.err conftest.$ac_objext \
18957       conftest$ac_exeext conftest.$ac_ext
18958 LIBS=$ac_check_lib_save_LIBS
18959 fi
18960 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18961 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18962 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18963   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18964 fi
18965
18966   LDFLAGS=$ac_save_LDFLAGS
18967
18968 fi
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998 for ac_header in \
18999         assert.h \
19000         fcntl.h \
19001         grp.h \
19002         pwd.h \
19003         libc.h \
19004         limits.h \
19005         stdarg.h \
19006         stdlib.h \
19007         stdint.h \
19008         string.h \
19009         termios.h \
19010         termcap.h \
19011         term.h \
19012         unistd.h \
19013         sys/bitypes.h \
19014         sys/byteorder.h \
19015         sys/ioctl.h \
19016         sys/select.h \
19017         sys/sockio.h \
19018         sys/time.h \
19019         sys/socket.h \
19020         arpa/nameser.h \
19021         resolv.h \
19022         mtio.h \
19023         sys/mtio.h \
19024         sys/tape.h \
19025         regex.h \
19026
19027 do
19028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19030   echo "$as_me:$LINENO: checking for $ac_header" >&5
19031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19033   echo $ECHO_N "(cached) $ECHO_C" >&6
19034 fi
19035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19037 else
19038   # Is the header compilable?
19039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19041 cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h.  */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h.  */
19047 $ac_includes_default
19048 #include <$ac_header>
19049 _ACEOF
19050 rm -f conftest.$ac_objext
19051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19052   (eval $ac_compile) 2>conftest.er1
19053   ac_status=$?
19054   grep -v '^ *+' conftest.er1 >conftest.err
19055   rm -f conftest.er1
19056   cat conftest.err >&5
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); } &&
19059          { ac_try='test -z "$ac_c_werror_flag"
19060                          || test ! -s conftest.err'
19061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19062   (eval $ac_try) 2>&5
19063   ac_status=$?
19064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065   (exit $ac_status); }; } &&
19066          { ac_try='test -s conftest.$ac_objext'
19067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068   (eval $ac_try) 2>&5
19069   ac_status=$?
19070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071   (exit $ac_status); }; }; then
19072   ac_header_compiler=yes
19073 else
19074   echo "$as_me: failed program was:" >&5
19075 sed 's/^/| /' conftest.$ac_ext >&5
19076
19077 ac_header_compiler=no
19078 fi
19079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19080 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19081 echo "${ECHO_T}$ac_header_compiler" >&6
19082
19083 # Is the header present?
19084 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19086 cat >conftest.$ac_ext <<_ACEOF
19087 /* confdefs.h.  */
19088 _ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h.  */
19092 #include <$ac_header>
19093 _ACEOF
19094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19096   ac_status=$?
19097   grep -v '^ *+' conftest.er1 >conftest.err
19098   rm -f conftest.er1
19099   cat conftest.err >&5
19100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101   (exit $ac_status); } >/dev/null; then
19102   if test -s conftest.err; then
19103     ac_cpp_err=$ac_c_preproc_warn_flag
19104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19105   else
19106     ac_cpp_err=
19107   fi
19108 else
19109   ac_cpp_err=yes
19110 fi
19111 if test -z "$ac_cpp_err"; then
19112   ac_header_preproc=yes
19113 else
19114   echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19116
19117   ac_header_preproc=no
19118 fi
19119 rm -f conftest.err conftest.$ac_ext
19120 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19121 echo "${ECHO_T}$ac_header_preproc" >&6
19122
19123 # So?  What about this header?
19124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19125   yes:no: )
19126     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19130     ac_header_preproc=yes
19131     ;;
19132   no:yes:* )
19133     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19135     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19136 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19137     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19139     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19140 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19143     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19145     (
19146       cat <<\_ASBOX
19147 ## ------------------------------------------ ##
19148 ## Report this to the AC_PACKAGE_NAME lists.  ##
19149 ## ------------------------------------------ ##
19150 _ASBOX
19151     ) |
19152       sed "s/^/$as_me: WARNING:     /" >&2
19153     ;;
19154 esac
19155 echo "$as_me:$LINENO: checking for $ac_header" >&5
19156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19158   echo $ECHO_N "(cached) $ECHO_C" >&6
19159 else
19160   eval "$as_ac_Header=\$ac_header_preproc"
19161 fi
19162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19164
19165 fi
19166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19167   cat >>confdefs.h <<_ACEOF
19168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19169 _ACEOF
19170
19171 fi
19172
19173 done
19174
19175 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19176 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19177 if test "${ac_cv_header_stdc+set}" = set; then
19178   echo $ECHO_N "(cached) $ECHO_C" >&6
19179 else
19180   cat >conftest.$ac_ext <<_ACEOF
19181 /* confdefs.h.  */
19182 _ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h.  */
19186 #include <stdlib.h>
19187 #include <stdarg.h>
19188 #include <string.h>
19189 #include <float.h>
19190
19191 int
19192 main ()
19193 {
19194
19195   ;
19196   return 0;
19197 }
19198 _ACEOF
19199 rm -f conftest.$ac_objext
19200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19201   (eval $ac_compile) 2>conftest.er1
19202   ac_status=$?
19203   grep -v '^ *+' conftest.er1 >conftest.err
19204   rm -f conftest.er1
19205   cat conftest.err >&5
19206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); } &&
19208          { ac_try='test -z "$ac_c_werror_flag"
19209                          || test ! -s conftest.err'
19210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211   (eval $ac_try) 2>&5
19212   ac_status=$?
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); }; } &&
19215          { ac_try='test -s conftest.$ac_objext'
19216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217   (eval $ac_try) 2>&5
19218   ac_status=$?
19219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220   (exit $ac_status); }; }; then
19221   ac_cv_header_stdc=yes
19222 else
19223   echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19225
19226 ac_cv_header_stdc=no
19227 fi
19228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19229
19230 if test $ac_cv_header_stdc = yes; then
19231   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19232   cat >conftest.$ac_ext <<_ACEOF
19233 /* confdefs.h.  */
19234 _ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h.  */
19238 #include <string.h>
19239
19240 _ACEOF
19241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19242   $EGREP "memchr" >/dev/null 2>&1; then
19243   :
19244 else
19245   ac_cv_header_stdc=no
19246 fi
19247 rm -f conftest*
19248
19249 fi
19250
19251 if test $ac_cv_header_stdc = yes; then
19252   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19253   cat >conftest.$ac_ext <<_ACEOF
19254 /* confdefs.h.  */
19255 _ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h.  */
19259 #include <stdlib.h>
19260
19261 _ACEOF
19262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19263   $EGREP "free" >/dev/null 2>&1; then
19264   :
19265 else
19266   ac_cv_header_stdc=no
19267 fi
19268 rm -f conftest*
19269
19270 fi
19271
19272 if test $ac_cv_header_stdc = yes; then
19273   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19274   if test "$cross_compiling" = yes; then
19275   :
19276 else
19277   cat >conftest.$ac_ext <<_ACEOF
19278 /* confdefs.h.  */
19279 _ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h.  */
19283 #include <ctype.h>
19284 #if ((' ' & 0x0FF) == 0x020)
19285 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19286 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19287 #else
19288 # define ISLOWER(c) \
19289                    (('a' <= (c) && (c) <= 'i') \
19290                      || ('j' <= (c) && (c) <= 'r') \
19291                      || ('s' <= (c) && (c) <= 'z'))
19292 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19293 #endif
19294
19295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19296 int
19297 main ()
19298 {
19299   int i;
19300   for (i = 0; i < 256; i++)
19301     if (XOR (islower (i), ISLOWER (i))
19302         || toupper (i) != TOUPPER (i))
19303       exit(2);
19304   exit (0);
19305 }
19306 _ACEOF
19307 rm -f conftest$ac_exeext
19308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19309   (eval $ac_link) 2>&5
19310   ac_status=$?
19311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314   (eval $ac_try) 2>&5
19315   ac_status=$?
19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317   (exit $ac_status); }; }; then
19318   :
19319 else
19320   echo "$as_me: program exited with status $ac_status" >&5
19321 echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19323
19324 ( exit $ac_status )
19325 ac_cv_header_stdc=no
19326 fi
19327 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19328 fi
19329 fi
19330 fi
19331 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19332 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19333 if test $ac_cv_header_stdc = yes; then
19334
19335 cat >>confdefs.h <<\_ACEOF
19336 #define STDC_HEADERS 1
19337 _ACEOF
19338
19339 fi
19340
19341 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19342 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19343 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19344   echo $ECHO_N "(cached) $ECHO_C" >&6
19345 else
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 <sys/types.h>
19353 int
19354 main ()
19355 {
19356 return makedev(0, 0);
19357   ;
19358   return 0;
19359 }
19360 _ACEOF
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19363   (eval $ac_link) 2>conftest.er1
19364   ac_status=$?
19365   grep -v '^ *+' conftest.er1 >conftest.err
19366   rm -f conftest.er1
19367   cat conftest.err >&5
19368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369   (exit $ac_status); } &&
19370          { ac_try='test -z "$ac_c_werror_flag"
19371                          || test ! -s conftest.err'
19372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373   (eval $ac_try) 2>&5
19374   ac_status=$?
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); }; } &&
19377          { ac_try='test -s conftest$ac_exeext'
19378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379   (eval $ac_try) 2>&5
19380   ac_status=$?
19381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382   (exit $ac_status); }; }; then
19383   ac_cv_header_sys_types_h_makedev=yes
19384 else
19385   echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19387
19388 ac_cv_header_sys_types_h_makedev=no
19389 fi
19390 rm -f conftest.err conftest.$ac_objext \
19391       conftest$ac_exeext conftest.$ac_ext
19392
19393 fi
19394 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19395 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19396
19397 if test $ac_cv_header_sys_types_h_makedev = no; then
19398 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19399   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19400 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19401 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19402   echo $ECHO_N "(cached) $ECHO_C" >&6
19403 fi
19404 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19405 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19406 else
19407   # Is the header compilable?
19408 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19409 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19410 cat >conftest.$ac_ext <<_ACEOF
19411 /* confdefs.h.  */
19412 _ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h.  */
19416 $ac_includes_default
19417 #include <sys/mkdev.h>
19418 _ACEOF
19419 rm -f conftest.$ac_objext
19420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19421   (eval $ac_compile) 2>conftest.er1
19422   ac_status=$?
19423   grep -v '^ *+' conftest.er1 >conftest.err
19424   rm -f conftest.er1
19425   cat conftest.err >&5
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); } &&
19428          { ac_try='test -z "$ac_c_werror_flag"
19429                          || test ! -s conftest.err'
19430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431   (eval $ac_try) 2>&5
19432   ac_status=$?
19433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434   (exit $ac_status); }; } &&
19435          { ac_try='test -s conftest.$ac_objext'
19436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437   (eval $ac_try) 2>&5
19438   ac_status=$?
19439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440   (exit $ac_status); }; }; then
19441   ac_header_compiler=yes
19442 else
19443   echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19445
19446 ac_header_compiler=no
19447 fi
19448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19450 echo "${ECHO_T}$ac_header_compiler" >&6
19451
19452 # Is the header present?
19453 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19454 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19455 cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h.  */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h.  */
19461 #include <sys/mkdev.h>
19462 _ACEOF
19463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19465   ac_status=$?
19466   grep -v '^ *+' conftest.er1 >conftest.err
19467   rm -f conftest.er1
19468   cat conftest.err >&5
19469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470   (exit $ac_status); } >/dev/null; then
19471   if test -s conftest.err; then
19472     ac_cpp_err=$ac_c_preproc_warn_flag
19473     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19474   else
19475     ac_cpp_err=
19476   fi
19477 else
19478   ac_cpp_err=yes
19479 fi
19480 if test -z "$ac_cpp_err"; then
19481   ac_header_preproc=yes
19482 else
19483   echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486   ac_header_preproc=no
19487 fi
19488 rm -f conftest.err conftest.$ac_ext
19489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19490 echo "${ECHO_T}$ac_header_preproc" >&6
19491
19492 # So?  What about this header?
19493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19494   yes:no: )
19495     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19496 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19497     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19498 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19499     ac_header_preproc=yes
19500     ;;
19501   no:yes:* )
19502     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19503 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19504     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
19505 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
19506     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19507 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19508     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
19509 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19510     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19511 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19512     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19513 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19514     (
19515       cat <<\_ASBOX
19516 ## ------------------------------------------ ##
19517 ## Report this to the AC_PACKAGE_NAME lists.  ##
19518 ## ------------------------------------------ ##
19519 _ASBOX
19520     ) |
19521       sed "s/^/$as_me: WARNING:     /" >&2
19522     ;;
19523 esac
19524 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19525 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19526 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19527   echo $ECHO_N "(cached) $ECHO_C" >&6
19528 else
19529   ac_cv_header_sys_mkdev_h=$ac_header_preproc
19530 fi
19531 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19532 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19533
19534 fi
19535 if test $ac_cv_header_sys_mkdev_h = yes; then
19536
19537 cat >>confdefs.h <<\_ACEOF
19538 #define MAJOR_IN_MKDEV 1
19539 _ACEOF
19540
19541 fi
19542
19543
19544
19545   if test $ac_cv_header_sys_mkdev_h = no; then
19546     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19547   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19548 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19549 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19550   echo $ECHO_N "(cached) $ECHO_C" >&6
19551 fi
19552 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19553 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19554 else
19555   # Is the header compilable?
19556 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19557 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19558 cat >conftest.$ac_ext <<_ACEOF
19559 /* confdefs.h.  */
19560 _ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h.  */
19564 $ac_includes_default
19565 #include <sys/sysmacros.h>
19566 _ACEOF
19567 rm -f conftest.$ac_objext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19569   (eval $ac_compile) 2>conftest.er1
19570   ac_status=$?
19571   grep -v '^ *+' conftest.er1 >conftest.err
19572   rm -f conftest.er1
19573   cat conftest.err >&5
19574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575   (exit $ac_status); } &&
19576          { ac_try='test -z "$ac_c_werror_flag"
19577                          || test ! -s conftest.err'
19578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579   (eval $ac_try) 2>&5
19580   ac_status=$?
19581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582   (exit $ac_status); }; } &&
19583          { ac_try='test -s conftest.$ac_objext'
19584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585   (eval $ac_try) 2>&5
19586   ac_status=$?
19587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588   (exit $ac_status); }; }; then
19589   ac_header_compiler=yes
19590 else
19591   echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19593
19594 ac_header_compiler=no
19595 fi
19596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19598 echo "${ECHO_T}$ac_header_compiler" >&6
19599
19600 # Is the header present?
19601 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19602 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19603 cat >conftest.$ac_ext <<_ACEOF
19604 /* confdefs.h.  */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h.  */
19609 #include <sys/sysmacros.h>
19610 _ACEOF
19611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19612   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19613   ac_status=$?
19614   grep -v '^ *+' conftest.er1 >conftest.err
19615   rm -f conftest.er1
19616   cat conftest.err >&5
19617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618   (exit $ac_status); } >/dev/null; then
19619   if test -s conftest.err; then
19620     ac_cpp_err=$ac_c_preproc_warn_flag
19621     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19622   else
19623     ac_cpp_err=
19624   fi
19625 else
19626   ac_cpp_err=yes
19627 fi
19628 if test -z "$ac_cpp_err"; then
19629   ac_header_preproc=yes
19630 else
19631   echo "$as_me: failed program was:" >&5
19632 sed 's/^/| /' conftest.$ac_ext >&5
19633
19634   ac_header_preproc=no
19635 fi
19636 rm -f conftest.err conftest.$ac_ext
19637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19638 echo "${ECHO_T}$ac_header_preproc" >&6
19639
19640 # So?  What about this header?
19641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19642   yes:no: )
19643     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19644 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19645     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19646 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19647     ac_header_preproc=yes
19648     ;;
19649   no:yes:* )
19650     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19651 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19652     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
19653 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
19654     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19655 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19656     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
19657 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19658     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19659 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19660     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19661 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19662     (
19663       cat <<\_ASBOX
19664 ## ------------------------------------------ ##
19665 ## Report this to the AC_PACKAGE_NAME lists.  ##
19666 ## ------------------------------------------ ##
19667 _ASBOX
19668     ) |
19669       sed "s/^/$as_me: WARNING:     /" >&2
19670     ;;
19671 esac
19672 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19673 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19674 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19675   echo $ECHO_N "(cached) $ECHO_C" >&6
19676 else
19677   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19678 fi
19679 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19680 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19681
19682 fi
19683 if test $ac_cv_header_sys_sysmacros_h = yes; then
19684
19685 cat >>confdefs.h <<\_ACEOF
19686 #define MAJOR_IN_SYSMACROS 1
19687 _ACEOF
19688
19689 fi
19690
19691
19692   fi
19693 fi
19694
19695
19696
19697
19698
19699
19700 ac_header_dirent=no
19701 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19702   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19703 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19704 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19706   echo $ECHO_N "(cached) $ECHO_C" >&6
19707 else
19708   cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h.  */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h.  */
19714 #include <sys/types.h>
19715 #include <$ac_hdr>
19716
19717 int
19718 main ()
19719 {
19720 if ((DIR *) 0)
19721 return 0;
19722   ;
19723   return 0;
19724 }
19725 _ACEOF
19726 rm -f conftest.$ac_objext
19727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19728   (eval $ac_compile) 2>conftest.er1
19729   ac_status=$?
19730   grep -v '^ *+' conftest.er1 >conftest.err
19731   rm -f conftest.er1
19732   cat conftest.err >&5
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); } &&
19735          { ac_try='test -z "$ac_c_werror_flag"
19736                          || test ! -s conftest.err'
19737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738   (eval $ac_try) 2>&5
19739   ac_status=$?
19740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741   (exit $ac_status); }; } &&
19742          { ac_try='test -s conftest.$ac_objext'
19743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744   (eval $ac_try) 2>&5
19745   ac_status=$?
19746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); }; }; then
19748   eval "$as_ac_Header=yes"
19749 else
19750   echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19752
19753 eval "$as_ac_Header=no"
19754 fi
19755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19756 fi
19757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19760   cat >>confdefs.h <<_ACEOF
19761 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19762 _ACEOF
19763
19764 ac_header_dirent=$ac_hdr; break
19765 fi
19766
19767 done
19768 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19769 if test $ac_header_dirent = dirent.h; then
19770   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19771 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19772 if test "${ac_cv_search_opendir+set}" = set; then
19773   echo $ECHO_N "(cached) $ECHO_C" >&6
19774 else
19775   ac_func_search_save_LIBS=$LIBS
19776 ac_cv_search_opendir=no
19777 cat >conftest.$ac_ext <<_ACEOF
19778 /* confdefs.h.  */
19779 _ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h.  */
19783
19784 /* Override any gcc2 internal prototype to avoid an error.  */
19785 #ifdef __cplusplus
19786 extern "C"
19787 #endif
19788 /* We use char because int might match the return type of a gcc2
19789    builtin and then its argument prototype would still apply.  */
19790 char opendir ();
19791 int
19792 main ()
19793 {
19794 opendir ();
19795   ;
19796   return 0;
19797 }
19798 _ACEOF
19799 rm -f conftest.$ac_objext conftest$ac_exeext
19800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19801   (eval $ac_link) 2>conftest.er1
19802   ac_status=$?
19803   grep -v '^ *+' conftest.er1 >conftest.err
19804   rm -f conftest.er1
19805   cat conftest.err >&5
19806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807   (exit $ac_status); } &&
19808          { ac_try='test -z "$ac_c_werror_flag"
19809                          || test ! -s conftest.err'
19810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811   (eval $ac_try) 2>&5
19812   ac_status=$?
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); }; } &&
19815          { ac_try='test -s conftest$ac_exeext'
19816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817   (eval $ac_try) 2>&5
19818   ac_status=$?
19819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820   (exit $ac_status); }; }; then
19821   ac_cv_search_opendir="none required"
19822 else
19823   echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19825
19826 fi
19827 rm -f conftest.err conftest.$ac_objext \
19828       conftest$ac_exeext conftest.$ac_ext
19829 if test "$ac_cv_search_opendir" = no; then
19830   for ac_lib in dir; do
19831     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19832     cat >conftest.$ac_ext <<_ACEOF
19833 /* confdefs.h.  */
19834 _ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h.  */
19838
19839 /* Override any gcc2 internal prototype to avoid an error.  */
19840 #ifdef __cplusplus
19841 extern "C"
19842 #endif
19843 /* We use char because int might match the return type of a gcc2
19844    builtin and then its argument prototype would still apply.  */
19845 char opendir ();
19846 int
19847 main ()
19848 {
19849 opendir ();
19850   ;
19851   return 0;
19852 }
19853 _ACEOF
19854 rm -f conftest.$ac_objext conftest$ac_exeext
19855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19856   (eval $ac_link) 2>conftest.er1
19857   ac_status=$?
19858   grep -v '^ *+' conftest.er1 >conftest.err
19859   rm -f conftest.er1
19860   cat conftest.err >&5
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); } &&
19863          { ac_try='test -z "$ac_c_werror_flag"
19864                          || test ! -s conftest.err'
19865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866   (eval $ac_try) 2>&5
19867   ac_status=$?
19868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869   (exit $ac_status); }; } &&
19870          { ac_try='test -s conftest$ac_exeext'
19871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872   (eval $ac_try) 2>&5
19873   ac_status=$?
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); }; }; then
19876   ac_cv_search_opendir="-l$ac_lib"
19877 break
19878 else
19879   echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19881
19882 fi
19883 rm -f conftest.err conftest.$ac_objext \
19884       conftest$ac_exeext conftest.$ac_ext
19885   done
19886 fi
19887 LIBS=$ac_func_search_save_LIBS
19888 fi
19889 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19890 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19891 if test "$ac_cv_search_opendir" != no; then
19892   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19893
19894 fi
19895
19896 else
19897   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19898 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19899 if test "${ac_cv_search_opendir+set}" = set; then
19900   echo $ECHO_N "(cached) $ECHO_C" >&6
19901 else
19902   ac_func_search_save_LIBS=$LIBS
19903 ac_cv_search_opendir=no
19904 cat >conftest.$ac_ext <<_ACEOF
19905 /* confdefs.h.  */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h.  */
19910
19911 /* Override any gcc2 internal prototype to avoid an error.  */
19912 #ifdef __cplusplus
19913 extern "C"
19914 #endif
19915 /* We use char because int might match the return type of a gcc2
19916    builtin and then its argument prototype would still apply.  */
19917 char opendir ();
19918 int
19919 main ()
19920 {
19921 opendir ();
19922   ;
19923   return 0;
19924 }
19925 _ACEOF
19926 rm -f conftest.$ac_objext conftest$ac_exeext
19927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19928   (eval $ac_link) 2>conftest.er1
19929   ac_status=$?
19930   grep -v '^ *+' conftest.er1 >conftest.err
19931   rm -f conftest.er1
19932   cat conftest.err >&5
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); } &&
19935          { ac_try='test -z "$ac_c_werror_flag"
19936                          || test ! -s conftest.err'
19937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938   (eval $ac_try) 2>&5
19939   ac_status=$?
19940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); }; } &&
19942          { ac_try='test -s conftest$ac_exeext'
19943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944   (eval $ac_try) 2>&5
19945   ac_status=$?
19946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947   (exit $ac_status); }; }; then
19948   ac_cv_search_opendir="none required"
19949 else
19950   echo "$as_me: failed program was:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19952
19953 fi
19954 rm -f conftest.err conftest.$ac_objext \
19955       conftest$ac_exeext conftest.$ac_ext
19956 if test "$ac_cv_search_opendir" = no; then
19957   for ac_lib in x; do
19958     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19959     cat >conftest.$ac_ext <<_ACEOF
19960 /* confdefs.h.  */
19961 _ACEOF
19962 cat confdefs.h >>conftest.$ac_ext
19963 cat >>conftest.$ac_ext <<_ACEOF
19964 /* end confdefs.h.  */
19965
19966 /* Override any gcc2 internal prototype to avoid an error.  */
19967 #ifdef __cplusplus
19968 extern "C"
19969 #endif
19970 /* We use char because int might match the return type of a gcc2
19971    builtin and then its argument prototype would still apply.  */
19972 char opendir ();
19973 int
19974 main ()
19975 {
19976 opendir ();
19977   ;
19978   return 0;
19979 }
19980 _ACEOF
19981 rm -f conftest.$ac_objext conftest$ac_exeext
19982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19983   (eval $ac_link) 2>conftest.er1
19984   ac_status=$?
19985   grep -v '^ *+' conftest.er1 >conftest.err
19986   rm -f conftest.er1
19987   cat conftest.err >&5
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); } &&
19990          { ac_try='test -z "$ac_c_werror_flag"
19991                          || test ! -s conftest.err'
19992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993   (eval $ac_try) 2>&5
19994   ac_status=$?
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); }; } &&
19997          { ac_try='test -s conftest$ac_exeext'
19998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999   (eval $ac_try) 2>&5
20000   ac_status=$?
20001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002   (exit $ac_status); }; }; then
20003   ac_cv_search_opendir="-l$ac_lib"
20004 break
20005 else
20006   echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20008
20009 fi
20010 rm -f conftest.err conftest.$ac_objext \
20011       conftest$ac_exeext conftest.$ac_ext
20012   done
20013 fi
20014 LIBS=$ac_func_search_save_LIBS
20015 fi
20016 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20017 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20018 if test "$ac_cv_search_opendir" != no; then
20019   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20020
20021 fi
20022
20023 fi
20024
20025 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20026 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20027 if test "${ac_cv_header_stat_broken+set}" = set; then
20028   echo $ECHO_N "(cached) $ECHO_C" >&6
20029 else
20030   cat >conftest.$ac_ext <<_ACEOF
20031 /* confdefs.h.  */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h.  */
20036 #include <sys/types.h>
20037 #include <sys/stat.h>
20038
20039 #if defined(S_ISBLK) && defined(S_IFDIR)
20040 # if S_ISBLK (S_IFDIR)
20041 You lose.
20042 # endif
20043 #endif
20044
20045 #if defined(S_ISBLK) && defined(S_IFCHR)
20046 # if S_ISBLK (S_IFCHR)
20047 You lose.
20048 # endif
20049 #endif
20050
20051 #if defined(S_ISLNK) && defined(S_IFREG)
20052 # if S_ISLNK (S_IFREG)
20053 You lose.
20054 # endif
20055 #endif
20056
20057 #if defined(S_ISSOCK) && defined(S_IFREG)
20058 # if S_ISSOCK (S_IFREG)
20059 You lose.
20060 # endif
20061 #endif
20062
20063 _ACEOF
20064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20065   $EGREP "You lose" >/dev/null 2>&1; then
20066   ac_cv_header_stat_broken=yes
20067 else
20068   ac_cv_header_stat_broken=no
20069 fi
20070 rm -f conftest*
20071
20072 fi
20073 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20074 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20075 if test $ac_cv_header_stat_broken = yes; then
20076
20077 cat >>confdefs.h <<\_ACEOF
20078 #define STAT_MACROS_BROKEN 1
20079 _ACEOF
20080
20081 fi
20082
20083 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20084 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20085 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20086   echo $ECHO_N "(cached) $ECHO_C" >&6
20087 else
20088   cat >conftest.$ac_ext <<_ACEOF
20089 /* confdefs.h.  */
20090 _ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h.  */
20094 #include <sys/types.h>
20095 #include <sys/wait.h>
20096 #ifndef WEXITSTATUS
20097 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20098 #endif
20099 #ifndef WIFEXITED
20100 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20101 #endif
20102
20103 int
20104 main ()
20105 {
20106   int s;
20107   wait (&s);
20108   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20109   ;
20110   return 0;
20111 }
20112 _ACEOF
20113 rm -f conftest.$ac_objext
20114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20115   (eval $ac_compile) 2>conftest.er1
20116   ac_status=$?
20117   grep -v '^ *+' conftest.er1 >conftest.err
20118   rm -f conftest.er1
20119   cat conftest.err >&5
20120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121   (exit $ac_status); } &&
20122          { ac_try='test -z "$ac_c_werror_flag"
20123                          || test ! -s conftest.err'
20124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125   (eval $ac_try) 2>&5
20126   ac_status=$?
20127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128   (exit $ac_status); }; } &&
20129          { ac_try='test -s conftest.$ac_objext'
20130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131   (eval $ac_try) 2>&5
20132   ac_status=$?
20133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134   (exit $ac_status); }; }; then
20135   ac_cv_header_sys_wait_h=yes
20136 else
20137   echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20139
20140 ac_cv_header_sys_wait_h=no
20141 fi
20142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20143 fi
20144 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20145 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20146 if test $ac_cv_header_sys_wait_h = yes; then
20147
20148 cat >>confdefs.h <<\_ACEOF
20149 #define HAVE_SYS_WAIT_H 1
20150 _ACEOF
20151
20152 fi
20153
20154 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20155 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20156 if test "${ac_cv_header_time+set}" = set; then
20157   echo $ECHO_N "(cached) $ECHO_C" >&6
20158 else
20159   cat >conftest.$ac_ext <<_ACEOF
20160 /* confdefs.h.  */
20161 _ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h.  */
20165 #include <sys/types.h>
20166 #include <sys/time.h>
20167 #include <time.h>
20168
20169 int
20170 main ()
20171 {
20172 if ((struct tm *) 0)
20173 return 0;
20174   ;
20175   return 0;
20176 }
20177 _ACEOF
20178 rm -f conftest.$ac_objext
20179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20180   (eval $ac_compile) 2>conftest.er1
20181   ac_status=$?
20182   grep -v '^ *+' conftest.er1 >conftest.err
20183   rm -f conftest.er1
20184   cat conftest.err >&5
20185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186   (exit $ac_status); } &&
20187          { ac_try='test -z "$ac_c_werror_flag"
20188                          || test ! -s conftest.err'
20189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190   (eval $ac_try) 2>&5
20191   ac_status=$?
20192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193   (exit $ac_status); }; } &&
20194          { ac_try='test -s conftest.$ac_objext'
20195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196   (eval $ac_try) 2>&5
20197   ac_status=$?
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); }; }; then
20200   ac_cv_header_time=yes
20201 else
20202   echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20204
20205 ac_cv_header_time=no
20206 fi
20207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20208 fi
20209 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20210 echo "${ECHO_T}$ac_cv_header_time" >&6
20211 if test $ac_cv_header_time = yes; then
20212
20213 cat >>confdefs.h <<\_ACEOF
20214 #define TIME_WITH_SYS_TIME 1
20215 _ACEOF
20216
20217 fi
20218
20219
20220 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20221 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20222 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20223   echo $ECHO_N "(cached) $ECHO_C" >&6
20224 else
20225   cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h.  */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h.  */
20231 $ac_includes_default
20232 int
20233 main ()
20234 {
20235 static struct stat ac_aggr;
20236 if (ac_aggr.st_blksize)
20237 return 0;
20238   ;
20239   return 0;
20240 }
20241 _ACEOF
20242 rm -f conftest.$ac_objext
20243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20244   (eval $ac_compile) 2>conftest.er1
20245   ac_status=$?
20246   grep -v '^ *+' conftest.er1 >conftest.err
20247   rm -f conftest.er1
20248   cat conftest.err >&5
20249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250   (exit $ac_status); } &&
20251          { ac_try='test -z "$ac_c_werror_flag"
20252                          || test ! -s conftest.err'
20253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254   (eval $ac_try) 2>&5
20255   ac_status=$?
20256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257   (exit $ac_status); }; } &&
20258          { ac_try='test -s conftest.$ac_objext'
20259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20260   (eval $ac_try) 2>&5
20261   ac_status=$?
20262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263   (exit $ac_status); }; }; then
20264   ac_cv_member_struct_stat_st_blksize=yes
20265 else
20266   echo "$as_me: failed program was:" >&5
20267 sed 's/^/| /' conftest.$ac_ext >&5
20268
20269 cat >conftest.$ac_ext <<_ACEOF
20270 /* confdefs.h.  */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h.  */
20275 $ac_includes_default
20276 int
20277 main ()
20278 {
20279 static struct stat ac_aggr;
20280 if (sizeof ac_aggr.st_blksize)
20281 return 0;
20282   ;
20283   return 0;
20284 }
20285 _ACEOF
20286 rm -f conftest.$ac_objext
20287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20288   (eval $ac_compile) 2>conftest.er1
20289   ac_status=$?
20290   grep -v '^ *+' conftest.er1 >conftest.err
20291   rm -f conftest.er1
20292   cat conftest.err >&5
20293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294   (exit $ac_status); } &&
20295          { ac_try='test -z "$ac_c_werror_flag"
20296                          || test ! -s conftest.err'
20297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298   (eval $ac_try) 2>&5
20299   ac_status=$?
20300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); }; } &&
20302          { ac_try='test -s conftest.$ac_objext'
20303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304   (eval $ac_try) 2>&5
20305   ac_status=$?
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); }; }; then
20308   ac_cv_member_struct_stat_st_blksize=yes
20309 else
20310   echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20312
20313 ac_cv_member_struct_stat_st_blksize=no
20314 fi
20315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20316 fi
20317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20318 fi
20319 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20320 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20321 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20322
20323 cat >>confdefs.h <<_ACEOF
20324 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20325 _ACEOF
20326
20327
20328 cat >>confdefs.h <<\_ACEOF
20329 #define HAVE_ST_BLKSIZE 1
20330 _ACEOF
20331
20332 fi
20333
20334
20335 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20336 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20337 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20338   echo $ECHO_N "(cached) $ECHO_C" >&6
20339 else
20340   cat >conftest.$ac_ext <<_ACEOF
20341 /* confdefs.h.  */
20342 _ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h.  */
20346 $ac_includes_default
20347 int
20348 main ()
20349 {
20350 static struct stat ac_aggr;
20351 if (ac_aggr.st_blocks)
20352 return 0;
20353   ;
20354   return 0;
20355 }
20356 _ACEOF
20357 rm -f conftest.$ac_objext
20358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20359   (eval $ac_compile) 2>conftest.er1
20360   ac_status=$?
20361   grep -v '^ *+' conftest.er1 >conftest.err
20362   rm -f conftest.er1
20363   cat conftest.err >&5
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); } &&
20366          { ac_try='test -z "$ac_c_werror_flag"
20367                          || test ! -s conftest.err'
20368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369   (eval $ac_try) 2>&5
20370   ac_status=$?
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); }; } &&
20373          { ac_try='test -s conftest.$ac_objext'
20374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375   (eval $ac_try) 2>&5
20376   ac_status=$?
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); }; }; then
20379   ac_cv_member_struct_stat_st_blocks=yes
20380 else
20381   echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20383
20384 cat >conftest.$ac_ext <<_ACEOF
20385 /* confdefs.h.  */
20386 _ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h.  */
20390 $ac_includes_default
20391 int
20392 main ()
20393 {
20394 static struct stat ac_aggr;
20395 if (sizeof ac_aggr.st_blocks)
20396 return 0;
20397   ;
20398   return 0;
20399 }
20400 _ACEOF
20401 rm -f conftest.$ac_objext
20402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20403   (eval $ac_compile) 2>conftest.er1
20404   ac_status=$?
20405   grep -v '^ *+' conftest.er1 >conftest.err
20406   rm -f conftest.er1
20407   cat conftest.err >&5
20408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409   (exit $ac_status); } &&
20410          { ac_try='test -z "$ac_c_werror_flag"
20411                          || test ! -s conftest.err'
20412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413   (eval $ac_try) 2>&5
20414   ac_status=$?
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); }; } &&
20417          { ac_try='test -s conftest.$ac_objext'
20418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419   (eval $ac_try) 2>&5
20420   ac_status=$?
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); }; }; then
20423   ac_cv_member_struct_stat_st_blocks=yes
20424 else
20425   echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20427
20428 ac_cv_member_struct_stat_st_blocks=no
20429 fi
20430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20431 fi
20432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20433 fi
20434 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20435 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20436 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20437
20438 cat >>confdefs.h <<_ACEOF
20439 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20440 _ACEOF
20441
20442
20443 cat >>confdefs.h <<\_ACEOF
20444 #define HAVE_ST_BLOCKS 1
20445 _ACEOF
20446
20447 else
20448   case $LIBOBJS in
20449     "fileblocks.$ac_objext"   | \
20450   *" fileblocks.$ac_objext"   | \
20451     "fileblocks.$ac_objext "* | \
20452   *" fileblocks.$ac_objext "* ) ;;
20453   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20454 esac
20455
20456 fi
20457
20458
20459 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20460 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20461 if test "${ac_cv_struct_tm+set}" = set; then
20462   echo $ECHO_N "(cached) $ECHO_C" >&6
20463 else
20464   cat >conftest.$ac_ext <<_ACEOF
20465 /* confdefs.h.  */
20466 _ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h.  */
20470 #include <sys/types.h>
20471 #include <time.h>
20472
20473 int
20474 main ()
20475 {
20476 struct tm *tp; tp->tm_sec;
20477   ;
20478   return 0;
20479 }
20480 _ACEOF
20481 rm -f conftest.$ac_objext
20482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20483   (eval $ac_compile) 2>conftest.er1
20484   ac_status=$?
20485   grep -v '^ *+' conftest.er1 >conftest.err
20486   rm -f conftest.er1
20487   cat conftest.err >&5
20488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); } &&
20490          { ac_try='test -z "$ac_c_werror_flag"
20491                          || test ! -s conftest.err'
20492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493   (eval $ac_try) 2>&5
20494   ac_status=$?
20495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496   (exit $ac_status); }; } &&
20497          { ac_try='test -s conftest.$ac_objext'
20498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20499   (eval $ac_try) 2>&5
20500   ac_status=$?
20501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502   (exit $ac_status); }; }; then
20503   ac_cv_struct_tm=time.h
20504 else
20505   echo "$as_me: failed program was:" >&5
20506 sed 's/^/| /' conftest.$ac_ext >&5
20507
20508 ac_cv_struct_tm=sys/time.h
20509 fi
20510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20511 fi
20512 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20513 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20514 if test $ac_cv_struct_tm = sys/time.h; then
20515
20516 cat >>confdefs.h <<\_ACEOF
20517 #define TM_IN_SYS_TIME 1
20518 _ACEOF
20519
20520 fi
20521
20522 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20523 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20524 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20525   echo $ECHO_N "(cached) $ECHO_C" >&6
20526 else
20527   cat >conftest.$ac_ext <<_ACEOF
20528 /* confdefs.h.  */
20529 _ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h.  */
20533 #include <sys/types.h>
20534 #include <$ac_cv_struct_tm>
20535
20536
20537 int
20538 main ()
20539 {
20540 static struct tm ac_aggr;
20541 if (ac_aggr.tm_zone)
20542 return 0;
20543   ;
20544   return 0;
20545 }
20546 _ACEOF
20547 rm -f conftest.$ac_objext
20548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20549   (eval $ac_compile) 2>conftest.er1
20550   ac_status=$?
20551   grep -v '^ *+' conftest.er1 >conftest.err
20552   rm -f conftest.er1
20553   cat conftest.err >&5
20554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555   (exit $ac_status); } &&
20556          { ac_try='test -z "$ac_c_werror_flag"
20557                          || test ! -s conftest.err'
20558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559   (eval $ac_try) 2>&5
20560   ac_status=$?
20561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); }; } &&
20563          { ac_try='test -s conftest.$ac_objext'
20564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565   (eval $ac_try) 2>&5
20566   ac_status=$?
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); }; }; then
20569   ac_cv_member_struct_tm_tm_zone=yes
20570 else
20571   echo "$as_me: failed program was:" >&5
20572 sed 's/^/| /' conftest.$ac_ext >&5
20573
20574 cat >conftest.$ac_ext <<_ACEOF
20575 /* confdefs.h.  */
20576 _ACEOF
20577 cat confdefs.h >>conftest.$ac_ext
20578 cat >>conftest.$ac_ext <<_ACEOF
20579 /* end confdefs.h.  */
20580 #include <sys/types.h>
20581 #include <$ac_cv_struct_tm>
20582
20583
20584 int
20585 main ()
20586 {
20587 static struct tm ac_aggr;
20588 if (sizeof ac_aggr.tm_zone)
20589 return 0;
20590   ;
20591   return 0;
20592 }
20593 _ACEOF
20594 rm -f conftest.$ac_objext
20595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20596   (eval $ac_compile) 2>conftest.er1
20597   ac_status=$?
20598   grep -v '^ *+' conftest.er1 >conftest.err
20599   rm -f conftest.er1
20600   cat conftest.err >&5
20601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602   (exit $ac_status); } &&
20603          { ac_try='test -z "$ac_c_werror_flag"
20604                          || test ! -s conftest.err'
20605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606   (eval $ac_try) 2>&5
20607   ac_status=$?
20608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609   (exit $ac_status); }; } &&
20610          { ac_try='test -s conftest.$ac_objext'
20611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612   (eval $ac_try) 2>&5
20613   ac_status=$?
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); }; }; then
20616   ac_cv_member_struct_tm_tm_zone=yes
20617 else
20618   echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20620
20621 ac_cv_member_struct_tm_tm_zone=no
20622 fi
20623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20624 fi
20625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20626 fi
20627 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20628 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20629 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20630
20631 cat >>confdefs.h <<_ACEOF
20632 #define HAVE_STRUCT_TM_TM_ZONE 1
20633 _ACEOF
20634
20635
20636 fi
20637
20638 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20639
20640 cat >>confdefs.h <<\_ACEOF
20641 #define HAVE_TM_ZONE 1
20642 _ACEOF
20643
20644 else
20645   echo "$as_me:$LINENO: checking for tzname" >&5
20646 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20647 if test "${ac_cv_var_tzname+set}" = set; then
20648   echo $ECHO_N "(cached) $ECHO_C" >&6
20649 else
20650   cat >conftest.$ac_ext <<_ACEOF
20651 /* confdefs.h.  */
20652 _ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h.  */
20656 #include <time.h>
20657 #ifndef tzname /* For SGI.  */
20658 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
20659 #endif
20660
20661 int
20662 main ()
20663 {
20664 atoi(*tzname);
20665   ;
20666   return 0;
20667 }
20668 _ACEOF
20669 rm -f conftest.$ac_objext conftest$ac_exeext
20670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20671   (eval $ac_link) 2>conftest.er1
20672   ac_status=$?
20673   grep -v '^ *+' conftest.er1 >conftest.err
20674   rm -f conftest.er1
20675   cat conftest.err >&5
20676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677   (exit $ac_status); } &&
20678          { ac_try='test -z "$ac_c_werror_flag"
20679                          || test ! -s conftest.err'
20680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681   (eval $ac_try) 2>&5
20682   ac_status=$?
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); }; } &&
20685          { ac_try='test -s conftest$ac_exeext'
20686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20687   (eval $ac_try) 2>&5
20688   ac_status=$?
20689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690   (exit $ac_status); }; }; then
20691   ac_cv_var_tzname=yes
20692 else
20693   echo "$as_me: failed program was:" >&5
20694 sed 's/^/| /' conftest.$ac_ext >&5
20695
20696 ac_cv_var_tzname=no
20697 fi
20698 rm -f conftest.err conftest.$ac_objext \
20699       conftest$ac_exeext conftest.$ac_ext
20700 fi
20701 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20702 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20703   if test $ac_cv_var_tzname = yes; then
20704
20705 cat >>confdefs.h <<\_ACEOF
20706 #define HAVE_TZNAME 1
20707 _ACEOF
20708
20709   fi
20710 fi
20711
20712
20713 echo "$as_me:$LINENO: checking for utime.h" >&5
20714 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20715 if test "${ba_cv_header_utime_h+set}" = set; then
20716   echo $ECHO_N "(cached) $ECHO_C" >&6
20717 else
20718   cat >conftest.$ac_ext <<_ACEOF
20719 /* confdefs.h.  */
20720 _ACEOF
20721 cat confdefs.h >>conftest.$ac_ext
20722 cat >>conftest.$ac_ext <<_ACEOF
20723 /* end confdefs.h.  */
20724
20725 #include <sys/types.h>
20726 #include <utime.h>
20727 int
20728 main ()
20729 {
20730 struct utimbuf foo
20731   ;
20732   return 0;
20733 }
20734 _ACEOF
20735 rm -f conftest.$ac_objext
20736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20737   (eval $ac_compile) 2>conftest.er1
20738   ac_status=$?
20739   grep -v '^ *+' conftest.er1 >conftest.err
20740   rm -f conftest.er1
20741   cat conftest.err >&5
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); } &&
20744          { ac_try='test -z "$ac_c_werror_flag"
20745                          || test ! -s conftest.err'
20746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747   (eval $ac_try) 2>&5
20748   ac_status=$?
20749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); }; } &&
20751          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20757   ba_cv_header_utime_h=yes
20758 else
20759   echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20761
20762 ba_cv_header_utime_h=no
20763 fi
20764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20765 fi
20766 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
20767 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
20768 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
20769 #define HAVE_UTIME_H 1
20770 _ACEOF
20771
20772
20773 echo "$as_me:$LINENO: checking for socklen_t" >&5
20774 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20775 if test "${ba_cv_header_socklen_t+set}" = set; then
20776   echo $ECHO_N "(cached) $ECHO_C" >&6
20777 else
20778   cat >conftest.$ac_ext <<_ACEOF
20779 /* confdefs.h.  */
20780 _ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h.  */
20784
20785 #include <sys/types.h>
20786 #include <sys/socket.h>
20787 int
20788 main ()
20789 {
20790 socklen_t x
20791   ;
20792   return 0;
20793 }
20794 _ACEOF
20795 rm -f conftest.$ac_objext
20796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20797   (eval $ac_compile) 2>conftest.er1
20798   ac_status=$?
20799   grep -v '^ *+' conftest.er1 >conftest.err
20800   rm -f conftest.er1
20801   cat conftest.err >&5
20802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803   (exit $ac_status); } &&
20804          { ac_try='test -z "$ac_c_werror_flag"
20805                          || test ! -s conftest.err'
20806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807   (eval $ac_try) 2>&5
20808   ac_status=$?
20809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810   (exit $ac_status); }; } &&
20811          { ac_try='test -s conftest.$ac_objext'
20812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20813   (eval $ac_try) 2>&5
20814   ac_status=$?
20815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); }; }; then
20817   ba_cv_header_socklen_t=yes
20818 else
20819   echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20821
20822 ba_cv_header_socklen_t=no
20823 fi
20824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20825 fi
20826 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
20827 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
20828 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
20829 #define HAVE_SOCKLEN_T 1
20830 _ACEOF
20831
20832
20833 echo "$as_me:$LINENO: checking for bigendian" >&5
20834 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
20835 if test "${ba_cv_bigendian+set}" = set; then
20836   echo $ECHO_N "(cached) $ECHO_C" >&6
20837 else
20838   if test "$cross_compiling" = yes; then
20839   ba_cv_bigendian=no
20840 else
20841   cat >conftest.$ac_ext <<_ACEOF
20842 /* confdefs.h.  */
20843 _ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h.  */
20847 main(){long a=1L; char *p=(char *)&a; exit(*p);}
20848 _ACEOF
20849 rm -f conftest$ac_exeext
20850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20851   (eval $ac_link) 2>&5
20852   ac_status=$?
20853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20856   (eval $ac_try) 2>&5
20857   ac_status=$?
20858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859   (exit $ac_status); }; }; then
20860   ba_cv_bigendian=yes
20861 else
20862   echo "$as_me: program exited with status $ac_status" >&5
20863 echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.$ac_ext >&5
20865
20866 ( exit $ac_status )
20867 ba_cv_bigendian=no
20868 fi
20869 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20870 fi
20871 fi
20872 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
20873 echo "${ECHO_T}$ba_cv_bigendian" >&6
20874 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
20875 #define HAVE_BIGENDIAN 1
20876 _ACEOF
20877
20878
20879 ac_ext=cc
20880 ac_cpp='$CXXCPP $CPPFLAGS'
20881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20884
20885
20886 echo "$as_me:$LINENO: checking for typeof" >&5
20887 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
20888 if test "${ba_cv_have_typeof+set}" = set; then
20889   echo $ECHO_N "(cached) $ECHO_C" >&6
20890 else
20891   if test "$cross_compiling" = yes; then
20892   ba_cv_have_typeof=no
20893 else
20894   cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h.  */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h.  */
20900 main(){char *a = 0; a = (typeof a)a;}
20901 _ACEOF
20902 rm -f conftest$ac_exeext
20903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20904   (eval $ac_link) 2>&5
20905   ac_status=$?
20906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909   (eval $ac_try) 2>&5
20910   ac_status=$?
20911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912   (exit $ac_status); }; }; then
20913   ba_cv_have_typeof=yes
20914 else
20915   echo "$as_me: program exited with status $ac_status" >&5
20916 echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20918
20919 ( exit $ac_status )
20920 ba_cv_have_typeof=no
20921 fi
20922 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20923 fi
20924 fi
20925 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
20926 echo "${ECHO_T}$ba_cv_have_typeof" >&6
20927 test $ba_cv_have_typeof = yes &&
20928 cat >>confdefs.h <<\_ACEOF
20929 #define HAVE_TYPEOF 1
20930 _ACEOF
20931
20932 ac_ext=c
20933 ac_cpp='$CPP $CPPFLAGS'
20934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20937
20938
20939 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20940 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20941 if test "${ac_cv_c_const+set}" = set; then
20942   echo $ECHO_N "(cached) $ECHO_C" >&6
20943 else
20944   cat >conftest.$ac_ext <<_ACEOF
20945 /* confdefs.h.  */
20946 _ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h.  */
20950
20951 int
20952 main ()
20953 {
20954 /* FIXME: Include the comments suggested by Paul. */
20955 #ifndef __cplusplus
20956   /* Ultrix mips cc rejects this.  */
20957   typedef int charset[2];
20958   const charset x;
20959   /* SunOS 4.1.1 cc rejects this.  */
20960   char const *const *ccp;
20961   char **p;
20962   /* NEC SVR4.0.2 mips cc rejects this.  */
20963   struct point {int x, y;};
20964   static struct point const zero = {0,0};
20965   /* AIX XL C 1.02.0.0 rejects this.
20966      It does not let you subtract one const X* pointer from another in
20967      an arm of an if-expression whose if-part is not a constant
20968      expression */
20969   const char *g = "string";
20970   ccp = &g + (g ? g-g : 0);
20971   /* HPUX 7.0 cc rejects these. */
20972   ++ccp;
20973   p = (char**) ccp;
20974   ccp = (char const *const *) p;
20975   { /* SCO 3.2v4 cc rejects this.  */
20976     char *t;
20977     char const *s = 0 ? (char *) 0 : (char const *) 0;
20978
20979     *t++ = 0;
20980   }
20981   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20982     int x[] = {25, 17};
20983     const int *foo = &x[0];
20984     ++foo;
20985   }
20986   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20987     typedef const int *iptr;
20988     iptr p = 0;
20989     ++p;
20990   }
20991   { /* AIX XL C 1.02.0.0 rejects this saying
20992        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20993     struct s { int j; const int *ap[3]; };
20994     struct s *b; b->j = 5;
20995   }
20996   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20997     const int foo = 10;
20998   }
20999 #endif
21000
21001   ;
21002   return 0;
21003 }
21004 _ACEOF
21005 rm -f conftest.$ac_objext
21006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21007   (eval $ac_compile) 2>conftest.er1
21008   ac_status=$?
21009   grep -v '^ *+' conftest.er1 >conftest.err
21010   rm -f conftest.er1
21011   cat conftest.err >&5
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); } &&
21014          { ac_try='test -z "$ac_c_werror_flag"
21015                          || test ! -s conftest.err'
21016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017   (eval $ac_try) 2>&5
21018   ac_status=$?
21019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020   (exit $ac_status); }; } &&
21021          { ac_try='test -s conftest.$ac_objext'
21022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023   (eval $ac_try) 2>&5
21024   ac_status=$?
21025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026   (exit $ac_status); }; }; then
21027   ac_cv_c_const=yes
21028 else
21029   echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21031
21032 ac_cv_c_const=no
21033 fi
21034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21035 fi
21036 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21037 echo "${ECHO_T}$ac_cv_c_const" >&6
21038 if test $ac_cv_c_const = no; then
21039
21040 cat >>confdefs.h <<\_ACEOF
21041 #define const
21042 _ACEOF
21043
21044 fi
21045
21046
21047
21048 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21049 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21050 fstype=no
21051 # The order of these tests is important.
21052 cat >conftest.$ac_ext <<_ACEOF
21053 /* confdefs.h.  */
21054 _ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h.  */
21058 #include <sys/statvfs.h>
21059 #include <sys/fstyp.h>
21060 _ACEOF
21061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21063   ac_status=$?
21064   grep -v '^ *+' conftest.er1 >conftest.err
21065   rm -f conftest.er1
21066   cat conftest.err >&5
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); } >/dev/null; then
21069   if test -s conftest.err; then
21070     ac_cpp_err=$ac_c_preproc_warn_flag
21071     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21072   else
21073     ac_cpp_err=
21074   fi
21075 else
21076   ac_cpp_err=yes
21077 fi
21078 if test -z "$ac_cpp_err"; then
21079   cat >>confdefs.h <<\_ACEOF
21080 #define FSTYPE_STATVFS 1
21081 _ACEOF
21082  fstype=SVR4
21083 else
21084   echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21086
21087
21088 fi
21089 rm -f conftest.err conftest.$ac_ext
21090 if test $fstype = no; then
21091 cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h.  */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h.  */
21097 #include <sys/statfs.h>
21098 #include <sys/fstyp.h>
21099 _ACEOF
21100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21102   ac_status=$?
21103   grep -v '^ *+' conftest.er1 >conftest.err
21104   rm -f conftest.er1
21105   cat conftest.err >&5
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); } >/dev/null; then
21108   if test -s conftest.err; then
21109     ac_cpp_err=$ac_c_preproc_warn_flag
21110     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21111   else
21112     ac_cpp_err=
21113   fi
21114 else
21115   ac_cpp_err=yes
21116 fi
21117 if test -z "$ac_cpp_err"; then
21118   cat >>confdefs.h <<\_ACEOF
21119 #define FSTYPE_USG_STATFS 1
21120 _ACEOF
21121  fstype=SVR3
21122 else
21123   echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21125
21126
21127 fi
21128 rm -f conftest.err conftest.$ac_ext
21129 fi
21130 if test $fstype = no; then
21131 cat >conftest.$ac_ext <<_ACEOF
21132 /* confdefs.h.  */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h.  */
21137 #include <sys/statfs.h>
21138 #include <sys/vmount.h>
21139 _ACEOF
21140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21141   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21142   ac_status=$?
21143   grep -v '^ *+' conftest.er1 >conftest.err
21144   rm -f conftest.er1
21145   cat conftest.err >&5
21146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147   (exit $ac_status); } >/dev/null; then
21148   if test -s conftest.err; then
21149     ac_cpp_err=$ac_c_preproc_warn_flag
21150     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21151   else
21152     ac_cpp_err=
21153   fi
21154 else
21155   ac_cpp_err=yes
21156 fi
21157 if test -z "$ac_cpp_err"; then
21158   cat >>confdefs.h <<\_ACEOF
21159 #define FSTYPE_AIX_STATFS 1
21160 _ACEOF
21161  fstype=AIX
21162 else
21163   echo "$as_me: failed program was:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21165
21166
21167 fi
21168 rm -f conftest.err conftest.$ac_ext
21169 fi
21170 if test $fstype = no; then
21171 cat >conftest.$ac_ext <<_ACEOF
21172 /* confdefs.h.  */
21173 _ACEOF
21174 cat confdefs.h >>conftest.$ac_ext
21175 cat >>conftest.$ac_ext <<_ACEOF
21176 /* end confdefs.h.  */
21177 #include <mntent.h>
21178 _ACEOF
21179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21181   ac_status=$?
21182   grep -v '^ *+' conftest.er1 >conftest.err
21183   rm -f conftest.er1
21184   cat conftest.err >&5
21185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186   (exit $ac_status); } >/dev/null; then
21187   if test -s conftest.err; then
21188     ac_cpp_err=$ac_c_preproc_warn_flag
21189     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21190   else
21191     ac_cpp_err=
21192   fi
21193 else
21194   ac_cpp_err=yes
21195 fi
21196 if test -z "$ac_cpp_err"; then
21197   cat >>confdefs.h <<\_ACEOF
21198 #define FSTYPE_MNTENT 1
21199 _ACEOF
21200  fstype=4.3BSD
21201 else
21202   echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21204
21205
21206 fi
21207 rm -f conftest.err conftest.$ac_ext
21208 fi
21209 if test $fstype = no; then
21210 cat >conftest.$ac_ext <<_ACEOF
21211 /* confdefs.h.  */
21212 _ACEOF
21213 cat confdefs.h >>conftest.$ac_ext
21214 cat >>conftest.$ac_ext <<_ACEOF
21215 /* end confdefs.h.  */
21216 #include <sys/mount.h>
21217
21218 _ACEOF
21219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21220   $EGREP "f_type;" >/dev/null 2>&1; then
21221   cat >>confdefs.h <<\_ACEOF
21222 #define FSTYPE_STATFS 1
21223 _ACEOF
21224  fstype=4.4BSD/OSF1
21225 fi
21226 rm -f conftest*
21227
21228 fi
21229 if test $fstype = no; then
21230 cat >conftest.$ac_ext <<_ACEOF
21231 /* confdefs.h.  */
21232 _ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h.  */
21236 #include <sys/mount.h>
21237 #include <sys/fs_types.h>
21238 _ACEOF
21239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21241   ac_status=$?
21242   grep -v '^ *+' conftest.er1 >conftest.err
21243   rm -f conftest.er1
21244   cat conftest.err >&5
21245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246   (exit $ac_status); } >/dev/null; then
21247   if test -s conftest.err; then
21248     ac_cpp_err=$ac_c_preproc_warn_flag
21249     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21250   else
21251     ac_cpp_err=
21252   fi
21253 else
21254   ac_cpp_err=yes
21255 fi
21256 if test -z "$ac_cpp_err"; then
21257   cat >>confdefs.h <<\_ACEOF
21258 #define FSTYPE_GETMNT 1
21259 _ACEOF
21260  fstype=Ultrix
21261 else
21262   echo "$as_me: failed program was:" >&5
21263 sed 's/^/| /' conftest.$ac_ext >&5
21264
21265
21266 fi
21267 rm -f conftest.err conftest.$ac_ext
21268 fi
21269 echo "$as_me:$LINENO: result: $fstype" >&5
21270 echo "${ECHO_T}$fstype" >&6
21271
21272 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21273   echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21274 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21275 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21276   echo $ECHO_N "(cached) $ECHO_C" >&6
21277 fi
21278 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21279 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21280 else
21281   # Is the header compilable?
21282 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21283 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21284 cat >conftest.$ac_ext <<_ACEOF
21285 /* confdefs.h.  */
21286 _ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h.  */
21290 $ac_includes_default
21291 #include <sys/statvfs.h>
21292 _ACEOF
21293 rm -f conftest.$ac_objext
21294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21295   (eval $ac_compile) 2>conftest.er1
21296   ac_status=$?
21297   grep -v '^ *+' conftest.er1 >conftest.err
21298   rm -f conftest.er1
21299   cat conftest.err >&5
21300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301   (exit $ac_status); } &&
21302          { ac_try='test -z "$ac_c_werror_flag"
21303                          || test ! -s conftest.err'
21304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305   (eval $ac_try) 2>&5
21306   ac_status=$?
21307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308   (exit $ac_status); }; } &&
21309          { ac_try='test -s conftest.$ac_objext'
21310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311   (eval $ac_try) 2>&5
21312   ac_status=$?
21313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314   (exit $ac_status); }; }; then
21315   ac_header_compiler=yes
21316 else
21317   echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21319
21320 ac_header_compiler=no
21321 fi
21322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21324 echo "${ECHO_T}$ac_header_compiler" >&6
21325
21326 # Is the header present?
21327 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21328 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21329 cat >conftest.$ac_ext <<_ACEOF
21330 /* confdefs.h.  */
21331 _ACEOF
21332 cat confdefs.h >>conftest.$ac_ext
21333 cat >>conftest.$ac_ext <<_ACEOF
21334 /* end confdefs.h.  */
21335 #include <sys/statvfs.h>
21336 _ACEOF
21337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21338   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21339   ac_status=$?
21340   grep -v '^ *+' conftest.er1 >conftest.err
21341   rm -f conftest.er1
21342   cat conftest.err >&5
21343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344   (exit $ac_status); } >/dev/null; then
21345   if test -s conftest.err; then
21346     ac_cpp_err=$ac_c_preproc_warn_flag
21347     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21348   else
21349     ac_cpp_err=
21350   fi
21351 else
21352   ac_cpp_err=yes
21353 fi
21354 if test -z "$ac_cpp_err"; then
21355   ac_header_preproc=yes
21356 else
21357   echo "$as_me: failed program was:" >&5
21358 sed 's/^/| /' conftest.$ac_ext >&5
21359
21360   ac_header_preproc=no
21361 fi
21362 rm -f conftest.err conftest.$ac_ext
21363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21364 echo "${ECHO_T}$ac_header_preproc" >&6
21365
21366 # So?  What about this header?
21367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21368   yes:no: )
21369     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21370 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21371     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21372 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21373     ac_header_preproc=yes
21374     ;;
21375   no:yes:* )
21376     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21377 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21378     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21379 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21380     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21381 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21382     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21383 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21384     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21385 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21386     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21387 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21388     (
21389       cat <<\_ASBOX
21390 ## ------------------------------------------ ##
21391 ## Report this to the AC_PACKAGE_NAME lists.  ##
21392 ## ------------------------------------------ ##
21393 _ASBOX
21394     ) |
21395       sed "s/^/$as_me: WARNING:     /" >&2
21396     ;;
21397 esac
21398 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21399 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21400 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21401   echo $ECHO_N "(cached) $ECHO_C" >&6
21402 else
21403   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21404 fi
21405 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21406 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21407
21408 fi
21409 if test $ac_cv_header_sys_statvfs_h = yes; then
21410
21411 cat >>confdefs.h <<\_ACEOF
21412 #define HAVE_SYS_STATVFS_H 1
21413 _ACEOF
21414
21415 fi
21416
21417
21418
21419 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21420 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21421 if test "${ac_cv_type_signal+set}" = set; then
21422   echo $ECHO_N "(cached) $ECHO_C" >&6
21423 else
21424   cat >conftest.$ac_ext <<_ACEOF
21425 /* confdefs.h.  */
21426 _ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h.  */
21430 #include <sys/types.h>
21431 #include <signal.h>
21432 #ifdef signal
21433 # undef signal
21434 #endif
21435 #ifdef __cplusplus
21436 extern "C" void (*signal (int, void (*)(int)))(int);
21437 #else
21438 void (*signal ()) ();
21439 #endif
21440
21441 int
21442 main ()
21443 {
21444 int i;
21445   ;
21446   return 0;
21447 }
21448 _ACEOF
21449 rm -f conftest.$ac_objext
21450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21451   (eval $ac_compile) 2>conftest.er1
21452   ac_status=$?
21453   grep -v '^ *+' conftest.er1 >conftest.err
21454   rm -f conftest.er1
21455   cat conftest.err >&5
21456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457   (exit $ac_status); } &&
21458          { ac_try='test -z "$ac_c_werror_flag"
21459                          || test ! -s conftest.err'
21460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461   (eval $ac_try) 2>&5
21462   ac_status=$?
21463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464   (exit $ac_status); }; } &&
21465          { ac_try='test -s conftest.$ac_objext'
21466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467   (eval $ac_try) 2>&5
21468   ac_status=$?
21469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470   (exit $ac_status); }; }; then
21471   ac_cv_type_signal=void
21472 else
21473   echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21475
21476 ac_cv_type_signal=int
21477 fi
21478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21479 fi
21480 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21481 echo "${ECHO_T}$ac_cv_type_signal" >&6
21482
21483 cat >>confdefs.h <<_ACEOF
21484 #define RETSIGTYPE $ac_cv_type_signal
21485 _ACEOF
21486
21487
21488
21489   echo "$as_me:$LINENO: checking for type of signal functions" >&5
21490 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21491   if test "${bash_cv_signal_vintage+set}" = set; then
21492   echo $ECHO_N "(cached) $ECHO_C" >&6
21493 else
21494
21495     cat >conftest.$ac_ext <<_ACEOF
21496 /* confdefs.h.  */
21497 _ACEOF
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h.  */
21501 #include <signal.h>
21502 int
21503 main ()
21504 {
21505
21506       sigset_t ss;
21507       struct sigaction sa;
21508       sigemptyset(&ss); sigsuspend(&ss);
21509       sigaction(SIGINT, &sa, (struct sigaction *) 0);
21510       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21511
21512   ;
21513   return 0;
21514 }
21515 _ACEOF
21516 rm -f conftest.$ac_objext conftest$ac_exeext
21517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21518   (eval $ac_link) 2>conftest.er1
21519   ac_status=$?
21520   grep -v '^ *+' conftest.er1 >conftest.err
21521   rm -f conftest.er1
21522   cat conftest.err >&5
21523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524   (exit $ac_status); } &&
21525          { ac_try='test -z "$ac_c_werror_flag"
21526                          || test ! -s conftest.err'
21527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21528   (eval $ac_try) 2>&5
21529   ac_status=$?
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); }; } &&
21532          { ac_try='test -s conftest$ac_exeext'
21533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534   (eval $ac_try) 2>&5
21535   ac_status=$?
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); }; }; then
21538   bash_cv_signal_vintage="posix"
21539 else
21540   echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21542
21543
21544       cat >conftest.$ac_ext <<_ACEOF
21545 /* confdefs.h.  */
21546 _ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h.  */
21550 #include <signal.h>
21551 int
21552 main ()
21553 {
21554
21555           int mask = sigmask(SIGINT);
21556           sigsetmask(mask); sigblock(mask); sigpause(mask);
21557
21558   ;
21559   return 0;
21560 }
21561 _ACEOF
21562 rm -f conftest.$ac_objext conftest$ac_exeext
21563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21564   (eval $ac_link) 2>conftest.er1
21565   ac_status=$?
21566   grep -v '^ *+' conftest.er1 >conftest.err
21567   rm -f conftest.er1
21568   cat conftest.err >&5
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); } &&
21571          { ac_try='test -z "$ac_c_werror_flag"
21572                          || test ! -s conftest.err'
21573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574   (eval $ac_try) 2>&5
21575   ac_status=$?
21576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577   (exit $ac_status); }; } &&
21578          { ac_try='test -s conftest$ac_exeext'
21579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21580   (eval $ac_try) 2>&5
21581   ac_status=$?
21582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583   (exit $ac_status); }; }; then
21584   bash_cv_signal_vintage="4.2bsd"
21585 else
21586   echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21588
21589
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
21597           #include <signal.h>
21598           RETSIGTYPE foo() { }
21599 int
21600 main ()
21601 {
21602
21603                   int mask = sigmask(SIGINT);
21604                   sigset(SIGINT, foo); sigrelse(SIGINT);
21605                   sighold(SIGINT); sigpause(SIGINT);
21606
21607   ;
21608   return 0;
21609 }
21610 _ACEOF
21611 rm -f conftest.$ac_objext conftest$ac_exeext
21612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21613   (eval $ac_link) 2>conftest.er1
21614   ac_status=$?
21615   grep -v '^ *+' conftest.er1 >conftest.err
21616   rm -f conftest.er1
21617   cat conftest.err >&5
21618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619   (exit $ac_status); } &&
21620          { ac_try='test -z "$ac_c_werror_flag"
21621                          || test ! -s conftest.err'
21622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623   (eval $ac_try) 2>&5
21624   ac_status=$?
21625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626   (exit $ac_status); }; } &&
21627          { ac_try='test -s conftest$ac_exeext'
21628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629   (eval $ac_try) 2>&5
21630   ac_status=$?
21631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632   (exit $ac_status); }; }; then
21633   bash_cv_signal_vintage="svr3"
21634 else
21635   echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21637
21638 bash_cv_signal_vintage="v7"
21639
21640 fi
21641 rm -f conftest.err conftest.$ac_objext \
21642       conftest$ac_exeext conftest.$ac_ext
21643
21644 fi
21645 rm -f conftest.err conftest.$ac_objext \
21646       conftest$ac_exeext conftest.$ac_ext
21647
21648 fi
21649 rm -f conftest.err conftest.$ac_objext \
21650       conftest$ac_exeext conftest.$ac_ext
21651
21652 fi
21653
21654   echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21655 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21656   if test "$bash_cv_signal_vintage" = "posix"; then
21657     cat >>confdefs.h <<\_ACEOF
21658 #define HAVE_POSIX_SIGNALS 1
21659 _ACEOF
21660
21661   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21662     cat >>confdefs.h <<\_ACEOF
21663 #define HAVE_BSD_SIGNALS 1
21664 _ACEOF
21665
21666   elif test "$bash_cv_signal_vintage" = "svr3"; then
21667     cat >>confdefs.h <<\_ACEOF
21668 #define HAVE_USG_SIGHOLD 1
21669 _ACEOF
21670
21671   fi
21672
21673 echo "$as_me:$LINENO: checking for mode_t" >&5
21674 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21675 if test "${ac_cv_type_mode_t+set}" = set; then
21676   echo $ECHO_N "(cached) $ECHO_C" >&6
21677 else
21678   cat >conftest.$ac_ext <<_ACEOF
21679 /* confdefs.h.  */
21680 _ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h.  */
21684 $ac_includes_default
21685 int
21686 main ()
21687 {
21688 if ((mode_t *) 0)
21689   return 0;
21690 if (sizeof (mode_t))
21691   return 0;
21692   ;
21693   return 0;
21694 }
21695 _ACEOF
21696 rm -f conftest.$ac_objext
21697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21698   (eval $ac_compile) 2>conftest.er1
21699   ac_status=$?
21700   grep -v '^ *+' conftest.er1 >conftest.err
21701   rm -f conftest.er1
21702   cat conftest.err >&5
21703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704   (exit $ac_status); } &&
21705          { ac_try='test -z "$ac_c_werror_flag"
21706                          || test ! -s conftest.err'
21707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21708   (eval $ac_try) 2>&5
21709   ac_status=$?
21710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711   (exit $ac_status); }; } &&
21712          { ac_try='test -s conftest.$ac_objext'
21713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21714   (eval $ac_try) 2>&5
21715   ac_status=$?
21716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717   (exit $ac_status); }; }; then
21718   ac_cv_type_mode_t=yes
21719 else
21720   echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21722
21723 ac_cv_type_mode_t=no
21724 fi
21725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21726 fi
21727 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21728 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21729 if test $ac_cv_type_mode_t = yes; then
21730   :
21731 else
21732
21733 cat >>confdefs.h <<_ACEOF
21734 #define mode_t int
21735 _ACEOF
21736
21737 fi
21738
21739 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21740 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21741 if test "${ac_cv_type_uid_t+set}" = set; then
21742   echo $ECHO_N "(cached) $ECHO_C" >&6
21743 else
21744   cat >conftest.$ac_ext <<_ACEOF
21745 /* confdefs.h.  */
21746 _ACEOF
21747 cat confdefs.h >>conftest.$ac_ext
21748 cat >>conftest.$ac_ext <<_ACEOF
21749 /* end confdefs.h.  */
21750 #include <sys/types.h>
21751
21752 _ACEOF
21753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21754   $EGREP "uid_t" >/dev/null 2>&1; then
21755   ac_cv_type_uid_t=yes
21756 else
21757   ac_cv_type_uid_t=no
21758 fi
21759 rm -f conftest*
21760
21761 fi
21762 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21763 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21764 if test $ac_cv_type_uid_t = no; then
21765
21766 cat >>confdefs.h <<\_ACEOF
21767 #define uid_t int
21768 _ACEOF
21769
21770
21771 cat >>confdefs.h <<\_ACEOF
21772 #define gid_t int
21773 _ACEOF
21774
21775 fi
21776
21777 echo "$as_me:$LINENO: checking for size_t" >&5
21778 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21779 if test "${ac_cv_type_size_t+set}" = set; then
21780   echo $ECHO_N "(cached) $ECHO_C" >&6
21781 else
21782   cat >conftest.$ac_ext <<_ACEOF
21783 /* confdefs.h.  */
21784 _ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h.  */
21788 $ac_includes_default
21789 int
21790 main ()
21791 {
21792 if ((size_t *) 0)
21793   return 0;
21794 if (sizeof (size_t))
21795   return 0;
21796   ;
21797   return 0;
21798 }
21799 _ACEOF
21800 rm -f conftest.$ac_objext
21801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21802   (eval $ac_compile) 2>conftest.er1
21803   ac_status=$?
21804   grep -v '^ *+' conftest.er1 >conftest.err
21805   rm -f conftest.er1
21806   cat conftest.err >&5
21807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808   (exit $ac_status); } &&
21809          { ac_try='test -z "$ac_c_werror_flag"
21810                          || test ! -s conftest.err'
21811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812   (eval $ac_try) 2>&5
21813   ac_status=$?
21814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815   (exit $ac_status); }; } &&
21816          { ac_try='test -s conftest.$ac_objext'
21817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21818   (eval $ac_try) 2>&5
21819   ac_status=$?
21820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821   (exit $ac_status); }; }; then
21822   ac_cv_type_size_t=yes
21823 else
21824   echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21826
21827 ac_cv_type_size_t=no
21828 fi
21829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21830 fi
21831 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21832 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21833 if test $ac_cv_type_size_t = yes; then
21834   :
21835 else
21836
21837 cat >>confdefs.h <<_ACEOF
21838 #define size_t unsigned
21839 _ACEOF
21840
21841 fi
21842
21843 echo "$as_me:$LINENO: checking for pid_t" >&5
21844 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21845 if test "${ac_cv_type_pid_t+set}" = set; then
21846   echo $ECHO_N "(cached) $ECHO_C" >&6
21847 else
21848   cat >conftest.$ac_ext <<_ACEOF
21849 /* confdefs.h.  */
21850 _ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h.  */
21854 $ac_includes_default
21855 int
21856 main ()
21857 {
21858 if ((pid_t *) 0)
21859   return 0;
21860 if (sizeof (pid_t))
21861   return 0;
21862   ;
21863   return 0;
21864 }
21865 _ACEOF
21866 rm -f conftest.$ac_objext
21867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21868   (eval $ac_compile) 2>conftest.er1
21869   ac_status=$?
21870   grep -v '^ *+' conftest.er1 >conftest.err
21871   rm -f conftest.er1
21872   cat conftest.err >&5
21873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874   (exit $ac_status); } &&
21875          { ac_try='test -z "$ac_c_werror_flag"
21876                          || test ! -s conftest.err'
21877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878   (eval $ac_try) 2>&5
21879   ac_status=$?
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); }; } &&
21882          { ac_try='test -s conftest.$ac_objext'
21883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884   (eval $ac_try) 2>&5
21885   ac_status=$?
21886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887   (exit $ac_status); }; }; then
21888   ac_cv_type_pid_t=yes
21889 else
21890   echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21892
21893 ac_cv_type_pid_t=no
21894 fi
21895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21896 fi
21897 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21898 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21899 if test $ac_cv_type_pid_t = yes; then
21900   :
21901 else
21902
21903 cat >>confdefs.h <<_ACEOF
21904 #define pid_t int
21905 _ACEOF
21906
21907 fi
21908
21909 echo "$as_me:$LINENO: checking for off_t" >&5
21910 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21911 if test "${ac_cv_type_off_t+set}" = set; then
21912   echo $ECHO_N "(cached) $ECHO_C" >&6
21913 else
21914   cat >conftest.$ac_ext <<_ACEOF
21915 /* confdefs.h.  */
21916 _ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h.  */
21920 $ac_includes_default
21921 int
21922 main ()
21923 {
21924 if ((off_t *) 0)
21925   return 0;
21926 if (sizeof (off_t))
21927   return 0;
21928   ;
21929   return 0;
21930 }
21931 _ACEOF
21932 rm -f conftest.$ac_objext
21933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21934   (eval $ac_compile) 2>conftest.er1
21935   ac_status=$?
21936   grep -v '^ *+' conftest.er1 >conftest.err
21937   rm -f conftest.er1
21938   cat conftest.err >&5
21939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940   (exit $ac_status); } &&
21941          { ac_try='test -z "$ac_c_werror_flag"
21942                          || test ! -s conftest.err'
21943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21944   (eval $ac_try) 2>&5
21945   ac_status=$?
21946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947   (exit $ac_status); }; } &&
21948          { ac_try='test -s conftest.$ac_objext'
21949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21950   (eval $ac_try) 2>&5
21951   ac_status=$?
21952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953   (exit $ac_status); }; }; then
21954   ac_cv_type_off_t=yes
21955 else
21956   echo "$as_me: failed program was:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21958
21959 ac_cv_type_off_t=no
21960 fi
21961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21962 fi
21963 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21964 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21965 if test $ac_cv_type_off_t = yes; then
21966   :
21967 else
21968
21969 cat >>confdefs.h <<_ACEOF
21970 #define off_t long
21971 _ACEOF
21972
21973 fi
21974
21975 echo "$as_me:$LINENO: checking for ino_t" >&5
21976 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
21977 if test "${ac_cv_type_ino_t+set}" = set; then
21978   echo $ECHO_N "(cached) $ECHO_C" >&6
21979 else
21980   cat >conftest.$ac_ext <<_ACEOF
21981 /* confdefs.h.  */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h.  */
21986 $ac_includes_default
21987 int
21988 main ()
21989 {
21990 if ((ino_t *) 0)
21991   return 0;
21992 if (sizeof (ino_t))
21993   return 0;
21994   ;
21995   return 0;
21996 }
21997 _ACEOF
21998 rm -f conftest.$ac_objext
21999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22000   (eval $ac_compile) 2>conftest.er1
22001   ac_status=$?
22002   grep -v '^ *+' conftest.er1 >conftest.err
22003   rm -f conftest.er1
22004   cat conftest.err >&5
22005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006   (exit $ac_status); } &&
22007          { ac_try='test -z "$ac_c_werror_flag"
22008                          || test ! -s conftest.err'
22009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010   (eval $ac_try) 2>&5
22011   ac_status=$?
22012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013   (exit $ac_status); }; } &&
22014          { ac_try='test -s conftest.$ac_objext'
22015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016   (eval $ac_try) 2>&5
22017   ac_status=$?
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); }; }; then
22020   ac_cv_type_ino_t=yes
22021 else
22022   echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22024
22025 ac_cv_type_ino_t=no
22026 fi
22027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22028 fi
22029 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22030 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22031 if test $ac_cv_type_ino_t = yes; then
22032   :
22033 else
22034
22035 cat >>confdefs.h <<_ACEOF
22036 #define ino_t unsigned long
22037 _ACEOF
22038
22039 fi
22040
22041 echo "$as_me:$LINENO: checking for dev_t" >&5
22042 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22043 if test "${ac_cv_type_dev_t+set}" = set; then
22044   echo $ECHO_N "(cached) $ECHO_C" >&6
22045 else
22046   cat >conftest.$ac_ext <<_ACEOF
22047 /* confdefs.h.  */
22048 _ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h.  */
22052 $ac_includes_default
22053 int
22054 main ()
22055 {
22056 if ((dev_t *) 0)
22057   return 0;
22058 if (sizeof (dev_t))
22059   return 0;
22060   ;
22061   return 0;
22062 }
22063 _ACEOF
22064 rm -f conftest.$ac_objext
22065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22066   (eval $ac_compile) 2>conftest.er1
22067   ac_status=$?
22068   grep -v '^ *+' conftest.er1 >conftest.err
22069   rm -f conftest.er1
22070   cat conftest.err >&5
22071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072   (exit $ac_status); } &&
22073          { ac_try='test -z "$ac_c_werror_flag"
22074                          || test ! -s conftest.err'
22075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076   (eval $ac_try) 2>&5
22077   ac_status=$?
22078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079   (exit $ac_status); }; } &&
22080          { ac_try='test -s conftest.$ac_objext'
22081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082   (eval $ac_try) 2>&5
22083   ac_status=$?
22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085   (exit $ac_status); }; }; then
22086   ac_cv_type_dev_t=yes
22087 else
22088   echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22090
22091 ac_cv_type_dev_t=no
22092 fi
22093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22094 fi
22095 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22096 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22097 if test $ac_cv_type_dev_t = yes; then
22098   :
22099 else
22100
22101 cat >>confdefs.h <<_ACEOF
22102 #define dev_t unsigned long
22103 _ACEOF
22104
22105 fi
22106
22107 echo "$as_me:$LINENO: checking for daddr_t" >&5
22108 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22109 if test "${ac_cv_type_daddr_t+set}" = set; then
22110   echo $ECHO_N "(cached) $ECHO_C" >&6
22111 else
22112   cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h.  */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h.  */
22118 $ac_includes_default
22119 int
22120 main ()
22121 {
22122 if ((daddr_t *) 0)
22123   return 0;
22124 if (sizeof (daddr_t))
22125   return 0;
22126   ;
22127   return 0;
22128 }
22129 _ACEOF
22130 rm -f conftest.$ac_objext
22131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22132   (eval $ac_compile) 2>conftest.er1
22133   ac_status=$?
22134   grep -v '^ *+' conftest.er1 >conftest.err
22135   rm -f conftest.er1
22136   cat conftest.err >&5
22137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138   (exit $ac_status); } &&
22139          { ac_try='test -z "$ac_c_werror_flag"
22140                          || test ! -s conftest.err'
22141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142   (eval $ac_try) 2>&5
22143   ac_status=$?
22144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145   (exit $ac_status); }; } &&
22146          { ac_try='test -s conftest.$ac_objext'
22147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148   (eval $ac_try) 2>&5
22149   ac_status=$?
22150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151   (exit $ac_status); }; }; then
22152   ac_cv_type_daddr_t=yes
22153 else
22154   echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22156
22157 ac_cv_type_daddr_t=no
22158 fi
22159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22160 fi
22161 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22162 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22163 if test $ac_cv_type_daddr_t = yes; then
22164   :
22165 else
22166
22167 cat >>confdefs.h <<_ACEOF
22168 #define daddr_t long
22169 _ACEOF
22170
22171 fi
22172
22173 echo "$as_me:$LINENO: checking for major_t" >&5
22174 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22175 if test "${ac_cv_type_major_t+set}" = set; then
22176   echo $ECHO_N "(cached) $ECHO_C" >&6
22177 else
22178   cat >conftest.$ac_ext <<_ACEOF
22179 /* confdefs.h.  */
22180 _ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h.  */
22184 $ac_includes_default
22185 int
22186 main ()
22187 {
22188 if ((major_t *) 0)
22189   return 0;
22190 if (sizeof (major_t))
22191   return 0;
22192   ;
22193   return 0;
22194 }
22195 _ACEOF
22196 rm -f conftest.$ac_objext
22197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22198   (eval $ac_compile) 2>conftest.er1
22199   ac_status=$?
22200   grep -v '^ *+' conftest.er1 >conftest.err
22201   rm -f conftest.er1
22202   cat conftest.err >&5
22203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204   (exit $ac_status); } &&
22205          { ac_try='test -z "$ac_c_werror_flag"
22206                          || test ! -s conftest.err'
22207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22208   (eval $ac_try) 2>&5
22209   ac_status=$?
22210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211   (exit $ac_status); }; } &&
22212          { ac_try='test -s conftest.$ac_objext'
22213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22214   (eval $ac_try) 2>&5
22215   ac_status=$?
22216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217   (exit $ac_status); }; }; then
22218   ac_cv_type_major_t=yes
22219 else
22220   echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22222
22223 ac_cv_type_major_t=no
22224 fi
22225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22226 fi
22227 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22228 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22229 if test $ac_cv_type_major_t = yes; then
22230   :
22231 else
22232
22233 cat >>confdefs.h <<_ACEOF
22234 #define major_t int
22235 _ACEOF
22236
22237 fi
22238
22239 echo "$as_me:$LINENO: checking for minor_t" >&5
22240 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22241 if test "${ac_cv_type_minor_t+set}" = set; then
22242   echo $ECHO_N "(cached) $ECHO_C" >&6
22243 else
22244   cat >conftest.$ac_ext <<_ACEOF
22245 /* confdefs.h.  */
22246 _ACEOF
22247 cat confdefs.h >>conftest.$ac_ext
22248 cat >>conftest.$ac_ext <<_ACEOF
22249 /* end confdefs.h.  */
22250 $ac_includes_default
22251 int
22252 main ()
22253 {
22254 if ((minor_t *) 0)
22255   return 0;
22256 if (sizeof (minor_t))
22257   return 0;
22258   ;
22259   return 0;
22260 }
22261 _ACEOF
22262 rm -f conftest.$ac_objext
22263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22264   (eval $ac_compile) 2>conftest.er1
22265   ac_status=$?
22266   grep -v '^ *+' conftest.er1 >conftest.err
22267   rm -f conftest.er1
22268   cat conftest.err >&5
22269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270   (exit $ac_status); } &&
22271          { ac_try='test -z "$ac_c_werror_flag"
22272                          || test ! -s conftest.err'
22273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22274   (eval $ac_try) 2>&5
22275   ac_status=$?
22276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277   (exit $ac_status); }; } &&
22278          { ac_try='test -s conftest.$ac_objext'
22279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280   (eval $ac_try) 2>&5
22281   ac_status=$?
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); }; }; then
22284   ac_cv_type_minor_t=yes
22285 else
22286   echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22288
22289 ac_cv_type_minor_t=no
22290 fi
22291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22292 fi
22293 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22294 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22295 if test $ac_cv_type_minor_t = yes; then
22296   :
22297 else
22298
22299 cat >>confdefs.h <<_ACEOF
22300 #define minor_t int
22301 _ACEOF
22302
22303 fi
22304
22305 echo "$as_me:$LINENO: checking for ssize_t" >&5
22306 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22307 if test "${ac_cv_type_ssize_t+set}" = set; then
22308   echo $ECHO_N "(cached) $ECHO_C" >&6
22309 else
22310   cat >conftest.$ac_ext <<_ACEOF
22311 /* confdefs.h.  */
22312 _ACEOF
22313 cat confdefs.h >>conftest.$ac_ext
22314 cat >>conftest.$ac_ext <<_ACEOF
22315 /* end confdefs.h.  */
22316 $ac_includes_default
22317 int
22318 main ()
22319 {
22320 if ((ssize_t *) 0)
22321   return 0;
22322 if (sizeof (ssize_t))
22323   return 0;
22324   ;
22325   return 0;
22326 }
22327 _ACEOF
22328 rm -f conftest.$ac_objext
22329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22330   (eval $ac_compile) 2>conftest.er1
22331   ac_status=$?
22332   grep -v '^ *+' conftest.er1 >conftest.err
22333   rm -f conftest.er1
22334   cat conftest.err >&5
22335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336   (exit $ac_status); } &&
22337          { ac_try='test -z "$ac_c_werror_flag"
22338                          || test ! -s conftest.err'
22339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22340   (eval $ac_try) 2>&5
22341   ac_status=$?
22342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343   (exit $ac_status); }; } &&
22344          { ac_try='test -s conftest.$ac_objext'
22345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22346   (eval $ac_try) 2>&5
22347   ac_status=$?
22348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349   (exit $ac_status); }; }; then
22350   ac_cv_type_ssize_t=yes
22351 else
22352   echo "$as_me: failed program was:" >&5
22353 sed 's/^/| /' conftest.$ac_ext >&5
22354
22355 ac_cv_type_ssize_t=no
22356 fi
22357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22358 fi
22359 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22360 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22361 if test $ac_cv_type_ssize_t = yes; then
22362   :
22363 else
22364
22365 cat >>confdefs.h <<_ACEOF
22366 #define ssize_t int
22367 _ACEOF
22368
22369 fi
22370
22371 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22372 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22373 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22374   echo $ECHO_N "(cached) $ECHO_C" >&6
22375 else
22376   cat >conftest.$ac_ext <<_ACEOF
22377 /* confdefs.h.  */
22378 _ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h.  */
22382 $ac_includes_default
22383 int
22384 main ()
22385 {
22386 static struct stat ac_aggr;
22387 if (ac_aggr.st_blocks)
22388 return 0;
22389   ;
22390   return 0;
22391 }
22392 _ACEOF
22393 rm -f conftest.$ac_objext
22394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22395   (eval $ac_compile) 2>conftest.er1
22396   ac_status=$?
22397   grep -v '^ *+' conftest.er1 >conftest.err
22398   rm -f conftest.er1
22399   cat conftest.err >&5
22400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401   (exit $ac_status); } &&
22402          { ac_try='test -z "$ac_c_werror_flag"
22403                          || test ! -s conftest.err'
22404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405   (eval $ac_try) 2>&5
22406   ac_status=$?
22407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408   (exit $ac_status); }; } &&
22409          { ac_try='test -s conftest.$ac_objext'
22410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22411   (eval $ac_try) 2>&5
22412   ac_status=$?
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); }; }; then
22415   ac_cv_member_struct_stat_st_blocks=yes
22416 else
22417   echo "$as_me: failed program was:" >&5
22418 sed 's/^/| /' conftest.$ac_ext >&5
22419
22420 cat >conftest.$ac_ext <<_ACEOF
22421 /* confdefs.h.  */
22422 _ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h.  */
22426 $ac_includes_default
22427 int
22428 main ()
22429 {
22430 static struct stat ac_aggr;
22431 if (sizeof ac_aggr.st_blocks)
22432 return 0;
22433   ;
22434   return 0;
22435 }
22436 _ACEOF
22437 rm -f conftest.$ac_objext
22438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22439   (eval $ac_compile) 2>conftest.er1
22440   ac_status=$?
22441   grep -v '^ *+' conftest.er1 >conftest.err
22442   rm -f conftest.er1
22443   cat conftest.err >&5
22444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445   (exit $ac_status); } &&
22446          { ac_try='test -z "$ac_c_werror_flag"
22447                          || test ! -s conftest.err'
22448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22449   (eval $ac_try) 2>&5
22450   ac_status=$?
22451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452   (exit $ac_status); }; } &&
22453          { ac_try='test -s conftest.$ac_objext'
22454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22455   (eval $ac_try) 2>&5
22456   ac_status=$?
22457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458   (exit $ac_status); }; }; then
22459   ac_cv_member_struct_stat_st_blocks=yes
22460 else
22461   echo "$as_me: failed program was:" >&5
22462 sed 's/^/| /' conftest.$ac_ext >&5
22463
22464 ac_cv_member_struct_stat_st_blocks=no
22465 fi
22466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22467 fi
22468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22469 fi
22470 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22471 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22472 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22473
22474 cat >>confdefs.h <<_ACEOF
22475 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22476 _ACEOF
22477
22478
22479 cat >>confdefs.h <<\_ACEOF
22480 #define HAVE_ST_BLOCKS 1
22481 _ACEOF
22482
22483 else
22484   case $LIBOBJS in
22485     "fileblocks.$ac_objext"   | \
22486   *" fileblocks.$ac_objext"   | \
22487     "fileblocks.$ac_objext "* | \
22488   *" fileblocks.$ac_objext "* ) ;;
22489   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22490 esac
22491
22492 fi
22493
22494
22495
22496 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22497 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22498 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22499   echo $ECHO_N "(cached) $ECHO_C" >&6
22500 else
22501   cat >conftest.$ac_ext <<_ACEOF
22502 /* confdefs.h.  */
22503 _ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h.  */
22507 $ac_includes_default
22508 int
22509 main ()
22510 {
22511 static struct stat ac_aggr;
22512 if (ac_aggr.st_rdev)
22513 return 0;
22514   ;
22515   return 0;
22516 }
22517 _ACEOF
22518 rm -f conftest.$ac_objext
22519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22520   (eval $ac_compile) 2>conftest.er1
22521   ac_status=$?
22522   grep -v '^ *+' conftest.er1 >conftest.err
22523   rm -f conftest.er1
22524   cat conftest.err >&5
22525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526   (exit $ac_status); } &&
22527          { ac_try='test -z "$ac_c_werror_flag"
22528                          || test ! -s conftest.err'
22529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22530   (eval $ac_try) 2>&5
22531   ac_status=$?
22532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533   (exit $ac_status); }; } &&
22534          { ac_try='test -s conftest.$ac_objext'
22535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22536   (eval $ac_try) 2>&5
22537   ac_status=$?
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); }; }; then
22540   ac_cv_member_struct_stat_st_rdev=yes
22541 else
22542   echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.$ac_ext >&5
22544
22545 cat >conftest.$ac_ext <<_ACEOF
22546 /* confdefs.h.  */
22547 _ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h.  */
22551 $ac_includes_default
22552 int
22553 main ()
22554 {
22555 static struct stat ac_aggr;
22556 if (sizeof ac_aggr.st_rdev)
22557 return 0;
22558   ;
22559   return 0;
22560 }
22561 _ACEOF
22562 rm -f conftest.$ac_objext
22563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22564   (eval $ac_compile) 2>conftest.er1
22565   ac_status=$?
22566   grep -v '^ *+' conftest.er1 >conftest.err
22567   rm -f conftest.er1
22568   cat conftest.err >&5
22569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570   (exit $ac_status); } &&
22571          { ac_try='test -z "$ac_c_werror_flag"
22572                          || test ! -s conftest.err'
22573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574   (eval $ac_try) 2>&5
22575   ac_status=$?
22576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577   (exit $ac_status); }; } &&
22578          { ac_try='test -s conftest.$ac_objext'
22579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580   (eval $ac_try) 2>&5
22581   ac_status=$?
22582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583   (exit $ac_status); }; }; then
22584   ac_cv_member_struct_stat_st_rdev=yes
22585 else
22586   echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22588
22589 ac_cv_member_struct_stat_st_rdev=no
22590 fi
22591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22592 fi
22593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22594 fi
22595 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22596 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22597 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22598
22599 cat >>confdefs.h <<_ACEOF
22600 #define HAVE_STRUCT_STAT_ST_RDEV 1
22601 _ACEOF
22602
22603
22604 cat >>confdefs.h <<\_ACEOF
22605 #define HAVE_ST_RDEV 1
22606 _ACEOF
22607
22608 fi
22609
22610
22611 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22612 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22613 if test "${ac_cv_struct_tm+set}" = set; then
22614   echo $ECHO_N "(cached) $ECHO_C" >&6
22615 else
22616   cat >conftest.$ac_ext <<_ACEOF
22617 /* confdefs.h.  */
22618 _ACEOF
22619 cat confdefs.h >>conftest.$ac_ext
22620 cat >>conftest.$ac_ext <<_ACEOF
22621 /* end confdefs.h.  */
22622 #include <sys/types.h>
22623 #include <time.h>
22624
22625 int
22626 main ()
22627 {
22628 struct tm *tp; tp->tm_sec;
22629   ;
22630   return 0;
22631 }
22632 _ACEOF
22633 rm -f conftest.$ac_objext
22634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22635   (eval $ac_compile) 2>conftest.er1
22636   ac_status=$?
22637   grep -v '^ *+' conftest.er1 >conftest.err
22638   rm -f conftest.er1
22639   cat conftest.err >&5
22640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641   (exit $ac_status); } &&
22642          { ac_try='test -z "$ac_c_werror_flag"
22643                          || test ! -s conftest.err'
22644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22645   (eval $ac_try) 2>&5
22646   ac_status=$?
22647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648   (exit $ac_status); }; } &&
22649          { ac_try='test -s conftest.$ac_objext'
22650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22651   (eval $ac_try) 2>&5
22652   ac_status=$?
22653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654   (exit $ac_status); }; }; then
22655   ac_cv_struct_tm=time.h
22656 else
22657   echo "$as_me: failed program was:" >&5
22658 sed 's/^/| /' conftest.$ac_ext >&5
22659
22660 ac_cv_struct_tm=sys/time.h
22661 fi
22662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22663 fi
22664 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22665 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22666 if test $ac_cv_struct_tm = sys/time.h; then
22667
22668 cat >>confdefs.h <<\_ACEOF
22669 #define TM_IN_SYS_TIME 1
22670 _ACEOF
22671
22672 fi
22673
22674 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22675 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22676 if test "${ac_cv_c_const+set}" = set; then
22677   echo $ECHO_N "(cached) $ECHO_C" >&6
22678 else
22679   cat >conftest.$ac_ext <<_ACEOF
22680 /* confdefs.h.  */
22681 _ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>conftest.$ac_ext <<_ACEOF
22684 /* end confdefs.h.  */
22685
22686 int
22687 main ()
22688 {
22689 /* FIXME: Include the comments suggested by Paul. */
22690 #ifndef __cplusplus
22691   /* Ultrix mips cc rejects this.  */
22692   typedef int charset[2];
22693   const charset x;
22694   /* SunOS 4.1.1 cc rejects this.  */
22695   char const *const *ccp;
22696   char **p;
22697   /* NEC SVR4.0.2 mips cc rejects this.  */
22698   struct point {int x, y;};
22699   static struct point const zero = {0,0};
22700   /* AIX XL C 1.02.0.0 rejects this.
22701      It does not let you subtract one const X* pointer from another in
22702      an arm of an if-expression whose if-part is not a constant
22703      expression */
22704   const char *g = "string";
22705   ccp = &g + (g ? g-g : 0);
22706   /* HPUX 7.0 cc rejects these. */
22707   ++ccp;
22708   p = (char**) ccp;
22709   ccp = (char const *const *) p;
22710   { /* SCO 3.2v4 cc rejects this.  */
22711     char *t;
22712     char const *s = 0 ? (char *) 0 : (char const *) 0;
22713
22714     *t++ = 0;
22715   }
22716   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22717     int x[] = {25, 17};
22718     const int *foo = &x[0];
22719     ++foo;
22720   }
22721   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22722     typedef const int *iptr;
22723     iptr p = 0;
22724     ++p;
22725   }
22726   { /* AIX XL C 1.02.0.0 rejects this saying
22727        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22728     struct s { int j; const int *ap[3]; };
22729     struct s *b; b->j = 5;
22730   }
22731   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22732     const int foo = 10;
22733   }
22734 #endif
22735
22736   ;
22737   return 0;
22738 }
22739 _ACEOF
22740 rm -f conftest.$ac_objext
22741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22742   (eval $ac_compile) 2>conftest.er1
22743   ac_status=$?
22744   grep -v '^ *+' conftest.er1 >conftest.err
22745   rm -f conftest.er1
22746   cat conftest.err >&5
22747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748   (exit $ac_status); } &&
22749          { ac_try='test -z "$ac_c_werror_flag"
22750                          || test ! -s conftest.err'
22751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752   (eval $ac_try) 2>&5
22753   ac_status=$?
22754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755   (exit $ac_status); }; } &&
22756          { ac_try='test -s conftest.$ac_objext'
22757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22758   (eval $ac_try) 2>&5
22759   ac_status=$?
22760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761   (exit $ac_status); }; }; then
22762   ac_cv_c_const=yes
22763 else
22764   echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22766
22767 ac_cv_c_const=no
22768 fi
22769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22770 fi
22771 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22772 echo "${ECHO_T}$ac_cv_c_const" >&6
22773 if test $ac_cv_c_const = no; then
22774
22775 cat >>confdefs.h <<\_ACEOF
22776 #define const
22777 _ACEOF
22778
22779 fi
22780
22781
22782
22783 echo "$as_me:$LINENO: checking for char" >&5
22784 echo $ECHO_N "checking for char... $ECHO_C" >&6
22785 if test "${ac_cv_type_char+set}" = set; then
22786   echo $ECHO_N "(cached) $ECHO_C" >&6
22787 else
22788   cat >conftest.$ac_ext <<_ACEOF
22789 /* confdefs.h.  */
22790 _ACEOF
22791 cat confdefs.h >>conftest.$ac_ext
22792 cat >>conftest.$ac_ext <<_ACEOF
22793 /* end confdefs.h.  */
22794 $ac_includes_default
22795 int
22796 main ()
22797 {
22798 if ((char *) 0)
22799   return 0;
22800 if (sizeof (char))
22801   return 0;
22802   ;
22803   return 0;
22804 }
22805 _ACEOF
22806 rm -f conftest.$ac_objext
22807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22808   (eval $ac_compile) 2>conftest.er1
22809   ac_status=$?
22810   grep -v '^ *+' conftest.er1 >conftest.err
22811   rm -f conftest.er1
22812   cat conftest.err >&5
22813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814   (exit $ac_status); } &&
22815          { ac_try='test -z "$ac_c_werror_flag"
22816                          || test ! -s conftest.err'
22817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22818   (eval $ac_try) 2>&5
22819   ac_status=$?
22820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821   (exit $ac_status); }; } &&
22822          { ac_try='test -s conftest.$ac_objext'
22823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824   (eval $ac_try) 2>&5
22825   ac_status=$?
22826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827   (exit $ac_status); }; }; then
22828   ac_cv_type_char=yes
22829 else
22830   echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22832
22833 ac_cv_type_char=no
22834 fi
22835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22836 fi
22837 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22838 echo "${ECHO_T}$ac_cv_type_char" >&6
22839
22840 echo "$as_me:$LINENO: checking size of char" >&5
22841 echo $ECHO_N "checking size of char... $ECHO_C" >&6
22842 if test "${ac_cv_sizeof_char+set}" = set; then
22843   echo $ECHO_N "(cached) $ECHO_C" >&6
22844 else
22845   if test "$ac_cv_type_char" = yes; then
22846   # The cast to unsigned long works around a bug in the HP C Compiler
22847   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22848   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22849   # This bug is HP SR number 8606223364.
22850   if test "$cross_compiling" = yes; then
22851   # Depending upon the size, compute the lo and hi bounds.
22852 cat >conftest.$ac_ext <<_ACEOF
22853 /* confdefs.h.  */
22854 _ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h.  */
22858 $ac_includes_default
22859 int
22860 main ()
22861 {
22862 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
22863 test_array [0] = 0
22864
22865   ;
22866   return 0;
22867 }
22868 _ACEOF
22869 rm -f conftest.$ac_objext
22870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22871   (eval $ac_compile) 2>conftest.er1
22872   ac_status=$?
22873   grep -v '^ *+' conftest.er1 >conftest.err
22874   rm -f conftest.er1
22875   cat conftest.err >&5
22876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877   (exit $ac_status); } &&
22878          { ac_try='test -z "$ac_c_werror_flag"
22879                          || test ! -s conftest.err'
22880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22881   (eval $ac_try) 2>&5
22882   ac_status=$?
22883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884   (exit $ac_status); }; } &&
22885          { ac_try='test -s conftest.$ac_objext'
22886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22887   (eval $ac_try) 2>&5
22888   ac_status=$?
22889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890   (exit $ac_status); }; }; then
22891   ac_lo=0 ac_mid=0
22892   while :; do
22893     cat >conftest.$ac_ext <<_ACEOF
22894 /* confdefs.h.  */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h.  */
22899 $ac_includes_default
22900 int
22901 main ()
22902 {
22903 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22904 test_array [0] = 0
22905
22906   ;
22907   return 0;
22908 }
22909 _ACEOF
22910 rm -f conftest.$ac_objext
22911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22912   (eval $ac_compile) 2>conftest.er1
22913   ac_status=$?
22914   grep -v '^ *+' conftest.er1 >conftest.err
22915   rm -f conftest.er1
22916   cat conftest.err >&5
22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918   (exit $ac_status); } &&
22919          { ac_try='test -z "$ac_c_werror_flag"
22920                          || test ! -s conftest.err'
22921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922   (eval $ac_try) 2>&5
22923   ac_status=$?
22924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925   (exit $ac_status); }; } &&
22926          { ac_try='test -s conftest.$ac_objext'
22927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928   (eval $ac_try) 2>&5
22929   ac_status=$?
22930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931   (exit $ac_status); }; }; then
22932   ac_hi=$ac_mid; break
22933 else
22934   echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22936
22937 ac_lo=`expr $ac_mid + 1`
22938                     if test $ac_lo -le $ac_mid; then
22939                       ac_lo= ac_hi=
22940                       break
22941                     fi
22942                     ac_mid=`expr 2 '*' $ac_mid + 1`
22943 fi
22944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22945   done
22946 else
22947   echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22949
22950 cat >conftest.$ac_ext <<_ACEOF
22951 /* confdefs.h.  */
22952 _ACEOF
22953 cat confdefs.h >>conftest.$ac_ext
22954 cat >>conftest.$ac_ext <<_ACEOF
22955 /* end confdefs.h.  */
22956 $ac_includes_default
22957 int
22958 main ()
22959 {
22960 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
22961 test_array [0] = 0
22962
22963   ;
22964   return 0;
22965 }
22966 _ACEOF
22967 rm -f conftest.$ac_objext
22968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22969   (eval $ac_compile) 2>conftest.er1
22970   ac_status=$?
22971   grep -v '^ *+' conftest.er1 >conftest.err
22972   rm -f conftest.er1
22973   cat conftest.err >&5
22974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975   (exit $ac_status); } &&
22976          { ac_try='test -z "$ac_c_werror_flag"
22977                          || test ! -s conftest.err'
22978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22979   (eval $ac_try) 2>&5
22980   ac_status=$?
22981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982   (exit $ac_status); }; } &&
22983          { ac_try='test -s conftest.$ac_objext'
22984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22985   (eval $ac_try) 2>&5
22986   ac_status=$?
22987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988   (exit $ac_status); }; }; then
22989   ac_hi=-1 ac_mid=-1
22990   while :; do
22991     cat >conftest.$ac_ext <<_ACEOF
22992 /* confdefs.h.  */
22993 _ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h.  */
22997 $ac_includes_default
22998 int
22999 main ()
23000 {
23001 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23002 test_array [0] = 0
23003
23004   ;
23005   return 0;
23006 }
23007 _ACEOF
23008 rm -f conftest.$ac_objext
23009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23010   (eval $ac_compile) 2>conftest.er1
23011   ac_status=$?
23012   grep -v '^ *+' conftest.er1 >conftest.err
23013   rm -f conftest.er1
23014   cat conftest.err >&5
23015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016   (exit $ac_status); } &&
23017          { ac_try='test -z "$ac_c_werror_flag"
23018                          || test ! -s conftest.err'
23019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23020   (eval $ac_try) 2>&5
23021   ac_status=$?
23022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); }; } &&
23024          { ac_try='test -s conftest.$ac_objext'
23025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23026   (eval $ac_try) 2>&5
23027   ac_status=$?
23028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029   (exit $ac_status); }; }; then
23030   ac_lo=$ac_mid; break
23031 else
23032   echo "$as_me: failed program was:" >&5
23033 sed 's/^/| /' conftest.$ac_ext >&5
23034
23035 ac_hi=`expr '(' $ac_mid ')' - 1`
23036                        if test $ac_mid -le $ac_hi; then
23037                          ac_lo= ac_hi=
23038                          break
23039                        fi
23040                        ac_mid=`expr 2 '*' $ac_mid`
23041 fi
23042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23043   done
23044 else
23045   echo "$as_me: failed program was:" >&5
23046 sed 's/^/| /' conftest.$ac_ext >&5
23047
23048 ac_lo= ac_hi=
23049 fi
23050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23051 fi
23052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23053 # Binary search between lo and hi bounds.
23054 while test "x$ac_lo" != "x$ac_hi"; do
23055   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23056   cat >conftest.$ac_ext <<_ACEOF
23057 /* confdefs.h.  */
23058 _ACEOF
23059 cat confdefs.h >>conftest.$ac_ext
23060 cat >>conftest.$ac_ext <<_ACEOF
23061 /* end confdefs.h.  */
23062 $ac_includes_default
23063 int
23064 main ()
23065 {
23066 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23067 test_array [0] = 0
23068
23069   ;
23070   return 0;
23071 }
23072 _ACEOF
23073 rm -f conftest.$ac_objext
23074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23075   (eval $ac_compile) 2>conftest.er1
23076   ac_status=$?
23077   grep -v '^ *+' conftest.er1 >conftest.err
23078   rm -f conftest.er1
23079   cat conftest.err >&5
23080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081   (exit $ac_status); } &&
23082          { ac_try='test -z "$ac_c_werror_flag"
23083                          || test ! -s conftest.err'
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); }; } &&
23089          { ac_try='test -s conftest.$ac_objext'
23090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091   (eval $ac_try) 2>&5
23092   ac_status=$?
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); }; }; then
23095   ac_hi=$ac_mid
23096 else
23097   echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23099
23100 ac_lo=`expr '(' $ac_mid ')' + 1`
23101 fi
23102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23103 done
23104 case $ac_lo in
23105 ?*) ac_cv_sizeof_char=$ac_lo;;
23106 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23107 See \`config.log' for more details." >&5
23108 echo "$as_me: error: cannot compute sizeof (char), 77
23109 See \`config.log' for more details." >&2;}
23110    { (exit 1); exit 1; }; } ;;
23111 esac
23112 else
23113   if test "$cross_compiling" = yes; then
23114   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23115 See \`config.log' for more details." >&5
23116 echo "$as_me: error: cannot run test program while cross compiling
23117 See \`config.log' for more details." >&2;}
23118    { (exit 1); exit 1; }; }
23119 else
23120   cat >conftest.$ac_ext <<_ACEOF
23121 /* confdefs.h.  */
23122 _ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h.  */
23126 $ac_includes_default
23127 long longval () { return (long) (sizeof (char)); }
23128 unsigned long ulongval () { return (long) (sizeof (char)); }
23129 #include <stdio.h>
23130 #include <stdlib.h>
23131 int
23132 main ()
23133 {
23134
23135   FILE *f = fopen ("conftest.val", "w");
23136   if (! f)
23137     exit (1);
23138   if (((long) (sizeof (char))) < 0)
23139     {
23140       long i = longval ();
23141       if (i != ((long) (sizeof (char))))
23142         exit (1);
23143       fprintf (f, "%ld\n", i);
23144     }
23145   else
23146     {
23147       unsigned long i = ulongval ();
23148       if (i != ((long) (sizeof (char))))
23149         exit (1);
23150       fprintf (f, "%lu\n", i);
23151     }
23152   exit (ferror (f) || fclose (f) != 0);
23153
23154   ;
23155   return 0;
23156 }
23157 _ACEOF
23158 rm -f conftest$ac_exeext
23159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23160   (eval $ac_link) 2>&5
23161   ac_status=$?
23162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23165   (eval $ac_try) 2>&5
23166   ac_status=$?
23167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168   (exit $ac_status); }; }; then
23169   ac_cv_sizeof_char=`cat conftest.val`
23170 else
23171   echo "$as_me: program exited with status $ac_status" >&5
23172 echo "$as_me: failed program was:" >&5
23173 sed 's/^/| /' conftest.$ac_ext >&5
23174
23175 ( exit $ac_status )
23176 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23177 See \`config.log' for more details." >&5
23178 echo "$as_me: error: cannot compute sizeof (char), 77
23179 See \`config.log' for more details." >&2;}
23180    { (exit 1); exit 1; }; }
23181 fi
23182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23183 fi
23184 fi
23185 rm -f conftest.val
23186 else
23187   ac_cv_sizeof_char=0
23188 fi
23189 fi
23190 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23191 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23192 cat >>confdefs.h <<_ACEOF
23193 #define SIZEOF_CHAR $ac_cv_sizeof_char
23194 _ACEOF
23195
23196
23197 echo "$as_me:$LINENO: checking for short int" >&5
23198 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23199 if test "${ac_cv_type_short_int+set}" = set; then
23200   echo $ECHO_N "(cached) $ECHO_C" >&6
23201 else
23202   cat >conftest.$ac_ext <<_ACEOF
23203 /* confdefs.h.  */
23204 _ACEOF
23205 cat confdefs.h >>conftest.$ac_ext
23206 cat >>conftest.$ac_ext <<_ACEOF
23207 /* end confdefs.h.  */
23208 $ac_includes_default
23209 int
23210 main ()
23211 {
23212 if ((short int *) 0)
23213   return 0;
23214 if (sizeof (short int))
23215   return 0;
23216   ;
23217   return 0;
23218 }
23219 _ACEOF
23220 rm -f conftest.$ac_objext
23221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23222   (eval $ac_compile) 2>conftest.er1
23223   ac_status=$?
23224   grep -v '^ *+' conftest.er1 >conftest.err
23225   rm -f conftest.er1
23226   cat conftest.err >&5
23227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228   (exit $ac_status); } &&
23229          { ac_try='test -z "$ac_c_werror_flag"
23230                          || test ! -s conftest.err'
23231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23232   (eval $ac_try) 2>&5
23233   ac_status=$?
23234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235   (exit $ac_status); }; } &&
23236          { ac_try='test -s conftest.$ac_objext'
23237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238   (eval $ac_try) 2>&5
23239   ac_status=$?
23240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241   (exit $ac_status); }; }; then
23242   ac_cv_type_short_int=yes
23243 else
23244   echo "$as_me: failed program was:" >&5
23245 sed 's/^/| /' conftest.$ac_ext >&5
23246
23247 ac_cv_type_short_int=no
23248 fi
23249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23250 fi
23251 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23252 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23253
23254 echo "$as_me:$LINENO: checking size of short int" >&5
23255 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23256 if test "${ac_cv_sizeof_short_int+set}" = set; then
23257   echo $ECHO_N "(cached) $ECHO_C" >&6
23258 else
23259   if test "$ac_cv_type_short_int" = yes; then
23260   # The cast to unsigned long works around a bug in the HP C Compiler
23261   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23262   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23263   # This bug is HP SR number 8606223364.
23264   if test "$cross_compiling" = yes; then
23265   # Depending upon the size, compute the lo and hi bounds.
23266 cat >conftest.$ac_ext <<_ACEOF
23267 /* confdefs.h.  */
23268 _ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h.  */
23272 $ac_includes_default
23273 int
23274 main ()
23275 {
23276 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23277 test_array [0] = 0
23278
23279   ;
23280   return 0;
23281 }
23282 _ACEOF
23283 rm -f conftest.$ac_objext
23284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23285   (eval $ac_compile) 2>conftest.er1
23286   ac_status=$?
23287   grep -v '^ *+' conftest.er1 >conftest.err
23288   rm -f conftest.er1
23289   cat conftest.err >&5
23290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291   (exit $ac_status); } &&
23292          { ac_try='test -z "$ac_c_werror_flag"
23293                          || test ! -s conftest.err'
23294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295   (eval $ac_try) 2>&5
23296   ac_status=$?
23297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298   (exit $ac_status); }; } &&
23299          { ac_try='test -s conftest.$ac_objext'
23300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301   (eval $ac_try) 2>&5
23302   ac_status=$?
23303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304   (exit $ac_status); }; }; then
23305   ac_lo=0 ac_mid=0
23306   while :; do
23307     cat >conftest.$ac_ext <<_ACEOF
23308 /* confdefs.h.  */
23309 _ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h.  */
23313 $ac_includes_default
23314 int
23315 main ()
23316 {
23317 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23318 test_array [0] = 0
23319
23320   ;
23321   return 0;
23322 }
23323 _ACEOF
23324 rm -f conftest.$ac_objext
23325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23326   (eval $ac_compile) 2>conftest.er1
23327   ac_status=$?
23328   grep -v '^ *+' conftest.er1 >conftest.err
23329   rm -f conftest.er1
23330   cat conftest.err >&5
23331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332   (exit $ac_status); } &&
23333          { ac_try='test -z "$ac_c_werror_flag"
23334                          || test ! -s conftest.err'
23335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336   (eval $ac_try) 2>&5
23337   ac_status=$?
23338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339   (exit $ac_status); }; } &&
23340          { ac_try='test -s conftest.$ac_objext'
23341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23342   (eval $ac_try) 2>&5
23343   ac_status=$?
23344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345   (exit $ac_status); }; }; then
23346   ac_hi=$ac_mid; break
23347 else
23348   echo "$as_me: failed program was:" >&5
23349 sed 's/^/| /' conftest.$ac_ext >&5
23350
23351 ac_lo=`expr $ac_mid + 1`
23352                     if test $ac_lo -le $ac_mid; then
23353                       ac_lo= ac_hi=
23354                       break
23355                     fi
23356                     ac_mid=`expr 2 '*' $ac_mid + 1`
23357 fi
23358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23359   done
23360 else
23361   echo "$as_me: failed program was:" >&5
23362 sed 's/^/| /' conftest.$ac_ext >&5
23363
23364 cat >conftest.$ac_ext <<_ACEOF
23365 /* confdefs.h.  */
23366 _ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h.  */
23370 $ac_includes_default
23371 int
23372 main ()
23373 {
23374 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23375 test_array [0] = 0
23376
23377   ;
23378   return 0;
23379 }
23380 _ACEOF
23381 rm -f conftest.$ac_objext
23382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23383   (eval $ac_compile) 2>conftest.er1
23384   ac_status=$?
23385   grep -v '^ *+' conftest.er1 >conftest.err
23386   rm -f conftest.er1
23387   cat conftest.err >&5
23388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389   (exit $ac_status); } &&
23390          { ac_try='test -z "$ac_c_werror_flag"
23391                          || test ! -s conftest.err'
23392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23393   (eval $ac_try) 2>&5
23394   ac_status=$?
23395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396   (exit $ac_status); }; } &&
23397          { ac_try='test -s conftest.$ac_objext'
23398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23399   (eval $ac_try) 2>&5
23400   ac_status=$?
23401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402   (exit $ac_status); }; }; then
23403   ac_hi=-1 ac_mid=-1
23404   while :; do
23405     cat >conftest.$ac_ext <<_ACEOF
23406 /* confdefs.h.  */
23407 _ACEOF
23408 cat confdefs.h >>conftest.$ac_ext
23409 cat >>conftest.$ac_ext <<_ACEOF
23410 /* end confdefs.h.  */
23411 $ac_includes_default
23412 int
23413 main ()
23414 {
23415 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23416 test_array [0] = 0
23417
23418   ;
23419   return 0;
23420 }
23421 _ACEOF
23422 rm -f conftest.$ac_objext
23423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23424   (eval $ac_compile) 2>conftest.er1
23425   ac_status=$?
23426   grep -v '^ *+' conftest.er1 >conftest.err
23427   rm -f conftest.er1
23428   cat conftest.err >&5
23429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430   (exit $ac_status); } &&
23431          { ac_try='test -z "$ac_c_werror_flag"
23432                          || test ! -s conftest.err'
23433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434   (eval $ac_try) 2>&5
23435   ac_status=$?
23436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437   (exit $ac_status); }; } &&
23438          { ac_try='test -s conftest.$ac_objext'
23439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23440   (eval $ac_try) 2>&5
23441   ac_status=$?
23442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443   (exit $ac_status); }; }; then
23444   ac_lo=$ac_mid; break
23445 else
23446   echo "$as_me: failed program was:" >&5
23447 sed 's/^/| /' conftest.$ac_ext >&5
23448
23449 ac_hi=`expr '(' $ac_mid ')' - 1`
23450                        if test $ac_mid -le $ac_hi; then
23451                          ac_lo= ac_hi=
23452                          break
23453                        fi
23454                        ac_mid=`expr 2 '*' $ac_mid`
23455 fi
23456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23457   done
23458 else
23459   echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23461
23462 ac_lo= ac_hi=
23463 fi
23464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23465 fi
23466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23467 # Binary search between lo and hi bounds.
23468 while test "x$ac_lo" != "x$ac_hi"; do
23469   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23470   cat >conftest.$ac_ext <<_ACEOF
23471 /* confdefs.h.  */
23472 _ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h.  */
23476 $ac_includes_default
23477 int
23478 main ()
23479 {
23480 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23481 test_array [0] = 0
23482
23483   ;
23484   return 0;
23485 }
23486 _ACEOF
23487 rm -f conftest.$ac_objext
23488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23489   (eval $ac_compile) 2>conftest.er1
23490   ac_status=$?
23491   grep -v '^ *+' conftest.er1 >conftest.err
23492   rm -f conftest.er1
23493   cat conftest.err >&5
23494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495   (exit $ac_status); } &&
23496          { ac_try='test -z "$ac_c_werror_flag"
23497                          || test ! -s conftest.err'
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); }; } &&
23503          { ac_try='test -s conftest.$ac_objext'
23504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23505   (eval $ac_try) 2>&5
23506   ac_status=$?
23507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508   (exit $ac_status); }; }; then
23509   ac_hi=$ac_mid
23510 else
23511   echo "$as_me: failed program was:" >&5
23512 sed 's/^/| /' conftest.$ac_ext >&5
23513
23514 ac_lo=`expr '(' $ac_mid ')' + 1`
23515 fi
23516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23517 done
23518 case $ac_lo in
23519 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23520 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23521 See \`config.log' for more details." >&5
23522 echo "$as_me: error: cannot compute sizeof (short int), 77
23523 See \`config.log' for more details." >&2;}
23524    { (exit 1); exit 1; }; } ;;
23525 esac
23526 else
23527   if test "$cross_compiling" = yes; then
23528   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23529 See \`config.log' for more details." >&5
23530 echo "$as_me: error: cannot run test program while cross compiling
23531 See \`config.log' for more details." >&2;}
23532    { (exit 1); exit 1; }; }
23533 else
23534   cat >conftest.$ac_ext <<_ACEOF
23535 /* confdefs.h.  */
23536 _ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h.  */
23540 $ac_includes_default
23541 long longval () { return (long) (sizeof (short int)); }
23542 unsigned long ulongval () { return (long) (sizeof (short int)); }
23543 #include <stdio.h>
23544 #include <stdlib.h>
23545 int
23546 main ()
23547 {
23548
23549   FILE *f = fopen ("conftest.val", "w");
23550   if (! f)
23551     exit (1);
23552   if (((long) (sizeof (short int))) < 0)
23553     {
23554       long i = longval ();
23555       if (i != ((long) (sizeof (short int))))
23556         exit (1);
23557       fprintf (f, "%ld\n", i);
23558     }
23559   else
23560     {
23561       unsigned long i = ulongval ();
23562       if (i != ((long) (sizeof (short int))))
23563         exit (1);
23564       fprintf (f, "%lu\n", i);
23565     }
23566   exit (ferror (f) || fclose (f) != 0);
23567
23568   ;
23569   return 0;
23570 }
23571 _ACEOF
23572 rm -f conftest$ac_exeext
23573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23574   (eval $ac_link) 2>&5
23575   ac_status=$?
23576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23579   (eval $ac_try) 2>&5
23580   ac_status=$?
23581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582   (exit $ac_status); }; }; then
23583   ac_cv_sizeof_short_int=`cat conftest.val`
23584 else
23585   echo "$as_me: program exited with status $ac_status" >&5
23586 echo "$as_me: failed program was:" >&5
23587 sed 's/^/| /' conftest.$ac_ext >&5
23588
23589 ( exit $ac_status )
23590 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23591 See \`config.log' for more details." >&5
23592 echo "$as_me: error: cannot compute sizeof (short int), 77
23593 See \`config.log' for more details." >&2;}
23594    { (exit 1); exit 1; }; }
23595 fi
23596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23597 fi
23598 fi
23599 rm -f conftest.val
23600 else
23601   ac_cv_sizeof_short_int=0
23602 fi
23603 fi
23604 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23605 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23606 cat >>confdefs.h <<_ACEOF
23607 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23608 _ACEOF
23609
23610
23611 echo "$as_me:$LINENO: checking for int" >&5
23612 echo $ECHO_N "checking for int... $ECHO_C" >&6
23613 if test "${ac_cv_type_int+set}" = set; then
23614   echo $ECHO_N "(cached) $ECHO_C" >&6
23615 else
23616   cat >conftest.$ac_ext <<_ACEOF
23617 /* confdefs.h.  */
23618 _ACEOF
23619 cat confdefs.h >>conftest.$ac_ext
23620 cat >>conftest.$ac_ext <<_ACEOF
23621 /* end confdefs.h.  */
23622 $ac_includes_default
23623 int
23624 main ()
23625 {
23626 if ((int *) 0)
23627   return 0;
23628 if (sizeof (int))
23629   return 0;
23630   ;
23631   return 0;
23632 }
23633 _ACEOF
23634 rm -f conftest.$ac_objext
23635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23636   (eval $ac_compile) 2>conftest.er1
23637   ac_status=$?
23638   grep -v '^ *+' conftest.er1 >conftest.err
23639   rm -f conftest.er1
23640   cat conftest.err >&5
23641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642   (exit $ac_status); } &&
23643          { ac_try='test -z "$ac_c_werror_flag"
23644                          || test ! -s conftest.err'
23645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23646   (eval $ac_try) 2>&5
23647   ac_status=$?
23648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649   (exit $ac_status); }; } &&
23650          { ac_try='test -s conftest.$ac_objext'
23651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23652   (eval $ac_try) 2>&5
23653   ac_status=$?
23654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655   (exit $ac_status); }; }; then
23656   ac_cv_type_int=yes
23657 else
23658   echo "$as_me: failed program was:" >&5
23659 sed 's/^/| /' conftest.$ac_ext >&5
23660
23661 ac_cv_type_int=no
23662 fi
23663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23664 fi
23665 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23666 echo "${ECHO_T}$ac_cv_type_int" >&6
23667
23668 echo "$as_me:$LINENO: checking size of int" >&5
23669 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23670 if test "${ac_cv_sizeof_int+set}" = set; then
23671   echo $ECHO_N "(cached) $ECHO_C" >&6
23672 else
23673   if test "$ac_cv_type_int" = yes; then
23674   # The cast to unsigned long works around a bug in the HP C Compiler
23675   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23676   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23677   # This bug is HP SR number 8606223364.
23678   if test "$cross_compiling" = yes; then
23679   # Depending upon the size, compute the lo and hi bounds.
23680 cat >conftest.$ac_ext <<_ACEOF
23681 /* confdefs.h.  */
23682 _ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h.  */
23686 $ac_includes_default
23687 int
23688 main ()
23689 {
23690 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23691 test_array [0] = 0
23692
23693   ;
23694   return 0;
23695 }
23696 _ACEOF
23697 rm -f conftest.$ac_objext
23698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23699   (eval $ac_compile) 2>conftest.er1
23700   ac_status=$?
23701   grep -v '^ *+' conftest.er1 >conftest.err
23702   rm -f conftest.er1
23703   cat conftest.err >&5
23704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705   (exit $ac_status); } &&
23706          { ac_try='test -z "$ac_c_werror_flag"
23707                          || test ! -s conftest.err'
23708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23709   (eval $ac_try) 2>&5
23710   ac_status=$?
23711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712   (exit $ac_status); }; } &&
23713          { ac_try='test -s conftest.$ac_objext'
23714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715   (eval $ac_try) 2>&5
23716   ac_status=$?
23717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718   (exit $ac_status); }; }; then
23719   ac_lo=0 ac_mid=0
23720   while :; do
23721     cat >conftest.$ac_ext <<_ACEOF
23722 /* confdefs.h.  */
23723 _ACEOF
23724 cat confdefs.h >>conftest.$ac_ext
23725 cat >>conftest.$ac_ext <<_ACEOF
23726 /* end confdefs.h.  */
23727 $ac_includes_default
23728 int
23729 main ()
23730 {
23731 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23732 test_array [0] = 0
23733
23734   ;
23735   return 0;
23736 }
23737 _ACEOF
23738 rm -f conftest.$ac_objext
23739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23740   (eval $ac_compile) 2>conftest.er1
23741   ac_status=$?
23742   grep -v '^ *+' conftest.er1 >conftest.err
23743   rm -f conftest.er1
23744   cat conftest.err >&5
23745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746   (exit $ac_status); } &&
23747          { ac_try='test -z "$ac_c_werror_flag"
23748                          || test ! -s conftest.err'
23749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23750   (eval $ac_try) 2>&5
23751   ac_status=$?
23752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753   (exit $ac_status); }; } &&
23754          { ac_try='test -s conftest.$ac_objext'
23755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756   (eval $ac_try) 2>&5
23757   ac_status=$?
23758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759   (exit $ac_status); }; }; then
23760   ac_hi=$ac_mid; break
23761 else
23762   echo "$as_me: failed program was:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23764
23765 ac_lo=`expr $ac_mid + 1`
23766                     if test $ac_lo -le $ac_mid; then
23767                       ac_lo= ac_hi=
23768                       break
23769                     fi
23770                     ac_mid=`expr 2 '*' $ac_mid + 1`
23771 fi
23772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23773   done
23774 else
23775   echo "$as_me: failed program was:" >&5
23776 sed 's/^/| /' conftest.$ac_ext >&5
23777
23778 cat >conftest.$ac_ext <<_ACEOF
23779 /* confdefs.h.  */
23780 _ACEOF
23781 cat confdefs.h >>conftest.$ac_ext
23782 cat >>conftest.$ac_ext <<_ACEOF
23783 /* end confdefs.h.  */
23784 $ac_includes_default
23785 int
23786 main ()
23787 {
23788 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
23789 test_array [0] = 0
23790
23791   ;
23792   return 0;
23793 }
23794 _ACEOF
23795 rm -f conftest.$ac_objext
23796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23797   (eval $ac_compile) 2>conftest.er1
23798   ac_status=$?
23799   grep -v '^ *+' conftest.er1 >conftest.err
23800   rm -f conftest.er1
23801   cat conftest.err >&5
23802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803   (exit $ac_status); } &&
23804          { ac_try='test -z "$ac_c_werror_flag"
23805                          || test ! -s conftest.err'
23806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23807   (eval $ac_try) 2>&5
23808   ac_status=$?
23809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23810   (exit $ac_status); }; } &&
23811          { ac_try='test -s conftest.$ac_objext'
23812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813   (eval $ac_try) 2>&5
23814   ac_status=$?
23815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816   (exit $ac_status); }; }; then
23817   ac_hi=-1 ac_mid=-1
23818   while :; do
23819     cat >conftest.$ac_ext <<_ACEOF
23820 /* confdefs.h.  */
23821 _ACEOF
23822 cat confdefs.h >>conftest.$ac_ext
23823 cat >>conftest.$ac_ext <<_ACEOF
23824 /* end confdefs.h.  */
23825 $ac_includes_default
23826 int
23827 main ()
23828 {
23829 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
23830 test_array [0] = 0
23831
23832   ;
23833   return 0;
23834 }
23835 _ACEOF
23836 rm -f conftest.$ac_objext
23837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23838   (eval $ac_compile) 2>conftest.er1
23839   ac_status=$?
23840   grep -v '^ *+' conftest.er1 >conftest.err
23841   rm -f conftest.er1
23842   cat conftest.err >&5
23843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844   (exit $ac_status); } &&
23845          { ac_try='test -z "$ac_c_werror_flag"
23846                          || test ! -s conftest.err'
23847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23848   (eval $ac_try) 2>&5
23849   ac_status=$?
23850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851   (exit $ac_status); }; } &&
23852          { ac_try='test -s conftest.$ac_objext'
23853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23854   (eval $ac_try) 2>&5
23855   ac_status=$?
23856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857   (exit $ac_status); }; }; then
23858   ac_lo=$ac_mid; break
23859 else
23860   echo "$as_me: failed program was:" >&5
23861 sed 's/^/| /' conftest.$ac_ext >&5
23862
23863 ac_hi=`expr '(' $ac_mid ')' - 1`
23864                        if test $ac_mid -le $ac_hi; then
23865                          ac_lo= ac_hi=
23866                          break
23867                        fi
23868                        ac_mid=`expr 2 '*' $ac_mid`
23869 fi
23870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23871   done
23872 else
23873   echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23875
23876 ac_lo= ac_hi=
23877 fi
23878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23879 fi
23880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23881 # Binary search between lo and hi bounds.
23882 while test "x$ac_lo" != "x$ac_hi"; do
23883   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23884   cat >conftest.$ac_ext <<_ACEOF
23885 /* confdefs.h.  */
23886 _ACEOF
23887 cat confdefs.h >>conftest.$ac_ext
23888 cat >>conftest.$ac_ext <<_ACEOF
23889 /* end confdefs.h.  */
23890 $ac_includes_default
23891 int
23892 main ()
23893 {
23894 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23895 test_array [0] = 0
23896
23897   ;
23898   return 0;
23899 }
23900 _ACEOF
23901 rm -f conftest.$ac_objext
23902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23903   (eval $ac_compile) 2>conftest.er1
23904   ac_status=$?
23905   grep -v '^ *+' conftest.er1 >conftest.err
23906   rm -f conftest.er1
23907   cat conftest.err >&5
23908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909   (exit $ac_status); } &&
23910          { ac_try='test -z "$ac_c_werror_flag"
23911                          || test ! -s conftest.err'
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); }; } &&
23917          { ac_try='test -s conftest.$ac_objext'
23918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23919   (eval $ac_try) 2>&5
23920   ac_status=$?
23921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922   (exit $ac_status); }; }; then
23923   ac_hi=$ac_mid
23924 else
23925   echo "$as_me: failed program was:" >&5
23926 sed 's/^/| /' conftest.$ac_ext >&5
23927
23928 ac_lo=`expr '(' $ac_mid ')' + 1`
23929 fi
23930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23931 done
23932 case $ac_lo in
23933 ?*) ac_cv_sizeof_int=$ac_lo;;
23934 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23935 See \`config.log' for more details." >&5
23936 echo "$as_me: error: cannot compute sizeof (int), 77
23937 See \`config.log' for more details." >&2;}
23938    { (exit 1); exit 1; }; } ;;
23939 esac
23940 else
23941   if test "$cross_compiling" = yes; then
23942   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23943 See \`config.log' for more details." >&5
23944 echo "$as_me: error: cannot run test program while cross compiling
23945 See \`config.log' for more details." >&2;}
23946    { (exit 1); exit 1; }; }
23947 else
23948   cat >conftest.$ac_ext <<_ACEOF
23949 /* confdefs.h.  */
23950 _ACEOF
23951 cat confdefs.h >>conftest.$ac_ext
23952 cat >>conftest.$ac_ext <<_ACEOF
23953 /* end confdefs.h.  */
23954 $ac_includes_default
23955 long longval () { return (long) (sizeof (int)); }
23956 unsigned long ulongval () { return (long) (sizeof (int)); }
23957 #include <stdio.h>
23958 #include <stdlib.h>
23959 int
23960 main ()
23961 {
23962
23963   FILE *f = fopen ("conftest.val", "w");
23964   if (! f)
23965     exit (1);
23966   if (((long) (sizeof (int))) < 0)
23967     {
23968       long i = longval ();
23969       if (i != ((long) (sizeof (int))))
23970         exit (1);
23971       fprintf (f, "%ld\n", i);
23972     }
23973   else
23974     {
23975       unsigned long i = ulongval ();
23976       if (i != ((long) (sizeof (int))))
23977         exit (1);
23978       fprintf (f, "%lu\n", i);
23979     }
23980   exit (ferror (f) || fclose (f) != 0);
23981
23982   ;
23983   return 0;
23984 }
23985 _ACEOF
23986 rm -f conftest$ac_exeext
23987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23988   (eval $ac_link) 2>&5
23989   ac_status=$?
23990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23993   (eval $ac_try) 2>&5
23994   ac_status=$?
23995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996   (exit $ac_status); }; }; then
23997   ac_cv_sizeof_int=`cat conftest.val`
23998 else
23999   echo "$as_me: program exited with status $ac_status" >&5
24000 echo "$as_me: failed program was:" >&5
24001 sed 's/^/| /' conftest.$ac_ext >&5
24002
24003 ( exit $ac_status )
24004 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24005 See \`config.log' for more details." >&5
24006 echo "$as_me: error: cannot compute sizeof (int), 77
24007 See \`config.log' for more details." >&2;}
24008    { (exit 1); exit 1; }; }
24009 fi
24010 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24011 fi
24012 fi
24013 rm -f conftest.val
24014 else
24015   ac_cv_sizeof_int=0
24016 fi
24017 fi
24018 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24019 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24020 cat >>confdefs.h <<_ACEOF
24021 #define SIZEOF_INT $ac_cv_sizeof_int
24022 _ACEOF
24023
24024
24025 echo "$as_me:$LINENO: checking for long int" >&5
24026 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24027 if test "${ac_cv_type_long_int+set}" = set; then
24028   echo $ECHO_N "(cached) $ECHO_C" >&6
24029 else
24030   cat >conftest.$ac_ext <<_ACEOF
24031 /* confdefs.h.  */
24032 _ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h.  */
24036 $ac_includes_default
24037 int
24038 main ()
24039 {
24040 if ((long int *) 0)
24041   return 0;
24042 if (sizeof (long int))
24043   return 0;
24044   ;
24045   return 0;
24046 }
24047 _ACEOF
24048 rm -f conftest.$ac_objext
24049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24050   (eval $ac_compile) 2>conftest.er1
24051   ac_status=$?
24052   grep -v '^ *+' conftest.er1 >conftest.err
24053   rm -f conftest.er1
24054   cat conftest.err >&5
24055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056   (exit $ac_status); } &&
24057          { ac_try='test -z "$ac_c_werror_flag"
24058                          || test ! -s conftest.err'
24059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24060   (eval $ac_try) 2>&5
24061   ac_status=$?
24062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063   (exit $ac_status); }; } &&
24064          { ac_try='test -s conftest.$ac_objext'
24065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24066   (eval $ac_try) 2>&5
24067   ac_status=$?
24068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069   (exit $ac_status); }; }; then
24070   ac_cv_type_long_int=yes
24071 else
24072   echo "$as_me: failed program was:" >&5
24073 sed 's/^/| /' conftest.$ac_ext >&5
24074
24075 ac_cv_type_long_int=no
24076 fi
24077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24078 fi
24079 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24080 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24081
24082 echo "$as_me:$LINENO: checking size of long int" >&5
24083 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24084 if test "${ac_cv_sizeof_long_int+set}" = set; then
24085   echo $ECHO_N "(cached) $ECHO_C" >&6
24086 else
24087   if test "$ac_cv_type_long_int" = yes; then
24088   # The cast to unsigned long works around a bug in the HP C Compiler
24089   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24090   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24091   # This bug is HP SR number 8606223364.
24092   if test "$cross_compiling" = yes; then
24093   # Depending upon the size, compute the lo and hi bounds.
24094 cat >conftest.$ac_ext <<_ACEOF
24095 /* confdefs.h.  */
24096 _ACEOF
24097 cat confdefs.h >>conftest.$ac_ext
24098 cat >>conftest.$ac_ext <<_ACEOF
24099 /* end confdefs.h.  */
24100 $ac_includes_default
24101 int
24102 main ()
24103 {
24104 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24105 test_array [0] = 0
24106
24107   ;
24108   return 0;
24109 }
24110 _ACEOF
24111 rm -f conftest.$ac_objext
24112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24113   (eval $ac_compile) 2>conftest.er1
24114   ac_status=$?
24115   grep -v '^ *+' conftest.er1 >conftest.err
24116   rm -f conftest.er1
24117   cat conftest.err >&5
24118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119   (exit $ac_status); } &&
24120          { ac_try='test -z "$ac_c_werror_flag"
24121                          || test ! -s conftest.err'
24122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24123   (eval $ac_try) 2>&5
24124   ac_status=$?
24125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126   (exit $ac_status); }; } &&
24127          { ac_try='test -s conftest.$ac_objext'
24128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24129   (eval $ac_try) 2>&5
24130   ac_status=$?
24131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132   (exit $ac_status); }; }; then
24133   ac_lo=0 ac_mid=0
24134   while :; do
24135     cat >conftest.$ac_ext <<_ACEOF
24136 /* confdefs.h.  */
24137 _ACEOF
24138 cat confdefs.h >>conftest.$ac_ext
24139 cat >>conftest.$ac_ext <<_ACEOF
24140 /* end confdefs.h.  */
24141 $ac_includes_default
24142 int
24143 main ()
24144 {
24145 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24146 test_array [0] = 0
24147
24148   ;
24149   return 0;
24150 }
24151 _ACEOF
24152 rm -f conftest.$ac_objext
24153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24154   (eval $ac_compile) 2>conftest.er1
24155   ac_status=$?
24156   grep -v '^ *+' conftest.er1 >conftest.err
24157   rm -f conftest.er1
24158   cat conftest.err >&5
24159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160   (exit $ac_status); } &&
24161          { ac_try='test -z "$ac_c_werror_flag"
24162                          || test ! -s conftest.err'
24163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24164   (eval $ac_try) 2>&5
24165   ac_status=$?
24166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167   (exit $ac_status); }; } &&
24168          { ac_try='test -s conftest.$ac_objext'
24169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24170   (eval $ac_try) 2>&5
24171   ac_status=$?
24172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173   (exit $ac_status); }; }; then
24174   ac_hi=$ac_mid; break
24175 else
24176   echo "$as_me: failed program was:" >&5
24177 sed 's/^/| /' conftest.$ac_ext >&5
24178
24179 ac_lo=`expr $ac_mid + 1`
24180                     if test $ac_lo -le $ac_mid; then
24181                       ac_lo= ac_hi=
24182                       break
24183                     fi
24184                     ac_mid=`expr 2 '*' $ac_mid + 1`
24185 fi
24186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24187   done
24188 else
24189   echo "$as_me: failed program was:" >&5
24190 sed 's/^/| /' conftest.$ac_ext >&5
24191
24192 cat >conftest.$ac_ext <<_ACEOF
24193 /* confdefs.h.  */
24194 _ACEOF
24195 cat confdefs.h >>conftest.$ac_ext
24196 cat >>conftest.$ac_ext <<_ACEOF
24197 /* end confdefs.h.  */
24198 $ac_includes_default
24199 int
24200 main ()
24201 {
24202 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24203 test_array [0] = 0
24204
24205   ;
24206   return 0;
24207 }
24208 _ACEOF
24209 rm -f conftest.$ac_objext
24210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24211   (eval $ac_compile) 2>conftest.er1
24212   ac_status=$?
24213   grep -v '^ *+' conftest.er1 >conftest.err
24214   rm -f conftest.er1
24215   cat conftest.err >&5
24216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217   (exit $ac_status); } &&
24218          { ac_try='test -z "$ac_c_werror_flag"
24219                          || test ! -s conftest.err'
24220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24221   (eval $ac_try) 2>&5
24222   ac_status=$?
24223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224   (exit $ac_status); }; } &&
24225          { ac_try='test -s conftest.$ac_objext'
24226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24227   (eval $ac_try) 2>&5
24228   ac_status=$?
24229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24230   (exit $ac_status); }; }; then
24231   ac_hi=-1 ac_mid=-1
24232   while :; do
24233     cat >conftest.$ac_ext <<_ACEOF
24234 /* confdefs.h.  */
24235 _ACEOF
24236 cat confdefs.h >>conftest.$ac_ext
24237 cat >>conftest.$ac_ext <<_ACEOF
24238 /* end confdefs.h.  */
24239 $ac_includes_default
24240 int
24241 main ()
24242 {
24243 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24244 test_array [0] = 0
24245
24246   ;
24247   return 0;
24248 }
24249 _ACEOF
24250 rm -f conftest.$ac_objext
24251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24252   (eval $ac_compile) 2>conftest.er1
24253   ac_status=$?
24254   grep -v '^ *+' conftest.er1 >conftest.err
24255   rm -f conftest.er1
24256   cat conftest.err >&5
24257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258   (exit $ac_status); } &&
24259          { ac_try='test -z "$ac_c_werror_flag"
24260                          || test ! -s conftest.err'
24261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24262   (eval $ac_try) 2>&5
24263   ac_status=$?
24264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265   (exit $ac_status); }; } &&
24266          { ac_try='test -s conftest.$ac_objext'
24267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24268   (eval $ac_try) 2>&5
24269   ac_status=$?
24270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271   (exit $ac_status); }; }; then
24272   ac_lo=$ac_mid; break
24273 else
24274   echo "$as_me: failed program was:" >&5
24275 sed 's/^/| /' conftest.$ac_ext >&5
24276
24277 ac_hi=`expr '(' $ac_mid ')' - 1`
24278                        if test $ac_mid -le $ac_hi; then
24279                          ac_lo= ac_hi=
24280                          break
24281                        fi
24282                        ac_mid=`expr 2 '*' $ac_mid`
24283 fi
24284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24285   done
24286 else
24287   echo "$as_me: failed program was:" >&5
24288 sed 's/^/| /' conftest.$ac_ext >&5
24289
24290 ac_lo= ac_hi=
24291 fi
24292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24293 fi
24294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24295 # Binary search between lo and hi bounds.
24296 while test "x$ac_lo" != "x$ac_hi"; do
24297   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24298   cat >conftest.$ac_ext <<_ACEOF
24299 /* confdefs.h.  */
24300 _ACEOF
24301 cat confdefs.h >>conftest.$ac_ext
24302 cat >>conftest.$ac_ext <<_ACEOF
24303 /* end confdefs.h.  */
24304 $ac_includes_default
24305 int
24306 main ()
24307 {
24308 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24309 test_array [0] = 0
24310
24311   ;
24312   return 0;
24313 }
24314 _ACEOF
24315 rm -f conftest.$ac_objext
24316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24317   (eval $ac_compile) 2>conftest.er1
24318   ac_status=$?
24319   grep -v '^ *+' conftest.er1 >conftest.err
24320   rm -f conftest.er1
24321   cat conftest.err >&5
24322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323   (exit $ac_status); } &&
24324          { ac_try='test -z "$ac_c_werror_flag"
24325                          || test ! -s conftest.err'
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); }; } &&
24331          { ac_try='test -s conftest.$ac_objext'
24332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24333   (eval $ac_try) 2>&5
24334   ac_status=$?
24335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336   (exit $ac_status); }; }; then
24337   ac_hi=$ac_mid
24338 else
24339   echo "$as_me: failed program was:" >&5
24340 sed 's/^/| /' conftest.$ac_ext >&5
24341
24342 ac_lo=`expr '(' $ac_mid ')' + 1`
24343 fi
24344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24345 done
24346 case $ac_lo in
24347 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24348 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24349 See \`config.log' for more details." >&5
24350 echo "$as_me: error: cannot compute sizeof (long int), 77
24351 See \`config.log' for more details." >&2;}
24352    { (exit 1); exit 1; }; } ;;
24353 esac
24354 else
24355   if test "$cross_compiling" = yes; then
24356   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24357 See \`config.log' for more details." >&5
24358 echo "$as_me: error: cannot run test program while cross compiling
24359 See \`config.log' for more details." >&2;}
24360    { (exit 1); exit 1; }; }
24361 else
24362   cat >conftest.$ac_ext <<_ACEOF
24363 /* confdefs.h.  */
24364 _ACEOF
24365 cat confdefs.h >>conftest.$ac_ext
24366 cat >>conftest.$ac_ext <<_ACEOF
24367 /* end confdefs.h.  */
24368 $ac_includes_default
24369 long longval () { return (long) (sizeof (long int)); }
24370 unsigned long ulongval () { return (long) (sizeof (long int)); }
24371 #include <stdio.h>
24372 #include <stdlib.h>
24373 int
24374 main ()
24375 {
24376
24377   FILE *f = fopen ("conftest.val", "w");
24378   if (! f)
24379     exit (1);
24380   if (((long) (sizeof (long int))) < 0)
24381     {
24382       long i = longval ();
24383       if (i != ((long) (sizeof (long int))))
24384         exit (1);
24385       fprintf (f, "%ld\n", i);
24386     }
24387   else
24388     {
24389       unsigned long i = ulongval ();
24390       if (i != ((long) (sizeof (long int))))
24391         exit (1);
24392       fprintf (f, "%lu\n", i);
24393     }
24394   exit (ferror (f) || fclose (f) != 0);
24395
24396   ;
24397   return 0;
24398 }
24399 _ACEOF
24400 rm -f conftest$ac_exeext
24401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24402   (eval $ac_link) 2>&5
24403   ac_status=$?
24404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24407   (eval $ac_try) 2>&5
24408   ac_status=$?
24409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410   (exit $ac_status); }; }; then
24411   ac_cv_sizeof_long_int=`cat conftest.val`
24412 else
24413   echo "$as_me: program exited with status $ac_status" >&5
24414 echo "$as_me: failed program was:" >&5
24415 sed 's/^/| /' conftest.$ac_ext >&5
24416
24417 ( exit $ac_status )
24418 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24419 See \`config.log' for more details." >&5
24420 echo "$as_me: error: cannot compute sizeof (long int), 77
24421 See \`config.log' for more details." >&2;}
24422    { (exit 1); exit 1; }; }
24423 fi
24424 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24425 fi
24426 fi
24427 rm -f conftest.val
24428 else
24429   ac_cv_sizeof_long_int=0
24430 fi
24431 fi
24432 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24433 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24434 cat >>confdefs.h <<_ACEOF
24435 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24436 _ACEOF
24437
24438
24439 echo "$as_me:$LINENO: checking for long long int" >&5
24440 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24441 if test "${ac_cv_type_long_long_int+set}" = set; then
24442   echo $ECHO_N "(cached) $ECHO_C" >&6
24443 else
24444   cat >conftest.$ac_ext <<_ACEOF
24445 /* confdefs.h.  */
24446 _ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h.  */
24450 $ac_includes_default
24451 int
24452 main ()
24453 {
24454 if ((long long int *) 0)
24455   return 0;
24456 if (sizeof (long long int))
24457   return 0;
24458   ;
24459   return 0;
24460 }
24461 _ACEOF
24462 rm -f conftest.$ac_objext
24463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24464   (eval $ac_compile) 2>conftest.er1
24465   ac_status=$?
24466   grep -v '^ *+' conftest.er1 >conftest.err
24467   rm -f conftest.er1
24468   cat conftest.err >&5
24469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470   (exit $ac_status); } &&
24471          { ac_try='test -z "$ac_c_werror_flag"
24472                          || test ! -s conftest.err'
24473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24474   (eval $ac_try) 2>&5
24475   ac_status=$?
24476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477   (exit $ac_status); }; } &&
24478          { ac_try='test -s conftest.$ac_objext'
24479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24480   (eval $ac_try) 2>&5
24481   ac_status=$?
24482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483   (exit $ac_status); }; }; then
24484   ac_cv_type_long_long_int=yes
24485 else
24486   echo "$as_me: failed program was:" >&5
24487 sed 's/^/| /' conftest.$ac_ext >&5
24488
24489 ac_cv_type_long_long_int=no
24490 fi
24491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24492 fi
24493 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24494 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24495
24496 echo "$as_me:$LINENO: checking size of long long int" >&5
24497 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24498 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24499   echo $ECHO_N "(cached) $ECHO_C" >&6
24500 else
24501   if test "$ac_cv_type_long_long_int" = yes; then
24502   # The cast to unsigned long works around a bug in the HP C Compiler
24503   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24504   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24505   # This bug is HP SR number 8606223364.
24506   if test "$cross_compiling" = yes; then
24507   # Depending upon the size, compute the lo and hi bounds.
24508 cat >conftest.$ac_ext <<_ACEOF
24509 /* confdefs.h.  */
24510 _ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h.  */
24514 $ac_includes_default
24515 int
24516 main ()
24517 {
24518 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24519 test_array [0] = 0
24520
24521   ;
24522   return 0;
24523 }
24524 _ACEOF
24525 rm -f conftest.$ac_objext
24526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24527   (eval $ac_compile) 2>conftest.er1
24528   ac_status=$?
24529   grep -v '^ *+' conftest.er1 >conftest.err
24530   rm -f conftest.er1
24531   cat conftest.err >&5
24532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533   (exit $ac_status); } &&
24534          { ac_try='test -z "$ac_c_werror_flag"
24535                          || test ! -s conftest.err'
24536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537   (eval $ac_try) 2>&5
24538   ac_status=$?
24539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540   (exit $ac_status); }; } &&
24541          { ac_try='test -s conftest.$ac_objext'
24542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543   (eval $ac_try) 2>&5
24544   ac_status=$?
24545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546   (exit $ac_status); }; }; then
24547   ac_lo=0 ac_mid=0
24548   while :; do
24549     cat >conftest.$ac_ext <<_ACEOF
24550 /* confdefs.h.  */
24551 _ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h.  */
24555 $ac_includes_default
24556 int
24557 main ()
24558 {
24559 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24560 test_array [0] = 0
24561
24562   ;
24563   return 0;
24564 }
24565 _ACEOF
24566 rm -f conftest.$ac_objext
24567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24568   (eval $ac_compile) 2>conftest.er1
24569   ac_status=$?
24570   grep -v '^ *+' conftest.er1 >conftest.err
24571   rm -f conftest.er1
24572   cat conftest.err >&5
24573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24574   (exit $ac_status); } &&
24575          { ac_try='test -z "$ac_c_werror_flag"
24576                          || test ! -s conftest.err'
24577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24578   (eval $ac_try) 2>&5
24579   ac_status=$?
24580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581   (exit $ac_status); }; } &&
24582          { ac_try='test -s conftest.$ac_objext'
24583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24584   (eval $ac_try) 2>&5
24585   ac_status=$?
24586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587   (exit $ac_status); }; }; then
24588   ac_hi=$ac_mid; break
24589 else
24590   echo "$as_me: failed program was:" >&5
24591 sed 's/^/| /' conftest.$ac_ext >&5
24592
24593 ac_lo=`expr $ac_mid + 1`
24594                     if test $ac_lo -le $ac_mid; then
24595                       ac_lo= ac_hi=
24596                       break
24597                     fi
24598                     ac_mid=`expr 2 '*' $ac_mid + 1`
24599 fi
24600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24601   done
24602 else
24603   echo "$as_me: failed program was:" >&5
24604 sed 's/^/| /' conftest.$ac_ext >&5
24605
24606 cat >conftest.$ac_ext <<_ACEOF
24607 /* confdefs.h.  */
24608 _ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h.  */
24612 $ac_includes_default
24613 int
24614 main ()
24615 {
24616 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24617 test_array [0] = 0
24618
24619   ;
24620   return 0;
24621 }
24622 _ACEOF
24623 rm -f conftest.$ac_objext
24624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24625   (eval $ac_compile) 2>conftest.er1
24626   ac_status=$?
24627   grep -v '^ *+' conftest.er1 >conftest.err
24628   rm -f conftest.er1
24629   cat conftest.err >&5
24630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631   (exit $ac_status); } &&
24632          { ac_try='test -z "$ac_c_werror_flag"
24633                          || test ! -s conftest.err'
24634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24635   (eval $ac_try) 2>&5
24636   ac_status=$?
24637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638   (exit $ac_status); }; } &&
24639          { ac_try='test -s conftest.$ac_objext'
24640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24641   (eval $ac_try) 2>&5
24642   ac_status=$?
24643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644   (exit $ac_status); }; }; then
24645   ac_hi=-1 ac_mid=-1
24646   while :; do
24647     cat >conftest.$ac_ext <<_ACEOF
24648 /* confdefs.h.  */
24649 _ACEOF
24650 cat confdefs.h >>conftest.$ac_ext
24651 cat >>conftest.$ac_ext <<_ACEOF
24652 /* end confdefs.h.  */
24653 $ac_includes_default
24654 int
24655 main ()
24656 {
24657 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24658 test_array [0] = 0
24659
24660   ;
24661   return 0;
24662 }
24663 _ACEOF
24664 rm -f conftest.$ac_objext
24665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24666   (eval $ac_compile) 2>conftest.er1
24667   ac_status=$?
24668   grep -v '^ *+' conftest.er1 >conftest.err
24669   rm -f conftest.er1
24670   cat conftest.err >&5
24671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672   (exit $ac_status); } &&
24673          { ac_try='test -z "$ac_c_werror_flag"
24674                          || test ! -s conftest.err'
24675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24676   (eval $ac_try) 2>&5
24677   ac_status=$?
24678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679   (exit $ac_status); }; } &&
24680          { ac_try='test -s conftest.$ac_objext'
24681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24682   (eval $ac_try) 2>&5
24683   ac_status=$?
24684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685   (exit $ac_status); }; }; then
24686   ac_lo=$ac_mid; break
24687 else
24688   echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24690
24691 ac_hi=`expr '(' $ac_mid ')' - 1`
24692                        if test $ac_mid -le $ac_hi; then
24693                          ac_lo= ac_hi=
24694                          break
24695                        fi
24696                        ac_mid=`expr 2 '*' $ac_mid`
24697 fi
24698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24699   done
24700 else
24701   echo "$as_me: failed program was:" >&5
24702 sed 's/^/| /' conftest.$ac_ext >&5
24703
24704 ac_lo= ac_hi=
24705 fi
24706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24707 fi
24708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24709 # Binary search between lo and hi bounds.
24710 while test "x$ac_lo" != "x$ac_hi"; do
24711   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24712   cat >conftest.$ac_ext <<_ACEOF
24713 /* confdefs.h.  */
24714 _ACEOF
24715 cat confdefs.h >>conftest.$ac_ext
24716 cat >>conftest.$ac_ext <<_ACEOF
24717 /* end confdefs.h.  */
24718 $ac_includes_default
24719 int
24720 main ()
24721 {
24722 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24723 test_array [0] = 0
24724
24725   ;
24726   return 0;
24727 }
24728 _ACEOF
24729 rm -f conftest.$ac_objext
24730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24731   (eval $ac_compile) 2>conftest.er1
24732   ac_status=$?
24733   grep -v '^ *+' conftest.er1 >conftest.err
24734   rm -f conftest.er1
24735   cat conftest.err >&5
24736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737   (exit $ac_status); } &&
24738          { ac_try='test -z "$ac_c_werror_flag"
24739                          || test ! -s conftest.err'
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); }; } &&
24745          { ac_try='test -s conftest.$ac_objext'
24746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24747   (eval $ac_try) 2>&5
24748   ac_status=$?
24749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750   (exit $ac_status); }; }; then
24751   ac_hi=$ac_mid
24752 else
24753   echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24755
24756 ac_lo=`expr '(' $ac_mid ')' + 1`
24757 fi
24758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24759 done
24760 case $ac_lo in
24761 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
24762 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24763 See \`config.log' for more details." >&5
24764 echo "$as_me: error: cannot compute sizeof (long long int), 77
24765 See \`config.log' for more details." >&2;}
24766    { (exit 1); exit 1; }; } ;;
24767 esac
24768 else
24769   if test "$cross_compiling" = yes; then
24770   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24771 See \`config.log' for more details." >&5
24772 echo "$as_me: error: cannot run test program while cross compiling
24773 See \`config.log' for more details." >&2;}
24774    { (exit 1); exit 1; }; }
24775 else
24776   cat >conftest.$ac_ext <<_ACEOF
24777 /* confdefs.h.  */
24778 _ACEOF
24779 cat confdefs.h >>conftest.$ac_ext
24780 cat >>conftest.$ac_ext <<_ACEOF
24781 /* end confdefs.h.  */
24782 $ac_includes_default
24783 long longval () { return (long) (sizeof (long long int)); }
24784 unsigned long ulongval () { return (long) (sizeof (long long int)); }
24785 #include <stdio.h>
24786 #include <stdlib.h>
24787 int
24788 main ()
24789 {
24790
24791   FILE *f = fopen ("conftest.val", "w");
24792   if (! f)
24793     exit (1);
24794   if (((long) (sizeof (long long int))) < 0)
24795     {
24796       long i = longval ();
24797       if (i != ((long) (sizeof (long long int))))
24798         exit (1);
24799       fprintf (f, "%ld\n", i);
24800     }
24801   else
24802     {
24803       unsigned long i = ulongval ();
24804       if (i != ((long) (sizeof (long long int))))
24805         exit (1);
24806       fprintf (f, "%lu\n", i);
24807     }
24808   exit (ferror (f) || fclose (f) != 0);
24809
24810   ;
24811   return 0;
24812 }
24813 _ACEOF
24814 rm -f conftest$ac_exeext
24815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24816   (eval $ac_link) 2>&5
24817   ac_status=$?
24818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24821   (eval $ac_try) 2>&5
24822   ac_status=$?
24823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824   (exit $ac_status); }; }; then
24825   ac_cv_sizeof_long_long_int=`cat conftest.val`
24826 else
24827   echo "$as_me: program exited with status $ac_status" >&5
24828 echo "$as_me: failed program was:" >&5
24829 sed 's/^/| /' conftest.$ac_ext >&5
24830
24831 ( exit $ac_status )
24832 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24833 See \`config.log' for more details." >&5
24834 echo "$as_me: error: cannot compute sizeof (long long int), 77
24835 See \`config.log' for more details." >&2;}
24836    { (exit 1); exit 1; }; }
24837 fi
24838 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24839 fi
24840 fi
24841 rm -f conftest.val
24842 else
24843   ac_cv_sizeof_long_long_int=0
24844 fi
24845 fi
24846 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
24847 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
24848 cat >>confdefs.h <<_ACEOF
24849 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
24850 _ACEOF
24851
24852
24853 echo "$as_me:$LINENO: checking for int *" >&5
24854 echo $ECHO_N "checking for int *... $ECHO_C" >&6
24855 if test "${ac_cv_type_int_p+set}" = set; then
24856   echo $ECHO_N "(cached) $ECHO_C" >&6
24857 else
24858   cat >conftest.$ac_ext <<_ACEOF
24859 /* confdefs.h.  */
24860 _ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h.  */
24864 $ac_includes_default
24865 int
24866 main ()
24867 {
24868 if ((int * *) 0)
24869   return 0;
24870 if (sizeof (int *))
24871   return 0;
24872   ;
24873   return 0;
24874 }
24875 _ACEOF
24876 rm -f conftest.$ac_objext
24877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24878   (eval $ac_compile) 2>conftest.er1
24879   ac_status=$?
24880   grep -v '^ *+' conftest.er1 >conftest.err
24881   rm -f conftest.er1
24882   cat conftest.err >&5
24883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884   (exit $ac_status); } &&
24885          { ac_try='test -z "$ac_c_werror_flag"
24886                          || test ! -s conftest.err'
24887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24888   (eval $ac_try) 2>&5
24889   ac_status=$?
24890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891   (exit $ac_status); }; } &&
24892          { ac_try='test -s conftest.$ac_objext'
24893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24894   (eval $ac_try) 2>&5
24895   ac_status=$?
24896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897   (exit $ac_status); }; }; then
24898   ac_cv_type_int_p=yes
24899 else
24900   echo "$as_me: failed program was:" >&5
24901 sed 's/^/| /' conftest.$ac_ext >&5
24902
24903 ac_cv_type_int_p=no
24904 fi
24905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24906 fi
24907 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24908 echo "${ECHO_T}$ac_cv_type_int_p" >&6
24909
24910 echo "$as_me:$LINENO: checking size of int *" >&5
24911 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
24912 if test "${ac_cv_sizeof_int_p+set}" = set; then
24913   echo $ECHO_N "(cached) $ECHO_C" >&6
24914 else
24915   if test "$ac_cv_type_int_p" = yes; then
24916   # The cast to unsigned long works around a bug in the HP C Compiler
24917   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24918   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24919   # This bug is HP SR number 8606223364.
24920   if test "$cross_compiling" = yes; then
24921   # Depending upon the size, compute the lo and hi bounds.
24922 cat >conftest.$ac_ext <<_ACEOF
24923 /* confdefs.h.  */
24924 _ACEOF
24925 cat confdefs.h >>conftest.$ac_ext
24926 cat >>conftest.$ac_ext <<_ACEOF
24927 /* end confdefs.h.  */
24928 $ac_includes_default
24929 int
24930 main ()
24931 {
24932 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
24933 test_array [0] = 0
24934
24935   ;
24936   return 0;
24937 }
24938 _ACEOF
24939 rm -f conftest.$ac_objext
24940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24941   (eval $ac_compile) 2>conftest.er1
24942   ac_status=$?
24943   grep -v '^ *+' conftest.er1 >conftest.err
24944   rm -f conftest.er1
24945   cat conftest.err >&5
24946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947   (exit $ac_status); } &&
24948          { ac_try='test -z "$ac_c_werror_flag"
24949                          || test ! -s conftest.err'
24950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951   (eval $ac_try) 2>&5
24952   ac_status=$?
24953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954   (exit $ac_status); }; } &&
24955          { ac_try='test -s conftest.$ac_objext'
24956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957   (eval $ac_try) 2>&5
24958   ac_status=$?
24959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960   (exit $ac_status); }; }; then
24961   ac_lo=0 ac_mid=0
24962   while :; do
24963     cat >conftest.$ac_ext <<_ACEOF
24964 /* confdefs.h.  */
24965 _ACEOF
24966 cat confdefs.h >>conftest.$ac_ext
24967 cat >>conftest.$ac_ext <<_ACEOF
24968 /* end confdefs.h.  */
24969 $ac_includes_default
24970 int
24971 main ()
24972 {
24973 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24974 test_array [0] = 0
24975
24976   ;
24977   return 0;
24978 }
24979 _ACEOF
24980 rm -f conftest.$ac_objext
24981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24982   (eval $ac_compile) 2>conftest.er1
24983   ac_status=$?
24984   grep -v '^ *+' conftest.er1 >conftest.err
24985   rm -f conftest.er1
24986   cat conftest.err >&5
24987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988   (exit $ac_status); } &&
24989          { ac_try='test -z "$ac_c_werror_flag"
24990                          || test ! -s conftest.err'
24991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24992   (eval $ac_try) 2>&5
24993   ac_status=$?
24994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995   (exit $ac_status); }; } &&
24996          { ac_try='test -s conftest.$ac_objext'
24997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24998   (eval $ac_try) 2>&5
24999   ac_status=$?
25000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001   (exit $ac_status); }; }; then
25002   ac_hi=$ac_mid; break
25003 else
25004   echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25006
25007 ac_lo=`expr $ac_mid + 1`
25008                     if test $ac_lo -le $ac_mid; then
25009                       ac_lo= ac_hi=
25010                       break
25011                     fi
25012                     ac_mid=`expr 2 '*' $ac_mid + 1`
25013 fi
25014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25015   done
25016 else
25017   echo "$as_me: failed program was:" >&5
25018 sed 's/^/| /' conftest.$ac_ext >&5
25019
25020 cat >conftest.$ac_ext <<_ACEOF
25021 /* confdefs.h.  */
25022 _ACEOF
25023 cat confdefs.h >>conftest.$ac_ext
25024 cat >>conftest.$ac_ext <<_ACEOF
25025 /* end confdefs.h.  */
25026 $ac_includes_default
25027 int
25028 main ()
25029 {
25030 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25031 test_array [0] = 0
25032
25033   ;
25034   return 0;
25035 }
25036 _ACEOF
25037 rm -f conftest.$ac_objext
25038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25039   (eval $ac_compile) 2>conftest.er1
25040   ac_status=$?
25041   grep -v '^ *+' conftest.er1 >conftest.err
25042   rm -f conftest.er1
25043   cat conftest.err >&5
25044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045   (exit $ac_status); } &&
25046          { ac_try='test -z "$ac_c_werror_flag"
25047                          || test ! -s conftest.err'
25048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25049   (eval $ac_try) 2>&5
25050   ac_status=$?
25051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052   (exit $ac_status); }; } &&
25053          { ac_try='test -s conftest.$ac_objext'
25054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25055   (eval $ac_try) 2>&5
25056   ac_status=$?
25057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058   (exit $ac_status); }; }; then
25059   ac_hi=-1 ac_mid=-1
25060   while :; do
25061     cat >conftest.$ac_ext <<_ACEOF
25062 /* confdefs.h.  */
25063 _ACEOF
25064 cat confdefs.h >>conftest.$ac_ext
25065 cat >>conftest.$ac_ext <<_ACEOF
25066 /* end confdefs.h.  */
25067 $ac_includes_default
25068 int
25069 main ()
25070 {
25071 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25072 test_array [0] = 0
25073
25074   ;
25075   return 0;
25076 }
25077 _ACEOF
25078 rm -f conftest.$ac_objext
25079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25080   (eval $ac_compile) 2>conftest.er1
25081   ac_status=$?
25082   grep -v '^ *+' conftest.er1 >conftest.err
25083   rm -f conftest.er1
25084   cat conftest.err >&5
25085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086   (exit $ac_status); } &&
25087          { ac_try='test -z "$ac_c_werror_flag"
25088                          || test ! -s conftest.err'
25089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25090   (eval $ac_try) 2>&5
25091   ac_status=$?
25092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093   (exit $ac_status); }; } &&
25094          { ac_try='test -s conftest.$ac_objext'
25095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25096   (eval $ac_try) 2>&5
25097   ac_status=$?
25098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099   (exit $ac_status); }; }; then
25100   ac_lo=$ac_mid; break
25101 else
25102   echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25104
25105 ac_hi=`expr '(' $ac_mid ')' - 1`
25106                        if test $ac_mid -le $ac_hi; then
25107                          ac_lo= ac_hi=
25108                          break
25109                        fi
25110                        ac_mid=`expr 2 '*' $ac_mid`
25111 fi
25112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25113   done
25114 else
25115   echo "$as_me: failed program was:" >&5
25116 sed 's/^/| /' conftest.$ac_ext >&5
25117
25118 ac_lo= ac_hi=
25119 fi
25120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25121 fi
25122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25123 # Binary search between lo and hi bounds.
25124 while test "x$ac_lo" != "x$ac_hi"; do
25125   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25126   cat >conftest.$ac_ext <<_ACEOF
25127 /* confdefs.h.  */
25128 _ACEOF
25129 cat confdefs.h >>conftest.$ac_ext
25130 cat >>conftest.$ac_ext <<_ACEOF
25131 /* end confdefs.h.  */
25132 $ac_includes_default
25133 int
25134 main ()
25135 {
25136 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25137 test_array [0] = 0
25138
25139   ;
25140   return 0;
25141 }
25142 _ACEOF
25143 rm -f conftest.$ac_objext
25144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25145   (eval $ac_compile) 2>conftest.er1
25146   ac_status=$?
25147   grep -v '^ *+' conftest.er1 >conftest.err
25148   rm -f conftest.er1
25149   cat conftest.err >&5
25150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151   (exit $ac_status); } &&
25152          { ac_try='test -z "$ac_c_werror_flag"
25153                          || test ! -s conftest.err'
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); }; } &&
25159          { ac_try='test -s conftest.$ac_objext'
25160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25161   (eval $ac_try) 2>&5
25162   ac_status=$?
25163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164   (exit $ac_status); }; }; then
25165   ac_hi=$ac_mid
25166 else
25167   echo "$as_me: failed program was:" >&5
25168 sed 's/^/| /' conftest.$ac_ext >&5
25169
25170 ac_lo=`expr '(' $ac_mid ')' + 1`
25171 fi
25172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25173 done
25174 case $ac_lo in
25175 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25176 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25177 See \`config.log' for more details." >&5
25178 echo "$as_me: error: cannot compute sizeof (int *), 77
25179 See \`config.log' for more details." >&2;}
25180    { (exit 1); exit 1; }; } ;;
25181 esac
25182 else
25183   if test "$cross_compiling" = yes; then
25184   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25185 See \`config.log' for more details." >&5
25186 echo "$as_me: error: cannot run test program while cross compiling
25187 See \`config.log' for more details." >&2;}
25188    { (exit 1); exit 1; }; }
25189 else
25190   cat >conftest.$ac_ext <<_ACEOF
25191 /* confdefs.h.  */
25192 _ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h.  */
25196 $ac_includes_default
25197 long longval () { return (long) (sizeof (int *)); }
25198 unsigned long ulongval () { return (long) (sizeof (int *)); }
25199 #include <stdio.h>
25200 #include <stdlib.h>
25201 int
25202 main ()
25203 {
25204
25205   FILE *f = fopen ("conftest.val", "w");
25206   if (! f)
25207     exit (1);
25208   if (((long) (sizeof (int *))) < 0)
25209     {
25210       long i = longval ();
25211       if (i != ((long) (sizeof (int *))))
25212         exit (1);
25213       fprintf (f, "%ld\n", i);
25214     }
25215   else
25216     {
25217       unsigned long i = ulongval ();
25218       if (i != ((long) (sizeof (int *))))
25219         exit (1);
25220       fprintf (f, "%lu\n", i);
25221     }
25222   exit (ferror (f) || fclose (f) != 0);
25223
25224   ;
25225   return 0;
25226 }
25227 _ACEOF
25228 rm -f conftest$ac_exeext
25229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25230   (eval $ac_link) 2>&5
25231   ac_status=$?
25232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25235   (eval $ac_try) 2>&5
25236   ac_status=$?
25237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238   (exit $ac_status); }; }; then
25239   ac_cv_sizeof_int_p=`cat conftest.val`
25240 else
25241   echo "$as_me: program exited with status $ac_status" >&5
25242 echo "$as_me: failed program was:" >&5
25243 sed 's/^/| /' conftest.$ac_ext >&5
25244
25245 ( exit $ac_status )
25246 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25247 See \`config.log' for more details." >&5
25248 echo "$as_me: error: cannot compute sizeof (int *), 77
25249 See \`config.log' for more details." >&2;}
25250    { (exit 1); exit 1; }; }
25251 fi
25252 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25253 fi
25254 fi
25255 rm -f conftest.val
25256 else
25257   ac_cv_sizeof_int_p=0
25258 fi
25259 fi
25260 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25261 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25262 cat >>confdefs.h <<_ACEOF
25263 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25264 _ACEOF
25265
25266
25267
25268 # Check for sys/types.h types
25269 echo "$as_me:$LINENO: checking for u_int type" >&5
25270 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25271 if test "${ac_cv_have_u_int+set}" = set; then
25272   echo $ECHO_N "(cached) $ECHO_C" >&6
25273 else
25274
25275     cat >conftest.$ac_ext <<_ACEOF
25276 /* confdefs.h.  */
25277 _ACEOF
25278 cat confdefs.h >>conftest.$ac_ext
25279 cat >>conftest.$ac_ext <<_ACEOF
25280 /* end confdefs.h.  */
25281  #include <sys/types.h>
25282 int
25283 main ()
25284 {
25285  u_int a; a = 1;
25286   ;
25287   return 0;
25288 }
25289 _ACEOF
25290 rm -f conftest.$ac_objext
25291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25292   (eval $ac_compile) 2>conftest.er1
25293   ac_status=$?
25294   grep -v '^ *+' conftest.er1 >conftest.err
25295   rm -f conftest.er1
25296   cat conftest.err >&5
25297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298   (exit $ac_status); } &&
25299          { ac_try='test -z "$ac_c_werror_flag"
25300                          || test ! -s conftest.err'
25301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25302   (eval $ac_try) 2>&5
25303   ac_status=$?
25304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305   (exit $ac_status); }; } &&
25306          { ac_try='test -s conftest.$ac_objext'
25307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25308   (eval $ac_try) 2>&5
25309   ac_status=$?
25310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311   (exit $ac_status); }; }; then
25312    ac_cv_have_u_int="yes"
25313 else
25314   echo "$as_me: failed program was:" >&5
25315 sed 's/^/| /' conftest.$ac_ext >&5
25316
25317  ac_cv_have_u_int="no"
25318
25319 fi
25320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25321
25322 fi
25323 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25324 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25325 if test "x$ac_cv_have_u_int" = "xyes" ; then
25326    cat >>confdefs.h <<\_ACEOF
25327 #define HAVE_U_INT 1
25328 _ACEOF
25329
25330    have_u_int=1
25331 fi
25332
25333 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25334 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25335 if test "${ac_cv_have_intmax_t+set}" = set; then
25336   echo $ECHO_N "(cached) $ECHO_C" >&6
25337 else
25338
25339    cat >conftest.$ac_ext <<_ACEOF
25340 /* confdefs.h.  */
25341 _ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h.  */
25345  #include <sys/types.h>
25346 int
25347 main ()
25348 {
25349  intmax_t a; a = 1;
25350   ;
25351   return 0;
25352 }
25353 _ACEOF
25354 rm -f conftest.$ac_objext
25355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25356   (eval $ac_compile) 2>conftest.er1
25357   ac_status=$?
25358   grep -v '^ *+' conftest.er1 >conftest.err
25359   rm -f conftest.er1
25360   cat conftest.err >&5
25361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362   (exit $ac_status); } &&
25363          { ac_try='test -z "$ac_c_werror_flag"
25364                          || test ! -s conftest.err'
25365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366   (eval $ac_try) 2>&5
25367   ac_status=$?
25368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369   (exit $ac_status); }; } &&
25370          { ac_try='test -s conftest.$ac_objext'
25371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25372   (eval $ac_try) 2>&5
25373   ac_status=$?
25374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375   (exit $ac_status); }; }; then
25376    ac_cv_have_intmax_t="yes"
25377 else
25378   echo "$as_me: failed program was:" >&5
25379 sed 's/^/| /' conftest.$ac_ext >&5
25380
25381
25382          cat >conftest.$ac_ext <<_ACEOF
25383 /* confdefs.h.  */
25384 _ACEOF
25385 cat confdefs.h >>conftest.$ac_ext
25386 cat >>conftest.$ac_ext <<_ACEOF
25387 /* end confdefs.h.  */
25388  #include <stdint.h>
25389 int
25390 main ()
25391 {
25392  intmax_t a; a = 1;
25393   ;
25394   return 0;
25395 }
25396 _ACEOF
25397 rm -f conftest.$ac_objext
25398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25399   (eval $ac_compile) 2>conftest.er1
25400   ac_status=$?
25401   grep -v '^ *+' conftest.er1 >conftest.err
25402   rm -f conftest.er1
25403   cat conftest.err >&5
25404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405   (exit $ac_status); } &&
25406          { ac_try='test -z "$ac_c_werror_flag"
25407                          || test ! -s conftest.err'
25408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25409   (eval $ac_try) 2>&5
25410   ac_status=$?
25411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412   (exit $ac_status); }; } &&
25413          { ac_try='test -s conftest.$ac_objext'
25414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415   (eval $ac_try) 2>&5
25416   ac_status=$?
25417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418   (exit $ac_status); }; }; then
25419    ac_cv_have_intmax_t="yes"
25420 else
25421   echo "$as_me: failed program was:" >&5
25422 sed 's/^/| /' conftest.$ac_ext >&5
25423
25424  ac_cv_have_intmax_t="no"
25425
25426 fi
25427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25428
25429
25430 fi
25431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25432
25433
25434 fi
25435 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25436 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25437 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25438    cat >>confdefs.h <<\_ACEOF
25439 #define HAVE_INTMAX_T 1
25440 _ACEOF
25441
25442    have_intmax_t=1
25443 fi
25444
25445
25446 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25447 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25448 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25449   echo $ECHO_N "(cached) $ECHO_C" >&6
25450 else
25451
25452    cat >conftest.$ac_ext <<_ACEOF
25453 /* confdefs.h.  */
25454 _ACEOF
25455 cat confdefs.h >>conftest.$ac_ext
25456 cat >>conftest.$ac_ext <<_ACEOF
25457 /* end confdefs.h.  */
25458  #include <sys/types.h>
25459 int
25460 main ()
25461 {
25462  u_intmax_t a; a = 1;
25463   ;
25464   return 0;
25465 }
25466 _ACEOF
25467 rm -f conftest.$ac_objext
25468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25469   (eval $ac_compile) 2>conftest.er1
25470   ac_status=$?
25471   grep -v '^ *+' conftest.er1 >conftest.err
25472   rm -f conftest.er1
25473   cat conftest.err >&5
25474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475   (exit $ac_status); } &&
25476          { ac_try='test -z "$ac_c_werror_flag"
25477                          || test ! -s conftest.err'
25478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25479   (eval $ac_try) 2>&5
25480   ac_status=$?
25481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482   (exit $ac_status); }; } &&
25483          { ac_try='test -s conftest.$ac_objext'
25484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25485   (eval $ac_try) 2>&5
25486   ac_status=$?
25487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488   (exit $ac_status); }; }; then
25489    ac_cv_have_u_intmax_t="yes"
25490 else
25491   echo "$as_me: failed program was:" >&5
25492 sed 's/^/| /' conftest.$ac_ext >&5
25493
25494
25495          cat >conftest.$ac_ext <<_ACEOF
25496 /* confdefs.h.  */
25497 _ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h.  */
25501  #include <stdint.h>
25502 int
25503 main ()
25504 {
25505  u_intmax_t a; a = 1;
25506   ;
25507   return 0;
25508 }
25509 _ACEOF
25510 rm -f conftest.$ac_objext
25511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25512   (eval $ac_compile) 2>conftest.er1
25513   ac_status=$?
25514   grep -v '^ *+' conftest.er1 >conftest.err
25515   rm -f conftest.er1
25516   cat conftest.err >&5
25517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518   (exit $ac_status); } &&
25519          { ac_try='test -z "$ac_c_werror_flag"
25520                          || test ! -s conftest.err'
25521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25522   (eval $ac_try) 2>&5
25523   ac_status=$?
25524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525   (exit $ac_status); }; } &&
25526          { ac_try='test -s conftest.$ac_objext'
25527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25528   (eval $ac_try) 2>&5
25529   ac_status=$?
25530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531   (exit $ac_status); }; }; then
25532    ac_cv_have_u_intmax_t="yes"
25533 else
25534   echo "$as_me: failed program was:" >&5
25535 sed 's/^/| /' conftest.$ac_ext >&5
25536
25537  ac_cv_have_u_intmax_t="no"
25538
25539 fi
25540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25541
25542
25543 fi
25544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25545
25546 fi
25547 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25548 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25549 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25550    cat >>confdefs.h <<\_ACEOF
25551 #define HAVE_U_INTMAX_T 1
25552 _ACEOF
25553
25554    have_u_intmax_t=1
25555 fi
25556
25557
25558 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25559 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25560 if test "${ac_cv_have_intxx_t+set}" = set; then
25561   echo $ECHO_N "(cached) $ECHO_C" >&6
25562 else
25563
25564    cat >conftest.$ac_ext <<_ACEOF
25565 /* confdefs.h.  */
25566 _ACEOF
25567 cat confdefs.h >>conftest.$ac_ext
25568 cat >>conftest.$ac_ext <<_ACEOF
25569 /* end confdefs.h.  */
25570  #include <sys/types.h>
25571 int
25572 main ()
25573 {
25574  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25575   ;
25576   return 0;
25577 }
25578 _ACEOF
25579 rm -f conftest.$ac_objext
25580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25581   (eval $ac_compile) 2>conftest.er1
25582   ac_status=$?
25583   grep -v '^ *+' conftest.er1 >conftest.err
25584   rm -f conftest.er1
25585   cat conftest.err >&5
25586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587   (exit $ac_status); } &&
25588          { ac_try='test -z "$ac_c_werror_flag"
25589                          || test ! -s conftest.err'
25590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25591   (eval $ac_try) 2>&5
25592   ac_status=$?
25593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594   (exit $ac_status); }; } &&
25595          { ac_try='test -s conftest.$ac_objext'
25596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25597   (eval $ac_try) 2>&5
25598   ac_status=$?
25599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600   (exit $ac_status); }; }; then
25601    ac_cv_have_intxx_t="yes"
25602 else
25603   echo "$as_me: failed program was:" >&5
25604 sed 's/^/| /' conftest.$ac_ext >&5
25605
25606  ac_cv_have_intxx_t="no"
25607
25608 fi
25609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25610
25611 fi
25612 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25613 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25614 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25615    cat >>confdefs.h <<\_ACEOF
25616 #define HAVE_INTXX_T 1
25617 _ACEOF
25618
25619    have_intxx_t=1
25620 fi
25621
25622 echo "$as_me:$LINENO: checking for int64_t type" >&5
25623 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25624 if test "${ac_cv_have_int64_t+set}" = set; then
25625   echo $ECHO_N "(cached) $ECHO_C" >&6
25626 else
25627
25628    cat >conftest.$ac_ext <<_ACEOF
25629 /* confdefs.h.  */
25630 _ACEOF
25631 cat confdefs.h >>conftest.$ac_ext
25632 cat >>conftest.$ac_ext <<_ACEOF
25633 /* end confdefs.h.  */
25634  #include <sys/types.h>
25635 int
25636 main ()
25637 {
25638  int64_t a; a = 1;
25639   ;
25640   return 0;
25641 }
25642 _ACEOF
25643 rm -f conftest.$ac_objext
25644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25645   (eval $ac_compile) 2>conftest.er1
25646   ac_status=$?
25647   grep -v '^ *+' conftest.er1 >conftest.err
25648   rm -f conftest.er1
25649   cat conftest.err >&5
25650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651   (exit $ac_status); } &&
25652          { ac_try='test -z "$ac_c_werror_flag"
25653                          || test ! -s conftest.err'
25654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25655   (eval $ac_try) 2>&5
25656   ac_status=$?
25657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658   (exit $ac_status); }; } &&
25659          { ac_try='test -s conftest.$ac_objext'
25660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25661   (eval $ac_try) 2>&5
25662   ac_status=$?
25663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664   (exit $ac_status); }; }; then
25665    ac_cv_have_int64_t="yes"
25666 else
25667   echo "$as_me: failed program was:" >&5
25668 sed 's/^/| /' conftest.$ac_ext >&5
25669
25670  ac_cv_have_int64_t="no"
25671
25672 fi
25673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25674
25675 fi
25676 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25677 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25678 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25679    cat >>confdefs.h <<\_ACEOF
25680 #define HAVE_INT64_T 1
25681 _ACEOF
25682
25683    have_int64_t=1
25684 fi
25685
25686 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25687 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25688 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25689   echo $ECHO_N "(cached) $ECHO_C" >&6
25690 else
25691
25692    cat >conftest.$ac_ext <<_ACEOF
25693 /* confdefs.h.  */
25694 _ACEOF
25695 cat confdefs.h >>conftest.$ac_ext
25696 cat >>conftest.$ac_ext <<_ACEOF
25697 /* end confdefs.h.  */
25698  #include <sys/types.h>
25699 int
25700 main ()
25701 {
25702  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25703   ;
25704   return 0;
25705 }
25706 _ACEOF
25707 rm -f conftest.$ac_objext
25708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25709   (eval $ac_compile) 2>conftest.er1
25710   ac_status=$?
25711   grep -v '^ *+' conftest.er1 >conftest.err
25712   rm -f conftest.er1
25713   cat conftest.err >&5
25714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715   (exit $ac_status); } &&
25716          { ac_try='test -z "$ac_c_werror_flag"
25717                          || test ! -s conftest.err'
25718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25719   (eval $ac_try) 2>&5
25720   ac_status=$?
25721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722   (exit $ac_status); }; } &&
25723          { ac_try='test -s conftest.$ac_objext'
25724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25725   (eval $ac_try) 2>&5
25726   ac_status=$?
25727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728   (exit $ac_status); }; }; then
25729    ac_cv_have_u_intxx_t="yes"
25730 else
25731   echo "$as_me: failed program was:" >&5
25732 sed 's/^/| /' conftest.$ac_ext >&5
25733
25734  ac_cv_have_u_intxx_t="no"
25735
25736 fi
25737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25738
25739 fi
25740 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25741 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25742 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25743    cat >>confdefs.h <<\_ACEOF
25744 #define HAVE_U_INTXX_T 1
25745 _ACEOF
25746
25747    have_u_intxx_t=1
25748 fi
25749
25750 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
25751 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
25752 if test "${ac_cv_have_u_int64_t+set}" = set; then
25753   echo $ECHO_N "(cached) $ECHO_C" >&6
25754 else
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 <sys/types.h>
25763 int
25764 main ()
25765 {
25766  u_int64_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_int64_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_int64_t="no"
25799
25800 fi
25801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25802
25803 fi
25804 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
25805 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
25806 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
25807    cat >>confdefs.h <<\_ACEOF
25808 #define HAVE_U_INT64_T 1
25809 _ACEOF
25810
25811    have_u_int64_t=1
25812 fi
25813
25814 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
25815            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25816 then
25817    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
25818 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
25819    cat >conftest.$ac_ext <<_ACEOF
25820 /* confdefs.h.  */
25821 _ACEOF
25822 cat confdefs.h >>conftest.$ac_ext
25823 cat >>conftest.$ac_ext <<_ACEOF
25824 /* end confdefs.h.  */
25825  #include <sys/bitypes.h>
25826 int
25827 main ()
25828 {
25829  int8_t a; int16_t b; int32_t c;
25830         u_int8_t e; u_int16_t f; u_int32_t g;
25831         a = b = c = e = f = g = 1;
25832   ;
25833   return 0;
25834 }
25835 _ACEOF
25836 rm -f conftest.$ac_objext
25837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25838   (eval $ac_compile) 2>conftest.er1
25839   ac_status=$?
25840   grep -v '^ *+' conftest.er1 >conftest.err
25841   rm -f conftest.er1
25842   cat conftest.err >&5
25843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844   (exit $ac_status); } &&
25845          { ac_try='test -z "$ac_c_werror_flag"
25846                          || test ! -s conftest.err'
25847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25848   (eval $ac_try) 2>&5
25849   ac_status=$?
25850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851   (exit $ac_status); }; } &&
25852          { ac_try='test -s conftest.$ac_objext'
25853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25854   (eval $ac_try) 2>&5
25855   ac_status=$?
25856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857   (exit $ac_status); }; }; then
25858    cat >>confdefs.h <<\_ACEOF
25859 #define HAVE_U_INTXX_T 1
25860 _ACEOF
25861
25862         cat >>confdefs.h <<\_ACEOF
25863 #define HAVE_INTXX_T 1
25864 _ACEOF
25865
25866         cat >>confdefs.h <<\_ACEOF
25867 #define HAVE_SYS_BITYPES_H 1
25868 _ACEOF
25869
25870         echo "$as_me:$LINENO: result: yes" >&5
25871 echo "${ECHO_T}yes" >&6
25872 else
25873   echo "$as_me: failed program was:" >&5
25874 sed 's/^/| /' conftest.$ac_ext >&5
25875
25876  echo "$as_me:$LINENO: result: no" >&5
25877 echo "${ECHO_T}no" >&6
25878
25879 fi
25880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25881 fi
25882
25883 if test -z "$have_u_intxx_t" ; then
25884    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
25885 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
25886 if test "${ac_cv_have_uintxx_t+set}" = set; then
25887   echo $ECHO_N "(cached) $ECHO_C" >&6
25888 else
25889
25890       cat >conftest.$ac_ext <<_ACEOF
25891 /* confdefs.h.  */
25892 _ACEOF
25893 cat confdefs.h >>conftest.$ac_ext
25894 cat >>conftest.$ac_ext <<_ACEOF
25895 /* end confdefs.h.  */
25896  #include <sys/types.h>
25897 int
25898 main ()
25899 {
25900  uint8_t a; uint16_t b;
25901            uint32_t c; a = b = c = 1;
25902   ;
25903   return 0;
25904 }
25905 _ACEOF
25906 rm -f conftest.$ac_objext
25907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25908   (eval $ac_compile) 2>conftest.er1
25909   ac_status=$?
25910   grep -v '^ *+' conftest.er1 >conftest.err
25911   rm -f conftest.er1
25912   cat conftest.err >&5
25913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914   (exit $ac_status); } &&
25915          { ac_try='test -z "$ac_c_werror_flag"
25916                          || test ! -s conftest.err'
25917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25918   (eval $ac_try) 2>&5
25919   ac_status=$?
25920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921   (exit $ac_status); }; } &&
25922          { ac_try='test -s conftest.$ac_objext'
25923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25924   (eval $ac_try) 2>&5
25925   ac_status=$?
25926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927   (exit $ac_status); }; }; then
25928    ac_cv_have_uintxx_t="yes"
25929 else
25930   echo "$as_me: failed program was:" >&5
25931 sed 's/^/| /' conftest.$ac_ext >&5
25932
25933  ac_cv_have_uintxx_t="no"
25934
25935 fi
25936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25937
25938 fi
25939 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
25940 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
25941    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
25942       cat >>confdefs.h <<\_ACEOF
25943 #define HAVE_UINTXX_T 1
25944 _ACEOF
25945
25946    fi
25947 fi
25948
25949 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
25950           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25951 then
25952    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
25953 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
25954    cat >conftest.$ac_ext <<_ACEOF
25955 /* confdefs.h.  */
25956 _ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h.  */
25960  #include <sys/bitypes.h>
25961 int
25962 main ()
25963 {
25964  int64_t a; u_int64_t b;
25965        a = b = 1;
25966   ;
25967   return 0;
25968 }
25969 _ACEOF
25970 rm -f conftest.$ac_objext
25971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25972   (eval $ac_compile) 2>conftest.er1
25973   ac_status=$?
25974   grep -v '^ *+' conftest.er1 >conftest.err
25975   rm -f conftest.er1
25976   cat conftest.err >&5
25977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978   (exit $ac_status); } &&
25979          { ac_try='test -z "$ac_c_werror_flag"
25980                          || test ! -s conftest.err'
25981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25982   (eval $ac_try) 2>&5
25983   ac_status=$?
25984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985   (exit $ac_status); }; } &&
25986          { ac_try='test -s conftest.$ac_objext'
25987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25988   (eval $ac_try) 2>&5
25989   ac_status=$?
25990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25991   (exit $ac_status); }; }; then
25992    cat >>confdefs.h <<\_ACEOF
25993 #define HAVE_U_INT64_T 1
25994 _ACEOF
25995
25996        cat >>confdefs.h <<\_ACEOF
25997 #define HAVE_INT64_T 1
25998 _ACEOF
25999
26000        echo "$as_me:$LINENO: result: yes" >&5
26001 echo "${ECHO_T}yes" >&6
26002 else
26003   echo "$as_me: failed program was:" >&5
26004 sed 's/^/| /' conftest.$ac_ext >&5
26005
26006  echo "$as_me:$LINENO: result: no" >&5
26007 echo "${ECHO_T}no" >&6
26008
26009 fi
26010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26011 fi
26012
26013 if (test -z "$have_uintxx_t" && \
26014           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26015 then
26016    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26017 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26018    cat >conftest.$ac_ext <<_ACEOF
26019 /* confdefs.h.  */
26020 _ACEOF
26021 cat confdefs.h >>conftest.$ac_ext
26022 cat >>conftest.$ac_ext <<_ACEOF
26023 /* end confdefs.h.  */
26024  #include <sys/bitypes.h>
26025 int
26026 main ()
26027 {
26028  uint8_t a; uint16_t b;
26029           uint32_t c; a = b = c = 1;
26030   ;
26031   return 0;
26032 }
26033 _ACEOF
26034 rm -f conftest.$ac_objext
26035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26036   (eval $ac_compile) 2>conftest.er1
26037   ac_status=$?
26038   grep -v '^ *+' conftest.er1 >conftest.err
26039   rm -f conftest.er1
26040   cat conftest.err >&5
26041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042   (exit $ac_status); } &&
26043          { ac_try='test -z "$ac_c_werror_flag"
26044                          || test ! -s conftest.err'
26045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26046   (eval $ac_try) 2>&5
26047   ac_status=$?
26048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049   (exit $ac_status); }; } &&
26050          { ac_try='test -s conftest.$ac_objext'
26051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26052   (eval $ac_try) 2>&5
26053   ac_status=$?
26054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055   (exit $ac_status); }; }; then
26056    cat >>confdefs.h <<\_ACEOF
26057 #define HAVE_UINTXX_T 1
26058 _ACEOF
26059
26060        echo "$as_me:$LINENO: result: yes" >&5
26061 echo "${ECHO_T}yes" >&6
26062 else
26063   echo "$as_me: failed program was:" >&5
26064 sed 's/^/| /' conftest.$ac_ext >&5
26065
26066  echo "$as_me:$LINENO: result: no" >&5
26067 echo "${ECHO_T}no" >&6
26068
26069 fi
26070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26071
26072 fi
26073
26074
26075
26076
26077
26078
26079
26080
26081
26082
26083
26084
26085
26086
26087
26088
26089
26090 for ac_func in \
26091         fork \
26092         getcwd \
26093         gethostname \
26094         getpid \
26095         gettimeofday \
26096         setpgid \
26097         setpgrp \
26098         setsid \
26099         signal \
26100         strerror \
26101         strncmp \
26102         strncpy \
26103         vfprintf \
26104
26105 do
26106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26107 echo "$as_me:$LINENO: checking for $ac_func" >&5
26108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26109 if eval "test \"\${$as_ac_var+set}\" = set"; then
26110   echo $ECHO_N "(cached) $ECHO_C" >&6
26111 else
26112   cat >conftest.$ac_ext <<_ACEOF
26113 /* confdefs.h.  */
26114 _ACEOF
26115 cat confdefs.h >>conftest.$ac_ext
26116 cat >>conftest.$ac_ext <<_ACEOF
26117 /* end confdefs.h.  */
26118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26120 #define $ac_func innocuous_$ac_func
26121
26122 /* System header to define __stub macros and hopefully few prototypes,
26123     which can conflict with char $ac_func (); below.
26124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26125     <limits.h> exists even on freestanding compilers.  */
26126
26127 #ifdef __STDC__
26128 # include <limits.h>
26129 #else
26130 # include <assert.h>
26131 #endif
26132
26133 #undef $ac_func
26134
26135 /* Override any gcc2 internal prototype to avoid an error.  */
26136 #ifdef __cplusplus
26137 extern "C"
26138 {
26139 #endif
26140 /* We use char because int might match the return type of a gcc2
26141    builtin and then its argument prototype would still apply.  */
26142 char $ac_func ();
26143 /* The GNU C library defines this for functions which it implements
26144     to always fail with ENOSYS.  Some functions are actually named
26145     something starting with __ and the normal name is an alias.  */
26146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26147 choke me
26148 #else
26149 char (*f) () = $ac_func;
26150 #endif
26151 #ifdef __cplusplus
26152 }
26153 #endif
26154
26155 int
26156 main ()
26157 {
26158 return f != $ac_func;
26159   ;
26160   return 0;
26161 }
26162 _ACEOF
26163 rm -f conftest.$ac_objext conftest$ac_exeext
26164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26165   (eval $ac_link) 2>conftest.er1
26166   ac_status=$?
26167   grep -v '^ *+' conftest.er1 >conftest.err
26168   rm -f conftest.er1
26169   cat conftest.err >&5
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); } &&
26172          { ac_try='test -z "$ac_c_werror_flag"
26173                          || test ! -s conftest.err'
26174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26175   (eval $ac_try) 2>&5
26176   ac_status=$?
26177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178   (exit $ac_status); }; } &&
26179          { ac_try='test -s conftest$ac_exeext'
26180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181   (eval $ac_try) 2>&5
26182   ac_status=$?
26183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184   (exit $ac_status); }; }; then
26185   eval "$as_ac_var=yes"
26186 else
26187   echo "$as_me: failed program was:" >&5
26188 sed 's/^/| /' conftest.$ac_ext >&5
26189
26190 eval "$as_ac_var=no"
26191 fi
26192 rm -f conftest.err conftest.$ac_objext \
26193       conftest$ac_exeext conftest.$ac_ext
26194 fi
26195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26197 if test `eval echo '${'$as_ac_var'}'` = yes; then
26198   cat >>confdefs.h <<_ACEOF
26199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26200 _ACEOF
26201
26202 else
26203   echo 'configure: cannot find needed function.'; exit 1
26204
26205 fi
26206 done
26207
26208
26209
26210 for ac_func in fchdir
26211 do
26212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26213 echo "$as_me:$LINENO: checking for $ac_func" >&5
26214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26215 if eval "test \"\${$as_ac_var+set}\" = set"; then
26216   echo $ECHO_N "(cached) $ECHO_C" >&6
26217 else
26218   cat >conftest.$ac_ext <<_ACEOF
26219 /* confdefs.h.  */
26220 _ACEOF
26221 cat confdefs.h >>conftest.$ac_ext
26222 cat >>conftest.$ac_ext <<_ACEOF
26223 /* end confdefs.h.  */
26224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26226 #define $ac_func innocuous_$ac_func
26227
26228 /* System header to define __stub macros and hopefully few prototypes,
26229     which can conflict with char $ac_func (); below.
26230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26231     <limits.h> exists even on freestanding compilers.  */
26232
26233 #ifdef __STDC__
26234 # include <limits.h>
26235 #else
26236 # include <assert.h>
26237 #endif
26238
26239 #undef $ac_func
26240
26241 /* Override any gcc2 internal prototype to avoid an error.  */
26242 #ifdef __cplusplus
26243 extern "C"
26244 {
26245 #endif
26246 /* We use char because int might match the return type of a gcc2
26247    builtin and then its argument prototype would still apply.  */
26248 char $ac_func ();
26249 /* The GNU C library defines this for functions which it implements
26250     to always fail with ENOSYS.  Some functions are actually named
26251     something starting with __ and the normal name is an alias.  */
26252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26253 choke me
26254 #else
26255 char (*f) () = $ac_func;
26256 #endif
26257 #ifdef __cplusplus
26258 }
26259 #endif
26260
26261 int
26262 main ()
26263 {
26264 return f != $ac_func;
26265   ;
26266   return 0;
26267 }
26268 _ACEOF
26269 rm -f conftest.$ac_objext conftest$ac_exeext
26270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26271   (eval $ac_link) 2>conftest.er1
26272   ac_status=$?
26273   grep -v '^ *+' conftest.er1 >conftest.err
26274   rm -f conftest.er1
26275   cat conftest.err >&5
26276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277   (exit $ac_status); } &&
26278          { ac_try='test -z "$ac_c_werror_flag"
26279                          || test ! -s conftest.err'
26280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26281   (eval $ac_try) 2>&5
26282   ac_status=$?
26283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284   (exit $ac_status); }; } &&
26285          { ac_try='test -s conftest$ac_exeext'
26286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26287   (eval $ac_try) 2>&5
26288   ac_status=$?
26289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290   (exit $ac_status); }; }; then
26291   eval "$as_ac_var=yes"
26292 else
26293   echo "$as_me: failed program was:" >&5
26294 sed 's/^/| /' conftest.$ac_ext >&5
26295
26296 eval "$as_ac_var=no"
26297 fi
26298 rm -f conftest.err conftest.$ac_objext \
26299       conftest$ac_exeext conftest.$ac_ext
26300 fi
26301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26303 if test `eval echo '${'$as_ac_var'}'` = yes; then
26304   cat >>confdefs.h <<_ACEOF
26305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26306 _ACEOF
26307  cat >>confdefs.h <<\_ACEOF
26308 #define HAVE_FCHDIR 1
26309 _ACEOF
26310
26311 fi
26312 done
26313
26314
26315 for ac_func in strtoll
26316 do
26317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26318 echo "$as_me:$LINENO: checking for $ac_func" >&5
26319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26320 if eval "test \"\${$as_ac_var+set}\" = set"; then
26321   echo $ECHO_N "(cached) $ECHO_C" >&6
26322 else
26323   cat >conftest.$ac_ext <<_ACEOF
26324 /* confdefs.h.  */
26325 _ACEOF
26326 cat confdefs.h >>conftest.$ac_ext
26327 cat >>conftest.$ac_ext <<_ACEOF
26328 /* end confdefs.h.  */
26329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26331 #define $ac_func innocuous_$ac_func
26332
26333 /* System header to define __stub macros and hopefully few prototypes,
26334     which can conflict with char $ac_func (); below.
26335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26336     <limits.h> exists even on freestanding compilers.  */
26337
26338 #ifdef __STDC__
26339 # include <limits.h>
26340 #else
26341 # include <assert.h>
26342 #endif
26343
26344 #undef $ac_func
26345
26346 /* Override any gcc2 internal prototype to avoid an error.  */
26347 #ifdef __cplusplus
26348 extern "C"
26349 {
26350 #endif
26351 /* We use char because int might match the return type of a gcc2
26352    builtin and then its argument prototype would still apply.  */
26353 char $ac_func ();
26354 /* The GNU C library defines this for functions which it implements
26355     to always fail with ENOSYS.  Some functions are actually named
26356     something starting with __ and the normal name is an alias.  */
26357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26358 choke me
26359 #else
26360 char (*f) () = $ac_func;
26361 #endif
26362 #ifdef __cplusplus
26363 }
26364 #endif
26365
26366 int
26367 main ()
26368 {
26369 return f != $ac_func;
26370   ;
26371   return 0;
26372 }
26373 _ACEOF
26374 rm -f conftest.$ac_objext conftest$ac_exeext
26375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26376   (eval $ac_link) 2>conftest.er1
26377   ac_status=$?
26378   grep -v '^ *+' conftest.er1 >conftest.err
26379   rm -f conftest.er1
26380   cat conftest.err >&5
26381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382   (exit $ac_status); } &&
26383          { ac_try='test -z "$ac_c_werror_flag"
26384                          || test ! -s conftest.err'
26385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26386   (eval $ac_try) 2>&5
26387   ac_status=$?
26388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389   (exit $ac_status); }; } &&
26390          { ac_try='test -s conftest$ac_exeext'
26391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26392   (eval $ac_try) 2>&5
26393   ac_status=$?
26394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395   (exit $ac_status); }; }; then
26396   eval "$as_ac_var=yes"
26397 else
26398   echo "$as_me: failed program was:" >&5
26399 sed 's/^/| /' conftest.$ac_ext >&5
26400
26401 eval "$as_ac_var=no"
26402 fi
26403 rm -f conftest.err conftest.$ac_objext \
26404       conftest$ac_exeext conftest.$ac_ext
26405 fi
26406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26408 if test `eval echo '${'$as_ac_var'}'` = yes; then
26409   cat >>confdefs.h <<_ACEOF
26410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26411 _ACEOF
26412  cat >>confdefs.h <<\_ACEOF
26413 #define HAVE_STRTOLL 1
26414 _ACEOF
26415
26416 fi
26417 done
26418
26419
26420
26421 for ac_func in chflags
26422 do
26423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26424 echo "$as_me:$LINENO: checking for $ac_func" >&5
26425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26426 if eval "test \"\${$as_ac_var+set}\" = set"; then
26427   echo $ECHO_N "(cached) $ECHO_C" >&6
26428 else
26429   cat >conftest.$ac_ext <<_ACEOF
26430 /* confdefs.h.  */
26431 _ACEOF
26432 cat confdefs.h >>conftest.$ac_ext
26433 cat >>conftest.$ac_ext <<_ACEOF
26434 /* end confdefs.h.  */
26435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26437 #define $ac_func innocuous_$ac_func
26438
26439 /* System header to define __stub macros and hopefully few prototypes,
26440     which can conflict with char $ac_func (); below.
26441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26442     <limits.h> exists even on freestanding compilers.  */
26443
26444 #ifdef __STDC__
26445 # include <limits.h>
26446 #else
26447 # include <assert.h>
26448 #endif
26449
26450 #undef $ac_func
26451
26452 /* Override any gcc2 internal prototype to avoid an error.  */
26453 #ifdef __cplusplus
26454 extern "C"
26455 {
26456 #endif
26457 /* We use char because int might match the return type of a gcc2
26458    builtin and then its argument prototype would still apply.  */
26459 char $ac_func ();
26460 /* The GNU C library defines this for functions which it implements
26461     to always fail with ENOSYS.  Some functions are actually named
26462     something starting with __ and the normal name is an alias.  */
26463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26464 choke me
26465 #else
26466 char (*f) () = $ac_func;
26467 #endif
26468 #ifdef __cplusplus
26469 }
26470 #endif
26471
26472 int
26473 main ()
26474 {
26475 return f != $ac_func;
26476   ;
26477   return 0;
26478 }
26479 _ACEOF
26480 rm -f conftest.$ac_objext conftest$ac_exeext
26481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26482   (eval $ac_link) 2>conftest.er1
26483   ac_status=$?
26484   grep -v '^ *+' conftest.er1 >conftest.err
26485   rm -f conftest.er1
26486   cat conftest.err >&5
26487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488   (exit $ac_status); } &&
26489          { ac_try='test -z "$ac_c_werror_flag"
26490                          || test ! -s conftest.err'
26491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26492   (eval $ac_try) 2>&5
26493   ac_status=$?
26494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495   (exit $ac_status); }; } &&
26496          { ac_try='test -s conftest$ac_exeext'
26497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26498   (eval $ac_try) 2>&5
26499   ac_status=$?
26500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501   (exit $ac_status); }; }; then
26502   eval "$as_ac_var=yes"
26503 else
26504   echo "$as_me: failed program was:" >&5
26505 sed 's/^/| /' conftest.$ac_ext >&5
26506
26507 eval "$as_ac_var=no"
26508 fi
26509 rm -f conftest.err conftest.$ac_objext \
26510       conftest$ac_exeext conftest.$ac_ext
26511 fi
26512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26514 if test `eval echo '${'$as_ac_var'}'` = yes; then
26515   cat >>confdefs.h <<_ACEOF
26516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26517 _ACEOF
26518
26519 fi
26520 done
26521
26522
26523
26524
26525
26526
26527 for ac_func in snprintf vsnprintf gethostid fseeko
26528 do
26529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26530 echo "$as_me:$LINENO: checking for $ac_func" >&5
26531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26532 if eval "test \"\${$as_ac_var+set}\" = set"; then
26533   echo $ECHO_N "(cached) $ECHO_C" >&6
26534 else
26535   cat >conftest.$ac_ext <<_ACEOF
26536 /* confdefs.h.  */
26537 _ACEOF
26538 cat confdefs.h >>conftest.$ac_ext
26539 cat >>conftest.$ac_ext <<_ACEOF
26540 /* end confdefs.h.  */
26541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26543 #define $ac_func innocuous_$ac_func
26544
26545 /* System header to define __stub macros and hopefully few prototypes,
26546     which can conflict with char $ac_func (); below.
26547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26548     <limits.h> exists even on freestanding compilers.  */
26549
26550 #ifdef __STDC__
26551 # include <limits.h>
26552 #else
26553 # include <assert.h>
26554 #endif
26555
26556 #undef $ac_func
26557
26558 /* Override any gcc2 internal prototype to avoid an error.  */
26559 #ifdef __cplusplus
26560 extern "C"
26561 {
26562 #endif
26563 /* We use char because int might match the return type of a gcc2
26564    builtin and then its argument prototype would still apply.  */
26565 char $ac_func ();
26566 /* The GNU C library defines this for functions which it implements
26567     to always fail with ENOSYS.  Some functions are actually named
26568     something starting with __ and the normal name is an alias.  */
26569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26570 choke me
26571 #else
26572 char (*f) () = $ac_func;
26573 #endif
26574 #ifdef __cplusplus
26575 }
26576 #endif
26577
26578 int
26579 main ()
26580 {
26581 return f != $ac_func;
26582   ;
26583   return 0;
26584 }
26585 _ACEOF
26586 rm -f conftest.$ac_objext conftest$ac_exeext
26587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26588   (eval $ac_link) 2>conftest.er1
26589   ac_status=$?
26590   grep -v '^ *+' conftest.er1 >conftest.err
26591   rm -f conftest.er1
26592   cat conftest.err >&5
26593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594   (exit $ac_status); } &&
26595          { ac_try='test -z "$ac_c_werror_flag"
26596                          || test ! -s conftest.err'
26597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26598   (eval $ac_try) 2>&5
26599   ac_status=$?
26600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601   (exit $ac_status); }; } &&
26602          { ac_try='test -s conftest$ac_exeext'
26603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26604   (eval $ac_try) 2>&5
26605   ac_status=$?
26606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607   (exit $ac_status); }; }; then
26608   eval "$as_ac_var=yes"
26609 else
26610   echo "$as_me: failed program was:" >&5
26611 sed 's/^/| /' conftest.$ac_ext >&5
26612
26613 eval "$as_ac_var=no"
26614 fi
26615 rm -f conftest.err conftest.$ac_objext \
26616       conftest$ac_exeext conftest.$ac_ext
26617 fi
26618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26620 if test `eval echo '${'$as_ac_var'}'` = yes; then
26621   cat >>confdefs.h <<_ACEOF
26622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26623 _ACEOF
26624
26625 fi
26626 done
26627
26628
26629
26630
26631
26632
26633 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
26634 do
26635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26636 echo "$as_me:$LINENO: checking for $ac_func" >&5
26637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26638 if eval "test \"\${$as_ac_var+set}\" = set"; then
26639   echo $ECHO_N "(cached) $ECHO_C" >&6
26640 else
26641   cat >conftest.$ac_ext <<_ACEOF
26642 /* confdefs.h.  */
26643 _ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h.  */
26647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26649 #define $ac_func innocuous_$ac_func
26650
26651 /* System header to define __stub macros and hopefully few prototypes,
26652     which can conflict with char $ac_func (); below.
26653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26654     <limits.h> exists even on freestanding compilers.  */
26655
26656 #ifdef __STDC__
26657 # include <limits.h>
26658 #else
26659 # include <assert.h>
26660 #endif
26661
26662 #undef $ac_func
26663
26664 /* Override any gcc2 internal prototype to avoid an error.  */
26665 #ifdef __cplusplus
26666 extern "C"
26667 {
26668 #endif
26669 /* We use char because int might match the return type of a gcc2
26670    builtin and then its argument prototype would still apply.  */
26671 char $ac_func ();
26672 /* The GNU C library defines this for functions which it implements
26673     to always fail with ENOSYS.  Some functions are actually named
26674     something starting with __ and the normal name is an alias.  */
26675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26676 choke me
26677 #else
26678 char (*f) () = $ac_func;
26679 #endif
26680 #ifdef __cplusplus
26681 }
26682 #endif
26683
26684 int
26685 main ()
26686 {
26687 return f != $ac_func;
26688   ;
26689   return 0;
26690 }
26691 _ACEOF
26692 rm -f conftest.$ac_objext conftest$ac_exeext
26693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26694   (eval $ac_link) 2>conftest.er1
26695   ac_status=$?
26696   grep -v '^ *+' conftest.er1 >conftest.err
26697   rm -f conftest.er1
26698   cat conftest.err >&5
26699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700   (exit $ac_status); } &&
26701          { ac_try='test -z "$ac_c_werror_flag"
26702                          || test ! -s conftest.err'
26703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26704   (eval $ac_try) 2>&5
26705   ac_status=$?
26706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707   (exit $ac_status); }; } &&
26708          { ac_try='test -s conftest$ac_exeext'
26709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26710   (eval $ac_try) 2>&5
26711   ac_status=$?
26712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713   (exit $ac_status); }; }; then
26714   eval "$as_ac_var=yes"
26715 else
26716   echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26718
26719 eval "$as_ac_var=no"
26720 fi
26721 rm -f conftest.err conftest.$ac_objext \
26722       conftest$ac_exeext conftest.$ac_ext
26723 fi
26724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26726 if test `eval echo '${'$as_ac_var'}'` = yes; then
26727   cat >>confdefs.h <<_ACEOF
26728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26729 _ACEOF
26730
26731 fi
26732 done
26733
26734
26735 # If resolver functions are not in libc check for -lnsl or -lresolv.
26736 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26737 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
26738 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26739   echo $ECHO_N "(cached) $ECHO_C" >&6
26740 else
26741   cat >conftest.$ac_ext <<_ACEOF
26742 /* confdefs.h.  */
26743 _ACEOF
26744 cat confdefs.h >>conftest.$ac_ext
26745 cat >>conftest.$ac_ext <<_ACEOF
26746 /* end confdefs.h.  */
26747 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26749 #define gethostbyname_r innocuous_gethostbyname_r
26750
26751 /* System header to define __stub macros and hopefully few prototypes,
26752     which can conflict with char gethostbyname_r (); below.
26753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26754     <limits.h> exists even on freestanding compilers.  */
26755
26756 #ifdef __STDC__
26757 # include <limits.h>
26758 #else
26759 # include <assert.h>
26760 #endif
26761
26762 #undef gethostbyname_r
26763
26764 /* Override any gcc2 internal prototype to avoid an error.  */
26765 #ifdef __cplusplus
26766 extern "C"
26767 {
26768 #endif
26769 /* We use char because int might match the return type of a gcc2
26770    builtin and then its argument prototype would still apply.  */
26771 char gethostbyname_r ();
26772 /* The GNU C library defines this for functions which it implements
26773     to always fail with ENOSYS.  Some functions are actually named
26774     something starting with __ and the normal name is an alias.  */
26775 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
26776 choke me
26777 #else
26778 char (*f) () = gethostbyname_r;
26779 #endif
26780 #ifdef __cplusplus
26781 }
26782 #endif
26783
26784 int
26785 main ()
26786 {
26787 return f != gethostbyname_r;
26788   ;
26789   return 0;
26790 }
26791 _ACEOF
26792 rm -f conftest.$ac_objext conftest$ac_exeext
26793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26794   (eval $ac_link) 2>conftest.er1
26795   ac_status=$?
26796   grep -v '^ *+' conftest.er1 >conftest.err
26797   rm -f conftest.er1
26798   cat conftest.err >&5
26799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26800   (exit $ac_status); } &&
26801          { ac_try='test -z "$ac_c_werror_flag"
26802                          || test ! -s conftest.err'
26803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26804   (eval $ac_try) 2>&5
26805   ac_status=$?
26806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807   (exit $ac_status); }; } &&
26808          { ac_try='test -s conftest$ac_exeext'
26809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26810   (eval $ac_try) 2>&5
26811   ac_status=$?
26812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813   (exit $ac_status); }; }; then
26814   ac_cv_func_gethostbyname_r=yes
26815 else
26816   echo "$as_me: failed program was:" >&5
26817 sed 's/^/| /' conftest.$ac_ext >&5
26818
26819 ac_cv_func_gethostbyname_r=no
26820 fi
26821 rm -f conftest.err conftest.$ac_objext \
26822       conftest$ac_exeext conftest.$ac_ext
26823 fi
26824 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26825 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
26826 if test $ac_cv_func_gethostbyname_r = yes; then
26827   echo "$as_me:$LINENO: result: using libc's resolver" >&5
26828 echo "${ECHO_T}using libc's resolver" >&6
26829 else
26830
26831 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
26832 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
26833 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
26834   echo $ECHO_N "(cached) $ECHO_C" >&6
26835 else
26836   ac_check_lib_save_LIBS=$LIBS
26837 LIBS="-lnsl  $LIBS"
26838 cat >conftest.$ac_ext <<_ACEOF
26839 /* confdefs.h.  */
26840 _ACEOF
26841 cat confdefs.h >>conftest.$ac_ext
26842 cat >>conftest.$ac_ext <<_ACEOF
26843 /* end confdefs.h.  */
26844
26845 /* Override any gcc2 internal prototype to avoid an error.  */
26846 #ifdef __cplusplus
26847 extern "C"
26848 #endif
26849 /* We use char because int might match the return type of a gcc2
26850    builtin and then its argument prototype would still apply.  */
26851 char gethostbyname_r ();
26852 int
26853 main ()
26854 {
26855 gethostbyname_r ();
26856   ;
26857   return 0;
26858 }
26859 _ACEOF
26860 rm -f conftest.$ac_objext conftest$ac_exeext
26861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26862   (eval $ac_link) 2>conftest.er1
26863   ac_status=$?
26864   grep -v '^ *+' conftest.er1 >conftest.err
26865   rm -f conftest.er1
26866   cat conftest.err >&5
26867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868   (exit $ac_status); } &&
26869          { ac_try='test -z "$ac_c_werror_flag"
26870                          || test ! -s conftest.err'
26871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26872   (eval $ac_try) 2>&5
26873   ac_status=$?
26874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875   (exit $ac_status); }; } &&
26876          { ac_try='test -s conftest$ac_exeext'
26877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26878   (eval $ac_try) 2>&5
26879   ac_status=$?
26880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881   (exit $ac_status); }; }; then
26882   ac_cv_lib_nsl_gethostbyname_r=yes
26883 else
26884   echo "$as_me: failed program was:" >&5
26885 sed 's/^/| /' conftest.$ac_ext >&5
26886
26887 ac_cv_lib_nsl_gethostbyname_r=no
26888 fi
26889 rm -f conftest.err conftest.$ac_objext \
26890       conftest$ac_exeext conftest.$ac_ext
26891 LIBS=$ac_check_lib_save_LIBS
26892 fi
26893 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
26894 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
26895 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
26896   cat >>confdefs.h <<_ACEOF
26897 #define HAVE_LIBNSL 1
26898 _ACEOF
26899
26900   LIBS="-lnsl $LIBS"
26901
26902 fi
26903
26904
26905 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
26906 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
26907 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
26908   echo $ECHO_N "(cached) $ECHO_C" >&6
26909 else
26910   ac_check_lib_save_LIBS=$LIBS
26911 LIBS="-lresolv  $LIBS"
26912 cat >conftest.$ac_ext <<_ACEOF
26913 /* confdefs.h.  */
26914 _ACEOF
26915 cat confdefs.h >>conftest.$ac_ext
26916 cat >>conftest.$ac_ext <<_ACEOF
26917 /* end confdefs.h.  */
26918
26919 /* Override any gcc2 internal prototype to avoid an error.  */
26920 #ifdef __cplusplus
26921 extern "C"
26922 #endif
26923 /* We use char because int might match the return type of a gcc2
26924    builtin and then its argument prototype would still apply.  */
26925 char gethostbyname_r ();
26926 int
26927 main ()
26928 {
26929 gethostbyname_r ();
26930   ;
26931   return 0;
26932 }
26933 _ACEOF
26934 rm -f conftest.$ac_objext conftest$ac_exeext
26935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26936   (eval $ac_link) 2>conftest.er1
26937   ac_status=$?
26938   grep -v '^ *+' conftest.er1 >conftest.err
26939   rm -f conftest.er1
26940   cat conftest.err >&5
26941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942   (exit $ac_status); } &&
26943          { ac_try='test -z "$ac_c_werror_flag"
26944                          || test ! -s conftest.err'
26945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26946   (eval $ac_try) 2>&5
26947   ac_status=$?
26948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949   (exit $ac_status); }; } &&
26950          { ac_try='test -s conftest$ac_exeext'
26951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26952   (eval $ac_try) 2>&5
26953   ac_status=$?
26954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955   (exit $ac_status); }; }; then
26956   ac_cv_lib_resolv_gethostbyname_r=yes
26957 else
26958   echo "$as_me: failed program was:" >&5
26959 sed 's/^/| /' conftest.$ac_ext >&5
26960
26961 ac_cv_lib_resolv_gethostbyname_r=no
26962 fi
26963 rm -f conftest.err conftest.$ac_objext \
26964       conftest$ac_exeext conftest.$ac_ext
26965 LIBS=$ac_check_lib_save_LIBS
26966 fi
26967 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
26968 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
26969 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
26970   cat >>confdefs.h <<_ACEOF
26971 #define HAVE_LIBRESOLV 1
26972 _ACEOF
26973
26974   LIBS="-lresolv $LIBS"
26975
26976 fi
26977
26978 fi
26979
26980
26981
26982
26983
26984 for ac_func in inet_pton
26985 do
26986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26987 echo "$as_me:$LINENO: checking for $ac_func" >&5
26988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26989 if eval "test \"\${$as_ac_var+set}\" = set"; then
26990   echo $ECHO_N "(cached) $ECHO_C" >&6
26991 else
26992   cat >conftest.$ac_ext <<_ACEOF
26993 /* confdefs.h.  */
26994 _ACEOF
26995 cat confdefs.h >>conftest.$ac_ext
26996 cat >>conftest.$ac_ext <<_ACEOF
26997 /* end confdefs.h.  */
26998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26999    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27000 #define $ac_func innocuous_$ac_func
27001
27002 /* System header to define __stub macros and hopefully few prototypes,
27003     which can conflict with char $ac_func (); below.
27004     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27005     <limits.h> exists even on freestanding compilers.  */
27006
27007 #ifdef __STDC__
27008 # include <limits.h>
27009 #else
27010 # include <assert.h>
27011 #endif
27012
27013 #undef $ac_func
27014
27015 /* Override any gcc2 internal prototype to avoid an error.  */
27016 #ifdef __cplusplus
27017 extern "C"
27018 {
27019 #endif
27020 /* We use char because int might match the return type of a gcc2
27021    builtin and then its argument prototype would still apply.  */
27022 char $ac_func ();
27023 /* The GNU C library defines this for functions which it implements
27024     to always fail with ENOSYS.  Some functions are actually named
27025     something starting with __ and the normal name is an alias.  */
27026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27027 choke me
27028 #else
27029 char (*f) () = $ac_func;
27030 #endif
27031 #ifdef __cplusplus
27032 }
27033 #endif
27034
27035 int
27036 main ()
27037 {
27038 return f != $ac_func;
27039   ;
27040   return 0;
27041 }
27042 _ACEOF
27043 rm -f conftest.$ac_objext conftest$ac_exeext
27044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27045   (eval $ac_link) 2>conftest.er1
27046   ac_status=$?
27047   grep -v '^ *+' conftest.er1 >conftest.err
27048   rm -f conftest.er1
27049   cat conftest.err >&5
27050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051   (exit $ac_status); } &&
27052          { ac_try='test -z "$ac_c_werror_flag"
27053                          || test ! -s conftest.err'
27054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27055   (eval $ac_try) 2>&5
27056   ac_status=$?
27057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058   (exit $ac_status); }; } &&
27059          { ac_try='test -s conftest$ac_exeext'
27060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27061   (eval $ac_try) 2>&5
27062   ac_status=$?
27063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064   (exit $ac_status); }; }; then
27065   eval "$as_ac_var=yes"
27066 else
27067   echo "$as_me: failed program was:" >&5
27068 sed 's/^/| /' conftest.$ac_ext >&5
27069
27070 eval "$as_ac_var=no"
27071 fi
27072 rm -f conftest.err conftest.$ac_objext \
27073       conftest$ac_exeext conftest.$ac_ext
27074 fi
27075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27077 if test `eval echo '${'$as_ac_var'}'` = yes; then
27078   cat >>confdefs.h <<_ACEOF
27079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27080 _ACEOF
27081  cat >>confdefs.h <<\_ACEOF
27082 #define HAVE_INET_PTON 1
27083 _ACEOF
27084
27085 fi
27086 done
27087
27088
27089 for ac_func in inet_ntop
27090 do
27091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27092 echo "$as_me:$LINENO: checking for $ac_func" >&5
27093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27094 if eval "test \"\${$as_ac_var+set}\" = set"; then
27095   echo $ECHO_N "(cached) $ECHO_C" >&6
27096 else
27097   cat >conftest.$ac_ext <<_ACEOF
27098 /* confdefs.h.  */
27099 _ACEOF
27100 cat confdefs.h >>conftest.$ac_ext
27101 cat >>conftest.$ac_ext <<_ACEOF
27102 /* end confdefs.h.  */
27103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27105 #define $ac_func innocuous_$ac_func
27106
27107 /* System header to define __stub macros and hopefully few prototypes,
27108     which can conflict with char $ac_func (); below.
27109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27110     <limits.h> exists even on freestanding compilers.  */
27111
27112 #ifdef __STDC__
27113 # include <limits.h>
27114 #else
27115 # include <assert.h>
27116 #endif
27117
27118 #undef $ac_func
27119
27120 /* Override any gcc2 internal prototype to avoid an error.  */
27121 #ifdef __cplusplus
27122 extern "C"
27123 {
27124 #endif
27125 /* We use char because int might match the return type of a gcc2
27126    builtin and then its argument prototype would still apply.  */
27127 char $ac_func ();
27128 /* The GNU C library defines this for functions which it implements
27129     to always fail with ENOSYS.  Some functions are actually named
27130     something starting with __ and the normal name is an alias.  */
27131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27132 choke me
27133 #else
27134 char (*f) () = $ac_func;
27135 #endif
27136 #ifdef __cplusplus
27137 }
27138 #endif
27139
27140 int
27141 main ()
27142 {
27143 return f != $ac_func;
27144   ;
27145   return 0;
27146 }
27147 _ACEOF
27148 rm -f conftest.$ac_objext conftest$ac_exeext
27149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27150   (eval $ac_link) 2>conftest.er1
27151   ac_status=$?
27152   grep -v '^ *+' conftest.er1 >conftest.err
27153   rm -f conftest.er1
27154   cat conftest.err >&5
27155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156   (exit $ac_status); } &&
27157          { ac_try='test -z "$ac_c_werror_flag"
27158                          || test ! -s conftest.err'
27159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27160   (eval $ac_try) 2>&5
27161   ac_status=$?
27162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163   (exit $ac_status); }; } &&
27164          { ac_try='test -s conftest$ac_exeext'
27165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27166   (eval $ac_try) 2>&5
27167   ac_status=$?
27168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169   (exit $ac_status); }; }; then
27170   eval "$as_ac_var=yes"
27171 else
27172   echo "$as_me: failed program was:" >&5
27173 sed 's/^/| /' conftest.$ac_ext >&5
27174
27175 eval "$as_ac_var=no"
27176 fi
27177 rm -f conftest.err conftest.$ac_objext \
27178       conftest$ac_exeext conftest.$ac_ext
27179 fi
27180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27182 if test `eval echo '${'$as_ac_var'}'` = yes; then
27183   cat >>confdefs.h <<_ACEOF
27184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27185 _ACEOF
27186  cat >>confdefs.h <<\_ACEOF
27187 #define HAVE_INET_NTOP 1
27188 _ACEOF
27189
27190 fi
27191 done
27192
27193
27194 for ac_func in gethostbyname2
27195 do
27196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27197 echo "$as_me:$LINENO: checking for $ac_func" >&5
27198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27199 if eval "test \"\${$as_ac_var+set}\" = set"; then
27200   echo $ECHO_N "(cached) $ECHO_C" >&6
27201 else
27202   cat >conftest.$ac_ext <<_ACEOF
27203 /* confdefs.h.  */
27204 _ACEOF
27205 cat confdefs.h >>conftest.$ac_ext
27206 cat >>conftest.$ac_ext <<_ACEOF
27207 /* end confdefs.h.  */
27208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27209    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27210 #define $ac_func innocuous_$ac_func
27211
27212 /* System header to define __stub macros and hopefully few prototypes,
27213     which can conflict with char $ac_func (); below.
27214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27215     <limits.h> exists even on freestanding compilers.  */
27216
27217 #ifdef __STDC__
27218 # include <limits.h>
27219 #else
27220 # include <assert.h>
27221 #endif
27222
27223 #undef $ac_func
27224
27225 /* Override any gcc2 internal prototype to avoid an error.  */
27226 #ifdef __cplusplus
27227 extern "C"
27228 {
27229 #endif
27230 /* We use char because int might match the return type of a gcc2
27231    builtin and then its argument prototype would still apply.  */
27232 char $ac_func ();
27233 /* The GNU C library defines this for functions which it implements
27234     to always fail with ENOSYS.  Some functions are actually named
27235     something starting with __ and the normal name is an alias.  */
27236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27237 choke me
27238 #else
27239 char (*f) () = $ac_func;
27240 #endif
27241 #ifdef __cplusplus
27242 }
27243 #endif
27244
27245 int
27246 main ()
27247 {
27248 return f != $ac_func;
27249   ;
27250   return 0;
27251 }
27252 _ACEOF
27253 rm -f conftest.$ac_objext conftest$ac_exeext
27254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27255   (eval $ac_link) 2>conftest.er1
27256   ac_status=$?
27257   grep -v '^ *+' conftest.er1 >conftest.err
27258   rm -f conftest.er1
27259   cat conftest.err >&5
27260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261   (exit $ac_status); } &&
27262          { ac_try='test -z "$ac_c_werror_flag"
27263                          || test ! -s conftest.err'
27264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27265   (eval $ac_try) 2>&5
27266   ac_status=$?
27267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268   (exit $ac_status); }; } &&
27269          { ac_try='test -s conftest$ac_exeext'
27270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27271   (eval $ac_try) 2>&5
27272   ac_status=$?
27273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274   (exit $ac_status); }; }; then
27275   eval "$as_ac_var=yes"
27276 else
27277   echo "$as_me: failed program was:" >&5
27278 sed 's/^/| /' conftest.$ac_ext >&5
27279
27280 eval "$as_ac_var=no"
27281 fi
27282 rm -f conftest.err conftest.$ac_objext \
27283       conftest$ac_exeext conftest.$ac_ext
27284 fi
27285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27287 if test `eval echo '${'$as_ac_var'}'` = yes; then
27288   cat >>confdefs.h <<_ACEOF
27289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27290 _ACEOF
27291  cat >>confdefs.h <<\_ACEOF
27292 #define HAVE_GETHOSTBYNAME2 1
27293 _ACEOF
27294
27295 fi
27296 done
27297
27298
27299 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27300 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27301 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27302   echo $ECHO_N "(cached) $ECHO_C" >&6
27303 else
27304   cat >conftest.$ac_ext <<_ACEOF
27305 /* confdefs.h.  */
27306 _ACEOF
27307 cat confdefs.h >>conftest.$ac_ext
27308 cat >>conftest.$ac_ext <<_ACEOF
27309 /* end confdefs.h.  */
27310 #include <sys/socket.h>
27311 int
27312 main ()
27313 {
27314 struct sockaddr s; s.sa_len;
27315   ;
27316   return 0;
27317 }
27318 _ACEOF
27319 rm -f conftest.$ac_objext
27320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27321   (eval $ac_compile) 2>conftest.er1
27322   ac_status=$?
27323   grep -v '^ *+' conftest.er1 >conftest.err
27324   rm -f conftest.er1
27325   cat conftest.err >&5
27326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327   (exit $ac_status); } &&
27328          { ac_try='test -z "$ac_c_werror_flag"
27329                          || test ! -s conftest.err'
27330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27331   (eval $ac_try) 2>&5
27332   ac_status=$?
27333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334   (exit $ac_status); }; } &&
27335          { ac_try='test -s conftest.$ac_objext'
27336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27337   (eval $ac_try) 2>&5
27338   ac_status=$?
27339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340   (exit $ac_status); }; }; then
27341   ac_cv_struct_sockaddr_sa_len=yes
27342 else
27343   echo "$as_me: failed program was:" >&5
27344 sed 's/^/| /' conftest.$ac_ext >&5
27345
27346 ac_cv_struct_sockaddr_sa_len=no
27347 fi
27348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27349 fi
27350 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27351 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27352
27353  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27354
27355 cat >>confdefs.h <<\_ACEOF
27356 #define HAVE_SA_LEN 1
27357 _ACEOF
27358
27359  fi
27360
27361
27362 echo "$as_me:$LINENO: checking for IPv6 support" >&5
27363 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
27364 if test "${ac_cv_ipv6_support+set}" = set; then
27365   echo $ECHO_N "(cached) $ECHO_C" >&6
27366 else
27367   cat >conftest.$ac_ext <<_ACEOF
27368 /* confdefs.h.  */
27369 _ACEOF
27370 cat confdefs.h >>conftest.$ac_ext
27371 cat >>conftest.$ac_ext <<_ACEOF
27372 /* end confdefs.h.  */
27373  #include <sys/types.h>
27374 #include <sys/socket.h>
27375 #include <netinet/in.h>
27376 int
27377 main ()
27378 {
27379 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
27380  0;
27381   ;
27382   return 0;
27383 }
27384 _ACEOF
27385 rm -f conftest.$ac_objext conftest$ac_exeext
27386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27387   (eval $ac_link) 2>conftest.er1
27388   ac_status=$?
27389   grep -v '^ *+' conftest.er1 >conftest.err
27390   rm -f conftest.er1
27391   cat conftest.err >&5
27392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393   (exit $ac_status); } &&
27394          { ac_try='test -z "$ac_c_werror_flag"
27395                          || test ! -s conftest.err'
27396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27397   (eval $ac_try) 2>&5
27398   ac_status=$?
27399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400   (exit $ac_status); }; } &&
27401          { ac_try='test -s conftest$ac_exeext'
27402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27403   (eval $ac_try) 2>&5
27404   ac_status=$?
27405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406   (exit $ac_status); }; }; then
27407   ac_cv_ipv6_support=yes
27408 else
27409   echo "$as_me: failed program was:" >&5
27410 sed 's/^/| /' conftest.$ac_ext >&5
27411
27412 ac_cv_ipv6_support=no
27413 fi
27414 rm -f conftest.err conftest.$ac_objext \
27415       conftest$ac_exeext conftest.$ac_ext
27416 fi
27417 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
27418 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
27419
27420 if test "$ac_cv_ipv6_support" = yes; then
27421
27422 cat >>confdefs.h <<\_ACEOF
27423 #define HAVE_IPV6 1
27424 _ACEOF
27425
27426 fi
27427
27428
27429
27430
27431 for ac_func in strftime
27432 do
27433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27434 echo "$as_me:$LINENO: checking for $ac_func" >&5
27435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27436 if eval "test \"\${$as_ac_var+set}\" = set"; then
27437   echo $ECHO_N "(cached) $ECHO_C" >&6
27438 else
27439   cat >conftest.$ac_ext <<_ACEOF
27440 /* confdefs.h.  */
27441 _ACEOF
27442 cat confdefs.h >>conftest.$ac_ext
27443 cat >>conftest.$ac_ext <<_ACEOF
27444 /* end confdefs.h.  */
27445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27447 #define $ac_func innocuous_$ac_func
27448
27449 /* System header to define __stub macros and hopefully few prototypes,
27450     which can conflict with char $ac_func (); below.
27451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27452     <limits.h> exists even on freestanding compilers.  */
27453
27454 #ifdef __STDC__
27455 # include <limits.h>
27456 #else
27457 # include <assert.h>
27458 #endif
27459
27460 #undef $ac_func
27461
27462 /* Override any gcc2 internal prototype to avoid an error.  */
27463 #ifdef __cplusplus
27464 extern "C"
27465 {
27466 #endif
27467 /* We use char because int might match the return type of a gcc2
27468    builtin and then its argument prototype would still apply.  */
27469 char $ac_func ();
27470 /* The GNU C library defines this for functions which it implements
27471     to always fail with ENOSYS.  Some functions are actually named
27472     something starting with __ and the normal name is an alias.  */
27473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27474 choke me
27475 #else
27476 char (*f) () = $ac_func;
27477 #endif
27478 #ifdef __cplusplus
27479 }
27480 #endif
27481
27482 int
27483 main ()
27484 {
27485 return f != $ac_func;
27486   ;
27487   return 0;
27488 }
27489 _ACEOF
27490 rm -f conftest.$ac_objext conftest$ac_exeext
27491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27492   (eval $ac_link) 2>conftest.er1
27493   ac_status=$?
27494   grep -v '^ *+' conftest.er1 >conftest.err
27495   rm -f conftest.er1
27496   cat conftest.err >&5
27497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498   (exit $ac_status); } &&
27499          { ac_try='test -z "$ac_c_werror_flag"
27500                          || test ! -s conftest.err'
27501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27502   (eval $ac_try) 2>&5
27503   ac_status=$?
27504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505   (exit $ac_status); }; } &&
27506          { ac_try='test -s conftest$ac_exeext'
27507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27508   (eval $ac_try) 2>&5
27509   ac_status=$?
27510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511   (exit $ac_status); }; }; then
27512   eval "$as_ac_var=yes"
27513 else
27514   echo "$as_me: failed program was:" >&5
27515 sed 's/^/| /' conftest.$ac_ext >&5
27516
27517 eval "$as_ac_var=no"
27518 fi
27519 rm -f conftest.err conftest.$ac_objext \
27520       conftest$ac_exeext conftest.$ac_ext
27521 fi
27522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27524 if test `eval echo '${'$as_ac_var'}'` = yes; then
27525   cat >>confdefs.h <<_ACEOF
27526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27527 _ACEOF
27528
27529 else
27530   # strftime is in -lintl on SCO UNIX.
27531 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27532 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27533 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27534   echo $ECHO_N "(cached) $ECHO_C" >&6
27535 else
27536   ac_check_lib_save_LIBS=$LIBS
27537 LIBS="-lintl  $LIBS"
27538 cat >conftest.$ac_ext <<_ACEOF
27539 /* confdefs.h.  */
27540 _ACEOF
27541 cat confdefs.h >>conftest.$ac_ext
27542 cat >>conftest.$ac_ext <<_ACEOF
27543 /* end confdefs.h.  */
27544
27545 /* Override any gcc2 internal prototype to avoid an error.  */
27546 #ifdef __cplusplus
27547 extern "C"
27548 #endif
27549 /* We use char because int might match the return type of a gcc2
27550    builtin and then its argument prototype would still apply.  */
27551 char strftime ();
27552 int
27553 main ()
27554 {
27555 strftime ();
27556   ;
27557   return 0;
27558 }
27559 _ACEOF
27560 rm -f conftest.$ac_objext conftest$ac_exeext
27561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27562   (eval $ac_link) 2>conftest.er1
27563   ac_status=$?
27564   grep -v '^ *+' conftest.er1 >conftest.err
27565   rm -f conftest.er1
27566   cat conftest.err >&5
27567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568   (exit $ac_status); } &&
27569          { ac_try='test -z "$ac_c_werror_flag"
27570                          || test ! -s conftest.err'
27571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27572   (eval $ac_try) 2>&5
27573   ac_status=$?
27574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575   (exit $ac_status); }; } &&
27576          { ac_try='test -s conftest$ac_exeext'
27577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27578   (eval $ac_try) 2>&5
27579   ac_status=$?
27580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581   (exit $ac_status); }; }; then
27582   ac_cv_lib_intl_strftime=yes
27583 else
27584   echo "$as_me: failed program was:" >&5
27585 sed 's/^/| /' conftest.$ac_ext >&5
27586
27587 ac_cv_lib_intl_strftime=no
27588 fi
27589 rm -f conftest.err conftest.$ac_objext \
27590       conftest$ac_exeext conftest.$ac_ext
27591 LIBS=$ac_check_lib_save_LIBS
27592 fi
27593 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27594 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
27595 if test $ac_cv_lib_intl_strftime = yes; then
27596   cat >>confdefs.h <<\_ACEOF
27597 #define HAVE_STRFTIME 1
27598 _ACEOF
27599
27600 LIBS="-lintl $LIBS"
27601 fi
27602
27603 fi
27604 done
27605
27606
27607 for ac_func in vprintf
27608 do
27609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27610 echo "$as_me:$LINENO: checking for $ac_func" >&5
27611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27612 if eval "test \"\${$as_ac_var+set}\" = set"; then
27613   echo $ECHO_N "(cached) $ECHO_C" >&6
27614 else
27615   cat >conftest.$ac_ext <<_ACEOF
27616 /* confdefs.h.  */
27617 _ACEOF
27618 cat confdefs.h >>conftest.$ac_ext
27619 cat >>conftest.$ac_ext <<_ACEOF
27620 /* end confdefs.h.  */
27621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27623 #define $ac_func innocuous_$ac_func
27624
27625 /* System header to define __stub macros and hopefully few prototypes,
27626     which can conflict with char $ac_func (); below.
27627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27628     <limits.h> exists even on freestanding compilers.  */
27629
27630 #ifdef __STDC__
27631 # include <limits.h>
27632 #else
27633 # include <assert.h>
27634 #endif
27635
27636 #undef $ac_func
27637
27638 /* Override any gcc2 internal prototype to avoid an error.  */
27639 #ifdef __cplusplus
27640 extern "C"
27641 {
27642 #endif
27643 /* We use char because int might match the return type of a gcc2
27644    builtin and then its argument prototype would still apply.  */
27645 char $ac_func ();
27646 /* The GNU C library defines this for functions which it implements
27647     to always fail with ENOSYS.  Some functions are actually named
27648     something starting with __ and the normal name is an alias.  */
27649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27650 choke me
27651 #else
27652 char (*f) () = $ac_func;
27653 #endif
27654 #ifdef __cplusplus
27655 }
27656 #endif
27657
27658 int
27659 main ()
27660 {
27661 return f != $ac_func;
27662   ;
27663   return 0;
27664 }
27665 _ACEOF
27666 rm -f conftest.$ac_objext conftest$ac_exeext
27667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27668   (eval $ac_link) 2>conftest.er1
27669   ac_status=$?
27670   grep -v '^ *+' conftest.er1 >conftest.err
27671   rm -f conftest.er1
27672   cat conftest.err >&5
27673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674   (exit $ac_status); } &&
27675          { ac_try='test -z "$ac_c_werror_flag"
27676                          || test ! -s conftest.err'
27677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27678   (eval $ac_try) 2>&5
27679   ac_status=$?
27680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681   (exit $ac_status); }; } &&
27682          { ac_try='test -s conftest$ac_exeext'
27683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27684   (eval $ac_try) 2>&5
27685   ac_status=$?
27686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687   (exit $ac_status); }; }; then
27688   eval "$as_ac_var=yes"
27689 else
27690   echo "$as_me: failed program was:" >&5
27691 sed 's/^/| /' conftest.$ac_ext >&5
27692
27693 eval "$as_ac_var=no"
27694 fi
27695 rm -f conftest.err conftest.$ac_objext \
27696       conftest$ac_exeext conftest.$ac_ext
27697 fi
27698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27700 if test `eval echo '${'$as_ac_var'}'` = yes; then
27701   cat >>confdefs.h <<_ACEOF
27702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27703 _ACEOF
27704
27705 echo "$as_me:$LINENO: checking for _doprnt" >&5
27706 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27707 if test "${ac_cv_func__doprnt+set}" = set; then
27708   echo $ECHO_N "(cached) $ECHO_C" >&6
27709 else
27710   cat >conftest.$ac_ext <<_ACEOF
27711 /* confdefs.h.  */
27712 _ACEOF
27713 cat confdefs.h >>conftest.$ac_ext
27714 cat >>conftest.$ac_ext <<_ACEOF
27715 /* end confdefs.h.  */
27716 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27718 #define _doprnt innocuous__doprnt
27719
27720 /* System header to define __stub macros and hopefully few prototypes,
27721     which can conflict with char _doprnt (); below.
27722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27723     <limits.h> exists even on freestanding compilers.  */
27724
27725 #ifdef __STDC__
27726 # include <limits.h>
27727 #else
27728 # include <assert.h>
27729 #endif
27730
27731 #undef _doprnt
27732
27733 /* Override any gcc2 internal prototype to avoid an error.  */
27734 #ifdef __cplusplus
27735 extern "C"
27736 {
27737 #endif
27738 /* We use char because int might match the return type of a gcc2
27739    builtin and then its argument prototype would still apply.  */
27740 char _doprnt ();
27741 /* The GNU C library defines this for functions which it implements
27742     to always fail with ENOSYS.  Some functions are actually named
27743     something starting with __ and the normal name is an alias.  */
27744 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27745 choke me
27746 #else
27747 char (*f) () = _doprnt;
27748 #endif
27749 #ifdef __cplusplus
27750 }
27751 #endif
27752
27753 int
27754 main ()
27755 {
27756 return f != _doprnt;
27757   ;
27758   return 0;
27759 }
27760 _ACEOF
27761 rm -f conftest.$ac_objext conftest$ac_exeext
27762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27763   (eval $ac_link) 2>conftest.er1
27764   ac_status=$?
27765   grep -v '^ *+' conftest.er1 >conftest.err
27766   rm -f conftest.er1
27767   cat conftest.err >&5
27768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769   (exit $ac_status); } &&
27770          { ac_try='test -z "$ac_c_werror_flag"
27771                          || test ! -s conftest.err'
27772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27773   (eval $ac_try) 2>&5
27774   ac_status=$?
27775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776   (exit $ac_status); }; } &&
27777          { ac_try='test -s conftest$ac_exeext'
27778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27779   (eval $ac_try) 2>&5
27780   ac_status=$?
27781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782   (exit $ac_status); }; }; then
27783   ac_cv_func__doprnt=yes
27784 else
27785   echo "$as_me: failed program was:" >&5
27786 sed 's/^/| /' conftest.$ac_ext >&5
27787
27788 ac_cv_func__doprnt=no
27789 fi
27790 rm -f conftest.err conftest.$ac_objext \
27791       conftest$ac_exeext conftest.$ac_ext
27792 fi
27793 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27794 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27795 if test $ac_cv_func__doprnt = yes; then
27796
27797 cat >>confdefs.h <<\_ACEOF
27798 #define HAVE_DOPRNT 1
27799 _ACEOF
27800
27801 fi
27802
27803 fi
27804 done
27805
27806
27807 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27808 # for constant arguments.  Useless!
27809 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27810 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27811 if test "${ac_cv_working_alloca_h+set}" = set; then
27812   echo $ECHO_N "(cached) $ECHO_C" >&6
27813 else
27814   cat >conftest.$ac_ext <<_ACEOF
27815 /* confdefs.h.  */
27816 _ACEOF
27817 cat confdefs.h >>conftest.$ac_ext
27818 cat >>conftest.$ac_ext <<_ACEOF
27819 /* end confdefs.h.  */
27820 #include <alloca.h>
27821 int
27822 main ()
27823 {
27824 char *p = (char *) alloca (2 * sizeof (int));
27825   ;
27826   return 0;
27827 }
27828 _ACEOF
27829 rm -f conftest.$ac_objext conftest$ac_exeext
27830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27831   (eval $ac_link) 2>conftest.er1
27832   ac_status=$?
27833   grep -v '^ *+' conftest.er1 >conftest.err
27834   rm -f conftest.er1
27835   cat conftest.err >&5
27836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837   (exit $ac_status); } &&
27838          { ac_try='test -z "$ac_c_werror_flag"
27839                          || test ! -s conftest.err'
27840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27841   (eval $ac_try) 2>&5
27842   ac_status=$?
27843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844   (exit $ac_status); }; } &&
27845          { ac_try='test -s conftest$ac_exeext'
27846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27847   (eval $ac_try) 2>&5
27848   ac_status=$?
27849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850   (exit $ac_status); }; }; then
27851   ac_cv_working_alloca_h=yes
27852 else
27853   echo "$as_me: failed program was:" >&5
27854 sed 's/^/| /' conftest.$ac_ext >&5
27855
27856 ac_cv_working_alloca_h=no
27857 fi
27858 rm -f conftest.err conftest.$ac_objext \
27859       conftest$ac_exeext conftest.$ac_ext
27860 fi
27861 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27862 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27863 if test $ac_cv_working_alloca_h = yes; then
27864
27865 cat >>confdefs.h <<\_ACEOF
27866 #define HAVE_ALLOCA_H 1
27867 _ACEOF
27868
27869 fi
27870
27871 echo "$as_me:$LINENO: checking for alloca" >&5
27872 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27873 if test "${ac_cv_func_alloca_works+set}" = set; then
27874   echo $ECHO_N "(cached) $ECHO_C" >&6
27875 else
27876   cat >conftest.$ac_ext <<_ACEOF
27877 /* confdefs.h.  */
27878 _ACEOF
27879 cat confdefs.h >>conftest.$ac_ext
27880 cat >>conftest.$ac_ext <<_ACEOF
27881 /* end confdefs.h.  */
27882 #ifdef __GNUC__
27883 # define alloca __builtin_alloca
27884 #else
27885 # ifdef _MSC_VER
27886 #  include <malloc.h>
27887 #  define alloca _alloca
27888 # else
27889 #  if HAVE_ALLOCA_H
27890 #   include <alloca.h>
27891 #  else
27892 #   ifdef _AIX
27893  #pragma alloca
27894 #   else
27895 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27896 char *alloca ();
27897 #    endif
27898 #   endif
27899 #  endif
27900 # endif
27901 #endif
27902
27903 int
27904 main ()
27905 {
27906 char *p = (char *) alloca (1);
27907   ;
27908   return 0;
27909 }
27910 _ACEOF
27911 rm -f conftest.$ac_objext conftest$ac_exeext
27912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27913   (eval $ac_link) 2>conftest.er1
27914   ac_status=$?
27915   grep -v '^ *+' conftest.er1 >conftest.err
27916   rm -f conftest.er1
27917   cat conftest.err >&5
27918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919   (exit $ac_status); } &&
27920          { ac_try='test -z "$ac_c_werror_flag"
27921                          || test ! -s conftest.err'
27922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27923   (eval $ac_try) 2>&5
27924   ac_status=$?
27925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926   (exit $ac_status); }; } &&
27927          { ac_try='test -s conftest$ac_exeext'
27928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27929   (eval $ac_try) 2>&5
27930   ac_status=$?
27931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932   (exit $ac_status); }; }; then
27933   ac_cv_func_alloca_works=yes
27934 else
27935   echo "$as_me: failed program was:" >&5
27936 sed 's/^/| /' conftest.$ac_ext >&5
27937
27938 ac_cv_func_alloca_works=no
27939 fi
27940 rm -f conftest.err conftest.$ac_objext \
27941       conftest$ac_exeext conftest.$ac_ext
27942 fi
27943 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27944 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27945
27946 if test $ac_cv_func_alloca_works = yes; then
27947
27948 cat >>confdefs.h <<\_ACEOF
27949 #define HAVE_ALLOCA 1
27950 _ACEOF
27951
27952 else
27953   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27954 # that cause trouble.  Some versions do not even contain alloca or
27955 # contain a buggy version.  If you still want to use their alloca,
27956 # use ar to extract alloca.o from them instead of compiling alloca.c.
27957
27958 ALLOCA=alloca.$ac_objext
27959
27960 cat >>confdefs.h <<\_ACEOF
27961 #define C_ALLOCA 1
27962 _ACEOF
27963
27964
27965 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27966 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27967 if test "${ac_cv_os_cray+set}" = set; then
27968   echo $ECHO_N "(cached) $ECHO_C" >&6
27969 else
27970   cat >conftest.$ac_ext <<_ACEOF
27971 /* confdefs.h.  */
27972 _ACEOF
27973 cat confdefs.h >>conftest.$ac_ext
27974 cat >>conftest.$ac_ext <<_ACEOF
27975 /* end confdefs.h.  */
27976 #if defined(CRAY) && ! defined(CRAY2)
27977 webecray
27978 #else
27979 wenotbecray
27980 #endif
27981
27982 _ACEOF
27983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27984   $EGREP "webecray" >/dev/null 2>&1; then
27985   ac_cv_os_cray=yes
27986 else
27987   ac_cv_os_cray=no
27988 fi
27989 rm -f conftest*
27990
27991 fi
27992 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27993 echo "${ECHO_T}$ac_cv_os_cray" >&6
27994 if test $ac_cv_os_cray = yes; then
27995   for ac_func in _getb67 GETB67 getb67; do
27996     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27997 echo "$as_me:$LINENO: checking for $ac_func" >&5
27998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27999 if eval "test \"\${$as_ac_var+set}\" = set"; then
28000   echo $ECHO_N "(cached) $ECHO_C" >&6
28001 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28010 #define $ac_func innocuous_$ac_func
28011
28012 /* System header to define __stub macros and hopefully few prototypes,
28013     which can conflict with char $ac_func (); below.
28014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28015     <limits.h> exists even on freestanding compilers.  */
28016
28017 #ifdef __STDC__
28018 # include <limits.h>
28019 #else
28020 # include <assert.h>
28021 #endif
28022
28023 #undef $ac_func
28024
28025 /* Override any gcc2 internal prototype to avoid an error.  */
28026 #ifdef __cplusplus
28027 extern "C"
28028 {
28029 #endif
28030 /* We use char because int might match the return type of a gcc2
28031    builtin and then its argument prototype would still apply.  */
28032 char $ac_func ();
28033 /* The GNU C library defines this for functions which it implements
28034     to always fail with ENOSYS.  Some functions are actually named
28035     something starting with __ and the normal name is an alias.  */
28036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28037 choke me
28038 #else
28039 char (*f) () = $ac_func;
28040 #endif
28041 #ifdef __cplusplus
28042 }
28043 #endif
28044
28045 int
28046 main ()
28047 {
28048 return f != $ac_func;
28049   ;
28050   return 0;
28051 }
28052 _ACEOF
28053 rm -f conftest.$ac_objext conftest$ac_exeext
28054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28055   (eval $ac_link) 2>conftest.er1
28056   ac_status=$?
28057   grep -v '^ *+' conftest.er1 >conftest.err
28058   rm -f conftest.er1
28059   cat conftest.err >&5
28060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061   (exit $ac_status); } &&
28062          { ac_try='test -z "$ac_c_werror_flag"
28063                          || test ! -s conftest.err'
28064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28065   (eval $ac_try) 2>&5
28066   ac_status=$?
28067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068   (exit $ac_status); }; } &&
28069          { ac_try='test -s conftest$ac_exeext'
28070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28071   (eval $ac_try) 2>&5
28072   ac_status=$?
28073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074   (exit $ac_status); }; }; then
28075   eval "$as_ac_var=yes"
28076 else
28077   echo "$as_me: failed program was:" >&5
28078 sed 's/^/| /' conftest.$ac_ext >&5
28079
28080 eval "$as_ac_var=no"
28081 fi
28082 rm -f conftest.err conftest.$ac_objext \
28083       conftest$ac_exeext conftest.$ac_ext
28084 fi
28085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28087 if test `eval echo '${'$as_ac_var'}'` = yes; then
28088
28089 cat >>confdefs.h <<_ACEOF
28090 #define CRAY_STACKSEG_END $ac_func
28091 _ACEOF
28092
28093     break
28094 fi
28095
28096   done
28097 fi
28098
28099 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28100 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28101 if test "${ac_cv_c_stack_direction+set}" = set; then
28102   echo $ECHO_N "(cached) $ECHO_C" >&6
28103 else
28104   if test "$cross_compiling" = yes; then
28105   ac_cv_c_stack_direction=0
28106 else
28107   cat >conftest.$ac_ext <<_ACEOF
28108 /* confdefs.h.  */
28109 _ACEOF
28110 cat confdefs.h >>conftest.$ac_ext
28111 cat >>conftest.$ac_ext <<_ACEOF
28112 /* end confdefs.h.  */
28113 int
28114 find_stack_direction ()
28115 {
28116   static char *addr = 0;
28117   auto char dummy;
28118   if (addr == 0)
28119     {
28120       addr = &dummy;
28121       return find_stack_direction ();
28122     }
28123   else
28124     return (&dummy > addr) ? 1 : -1;
28125 }
28126
28127 int
28128 main ()
28129 {
28130   exit (find_stack_direction () < 0);
28131 }
28132 _ACEOF
28133 rm -f conftest$ac_exeext
28134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28135   (eval $ac_link) 2>&5
28136   ac_status=$?
28137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28138   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28140   (eval $ac_try) 2>&5
28141   ac_status=$?
28142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143   (exit $ac_status); }; }; then
28144   ac_cv_c_stack_direction=1
28145 else
28146   echo "$as_me: program exited with status $ac_status" >&5
28147 echo "$as_me: failed program was:" >&5
28148 sed 's/^/| /' conftest.$ac_ext >&5
28149
28150 ( exit $ac_status )
28151 ac_cv_c_stack_direction=-1
28152 fi
28153 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28154 fi
28155 fi
28156 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28157 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28158
28159 cat >>confdefs.h <<_ACEOF
28160 #define STACK_DIRECTION $ac_cv_c_stack_direction
28161 _ACEOF
28162
28163
28164 fi
28165
28166 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28167 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28168 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28169 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28170   echo $ECHO_N "(cached) $ECHO_C" >&6
28171 else
28172   ac_check_lib_save_LIBS=$LIBS
28173 LIBS="-lsun  $LIBS"
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
28181 /* Override any gcc2 internal prototype to avoid an error.  */
28182 #ifdef __cplusplus
28183 extern "C"
28184 #endif
28185 /* We use char because int might match the return type of a gcc2
28186    builtin and then its argument prototype would still apply.  */
28187 char getmntent ();
28188 int
28189 main ()
28190 {
28191 getmntent ();
28192   ;
28193   return 0;
28194 }
28195 _ACEOF
28196 rm -f conftest.$ac_objext conftest$ac_exeext
28197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28198   (eval $ac_link) 2>conftest.er1
28199   ac_status=$?
28200   grep -v '^ *+' conftest.er1 >conftest.err
28201   rm -f conftest.er1
28202   cat conftest.err >&5
28203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204   (exit $ac_status); } &&
28205          { ac_try='test -z "$ac_c_werror_flag"
28206                          || test ! -s conftest.err'
28207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28208   (eval $ac_try) 2>&5
28209   ac_status=$?
28210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211   (exit $ac_status); }; } &&
28212          { ac_try='test -s conftest$ac_exeext'
28213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28214   (eval $ac_try) 2>&5
28215   ac_status=$?
28216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217   (exit $ac_status); }; }; then
28218   ac_cv_lib_sun_getmntent=yes
28219 else
28220   echo "$as_me: failed program was:" >&5
28221 sed 's/^/| /' conftest.$ac_ext >&5
28222
28223 ac_cv_lib_sun_getmntent=no
28224 fi
28225 rm -f conftest.err conftest.$ac_objext \
28226       conftest$ac_exeext conftest.$ac_ext
28227 LIBS=$ac_check_lib_save_LIBS
28228 fi
28229 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28230 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28231 if test $ac_cv_lib_sun_getmntent = yes; then
28232   LIBS="-lsun $LIBS"
28233 else
28234   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28235 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28236 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28237   echo $ECHO_N "(cached) $ECHO_C" >&6
28238 else
28239   ac_check_lib_save_LIBS=$LIBS
28240 LIBS="-lseq  $LIBS"
28241 cat >conftest.$ac_ext <<_ACEOF
28242 /* confdefs.h.  */
28243 _ACEOF
28244 cat confdefs.h >>conftest.$ac_ext
28245 cat >>conftest.$ac_ext <<_ACEOF
28246 /* end confdefs.h.  */
28247
28248 /* Override any gcc2 internal prototype to avoid an error.  */
28249 #ifdef __cplusplus
28250 extern "C"
28251 #endif
28252 /* We use char because int might match the return type of a gcc2
28253    builtin and then its argument prototype would still apply.  */
28254 char getmntent ();
28255 int
28256 main ()
28257 {
28258 getmntent ();
28259   ;
28260   return 0;
28261 }
28262 _ACEOF
28263 rm -f conftest.$ac_objext conftest$ac_exeext
28264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28265   (eval $ac_link) 2>conftest.er1
28266   ac_status=$?
28267   grep -v '^ *+' conftest.er1 >conftest.err
28268   rm -f conftest.er1
28269   cat conftest.err >&5
28270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271   (exit $ac_status); } &&
28272          { ac_try='test -z "$ac_c_werror_flag"
28273                          || test ! -s conftest.err'
28274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28275   (eval $ac_try) 2>&5
28276   ac_status=$?
28277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278   (exit $ac_status); }; } &&
28279          { ac_try='test -s conftest$ac_exeext'
28280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28281   (eval $ac_try) 2>&5
28282   ac_status=$?
28283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284   (exit $ac_status); }; }; then
28285   ac_cv_lib_seq_getmntent=yes
28286 else
28287   echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.$ac_ext >&5
28289
28290 ac_cv_lib_seq_getmntent=no
28291 fi
28292 rm -f conftest.err conftest.$ac_objext \
28293       conftest$ac_exeext conftest.$ac_ext
28294 LIBS=$ac_check_lib_save_LIBS
28295 fi
28296 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28297 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28298 if test $ac_cv_lib_seq_getmntent = yes; then
28299   LIBS="-lseq $LIBS"
28300 else
28301   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28302 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28303 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28304   echo $ECHO_N "(cached) $ECHO_C" >&6
28305 else
28306   ac_check_lib_save_LIBS=$LIBS
28307 LIBS="-lgen  $LIBS"
28308 cat >conftest.$ac_ext <<_ACEOF
28309 /* confdefs.h.  */
28310 _ACEOF
28311 cat confdefs.h >>conftest.$ac_ext
28312 cat >>conftest.$ac_ext <<_ACEOF
28313 /* end confdefs.h.  */
28314
28315 /* Override any gcc2 internal prototype to avoid an error.  */
28316 #ifdef __cplusplus
28317 extern "C"
28318 #endif
28319 /* We use char because int might match the return type of a gcc2
28320    builtin and then its argument prototype would still apply.  */
28321 char getmntent ();
28322 int
28323 main ()
28324 {
28325 getmntent ();
28326   ;
28327   return 0;
28328 }
28329 _ACEOF
28330 rm -f conftest.$ac_objext conftest$ac_exeext
28331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28332   (eval $ac_link) 2>conftest.er1
28333   ac_status=$?
28334   grep -v '^ *+' conftest.er1 >conftest.err
28335   rm -f conftest.er1
28336   cat conftest.err >&5
28337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338   (exit $ac_status); } &&
28339          { ac_try='test -z "$ac_c_werror_flag"
28340                          || test ! -s conftest.err'
28341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28342   (eval $ac_try) 2>&5
28343   ac_status=$?
28344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345   (exit $ac_status); }; } &&
28346          { ac_try='test -s conftest$ac_exeext'
28347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28348   (eval $ac_try) 2>&5
28349   ac_status=$?
28350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351   (exit $ac_status); }; }; then
28352   ac_cv_lib_gen_getmntent=yes
28353 else
28354   echo "$as_me: failed program was:" >&5
28355 sed 's/^/| /' conftest.$ac_ext >&5
28356
28357 ac_cv_lib_gen_getmntent=no
28358 fi
28359 rm -f conftest.err conftest.$ac_objext \
28360       conftest$ac_exeext conftest.$ac_ext
28361 LIBS=$ac_check_lib_save_LIBS
28362 fi
28363 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28364 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28365 if test $ac_cv_lib_gen_getmntent = yes; then
28366   LIBS="-lgen $LIBS"
28367 fi
28368
28369 fi
28370
28371 fi
28372
28373
28374 for ac_func in getmntent
28375 do
28376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28377 echo "$as_me:$LINENO: checking for $ac_func" >&5
28378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28379 if eval "test \"\${$as_ac_var+set}\" = set"; then
28380   echo $ECHO_N "(cached) $ECHO_C" >&6
28381 else
28382   cat >conftest.$ac_ext <<_ACEOF
28383 /* confdefs.h.  */
28384 _ACEOF
28385 cat confdefs.h >>conftest.$ac_ext
28386 cat >>conftest.$ac_ext <<_ACEOF
28387 /* end confdefs.h.  */
28388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28390 #define $ac_func innocuous_$ac_func
28391
28392 /* System header to define __stub macros and hopefully few prototypes,
28393     which can conflict with char $ac_func (); below.
28394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28395     <limits.h> exists even on freestanding compilers.  */
28396
28397 #ifdef __STDC__
28398 # include <limits.h>
28399 #else
28400 # include <assert.h>
28401 #endif
28402
28403 #undef $ac_func
28404
28405 /* Override any gcc2 internal prototype to avoid an error.  */
28406 #ifdef __cplusplus
28407 extern "C"
28408 {
28409 #endif
28410 /* We use char because int might match the return type of a gcc2
28411    builtin and then its argument prototype would still apply.  */
28412 char $ac_func ();
28413 /* The GNU C library defines this for functions which it implements
28414     to always fail with ENOSYS.  Some functions are actually named
28415     something starting with __ and the normal name is an alias.  */
28416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28417 choke me
28418 #else
28419 char (*f) () = $ac_func;
28420 #endif
28421 #ifdef __cplusplus
28422 }
28423 #endif
28424
28425 int
28426 main ()
28427 {
28428 return f != $ac_func;
28429   ;
28430   return 0;
28431 }
28432 _ACEOF
28433 rm -f conftest.$ac_objext conftest$ac_exeext
28434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28435   (eval $ac_link) 2>conftest.er1
28436   ac_status=$?
28437   grep -v '^ *+' conftest.er1 >conftest.err
28438   rm -f conftest.er1
28439   cat conftest.err >&5
28440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441   (exit $ac_status); } &&
28442          { ac_try='test -z "$ac_c_werror_flag"
28443                          || test ! -s conftest.err'
28444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28445   (eval $ac_try) 2>&5
28446   ac_status=$?
28447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448   (exit $ac_status); }; } &&
28449          { ac_try='test -s conftest$ac_exeext'
28450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451   (eval $ac_try) 2>&5
28452   ac_status=$?
28453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454   (exit $ac_status); }; }; then
28455   eval "$as_ac_var=yes"
28456 else
28457   echo "$as_me: failed program was:" >&5
28458 sed 's/^/| /' conftest.$ac_ext >&5
28459
28460 eval "$as_ac_var=no"
28461 fi
28462 rm -f conftest.err conftest.$ac_objext \
28463       conftest$ac_exeext conftest.$ac_ext
28464 fi
28465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28467 if test `eval echo '${'$as_ac_var'}'` = yes; then
28468   cat >>confdefs.h <<_ACEOF
28469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28470 _ACEOF
28471
28472 fi
28473 done
28474
28475
28476 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28477 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28478 if test "${ac_cv_func_closedir_void+set}" = set; then
28479   echo $ECHO_N "(cached) $ECHO_C" >&6
28480 else
28481   if test "$cross_compiling" = yes; then
28482   ac_cv_func_closedir_void=yes
28483 else
28484   cat >conftest.$ac_ext <<_ACEOF
28485 /* confdefs.h.  */
28486 _ACEOF
28487 cat confdefs.h >>conftest.$ac_ext
28488 cat >>conftest.$ac_ext <<_ACEOF
28489 /* end confdefs.h.  */
28490 $ac_includes_default
28491 #include <$ac_header_dirent>
28492 #ifndef __cplusplus
28493 int closedir ();
28494 #endif
28495
28496 int
28497 main ()
28498 {
28499 exit (closedir (opendir (".")) != 0);
28500   ;
28501   return 0;
28502 }
28503 _ACEOF
28504 rm -f conftest$ac_exeext
28505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28506   (eval $ac_link) 2>&5
28507   ac_status=$?
28508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28511   (eval $ac_try) 2>&5
28512   ac_status=$?
28513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514   (exit $ac_status); }; }; then
28515   ac_cv_func_closedir_void=no
28516 else
28517   echo "$as_me: program exited with status $ac_status" >&5
28518 echo "$as_me: failed program was:" >&5
28519 sed 's/^/| /' conftest.$ac_ext >&5
28520
28521 ( exit $ac_status )
28522 ac_cv_func_closedir_void=yes
28523 fi
28524 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28525 fi
28526 fi
28527 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28528 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28529 if test $ac_cv_func_closedir_void = yes; then
28530
28531 cat >>confdefs.h <<\_ACEOF
28532 #define CLOSEDIR_VOID 1
28533 _ACEOF
28534
28535 fi
28536
28537 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28538 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28539 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28540   echo $ECHO_N "(cached) $ECHO_C" >&6
28541 else
28542   if test "$cross_compiling" = yes; then
28543   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28544 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28545    { (exit 1); exit 1; }; }
28546 else
28547   cat >conftest.$ac_ext <<_ACEOF
28548 /* confdefs.h.  */
28549 _ACEOF
28550 cat confdefs.h >>conftest.$ac_ext
28551 cat >>conftest.$ac_ext <<_ACEOF
28552 /* end confdefs.h.  */
28553 #if HAVE_UNISTD_H
28554 # include <unistd.h>
28555 #endif
28556
28557 int
28558 main ()
28559 {
28560 /* If this system has a BSD-style setpgrp which takes arguments,
28561   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28562   exit successfully. */
28563   exit (setpgrp (1,1) == -1 ? 0 : 1);
28564   ;
28565   return 0;
28566 }
28567 _ACEOF
28568 rm -f conftest$ac_exeext
28569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28570   (eval $ac_link) 2>&5
28571   ac_status=$?
28572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575   (eval $ac_try) 2>&5
28576   ac_status=$?
28577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578   (exit $ac_status); }; }; then
28579   ac_cv_func_setpgrp_void=no
28580 else
28581   echo "$as_me: program exited with status $ac_status" >&5
28582 echo "$as_me: failed program was:" >&5
28583 sed 's/^/| /' conftest.$ac_ext >&5
28584
28585 ( exit $ac_status )
28586 ac_cv_func_setpgrp_void=yes
28587 fi
28588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28589 fi
28590 fi
28591 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28592 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
28593 if test $ac_cv_func_setpgrp_void = yes; then
28594
28595 cat >>confdefs.h <<\_ACEOF
28596 #define SETPGRP_VOID 1
28597 _ACEOF
28598
28599 fi
28600                       # AC_FUNC_FNMATCH    dnl use local version
28601
28602
28603 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28604 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
28605 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28606   echo $ECHO_N "(cached) $ECHO_C" >&6
28607 else
28608   ac_check_lib_save_LIBS=$LIBS
28609 LIBS="-lintl  $LIBS"
28610 cat >conftest.$ac_ext <<_ACEOF
28611 /* confdefs.h.  */
28612 _ACEOF
28613 cat confdefs.h >>conftest.$ac_ext
28614 cat >>conftest.$ac_ext <<_ACEOF
28615 /* end confdefs.h.  */
28616
28617 /* Override any gcc2 internal prototype to avoid an error.  */
28618 #ifdef __cplusplus
28619 extern "C"
28620 #endif
28621 /* We use char because int might match the return type of a gcc2
28622    builtin and then its argument prototype would still apply.  */
28623 char gettext ();
28624 int
28625 main ()
28626 {
28627 gettext ();
28628   ;
28629   return 0;
28630 }
28631 _ACEOF
28632 rm -f conftest.$ac_objext conftest$ac_exeext
28633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28634   (eval $ac_link) 2>conftest.er1
28635   ac_status=$?
28636   grep -v '^ *+' conftest.er1 >conftest.err
28637   rm -f conftest.er1
28638   cat conftest.err >&5
28639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640   (exit $ac_status); } &&
28641          { ac_try='test -z "$ac_c_werror_flag"
28642                          || test ! -s conftest.err'
28643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28644   (eval $ac_try) 2>&5
28645   ac_status=$?
28646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647   (exit $ac_status); }; } &&
28648          { ac_try='test -s conftest$ac_exeext'
28649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28650   (eval $ac_try) 2>&5
28651   ac_status=$?
28652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653   (exit $ac_status); }; }; then
28654   ac_cv_lib_intl_gettext=yes
28655 else
28656   echo "$as_me: failed program was:" >&5
28657 sed 's/^/| /' conftest.$ac_ext >&5
28658
28659 ac_cv_lib_intl_gettext=no
28660 fi
28661 rm -f conftest.err conftest.$ac_objext \
28662       conftest$ac_exeext conftest.$ac_ext
28663 LIBS=$ac_check_lib_save_LIBS
28664 fi
28665 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28666 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
28667 if test $ac_cv_lib_intl_gettext = yes; then
28668   LIBS="$LIBS -lintl"
28669 fi
28670
28671
28672
28673
28674 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28675 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
28676 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28677   echo $ECHO_N "(cached) $ECHO_C" >&6
28678 else
28679   ac_check_lib_save_LIBS=$LIBS
28680 LIBS="-lsun  $LIBS"
28681 cat >conftest.$ac_ext <<_ACEOF
28682 /* confdefs.h.  */
28683 _ACEOF
28684 cat confdefs.h >>conftest.$ac_ext
28685 cat >>conftest.$ac_ext <<_ACEOF
28686 /* end confdefs.h.  */
28687
28688 /* Override any gcc2 internal prototype to avoid an error.  */
28689 #ifdef __cplusplus
28690 extern "C"
28691 #endif
28692 /* We use char because int might match the return type of a gcc2
28693    builtin and then its argument prototype would still apply.  */
28694 char getpwnam ();
28695 int
28696 main ()
28697 {
28698 getpwnam ();
28699   ;
28700   return 0;
28701 }
28702 _ACEOF
28703 rm -f conftest.$ac_objext conftest$ac_exeext
28704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28705   (eval $ac_link) 2>conftest.er1
28706   ac_status=$?
28707   grep -v '^ *+' conftest.er1 >conftest.err
28708   rm -f conftest.er1
28709   cat conftest.err >&5
28710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711   (exit $ac_status); } &&
28712          { ac_try='test -z "$ac_c_werror_flag"
28713                          || test ! -s conftest.err'
28714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28715   (eval $ac_try) 2>&5
28716   ac_status=$?
28717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718   (exit $ac_status); }; } &&
28719          { ac_try='test -s conftest$ac_exeext'
28720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28721   (eval $ac_try) 2>&5
28722   ac_status=$?
28723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724   (exit $ac_status); }; }; then
28725   ac_cv_lib_sun_getpwnam=yes
28726 else
28727   echo "$as_me: failed program was:" >&5
28728 sed 's/^/| /' conftest.$ac_ext >&5
28729
28730 ac_cv_lib_sun_getpwnam=no
28731 fi
28732 rm -f conftest.err conftest.$ac_objext \
28733       conftest$ac_exeext conftest.$ac_ext
28734 LIBS=$ac_check_lib_save_LIBS
28735 fi
28736 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28737 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
28738 if test $ac_cv_lib_sun_getpwnam = yes; then
28739   cat >>confdefs.h <<_ACEOF
28740 #define HAVE_LIBSUN 1
28741 _ACEOF
28742
28743   LIBS="-lsun $LIBS"
28744
28745 fi
28746
28747
28748
28749 for ac_header in zlib.h
28750 do
28751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28753   echo "$as_me:$LINENO: checking for $ac_header" >&5
28754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28756   echo $ECHO_N "(cached) $ECHO_C" >&6
28757 fi
28758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28760 else
28761   # Is the header compilable?
28762 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28764 cat >conftest.$ac_ext <<_ACEOF
28765 /* confdefs.h.  */
28766 _ACEOF
28767 cat confdefs.h >>conftest.$ac_ext
28768 cat >>conftest.$ac_ext <<_ACEOF
28769 /* end confdefs.h.  */
28770 $ac_includes_default
28771 #include <$ac_header>
28772 _ACEOF
28773 rm -f conftest.$ac_objext
28774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28775   (eval $ac_compile) 2>conftest.er1
28776   ac_status=$?
28777   grep -v '^ *+' conftest.er1 >conftest.err
28778   rm -f conftest.er1
28779   cat conftest.err >&5
28780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781   (exit $ac_status); } &&
28782          { ac_try='test -z "$ac_c_werror_flag"
28783                          || test ! -s conftest.err'
28784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28785   (eval $ac_try) 2>&5
28786   ac_status=$?
28787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788   (exit $ac_status); }; } &&
28789          { ac_try='test -s conftest.$ac_objext'
28790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28791   (eval $ac_try) 2>&5
28792   ac_status=$?
28793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794   (exit $ac_status); }; }; then
28795   ac_header_compiler=yes
28796 else
28797   echo "$as_me: failed program was:" >&5
28798 sed 's/^/| /' conftest.$ac_ext >&5
28799
28800 ac_header_compiler=no
28801 fi
28802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28804 echo "${ECHO_T}$ac_header_compiler" >&6
28805
28806 # Is the header present?
28807 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28809 cat >conftest.$ac_ext <<_ACEOF
28810 /* confdefs.h.  */
28811 _ACEOF
28812 cat confdefs.h >>conftest.$ac_ext
28813 cat >>conftest.$ac_ext <<_ACEOF
28814 /* end confdefs.h.  */
28815 #include <$ac_header>
28816 _ACEOF
28817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28818   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28819   ac_status=$?
28820   grep -v '^ *+' conftest.er1 >conftest.err
28821   rm -f conftest.er1
28822   cat conftest.err >&5
28823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824   (exit $ac_status); } >/dev/null; then
28825   if test -s conftest.err; then
28826     ac_cpp_err=$ac_c_preproc_warn_flag
28827     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28828   else
28829     ac_cpp_err=
28830   fi
28831 else
28832   ac_cpp_err=yes
28833 fi
28834 if test -z "$ac_cpp_err"; then
28835   ac_header_preproc=yes
28836 else
28837   echo "$as_me: failed program was:" >&5
28838 sed 's/^/| /' conftest.$ac_ext >&5
28839
28840   ac_header_preproc=no
28841 fi
28842 rm -f conftest.err conftest.$ac_ext
28843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28844 echo "${ECHO_T}$ac_header_preproc" >&6
28845
28846 # So?  What about this header?
28847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28848   yes:no: )
28849     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28853     ac_header_preproc=yes
28854     ;;
28855   no:yes:* )
28856     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28858     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28859 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28860     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28862     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28863 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28866     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28868     (
28869       cat <<\_ASBOX
28870 ## ------------------------------------------ ##
28871 ## Report this to the AC_PACKAGE_NAME lists.  ##
28872 ## ------------------------------------------ ##
28873 _ASBOX
28874     ) |
28875       sed "s/^/$as_me: WARNING:     /" >&2
28876     ;;
28877 esac
28878 echo "$as_me:$LINENO: checking for $ac_header" >&5
28879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28881   echo $ECHO_N "(cached) $ECHO_C" >&6
28882 else
28883   eval "$as_ac_Header=\$ac_header_preproc"
28884 fi
28885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28887
28888 fi
28889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28890   cat >>confdefs.h <<_ACEOF
28891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28892 _ACEOF
28893
28894 fi
28895
28896 done
28897
28898 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28899 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
28900 if test "${ac_cv_lib_z_deflate+set}" = set; then
28901   echo $ECHO_N "(cached) $ECHO_C" >&6
28902 else
28903   ac_check_lib_save_LIBS=$LIBS
28904 LIBS="-lz  $LIBS"
28905 cat >conftest.$ac_ext <<_ACEOF
28906 /* confdefs.h.  */
28907 _ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h.  */
28911
28912 /* Override any gcc2 internal prototype to avoid an error.  */
28913 #ifdef __cplusplus
28914 extern "C"
28915 #endif
28916 /* We use char because int might match the return type of a gcc2
28917    builtin and then its argument prototype would still apply.  */
28918 char deflate ();
28919 int
28920 main ()
28921 {
28922 deflate ();
28923   ;
28924   return 0;
28925 }
28926 _ACEOF
28927 rm -f conftest.$ac_objext conftest$ac_exeext
28928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28929   (eval $ac_link) 2>conftest.er1
28930   ac_status=$?
28931   grep -v '^ *+' conftest.er1 >conftest.err
28932   rm -f conftest.er1
28933   cat conftest.err >&5
28934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935   (exit $ac_status); } &&
28936          { ac_try='test -z "$ac_c_werror_flag"
28937                          || test ! -s conftest.err'
28938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28939   (eval $ac_try) 2>&5
28940   ac_status=$?
28941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942   (exit $ac_status); }; } &&
28943          { ac_try='test -s conftest$ac_exeext'
28944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28945   (eval $ac_try) 2>&5
28946   ac_status=$?
28947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948   (exit $ac_status); }; }; then
28949   ac_cv_lib_z_deflate=yes
28950 else
28951   echo "$as_me: failed program was:" >&5
28952 sed 's/^/| /' conftest.$ac_ext >&5
28953
28954 ac_cv_lib_z_deflate=no
28955 fi
28956 rm -f conftest.err conftest.$ac_objext \
28957       conftest$ac_exeext conftest.$ac_ext
28958 LIBS=$ac_check_lib_save_LIBS
28959 fi
28960 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28961 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
28962 if test $ac_cv_lib_z_deflate = yes; then
28963   FDLIBS="-lz"
28964 fi
28965
28966 have_zlib=no
28967 if test x$FDLIBS = x-lz; then
28968   cat >>confdefs.h <<\_ACEOF
28969 #define HAVE_LIBZ 1
28970 _ACEOF
28971
28972   have_zlib=yes
28973 fi
28974
28975 #
28976 # Check for ACL libraries
28977 #
28978 have_acl=no
28979 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28980   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28981 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28982 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28983   echo $ECHO_N "(cached) $ECHO_C" >&6
28984 fi
28985 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28986 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28987 else
28988   # Is the header compilable?
28989 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
28990 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
28991 cat >conftest.$ac_ext <<_ACEOF
28992 /* confdefs.h.  */
28993 _ACEOF
28994 cat confdefs.h >>conftest.$ac_ext
28995 cat >>conftest.$ac_ext <<_ACEOF
28996 /* end confdefs.h.  */
28997 $ac_includes_default
28998 #include <sys/acl.h>
28999 _ACEOF
29000 rm -f conftest.$ac_objext
29001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29002   (eval $ac_compile) 2>conftest.er1
29003   ac_status=$?
29004   grep -v '^ *+' conftest.er1 >conftest.err
29005   rm -f conftest.er1
29006   cat conftest.err >&5
29007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008   (exit $ac_status); } &&
29009          { ac_try='test -z "$ac_c_werror_flag"
29010                          || test ! -s conftest.err'
29011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29012   (eval $ac_try) 2>&5
29013   ac_status=$?
29014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015   (exit $ac_status); }; } &&
29016          { ac_try='test -s conftest.$ac_objext'
29017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29018   (eval $ac_try) 2>&5
29019   ac_status=$?
29020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021   (exit $ac_status); }; }; then
29022   ac_header_compiler=yes
29023 else
29024   echo "$as_me: failed program was:" >&5
29025 sed 's/^/| /' conftest.$ac_ext >&5
29026
29027 ac_header_compiler=no
29028 fi
29029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29031 echo "${ECHO_T}$ac_header_compiler" >&6
29032
29033 # Is the header present?
29034 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29035 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29036 cat >conftest.$ac_ext <<_ACEOF
29037 /* confdefs.h.  */
29038 _ACEOF
29039 cat confdefs.h >>conftest.$ac_ext
29040 cat >>conftest.$ac_ext <<_ACEOF
29041 /* end confdefs.h.  */
29042 #include <sys/acl.h>
29043 _ACEOF
29044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29046   ac_status=$?
29047   grep -v '^ *+' conftest.er1 >conftest.err
29048   rm -f conftest.er1
29049   cat conftest.err >&5
29050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051   (exit $ac_status); } >/dev/null; then
29052   if test -s conftest.err; then
29053     ac_cpp_err=$ac_c_preproc_warn_flag
29054     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29055   else
29056     ac_cpp_err=
29057   fi
29058 else
29059   ac_cpp_err=yes
29060 fi
29061 if test -z "$ac_cpp_err"; then
29062   ac_header_preproc=yes
29063 else
29064   echo "$as_me: failed program was:" >&5
29065 sed 's/^/| /' conftest.$ac_ext >&5
29066
29067   ac_header_preproc=no
29068 fi
29069 rm -f conftest.err conftest.$ac_ext
29070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29071 echo "${ECHO_T}$ac_header_preproc" >&6
29072
29073 # So?  What about this header?
29074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29075   yes:no: )
29076     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29077 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29078     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29079 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29080     ac_header_preproc=yes
29081     ;;
29082   no:yes:* )
29083     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29084 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29085     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29086 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29087     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29088 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29089     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29090 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29091     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29092 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29093     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29094 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29095     (
29096       cat <<\_ASBOX
29097 ## ------------------------------------------ ##
29098 ## Report this to the AC_PACKAGE_NAME lists.  ##
29099 ## ------------------------------------------ ##
29100 _ASBOX
29101     ) |
29102       sed "s/^/$as_me: WARNING:     /" >&2
29103     ;;
29104 esac
29105 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29106 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29107 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29108   echo $ECHO_N "(cached) $ECHO_C" >&6
29109 else
29110   ac_cv_header_sys_acl_h=$ac_header_preproc
29111 fi
29112 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29113 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29114
29115 fi
29116
29117
29118 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29119 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29120 if test "${ac_cv_func_acl_get_file+set}" = set; then
29121   echo $ECHO_N "(cached) $ECHO_C" >&6
29122 else
29123   cat >conftest.$ac_ext <<_ACEOF
29124 /* confdefs.h.  */
29125 _ACEOF
29126 cat confdefs.h >>conftest.$ac_ext
29127 cat >>conftest.$ac_ext <<_ACEOF
29128 /* end confdefs.h.  */
29129 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29131 #define acl_get_file innocuous_acl_get_file
29132
29133 /* System header to define __stub macros and hopefully few prototypes,
29134     which can conflict with char acl_get_file (); below.
29135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29136     <limits.h> exists even on freestanding compilers.  */
29137
29138 #ifdef __STDC__
29139 # include <limits.h>
29140 #else
29141 # include <assert.h>
29142 #endif
29143
29144 #undef acl_get_file
29145
29146 /* Override any gcc2 internal prototype to avoid an error.  */
29147 #ifdef __cplusplus
29148 extern "C"
29149 {
29150 #endif
29151 /* We use char because int might match the return type of a gcc2
29152    builtin and then its argument prototype would still apply.  */
29153 char acl_get_file ();
29154 /* The GNU C library defines this for functions which it implements
29155     to always fail with ENOSYS.  Some functions are actually named
29156     something starting with __ and the normal name is an alias.  */
29157 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29158 choke me
29159 #else
29160 char (*f) () = acl_get_file;
29161 #endif
29162 #ifdef __cplusplus
29163 }
29164 #endif
29165
29166 int
29167 main ()
29168 {
29169 return f != acl_get_file;
29170   ;
29171   return 0;
29172 }
29173 _ACEOF
29174 rm -f conftest.$ac_objext conftest$ac_exeext
29175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29176   (eval $ac_link) 2>conftest.er1
29177   ac_status=$?
29178   grep -v '^ *+' conftest.er1 >conftest.err
29179   rm -f conftest.er1
29180   cat conftest.err >&5
29181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182   (exit $ac_status); } &&
29183          { ac_try='test -z "$ac_c_werror_flag"
29184                          || test ! -s conftest.err'
29185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29186   (eval $ac_try) 2>&5
29187   ac_status=$?
29188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189   (exit $ac_status); }; } &&
29190          { ac_try='test -s conftest$ac_exeext'
29191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29192   (eval $ac_try) 2>&5
29193   ac_status=$?
29194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195   (exit $ac_status); }; }; then
29196   ac_cv_func_acl_get_file=yes
29197 else
29198   echo "$as_me: failed program was:" >&5
29199 sed 's/^/| /' conftest.$ac_ext >&5
29200
29201 ac_cv_func_acl_get_file=no
29202 fi
29203 rm -f conftest.err conftest.$ac_objext \
29204       conftest$ac_exeext conftest.$ac_ext
29205 fi
29206 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29207 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29208 if test $ac_cv_func_acl_get_file = yes; then
29209   have_acl=yes
29210 else
29211   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29212 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29213 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29214   echo $ECHO_N "(cached) $ECHO_C" >&6
29215 else
29216   ac_check_lib_save_LIBS=$LIBS
29217 LIBS="-lacl  $LIBS"
29218 cat >conftest.$ac_ext <<_ACEOF
29219 /* confdefs.h.  */
29220 _ACEOF
29221 cat confdefs.h >>conftest.$ac_ext
29222 cat >>conftest.$ac_ext <<_ACEOF
29223 /* end confdefs.h.  */
29224
29225 /* Override any gcc2 internal prototype to avoid an error.  */
29226 #ifdef __cplusplus
29227 extern "C"
29228 #endif
29229 /* We use char because int might match the return type of a gcc2
29230    builtin and then its argument prototype would still apply.  */
29231 char acl_get_file ();
29232 int
29233 main ()
29234 {
29235 acl_get_file ();
29236   ;
29237   return 0;
29238 }
29239 _ACEOF
29240 rm -f conftest.$ac_objext conftest$ac_exeext
29241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29242   (eval $ac_link) 2>conftest.er1
29243   ac_status=$?
29244   grep -v '^ *+' conftest.er1 >conftest.err
29245   rm -f conftest.er1
29246   cat conftest.err >&5
29247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248   (exit $ac_status); } &&
29249          { ac_try='test -z "$ac_c_werror_flag"
29250                          || test ! -s conftest.err'
29251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29252   (eval $ac_try) 2>&5
29253   ac_status=$?
29254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255   (exit $ac_status); }; } &&
29256          { ac_try='test -s conftest$ac_exeext'
29257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29258   (eval $ac_try) 2>&5
29259   ac_status=$?
29260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261   (exit $ac_status); }; }; then
29262   ac_cv_lib_acl_acl_get_file=yes
29263 else
29264   echo "$as_me: failed program was:" >&5
29265 sed 's/^/| /' conftest.$ac_ext >&5
29266
29267 ac_cv_lib_acl_acl_get_file=no
29268 fi
29269 rm -f conftest.err conftest.$ac_objext \
29270       conftest$ac_exeext conftest.$ac_ext
29271 LIBS=$ac_check_lib_save_LIBS
29272 fi
29273 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29274 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29275 if test $ac_cv_lib_acl_acl_get_file = yes; then
29276   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29277 else
29278   echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29279 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29280 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29281   echo $ECHO_N "(cached) $ECHO_C" >&6
29282 else
29283   ac_check_lib_save_LIBS=$LIBS
29284 LIBS="-lsec  $LIBS"
29285 cat >conftest.$ac_ext <<_ACEOF
29286 /* confdefs.h.  */
29287 _ACEOF
29288 cat confdefs.h >>conftest.$ac_ext
29289 cat >>conftest.$ac_ext <<_ACEOF
29290 /* end confdefs.h.  */
29291
29292 /* Override any gcc2 internal prototype to avoid an error.  */
29293 #ifdef __cplusplus
29294 extern "C"
29295 #endif
29296 /* We use char because int might match the return type of a gcc2
29297    builtin and then its argument prototype would still apply.  */
29298 char acltotext ();
29299 int
29300 main ()
29301 {
29302 acltotext ();
29303   ;
29304   return 0;
29305 }
29306 _ACEOF
29307 rm -f conftest.$ac_objext conftest$ac_exeext
29308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29309   (eval $ac_link) 2>conftest.er1
29310   ac_status=$?
29311   grep -v '^ *+' conftest.er1 >conftest.err
29312   rm -f conftest.er1
29313   cat conftest.err >&5
29314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315   (exit $ac_status); } &&
29316          { ac_try='test -z "$ac_c_werror_flag"
29317                          || test ! -s conftest.err'
29318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29319   (eval $ac_try) 2>&5
29320   ac_status=$?
29321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29322   (exit $ac_status); }; } &&
29323          { ac_try='test -s conftest$ac_exeext'
29324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29325   (eval $ac_try) 2>&5
29326   ac_status=$?
29327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328   (exit $ac_status); }; }; then
29329   ac_cv_lib_sec_acltotext=yes
29330 else
29331   echo "$as_me: failed program was:" >&5
29332 sed 's/^/| /' conftest.$ac_ext >&5
29333
29334 ac_cv_lib_sec_acltotext=no
29335 fi
29336 rm -f conftest.err conftest.$ac_objext \
29337       conftest$ac_exeext conftest.$ac_ext
29338 LIBS=$ac_check_lib_save_LIBS
29339 fi
29340 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29341 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29342 if test $ac_cv_lib_sec_acltotext = yes; then
29343   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29344 fi
29345
29346
29347 fi
29348
29349
29350 fi
29351
29352 if test $have_acl = yes; then
29353    cat >>confdefs.h <<\_ACEOF
29354 #define HAVE_ACL 1
29355 _ACEOF
29356
29357 fi
29358
29359 PTHREAD_LIB=""
29360 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29361 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29362 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29363   echo $ECHO_N "(cached) $ECHO_C" >&6
29364 else
29365   ac_check_lib_save_LIBS=$LIBS
29366 LIBS="-lpthread  $LIBS"
29367 cat >conftest.$ac_ext <<_ACEOF
29368 /* confdefs.h.  */
29369 _ACEOF
29370 cat confdefs.h >>conftest.$ac_ext
29371 cat >>conftest.$ac_ext <<_ACEOF
29372 /* end confdefs.h.  */
29373
29374 /* Override any gcc2 internal prototype to avoid an error.  */
29375 #ifdef __cplusplus
29376 extern "C"
29377 #endif
29378 /* We use char because int might match the return type of a gcc2
29379    builtin and then its argument prototype would still apply.  */
29380 char pthread_create ();
29381 int
29382 main ()
29383 {
29384 pthread_create ();
29385   ;
29386   return 0;
29387 }
29388 _ACEOF
29389 rm -f conftest.$ac_objext conftest$ac_exeext
29390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29391   (eval $ac_link) 2>conftest.er1
29392   ac_status=$?
29393   grep -v '^ *+' conftest.er1 >conftest.err
29394   rm -f conftest.er1
29395   cat conftest.err >&5
29396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397   (exit $ac_status); } &&
29398          { ac_try='test -z "$ac_c_werror_flag"
29399                          || test ! -s conftest.err'
29400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29401   (eval $ac_try) 2>&5
29402   ac_status=$?
29403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404   (exit $ac_status); }; } &&
29405          { ac_try='test -s conftest$ac_exeext'
29406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29407   (eval $ac_try) 2>&5
29408   ac_status=$?
29409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410   (exit $ac_status); }; }; then
29411   ac_cv_lib_pthread_pthread_create=yes
29412 else
29413   echo "$as_me: failed program was:" >&5
29414 sed 's/^/| /' conftest.$ac_ext >&5
29415
29416 ac_cv_lib_pthread_pthread_create=no
29417 fi
29418 rm -f conftest.err conftest.$ac_objext \
29419       conftest$ac_exeext conftest.$ac_ext
29420 LIBS=$ac_check_lib_save_LIBS
29421 fi
29422 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29423 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29424 if test $ac_cv_lib_pthread_pthread_create = yes; then
29425   PTHREAD_LIB="-lpthread"
29426 else
29427   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29428 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29429 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29430   echo $ECHO_N "(cached) $ECHO_C" >&6
29431 else
29432   ac_check_lib_save_LIBS=$LIBS
29433 LIBS="-lpthreads  $LIBS"
29434 cat >conftest.$ac_ext <<_ACEOF
29435 /* confdefs.h.  */
29436 _ACEOF
29437 cat confdefs.h >>conftest.$ac_ext
29438 cat >>conftest.$ac_ext <<_ACEOF
29439 /* end confdefs.h.  */
29440
29441 /* Override any gcc2 internal prototype to avoid an error.  */
29442 #ifdef __cplusplus
29443 extern "C"
29444 #endif
29445 /* We use char because int might match the return type of a gcc2
29446    builtin and then its argument prototype would still apply.  */
29447 char pthread_create ();
29448 int
29449 main ()
29450 {
29451 pthread_create ();
29452   ;
29453   return 0;
29454 }
29455 _ACEOF
29456 rm -f conftest.$ac_objext conftest$ac_exeext
29457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29458   (eval $ac_link) 2>conftest.er1
29459   ac_status=$?
29460   grep -v '^ *+' conftest.er1 >conftest.err
29461   rm -f conftest.er1
29462   cat conftest.err >&5
29463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464   (exit $ac_status); } &&
29465          { ac_try='test -z "$ac_c_werror_flag"
29466                          || test ! -s conftest.err'
29467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29468   (eval $ac_try) 2>&5
29469   ac_status=$?
29470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471   (exit $ac_status); }; } &&
29472          { ac_try='test -s conftest$ac_exeext'
29473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29474   (eval $ac_try) 2>&5
29475   ac_status=$?
29476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477   (exit $ac_status); }; }; then
29478   ac_cv_lib_pthreads_pthread_create=yes
29479 else
29480   echo "$as_me: failed program was:" >&5
29481 sed 's/^/| /' conftest.$ac_ext >&5
29482
29483 ac_cv_lib_pthreads_pthread_create=no
29484 fi
29485 rm -f conftest.err conftest.$ac_objext \
29486       conftest$ac_exeext conftest.$ac_ext
29487 LIBS=$ac_check_lib_save_LIBS
29488 fi
29489 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29490 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29491 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29492   PTHREAD_LIB="-lpthreads"
29493 else
29494   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29495 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29496 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29497   echo $ECHO_N "(cached) $ECHO_C" >&6
29498 else
29499   ac_check_lib_save_LIBS=$LIBS
29500 LIBS="-lc_r  $LIBS"
29501 cat >conftest.$ac_ext <<_ACEOF
29502 /* confdefs.h.  */
29503 _ACEOF
29504 cat confdefs.h >>conftest.$ac_ext
29505 cat >>conftest.$ac_ext <<_ACEOF
29506 /* end confdefs.h.  */
29507
29508 /* Override any gcc2 internal prototype to avoid an error.  */
29509 #ifdef __cplusplus
29510 extern "C"
29511 #endif
29512 /* We use char because int might match the return type of a gcc2
29513    builtin and then its argument prototype would still apply.  */
29514 char pthread_create ();
29515 int
29516 main ()
29517 {
29518 pthread_create ();
29519   ;
29520   return 0;
29521 }
29522 _ACEOF
29523 rm -f conftest.$ac_objext conftest$ac_exeext
29524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29525   (eval $ac_link) 2>conftest.er1
29526   ac_status=$?
29527   grep -v '^ *+' conftest.er1 >conftest.err
29528   rm -f conftest.er1
29529   cat conftest.err >&5
29530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531   (exit $ac_status); } &&
29532          { ac_try='test -z "$ac_c_werror_flag"
29533                          || test ! -s conftest.err'
29534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29535   (eval $ac_try) 2>&5
29536   ac_status=$?
29537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538   (exit $ac_status); }; } &&
29539          { ac_try='test -s conftest$ac_exeext'
29540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29541   (eval $ac_try) 2>&5
29542   ac_status=$?
29543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544   (exit $ac_status); }; }; then
29545   ac_cv_lib_c_r_pthread_create=yes
29546 else
29547   echo "$as_me: failed program was:" >&5
29548 sed 's/^/| /' conftest.$ac_ext >&5
29549
29550 ac_cv_lib_c_r_pthread_create=no
29551 fi
29552 rm -f conftest.err conftest.$ac_objext \
29553       conftest$ac_exeext conftest.$ac_ext
29554 LIBS=$ac_check_lib_save_LIBS
29555 fi
29556 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29557 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
29558 if test $ac_cv_lib_c_r_pthread_create = yes; then
29559   PTHREAD_LIB="-lc_r"
29560 else
29561   echo "$as_me:$LINENO: checking for pthread_create" >&5
29562 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
29563 if test "${ac_cv_func_pthread_create+set}" = set; then
29564   echo $ECHO_N "(cached) $ECHO_C" >&6
29565 else
29566   cat >conftest.$ac_ext <<_ACEOF
29567 /* confdefs.h.  */
29568 _ACEOF
29569 cat confdefs.h >>conftest.$ac_ext
29570 cat >>conftest.$ac_ext <<_ACEOF
29571 /* end confdefs.h.  */
29572 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29574 #define pthread_create innocuous_pthread_create
29575
29576 /* System header to define __stub macros and hopefully few prototypes,
29577     which can conflict with char pthread_create (); below.
29578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29579     <limits.h> exists even on freestanding compilers.  */
29580
29581 #ifdef __STDC__
29582 # include <limits.h>
29583 #else
29584 # include <assert.h>
29585 #endif
29586
29587 #undef pthread_create
29588
29589 /* Override any gcc2 internal prototype to avoid an error.  */
29590 #ifdef __cplusplus
29591 extern "C"
29592 {
29593 #endif
29594 /* We use char because int might match the return type of a gcc2
29595    builtin and then its argument prototype would still apply.  */
29596 char pthread_create ();
29597 /* The GNU C library defines this for functions which it implements
29598     to always fail with ENOSYS.  Some functions are actually named
29599     something starting with __ and the normal name is an alias.  */
29600 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
29601 choke me
29602 #else
29603 char (*f) () = pthread_create;
29604 #endif
29605 #ifdef __cplusplus
29606 }
29607 #endif
29608
29609 int
29610 main ()
29611 {
29612 return f != pthread_create;
29613   ;
29614   return 0;
29615 }
29616 _ACEOF
29617 rm -f conftest.$ac_objext conftest$ac_exeext
29618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29619   (eval $ac_link) 2>conftest.er1
29620   ac_status=$?
29621   grep -v '^ *+' conftest.er1 >conftest.err
29622   rm -f conftest.er1
29623   cat conftest.err >&5
29624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625   (exit $ac_status); } &&
29626          { ac_try='test -z "$ac_c_werror_flag"
29627                          || test ! -s conftest.err'
29628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29629   (eval $ac_try) 2>&5
29630   ac_status=$?
29631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632   (exit $ac_status); }; } &&
29633          { ac_try='test -s conftest$ac_exeext'
29634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29635   (eval $ac_try) 2>&5
29636   ac_status=$?
29637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638   (exit $ac_status); }; }; then
29639   ac_cv_func_pthread_create=yes
29640 else
29641   echo "$as_me: failed program was:" >&5
29642 sed 's/^/| /' conftest.$ac_ext >&5
29643
29644 ac_cv_func_pthread_create=no
29645 fi
29646 rm -f conftest.err conftest.$ac_objext \
29647       conftest$ac_exeext conftest.$ac_ext
29648 fi
29649 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29650 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
29651
29652
29653 fi
29654
29655
29656 fi
29657
29658
29659 fi
29660
29661
29662
29663 cat >>confdefs.h <<\_ACEOF
29664 #define FDLIBS 1
29665 _ACEOF
29666
29667
29668
29669 CFLAGS=${CFLAGS--O}
29670
29671 if test x$have_gcc = xyes ; then
29672    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29673    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29674 fi
29675 LDFLAGS=${LDFLAGS--O}
29676 DB_LIBS="${SQL_LFLAGS}"
29677 CPPFLAGS="$CPPFLAGS"
29678 CFLAGS="$CFLAGS"
29679
29680
29681
29682
29683
29684
29685
29686
29687
29688
29689
29690
29691
29692
29693
29694
29695 OBJLIST=
29696
29697
29698 lld="lld"
29699 llu="llu"
29700
29701 WCFLAGS=
29702 WLDFLAGS=
29703
29704 #
29705 # Finally we set appropriate distribution specific
29706 #  variables and defaults
29707 #
29708 # PFILES are platform specific files
29709 PFILES="platforms/Makefile"
29710 PSCMD="ps -e"
29711 WIN32=
29712 MACOSX=
29713 hostname=`uname -n | cut -d '.' -f 1`
29714 if test x${hostname} = x ; then
29715   hostname="localhost"
29716 fi
29717 case "$DISTNAME" in
29718 aix)
29719         DISTVER=`uname -r`
29720         PSCMD="ps -e -o pid,comm"
29721         PFILES="${PFILES} \
29722            platforms/aix/Makefile"
29723         TAPEDRIVE="/dev/rmt0.1"
29724   ;;
29725 alpha)
29726         DISTVER=`uname -r`
29727         PTHREAD_LIB="-lpthread -lexc"
29728         if test "${CC}" = "gcc" ; then
29729            lld="lld"
29730            llu="llu"
29731         else
29732            lld="ld"
29733            llu="lu"
29734         fi
29735         TAPEDRIVE="/dev/nrmt0"
29736   ;;
29737 bsdi)
29738         DISTVER=`uname -a |awk '{print $3}'`
29739         TAPEDRIVE="/dev/nrmt0"
29740         PTHREAD_LIB="-pthread"
29741         CFLAGS="${CFLAGS} -pthread"
29742         PSCMD="ps -ax -o pid,command"
29743         lld="qd"
29744         llu="qu"
29745         PFILES="${PFILES} \
29746             platforms/bsdi/Makefile \
29747             platforms/bsdi/bacula-fd \
29748             platforms/bsdi/bacula-sd \
29749             platforms/bsdi/bacula-dir"
29750         largefile_support="yes"
29751   ;;
29752 cygwin)
29753         DISTVER=`uname -a |awk '{print $3}'`
29754         TAPEDRIVE="/dev/nrst0"
29755         WIN32=win32
29756         WCFLAGS="-mwindows"
29757         WLDFLAGS="-mwindows"
29758   ;;
29759 darwin)
29760         DISTVER=`uname -r`
29761         TAPEDRIVE="/dev/nst0"
29762         PSCMD="ps -e -o pid,command"
29763         MACOSX=macosx
29764         PFILES="${PFILES} \
29765            platforms/darwin/Makefile"
29766   ;;
29767 debian)
29768         DISTVER=`cat /etc/debian_version`
29769         TAPEDRIVE="/dev/nrst0"
29770         PSCMD="ps -e -o pid,command"
29771   ;;
29772 freebsd)
29773         DISTVER=`uname -a |awk '{print $3}'`
29774         VER=`echo $DISTVER | cut -c 1`
29775         if test x$VER = x4 ; then
29776            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29777            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29778         fi
29779         lld="qd"
29780         llu="qu"
29781         TAPEDRIVE="/dev/nrsa0"
29782         PSCMD="ps -ax -o pid,command"
29783         PFILES="${PFILES} \
29784             platforms/freebsd/Makefile \
29785             platforms/freebsd/bacula-fd \
29786             platforms/freebsd/bacula-sd \
29787             platforms/freebsd/bacula-dir"
29788         largefile_support="yes"
29789   ;;
29790 hpux)
29791         PSCMD="UNIX95=1 ps -e -o pid,comm"
29792         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
29793         DISTVER=`uname -r`
29794         TAPEDRIVE="/dev/rmt/0hnb"
29795         PTHREAD_LIB="-lpthread"
29796         cat >>confdefs.h <<\_ACEOF
29797 #define _INCLUDE_LONGLONG 1
29798 _ACEOF
29799
29800   ;;
29801 irix)
29802         DISTVER=`uname -r`
29803         TAPEDRIVE="/dev/rmt/0cbn"
29804         PSCMD="ps -e -o pid,comm"
29805         PFILES="${PFILES} \
29806             platforms/irix/Makefile \
29807             platforms/irix/bacula-fd \
29808             platforms/irix/bacula-sd \
29809             platforms/irix/bacula-dir"
29810   ;;
29811 netbsd)
29812         DISTVER=`uname -a |awk '{print $3}'`
29813         lld="qd"
29814         llu="qu"
29815         TAPEDRIVE="/dev/nrst0"
29816         PSCMD="ps -ax -o pid,command"
29817         PTHREAD_LIB="-pthread"
29818         CFLAGS="${CFLAGS} -pthread"
29819   ;;
29820 openbsd)
29821         DISTVER=`uname -a |awk '{print $3}'`
29822         lld="qd"
29823         llu="qu"
29824         TAPEDRIVE="/dev/nrst0"
29825         PSCMD="ps -ax -o pid,command"
29826         PTHREAD_LIB="-pthread"
29827         CFLAGS="${CFLAGS} -pthread"
29828         PFILES="${PFILES} \
29829             platforms/openbsd/Makefile \
29830             platforms/openbsd/bacula-fd \
29831             platforms/openbsd/bacula-sd \
29832             platforms/openbsd/bacula-dir"
29833   ;;
29834 redhat)
29835         if test -f /etc/whitebox-release ; then
29836            f=/etc/whitebox-release
29837         else
29838            f=/etc/redhat-release
29839         fi
29840         if test `cat $f | grep release |\
29841                    cut -f 3 -d ' '`x = "Enterprise"x ; then
29842            DISTVER="Enterprise "`cat $f | grep release |\
29843                     cut -f 6 -d ' '`
29844         else
29845             DISTVER=`cat /etc/redhat-release | grep release |\
29846                      cut -f 5 -d ' '`
29847         fi
29848         TAPEDRIVE="/dev/nst0"
29849         PSCMD="ps -e -o pid,command"
29850         PFILES="${PFILES} \
29851             platforms/redhat/Makefile \
29852             platforms/redhat/bacula-fd \
29853             platforms/redhat/bacula-sd \
29854             platforms/redhat/bacula-dir \
29855             platforms/redhat/bacula.spec \
29856             "
29857   ;;
29858 mandrake)
29859         DISTVER=`cat /etc/mandrake-release | grep release |\
29860            cut -f 5 -d ' '`
29861         TAPEDRIVE="/dev/nst0"
29862         PSCMD="ps -e -o pid,command"
29863         PFILES="${PFILES} \
29864             platforms/mandrake/Makefile \
29865             platforms/mandrake/bacula-fd \
29866             platforms/mandrake/bacula-sd \
29867             platforms/mandrake/bacula-dir \
29868             platforms/mandrake/bacula.spec \
29869             "
29870   ;;
29871 gentoo)
29872         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29873         TAPEDRIVE="/dev/nst0"
29874         PSCMD="ps -e -o pid,command"
29875         PFILES="${PFILES} \
29876             platforms/gentoo/Makefile \
29877          platforms/gentoo/bacula-init \
29878             platforms/gentoo/bacula-fd \
29879             platforms/gentoo/bacula-sd \
29880             platforms/gentoo/bacula-dir"
29881   ;;
29882 slackware)
29883         DISTVER=`cat /etc/slackware-version`
29884         TAPEDRIVE="/dev/nst0"
29885         PSCMD="ps -e -o pid,command"
29886         PFILES="${PFILES} \
29887             platforms/slackware/Makefile \
29888             platforms/slackware/rc.bacula-fd \
29889             platforms/slackware/rc.bacula-sd \
29890             platforms/slackware/rc.bacula-dir\
29891             platforms/slackware/functions.bacula"
29892   ;;
29893 solaris)
29894         DISTVER=`uname -r`
29895         TAPEDRIVE="/dev/rmt/0cbn"
29896         PSCMD="ps -e -o pid,comm"
29897         PFILES="${PFILES} \
29898             platforms/solaris/Makefile \
29899             platforms/solaris/bacula-fd \
29900             platforms/solaris/bacula-sd \
29901             platforms/solaris/bacula-dir"
29902         if test x$DISTVER = x5.6 ; then
29903             cat >>confdefs.h <<\_ACEOF
29904 #define HAVE_OLD_SOCKOPT 1
29905 _ACEOF
29906
29907         fi
29908         LIBS="$LIBS -lresolv"
29909   ;;
29910 suse)
29911         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29912             cut -f 3 -d ' '`
29913         TAPEDRIVE="/dev/nst0"
29914         PSCMD="ps -e -o pid,command"
29915         PFILES="${PFILES} \
29916             platforms/suse/Makefile \
29917             platforms/suse/bacula-fd \
29918             platforms/suse/bacula-sd \
29919             platforms/suse/bacula-dir \
29920             platforms/suse/bacula \
29921             platforms/suse/bacula.spec"
29922   ;;
29923 suse5)
29924         DISTNAME=suse
29925         DISTVER=5.x
29926         TAPEDRIVE="/dev/nst0"
29927         PSCMD="ps -e -o pid,command"
29928         PFILES="${PFILES} \
29929             platforms/suse/Makefile \
29930             platforms/suse/bacula-fd \
29931             platforms/suse/bacula-sd \
29932             platforms/suse/bacula-dir"
29933   ;;
29934 unknown)
29935         DISTVER=unknown
29936         TAPEDRIVE="/dev/nst0"
29937   ;;
29938 *)
29939   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29940   ;;
29941 esac
29942
29943
29944
29945 LIBS="$PTHREAD_LIB $LIBS"
29946
29947 cat >>confdefs.h <<_ACEOF
29948 #define lld "$lld"
29949 _ACEOF
29950
29951 cat >>confdefs.h <<_ACEOF
29952 #define llu "$llu"
29953 _ACEOF
29954
29955
29956
29957
29958
29959
29960
29961
29962 MCOMMON=./autoconf/Make.common
29963
29964
29965 if test "x${subsysdir}" = "x${sbindir}" ; then
29966    echo " "
29967    echo " "
29968    echo "You have set both --sbindir and --with-subsys-dir"
29969    echo "  equal to: ${subsysdir} "
29970    echo "This is not permitted. Please reconfigure."
29971    echo " "
29972    echo "Aborting configuration ..."
29973    echo " "
29974    echo " "
29975    exit 1
29976 fi
29977
29978                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/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 src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/pygtk-console/Makefile src/tools/Makefile po/Makefile.in $PFILES"
29979           ac_config_commands="$ac_config_commands default"
29980 cat >confcache <<\_ACEOF
29981 # This file is a shell script that caches the results of configure
29982 # tests run on this system so they can be shared between configure
29983 # scripts and configure runs, see configure's option --config-cache.
29984 # It is not useful on other systems.  If it contains results you don't
29985 # want to keep, you may remove or edit it.
29986 #
29987 # config.status only pays attention to the cache file if you give it
29988 # the --recheck option to rerun configure.
29989 #
29990 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29991 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29992 # following values.
29993
29994 _ACEOF
29995
29996 # The following way of writing the cache mishandles newlines in values,
29997 # but we know of no workaround that is simple, portable, and efficient.
29998 # So, don't put newlines in cache variables' values.
29999 # Ultrix sh set writes to stderr and can't be redirected directly,
30000 # and sets the high bit in the cache file unless we assign to the vars.
30001 {
30002   (set) 2>&1 |
30003     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30004     *ac_space=\ *)
30005       # `set' does not quote correctly, so add quotes (double-quote
30006       # substitution turns \\\\ into \\, and sed turns \\ into \).
30007       sed -n \
30008         "s/'/'\\\\''/g;
30009           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30010       ;;
30011     *)
30012       # `set' quotes correctly as required by POSIX, so do not add quotes.
30013       sed -n \
30014         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30015       ;;
30016     esac;
30017 } |
30018   sed '
30019      t clear
30020      : clear
30021      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30022      t end
30023      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30024      : end' >>confcache
30025 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30026   if test -w $cache_file; then
30027     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30028     cat confcache >$cache_file
30029   else
30030     echo "not updating unwritable cache $cache_file"
30031   fi
30032 fi
30033 rm -f confcache
30034
30035 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30036 # Let make expand exec_prefix.
30037 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30038
30039 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30040 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30041 # trailing colons and then remove the whole line if VPATH becomes empty
30042 # (actually we leave an empty line to preserve line numbers).
30043 if test "x$srcdir" = x.; then
30044   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30045 s/:*\$(srcdir):*/:/;
30046 s/:*\${srcdir}:*/:/;
30047 s/:*@srcdir@:*/:/;
30048 s/^\([^=]*=[     ]*\):*/\1/;
30049 s/:*$//;
30050 s/^[^=]*=[       ]*$//;
30051 }'
30052 fi
30053
30054 DEFS=-DHAVE_CONFIG_H
30055
30056 ac_libobjs=
30057 ac_ltlibobjs=
30058 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30059   # 1. Remove the extension, and $U if already installed.
30060   ac_i=`echo "$ac_i" |
30061          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30062   # 2. Add them.
30063   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30064   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30065 done
30066 LIBOBJS=$ac_libobjs
30067
30068 LTLIBOBJS=$ac_ltlibobjs
30069
30070
30071
30072 : ${CONFIG_STATUS=./config.status}
30073 ac_clean_files_save=$ac_clean_files
30074 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30075 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30076 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30077 cat >$CONFIG_STATUS <<_ACEOF
30078 #! $SHELL
30079 # Generated by $as_me.
30080 # Run this file to recreate the current configuration.
30081 # Compiler output produced by configure, useful for debugging
30082 # configure, is in config.log if it exists.
30083
30084 debug=false
30085 ac_cs_recheck=false
30086 ac_cs_silent=false
30087 SHELL=\${CONFIG_SHELL-$SHELL}
30088 _ACEOF
30089
30090 cat >>$CONFIG_STATUS <<\_ACEOF
30091 ## --------------------- ##
30092 ## M4sh Initialization.  ##
30093 ## --------------------- ##
30094
30095 # Be Bourne compatible
30096 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30097   emulate sh
30098   NULLCMD=:
30099   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30100   # is contrary to our usage.  Disable this feature.
30101   alias -g '${1+"$@"}'='"$@"'
30102 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30103   set -o posix
30104 fi
30105 DUALCASE=1; export DUALCASE # for MKS sh
30106
30107 # Support unset when possible.
30108 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30109   as_unset=unset
30110 else
30111   as_unset=false
30112 fi
30113
30114
30115 # Work around bugs in pre-3.0 UWIN ksh.
30116 $as_unset ENV MAIL MAILPATH
30117 PS1='$ '
30118 PS2='> '
30119 PS4='+ '
30120
30121 # NLS nuisances.
30122 for as_var in \
30123   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30124   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30125   LC_TELEPHONE LC_TIME
30126 do
30127   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30128     eval $as_var=C; export $as_var
30129   else
30130     $as_unset $as_var
30131   fi
30132 done
30133
30134 # Required to use basename.
30135 if expr a : '\(a\)' >/dev/null 2>&1; then
30136   as_expr=expr
30137 else
30138   as_expr=false
30139 fi
30140
30141 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30142   as_basename=basename
30143 else
30144   as_basename=false
30145 fi
30146
30147
30148 # Name of the executable.
30149 as_me=`$as_basename "$0" ||
30150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30151          X"$0" : 'X\(//\)$' \| \
30152          X"$0" : 'X\(/\)$' \| \
30153          .     : '\(.\)' 2>/dev/null ||
30154 echo X/"$0" |
30155     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30156           /^X\/\(\/\/\)$/{ s//\1/; q; }
30157           /^X\/\(\/\).*/{ s//\1/; q; }
30158           s/.*/./; q'`
30159
30160
30161 # PATH needs CR, and LINENO needs CR and PATH.
30162 # Avoid depending upon Character Ranges.
30163 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30164 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30165 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30166 as_cr_digits='0123456789'
30167 as_cr_alnum=$as_cr_Letters$as_cr_digits
30168
30169 # The user is always right.
30170 if test "${PATH_SEPARATOR+set}" != set; then
30171   echo "#! /bin/sh" >conf$$.sh
30172   echo  "exit 0"   >>conf$$.sh
30173   chmod +x conf$$.sh
30174   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30175     PATH_SEPARATOR=';'
30176   else
30177     PATH_SEPARATOR=:
30178   fi
30179   rm -f conf$$.sh
30180 fi
30181
30182
30183   as_lineno_1=$LINENO
30184   as_lineno_2=$LINENO
30185   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30186   test "x$as_lineno_1" != "x$as_lineno_2" &&
30187   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30188   # Find who we are.  Look in the path if we contain no path at all
30189   # relative or not.
30190   case $0 in
30191     *[\\/]* ) as_myself=$0 ;;
30192     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30193 for as_dir in $PATH
30194 do
30195   IFS=$as_save_IFS
30196   test -z "$as_dir" && as_dir=.
30197   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30198 done
30199
30200        ;;
30201   esac
30202   # We did not find ourselves, most probably we were run as `sh COMMAND'
30203   # in which case we are not to be found in the path.
30204   if test "x$as_myself" = x; then
30205     as_myself=$0
30206   fi
30207   if test ! -f "$as_myself"; then
30208     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30209 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30210    { (exit 1); exit 1; }; }
30211   fi
30212   case $CONFIG_SHELL in
30213   '')
30214     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30215 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30216 do
30217   IFS=$as_save_IFS
30218   test -z "$as_dir" && as_dir=.
30219   for as_base in sh bash ksh sh5; do
30220          case $as_dir in
30221          /*)
30222            if ("$as_dir/$as_base" -c '
30223   as_lineno_1=$LINENO
30224   as_lineno_2=$LINENO
30225   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30226   test "x$as_lineno_1" != "x$as_lineno_2" &&
30227   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30228              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30229              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30230              CONFIG_SHELL=$as_dir/$as_base
30231              export CONFIG_SHELL
30232              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30233            fi;;
30234          esac
30235        done
30236 done
30237 ;;
30238   esac
30239
30240   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30241   # uniformly replaced by the line number.  The first 'sed' inserts a
30242   # line-number line before each line; the second 'sed' does the real
30243   # work.  The second script uses 'N' to pair each line-number line
30244   # with the numbered line, and appends trailing '-' during
30245   # substitution so that $LINENO is not a special case at line end.
30246   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30247   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30248   sed '=' <$as_myself |
30249     sed '
30250       N
30251       s,$,-,
30252       : loop
30253       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30254       t loop
30255       s,-$,,
30256       s,^['$as_cr_digits']*\n,,
30257     ' >$as_me.lineno &&
30258   chmod +x $as_me.lineno ||
30259     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30260 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30261    { (exit 1); exit 1; }; }
30262
30263   # Don't try to exec as it changes $[0], causing all sort of problems
30264   # (the dirname of $[0] is not the place where we might find the
30265   # original and so on.  Autoconf is especially sensible to this).
30266   . ./$as_me.lineno
30267   # Exit status is that of the last command.
30268   exit
30269 }
30270
30271
30272 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30273   *c*,-n*) ECHO_N= ECHO_C='
30274 ' ECHO_T='      ' ;;
30275   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30276   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30277 esac
30278
30279 if expr a : '\(a\)' >/dev/null 2>&1; then
30280   as_expr=expr
30281 else
30282   as_expr=false
30283 fi
30284
30285 rm -f conf$$ conf$$.exe conf$$.file
30286 echo >conf$$.file
30287 if ln -s conf$$.file conf$$ 2>/dev/null; then
30288   # We could just check for DJGPP; but this test a) works b) is more generic
30289   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30290   if test -f conf$$.exe; then
30291     # Don't use ln at all; we don't have any links
30292     as_ln_s='cp -p'
30293   else
30294     as_ln_s='ln -s'
30295   fi
30296 elif ln conf$$.file conf$$ 2>/dev/null; then
30297   as_ln_s=ln
30298 else
30299   as_ln_s='cp -p'
30300 fi
30301 rm -f conf$$ conf$$.exe conf$$.file
30302
30303 if mkdir -p . 2>/dev/null; then
30304   as_mkdir_p=:
30305 else
30306   test -d ./-p && rmdir ./-p
30307   as_mkdir_p=false
30308 fi
30309
30310 as_executable_p="test -f"
30311
30312 # Sed expression to map a string onto a valid CPP name.
30313 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30314
30315 # Sed expression to map a string onto a valid variable name.
30316 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30317
30318
30319 # IFS
30320 # We need space, tab and new line, in precisely that order.
30321 as_nl='
30322 '
30323 IFS="   $as_nl"
30324
30325 # CDPATH.
30326 $as_unset CDPATH
30327
30328 exec 6>&1
30329
30330 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30331 # report actual input values of CONFIG_FILES etc. instead of their
30332 # values after options handling.  Logging --version etc. is OK.
30333 exec 5>>config.log
30334 {
30335   echo
30336   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30337 ## Running $as_me. ##
30338 _ASBOX
30339 } >&5
30340 cat >&5 <<_CSEOF
30341
30342 This file was extended by $as_me, which was
30343 generated by GNU Autoconf 2.59.  Invocation command line was
30344
30345   CONFIG_FILES    = $CONFIG_FILES
30346   CONFIG_HEADERS  = $CONFIG_HEADERS
30347   CONFIG_LINKS    = $CONFIG_LINKS
30348   CONFIG_COMMANDS = $CONFIG_COMMANDS
30349   $ $0 $@
30350
30351 _CSEOF
30352 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30353 echo >&5
30354 _ACEOF
30355
30356 # Files that config.status was made for.
30357 if test -n "$ac_config_files"; then
30358   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30359 fi
30360
30361 if test -n "$ac_config_headers"; then
30362   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30363 fi
30364
30365 if test -n "$ac_config_links"; then
30366   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30367 fi
30368
30369 if test -n "$ac_config_commands"; then
30370   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30371 fi
30372
30373 cat >>$CONFIG_STATUS <<\_ACEOF
30374
30375 ac_cs_usage="\
30376 \`$as_me' instantiates files from templates according to the
30377 current configuration.
30378
30379 Usage: $0 [OPTIONS] [FILE]...
30380
30381   -h, --help       print this help, then exit
30382   -V, --version    print version number, then exit
30383   -q, --quiet      do not print progress messages
30384   -d, --debug      don't remove temporary files
30385       --recheck    update $as_me by reconfiguring in the same conditions
30386   --file=FILE[:TEMPLATE]
30387                    instantiate the configuration file FILE
30388   --header=FILE[:TEMPLATE]
30389                    instantiate the configuration header FILE
30390
30391 Configuration files:
30392 $config_files
30393
30394 Configuration headers:
30395 $config_headers
30396
30397 Configuration commands:
30398 $config_commands
30399
30400 Report bugs to <bug-autoconf@gnu.org>."
30401 _ACEOF
30402
30403 cat >>$CONFIG_STATUS <<_ACEOF
30404 ac_cs_version="\\
30405 config.status
30406 configured by $0, generated by GNU Autoconf 2.59,
30407   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30408
30409 Copyright (C) 2003 Free Software Foundation, Inc.
30410 This config.status script is free software; the Free Software Foundation
30411 gives unlimited permission to copy, distribute and modify it."
30412 srcdir=$srcdir
30413 INSTALL="$INSTALL"
30414 _ACEOF
30415
30416 cat >>$CONFIG_STATUS <<\_ACEOF
30417 # If no file are specified by the user, then we need to provide default
30418 # value.  By we need to know if files were specified by the user.
30419 ac_need_defaults=:
30420 while test $# != 0
30421 do
30422   case $1 in
30423   --*=*)
30424     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30425     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30426     ac_shift=:
30427     ;;
30428   -*)
30429     ac_option=$1
30430     ac_optarg=$2
30431     ac_shift=shift
30432     ;;
30433   *) # This is not an option, so the user has probably given explicit
30434      # arguments.
30435      ac_option=$1
30436      ac_need_defaults=false;;
30437   esac
30438
30439   case $ac_option in
30440   # Handling of the options.
30441 _ACEOF
30442 cat >>$CONFIG_STATUS <<\_ACEOF
30443   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30444     ac_cs_recheck=: ;;
30445   --version | --vers* | -V )
30446     echo "$ac_cs_version"; exit 0 ;;
30447   --he | --h)
30448     # Conflict between --help and --header
30449     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30450 Try \`$0 --help' for more information." >&5
30451 echo "$as_me: error: ambiguous option: $1
30452 Try \`$0 --help' for more information." >&2;}
30453    { (exit 1); exit 1; }; };;
30454   --help | --hel | -h )
30455     echo "$ac_cs_usage"; exit 0 ;;
30456   --debug | --d* | -d )
30457     debug=: ;;
30458   --file | --fil | --fi | --f )
30459     $ac_shift
30460     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30461     ac_need_defaults=false;;
30462   --header | --heade | --head | --hea )
30463     $ac_shift
30464     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30465     ac_need_defaults=false;;
30466   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30467   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30468     ac_cs_silent=: ;;
30469
30470   # This is an error.
30471   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30472 Try \`$0 --help' for more information." >&5
30473 echo "$as_me: error: unrecognized option: $1
30474 Try \`$0 --help' for more information." >&2;}
30475    { (exit 1); exit 1; }; } ;;
30476
30477   *) ac_config_targets="$ac_config_targets $1" ;;
30478
30479   esac
30480   shift
30481 done
30482
30483 ac_configure_extra_args=
30484
30485 if $ac_cs_silent; then
30486   exec 6>/dev/null
30487   ac_configure_extra_args="$ac_configure_extra_args --silent"
30488 fi
30489
30490 _ACEOF
30491 cat >>$CONFIG_STATUS <<_ACEOF
30492 if \$ac_cs_recheck; then
30493   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30494   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30495 fi
30496
30497 _ACEOF
30498
30499 cat >>$CONFIG_STATUS <<_ACEOF
30500 #
30501 # INIT-COMMANDS section.
30502 #
30503
30504 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30505     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30506     # from automake.
30507     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30508     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30509     LINGUAS="${LINGUAS-%UNSET%}"
30510
30511
30512 _ACEOF
30513
30514
30515
30516 cat >>$CONFIG_STATUS <<\_ACEOF
30517 for ac_config_target in $ac_config_targets
30518 do
30519   case "$ac_config_target" in
30520   # Handling of arguments.
30521   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30522   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30523   "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30524   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30525   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30526   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30527   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30528   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30529   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30530   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30531   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30532   "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30533   "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30534   "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30535   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30536   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30537   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30538   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30539   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30540   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30541   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30542   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30543   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30544   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
30545   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30546   "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30547   "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30548   "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30549   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30550   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30551   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30552   "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30553   "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30554   "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30555   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30556   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30557   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30558   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30559   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30560   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
30561   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30562   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
30563   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30564   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30565   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30566   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30567   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30568   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30569   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30570   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30571   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30572   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30573   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30574   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30575   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30576   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30577   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30578   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30579   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30580   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30581   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30582   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30583   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30584   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30585   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30586   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30587   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30588   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30589   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30590   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30591   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30592   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30593   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30594   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30595   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30596   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30597   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30598   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30599   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30600   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30601   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30602   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30603   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30604   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30605   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30606   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30607   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30608   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30609   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30610   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30611   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30612   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30613   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30614   "src/pygtk-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pygtk-console/Makefile" ;;
30615   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30616   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30617   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30618   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30619   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30620   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30621   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30622 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30623    { (exit 1); exit 1; }; };;
30624   esac
30625 done
30626
30627 # If the user did not use the arguments to specify the items to instantiate,
30628 # then the envvar interface is used.  Set only those that are not.
30629 # We use the long form for the default assignment because of an extremely
30630 # bizarre bug on SunOS 4.1.3.
30631 if $ac_need_defaults; then
30632   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30633   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30634   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30635 fi
30636
30637 # Have a temporary directory for convenience.  Make it in the build tree
30638 # simply because there is no reason to put it here, and in addition,
30639 # creating and moving files from /tmp can sometimes cause problems.
30640 # Create a temporary directory, and hook for its removal unless debugging.
30641 $debug ||
30642 {
30643   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30644   trap '{ (exit 1); exit 1; }' 1 2 13 15
30645 }
30646
30647 # Create a (secure) tmp directory for tmp files.
30648
30649 {
30650   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30651   test -n "$tmp" && test -d "$tmp"
30652 }  ||
30653 {
30654   tmp=./confstat$$-$RANDOM
30655   (umask 077 && mkdir $tmp)
30656 } ||
30657 {
30658    echo "$me: cannot create a temporary directory in ." >&2
30659    { (exit 1); exit 1; }
30660 }
30661
30662 _ACEOF
30663
30664 cat >>$CONFIG_STATUS <<_ACEOF
30665
30666 #
30667 # CONFIG_FILES section.
30668 #
30669
30670 # No need to generate the scripts if there are no CONFIG_FILES.
30671 # This happens for instance when ./config.status config.h
30672 if test -n "\$CONFIG_FILES"; then
30673   # Protect against being on the right side of a sed subst in config.status.
30674   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30675    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30676 s,@SHELL@,$SHELL,;t t
30677 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30678 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30679 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30680 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30681 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30682 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30683 s,@exec_prefix@,$exec_prefix,;t t
30684 s,@prefix@,$prefix,;t t
30685 s,@program_transform_name@,$program_transform_name,;t t
30686 s,@bindir@,$bindir,;t t
30687 s,@sbindir@,$sbindir,;t t
30688 s,@libexecdir@,$libexecdir,;t t
30689 s,@datadir@,$datadir,;t t
30690 s,@sysconfdir@,$sysconfdir,;t t
30691 s,@sharedstatedir@,$sharedstatedir,;t t
30692 s,@localstatedir@,$localstatedir,;t t
30693 s,@libdir@,$libdir,;t t
30694 s,@includedir@,$includedir,;t t
30695 s,@oldincludedir@,$oldincludedir,;t t
30696 s,@infodir@,$infodir,;t t
30697 s,@mandir@,$mandir,;t t
30698 s,@build_alias@,$build_alias,;t t
30699 s,@host_alias@,$host_alias,;t t
30700 s,@target_alias@,$target_alias,;t t
30701 s,@DEFS@,$DEFS,;t t
30702 s,@ECHO_C@,$ECHO_C,;t t
30703 s,@ECHO_N@,$ECHO_N,;t t
30704 s,@ECHO_T@,$ECHO_T,;t t
30705 s,@LIBS@,$LIBS,;t t
30706 s,@BUILD_DIR@,$BUILD_DIR,;t t
30707 s,@TOP_DIR@,$TOP_DIR,;t t
30708 s,@TRUEPRG@,$TRUEPRG,;t t
30709 s,@FALSEPRG@,$FALSEPRG,;t t
30710 s,@VERSION@,$VERSION,;t t
30711 s,@DATE@,$DATE,;t t
30712 s,@LSMDATE@,$LSMDATE,;t t
30713 s,@CC@,$CC,;t t
30714 s,@CFLAGS@,$CFLAGS,;t t
30715 s,@LDFLAGS@,$LDFLAGS,;t t
30716 s,@CPPFLAGS@,$CPPFLAGS,;t t
30717 s,@ac_ct_CC@,$ac_ct_CC,;t t
30718 s,@EXEEXT@,$EXEEXT,;t t
30719 s,@OBJEXT@,$OBJEXT,;t t
30720 s,@CXX@,$CXX,;t t
30721 s,@CXXFLAGS@,$CXXFLAGS,;t t
30722 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30723 s,@CPP@,$CPP,;t t
30724 s,@EGREP@,$EGREP,;t t
30725 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30726 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30727 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30728 s,@RANLIB@,$RANLIB,;t t
30729 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30730 s,@MV@,$MV,;t t
30731 s,@RM@,$RM,;t t
30732 s,@CP@,$CP,;t t
30733 s,@SED@,$SED,;t t
30734 s,@ECHO@,$ECHO,;t t
30735 s,@CMP@,$CMP,;t t
30736 s,@TBL@,$TBL,;t t
30737 s,@AR@,$AR,;t t
30738 s,@OPENSSL@,$OPENSSL,;t t
30739 s,@MTX@,$MTX,;t t
30740 s,@DD@,$DD,;t t
30741 s,@MKISOFS@,$MKISOFS,;t t
30742 s,@PYTHON@,$PYTHON,;t t
30743 s,@GROWISOFS@,$GROWISOFS,;t t
30744 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
30745 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
30746 s,@PKGCONFIG@,$PKGCONFIG,;t t
30747 s,@WXCONFIG@,$WXCONFIG,;t t
30748 s,@WXFLAGS@,$WXFLAGS,;t t
30749 s,@CDRECORD@,$CDRECORD,;t t
30750 s,@PIDOF@,$PIDOF,;t t
30751 s,@AWK@,$AWK,;t t
30752 s,@ARFLAGS@,$ARFLAGS,;t t
30753 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
30754 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
30755 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
30756 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
30757 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
30758 s,@build@,$build,;t t
30759 s,@build_cpu@,$build_cpu,;t t
30760 s,@build_vendor@,$build_vendor,;t t
30761 s,@build_os@,$build_os,;t t
30762 s,@host@,$host,;t t
30763 s,@host_cpu@,$host_cpu,;t t
30764 s,@host_vendor@,$host_vendor,;t t
30765 s,@host_os@,$host_os,;t t
30766 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
30767 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
30768 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
30769 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
30770 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
30771 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
30772 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
30773 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
30774 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
30775 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
30776 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
30777 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
30778 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
30779 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
30780 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
30781 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
30782 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
30783 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
30784 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
30785 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
30786 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
30787 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
30788 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
30789 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
30790 s,@SET_MAKE@,$SET_MAKE,;t t
30791 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
30792 s,@USE_NLS@,$USE_NLS,;t t
30793 s,@MSGFMT@,$MSGFMT,;t t
30794 s,@GMSGFMT@,$GMSGFMT,;t t
30795 s,@XGETTEXT@,$XGETTEXT,;t t
30796 s,@MSGMERGE@,$MSGMERGE,;t t
30797 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
30798 s,@LIBICONV@,$LIBICONV,;t t
30799 s,@LTLIBICONV@,$LTLIBICONV,;t t
30800 s,@INTLLIBS@,$INTLLIBS,;t t
30801 s,@LIBINTL@,$LIBINTL,;t t
30802 s,@LTLIBINTL@,$LTLIBINTL,;t t
30803 s,@POSUB@,$POSUB,;t t
30804 s,@GLIBC2@,$GLIBC2,;t t
30805 s,@ALLOCA@,$ALLOCA,;t t
30806 s,@GLIBC21@,$GLIBC21,;t t
30807 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
30808 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
30809 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
30810 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
30811 s,@INTLBISON@,$INTLBISON,;t t
30812 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
30813 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
30814 s,@CATOBJEXT@,$CATOBJEXT,;t t
30815 s,@DATADIRNAME@,$DATADIRNAME,;t t
30816 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
30817 s,@GENCAT@,$GENCAT,;t t
30818 s,@INTLOBJS@,$INTLOBJS,;t t
30819 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
30820 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
30821 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
30822 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
30823 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
30824 s,@GNOME_DIR@,$GNOME_DIR,;t t
30825 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
30826 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
30827 s,@WX_DIR@,$WX_DIR,;t t
30828 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
30829 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
30830 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
30831 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
30832 s,@STATIC_FD@,$STATIC_FD,;t t
30833 s,@STATIC_SD@,$STATIC_SD,;t t
30834 s,@STATIC_DIR@,$STATIC_DIR,;t t
30835 s,@STATIC_CONS@,$STATIC_CONS,;t t
30836 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
30837 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
30838 s,@ALL_DIRS@,$ALL_DIRS,;t t
30839 s,@DIRD_DIR@,$DIRD_DIR,;t t
30840 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
30841 s,@STORED_DIR@,$STORED_DIR,;t t
30842 s,@CONS_INC@,$CONS_INC,;t t
30843 s,@CONS_OBJ@,$CONS_OBJ,;t t
30844 s,@CONS_SRC@,$CONS_SRC,;t t
30845 s,@CONS_LIBS@,$CONS_LIBS,;t t
30846 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
30847 s,@READLINE_SRC@,$READLINE_SRC,;t t
30848 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
30849 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
30850 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
30851 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
30852 s,@working_dir@,$working_dir,;t t
30853 s,@scriptdir@,$scriptdir,;t t
30854 s,@dump_email@,$dump_email,;t t
30855 s,@job_email@,$job_email,;t t
30856 s,@smtp_host@,$smtp_host,;t t
30857 s,@piddir@,$piddir,;t t
30858 s,@subsysdir@,$subsysdir,;t t
30859 s,@baseport@,$baseport,;t t
30860 s,@dir_port@,$dir_port,;t t
30861 s,@fd_port@,$fd_port,;t t
30862 s,@sd_port@,$sd_port,;t t
30863 s,@dir_password@,$dir_password,;t t
30864 s,@fd_password@,$fd_password,;t t
30865 s,@sd_password@,$sd_password,;t t
30866 s,@mon_dir_password@,$mon_dir_password,;t t
30867 s,@mon_fd_password@,$mon_fd_password,;t t
30868 s,@mon_sd_password@,$mon_sd_password,;t t
30869 s,@dir_user@,$dir_user,;t t
30870 s,@dir_group@,$dir_group,;t t
30871 s,@sd_user@,$sd_user,;t t
30872 s,@sd_group@,$sd_group,;t t
30873 s,@fd_user@,$fd_user,;t t
30874 s,@fd_group@,$fd_group,;t t
30875 s,@SBINPERM@,$SBINPERM,;t t
30876 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
30877 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
30878 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
30879 s,@cats@,$cats,;t t
30880 s,@DB_NAME@,$DB_NAME,;t t
30881 s,@GETCONF@,$GETCONF,;t t
30882 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
30883 s,@X_CFLAGS@,$X_CFLAGS,;t t
30884 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
30885 s,@X_LIBS@,$X_LIBS,;t t
30886 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
30887 s,@LIBOBJS@,$LIBOBJS,;t t
30888 s,@FDLIBS@,$FDLIBS,;t t
30889 s,@DEBUG@,$DEBUG,;t t
30890 s,@DINCLUDE@,$DINCLUDE,;t t
30891 s,@DLIB@,$DLIB,;t t
30892 s,@DB_LIBS@,$DB_LIBS,;t t
30893 s,@WCFLAGS@,$WCFLAGS,;t t
30894 s,@WLDFLAGS@,$WLDFLAGS,;t t
30895 s,@WRAPLIBS@,$WRAPLIBS,;t t
30896 s,@OBJLIST@,$OBJLIST,;t t
30897 s,@hostname@,$hostname,;t t
30898 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
30899 s,@PSCMD@,$PSCMD,;t t
30900 s,@WIN32@,$WIN32,;t t
30901 s,@MACOSX@,$MACOSX,;t t
30902 s,@DISTNAME@,$DISTNAME,;t t
30903 s,@DISTVER@,$DISTVER,;t t
30904 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30905 /@MCOMMON@/r $MCOMMON
30906 s,@MCOMMON@,,;t t
30907 CEOF
30908
30909 _ACEOF
30910
30911   cat >>$CONFIG_STATUS <<\_ACEOF
30912   # Split the substitutions into bite-sized pieces for seds with
30913   # small command number limits, like on Digital OSF/1 and HP-UX.
30914   ac_max_sed_lines=48
30915   ac_sed_frag=1 # Number of current file.
30916   ac_beg=1 # First line for current file.
30917   ac_end=$ac_max_sed_lines # Line after last line for current file.
30918   ac_more_lines=:
30919   ac_sed_cmds=
30920   while $ac_more_lines; do
30921     if test $ac_beg -gt 1; then
30922       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30923     else
30924       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30925     fi
30926     if test ! -s $tmp/subs.frag; then
30927       ac_more_lines=false
30928     else
30929       # The purpose of the label and of the branching condition is to
30930       # speed up the sed processing (if there are no `@' at all, there
30931       # is no need to browse any of the substitutions).
30932       # These are the two extra sed commands mentioned above.
30933       (echo ':t
30934   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30935       if test -z "$ac_sed_cmds"; then
30936         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30937       else
30938         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30939       fi
30940       ac_sed_frag=`expr $ac_sed_frag + 1`
30941       ac_beg=$ac_end
30942       ac_end=`expr $ac_end + $ac_max_sed_lines`
30943     fi
30944   done
30945   if test -z "$ac_sed_cmds"; then
30946     ac_sed_cmds=cat
30947   fi
30948 fi # test -n "$CONFIG_FILES"
30949
30950 _ACEOF
30951 cat >>$CONFIG_STATUS <<\_ACEOF
30952 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30953   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30954   case $ac_file in
30955   - | *:- | *:-:* ) # input from stdin
30956         cat >$tmp/stdin
30957         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30958         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30959   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30960         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30961   * )   ac_file_in=$ac_file.in ;;
30962   esac
30963
30964   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30965   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30966 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30967          X"$ac_file" : 'X\(//\)[^/]' \| \
30968          X"$ac_file" : 'X\(//\)$' \| \
30969          X"$ac_file" : 'X\(/\)' \| \
30970          .     : '\(.\)' 2>/dev/null ||
30971 echo X"$ac_file" |
30972     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30973           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30974           /^X\(\/\/\)$/{ s//\1/; q; }
30975           /^X\(\/\).*/{ s//\1/; q; }
30976           s/.*/./; q'`
30977   { if $as_mkdir_p; then
30978     mkdir -p "$ac_dir"
30979   else
30980     as_dir="$ac_dir"
30981     as_dirs=
30982     while test ! -d "$as_dir"; do
30983       as_dirs="$as_dir $as_dirs"
30984       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30986          X"$as_dir" : 'X\(//\)[^/]' \| \
30987          X"$as_dir" : 'X\(//\)$' \| \
30988          X"$as_dir" : 'X\(/\)' \| \
30989          .     : '\(.\)' 2>/dev/null ||
30990 echo X"$as_dir" |
30991     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30992           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30993           /^X\(\/\/\)$/{ s//\1/; q; }
30994           /^X\(\/\).*/{ s//\1/; q; }
30995           s/.*/./; q'`
30996     done
30997     test ! -n "$as_dirs" || mkdir $as_dirs
30998   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30999 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31000    { (exit 1); exit 1; }; }; }
31001
31002   ac_builddir=.
31003
31004 if test "$ac_dir" != .; then
31005   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31006   # A "../" for each directory in $ac_dir_suffix.
31007   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31008 else
31009   ac_dir_suffix= ac_top_builddir=
31010 fi
31011
31012 case $srcdir in
31013   .)  # No --srcdir option.  We are building in place.
31014     ac_srcdir=.
31015     if test -z "$ac_top_builddir"; then
31016        ac_top_srcdir=.
31017     else
31018        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31019     fi ;;
31020   [\\/]* | ?:[\\/]* )  # Absolute path.
31021     ac_srcdir=$srcdir$ac_dir_suffix;
31022     ac_top_srcdir=$srcdir ;;
31023   *) # Relative path.
31024     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31025     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31026 esac
31027
31028 # Do not use `cd foo && pwd` to compute absolute paths, because
31029 # the directories may not exist.
31030 case `pwd` in
31031 .) ac_abs_builddir="$ac_dir";;
31032 *)
31033   case "$ac_dir" in
31034   .) ac_abs_builddir=`pwd`;;
31035   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31036   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31037   esac;;
31038 esac
31039 case $ac_abs_builddir in
31040 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31041 *)
31042   case ${ac_top_builddir}. in
31043   .) ac_abs_top_builddir=$ac_abs_builddir;;
31044   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31045   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31046   esac;;
31047 esac
31048 case $ac_abs_builddir in
31049 .) ac_abs_srcdir=$ac_srcdir;;
31050 *)
31051   case $ac_srcdir in
31052   .) ac_abs_srcdir=$ac_abs_builddir;;
31053   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31054   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31055   esac;;
31056 esac
31057 case $ac_abs_builddir in
31058 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31059 *)
31060   case $ac_top_srcdir in
31061   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31062   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31063   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31064   esac;;
31065 esac
31066
31067
31068   case $INSTALL in
31069   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31070   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31071   esac
31072
31073   if test x"$ac_file" != x-; then
31074     { echo "$as_me:$LINENO: creating $ac_file" >&5
31075 echo "$as_me: creating $ac_file" >&6;}
31076     rm -f "$ac_file"
31077   fi
31078   # Let's still pretend it is `configure' which instantiates (i.e., don't
31079   # use $as_me), people would be surprised to read:
31080   #    /* config.h.  Generated by config.status.  */
31081   if test x"$ac_file" = x-; then
31082     configure_input=
31083   else
31084     configure_input="$ac_file.  "
31085   fi
31086   configure_input=$configure_input"Generated from `echo $ac_file_in |
31087                                      sed 's,.*/,,'` by configure."
31088
31089   # First look for the input files in the build tree, otherwise in the
31090   # src tree.
31091   ac_file_inputs=`IFS=:
31092     for f in $ac_file_in; do
31093       case $f in
31094       -) echo $tmp/stdin ;;
31095       [\\/$]*)
31096          # Absolute (can't be DOS-style, as IFS=:)
31097          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31098 echo "$as_me: error: cannot find input file: $f" >&2;}
31099    { (exit 1); exit 1; }; }
31100          echo "$f";;
31101       *) # Relative
31102          if test -f "$f"; then
31103            # Build tree
31104            echo "$f"
31105          elif test -f "$srcdir/$f"; then
31106            # Source tree
31107            echo "$srcdir/$f"
31108          else
31109            # /dev/null tree
31110            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31111 echo "$as_me: error: cannot find input file: $f" >&2;}
31112    { (exit 1); exit 1; }; }
31113          fi;;
31114       esac
31115     done` || { (exit 1); exit 1; }
31116 _ACEOF
31117 cat >>$CONFIG_STATUS <<_ACEOF
31118   sed "$ac_vpsub
31119 $extrasub
31120 _ACEOF
31121 cat >>$CONFIG_STATUS <<\_ACEOF
31122 :t
31123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31124 s,@configure_input@,$configure_input,;t t
31125 s,@srcdir@,$ac_srcdir,;t t
31126 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31127 s,@top_srcdir@,$ac_top_srcdir,;t t
31128 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31129 s,@builddir@,$ac_builddir,;t t
31130 s,@abs_builddir@,$ac_abs_builddir,;t t
31131 s,@top_builddir@,$ac_top_builddir,;t t
31132 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31133 s,@INSTALL@,$ac_INSTALL,;t t
31134 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31135   rm -f $tmp/stdin
31136   if test x"$ac_file" != x-; then
31137     mv $tmp/out $ac_file
31138   else
31139     cat $tmp/out
31140     rm -f $tmp/out
31141   fi
31142
31143 done
31144 _ACEOF
31145 cat >>$CONFIG_STATUS <<\_ACEOF
31146
31147 #
31148 # CONFIG_HEADER section.
31149 #
31150
31151 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31152 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31153 #
31154 # ac_d sets the value in "#define NAME VALUE" lines.
31155 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31156 ac_dB='[         ].*$,\1#\2'
31157 ac_dC=' '
31158 ac_dD=',;t'
31159 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31160 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31161 ac_uB='$,\1#\2define\3'
31162 ac_uC=' '
31163 ac_uD=',;t'
31164
31165 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31166   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31167   case $ac_file in
31168   - | *:- | *:-:* ) # input from stdin
31169         cat >$tmp/stdin
31170         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31171         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31172   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31173         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31174   * )   ac_file_in=$ac_file.in ;;
31175   esac
31176
31177   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31178 echo "$as_me: creating $ac_file" >&6;}
31179
31180   # First look for the input files in the build tree, otherwise in the
31181   # src tree.
31182   ac_file_inputs=`IFS=:
31183     for f in $ac_file_in; do
31184       case $f in
31185       -) echo $tmp/stdin ;;
31186       [\\/$]*)
31187          # Absolute (can't be DOS-style, as IFS=:)
31188          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31189 echo "$as_me: error: cannot find input file: $f" >&2;}
31190    { (exit 1); exit 1; }; }
31191          # Do quote $f, to prevent DOS paths from being IFS'd.
31192          echo "$f";;
31193       *) # Relative
31194          if test -f "$f"; then
31195            # Build tree
31196            echo "$f"
31197          elif test -f "$srcdir/$f"; then
31198            # Source tree
31199            echo "$srcdir/$f"
31200          else
31201            # /dev/null tree
31202            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31203 echo "$as_me: error: cannot find input file: $f" >&2;}
31204    { (exit 1); exit 1; }; }
31205          fi;;
31206       esac
31207     done` || { (exit 1); exit 1; }
31208   # Remove the trailing spaces.
31209   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31210
31211 _ACEOF
31212
31213 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31214 # `conftest.undefs', that substitutes the proper values into
31215 # config.h.in to produce config.h.  The first handles `#define'
31216 # templates, and the second `#undef' templates.
31217 # And first: Protect against being on the right side of a sed subst in
31218 # config.status.  Protect against being in an unquoted here document
31219 # in config.status.
31220 rm -f conftest.defines conftest.undefs
31221 # Using a here document instead of a string reduces the quoting nightmare.
31222 # Putting comments in sed scripts is not portable.
31223 #
31224 # `end' is used to avoid that the second main sed command (meant for
31225 # 0-ary CPP macros) applies to n-ary macro definitions.
31226 # See the Autoconf documentation for `clear'.
31227 cat >confdef2sed.sed <<\_ACEOF
31228 s/[\\&,]/\\&/g
31229 s,[\\$`],\\&,g
31230 t clear
31231 : clear
31232 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31233 t end
31234 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31235 : end
31236 _ACEOF
31237 # If some macros were called several times there might be several times
31238 # the same #defines, which is useless.  Nevertheless, we may not want to
31239 # sort them, since we want the *last* AC-DEFINE to be honored.
31240 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31241 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31242 rm -f confdef2sed.sed
31243
31244 # This sed command replaces #undef with comments.  This is necessary, for
31245 # example, in the case of _POSIX_SOURCE, which is predefined and required
31246 # on some systems where configure will not decide to define it.
31247 cat >>conftest.undefs <<\_ACEOF
31248 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31249 _ACEOF
31250
31251 # Break up conftest.defines because some shells have a limit on the size
31252 # of here documents, and old seds have small limits too (100 cmds).
31253 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31254 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31255 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31256 echo '  :' >>$CONFIG_STATUS
31257 rm -f conftest.tail
31258 while grep . conftest.defines >/dev/null
31259 do
31260   # Write a limited-size here document to $tmp/defines.sed.
31261   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31262   # Speed up: don't consider the non `#define' lines.
31263   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31264   # Work around the forget-to-reset-the-flag bug.
31265   echo 't clr' >>$CONFIG_STATUS
31266   echo ': clr' >>$CONFIG_STATUS
31267   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31268   echo 'CEOF
31269   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31270   rm -f $tmp/in
31271   mv $tmp/out $tmp/in
31272 ' >>$CONFIG_STATUS
31273   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31274   rm -f conftest.defines
31275   mv conftest.tail conftest.defines
31276 done
31277 rm -f conftest.defines
31278 echo '  fi # grep' >>$CONFIG_STATUS
31279 echo >>$CONFIG_STATUS
31280
31281 # Break up conftest.undefs because some shells have a limit on the size
31282 # of here documents, and old seds have small limits too (100 cmds).
31283 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31284 rm -f conftest.tail
31285 while grep . conftest.undefs >/dev/null
31286 do
31287   # Write a limited-size here document to $tmp/undefs.sed.
31288   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31289   # Speed up: don't consider the non `#undef'
31290   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31291   # Work around the forget-to-reset-the-flag bug.
31292   echo 't clr' >>$CONFIG_STATUS
31293   echo ': clr' >>$CONFIG_STATUS
31294   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31295   echo 'CEOF
31296   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31297   rm -f $tmp/in
31298   mv $tmp/out $tmp/in
31299 ' >>$CONFIG_STATUS
31300   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31301   rm -f conftest.undefs
31302   mv conftest.tail conftest.undefs
31303 done
31304 rm -f conftest.undefs
31305
31306 cat >>$CONFIG_STATUS <<\_ACEOF
31307   # Let's still pretend it is `configure' which instantiates (i.e., don't
31308   # use $as_me), people would be surprised to read:
31309   #    /* config.h.  Generated by config.status.  */
31310   if test x"$ac_file" = x-; then
31311     echo "/* Generated by configure.  */" >$tmp/config.h
31312   else
31313     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31314   fi
31315   cat $tmp/in >>$tmp/config.h
31316   rm -f $tmp/in
31317   if test x"$ac_file" != x-; then
31318     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31319       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31320 echo "$as_me: $ac_file is unchanged" >&6;}
31321     else
31322       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31323 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31324          X"$ac_file" : 'X\(//\)[^/]' \| \
31325          X"$ac_file" : 'X\(//\)$' \| \
31326          X"$ac_file" : 'X\(/\)' \| \
31327          .     : '\(.\)' 2>/dev/null ||
31328 echo X"$ac_file" |
31329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31330           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31331           /^X\(\/\/\)$/{ s//\1/; q; }
31332           /^X\(\/\).*/{ s//\1/; q; }
31333           s/.*/./; q'`
31334       { if $as_mkdir_p; then
31335     mkdir -p "$ac_dir"
31336   else
31337     as_dir="$ac_dir"
31338     as_dirs=
31339     while test ! -d "$as_dir"; do
31340       as_dirs="$as_dir $as_dirs"
31341       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31343          X"$as_dir" : 'X\(//\)[^/]' \| \
31344          X"$as_dir" : 'X\(//\)$' \| \
31345          X"$as_dir" : 'X\(/\)' \| \
31346          .     : '\(.\)' 2>/dev/null ||
31347 echo X"$as_dir" |
31348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31349           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31350           /^X\(\/\/\)$/{ s//\1/; q; }
31351           /^X\(\/\).*/{ s//\1/; q; }
31352           s/.*/./; q'`
31353     done
31354     test ! -n "$as_dirs" || mkdir $as_dirs
31355   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31356 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31357    { (exit 1); exit 1; }; }; }
31358
31359       rm -f $ac_file
31360       mv $tmp/config.h $ac_file
31361     fi
31362   else
31363     cat $tmp/config.h
31364     rm -f $tmp/config.h
31365   fi
31366 done
31367 _ACEOF
31368 cat >>$CONFIG_STATUS <<\_ACEOF
31369
31370 #
31371 # CONFIG_COMMANDS section.
31372 #
31373 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31374   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31375   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31376   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31377 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31378          X"$ac_dest" : 'X\(//\)[^/]' \| \
31379          X"$ac_dest" : 'X\(//\)$' \| \
31380          X"$ac_dest" : 'X\(/\)' \| \
31381          .     : '\(.\)' 2>/dev/null ||
31382 echo X"$ac_dest" |
31383     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31384           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31385           /^X\(\/\/\)$/{ s//\1/; q; }
31386           /^X\(\/\).*/{ s//\1/; q; }
31387           s/.*/./; q'`
31388   { if $as_mkdir_p; then
31389     mkdir -p "$ac_dir"
31390   else
31391     as_dir="$ac_dir"
31392     as_dirs=
31393     while test ! -d "$as_dir"; do
31394       as_dirs="$as_dir $as_dirs"
31395       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31396 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31397          X"$as_dir" : 'X\(//\)[^/]' \| \
31398          X"$as_dir" : 'X\(//\)$' \| \
31399          X"$as_dir" : 'X\(/\)' \| \
31400          .     : '\(.\)' 2>/dev/null ||
31401 echo X"$as_dir" |
31402     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31403           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31404           /^X\(\/\/\)$/{ s//\1/; q; }
31405           /^X\(\/\).*/{ s//\1/; q; }
31406           s/.*/./; q'`
31407     done
31408     test ! -n "$as_dirs" || mkdir $as_dirs
31409   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31410 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31411    { (exit 1); exit 1; }; }; }
31412
31413   ac_builddir=.
31414
31415 if test "$ac_dir" != .; then
31416   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31417   # A "../" for each directory in $ac_dir_suffix.
31418   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31419 else
31420   ac_dir_suffix= ac_top_builddir=
31421 fi
31422
31423 case $srcdir in
31424   .)  # No --srcdir option.  We are building in place.
31425     ac_srcdir=.
31426     if test -z "$ac_top_builddir"; then
31427        ac_top_srcdir=.
31428     else
31429        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31430     fi ;;
31431   [\\/]* | ?:[\\/]* )  # Absolute path.
31432     ac_srcdir=$srcdir$ac_dir_suffix;
31433     ac_top_srcdir=$srcdir ;;
31434   *) # Relative path.
31435     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31436     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31437 esac
31438
31439 # Do not use `cd foo && pwd` to compute absolute paths, because
31440 # the directories may not exist.
31441 case `pwd` in
31442 .) ac_abs_builddir="$ac_dir";;
31443 *)
31444   case "$ac_dir" in
31445   .) ac_abs_builddir=`pwd`;;
31446   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31447   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31448   esac;;
31449 esac
31450 case $ac_abs_builddir in
31451 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31452 *)
31453   case ${ac_top_builddir}. in
31454   .) ac_abs_top_builddir=$ac_abs_builddir;;
31455   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31456   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31457   esac;;
31458 esac
31459 case $ac_abs_builddir in
31460 .) ac_abs_srcdir=$ac_srcdir;;
31461 *)
31462   case $ac_srcdir in
31463   .) ac_abs_srcdir=$ac_abs_builddir;;
31464   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31465   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31466   esac;;
31467 esac
31468 case $ac_abs_builddir in
31469 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31470 *)
31471   case $ac_top_srcdir in
31472   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31473   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31474   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31475   esac;;
31476 esac
31477
31478
31479   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31480 echo "$as_me: executing $ac_dest commands" >&6;}
31481   case $ac_dest in
31482     default-1 )
31483     for ac_file in $CONFIG_FILES; do
31484       # Support "outfile[:infile[:infile...]]"
31485       case "$ac_file" in
31486         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31487       esac
31488       # PO directories have a Makefile.in generated from Makefile.in.in.
31489       case "$ac_file" in */Makefile.in)
31490         # Adjust a relative srcdir.
31491         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31492         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31493         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31494         # In autoconf-2.13 it is called $ac_given_srcdir.
31495         # In autoconf-2.50 it is called $srcdir.
31496         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31497         case "$ac_given_srcdir" in
31498           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31499           /*) top_srcdir="$ac_given_srcdir" ;;
31500           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31501         esac
31502         # Treat a directory as a PO directory if and only if it has a
31503         # POTFILES.in file. This allows packages to have multiple PO
31504         # directories under different names or in different locations.
31505         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31506           rm -f "$ac_dir/POTFILES"
31507           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31508           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31509           POMAKEFILEDEPS="POTFILES.in"
31510           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31511           # on $ac_dir but don't depend on user-specified configuration
31512           # parameters.
31513           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31514             # The LINGUAS file contains the set of available languages.
31515             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31516               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31517             fi
31518             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31519             # Hide the ALL_LINGUAS assigment from automake.
31520             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31521             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31522           else
31523             # The set of available languages was given in configure.in.
31524             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31525           fi
31526           # Compute POFILES
31527           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31528           # Compute UPDATEPOFILES
31529           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31530           # Compute DUMMYPOFILES
31531           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31532           # Compute GMOFILES
31533           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31534           case "$ac_given_srcdir" in
31535             .) srcdirpre= ;;
31536             *) srcdirpre='$(srcdir)/' ;;
31537           esac
31538           POFILES=
31539           UPDATEPOFILES=
31540           DUMMYPOFILES=
31541           GMOFILES=
31542           for lang in $ALL_LINGUAS; do
31543             POFILES="$POFILES $srcdirpre$lang.po"
31544             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31545             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31546             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31547           done
31548           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31549           # environment variable.
31550           INST_LINGUAS=
31551           if test -n "$ALL_LINGUAS"; then
31552             for presentlang in $ALL_LINGUAS; do
31553               useit=no
31554               if test "%UNSET%" != "$LINGUAS"; then
31555                 desiredlanguages="$LINGUAS"
31556               else
31557                 desiredlanguages="$ALL_LINGUAS"
31558               fi
31559               for desiredlang in $desiredlanguages; do
31560                 # Use the presentlang catalog if desiredlang is
31561                 #   a. equal to presentlang, or
31562                 #   b. a variant of presentlang (because in this case,
31563                 #      presentlang can be used as a fallback for messages
31564                 #      which are not translated in the desiredlang catalog).
31565                 case "$desiredlang" in
31566                   "$presentlang"*) useit=yes;;
31567                 esac
31568               done
31569               if test $useit = yes; then
31570                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31571               fi
31572             done
31573           fi
31574           CATALOGS=
31575           if test -n "$INST_LINGUAS"; then
31576             for lang in $INST_LINGUAS; do
31577               CATALOGS="$CATALOGS $lang.gmo"
31578             done
31579           fi
31580           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31581           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"
31582           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31583             if test -f "$f"; then
31584               case "$f" in
31585                 *.orig | *.bak | *~) ;;
31586                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31587               esac
31588             fi
31589           done
31590         fi
31591         ;;
31592       esac
31593     done ;;
31594     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
31595  ;;
31596   esac
31597 done
31598 _ACEOF
31599
31600 cat >>$CONFIG_STATUS <<\_ACEOF
31601
31602 { (exit 0); exit 0; }
31603 _ACEOF
31604 chmod +x $CONFIG_STATUS
31605 ac_clean_files=$ac_clean_files_save
31606
31607
31608 # configure is writing to config.log, and then calls config.status.
31609 # config.status does its own redirection, appending to config.log.
31610 # Unfortunately, on DOS this fails, as config.log is still kept open
31611 # by configure, so config.status won't be able to write to it; its
31612 # output is simply discarded.  So we exec the FD to /dev/null,
31613 # effectively closing config.log, so it can be properly (re)opened and
31614 # appended to by config.status.  When coming back to configure, we
31615 # need to make the FD available again.
31616 if test "$no_create" != yes; then
31617   ac_cs_success=:
31618   ac_config_status_args=
31619   test "$silent" = yes &&
31620     ac_config_status_args="$ac_config_status_args --quiet"
31621   exec 5>/dev/null
31622   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31623   exec 5>>config.log
31624   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31625   # would make configure fail if this is the last instruction.
31626   $ac_cs_success || { (exit 1); exit 1; }
31627 fi
31628
31629
31630 cd scripts
31631 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31632 chmod 755 dvd-handler dvd-simulator
31633 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31634 cd ..
31635
31636 c=src/cats
31637
31638 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
31639 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
31640
31641 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
31642 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
31643
31644 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
31645 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
31646
31647 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
31648 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
31649
31650 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
31651 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
31652
31653 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
31654 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
31655
31656 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31657 chmod 755 $c/sqlite
31658 chmod 755 $c/mysql
31659
31660 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31661    largefile_support="yes"
31662 fi
31663
31664 #
31665 # A whole lot of hand springs to get the compiler version.
31666 #  This is because gcc changed the output in version 3.0
31667 #
31668 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31669 if test "x${CCVERSION}" = "x" ; then
31670   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31671 fi
31672 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31673 if test x"${CXXVERSION}" = x ; then
31674   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31675 fi
31676
31677 if test "x${subsysdir}" = "x${sbindir}" ; then
31678    echo " "
31679    echo " "
31680    echo "You have set --sbindir and --with-subsys-dir"
31681    echo "  both equal to: ${subsysdir} "
31682    echo "  This is not permitted. Please reconfigure."
31683    echo " "
31684    echo "Aborting configuration ..."
31685    echo " "
31686    echo " "
31687    exit 1
31688 fi
31689
31690 if test "x${db_name}" = "xInternal" ; then
31691    echo " "
31692    echo " "
31693    echo "You have not specified either --enable-client-only or one of the"
31694    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31695    echo "  This is not permitted. Please reconfigure."
31696    echo " "
31697    echo "Aborting the configuration ..."
31698    echo " "
31699    echo " "
31700    exit 1
31701 fi
31702
31703 echo "
31704 Configuration on `date`:
31705
31706   Host:                       $host -- ${DISTNAME} ${DISTVER}
31707   Bacula version:             ${VERSION} (${DATE})
31708   Source code location:       ${srcdir}
31709   Install binaries:           ${sbindir}
31710   Install config files:       ${sysconfdir}
31711   Scripts directory:          ${scriptdir}
31712   Working directory:          ${working_dir}
31713   PID directory:              ${piddir}
31714   Subsys directory:           ${subsysdir}
31715   Man directory:              ${mandir}
31716   Data directory:             ${datadir}
31717   C Compiler:                 ${CC} ${CCVERSION}
31718   C++ Compiler:               ${CXX} ${CXXVERSION}
31719   Compiler flags:             ${WCFLAGS} ${CFLAGS}
31720   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
31721   Libraries:                  ${LIBS}
31722   Statically Linked Tools:    ${support_static_tools}
31723   Statically Linked FD:       ${support_static_fd}
31724   Statically Linked SD:       ${support_static_sd}
31725   Statically Linked DIR:      ${support_static_dir}
31726   Statically Linked CONS:     ${support_static_cons}
31727   Database type:              ${db_name}
31728   Database lib:               ${DB_LIBS}
31729
31730   Job Output Email:           ${job_email}
31731   Traceback Email:            ${dump_email}
31732   SMTP Host Address:          ${smtp_host}
31733
31734   Director Port:              ${dir_port}
31735   File daemon Port:           ${fd_port}
31736   Storage daemon Port:        ${sd_port}
31737
31738   Director User:              ${dir_user}
31739   Director Group:             ${dir_group}
31740   Storage Daemon User:        ${sd_user}
31741   Storage DaemonGroup:        ${sd_group}
31742   File Daemon User:           ${fd_user}
31743   File Daemon Group:          ${fd_group}
31744
31745   SQL binaries Directory      ${SQL_BINDIR}
31746
31747   Large file support:         $largefile_support
31748   Bacula conio support:       ${got_conio} ${CONS_LIBS}
31749   readline support:           ${got_readline} ${PRTREADLINE_SRC}
31750   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
31751   TLS support:                ${support_tls}
31752   Encryption support:         ${support_crypto}
31753   ZLIB support:               ${have_zlib}
31754   enable-smartalloc:          ${support_smartalloc}
31755   enable-gnome:               ${support_gnome} ${gnome_version}
31756   enable-wx-console:          ${support_wx_console} ${wx_version}
31757   enable-tray-monitor:        ${support_tray_monitor}
31758   client-only:                ${build_client_only}
31759   build-dird:                 ${build_dird}
31760   build-stored:               ${build_stored}
31761   ACL support:                ${have_acl}
31762   Python support:             ${support_python} ${PYTHON_LIBS}
31763
31764   " > config.out
31765
31766 cat config.out